/* The group-play shell shares the solo games' paper, ink and atlas colours. */
.party-page, .welcome-page { height: 100dvh; }
.game-result-breakdown { margin-bottom:18px; }
.game-result-breakdown h2 { font-size:22px; margin:0 0 10px; }
.result-tabs { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.result-tabs [aria-pressed="true"] { background:var(--text); color:var(--bg); }
.result-verdict { border-left:4px solid var(--accent); background:var(--accent-soft); padding:10px 14px; }
.result-verdict strong { font-size:18px; }
.result-verdict p { margin:4px 0 0; font-size:13px; line-height:1.4; }
.result-verdict small { display:block; margin-top:5px; }
.result-rules { margin:8px 0; font-size:12px; line-height:1.5; color:var(--muted); }
.result-rules summary { cursor:pointer; width:fit-content; }
.result-rules p { margin:5px 0; }
.result-comparison { list-style:none; padding:0; margin:0; border-top:1px solid var(--border); }
.result-player { display:grid; grid-template-columns:165px minmax(0,1fr); gap:12px; border-bottom:1px solid var(--border); padding:10px; }
.result-player.self { background:var(--accent-soft); }
.result-person { display:flex; align-items:center; gap:6px; min-width:0; font-size:14px; overflow-wrap:anywhere; }
.result-person .medal-symbol { width:26px; height:26px; min-width:26px; }
.result-rank { font:12px var(--mono); color:var(--muted); }
.result-measurements { display:grid; grid-template-columns:repeat(var(--result-columns,3),minmax(0,1fr)); align-items:center; gap:8px 20px; margin:0; }
.result-measurements>div { min-width:0; }
.result-measurements dt { font-size:11px; color:var(--muted); }
.result-measurements dd { font:600 13px var(--mono); margin:4px 0 0; overflow-wrap:anywhere; }
.result-measurements .primary-result dd { font-size:17px; color:var(--accent); }
@media(max-width:650px) {
  .result-player { grid-template-columns:1fr; gap:8px; }
  .result-measurements { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; }
}
.party-brand { color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: -.04em; font-size: 23px; font-weight: 800; white-space: nowrap; }
.eyebrow { font: 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.party-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 43px; padding: 10px 17px; border: 1px solid var(--text); background: var(--panel); color: var(--text); font: 600 14px var(--display); text-decoration: none; cursor: pointer; border-radius: 0; }
.party-button:hover { background: var(--panel-2); }
.party-button.primary { color: var(--bg); background: var(--text); }
.party-button.primary:hover { background: #304a36; }
.welcome-actions .solo-button { grid-column: 1 / -1; min-height: 54px; background: #c9e8c9; }
.welcome-actions .solo-button:hover { background: #b7ddb8; }
.party-button:disabled, .small-button:disabled { opacity: .45; cursor: not-allowed; }
.party-button.wide { width: 100%; }
.winners-screen { text-align:center; padding:14px 0 4px; border-bottom:1px solid var(--border); margin-bottom:20px; }
.winners-podium { display:grid; grid-template-columns:repeat(var(--players),minmax(0,1fr)); align-items:end; gap:4px; list-style:none; margin:26px auto 10px; padding:0; max-width:calc(var(--players)*125px); }
.podium-place { min-width:0; text-align:center; }
.podium-figure { position:relative; width:min(76px,90%); aspect-ratio:76/83; margin:0 auto 5px; transform-origin:50% 100%; }
.podium-figure .country-avatar { width:100%; height:100%; }
.podium-necklace { position:absolute; inset:48% 24% auto; padding-top:12%; }
.podium-necklace::before { content:''; position:absolute; top:-18%; left:12%; width:76%; height:55%; border:2px solid #ab4040; border-top:0; transform:rotate(-5deg); }
.podium-necklace .medal-badge { position:relative; padding:0; display:flex; justify-content:center; }
.podium-necklace .medal-symbol { width:clamp(14px,2.5vw,26px); height:clamp(14px,2.5vw,26px); min-width:0; }
.podium-step { height:var(--step-height); background:#d8ded1; border:1px solid var(--text); border-bottom:4px solid #929d89; padding-top:10px; font:800 clamp(13px,2.5vw,26px) var(--display); }
.podium-place[data-rank="1"] .podium-step { background:#ead99b; }
.podium-place[data-rank="2"] .podium-step { background:#dce0e3; }
.podium-place[data-rank="3"] .podium-step { background:#dfb899; }
.podium-caption { height:76px; padding:8px 2px 0; overflow-wrap:anywhere; font-size:clamp(10px,1.5vw,14px); }
.podium-caption strong,.podium-caption span { display:block; }
.podium-caption span { font:10px var(--mono); margin-top:4px; color:var(--muted); }
.podium-place.self .podium-caption strong { color:var(--accent); }
.podium-winner .podium-figure { animation:podium-hop 1.3s ease-in-out infinite; animation-delay:var(--jump-delay); }
@keyframes podium-hop { 0%,65%,100% { transform:translateY(0) scale(1); } 73% { transform:translateY(0) scale(1.06,.94); } 84% { transform:translateY(-12px) scale(.97,1.03); } 94% { transform:translateY(0) scale(1.04,.96); } }
.party-finished #player-grid { display:none; }
@media(max-width:600px) { .podium-caption { height:calc(60px + var(--players)*10px); font-size:10px; line-height:1.35; }.podium-caption span { font-size:8px; }.podium-step { height:calc(var(--step-height)*.7); }.winners-podium { gap:2px; } }
@media(prefers-reduced-motion:reduce) { .podium-winner .podium-figure { animation:none; } }
.small-button { padding: 6px 9px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: 12px var(--display); cursor: pointer; }
.small-button:hover { border-color: var(--text); color: var(--text); }
.quiet-link { font-size: 13px; color: var(--muted); text-underline-offset: 4px; }
.welcome { height: 100%; max-width: 1300px; margin: auto; padding: 27px 42px 18px; display: flex; flex-direction: column; align-items: stretch; }
.welcome-top, .welcome-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.welcome-top { padding-bottom: 18px; border-bottom: 2px solid var(--text); }
.welcome-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 35px; }
.welcome-copy h1 { font-size: clamp(35px, 4.8vw, 67px); line-height: 1.04; letter-spacing: -.06em; margin: 18px 0; }
.welcome-description { max-width: 440px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 450px; margin-top: 27px; }
.solo-link { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; color: var(--text); text-decoration: none; font-size: 16px; padding: 16px 0 7px; border-top: 1px solid var(--border); }
.solo-link small { font-size: 12px; color: var(--faint); grid-column: 1 / -1; margin-top: 3px; }
.solo-link:hover { color: var(--accent); }
.welcome-note { font: 10px var(--mono); margin-top: 20px; color: var(--faint); }
.welcome-bottom { border-top: 1px solid var(--border); padding-top: 14px; font: 10px var(--mono); color: var(--faint); }
.welcome-art { position: relative; aspect-ratio: 1; max-height: 450px; width: 100%; }
.welcome-world { position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--text); background: repeating-linear-gradient(0deg, transparent 0 34px, #aaa39d55 35px 36px), radial-gradient(ellipse at 40% 34%, #eff6eb, #bacbae); overflow: hidden; display: grid; place-items: center; transform: rotate(-12deg); }
.welcome-world::before, .welcome-world::after { content: ''; position: absolute; inset: -1px 25%; border-radius: 50%; border: 1px solid #5b725770; }
.welcome-world::after { inset: 0 42%; }
.welcome-world span { position: relative; z-index: 1; text-align: center; font: 800 clamp(19px, 2.7vw, 35px)/1.15 var(--display); letter-spacing: -.05em; }
.welcome-orbit { position: absolute; inset: 34% -1%; border: 1px solid var(--border); border-radius: 50%; transform: rotate(-35deg); }
.orbit-two { inset: -1% 34%; transform: rotate(-35deg); }
.country-avatar { width: 76px; height: 83px; flex: 0 0 auto; position: relative; filter: drop-shadow(0 4px 0 #13110f14); }
.country-avatar img { position: absolute; left: 8%; top: 4%; width: 84%; height: 79%; object-fit: cover; border-radius: 43% 43% 35% 35%; border: 2px solid var(--text); background: var(--panel); }
.country-avatar::before, .country-avatar::after { content: ''; position: absolute; bottom: 5%; width: 18%; height: 17%; background: var(--text); border-radius: 0 0 40% 40%; }
.country-avatar::before { left: 21%; transform: rotate(8deg); }
.country-avatar::after { right: 21%; transform: rotate(-8deg); }
.country-avatar i { position: absolute; left: 22%; top: 32%; height: 32%; width: 56%; background: #fffdf5; border: 2px solid var(--text); border-radius: 36%; }
.country-avatar i::before, .country-avatar i::after { content: ''; position: absolute; top: 26%; height: 34%; width: 10%; border-radius: 40%; background: var(--text); }
.country-avatar i::before { left: 25%; }.country-avatar i::after { right: 25%; }
.country-avatar b { position: absolute; top: 52%; left: 45%; width: 10%; height: 5%; border-bottom: 2px solid var(--text); border-radius: 50%; }
.welcome-art .country-avatar { position: absolute; width: 95px; height: 103px; animation: avatar-bob 4s ease-in-out infinite; }
.avatar-jp { top: 0; left: 10%; transform: rotate(-8deg); }.avatar-br { bottom: 3%; right: 6%; animation-delay: -1.2s !important; }.avatar-ke { bottom: 14%; left: -1%; animation-delay: -2.7s !important; }
.art-coordinate { position: absolute; font: 10px var(--mono); color: var(--faint); }.coord-one { right: 9%; top: 11%; }.coord-two { right: 7%; bottom: 31%; }
@keyframes avatar-bob { 50% { translate: 0 -7px; } }
#party-app { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.party-top { display: flex; align-items: center; gap: 25px; border-bottom: 1px solid var(--border); min-height: 57px; padding: 10px 24px; flex: 0 0 auto; }
.party-top-tools { display: flex; gap: 8px; margin-left: auto; }
#room-code-shortcut { font-family:var(--mono); letter-spacing:.08em; color:var(--text); }
@media(max-width:750px) { .party-top { flex-wrap:wrap; }.party-top-tools { flex-wrap:wrap; justify-content:flex-end; } }
.party-content { display: block; flex: 1; min-height: 0; width: min(1220px, 100%); margin: 0 auto; padding: 22px 30px; overflow: auto; }
.party-notice, .party-error { margin: 0; padding: 9px 22px; font-size: 13px; background: #f4e9ca; color: #63460b; border-bottom: 1px solid #bca568; flex: 0 0 auto; }
.party-error { color: #8a302d; background: #f6e2df; border-color: #cd9c96; }
.setup-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.setup-heading .eyebrow { margin: 0 0 6px; }
.setup-heading h1, .room-heading h1 { font-size: 35px; line-height: 1.15; letter-spacing: -.04em; margin: 0; }
.setup-tabs { display: flex; border: 1px solid var(--border); }
.setup-tabs button { padding: 10px 14px; background: transparent; border: none; cursor: pointer; }
.setup-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.party-setup-grid { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(350px, 1.18fr); gap: 38px; }
.party-setup-grid h2, .room-columns h2 { font-size: 18px; letter-spacing: -.025em; margin: 0 0 13px; }
.identity-panel { padding-right: 35px; border-right: 1px solid var(--border); }
.identity-preview { display: flex; align-items: center; gap: 15px; height: 93px; margin-bottom: 7px; }
.identity-preview strong { display: block; margin-top: 5px; font-size: 19px; line-height: 1.25; }
.field-label { display: block; margin: 10px 0 5px; font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.party-setup-grid input, .party-setup-grid select { width: 100%; min-width: 0; padding: 10px 11px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 0; font: 14px var(--display); }
.party-setup-grid input:focus, .party-setup-grid select:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.country-choices { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 5px; max-height: 148px; min-height: 68px; overflow: auto; margin-top: 8px; }
.country-choice { display: flex; align-items: center; gap: 7px; text-align: left; font: 12px var(--display); padding: 7px; background: transparent; border: 1px solid var(--border); cursor: pointer; min-width: 0; }
.country-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-choice img { width: 24px; height: 17px; object-fit: cover; flex-shrink: 0; }
.country-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.form-note { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 9px 0; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.game-picker-row { display: flex; gap: 8px; }
.game-picker-row select { flex: 1; }
.party-playlist { padding: 0; list-style: none; margin: 12px 0; max-height: min(270px, 32dvh); min-height: 100px; overflow: auto; counter-reset: lineup; }
.playlist-item { display: grid; grid-template-columns: 22px minmax(80px, 1fr) 80px auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); counter-increment: lineup; }
.playlist-item::before { content: counter(lineup, decimal-leading-zero); font: 11px var(--mono); color: var(--faint); }
.playlist-item strong { display: block; font-size: 13px; font-weight: 600; }
.playlist-item small { font-size: 10px; color: var(--faint); }
.playlist-item select { padding: 7px 3px; font-size: 12px; }
.playlist-item-actions { display: flex; gap: 3px; }
.playlist-item-actions button { width: 25px; height: 29px; padding: 0; }
.join-panel { align-self: center; max-width: 430px; }
.join-panel h2 { font-size: 31px; margin: 8px 0; }
.join-panel p:not(.eyebrow) { color: var(--muted); }
.join-panel input.code-input { font: 600 35px var(--mono); text-transform: uppercase; letter-spacing: .2em; padding: 14px; margin-bottom: 18px; }
.room-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-bottom: 1px solid var(--border); padding-bottom: 22px; margin-bottom: 23px; }
.room-heading .eyebrow { margin: 0 0 8px; }.room-heading p { color: var(--faint); font-size: 13px; margin: 10px 0 0; }
.room-code { display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--panel); border: 1px solid var(--text); padding: 14px 25px; cursor: pointer; flex-shrink: 0; }
.room-code strong { font: 700 37px var(--mono); letter-spacing: .14em; }
.room-code .eyebrow, .room-code .form-note { margin: 0; font-size: 10px; }
.room-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 10px; }
.player-card { border: 1px solid var(--border); background: var(--panel); text-align: center; padding: 13px 10px; position: relative; min-width: 0; }
.player-card .country-avatar { margin: 0 auto 7px; width: 64px; height: 70px; }
.player-card strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.player-card small { color: var(--faint); font-size: 10px; }
.player-card.self { border-color: var(--accent); }.player-card.offline { opacity: .6; }
.player-card .player-score { font: 600 22px var(--mono); margin-top: 7px; }.player-card .score-gain { color: var(--accent); font: 11px var(--mono); }
.player-result-detail { margin: 6px 0 0; color: var(--muted); font: 10px/1.45 var(--mono); overflow-wrap: anywhere; }
.player-rank { position: absolute; top: 7px; left: 9px; font: 12px var(--mono); color: var(--faint); }
.player-card.winner { border-color: #a8801f; background: #f3ecd7; }
.winner-crown { display: block; font-size: 27px; line-height: 1; margin: -5px auto 5px; color: #a8801f; }
#manage-players-list { max-height: 35dvh; overflow: auto; margin: 15px 0; }.manage-player { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }.manage-player img { width: 27px; height: 18px; object-fit: cover; }.manage-player span { flex: 1; font-size: 13px; }.manage-player small { color: var(--faint); }
.room-playlist { list-style: none; padding: 0; margin: 0 0 20px; max-height: 37dvh; overflow: auto; }
.room-playlist li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }.room-playlist li span { color: var(--faint); font: 11px var(--mono); white-space: nowrap; }.room-playlist li.current { color: var(--accent); font-weight: 600; }
.play-screen { display: flex; flex-direction: column; align-items: stretch; flex: 1; min-height: 0; width: 100%; padding: 0; overflow: hidden; }
.live-round-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 20px 7px; }.live-round-bar>div:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; }.live-round-bar strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock-wrap { display: flex; align-items: center; gap: 12px; }.clock-wrap #round-clock { font: 600 22px var(--mono); min-width: 72px; text-align: right; }.clock-wrap #round-clock.urgent { color: var(--red); }
.live-standings { display: flex; align-items: stretch; gap: 6px; padding: 0 20px 8px; overflow-x: auto; flex: 0 0 auto; }
.standing { display: flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--border); min-width: 125px; max-width: 205px; font-size: 12px; background: var(--panel); flex-shrink: 0; }.standing.self { background: var(--accent-soft); border-color: var(--accent); }.standing img { width: 24px; height: 17px; object-fit: cover; }.standing .standing-name { min-width: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }.standing .standing-rank { color: var(--faint); font: 10px var(--mono); }.standing strong { margin-left: auto; font: 600 12px var(--mono); }.standing .done-dot { color: var(--accent); }
.game-stage { position: relative; flex: 1; min-height: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); overflow: hidden; }
#game-frame { display: block; width: 100%; height: 100%; border: none; }
.game-cover { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 25px; background: #f5f1ecf5; }.game-cover h2 { font-size: clamp(28px, 5vw, 58px); letter-spacing: -.04em; margin: 10px 0; }.game-cover p { font-size: 14px; color: var(--faint); max-width: 460px; }.game-cover.countdown h2 { font: 700 100px var(--mono); }.game-cover.countdown { background: #f5f1eccf; }.game-cover.submitted { background: #f5f1eceb; }
.live-note { text-align: center; color: var(--faint); font: 10px var(--mono); margin: 6px 8px; flex-shrink: 0; }
.party-dialog { width: min(500px, calc(100% - 30px)); max-height: calc(100dvh - 30px); border: 1px solid var(--text); background: var(--panel); color: var(--text); padding: 27px; }.party-dialog::backdrop { background: #13110f80; }.party-dialog h2 { margin: 8px 0 16px; font-size: 29px; letter-spacing: -.03em; }.party-dialog p { font-size: 14px; color: var(--muted); line-height: 1.55; }.party-dialog .eyebrow { font-size: 10px; }.party-dialog .form-note { font-size: 12px; }.dialog-close { position: absolute; right: 12px; top: 8px; background: transparent; border: none; font-size: 25px; cursor: pointer; }.score-explanation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-block: 1px solid var(--border); padding: 15px 0; }.score-explanation strong { display: block; font: 600 35px var(--mono); }.score-explanation span { font-size: 11px; color: var(--faint); }.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (min-width: 850px) and (max-height: 720px) { .party-content { padding-top: 13px; padding-bottom: 13px; }.setup-heading { margin-bottom: 10px; }.setup-heading h1 { font-size: 29px; }.identity-preview { height: 76px; }.identity-preview .country-avatar { width: 65px; height: 72px; }.country-choices { max-height: 100px; }.party-playlist { max-height: 24dvh; }.room-heading { padding-bottom: 14px; margin-bottom: 15px; } }
@media (max-width: 750px) { .welcome { padding: 18px 23px; }.welcome-main { grid-template-columns: 1fr; gap: 0; }.welcome-art { display: none; }.welcome-copy { max-width: 550px; margin: auto; }.welcome-copy h1 { font-size: clamp(37px, 8vw, 58px); }.welcome-bottom span:last-child { display: none; }.welcome-description { font-size: 15px; }.party-top { padding: 9px 14px; gap: 10px; }.party-brand { font-size: 20px; }#session-heading { display: none; }.party-content { padding: 18px; }.party-setup-grid { gap: 20px; grid-template-columns: 1fr; }.identity-panel { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 15px; }.setup-heading { align-items: start; gap: 12px; flex-direction: column; }.setup-heading h1 { font-size: 29px; }.setup-heading .eyebrow { font-size: 9px; }.setup-tabs { width: 100%; }.setup-tabs button { flex: 1; }.country-choices { max-height: 110px; }.identity-preview { float: right; width: 46%; height: 82px; margin-left: 10px; gap: 5px; }.identity-preview .country-avatar { width: 52px; height: 60px; }.identity-preview strong { font-size: 14px; }.identity-preview .eyebrow { font-size: 9px; }.identity-panel h2 { font-size: 17px; }.identity-panel #player-name { width: 51%; }.identity-panel .field-label[for="country-search"] { clear: both; padding-top: 7px; }.playlist-item { gap: 5px; grid-template-columns: 20px 1fr 73px auto; }.playlist-item-actions button { width: 22px; }.party-playlist { max-height: 200px; }.join-panel { width: 100%; }.room-heading { align-items: stretch; flex-direction: column; gap: 15px; padding-bottom: 17px; }.room-heading h1 { font-size: 30px; }.room-code { padding: 9px 16px; }.room-code strong { font-size: 30px; }.room-code .form-note { display: none; }.room-columns { grid-template-columns: 1fr; gap: 23px; }.player-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }.player-card .country-avatar { width: 50px; height: 57px; }.player-card { padding: 10px 7px; }.room-playlist { max-height: 220px; }.live-round-bar { padding: 6px 12px; }.live-round-bar>div:first-child { display: block; }.live-round-bar strong { display: block; font-size: 13px; }.live-round-bar .eyebrow { font-size: 9px; }.clock-wrap { gap: 6px; }.clock-wrap #round-clock { font-size: 20px; min-width: 61px; }.clock-wrap .small-button { font-size: 10px; padding: 5px; }.live-standings { padding: 0 12px 6px; }.standing { padding: 4px 6px; font-size: 11px; min-width: 112px; }.standing img { width: 21px; height: 15px; }.live-note { font-size: 8px; }.party-dialog { padding: 21px; }.party-dialog h2 { font-size: 25px; }.party-dialog p { font-size: 12px; }.party-dialog .form-note { font-size: 11px; } }
@media (max-height: 600px) { .welcome-top { padding-bottom: 10px; }.welcome-copy h1 { font-size: 35px; margin: 10px 0; }.welcome-copy .eyebrow { margin: 8px 0; }.welcome-actions { margin-top: 14px; }.welcome-description { font-size: 13px; margin: 8px 0; }.welcome-note { margin-top: 10px; }.solo-link { padding-top: 10px; }.welcome-bottom { padding-top: 8px; }.party-dialog { padding: 16px 22px; }.party-dialog h2 { font-size: 24px; margin: 5px 0 10px; }.party-dialog p { font-size: 12px; margin: 9px 0; }.score-explanation { padding: 7px 0; }.score-explanation strong { font-size: 25px; } }
@media (max-width: 450px) { .party-top { padding-inline: 10px; gap: 7px; }.party-top .party-brand { font-size: 18px; }.party-top-tools { gap: 5px; }.party-top-tools .small-button { padding: 5px 6px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .welcome-art .country-avatar { animation: none; } }

/* Medal standings are separate from each game's own measurement. */
.medal-badge { display:inline-flex; align-items:center; justify-content:center; gap:3px; color:var(--text); font:11px var(--mono); white-space:nowrap; }
.medal-symbol { display:inline-grid; place-items:center; min-width:22px; height:22px; border-radius:50%; background:#dfd7c7; font:700 10px var(--mono); border:1px solid #b0a592; }
.medal-gold .medal-symbol,.medal-silver .medal-symbol,.medal-bronze .medal-symbol { font-size:19px; background:none; border:0; }
.medal-copper .medal-symbol { background:#c48b62; }.medal-tin .medal-symbol { background:#bbc5c9; }.medal-plastic .medal-symbol { background:#97cdb7; }.medal-cardboard .medal-symbol { background:#ccb080; border-radius:3px; }.medal-damp-napkin .medal-symbol { background:#e4e8e4; border-radius:3px 8px 4px 6px; border-style:dashed; transform:rotate(-7deg); }
.medal-collection { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 8px; margin:7px 0 2px; }
.medal-leader-banner { padding:10px 14px; color:#624800; background:#f4ebce; border:1px solid #c5a44e; font:600 13px/1.4 var(--display); }
.round-award { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:8px; font-size:11px; }
.medal-table { width:100%; table-layout:fixed; border-collapse:collapse; margin-bottom:15px; font:12px var(--mono); }
.medal-table th,.medal-table td { padding:7px 2px; text-align:center; border-bottom:1px solid var(--border); }
.medal-table th:first-child { width:34px; }.medal-table th:nth-child(2) { width:95px; text-align:left; overflow-wrap:anywhere; }
.medal-table .medal-leader { background:#f4ebce; }.medal-table .medal-player { font:600 12px var(--display); }
.live-medal-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:3px 12px; padding:0 20px 6px; font:10px/1.3 var(--mono); }
.live-medal-heading strong { color:#735612; }.live-medal-heading span { color:var(--muted); }
.live-standings { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); overflow:visible; }
.standing { max-width:none; min-width:0; flex-wrap:wrap; gap:3px 6px; }
.standing .medal-collection { flex:1 1 100%; margin:1px 0; justify-content:flex-start; gap:3px 6px; }
.standing .medal-collection small,.live-round-rank { color:var(--faint); font:9px var(--mono); }
.standing.leader { border-top:2px solid #b59135; }.standing .standing-rank { font-weight:bold; color:var(--text); }
.standing .medal-symbol { min-width:17px; height:17px; }.standing .medal-badge { font-size:9px; }
.medal-order-guide { padding:10px 0; border-block:1px solid var(--border); }
.medal-order-guide,#live-medal-order { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.medal-badge .medal-symbol { min-width:28px; width:28px; height:28px; background:none; border:0; border-radius:0; transform:none; }
.medal-symbol img { display:block; width:inherit!important; height:inherit!important; object-fit:contain; border:0; }
.medal-badge:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.medal-order-guide .medal-symbol { width:40px; height:40px; }
.medal-tooltip { position:fixed; z-index:1000; pointer-events:none; padding:6px 10px; max-width:calc(100vw - 16px); border:1px solid var(--text); color:var(--panel); background:var(--text); font:12px var(--display); box-shadow:0 3px 10px #0002; }
@media(max-width:750px) { .live-medal-heading { padding:0 12px 5px; font-size:9px; }.live-standings { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }.standing { padding:3px; }.standing img { width:17px; height:12px; }.standing .standing-name { flex-basis:100%; font-size:10px; }.standing .medal-collection { gap:1px 4px; }.standing .medal-symbol { min-width:13px; height:14px; font-size:8px; }.standing .medal-gold .medal-symbol,.standing .medal-silver .medal-symbol,.standing .medal-bronze .medal-symbol { font-size:13px; }.medal-table { font-size:10px; }.medal-table th:first-child { width:27px; }.medal-table th:nth-child(2) { width:64px; }.medal-table .medal-player { font-size:11px; }.medal-table .medal-symbol { min-width:20px; height:20px; }.medal-leader-banner { font-size:12px; } }
.game-picker-row #game-picker { flex:1; min-width:0; }
.party-select-trigger { width:100%; min-width:0; position:relative; border:1px solid var(--border); background:var(--panel); color:var(--text); text-align:left; padding:7px 28px 7px 10px; cursor:pointer; }
.party-select-trigger:hover,.party-select-trigger[aria-expanded="true"] { border-color:var(--accent); background:var(--accent-soft); }
.party-select-trigger:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.party-select-trigger .select-caption { display:block; font:9px var(--mono); text-transform:uppercase; color:var(--faint); letter-spacing:.04em; }
.party-select-trigger strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 13px var(--display); margin-top:3px; }
.select-chevron { position:absolute; right:9px; top:50%; transform:translateY(-50%); }
.party-select-menu { position:fixed; z-index:100; overflow-y:auto; border:1px solid var(--text); background:var(--panel); box-shadow:0 8px 24px #0003; padding:4px; box-sizing:border-box; }
.party-select-option { display:block; width:100%; border:0; background:none; padding:9px 11px; text-align:left; color:var(--text); font:13px var(--display); cursor:pointer; }
.party-select-option[aria-selected="true"] { background:var(--accent-soft); font-weight:700; }
.party-select-option[aria-selected="true"]::after { content:'✓'; float:right; color:var(--accent); }
.party-select-option:hover,.party-select-option:focus { outline:0; background:var(--text); color:var(--bg); }
.playlist-item { grid-template-columns:18px minmax(85px,1fr) minmax(200px,2fr) 25px; align-items:center; gap:7px; }
.playlist-item-actions { flex-direction:column; }.playlist-item-actions button { height:21px; }
.entry-settings { display:flex; align-items:center; gap:5px; min-width:0; }
.entry-settings>.party-select { flex:1; min-width:85px; }
.entry-settings>.round-counter { flex:1; min-width:85px; }
.entry-settings>.party-select>.party-select-trigger,.entry-settings>.round-counter { height:54px; box-sizing:border-box; }
.entry-settings>.party-select>.party-select-trigger { display:flex; flex-direction:column; justify-content:center; }
.review-status { margin:0; padding:3px 12px; color:var(--accent); background:var(--accent-soft); text-align:center; font:11px var(--mono); }
.standing .medal-badge .medal-symbol { width:18px; height:18px; min-width:18px; }
.live-medal-heading .medal-symbol { width:20px; height:20px; min-width:20px; }
@media(max-width:750px) {
  .live-standings.few-players { grid-template-columns:repeat(var(--party-columns,2),minmax(0,1fr)); }
  .few-players .standing .standing-name { flex:1; min-width:0; }
  .few-players .standing .medal-collection { flex:1; }
}
.entry-settings>.party-select:only-child { max-width:180px; }
.round-counter { border:1px solid var(--border); padding:5px 8px; min-width:0; }
.round-counter .select-caption { display:block; color:var(--faint); font:9px var(--mono); text-transform:uppercase; }
.round-counter-controls { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:3px; }
.round-counter button { width:28px; height:28px; border:1px solid var(--border); background:var(--panel); color:var(--text); cursor:pointer; font:18px var(--mono); }
.round-counter button:hover:not(:disabled) { background:var(--accent-soft); border-color:var(--accent); }
.round-counter button:disabled { opacity:.3; cursor:default; }
.round-counter button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.round-counter output { font:600 16px var(--mono); min-width:2ch; text-align:center; }
.difficulty-rounds { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; flex:2; min-width:180px; }
.difficulty-rounds .round-counter { padding:5px; }.difficulty-rounds button { width:24px; }
.difficulty-note { grid-column:1/-1; color:var(--faint); font:11px var(--display); }
@media(max-width:450px) {
  .playlist-item { grid-template-columns:14px minmax(62px,1fr) minmax(120px,1.8fr) 21px; gap:4px; }
  .playlist-item strong { font-size:11px; }.playlist-item-actions button { width:21px; }
  .entry-settings { flex-wrap:wrap; }.entry-settings>.party-select,.entry-settings>.round-counter { min-width:100%; }
  .difficulty-rounds { grid-template-columns:1fr; min-width:100%; }
  .difficulty-rounds .round-counter { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .difficulty-rounds .round-counter-controls { width:110px; margin:0; }
  .room-playlist li { flex-wrap:wrap; }.room-playlist li span { white-space:normal; }
}
.game-information-dialog { width:min(740px,calc(100% - 24px)); padding:22px; }
.game-guide-tabs { display:flex; gap:6px; margin:0 0 12px; }
.game-guide-tabs button { border:1px solid var(--border); padding:7px 12px; background:var(--panel); color:var(--text); font:12px var(--display); cursor:pointer; }
.game-guide-tabs button[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-soft); }
#game-information-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
#game-information-list button { text-align:left; border:1px solid var(--border); padding:7px; background:var(--panel); color:var(--text); font:12px var(--display); cursor:pointer; }
#game-information-list button[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-soft); }
.game-information-copy { border-top:1px solid var(--border); margin-top:14px; min-height:130px; }.game-information-copy h3 { font-size:16px; margin:12px 0 5px; }.game-information-copy p { margin:5px 0; }
@media(max-width:600px) { .game-information-dialog { padding:15px; }#game-information-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }#game-information-list button { font-size:11px; padding:5px; }.game-information-dialog h2 { font-size:22px; margin:0 0 10px; }.game-information-copy { margin-top:8px; min-height:120px; }.game-information-copy p { font-size:12px; line-height:1.35; } }
@media(max-height:550px) and (min-width:601px) { #game-information-list { grid-template-columns:repeat(4,minmax(0,1fr)); }#game-information-list button { padding:4px; }.game-information-copy { min-height:0; }.game-information-dialog { padding:16px; } }
.entry-score { font:600 12px var(--mono); color:var(--accent); margin-top:8px; }
.clock-wrap #round-clock.urgent { animation:crunch-clock 1s ease-in-out infinite; color:var(--red); background:#b7463020; outline:2px solid currentColor; padding:3px 7px; border-radius:4px; }
.game-stage.crunch-time::after { content:''; position:absolute; inset:0; z-index:4; pointer-events:none; box-shadow:inset 0 0 0 3px #bd5540,inset 0 0 28px #bd554025; animation:crunch-frame 1s ease-in-out infinite; }
@keyframes crunch-clock { 50% { transform:scale(1.1); background:#b7463040; } }
@keyframes crunch-frame { 50% { opacity:.3; } }
@media(prefers-reduced-motion:reduce) { .clock-wrap #round-clock.urgent,.game-stage.crunch-time::after { animation:none; } }
