:root {
  color-scheme: light;
  --forest: #153b36;
  --forest-deep: #102f2b;
  --forest-soft: #285c52;
  --paper: #f8f3e8;
  --paper-deep: #eee7d7;
  --ink: #192c29;
  --muted: #82908a;
  --line: rgba(25, 44, 41, .13);
  --coral: #ed7159;
  --yellow: #eec66a;
  --mint: #d7e4d5;
  --sans: 'Avenir Next', Avenir, system-ui, sans-serif;
  --mono: var(--sans);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--forest); }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% -20%, #286254 0, #173f38 42%, var(--forest) 80%); color: var(--paper); font-family: var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(238, 198, 106, .72); outline-offset: 3px; }
.page-glow { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(1px); opacity: .45; }
.page-glow-one { width: 410px; height: 410px; top: -280px; left: 8%; background: #6f9276; }
.page-glow-two { width: 300px; height: 300px; bottom: -220px; right: 12%; background: #29564a; }
.site-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); margin: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--paper); text-decoration: none; }
.brand-mark { display: flex; align-items: center; justify-content: center; position: relative; width: 39px; height: 39px; border: 1px solid rgba(246, 240, 222, .75); border-radius: 11px; transform: rotate(-7deg); font: 500 12px var(--mono); letter-spacing: -3px; }
.brand-mark span:first-child { color: var(--yellow); transform: translate(1px, -2px); }
.brand-mark span:last-child { transform: translate(-1px, 4px); }
.brand-name { font-size: 11px; line-height: 1.05; letter-spacing: .16em; text-transform: uppercase; }
.brand-name b { font-size: 13px; letter-spacing: .09em; }
.yupiter-credit { display: inline-flex; align-items: center; gap: 9px; color: #dfe8dc; }
.yupiter-credit-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(238, 198, 106, .55); border-radius: 50%; color: var(--yellow); font-size: 16px; }
.yupiter-credit-copy { display: grid; gap: 1px; }
.yupiter-credit-copy small { color: #a9beb0; font: 8px var(--mono); letter-spacing: .13em; }
.yupiter-credit-copy strong { color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.online-indicator { display: inline-flex; align-items: center; gap: 9px; color: #c2d0c7; font: 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9fcb90; box-shadow: 0 0 0 4px rgba(159, 203, 144, .13); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 60px; padding: 52px 0 30px; }
.hero-copy { padding: 4px 0 0 20px; }
.eyebrow { margin: 0; color: #c2d0c7; font: 10px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow-line { width: 25px; height: 1px; background: var(--yellow); }
h1, h2, p { margin-top: 0; }
.hero-copy h1 { margin: 22px 0 17px; color: var(--paper); font-size: clamp(44px, 6.2vw, 76px); font-weight: 600; letter-spacing: -.075em; line-height: .99; }
.hero-copy h1 em { color: var(--yellow); font-family: Georgia, serif; font-size: .93em; font-weight: 400; letter-spacing: -.07em; }
.hero-description { max-width: 400px; margin: 0; color: #c8d4ca; font-size: 14px; line-height: 1.8; }
.hero-points { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 30px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; color: #e2e8dc; font-size: 10px; }
.hero-points i { color: var(--yellow); font: 10px var(--mono); font-style: normal; }
.hero-art { position: relative; display: flex; min-height: 325px; align-items: center; justify-content: center; overflow: hidden; }
.orbit { position: absolute; border: 1px solid rgba(218, 229, 212, .2); border-radius: 50%; transform: rotate(-25deg); }
.orbit-a { width: 345px; height: 180px; }
.orbit-b { width: 405px; height: 220px; transform: rotate(55deg); }
.sample-card { position: absolute; width: 211px; height: 263px; padding: 22px; border: 1px solid rgba(49, 52, 40, .12); border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: 0 22px 45px rgba(7, 27, 23, .3); }
.sample-card span { display: block; color: #8c9382; font: 9px var(--mono); letter-spacing: .11em; }
.sample-card b { display: block; margin-top: 48px; font: 600 30px/1.05 var(--sans); letter-spacing: -.055em; }
.sample-card i { position: absolute; bottom: 20px; left: 22px; color: #9c9b8c; font: normal 9px var(--mono); letter-spacing: .1em; }
.sample-card-front { z-index: 2; margin: 20px 0 0 -100px; transform: rotate(-8deg); background: #fbf3df; }
.sample-card-front::before { position: absolute; content: ''; inset: 8px; border: 1px solid rgba(159, 134, 77, .18); pointer-events: none; }
.sample-card-front b { color: #21463e; font-size: 33px; }
.sample-card-front small { display: block; margin-top: 16px; color: #6e7c6f; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sample-card-front .card-spark { right: 20px; bottom: 12px; left: auto; color: var(--coral); font-size: 26px; }
.sample-card-back { z-index: 1; margin: -22px 0 0 117px; transform: rotate(10deg); background: #d7e4d5; }
.sample-card-back b { margin-top: 50px; color: #294f44; font-size: 27px; }
.letter-stamp { position: absolute; z-index: 3; display: grid; place-items: center; width: 55px; height: 55px; border: 1px solid #ffe3a3; border-radius: 50%; background: var(--yellow); color: var(--forest-deep); font: 25px var(--sans); box-shadow: 0 12px 25px rgba(6, 31, 26, .24); }
.stamp-a { top: 22px; right: 72px; transform: rotate(12deg); }
.stamp-b { bottom: 43px; left: 58px; width: 42px; height: 42px; border-color: rgba(255,255,255,.6); background: var(--coral); color: white; font-size: 20px; transform: rotate(-13deg); }
.hero-caption { position: absolute; right: 9px; bottom: 5px; display: flex; align-items: center; gap: 9px; color: #bacabf; font: 10px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.caption-dot { width: 19px; height: 1px; background: var(--yellow); }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 0; }
.entry-card { min-width: 0; padding: 23px 26px 19px; border: 1px solid rgba(27, 58, 49, .12); border-radius: 5px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 42px rgba(7, 27, 23, .16); }
.card-number { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; color: var(--coral); font: 11px var(--mono); letter-spacing: .08em; }
.card-number span { color: #7c8780; font-size: 9px; }
.entry-card label { display: block; margin-bottom: 10px; color: #273c36; font-size: 13px; font-weight: 700; }
.entry-card input { width: 100%; min-width: 0; height: 43px; padding: 0 13px; border: 1px solid #dedbcc; border-radius: 3px; background: rgba(255,255,255,.44); color: var(--ink); font-size: 12px; }
.entry-card input::placeholder { color: #a0a49a; }
.join-fields { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8px; }
.join-fields input:last-child { text-align: center; font: 14px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 45px; margin-top: 10px; padding: 0 15px; border: 0; border-radius: 3px; color: white; font-size: 11px; font-weight: 800; text-align: left; transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
.button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { background: var(--forest); }
.button-secondary { background: var(--coral); }
.button-arrow { font-size: 17px; font-weight: 500; }
.form-footnote { margin: 10px 0 0; color: #8b9187; font-size: 9px; }
.home-footer, .room-footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px 2px 23px; color: rgba(214, 227, 215, .66); font: 9px var(--mono); letter-spacing: .08em; }

.hidden { display: none !important; }
.room-screen { padding-top: 24px; }
.room-topline { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 61px; border-bottom: 1px solid rgba(245, 242, 227, .15); }
.text-button { justify-self: start; padding: 8px 0; border: 0; background: transparent; color: #ccdad0; font-size: 11px; }
.text-button:hover { color: var(--yellow); }
.room-code-block { justify-self: center; text-align: center; }
.room-code-block > span, .round-counter { display: block; color: #b2c3b8; font: 9px var(--mono); letter-spacing: .12em; }
.room-code { display: block; margin-top: 4px; padding: 0; border: 0; background: transparent; color: var(--yellow); font: 600 19px var(--mono); letter-spacing: .18em; }
.room-code b { color: rgba(245,242,227,.6); font-size: 14px; }
.round-counter { justify-self: end; }
.round-counter b { margin-left: 6px; color: var(--paper); font-weight: 500; }
.room-layout { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 20px; padding: 23px 0 0; }
.players-panel, .play-area { border: 1px solid rgba(237, 239, 223, .14); border-radius: 5px; background: rgba(13, 46, 40, .34); }
.players-panel { padding: 22px 18px 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid rgba(237, 239, 223, .13); }
.panel-heading .eyebrow { font-size: 9px; }
.panel-heading h2 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.04em; }
.panel-heading h2 span { color: var(--yellow); font: 11px var(--mono); }
.people-icon { color: var(--yellow); font-size: 23px; transform: rotate(-24deg); }
.players-list { display: grid; gap: 4px; padding-top: 12px; }
.player-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 48px; padding: 5px 7px; border-radius: 3px; }
.player-row.is-you { background: rgba(236, 241, 219, .09); }
.player-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--avatar, #d8a780); color: #18352f; font: 12px var(--sans); }
.player-name { min-width: 0; overflow: hidden; color: #e4e8dd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.player-name small { display: block; margin-top: 2px; color: #97b0a1; font: 8px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.player-score { color: var(--yellow); font: 12px var(--mono); }
.player-state { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #9fcb90; vertical-align: middle; }
.player-state.offline { background: #8f7e6a; }
.invite-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 10px; border: 1px solid rgba(233, 226, 194, .12); border-radius: 3px; background: rgba(246, 241, 222, .05); }
.invite-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border: 1px solid rgba(238,198,106,.55); border-radius: 50%; color: var(--yellow); font-size: 12px; }
.invite-note b { color: #e4e8dd; font-size: 10px; }
.invite-note p { margin: 4px 0 0; color: #aebfb3; font-size: 9px; line-height: 1.55; }
.host-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 15px; color: #a9bcb1; font-size: 9px; line-height: 1.5; }
.host-star { color: var(--coral); }
.play-area { min-height: 520px; padding: 22px 25px 24px; }
.play-area-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(237, 239, 223, .13); }
.play-area-header .eyebrow { font-size: 9px; }
.play-area-header h1 { margin: 5px 0 0; color: var(--paper); font-size: 23px; font-weight: 600; letter-spacing: -.05em; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(233, 240, 221, .15); border-radius: 20px; color: #c6d4c9; font: 8px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.status-pill .online-dot { width: 5px; height: 5px; }
.lobby-table { position: relative; display: grid; place-items: center; min-height: 310px; margin-top: 14px; overflow: hidden; border: 1px solid rgba(231, 234, 211, .11); border-radius: 4px; background: radial-gradient(ellipse at center, rgba(102, 130, 91, .22), rgba(21, 55, 47, .08) 65%); }
.lobby-table::before, .lobby-table::after { position: absolute; content: ''; width: 420px; height: 180px; border: 1px solid rgba(211, 220, 194, .1); border-radius: 50%; transform: rotate(18deg); }
.lobby-table::after { transform: rotate(-28deg); width: 480px; height: 220px; }
.waiting-card { position: relative; z-index: 1; max-width: 310px; padding: 22px; text-align: center; }
.waiting-icon { display: grid; place-items: center; width: 53px; height: 53px; margin: 0 auto 16px; border: 1px solid rgba(238, 198, 106, .55); border-radius: 50%; color: var(--yellow); font-size: 24px; }
.waiting-card h2 { margin-bottom: 8px; color: var(--paper); font: 500 23px var(--sans); letter-spacing: -.04em; }
.waiting-card p { margin: 0; color: #bed0c4; font-size: 11px; line-height: 1.7; }
.waiting-slots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.waiting-slots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(238, 198, 106, .58); }
.waiting-slots span:nth-child(even) { opacity: .45; }
.lobby-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; }
.lobby-actions p { margin: 0; color: #b9c9be; font-size: 10px; }
.lobby-actions .button { width: 190px; flex: 0 0 190px; margin: 0; }
.deck-size-control { padding: 11px 13px; border: 1px solid rgba(35,66,52,.14); border-radius: 4px; }
.party-deck-size-control { margin: 16px 0 3px; background: #f1ecdf; }
.online-deck-size-control { margin-top: 12px; border-color: rgba(237,239,223,.12); background: rgba(13,46,40,.28); }
.deck-size-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.deck-size-heading label { color: #53635b; font-size: 10px; font-weight: 700; }
.deck-size-heading output { color: #cb674f; font: 10px var(--mono); text-align: right; }
.online-deck-size-control .deck-size-heading label { color: #dce4d9; }
.online-deck-size-control .deck-size-heading output { color: var(--yellow); }
.deck-size-slider { display: block; width: 100%; height: 22px; margin: 8px 0 0; accent-color: var(--coral); cursor: pointer; }
.deck-size-slider:disabled { opacity: .48; cursor: default; }
.deck-size-note { margin: 2px 0 0; color: #8b9187; font-size: 8px; }
.online-deck-size-control .deck-size-note { color: #aebfb2; }
.table-decoration { position: absolute; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(240, 230, 202, .38); border-radius: 50%; color: rgba(240, 230, 202, .8); font: 15px var(--sans); }
.table-decoration-one { top: 33px; left: 37px; transform: rotate(-10deg); }
.table-decoration-two { right: 40px; bottom: 26px; color: rgba(237,113,89,.86); transform: rotate(9deg); }
.round-stage { display: grid; place-items: center; min-height: 325px; padding: 20px; }
.round-card { position: relative; width: min(360px, 100%); min-height: 230px; padding: 21px 24px; border: 1px solid rgba(35, 66, 52, .15); border-radius: 4px; background: #f7f0dd; color: var(--ink); box-shadow: 0 16px 40px rgba(5, 24, 20, .24); }
.round-card::before { position: absolute; content: ''; inset: 7px; border: 1px solid rgba(137, 121, 76, .18); pointer-events: none; }
.round-card-top { display: flex; justify-content: space-between; color: #858a7b; font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.round-card h2 { margin: 33px 0 0; color: #26483d; font: 600 clamp(25px, 4vw, 35px)/1.05 var(--sans); letter-spacing: -.05em; }
.round-card-footer { position: absolute; right: 24px; bottom: 22px; left: 24px; display: flex; justify-content: space-between; color: #939485; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.active-round { display: grid; grid-template-columns: minmax(0,1fr) 130px; align-items: center; gap: 18px; width: min(510px, 100%); }
.active-card { display: flex; min-height: 203px; flex-direction: column; justify-content: space-between; padding: 18px 19px; border: 1px solid rgba(52,68,46,.16); border-radius: 4px; background: #f7f0dd; color: var(--ink); box-shadow: 0 14px 35px rgba(5,24,20,.22); }
.active-card .round-card-top { font-size: 8px; }
.active-card h2 { margin: 20px 0; color: #26483d; font: 600 24px/1.08 var(--sans); letter-spacing: -.04em; }
.active-card .round-card-footer { position: static; color: #919080; }
.letter-clock { display: grid; place-items: center; width: 120px; height: 120px; border: 1px solid rgba(238,198,106,.67); border-radius: 50%; background: rgba(237, 113, 89, .11); color: var(--yellow); }
.letter-clock strong { font: 500 58px/1 var(--sans); }
.letter-clock span { margin-top: -24px; color: #bed0c4; font: 9px var(--mono); letter-spacing: .13em; }
.round-modifier-banner { grid-column: 1 / -1; display: grid; gap: 4px; padding: 11px 13px; border-left: 3px solid var(--coral); background: rgba(247,242,222,.08); color: var(--paper); }
.round-modifier-banner strong, .party-round-modifier strong { color: var(--yellow); font: 9px var(--mono); letter-spacing: .1em; }
.round-modifier-banner span, .party-round-modifier span { color: #d0dbd0; font-size: 12px; line-height: 1.4; }
.timer-row { display: flex; align-items: center; gap: 10px; width: min(510px, 100%); margin: 0 auto 12px; color: #c4d2c6; font: 10px var(--mono); }
.timer-track { height: 3px; flex: 1; overflow: hidden; border-radius: 4px; background: rgba(236,242,223,.14); }
.timer-fill { display: block; width: 100%; height: 100%; background: var(--yellow); transition: width .18s linear, background .2s ease; }
.timer-fill.urgent { background: var(--coral); }
.answer-area { padding: 0 0 3px; }
.answer-form { display: flex; gap: 8px; width: min(510px, 100%); margin: 0 auto; }
.answer-form input { min-width: 0; height: 43px; flex: 1; padding: 0 13px; border: 1px solid rgba(241,240,215,.25); border-radius: 3px; background: rgba(244,240,220,.08); color: var(--paper); font-size: 12px; }
.answer-form input::placeholder { color: #a8b9ad; }
.answer-form .button { width: 140px; flex: 0 0 140px; margin: 0; }
.answer-note { margin: 9px auto 0; color: #a9bcb1; font-size: 9px; text-align: center; }
.submission-wait { display: flex; flex-direction: column; align-items: center; gap: 5px; width: min(510px,100%); margin: 0 auto; padding: 15px; border: 1px solid rgba(159,203,144,.28); border-radius: 4px; background: rgba(159,203,144,.07); color: #dce8d8; text-align: center; }
.submission-check { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(159,203,144,.55); border-radius: 50%; color: #b8d6aa; }
.submission-wait b { font-size: 12px; }
.submission-wait > span:last-child { color: #b4c7b8; font-size: 10px; }
.vote-summary { width: min(790px,100%); margin: 0 auto 12px; padding: 13px 15px; border: 1px solid rgba(237,239,223,.15); border-radius: 4px; background: rgba(248,243,232,.05); text-align: center; }
.vote-summary > b { display: inline-block; color: var(--yellow); font-size: 13px; }
.vote-summary > span { display: inline-block; margin-left: 13px; color: #c3d1c5; font: 10px var(--mono); }
.vote-summary p { margin: 7px 0 0; color: #afc1b5; font-size: 10px; line-height: 1.5; }
.online-vote-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 8px; }
.online-vote-card { min-width: 0; padding: 15px; border: 1px solid rgba(237,239,223,.16); border-radius: 4px; background: rgba(248,243,232,.055); }
.online-vote-author { margin: 0; color: #aebfb3; font: 9px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.online-vote-word { margin: 8px 0 12px; color: var(--paper); font: 500 22px var(--sans); overflow-wrap: anywhere; }
.online-vote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vote-button { min-height: 39px; padding: 0 8px; border: 1px solid rgba(237,239,223,.2); border-radius: 3px; background: rgba(248,243,232,.07); color: #e4e9df; font-size: 10px; font-weight: 700; }
.vote-button:hover { transform: translateY(-1px); }
.vote-yes:hover { border-color: rgba(159,203,144,.75); background: rgba(78,130,100,.3); }
.vote-no:hover { border-color: rgba(237,113,89,.75); background: rgba(237,113,89,.16); }
.online-vote-note { margin: 0; padding: 9px 0 0; color: #aebfb3; font-size: 10px; }
.online-vote-note.voted { color: #c9d9c6; }
.result-vote-card.accepted { border-color: rgba(159,203,144,.45); background: rgba(78,130,100,.12); }
.result-vote-card.rejected { border-color: rgba(237,113,89,.25); }
.online-vote-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid rgba(237,239,223,.12); }
.online-vote-result b { color: #cce0c5; font-size: 10px; }
.result-vote-card.rejected .online-vote-result b { color: #e0a395; }
.online-vote-result span { color: #aebfb3; font: 9px var(--mono); }
.online-next-round { width: min(310px,100%); margin: 14px auto 0; }
.claim-card { display: flex; flex-direction: column; align-items: center; width: min(490px, 100%); padding: 24px; border: 1px solid rgba(237,239,223,.18); border-radius: 4px; background: rgba(248,243,232,.06); text-align: center; }
.claim-card .eyebrow { font-size: 9px; }
.claim-answer { margin: 13px 0 5px; color: var(--yellow); font: 500 29px var(--sans); }
.claim-by { margin: 0; color: #c2d0c7; font-size: 11px; }
.claim-actions { display: flex; gap: 8px; width: 100%; margin-top: 20px; }
.claim-actions .button { justify-content: center; gap: 8px; }
.button-accept { background: #4e8264; }
.button-reject { background: rgba(239,235,214,.13); }
.review-wait { color: #d6dfd3; font: 500 20px var(--sans); text-align: center; }
.review-wait small { display: block; margin-top: 7px; color: #a9bcb1; font: 10px var(--sans); }
.outcome-card { display: flex; flex-direction: column; align-items: center; width: min(430px, 100%); padding: 26px 20px; border: 1px solid rgba(237,239,223,.16); border-radius: 4px; background: rgba(248,243,232,.05); text-align: center; }
.outcome-stamp { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(238,198,106,.58); border-radius: 50%; color: var(--yellow); font: 25px var(--sans); }
.outcome-card h2 { margin: 14px 0 5px; color: var(--paper); font: 500 24px var(--sans); }
.outcome-card p { margin: 0; color: #b7c9bc; font-size: 11px; }
.outcome-card .button { max-width: 235px; margin-top: 20px; }
.outcome-card.expired .outcome-stamp { color: var(--coral); border-color: rgba(237,113,89,.55); }
.finish-stage { display: flex; flex-direction: column; align-items: center; padding: 38px 15px 15px; text-align: center; }
.trophy { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 17px; border: 1px solid rgba(238,198,106,.62); border-radius: 50%; color: var(--yellow); font-size: 30px; }
.finish-stage h2 { margin: 8px 0 4px; color: var(--yellow); font: 500 34px var(--sans); }
.finish-stage > p:not(.eyebrow) { color: #bdcec1; font-size: 11px; }
.final-scores { display: grid; gap: 6px; width: min(360px, 100%); margin-top: 19px; }
.final-score-row { display: flex; justify-content: space-between; padding: 10px 13px; border: 1px solid rgba(237,239,223,.13); border-radius: 3px; color: #e0e8dc; font-size: 11px; }
.final-score-row b { color: var(--yellow); font: 12px var(--mono); }
.room-footer { padding-top: 18px; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 20px; max-width: min(400px, calc(100vw - 44px)); padding: 12px 15px; border: 1px solid rgba(237,239,223,.22); border-radius: 4px; background: #f7f0dd; color: var(--ink); box-shadow: 0 12px 35px rgba(4,22,18,.3); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(9px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

.mode-divider { display: flex; align-items: center; gap: 18px; width: min(560px, 100%); margin: 20px auto 13px; color: var(--yellow); text-align: center; }
.mode-divider::before, .mode-divider::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(238,198,106,.58)); }
.mode-divider::after { transform: rotate(180deg); }
.mode-divider span { padding-left: .16em; font: 500 clamp(32px, 5vw, 42px)/1 Georgia, serif; letter-spacing: .16em; }
.party-promo { display: grid; grid-template-columns: 56px minmax(0,1fr) 210px; align-items: center; gap: 18px; margin-top: 0; padding: 22px 26px; border: 1px solid rgba(230,235,213,.14); border-radius: 5px; background: linear-gradient(105deg, rgba(39,87,69,.72), rgba(18,52,45,.74)); }
.party-promo-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(238,198,106,.6); border-radius: 50%; color: var(--yellow); font: 17px var(--sans); letter-spacing: -.1em; }
.party-promo-copy .eyebrow { color: #b2c6b6; font-size: 9px; }
.party-promo-copy h2 { margin: 7px 0 4px; color: var(--paper); font: 500 23px var(--sans); letter-spacing: -.035em; }
.party-promo-copy > p:last-child { margin: 0; color: #c2d0c7; font-size: 11px; line-height: 1.55; }
.party-promo > .button { margin: 0; min-height: 49px; }
.support-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) 235px; align-items: center; gap: 16px; margin-top: 12px; padding: 17px 22px; border: 1px solid rgba(238, 198, 106, .22); border-radius: 5px; background: linear-gradient(105deg, rgba(238, 198, 106, .075), rgba(18, 52, 45, .26)); }
.support-symbol { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(238, 198, 106, .48); border-radius: 50%; color: var(--yellow); font-size: 21px; }
.support-copy .eyebrow { color: #e6ca83; font-size: 8px; }
.support-copy h2 { margin: 4px 0 3px; color: var(--paper); font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.support-copy > p:last-child { margin: 0; color: #bfcec1; font-size: 10px; line-height: 1.5; }
.button-support { min-height: 44px; margin: 0; background: var(--coral); color: white; font-size: 10px; text-decoration: none; }
.yupiter-credit:focus-visible, .button-support:focus-visible { outline: 3px solid rgba(238, 198, 106, .78); outline-offset: 4px; }
.party-screen { min-height: calc(100vh - 100px); padding-top: 22px; }
.party-topline { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(245,242,227,.15); }
.party-setup-layout { display: grid; grid-template-columns: 1fr minmax(320px,.8fr); align-items: center; gap: clamp(34px,8vw,110px); width: min(970px,100%); margin: 0 auto; padding: 54px 0 72px; }
.party-intro h1 { margin: 17px 0 17px; color: var(--paper); font-size: clamp(46px,6vw,71px); font-weight: 600; letter-spacing: -.075em; line-height: .98; }
.party-intro > p:not(.eyebrow) { max-width: 420px; color: #c5d2c8; font-size: 14px; line-height: 1.75; }
.offline-note { display: flex; gap: 12px; align-items: flex-start; max-width: 400px; margin-top: 31px; padding: 14px 15px; border: 1px solid rgba(238,198,106,.24); border-radius: 4px; background: rgba(238,198,106,.06); }
.offline-note > span { color: var(--yellow); font-size: 19px; }
.offline-note p { margin: 0; color: #bed0c4; font-size: 10px; line-height: 1.6; }
.offline-note b { color: #f0d999; font-size: 11px; }
.party-setup-card { padding: 26px; border: 1px solid rgba(27,58,49,.12); border-radius: 5px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgba(7,27,23,.2); }
.party-setup-card > h2 { margin: 0 0 17px; color: #273c36; font: 500 22px var(--sans); letter-spacing: -.03em; }
.party-add-player { display: flex; gap: 8px; }
.party-add-player input { min-width: 0; height: 46px; flex: 1; padding: 0 13px; border: 1px solid #dedbcc; border-radius: 3px; background: rgba(255,255,255,.44); color: var(--ink); font-size: 13px; }
.party-add-player button { width: 47px; border: 0; border-radius: 3px; background: var(--forest); color: white; font-size: 25px; }
.party-player-list { display: grid; gap: 5px; max-height: 290px; margin-top: 12px; overflow: auto; }
.party-player-chip { display: grid; grid-template-columns: 35px minmax(0,1fr) 32px; align-items: center; min-height: 39px; padding: 4px 5px 4px 10px; border: 1px solid #e7e2d6; border-radius: 3px; }
.party-player-number { color: var(--coral); font: 10px var(--mono); }
.party-player-chip-name { overflow: hidden; color: #293b35; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.party-remove-player { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #838b81; font-size: 20px; }
.party-remove-player:hover { background: #f2e9db; color: var(--coral); }
.party-setup-card .form-footnote { margin: 10px 0 18px; line-height: 1.5; }
.voice-label { display: block; margin: 0 0 7px; color: #53635b; font-size: 10px; font-weight: 700; }
.party-setup-card select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid #dedbcc; border-radius: 3px; background: #fcfaf4; color: var(--ink); font-size: 11px; }
.voice-note { margin: 7px 0 0; color: #8b9187; font-size: 9px; line-height: 1.5; }
.party-start { min-height: 51px; margin-top: 12px; font-size: 12px; }
.party-game-screen { padding: 10px 0 26px; }
.party-game-topline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(245,242,227,.15); }
.party-game-brand { color: #d7e0d7; font: 9px var(--mono); letter-spacing: .12em; text-align: center; }
.party-game-brand span { color: var(--yellow); }
.party-game-tools { display: flex; justify-content: flex-end; gap: 8px; }
.party-tool { min-height: 35px; padding: 0 10px; border: 1px solid rgba(234,239,222,.2); border-radius: 3px; background: rgba(244,242,222,.05); color: #e0e7da; font-size: 11px; }
.mood-select { padding-right: 24px; color: #e0e7da; font-size: 10px; }
.mood-select option { background: #173d34; color: #f4f1e4; }
.party-tool:hover:not(:disabled) { border-color: rgba(238,198,106,.6); }
.party-tool:disabled { opacity: .4; }
.online-sound-controls { display: flex; align-items: center; gap: 7px; margin-top: 11px; padding: 8px 10px; border: 1px solid rgba(237,239,223,.12); border-radius: 4px; background: rgba(13,46,40,.28); }
.online-sound-controls .party-tool { min-height: 32px; }
.sound-controls-label { margin-right: auto; color: #aebfb2; font: 8px var(--mono); letter-spacing: .1em; }
.party-game-content { width: min(1300px,100%); margin: 0 auto; }
.party-round-meta { display: flex; justify-content: space-between; padding: 18px 2px 11px; color: #aebfb2; font: 9px var(--mono); letter-spacing: .1em; }
.party-round-stage { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,250px); grid-template-rows: auto 1fr; align-items: center; min-height: 330px; padding: clamp(24px,4vw,54px) clamp(24px,6vw,78px); overflow: hidden; border: 1px solid rgba(237,239,223,.16); border-radius: 5px; background: radial-gradient(ellipse at 75% 50%, rgba(82,123,84,.28), rgba(15,49,42,.22) 55%), rgba(13,46,40,.5); }
.party-round-stage::before { position: absolute; inset: 15px; border: 1px solid rgba(237,239,223,.08); content: ''; pointer-events: none; }
.party-round-stage > .eyebrow { grid-column: 1 / -1; align-self: end; color: #c3d3c4; }
.party-round-modifier { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 16px; padding: 12px 15px; border-left: 3px solid var(--coral); background: rgba(247,242,222,.07); }
.party-category { position: relative; z-index: 1; margin: 12px 20px 0 0; color: var(--paper); font-size: clamp(40px,6.7vw,86px); font-weight: 600; letter-spacing: -.07em; line-height: .98; overflow-wrap: anywhere; }
.party-letter { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: end; width: clamp(155px,20vw,235px); aspect-ratio: 1; border: 1px solid rgba(238,198,106,.7); border-radius: 50%; background: rgba(237,113,89,.12); color: var(--yellow); box-shadow: 0 0 0 12px rgba(238,198,106,.035), 0 0 0 25px rgba(238,198,106,.025); }
.party-letter strong { font: 500 clamp(76px,11vw,125px)/.9 var(--sans); }
.party-letter span { margin-top: 13px; color: #c4d2c6; font: 10px var(--mono); letter-spacing: .2em; }
.party-round-controls { padding: 17px 0 0; }
.party-timer { display: grid; grid-template-columns: auto auto minmax(60px,1fr); align-items: center; gap: 11px; width: min(600px,100%); margin: 0 auto; color: #d5dfd3; }
.party-timer strong { min-width: 55px; color: var(--yellow); font: 500 32px var(--mono); text-align: right; }
.party-timer > span { color: #afc0b4; font: 9px var(--mono); letter-spacing: .08em; }
.party-timer-track { height: 4px; overflow: hidden; border-radius: 4px; background: rgba(236,242,223,.15); }
.party-timer-track b { display: block; width: 100%; height: 100%; background: var(--yellow); transition: width .18s linear, background .2s ease; }
.party-timer-track b.urgent { background: var(--coral); }
.party-mark-label { margin: 17px 0 11px; color: #c0cec2; font-size: 12px; text-align: center; }
.party-answer-buttons { display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 9px; }
.party-answer-button { display: flex; flex-direction: column; justify-content: center; min-height: 74px; padding: 10px 14px; border: 1px solid rgba(237,239,223,.2); border-radius: 4px; background: rgba(247,242,222,.07); color: var(--paper); transition: .15s ease; }
.party-answer-button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--yellow); background: rgba(238,198,106,.15); }
.party-answer-selected { border-color: var(--yellow); background: rgba(238,198,106,.18); color: var(--yellow); }
.party-answer-button:disabled { opacity: .55; }
.party-answer-button span { overflow: hidden; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.party-answer-button small { margin-top: 5px; color: #aebfb2; font: 9px var(--mono); }
.party-double-letter-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: min(570px,100%); margin: 0 auto; }
.party-double-letter-actions .party-next-button { min-width: 0; width: 100%; margin: 0; }
.party-scoreboard { display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 7px; margin-top: 18px; }
.party-score { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; min-height: 43px; padding: 6px 11px; border: 1px solid rgba(237,239,223,.13); border-radius: 3px; color: #d8e0d6; }
.party-score-place { color: #95aa9d; font: 9px var(--mono); }
.party-score-name { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.party-score b { color: var(--yellow); font: 12px var(--mono); }
.party-score-winner { border-color: rgba(238,198,106,.55); background: rgba(238,198,106,.08); }
.party-result { margin: 6px 0 13px; text-align: center; }
.party-result h2 { margin: 0 0 4px; color: var(--yellow); font: 500 clamp(25px,4vw,39px) var(--sans); }
.party-result p { margin: 0; color: #bdcec1; font-size: 12px; }
.party-next-button { display: block; min-width: 240px; min-height: 56px; margin: 14px auto 0; padding: 0 22px; border: 0; border-radius: 4px; background: var(--yellow); color: var(--forest-deep); font-size: 14px; font-weight: 800; }
.party-next-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.party-finish { display: flex; flex-direction: column; align-items: center; padding: 36px 0; text-align: center; }
.party-finish > h1 { margin: 10px 0 0; color: var(--paper); font: 500 clamp(35px,6vw,58px) var(--sans); }
.party-finish > strong { margin-top: 7px; color: var(--yellow); font-size: clamp(40px,7vw,76px); letter-spacing: -.06em; }
.party-finish-note { margin: 4px 0 0; color: #c0cec2; font-size: 12px; }
.party-finish .party-scoreboard { width: min(800px,100%); }
.party-mode { min-height: 100vh; background: radial-gradient(ellipse at 50% -20%, #286254 0, #173f38 42%, var(--forest) 80%); }
.party-mode .site-shell { width: min(1500px,calc(100% - 56px)); }
.party-mode .topbar { display: none; }
.party-mode .party-game-screen { min-height: 100vh; padding-top: 0; }

@media (max-width: 850px) {
  .party-promo { grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 18px; }
  .party-promo-mark { width: 45px; height: 45px; }
  .party-promo > .button { grid-column: 2; width: 100%; }
  .support-card { grid-template-columns: 48px minmax(0,1fr); }
  .support-card .button { grid-column: 2; }
  .party-setup-layout { grid-template-columns: 1fr minmax(285px,.9fr); gap: 28px; }
  .party-round-stage { min-height: 290px; }
}
@media (max-width: 650px) {
  .party-promo { margin-top: 0; padding: 15px; }
  .party-promo-copy .eyebrow { font-size: 8px; }
  .party-promo-copy h2 { font-size: 19px; }
  .party-promo-copy > p:last-child { font-size: 10px; }
  .support-card { grid-template-columns: 38px minmax(0,1fr); gap: 10px; padding: 15px; }
  .support-symbol { width: 36px; height: 36px; font-size: 18px; }
  .support-copy h2 { font-size: 16px; }
  .support-card .button { grid-column: 1 / -1; }
  .party-setup-layout { grid-template-columns: 1fr; gap: 22px; padding: 34px 0 45px; }
  .party-intro h1 { font-size: clamp(46px,12vw,65px); }
  .party-intro > p:not(.eyebrow) { font-size: 12px; }
  .offline-note { margin-top: 20px; }
  .party-setup-card { padding: 20px; }
  .party-topline .status-pill { max-width: 165px; font-size: 7px; }
  .party-mode .site-shell { width: calc(100% - 28px); }
  .party-game-topline { grid-template-columns: 1fr; align-items: start; gap: 6px; min-height: 48px; padding: 6px 0; }
  .party-game-brand { display: none; }
  .party-game-tools { display: grid; grid-template-columns: minmax(92px,1fr) repeat(4,auto); gap: 4px; }
  .party-tool { min-height: 32px; padding: 0 7px; font-size: 9px; }
  .party-tool span { display: none; }
  .online-sound-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 5px; padding: 7px; }
  .online-sound-controls .sound-controls-label { grid-column: 1 / -1; margin: 0 0 2px; }
  .online-sound-controls .party-tool { width: 100%; min-width: 0; padding: 0 5px; font-size: 9px; }
  .online-sound-controls .mood-select { grid-column: 1 / -1; }
  .online-sound-controls .party-tool span { display: inline; }
  .party-round-meta { padding-top: 13px; font-size: 7px; }
  .party-round-stage { grid-template-columns: minmax(0,1fr) 96px; min-height: 230px; padding: 24px 19px; }
  .party-round-stage::before { inset: 8px; }
  .party-round-stage > .eyebrow { font-size: 8px; }
  .party-category { margin-right: 10px; font-size: clamp(32px,8vw,50px); }
  .party-letter { width: 90px; box-shadow: 0 0 0 6px rgba(238,198,106,.035), 0 0 0 13px rgba(238,198,106,.025); }
  .party-letter strong { font-size: 50px; }
  .party-letter span { margin-top: 8px; font-size: 7px; }
  .party-timer strong { min-width: 45px; font-size: 26px; }
  .party-timer > span { font-size: 7px; }
  .party-mark-label { margin-top: 15px; font-size: 11px; }
  .party-answer-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .party-answer-button { min-height: 63px; padding: 8px; }
  .party-answer-button span { font-size: 14px; }
  .party-answer-button small { font-size: 8px; }
  .party-scoreboard { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-top: 13px; }
  .party-score { grid-template-columns: 23px minmax(0,1fr) auto; min-height: 38px; padding: 5px 7px; }
  .party-score-name { font-size: 9px; }
  .party-score-place { font-size: 8px; }
  .party-score b { font-size: 10px; }
  .party-next-button { width: 100%; min-height: 53px; }
}

@media (max-width: 850px) {
  .site-shell { width: min(700px, calc(100% - 40px)); }
  .hero-grid { grid-template-columns: 1fr .9fr; gap: 10px; padding-top: 35px; }
  .hero-copy { padding-left: 0; }
  .hero-art { min-height: 290px; transform: scale(.9); }
  .hero-points { gap: 11px; }
  .room-layout { grid-template-columns: 210px minmax(0,1fr); gap: 12px; }
  .players-panel { padding: 18px 13px; }
  .play-area { padding: 18px; }
}
@media (max-width: 650px) {
  .site-shell { width: min(480px, calc(100% - 30px)); }
  .topbar { min-height: 71px; }
  .brand-mark { width: 34px; height: 34px; }
  .online-indicator { font-size: 9px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 31px; }
  .hero-copy h1 { margin: 16px 0 12px; font-size: clamp(49px, 12vw, 67px); }
  .hero-description { max-width: 340px; font-size: 12px; }
  .hero-points { margin-top: 20px; }
  .hero-art { min-height: 260px; margin: 6px 0 0; transform: none; overflow: visible; }
  .orbit { display: none; }
  .sample-card { width: clamp(132px, 42vw, 170px); height: clamp(174px, 55vw, 220px); padding: clamp(14px, 4.5vw, 20px); }
  .sample-card b { margin-top: clamp(24px, 8vw, 38px); }
  .sample-card-front { margin: 14px 0 0 clamp(-52px, -16vw, -48px); }
  .sample-card-front b { font-size: clamp(24px, 8vw, 33px); }
  .sample-card-front small { margin-top: 10px; font-size: 9px; }
  .sample-card-back { margin: 0 0 0 clamp(48px, 18vw, 70px); }
  .sample-card-back b { margin-top: clamp(25px, 8vw, 38px); font-size: clamp(20px, 6.7vw, 27px); }
  .stamp-a { top: 15px; right: clamp(38px, 15vw, 64px); }
  .stamp-b { bottom: 31px; left: clamp(33px, 15vw, 55px); width: 38px; height: 38px; }
  .hero-caption { right: auto; bottom: 2px; left: 50%; gap: 6px; max-width: 100%; font-size: 8px; letter-spacing: .05em; white-space: nowrap; transform: translateX(-50%); }
  .caption-dot { width: 14px; }
  .entry-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 5px; }
  .entry-card { padding: 20px; }
  .home-footer { font-size: 8px; }
  .home-footer span:last-child { text-align: right; }
  .room-screen { padding-top: 11px; }
  .room-topline { min-height: 59px; grid-template-columns: 1fr 1fr; }
  .round-counter { display: none; }
  .room-code { font-size: 17px; }
  .room-layout { grid-template-columns: 1fr; gap: 10px; padding-top: 11px; }
  .players-panel { padding: 13px; }
  .panel-heading { padding-bottom: 9px; }
  .players-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px 6px; padding-top: 7px; }
  .player-row { min-height: 42px; grid-template-columns: 26px minmax(0,1fr) auto; gap: 6px; padding: 4px; }
  .player-avatar { width: 25px; height: 25px; }
  .invite-note, .host-note { display: none; }
  .play-area { min-height: 480px; padding: 15px 12px; }
  .play-area-header h1 { font-size: 20px; }
  .status-pill { font-size: 7px; padding: 6px 7px; }
  .lobby-table { min-height: 275px; }
  .lobby-actions { align-items: stretch; flex-direction: column; }
  .lobby-actions .button { width: 100%; flex: auto; }
  .lobby-actions p { text-align: center; }
  .deck-size-control { padding: 10px; }
  .deck-size-heading label, .deck-size-heading output { font-size: 9px; }
  .round-stage { min-height: 300px; padding: 14px 4px; }
  .active-round { grid-template-columns: minmax(0,1fr) 94px; gap: 9px; }
  .active-card { min-height: 185px; padding: 14px; }
  .active-card h2 { font-size: 21px; }
  .active-card .round-card-footer { right: 14px; left: 14px; }
  .letter-clock { width: 90px; height: 90px; }
  .letter-clock strong { font-size: 46px; }
  .letter-clock span { font-size: 8px; }
  .answer-form .button { width: 112px; flex-basis: 112px; padding: 0 10px; }
  .room-footer { font-size: 8px; }
  .room-footer span:last-child { text-align: right; }
}
