:root{--bg:#f7f3ec;--surface:#fffdf9;--surface-2:#f0eadf;--ink:#1f1b16;--muted:#6f665b;--line:#e3dbcd;--accent:#c2410c;--accent-ink:#fff;--accent-soft:#fbe3d4;--gold:#b7791f;--gold-soft:#fdf0d5;--good:#2f855a;--danger:#c53030;--shadow:0 1px 2px #0000000a, 0 4px 16px #3c28140f;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--sans:ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--radius:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#17151a;--surface:#211e24;--surface-2:#2b272f;--ink:#f1ece4;--muted:#a39a8f;--line:#36313a;--accent:#f97316;--accent-ink:#1a0f06;--accent-soft:#3a2216;--gold:#f6c453;--gold-soft:#3a2f17;--good:#68d391;--danger:#fc8181;--shadow:none}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-text-size-adjust:100%;margin:0;font-size:16px;line-height:1.5}h1,h2{margin:0 0 .5rem;line-height:1.2}h1{font-family:var(--serif);font-size:1.75rem;font-weight:600}h2{font-size:.95rem;font-weight:650}p{margin:0 0 .5rem}a{color:var(--accent)}.muted{color:var(--muted)}.center{text-align:center}.hint{color:var(--muted);font-size:.875rem}.err:first-letter,.toast:first-letter{text-transform:uppercase}.err{color:var(--danger);margin-top:.5rem;font-size:.9rem}.eyebrow{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:.25rem;font-size:.72rem;font-weight:600;display:block}.spacer{flex:1}.row{align-items:center;gap:.5rem;display:flex}.row.between{justify-content:space-between;margin-top:.5rem}.btn{appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:.35rem;padding:.6rem 1rem;font-weight:600;text-decoration:none;transition:transform 80ms,background .15s;display:inline-flex}.btn:active:not(:disabled){transform:scale(.97)}.btn:disabled{opacity:.5;cursor:default}.btn.primary:disabled{opacity:1;background:var(--surface-2);border-color:var(--line);color:var(--muted)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{color:var(--muted);background:0 0;border-color:#0000}.btn.small{padding:.3rem .65rem;font-size:.85rem}.btn.big{width:100%;padding:.9rem 1rem;font-size:1.05rem}.btn.sticky{bottom:calc(12px + env(safe-area-inset-bottom));z-index:5;position:sticky;box-shadow:0 6px 20px #00000026}.link{color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}textarea,.text-input,.code-input{width:100%;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.7rem .8rem;font-size:16px}textarea{resize:vertical;font-family:var(--serif);font-size:1.05rem;line-height:1.45}textarea:focus,.text-input:focus,.code-input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.code-input{text-transform:uppercase;letter-spacing:.25em;text-align:center;font-family:ui-monospace,SF Mono,Menlo,monospace;font-weight:700}.counter{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.8rem}.counter.warn{color:var(--accent)}.center-page{place-items:center;min-height:100dvh;padding:16px;display:grid}.panel{background:var(--surface);border:1px solid var(--line);width:100%;max-width:400px;box-shadow:var(--shadow);border-radius:20px;flex-direction:column;gap:.75rem;padding:1.75rem 1.5rem;display:flex}.hero{text-align:center}.wordmark{font-family:var(--serif);letter-spacing:-.01em;margin:0;font-size:2.5rem;font-style:italic}.wordmark.small{font-size:1.15rem;font-weight:600}.tagline{color:var(--muted);margin-bottom:.5rem}.divider{color:var(--muted);align-items:center;gap:.75rem;font-size:.85rem;display:flex}.divider:before,.divider:after{content:"";background:var(--line);flex:1;height:1px}.page{min-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}.topbar{z-index:10;padding:.6rem 16px;padding-top:calc(.6rem + env(safe-area-inset-top));background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);align-items:center;gap:.6rem;display:flex;position:sticky;top:0}.room-chip{letter-spacing:.12em;background:var(--surface-2);color:var(--muted);border-radius:6px;padding:.15rem .5rem;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.8rem;font-weight:700}.roundbar{align-items:center;gap:.5rem;max-width:640px;margin:0 auto;padding:.6rem 16px 0;font-size:.9rem;display:flex}.timer{font-variant-numeric:tabular-nums;background:var(--surface-2);border-radius:999px;padding:.1rem .55rem;font-weight:700}.timer.low{background:var(--accent-soft);color:var(--accent)}.notice{background:var(--gold-soft);margin:.75rem auto 0;border-radius:10px;max-width:608px;margin-inline:16px;padding:.6rem .9rem;font-size:.9rem}@media (width>=640px){.notice{margin-inline:auto}}.column{flex-direction:column;gap:14px;max-width:640px;margin:0 auto;padding:16px;display:flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem 1.1rem}.section-title{font-family:var(--serif);margin:.25rem 0 0;font-size:1.35rem;font-weight:600}.invite{text-align:center;flex-direction:column;align-items:center;gap:.4rem;display:flex}.big-code{letter-spacing:.2em;margin-right:-.2em;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:2.2rem;font-weight:800}.players{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.4rem 1rem;margin:0;padding:0;list-style:none;display:grid}.players li{align-items:center;gap:.45rem;min-width:0;display:flex}.players li.offline{color:var(--muted)}.dot{background:var(--line);border-radius:50%;flex:none;width:8px;height:8px}.dot.on{background:var(--good)}.tag{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:0 .4rem;font-size:.7rem;font-weight:600}.setting{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;padding:.55rem 0;display:flex}.setting:first-of-type{border-top:none}.setting .label{font-size:.95rem}.segmented{background:var(--surface-2);border-radius:999px;padding:3px;display:inline-flex}.segmented button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:999px;padding:.35rem .8rem;font-size:.85rem;font-weight:600}.segmented button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0000001f}.segmented button:disabled{cursor:default}.stepper{font-variant-numeric:tabular-nums;align-items:center;gap:.75rem;font-weight:700;display:inline-flex}.stepper button{border:1px solid var(--line);background:var(--surface);width:34px;height:34px;color:var(--ink);cursor:pointer;border-radius:50%;font-size:1.1rem}.stepper button:disabled{opacity:.4;cursor:default}.switch{appearance:none;background:var(--line);cursor:pointer;border-radius:999px;flex:none;width:44px;height:26px;transition:background .15s;position:relative}.switch:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0003}.switch:checked{background:var(--accent)}.switch:checked:after{transform:translate(18px)}.switch:disabled{opacity:.6;cursor:default}.my-seeds{flex-direction:column;gap:.4rem;margin:.75rem 0 0;padding:0;list-style:none;display:flex}.my-seeds li{background:var(--surface-2);font-family:var(--serif);border-radius:10px;justify-content:space-between;align-items:flex-start;gap:.5rem;padding:.5rem .4rem .5rem .75rem;display:flex}.story{flex-direction:column;gap:.9rem;display:flex}.story-title h1{margin:.25rem 0 0;font-size:2rem}.premise{border-left:3px solid var(--accent);padding:.25rem 0 .25rem .9rem}.premise p{font-family:var(--serif);margin:0;font-size:1.05rem;font-style:italic}.premise .credit{margin-top:.3rem}.prose p{font-family:var(--serif);margin:0 0 .75rem;font-size:1.15rem;line-height:1.6}.credit{font-family:var(--sans);color:var(--muted);font-size:.8rem;font-style:normal}.cursor{vertical-align:text-bottom;background:var(--accent);width:2px;height:1.2em;margin-left:3px;animation:1s step-end infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}.compose h2{font-family:var(--serif);font-size:1.2rem;font-weight:600}.quote{font-family:var(--serif);margin:0;font-size:1.05rem}.submitted{border-color:var(--good);flex-direction:column;align-items:flex-start;gap:.3rem;display:flex}.progress{flex-direction:column;gap:.4rem;font-size:.85rem;display:flex}.chips{flex-wrap:wrap;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.chip{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:.15rem .6rem}.chip.done{background:color-mix(in srgb, var(--good) 16%, transparent);color:var(--good);font-weight:600}.chip.away{opacity:.6;text-decoration:line-through}.context summary{cursor:pointer;list-style:none}.context summary::-webkit-details-marker{display:none}.context summary:after{content:"Tap to read the whole story";color:var(--accent);margin-top:.35rem;font-size:.8rem;display:block}.context[open] summary{display:none}.ballot,.reveal{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.ballot-item{text-align:left;width:100%;font:inherit;color:var(--ink);background:var(--surface);border:2px solid var(--line);border-radius:var(--radius);cursor:pointer;box-shadow:var(--shadow);flex-direction:column;gap:.4rem;padding:.85rem 1rem;transition:border-color .12s,background .12s;display:flex}.ballot-item .text{font-family:var(--serif);font-size:1.08rem;line-height:1.45}.ballot-item:disabled{cursor:default}.ballot-item.mine{opacity:.6;border-style:dashed}.ballot-item.first{border-color:var(--accent);background:var(--accent-soft)}.ballot-item.second{border-color:var(--accent);border-style:dashed}.ballot-item.second .badge{color:var(--accent);background:var(--accent-soft)}.badge{background:var(--surface-2);color:var(--muted);border-radius:999px;align-self:flex-start;padding:.1rem .55rem;font-size:.75rem;font-weight:700}.badge.strong{background:var(--accent);color:var(--accent-ink)}.reveal-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.85rem 1rem;animation:.45s cubic-bezier(.2,.9,.3,1.3) pop}.reveal-item .text{font-family:var(--serif);margin:0 0 .4rem;font-size:1.08rem}.reveal-item .meta,.all-lines .meta{color:var(--muted);justify-content:space-between;font-size:.85rem;display:flex}.reveal-item .meta span:first-child{color:var(--ink);font-weight:650}.reveal-item.winner{border:2px solid var(--gold);background:var(--gold-soft);animation:.7s cubic-bezier(.2,.9,.3,1.4) pop-big}.reveal-item.winner .text{font-size:1.2rem}.reveal-item.winner .pts{color:var(--gold);font-weight:700}@keyframes pop{0%{opacity:0;transform:translateY(10px)scale(.97)}}@keyframes pop-big{0%{opacity:0;transform:scale(.85)}60%{transform:scale(1.03)}}.pulse{animation:1.4s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.4}}.added{color:var(--good);font-weight:650}.standings{margin:0;padding:0;list-style:none}.standings li{border-top:1px solid var(--line);font-variant-numeric:tabular-nums;grid-template-columns:1.6rem 1fr auto 2.5rem;align-items:center;gap:.5rem;padding:.45rem 0;display:grid}.standings li:first-child{border-top:none}.standings li.me .name{font-weight:700}.standings .place{color:var(--muted);font-weight:700}.standings .wins{color:var(--muted);font-size:.8rem}.standings .pts{text-align:right;font-weight:700}.round-detail{border-top:1px solid var(--line);padding:.5rem 0}.round-detail summary{cursor:pointer;font-weight:600}.all-lines{flex-direction:column;gap:.5rem;margin:.5rem 0 0;padding:0;list-style:none;display:flex}.all-lines li{background:var(--surface-2);border-radius:10px;padding:.5rem .75rem}.all-lines li.winner{background:var(--gold-soft)}.all-lines p{font-family:var(--serif);margin:0 0 .2rem}.actions{justify-content:center;gap:.5rem;display:flex}.sheet-backdrop{z-index:30;background:#0006;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:560px;max-height:85dvh;padding:1.25rem 16px calc(1rem + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;flex-direction:column;gap:1rem;display:flex;overflow:auto}.banner,.toast{z-index:40;border-radius:999px;max-width:calc(100% - 32px);padding:.5rem 1rem;font-size:.9rem;font-weight:600;position:fixed;left:50%;transform:translate(-50%)}.banner{top:calc(56px + env(safe-area-inset-top));background:var(--gold-soft);color:var(--ink)}.toast{bottom:calc(80px + env(safe-area-inset-bottom));background:var(--ink);color:var(--bg);cursor:pointer}.mog{aspect-ratio:1;background:#fff;flex:none;display:inline-block;position:relative;overflow:hidden}.mog img{pointer-events:none;height:auto;position:absolute}.player-mog{width:30px;box-shadow:0 0 0 1px var(--line);border-radius:9px}
