*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#faf9f6;color:#272936;font:16px/1.5 system-ui,sans-serif}header{background:white;border-bottom:1px solid #dfdce5}.bar,main{width:min(100% - 36px,1060px);margin:auto}.bar,.line,.flex{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.bar,.line{justify-content:space-between}.bar{height:72px}.brand{font-size:24px;letter-spacing:-1px}.brand i{font-style:normal;background:#6344ac;color:white;padding:4px 8px;border-radius:9px}main{padding:36px 0}h1,h2,h3,p{margin:0 0 10px}h1{font-size:clamp(34px,5vw,60px);line-height:1.08;letter-spacing:-2px}h1 em{color:#6045a3;font-style:normal}.tag{font-weight:750;color:#66528d;letter-spacing:.13em;font-size:11px;margin-bottom:11px}.intro,.capture,#manualBox,#board{border:1px solid #ded8e9;border-radius:18px;padding:clamp(20px,3vw,36px)}.intro,.capture{background:#efebf6}.intro{max-width:810px;margin:7vh auto}.intro p{max-width:60ch}.intro form{margin-top:28px}button,input,textarea{font:inherit}button{border:1px solid #d6cfdf;background:white;color:#30283b;padding:9px 15px;border-radius:9px;font-weight:630;cursor:pointer}.primary{background:#6244ae;border-color:#6244ae;color:white}.primary:hover{background:#503394}.link{color:#6244ae;background:transparent;border:none;font-size:14px}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #a485da;outline-offset:3px}input,textarea{border:1px solid #cac3d5;border-radius:8px;padding:10px;background:white}label{display:block;font-size:14px;font-weight:650;margin-bottom:5px}textarea,#inviteLink{width:100%}.capture{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px}.capture>div:first-child{max-width:58ch}.capture>div:last-child{display:grid;flex-shrink:0}#manualBox,#board{background:white;margin-top:20px}nav{display:flex;gap:25px;margin:24px 0 15px}nav a{font-weight:650;color:#58477d}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:12px}.card{display:flex;flex-direction:column;padding:17px;background:white;border:1px solid #dfdce5;border-radius:13px}.card button{align-self:flex-start;margin-top:auto}.card p,.muted,footer{color:#686773;font-size:14px}.icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;font-size:22px;margin-bottom:10px}.line button{font-size:14px}footer{padding:25px 0}dialog{max-width:min(480px,93vw);border:1px solid #d9d2e6;border-radius:16px;padding:26px}dialog::backdrop{background:#211a3866}#status:not(:empty){position:fixed;bottom:12px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:10px;background:#332e44;color:white;max-width:min(94vw,600px);z-index:2}#saveError{color:#9f262f}#year{max-width:7em}#yearBox{font-size:13px}[hidden]{display:none!important}@media(max-width:640px){.capture{align-items:stretch;flex-direction:column}.capture>div:last-child{justify-items:start}main{padding:23px 0}.bar{height:62px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Keep the returning player's question and both choices together on small screens. */
#returnPrompt{width:min(28rem,calc(100% - 2rem));border-top:4px solid #6244ae}
#returnPrompt .flex{margin-top:1.25rem}
.bar{height:auto;min-height:72px;flex-wrap:nowrap;padding-block:7px}
.brand{flex-shrink:0}
.player-menu{display:grid;justify-items:end;min-width:0;text-align:right}
#player{max-width:100%;overflow-wrap:anywhere}
#renameOpen{background:transparent;border:0;padding:2px 0;color:#6244ae;font-size:14px;text-decoration:underline;text-underline-offset:3px}
#room>.capture{margin-top:0}
#archive,#past{margin:18px 0;color:#534660}
#archive summary,#past summary{cursor:pointer;font-weight:650}
#past label{margin-top:12px}
nav{align-items:center;flex-wrap:wrap;row-gap:10px}
#invite{margin-inline-start:auto;font-size:14px}
#inviteLink{margin-bottom:12px}
#newName{width:100%}
#renameError{color:#9f262f}
#renameDialog .flex{margin-top:16px}
@media(max-width:640px){.bar{min-height:62px}}
.score-table{max-width:100%;overflow-x:auto;margin-top:16px;border:1px solid #ded8e9;border-radius:12px;background:#fff}
.score-table:focus-visible{outline:3px solid #a485da;outline-offset:3px}
.score-table table{width:100%;border-collapse:separate;border-spacing:0;color:#30283b;font-size:14px;font-variant-numeric:tabular-nums}
.score-table th,.score-table td{padding:10px 8px;text-align:center;vertical-align:middle;min-width:5.6rem}
.score-table thead th{background:#f1edf7;color:#51406f;font-weight:700}
.score-table tbody th,.score-table td{border-top:1px solid #e8e4ed}
.score-table tbody tr{background:#fff}
.score-table tbody tr:nth-child(even){background:#faf9fc}
.score-table th:first-child{position:sticky;left:0;z-index:1;min-width:6.5rem;max-width:10rem;text-align:left;overflow-wrap:anywhere;box-shadow:1px 0 #ded8e9}
.score-table tbody th{background:inherit}
.score-table td span{display:block;line-height:1.35}
.score-table td span+span{margin-top:5px}
.score-table .unplayed{color:#82798e}
.share-text{white-space:pre-wrap;overflow-wrap:anywhere;text-align:start}
#result .share-text{margin:12px 0;padding:12px 14px;border:1px solid #ded8e9;border-radius:8px;background:#faf9fc;max-height:40vh;overflow:auto}
.score-table .share-text{min-width:10rem;max-width:18rem}
.score-table .share-text+.share-text{margin-top:10px;padding-top:10px;border-top:1px solid #e8e4ed}
#copyCheck{margin:12px 0;padding:12px;border-radius:8px;background:#f1edf7}
#copyCheck p{font-size:14px}
#copyCheck label{display:flex;align-items:baseline;gap:8px;cursor:pointer}
#freshCopy{accent-color:#6244ae;flex:none}
