*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 18% 8%,#49325f 0,transparent 42%),#171522;color:#f7efdc;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.shell{max-width:1240px;margin:0 auto;padding:1.5rem;display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:1.5rem;align-items:start}
.hero{position:sticky;top:2rem;overflow:hidden;border:1px solid #d3a852;border-radius:18px;background:#171522;box-shadow:0 20px 60px #080711aa}
.hero img{display:block;width:100%;height:auto;max-height:calc(100vh - 4rem);object-fit:contain;object-position:center top}
main{min-width:0}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;line-height:1.2}h1{font-size:clamp(2rem,4vw,3.2rem);letter-spacing:.025em;color:#f0ca75;margin:.25rem 0 .5rem}h2{color:#ead09a;font-size:1.45rem;margin:.15rem 0 1rem}h3{color:#ead09a}
input,button,select{font:inherit;padding:.65rem .8rem;margin:.2rem;border:1px solid #72677a;border-radius:8px}input,select{background:#fbf2df;color:#292238}button{background:#d7a94f;color:#241c2c;border-color:#e3bb68;font-weight:600;cursor:pointer;transition:background .15s,transform .15s}button:hover{background:#edc76e;transform:translateY(-1px)}
section{border:1px solid #69566f;border-radius:14px;padding:1.2rem;margin:1rem 0;background:linear-gradient(145deg,#272238ee,#1c1a2bee);box-shadow:0 8px 24px #08071144}
li{margin:.5rem 0}.muted{color:#d1c3ac}.hidden{display:none}#status{letter-spacing:.04em}.game-state{display:inline-flex;align-items:center;gap:.5rem;padding:.3rem .7rem;border:1px solid #69566f;border-radius:999px;background:#211d2e}.state-light{width:.85rem;height:.85rem;border-radius:50%;display:inline-block;box-shadow:0 0 10px currentColor}.state-orange{color:#ffad42;background:#ffad42}.state-green{color:#65db7a;background:#65db7a}.state-red{color:#fa6670;background:#fa6670}.state-neutral{color:#a9a2b2;background:#a9a2b2}.state-blue{color:#62a8ff;background:#62a8ff}.admin-action{min-width:8rem}.admin-action:disabled{opacity:.45;cursor:not-allowed;transform:none}.admin-play{background:#65b96e;border-color:#82d68a;color:#102914}.admin-pause{background:#e6a445;border-color:#f2c06b;color:#33220e}.admin-stop{background:#cf5960;border-color:#e68186;color:#fff}
.activity-section{padding:.8rem 1rem;margin:.75rem 0;border-color:#8c754c;background:linear-gradient(145deg,#29243a,#1d1a29)}.activity-section summary{cursor:pointer;color:#ead09a;font-family:Georgia,"Times New Roman",serif;font-size:1.45rem;font-weight:500;line-height:1.2}.activity-events{display:grid;gap:.25rem;margin-top:.5rem}.activity-event{margin:0;padding:.3rem .5rem;border-left:2px solid #8c754c;background:#211d2eaa;overflow-wrap:anywhere}#history{font-size:.85rem}#history summary{cursor:pointer;font-weight:600;color:#ead09a}#history .history-game{margin:.8rem 0;padding:.8rem;border:1px solid #69566f;border-radius:12px;background:linear-gradient(145deg,#29243a,#1d1a29)}#history h3{font-size:1.05rem;margin:.1rem 0 .7rem}#history h4{margin:.15rem 0 .4rem;color:#ead09a;font-size:.9rem}#history ol{margin:.2rem 0;padding-left:1.4rem}#history li{margin:.35rem 0}#history .history-owner{color:#bdb1c7}.history-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.history-columns>div+div{border-left:1px solid #574c62;padding-left:1rem}
#scores b{color:#f0ca75}.score-player{color:#ead09a;font-weight:700}.score-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:.45rem;margin:.3rem 0 .8rem}.score-logout{position:absolute;top:.55rem;right:.55rem;width:1.75rem;height:1.75rem;padding:0;margin:0;border:1px solid #fa6670;border-radius:50%;background:#fa667022;color:#fa7c84;font-size:1rem;line-height:1}.score-logout:hover{background:#fa6670;color:#fff;transform:none}#submit{position:relative;padding-top:2.3rem}#submit h2{position:absolute;top:.6rem;left:.75rem;margin:0}.score-tile{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:.65rem .4rem;border:1px solid #69566f;border-radius:12px;background:linear-gradient(145deg,#29243a,#1d1a29);text-align:center}.score-tile-1{grid-column:2;grid-row:1;min-height:112px;border-color:#d3a852;background:linear-gradient(145deg,#40354a,#282238)}.score-tile-2{grid-column:1;grid-row:2;min-height:92px}.score-tile-3{grid-column:3;grid-row:2;min-height:82px}.score-rank{padding:.05rem .45rem;border:1px solid #8c754c;border-radius:999px;color:#f0ca75;font-size:.75rem;font-weight:700;text-align:center}.score-player{overflow-wrap:anywhere;text-align:center}.score-points{margin-top:.15rem;color:#c1b89f;font-size:.8rem;text-align:center}.score-rows{width:100%;border-collapse:collapse;font-size:.9rem}.score-rows th,.score-rows td{padding:.5rem .6rem;text-align:left;border-bottom:1px solid #514758}.score-rows th{color:#ead09a;font-size:.8rem}.score-rows tbody tr:nth-child(even){background:#211d2e66}.score-rows .score-row-rank{width:5rem;color:#f0ca75;white-space:nowrap}.score-rows .score-row-name{font-weight:700;color:#ead09a}.score-rows .score-row-points{text-align:right;color:#f0ca75;font-weight:700;white-space:nowrap}#recent button{font-size:.9rem}#recent button:disabled{opacity:.6;cursor:wait}.pagination{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:.6rem 0}.pagination button{padding:.3rem .6rem;font-size:.8rem}.admin-actions{display:flex;gap:.55rem;margin:.8rem 0 .55rem}.admin-new-game{margin:.65rem 0 .8rem;padding:.45rem .6rem;border:1px solid #514758;border-radius:8px}.admin-new-game summary{cursor:pointer;color:#ead09a;font-weight:600}.admin-legend{display:grid;gap:.15rem;margin:.45rem .3rem .8rem;color:#a9a2b2;font-size:.75rem}.admin-logout{display:block;margin-top:1.2rem}details>summary{cursor:pointer;color:#ead09a;font-weight:600}.player-help{font-size:.85rem;color:#c1b89f;margin:.7rem 0 1rem;padding:.7rem .9rem;border:1px solid #69566f;border-radius:10px;background:#211d2eaa}.player-help summary{font-size:.9rem;cursor:pointer;color:#ead09a;font-weight:600}.player-help p{margin:.45rem 0}
.play-mode .shell{max-width:1240px;grid-template-columns:minmax(220px,280px) minmax(0,1fr);padding:1.5rem}.play-mode .hero{display:block}.play-mode main{max-width:980px;width:100%;margin:0 auto}.play-mode #gameTitle{font-size:clamp(2rem,5vw,3.6rem);margin:.4rem 0}.play-mode #status{margin:.8rem 0 1.2rem}.play-mode #recentSection{padding:clamp(1rem,3vw,2rem);border-color:#8c754c;background:linear-gradient(145deg,#2b2635,#1d1b27);box-shadow:0 16px 44px #08071166}.play-mode #recentSection h2{text-align:center}.play-mode .play-hint{display:block}.play-hint{display:none;text-align:center;color:#c1b89f;margin:-.55rem 0 1rem}.use-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:.55rem;list-style:none;padding:0;margin:0}.use-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,.32fr);gap:.65rem;align-items:stretch;padding:.6rem;border:1px solid #574c62;border-radius:10px;background:#171522aa}.use-card-main{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-width:0}.use-card-text{font-size:1rem;font-weight:600;overflow-wrap:anywhere}.use-card-meta{display:grid;grid-template-rows:1fr 1fr;min-width:0;border-left:1px solid #574c62}.use-card-hit,.use-card-owner{display:flex;align-items:center;justify-content:center;gap:.35rem;min-width:0;padding:.3rem;text-align:center}.use-card-hit{border-bottom:1px solid #574c62}.use-card-count{color:#f0ca75;font-size:.9rem;font-weight:700}.use-card-owner{font-size:.7rem;color:#bdb1c7;overflow-wrap:anywhere}.use-card-owner strong{color:#ead09a;font-weight:700}.use-card-action{flex:none;margin:0;padding:.3rem .45rem;border:1px solid #94c99a;border-radius:7px;background:linear-gradient(135deg,#b8dfaa,#80c891);color:#14251a;font-weight:700;line-height:1;box-shadow:0 3px 12px #5fbd7540}.use-card-action:hover{background:linear-gradient(135deg,#d3efc4,#9cdaad);transform:translateY(-1px)}.use-card-action:disabled{opacity:.6;cursor:wait;transform:none}.play-mode #submit{width:100%;margin:1rem 0}@media(max-width:760px){.play-mode .shell{grid-template-columns:1fr;gap:.55rem;padding:.65rem}.play-mode .hero{position:relative;top:auto;width:100%;max-width:none;margin:0 auto;border-radius:12px;box-shadow:0 5px 18px #08071166}.play-mode .hero img{height:auto;max-height:none;object-fit:contain;object-position:center}.use-card{padding:.65rem}.use-card-text{font-size:.95rem}}
.admin-panel{margin-top:1.5rem;padding:.65rem .8rem;border:1px solid #514758;border-radius:10px;color:#aea4b3;font-size:.85rem}.admin-panel summary{font-size:.85rem}.admin-panel[open]{background:#211d2e88}.admin-panel input,.admin-panel button{font-size:.9rem}.admin-data{margin-top:1rem;overflow-x:auto}.admin-list{margin:.65rem 0;padding:.45rem .6rem;border:1px solid #514758;border-radius:8px}.admin-list summary{cursor:pointer;color:#ead09a;font-weight:600}.admin-list[open]{background:#211d2e88}.admin-list table{width:100%;border-collapse:collapse;font-size:.85rem}.admin-data th,.admin-data td{text-align:left;padding:.4rem;border-bottom:1px solid #514758;vertical-align:top}.admin-data th{color:#ead09a}.admin-data button{padding:.35rem .55rem;font-size:.8rem;white-space:nowrap}
.score-v2-panel{margin-top:1.5rem;padding:.7rem .9rem;border:1px solid #8c754c;border-radius:10px;background:#211d2eaa;color:#d1c3ac;font-size:.85rem}.score-v2-panel summary{cursor:pointer;color:#ead09a;font-size:.95rem;font-weight:600}.score-v2-note{margin:.45rem 0}.score-v2-table-wrap{overflow-x:auto;border:1px solid #514758;border-radius:8px}.score-v2-table{width:100%;border-collapse:collapse;font-size:.82rem}.score-v2-table th,.score-v2-table td{padding:.55rem .65rem;text-align:left;border-bottom:1px solid #514758;vertical-align:middle}.score-v2-table th{position:sticky;top:0;background:#211d2e;color:#ead09a;white-space:nowrap}.score-v2-table tbody tr:nth-child(even){background:#211d2e66}.score-v2-table tbody tr:hover{background:#49325f66}.score-v2-table th button{margin:0;padding:.2rem .25rem;border:0;background:none;color:inherit;font:inherit;text-align:left}.score-v2-table th button:hover{color:#f0ca75;background:none;transform:none}.score-v2-multiplier{display:inline-block;min-width:2.6rem;padding:.1rem .45rem;border-radius:999px;text-align:center;font-weight:700}.score-v2-x1{background:#f0ca7540;color:#f0ca75;border:1px solid #f0ca7580}.score-v2-x2{background:#ff9b4240;color:#ffad42;border:1px solid #ffad4280}.score-v2-x3{background:#fa667040;color:#fa7c84;border:1px solid #fa667080}.score-v2-number{text-align:center!important;font-variant-numeric:tabular-nums}.score-v2-points{color:#f0ca75;font-weight:700;font-variant-numeric:tabular-nums}.score-v2-total{margin:.8rem 0 0;color:#f0ca75;font-weight:700}footer{max-width:1240px;margin:0 auto;padding:0 2rem 1.2rem;display:flex;align-items:center;justify-content:flex-end;gap:.4rem;color:#84909a;font-size:.72rem;letter-spacing:.04em}footer img{width:24px;height:24px;object-fit:contain}@media(max-width:760px){footer{padding:0 1rem 1rem}}
@media(max-width:760px){.activity-section summary{font-size:1.2rem}.admin-actions{gap:.3rem;margin-bottom:1rem}.admin-action{min-width:0;flex:1}.shell{grid-template-columns:1fr;gap:.55rem;padding:.65rem}.hero{position:relative;top:auto;width:100%;max-width:none;margin:0 auto;border-radius:12px;box-shadow:0 5px 18px #08071166}.hero img{height:auto;max-height:none;object-fit:contain;object-position:center}main{width:100%}h1{font-size:1.75rem;margin:.55rem 0 .2rem}h2{font-size:1.2rem;margin:0 0 .55rem}#status{margin:.1rem 0 .45rem}.shell>main>label,.shell>main>select{font-size:.9rem}section{padding:.75rem;margin:.55rem 0;border-radius:10px;box-shadow:none}input,button,select{padding:.55rem .65rem;margin:.15rem;font-size:.92rem}.player-help{margin:.45rem 0 .65rem;padding:.55rem .7rem;font-size:.8rem}.player-help p{margin:.35rem 0}.admin-panel{margin-top:1rem;padding:.5rem .65rem}.admin-panel[open]{padding:.7rem}li{margin:.3rem 0}footer{padding:.2rem .7rem .7rem}}@media(max-width:760px){.history-columns{grid-template-columns:1fr;gap:.6rem}.history-columns>div+div{border-left:0;border-top:1px solid #574c62;padding: .6rem 0 0}}

.footer-easter-egg{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:transparent;line-height:0}.footer-easter-egg:hover{background:transparent;transform:scale(1.08)}#publicGameDialog{width:min(30rem,calc(100vw - 2rem));padding:1.2rem;border:1px solid #d3a852;border-radius:14px;background:#211d2e;color:#f7efdc;box-shadow:0 20px 60px #080711aa;font:inherit}#publicGameDialog::backdrop{background:#080711bb}#publicGameDialog h2{margin:0 0 .4rem}#publicGameDialog form{display:grid;gap:.55rem}#publicGameDialog label{color:#ead09a;font-weight:600}#publicGameDialog input{width:100%;margin:0}.public-game-actions{display:flex;justify-content:flex-end;gap:.45rem;margin-top:.35rem}.public-game-actions button{margin:0}.public-game-cancel{background:#514758;border-color:#72677a;color:#f7efdc}
@media(max-width:760px){.footer-easter-egg{padding:0}.public-game-actions{flex-wrap:wrap}}
.spectator-mode .use-card-text,.spectator-mode .score-v2-excuse-text{filter:blur(6px);user-select:none}
.spectator-hint{margin:.25rem 0 .75rem;color:#c1b89f;text-align:center}
.status-toolbar{display:flex;align-items:center;gap:1em;flex-wrap:nowrap;margin-top:.75rem}
.status-toolbar #status{flex:0 1 auto;min-width:0;margin:.8rem 0}
.status-toolbar #status .game-state{max-width:100%}
.game-quick-controls{display:inline-flex;flex:none;align-items:center}
.game-quick-controls.hidden{display:none}
.game-quick-controls button{min-width:5rem;margin:0}
.game-quick-controls .game-state-action{width:5rem;flex:0 0 5rem}
.game-state-action{width:8rem;flex:0 0 8rem;justify-content:center;text-align:center;margin:0;font:inherit;cursor:pointer;box-shadow:none}
.game-state-action:hover{transform:none}
.game-state-action-start,.game-state-action-start:hover{background:#65b96e;border-color:#82d68a;color:#102914}
.game-state-action-pause,.game-state-action-pause:hover{background:#e6a445;border-color:#f2c06b;color:#33220e}
.game-state-action-stop,.game-state-action-stop:hover{background:#cf5960;border-color:#e68186;color:#fff}
.game-state-action:disabled{opacity:.45;cursor:not-allowed;transform:none}
.game-create-button{width:2.5rem;flex:0 0 2.5rem;padding:.3rem;background:#211d2e;border-color:#d3a852;color:#f0ca75;font-size:1.25rem}
.game-create-button:hover{background:#332b40;border-color:#f0ca75;color:#f0ca75}
@media(max-width:760px){.status-toolbar{gap:1em;flex-wrap:wrap}.status-toolbar #status{margin:.1rem 0}.play-mode .status-toolbar #status{margin:.1rem 0}}
#gameTitle{font-size:clamp(2rem,5vw,3.6rem)}
.bubble-select{display:block;width:min(100%,24rem);min-height:2.25rem;margin:.4rem .2rem .75rem;padding:.3rem 2.25rem .3rem .7rem;border:1px solid #69566f;border-radius:999px;background-color:#211d2e;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23ead09a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;background-size:.9rem;color:#f7efdc;cursor:pointer;appearance:none}
.bubble-select:focus-visible{outline:2px solid #f0ca75;outline-offset:2px}
.bubble-select:disabled{opacity:.55;cursor:not-allowed}
.bubble-select option{background:#211d2e;color:#f7efdc}
:root{--radius-control:16px;--radius-card:16px;--radius-panel:16px}
input,button,select{border-radius:var(--radius-control)}
section,.admin-panel,.score-v2-panel,#publicGameDialog{border-radius:var(--radius-panel)}
.admin-list,.score-tile,.use-card,.player-help,.score-v2-table-wrap{border-radius:var(--radius-card)}
#history .history-game{border-radius:var(--radius-card)}
.activity-event{border-radius:var(--radius-control)}
.score-rows{border:1px solid #514758;border-collapse:separate;border-spacing:0;border-radius:var(--radius-card);overflow:hidden}
.hero,.play-mode .hero,.game-state,.score-logout,.score-rank,.use-card-action,.score-v2-multiplier,.bubble-select{border-radius:16px}
#adminLoginPanel{margin-top:.75rem}
.game-select-row{display:flex;align-items:center;gap:.5rem;width:min(100%,24rem);margin:.4rem .2rem .75rem}
.game-select-row .bubble-select{width:100%;max-width:none;min-width:0;flex:1 1 0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.hero-theme-toggle{display:block;width:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;color:inherit;line-height:0;box-shadow:none}
.hero-theme-toggle:hover,.hero-theme-toggle:focus{background:transparent;transform:none}
.hero-theme-toggle:focus-visible{outline:3px solid #f0ca75;outline-offset:-4px}
body.dark-theme{
  color-scheme:dark;
  --theme-bg:#160D22;
  --theme-surface:#281633;
  --theme-secondary:#4A2854;
  --theme-accent:#D6A94F;
  --theme-accent-light:#F2D58A;
  --theme-text:#F6EBD2;
  --theme-muted:#C8B8CE;
  --theme-burgundy:#762E50;
  --theme-teal:#287C78;
  background:radial-gradient(ellipse at 18% 8%,var(--theme-secondary) 0,transparent 42%),var(--theme-bg);
  color:var(--theme-text);
}
body.dark-theme .hero{border-color:var(--theme-accent);background:var(--theme-bg)}
body.dark-theme .hero-theme-toggle:focus-visible,
body.dark-theme button:focus-visible,
body.dark-theme input:focus-visible,
body.dark-theme select:focus-visible{outline-color:var(--theme-accent-light)}
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme details>summary,
body.dark-theme .activity-section summary,
body.dark-theme #history h4{color:var(--theme-accent-light)}
body.dark-theme input,
body.dark-theme select{background-color:var(--theme-surface);border-color:var(--theme-secondary);color:var(--theme-text)}
body.dark-theme input::placeholder{color:var(--theme-muted)}
body.dark-theme button{background:var(--theme-accent);border-color:var(--theme-accent-light);color:var(--theme-bg)}
body.dark-theme button:hover{background:var(--theme-accent-light)}
body.dark-theme .hero-theme-toggle,
body.dark-theme .hero-theme-toggle:hover{background:transparent;border-color:transparent}
body.dark-theme .hero-theme-toggle:hover,
body.dark-theme .hero-theme-toggle:focus{background:transparent}
body.dark-theme section,
body.dark-theme .activity-section,
body.dark-theme #history .history-game,
body.dark-theme .admin-panel,
body.dark-theme .score-v2-panel,
body.dark-theme .player-help,
body.dark-theme #publicGameDialog{border-color:var(--theme-secondary);background:linear-gradient(145deg,var(--theme-surface),var(--theme-bg));color:var(--theme-text)}
body.dark-theme .play-mode #recentSection{border-color:var(--theme-accent);background:linear-gradient(145deg,var(--theme-surface),var(--theme-bg))}
body.dark-theme .score-tile,
body.dark-theme .admin-list,
body.dark-theme .admin-list[open],
body.dark-theme .use-card,
body.dark-theme .score-v2-table-wrap{border-color:var(--theme-secondary);background:var(--theme-surface)}
body.dark-theme .score-tile-1{border-color:var(--theme-accent);background:linear-gradient(145deg,var(--theme-secondary),var(--theme-surface))}
body.dark-theme .game-state,
body.dark-theme .activity-event{border-color:var(--theme-secondary);background:var(--theme-surface)}
body.dark-theme .activity-event{border-left-color:var(--theme-teal)}
body.dark-theme .activity-event,
body.dark-theme .muted,
body.dark-theme .admin-legend,
body.dark-theme .history-owner,
body.dark-theme .play-hint,
body.dark-theme .player-help,
body.dark-theme .score-v2-panel,
body.dark-theme .score-points,
body.dark-theme .score-v2-note,
body.dark-theme .use-card-owner,
body.dark-theme footer{color:var(--theme-muted)}
body.dark-theme .score-player,
body.dark-theme .score-rank,
body.dark-theme #scores b,
body.dark-theme .score-rows .score-row-rank,
body.dark-theme .score-rows .score-row-points,
body.dark-theme .score-points b,
body.dark-theme .score-v2-points,
body.dark-theme .score-v2-total,
body.dark-theme .use-card-count,
body.dark-theme .use-card-owner strong{color:var(--theme-accent-light)}
body.dark-theme .history-columns>div+div,
body.dark-theme .use-card-meta,
body.dark-theme .use-card-hit,
body.dark-theme .score-rows th,
body.dark-theme .score-rows td,
body.dark-theme .score-v2-table th,
body.dark-theme .score-v2-table td,
body.dark-theme .admin-data th,
body.dark-theme .admin-data td{border-color:var(--theme-secondary)}
body.dark-theme .score-rows tbody tr:nth-child(even),
body.dark-theme .score-v2-table tbody tr:nth-child(even){background:var(--theme-bg)}
body.dark-theme .score-v2-table tbody tr:hover{background:var(--theme-secondary)}
body.dark-theme .score-rows th,
body.dark-theme .score-v2-table th{background:var(--theme-surface);color:var(--theme-accent-light)}
body.dark-theme .score-rows .score-row-name,
body.dark-theme .admin-list summary,
body.dark-theme .admin-data th{color:var(--theme-accent-light)}
body.dark-theme .bubble-select{background-color:var(--theme-surface);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23F2D58A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");color:var(--theme-text)}
body.dark-theme .bubble-select option{background:var(--theme-surface);color:var(--theme-text)}
body.dark-theme .game-create-button,
body.dark-theme .game-create-button:hover{background:var(--theme-surface);border-color:var(--theme-accent);color:var(--theme-accent-light)}
body.dark-theme .game-state-action-start,
body.dark-theme .game-state-action-start:hover,
body.dark-theme .admin-play{background:#65b96e;border-color:#82d68a;color:#102914}
body.dark-theme .game-state-action-pause,
body.dark-theme .game-state-action-pause:hover,
body.dark-theme .admin-pause{background:#e6a445;border-color:#f2c06b;color:#33220e}
body.dark-theme .game-state-action-stop,
body.dark-theme .game-state-action-stop:hover,
body.dark-theme .admin-stop{background:var(--theme-burgundy);border-color:var(--theme-burgundy);color:var(--theme-text)}
body.dark-theme .use-card-action,
body.dark-theme .use-card-action:hover{background:var(--theme-teal);border-color:var(--theme-teal);color:var(--theme-text)}
body.dark-theme .score-logout,
body.dark-theme .score-logout:hover{background:var(--theme-burgundy);border-color:var(--theme-burgundy);color:var(--theme-text)}
body.dark-theme .score-v2-x1{background:#d6a94f40;border-color:#d6a94f80;color:var(--theme-accent-light)}
body.dark-theme .score-v2-x2{background:#287c7840;border-color:#287c7880;color:#83d6ce}
body.dark-theme .score-v2-x3{background:#762e5040;border-color:#762e5080;color:#e3a0bd}
body.dark-theme #publicGameDialog label{color:var(--theme-accent-light)}
body.dark-theme #publicGameDialog::backdrop{background:#160d22cc}
body.dark-theme .public-game-cancel{background:var(--theme-secondary);border-color:var(--theme-secondary);color:var(--theme-text)}

.score-podium-scene{position:relative;width:100%;margin:.5rem 0 .9rem;overflow:hidden;border-radius:var(--radius-card);isolation:isolate}
.score-podium-scene>img{display:block;width:100%;height:auto}
.score-podium-players{position:absolute;inset:0}
.score-podium-player{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.12rem;width:22%;text-align:center;line-height:1.2;color:#fff0d0;text-shadow:0 1px 5px #100a19;overflow-wrap:anywhere}
.score-podium-player span{font-size:clamp(.65rem,1.35vw,.95rem);font-weight:700}
.score-podium-player strong{font-size:clamp(.58rem,1.15vw,.8rem);color:#f0ca75}
.score-podium-player-1{left:39%;top:51%}
.score-podium-player-2{left:14%;top:63%}
.score-podium-player-3{left:65%;top:66%}
.score-table-title{margin:.25rem 0 .5rem;font-size:1rem}
.score-rows tbody tr:first-child .score-row-rank{color:#f0ca75;font-weight:700}
@media(max-width:500px){.score-podium-player{width:24%}.score-podium-player-1{left:38%}.score-podium-player-2{left:13%}.score-podium-player-3{left:64%}.score-podium-player span{font-size:.62rem}.score-podium-player strong{font-size:.55rem}}
.admin-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:.55rem}
.admin-actions .admin-action{width:100%;min-width:0;flex:none;margin:0;padding:.55rem .25rem}
@media(max-width:760px){.admin-actions{gap:.3rem}.admin-actions .admin-action{font-size:.8rem}}
body:not(.dark-theme){--surface-border:#69566f}
body:not(.dark-theme) section,
body:not(.dark-theme) .activity-section,
body:not(.dark-theme) #history .history-game,
body:not(.dark-theme) .admin-panel,
body:not(.dark-theme) .admin-list,
body:not(.dark-theme) .use-card,
body:not(.dark-theme) .score-v2-table-wrap,
body:not(.dark-theme) .score-rows{border-color:var(--surface-border)}
.activity-section,
.history-section,
.admin-panel,
.admin-panel[open]{padding:.8rem 1rem}
@media(max-width:760px){.activity-section,.history-section,.admin-panel,.admin-panel[open]{padding:.65rem .75rem}}
.activity-section,
.history-section,
.admin-panel,
.admin-panel[open]{background:#211d2e88}
body:not(.dark-theme) #scoresSection,
body:not(.dark-theme) #recentSection{background:#211d2e88;border-color:#8c754c}
body.dark-theme #scoresSection,
body.dark-theme #recentSection,
body.dark-theme.play-mode #recentSection{border-color:var(--theme-secondary)}
.history-section details[open] > #history{margin-top:.75rem}
