:root{color:#18342e;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f2f5ef;font-family:Aptos,Segoe UI Variable,Segoe UI,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,Noto Sans SC,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html{overscroll-behavior:none;background:#f2f5ef;width:100%;min-width:320px;height:100%;min-height:0;overflow:hidden}body{overscroll-behavior:none;width:100%;min-width:320px;height:100%;min-height:0;margin:0;overflow:hidden}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}button:focus-visible{outline-offset:3px;outline:3px solid #ef6a5b8c}::selection{color:#fff;background:#116b5c}#root{width:100%;height:100%;min-height:0;overflow:hidden}.app-shell{--ink:#18342e;--muted:#687b73;--paper:#fbfcf8;--line:#dce4da;--teal:#116b5c;--teal-dark:#0b5146;--coral:#ef6a5b;--coral-dark:#bd4639;width:100%;height:100dvh;min-height:0;color:var(--ink);isolation:isolate;background:linear-gradient(90deg,#ef6a5b12,#0000 34% 66%,#116b5c12),#f2f5ef;flex-direction:column;padding:16px clamp(20px,2.8vw,42px) 22px;display:flex;position:relative;overflow:hidden}.app-shell:before{z-index:-1;content:"";pointer-events:none;background-image:radial-gradient(#18342e21 .75px,#0000 .75px);background-size:22px 22px;position:fixed;inset:0;-webkit-mask-image:linear-gradient(#000000b3,#0000 82%);mask-image:linear-gradient(#000000b3,#0000 82%)}.topbar{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;width:min(100%,1540px);min-height:56px;margin:0 auto;padding-bottom:12px;display:flex}.brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{flex:none;width:42px;height:42px;display:block;position:relative}.brand-tile{border:2px solid var(--paper);border-radius:6px;width:27px;height:27px;position:absolute;box-shadow:0 3px 7px #18342e2e}.brand-tile-one{background:var(--coral);top:2px;left:2px;transform:rotate(-8deg)}.brand-tile-two{background:var(--teal);bottom:2px;right:1px;transform:rotate(8deg)}.brand-spark{color:#fff7dc;filter:drop-shadow(0 1px 1px #0d332b59);width:18px;height:18px;position:absolute;top:12px;left:12px}.brand-copy{flex-direction:column;min-width:0;display:flex}.brand-copy strong{color:var(--ink);font-family:Aptos Display,Trebuchet MS,Segoe UI,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif;font-size:22px;font-weight:800;line-height:1}.brand-copy>span{color:var(--muted);text-transform:uppercase;letter-spacing:.11em;margin-top:5px;font-size:10px;font-weight:700;line-height:1.2}.header-actions{align-items:center;gap:9px;display:flex}.match-chip{border:1px solid var(--line);background:#fbfcf8c7;border-radius:8px;align-items:center;gap:9px;min-height:40px;padding:6px 11px;display:flex}.match-chip>svg{width:17px;height:17px;color:var(--teal)}.match-chip>span{flex-direction:column;display:flex}.match-chip small{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:750;line-height:1.2}.match-chip strong{color:var(--ink);margin-top:2px;font-size:12px;font-weight:800;line-height:1.2}.icon-button,.new-round-button{cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;height:40px;transition:color .16s,background-color .16s,transform .16s;display:inline-flex}.icon-button{width:40px;color:var(--ink);background:#e7ede4;position:relative}.icon-button:hover{color:var(--teal);background:#dce7da}.new-round-button{color:#fff;background:var(--ink);gap:8px;padding:0 14px}.new-round-button:hover{background:var(--teal)}.icon-button:active,.new-round-button:active{transform:translateY(1px)}.icon-button svg,.new-round-button svg{width:17px;height:17px}.new-round-button span{font-size:12px;font-weight:750}.has-tooltip:after{z-index:60;color:#fff;content:attr(data-tooltip);white-space:nowrap;opacity:0;pointer-events:none;background:#18342e;border-radius:5px;padding:6px 8px;font-size:11px;font-weight:600;line-height:1;transition:opacity .14s,transform .14s;position:absolute;top:calc(100% + 8px);right:0;transform:translateY(-3px)}.has-tooltip:hover:after,.has-tooltip:focus-visible:after{opacity:1;transform:translateY(0)}.race-workspace{flex:auto;width:min(100%,1540px);min-height:0;margin:12px auto 0;display:flex}.race-area{flex-direction:column;gap:10px;width:100%;min-width:0;min-height:0;display:flex}.race-toolbar{border:1px solid var(--line);background:#fbfcf8c2;border-radius:8px;flex:none;grid-template-columns:minmax(180px,.8fr) minmax(270px,1.2fr) auto;align-items:center;gap:18px;min-height:58px;padding:7px 10px 7px 12px;display:grid;box-shadow:0 4px 14px #2046360a}.race-status{align-items:center;gap:9px;min-width:0;display:flex}.race-status-icon{width:34px;height:34px;color:var(--teal);background:#dfeee7;border-radius:7px;flex:none;place-items:center;display:grid}.race-status-icon svg{width:17px;height:17px}.race-status>span:last-child{flex-direction:column;min-width:0;display:flex}.race-status small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:700;line-height:1.2;overflow:hidden}.race-status strong{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:13px;font-weight:850;line-height:1.1;overflow:hidden}.race-status.is-preview .race-status-icon{color:#815b11;background:#ffe7aa}.race-metrics{justify-content:center;align-items:center;min-width:0;display:flex}.stat{align-items:center;gap:7px;min-width:86px;padding:0 12px;display:flex}.stat+.stat{border-left:1px solid var(--line)}.stat>svg{color:#82938a;flex:none;width:15px;height:15px}.stat>span{flex-direction:column;display:flex}.stat-label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:750;line-height:1.15}.stat strong{color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;margin-top:2px;font-size:13px;font-weight:800;line-height:1.2;animation:.22s both count-pop}.stat--countdown{background:#ffe4a0;border:1px solid #b1750a3d;border-radius:7px;min-width:88px;padding:4px 9px;box-shadow:0 2px #d9aa42}.stat--countdown+.stat{border-left:0}.stat--countdown>svg{color:#956513}.stat--countdown .stat-label{color:#7c5a18}.stat--countdown strong{color:#5e4208;font-size:15px}.race-mode{align-items:center;gap:8px;display:flex}.race-mode-label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:800}.mode-selector{background:#e8ede4;border:1px solid #dbe3d8;border-radius:7px;gap:3px;padding:3px;display:flex}.mode-button{width:75px;height:42px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;gap:5px;padding:0 6px;transition:color .16s,background-color .16s,box-shadow .16s;display:flex}.mode-button svg{flex:none;width:14px;height:14px}.mode-button span{white-space:nowrap;font-size:11px;font-weight:750;line-height:1.1}.mode-button small{display:none}.mode-button:hover{color:var(--teal);background:#ffffff8c}.mode-button.is-active{color:var(--ink);background:#fff;box-shadow:0 2px 7px #18342e1a}.mode-button.is-active svg{color:var(--teal)}.duel-arena{flex:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-height:0;display:grid;position:relative}.player-zone{--player-color:var(--coral);--player-soft:#ffe6e0;background:linear-gradient(145deg,#ef6a5b13,#0000 44%),#fbfcf89e;border:1px solid #ef6a5b59;border-radius:8px;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:10px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;overflow:hidden;box-shadow:0 10px 30px #28463912}.player-zone--p2{--player-color:var(--teal);--player-soft:#dfeee7;background:linear-gradient(145deg,#116b5c13,#0000 44%),#fbfcf89e;border-color:#116b5c52}.player-zone.is-active{border-color:var(--player-color);box-shadow:0 0 0 2px color-mix(in srgb, var(--player-color) 13%, transparent), 0 12px 32px #2846391a}.player-zone.is-winner{background:linear-gradient(145deg,#f7c85d2e,#0000 48%),#fbfcf8bf;border-color:#d2a53b;box-shadow:0 0 0 2px #d2a53b1f,0 12px 32px #2846391a}.zone-header{flex:none;align-items:center;gap:10px;min-width:0;display:flex}.zone-avatar{width:40px;height:40px;color:var(--player-color);background:var(--player-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--player-color) 13%, transparent);border-radius:7px;flex:none;place-items:center;display:grid}.zone-avatar svg{stroke-width:1.8px;width:21px;height:21px}.zone-identity{flex-direction:column;min-width:0;display:flex}.zone-identity>span{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;line-height:1}.zone-identity strong{color:var(--ink);font-variant-numeric:tabular-nums;margin-top:2px;font-family:Aptos Display,Trebuchet MS,Segoe UI,Microsoft YaHei UI,sans-serif;font-size:27px;font-weight:850;line-height:.95}.zone-identity strong small{color:var(--muted);margin-left:4px;font-family:inherit;font-size:10px;font-weight:750}.zone-state{min-width:74px;height:26px;color:var(--muted);white-space:nowrap;background:#edf1ea;border-radius:5px;flex:none;justify-content:center;align-items:center;gap:6px;margin-left:auto;padding:0 9px;font-size:10px;font-weight:800;line-height:1;display:inline-flex}.zone-state-dot{background:currentColor;border-radius:50%;width:6px;height:6px}.player-zone.is-active .zone-state{color:#fff;background:var(--player-color)}.player-zone.is-active .zone-state-dot{background:#fff;animation:1.25s ease-in-out infinite turn-pulse}.player-zone.is-winner .zone-state{color:#6b4a05;background:#ffe6a3}.zone-state svg{width:13px;height:13px}.zone-progress{background:#18342e1a;border-radius:4px;flex:none;height:5px;position:relative;overflow:hidden}.zone-progress>span{border-radius:inherit;background:var(--player-color);width:0;height:100%;transition:width .28s cubic-bezier(.2,.7,.25,1);display:block}.player-zone.is-winner .zone-progress>span{background:#d2a53b}.board-shell{background-color:#e7eee3;background-image:linear-gradient(#1b59470b 1px,#0000 1px),linear-gradient(90deg,#1b59470b 1px,#0000 1px);background-size:24px 24px;border:1px solid #d3dfd1;border-radius:7px;flex-direction:column;flex:auto;min-height:0;padding:10px;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 1px #fffc,0 6px 18px #2046360f}.player-board-shell.is-previewing{border-color:#d29a248c;animation:1.5s ease-in-out infinite board-preview-glow;box-shadow:0 0 0 2px #d29a2433,inset 0 1px #fffc,0 6px 18px #2046360f}.game-board{z-index:1;grid-template-columns:repeat(var(--columns), minmax(0, 1fr));flex:auto;grid-auto-rows:minmax(0,1fr);gap:clamp(6px,.68vw,10px);width:100%;height:100%;min-height:0;display:grid;position:relative}.memory-card{cursor:pointer;perspective:900px;background:0 0;border:0;border-radius:7px;width:100%;min-width:0;height:100%;min-height:0;padding:0;position:relative}.memory-card:disabled{cursor:default;opacity:1}.memory-card-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.22,.72,.28,1);display:block;position:relative}.memory-card.is-flipped .memory-card-inner{transform:rotateY(180deg)}.card-face{backface-visibility:hidden;border-radius:7px;place-items:center;display:grid;position:absolute;inset:0;overflow:hidden}.card-back{background:var(--teal);box-shadow:inset 0 1px 0 #ffffff2b, 0 3px 0 var(--teal-dark), 0 6px 10px #18342e2e;border:1px solid #ffffff26;transition:background-color .18s,box-shadow .18s}.card-back-border{border:1px solid #ffffff30;border-radius:4px;position:absolute;inset:5px}.card-back-mark{aspect-ratio:1;width:46%;max-width:42px;max-height:58%;position:relative}.mini-tile{aspect-ratio:1;background:#ffffff1c;border:1.5px solid #ffffffb3;border-radius:4px;width:59%;position:absolute}.mini-tile-one{top:4%;left:1%;transform:rotate(-9deg)}.mini-tile-two{bottom:4%;right:1%;transform:rotate(9deg)}.card-back-spark{z-index:2;color:#ffe49a;width:38%;height:38%;position:absolute;top:31%;left:31%}.card-front{color:var(--card-ink);background-color:var(--card-accent);background-image:linear-gradient(135deg,#ffffff61,#0000 60%);border:1px solid #18342e1f;transform:rotateY(180deg);box-shadow:inset 0 1px #fff9,0 3px #37483921,0 6px 11px #18342e1f}.card-front:after{aspect-ratio:1;content:"";border:1px solid #ffffff61;border-radius:7px;width:58%;position:absolute;top:-25%;right:-25%;transform:rotate(35deg)}.card-icon{z-index:1;aspect-ratio:1;place-items:center;width:54%;max-height:64%;display:grid;position:relative}.card-icon svg{stroke-width:1.7px;filter:drop-shadow(0 2px #ffffff52);width:100%;height:100%}.memory-card.is-owned-p1{--owner-color:var(--coral)}.memory-card.is-owned-p2{--owner-color:var(--teal)}.match-owner{z-index:4;color:#fff;background:var(--owner-color);border-radius:4px;align-items:center;gap:3px;height:20px;padding:0 5px;display:inline-flex;position:absolute;top:5px;right:5px;box-shadow:0 2px 5px #0b51463d}.match-owner svg{stroke-width:3px;width:10px;height:10px}.match-owner b{letter-spacing:.02em;font-size:8px;font-weight:900;line-height:1}.memory-card.is-matched .card-front{box-shadow:inset 0 1px 0 #ffffffa6, 0 0 0 2px #f8fbf5, 0 0 0 3px var(--owner-color), 0 6px 11px #18342e1f;animation:.36s both matched-pop}.memory-card.is-wrong{animation:.36s both card-shake}.memory-card.is-wrong .card-front{box-shadow:inset 0 1px #ffffffa6,0 0 0 2px #fff2ef,0 0 0 3px #ef6a5bd1,0 6px 11px #18342e1f}@media (hover:hover){.memory-card:not(:disabled):not(.is-flipped):not(.is-matched):hover .memory-card-inner{transform:translateY(-3px)rotateX(2deg)}.memory-card:not(:disabled):not(.is-flipped):not(.is-matched):hover .card-back{box-shadow:inset 0 1px 0 #fff3, 0 6px 0 var(--teal-dark), 0 10px 15px #18342e33;background:#157b6a}}.board-caption{z-index:1;color:#697b72;text-transform:uppercase;letter-spacing:.07em;border-top:1px solid #18342e1f;flex:none;justify-content:space-between;align-items:center;gap:12px;margin-top:7px;padding-top:7px;font-size:9px;font-weight:750;line-height:1.2;display:flex;position:relative}.board-status{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;min-width:0;display:flex;overflow:hidden}.status-dot{background:#99a69e;border-radius:50%;flex:none;width:6px;height:6px}.status-dot--preview{background:#d29a24;animation:1.4s ease-in-out infinite preview-pulse;box-shadow:0 0 0 4px #d29a2424}.status-dot--ready,.status-dot--playing{background:var(--coral);animation:1.8s ease-in-out infinite status-pulse;box-shadow:0 0 0 4px #ef6a5b21}.status-dot--won{background:var(--teal)}.start-overlay{z-index:20;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#e7eee3d6;border:1px solid #d3dfd1d9;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:14px;animation:.24s both start-overlay-in;display:flex;position:absolute;inset:0}.start-kicker{color:#6b7d74;text-transform:uppercase;letter-spacing:.1em;align-items:center;gap:6px;font-size:10px;font-weight:800;line-height:1;display:inline-flex}.start-kicker svg{width:13px;height:13px;color:var(--teal)}.start-duel{grid-template-columns:minmax(150px,1fr) auto minmax(150px,1fr);align-items:center;gap:18px;width:min(100%,470px);display:grid}.start-duel>strong{color:var(--ink);letter-spacing:.09em;font-size:12px;font-weight:900}.start-player{background:#fbfcf8eb;border:1px solid #18342e1a;border-radius:7px;align-items:center;gap:9px;min-height:50px;padding:0 14px;font-size:14px;font-weight:800;display:flex}.start-player svg{width:19px;height:19px}.start-player--p1{color:#8a352b;box-shadow:inset 0 -3px 0 var(--coral);justify-content:flex-end}.start-player--p2{color:#155d51;box-shadow:inset 0 -3px 0 var(--teal)}.start-game-button{color:#fff;background:var(--coral);min-width:172px;min-height:46px;box-shadow:0 4px 0 var(--coral-dark), 0 10px 24px #482d2333;cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:9px;padding:0 24px;font-size:14px;font-weight:800;transition:background-color .16s,box-shadow .16s,transform .16s;display:inline-flex}.start-game-button svg{fill:currentColor;width:17px;height:17px}.start-game-button:hover{box-shadow:0 5px 0 var(--coral-dark), 0 13px 28px #482d233d;background:#df5b4d;transform:translateY(-1px)}.start-game-button:active{box-shadow:0 2px 0 var(--coral-dark), 0 7px 18px #482d2333;transform:translateY(2px)}.dialog-backdrop{z-index:100;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#0e231d8c;place-items:center;padding:20px;animation:.18s both backdrop-in;display:grid;position:fixed;inset:0;overflow-y:auto}.result-dialog{text-align:center;background:var(--paper);border:1px solid #ffffffe6;border-radius:10px;width:min(100%,560px);padding:32px 36px 28px;animation:.3s cubic-bezier(.2,.78,.25,1) both dialog-in;position:relative;overflow:hidden;box-shadow:0 30px 80px #081d1742}.dialog-close{z-index:4;width:34px;height:34px;color:var(--muted);cursor:pointer;background:#edf1ea;border:0;border-radius:7px;place-items:center;padding:0;display:grid;position:absolute;top:14px;right:14px}.dialog-close:hover{color:var(--ink);background:#e2e9df}.dialog-close svg{width:17px;height:17px}.confetti-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.confetti-piece{top:-22px;left:var(--confetti-left);background:var(--confetti-color);opacity:0;width:7px;height:15px;animation:confetti-fall var(--confetti-duration) var(--confetti-delay) cubic-bezier(.18, .7, .32, 1) both;transform:rotate(var(--confetti-rotation));border-radius:1px;position:absolute}.result-icon{z-index:1;border-radius:12px;place-items:center;width:54px;height:54px;margin:0 auto 12px;display:grid;position:relative}.result-icon svg{width:26px;height:26px}.result-icon--p1{color:#8a352b;background:#ffe5df}.result-icon--p2{color:#155d51;background:#dfeee7}.dialog-kicker{z-index:1;color:var(--muted);text-transform:uppercase;letter-spacing:.11em;margin-bottom:7px;font-size:9px;font-weight:800;line-height:1.2;position:relative}.result-dialog h2{z-index:1;color:var(--ink);letter-spacing:0;margin-bottom:9px;font-family:Aptos Display,Trebuchet MS,Segoe UI,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif;font-size:35px;font-weight:850;line-height:1.08;position:relative}.dialog-copy{z-index:1;max-width:360px;color:var(--muted);margin:0 auto;font-size:13px;line-height:1.5;position:relative}.duel-result{z-index:1;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;width:min(100%,370px);margin:21px auto 0;display:grid;position:relative}.result-player{border:1px solid var(--line);background:#f5f7f2;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;min-height:88px;display:flex}.result-player span{align-items:center;gap:4px;font-size:10px;font-weight:800;line-height:1;display:inline-flex}.result-player span svg{width:12px;height:12px}.result-player strong{color:var(--ink);font-variant-numeric:tabular-nums;margin-top:6px;font-size:34px;font-weight:850;line-height:.9}.result-player strong small{color:var(--muted);margin-left:3px;font-size:11px;font-weight:750}.result-player--p1{background:#fff3ef;border-color:#ef6a5b40}.result-player--p1 span{color:#913a2f}.result-player--p2{background:#eff7f3;border-color:#116b5c38}.result-player--p2 span{color:#155d51}.result-vs{color:var(--muted);letter-spacing:.1em;font-size:10px;font-weight:900}.result-meta{z-index:1;border-top:1px solid var(--line);border-bottom:1px solid var(--line);align-items:center;width:min(100%,420px);margin:13px auto 20px;padding:10px 0;display:grid;position:relative}.result-meta--three{grid-template-columns:1fr auto 1fr auto 1fr}.result-meta>div{flex-direction:column;align-items:center;display:flex}.result-meta span:not(.result-meta-divider){color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-size:8px;font-weight:750;line-height:1.2}.result-meta strong{color:var(--ink);font-variant-numeric:tabular-nums;margin-top:3px;font-size:15px;font-weight:800;line-height:1}.result-meta-divider{background:var(--line);width:1px;height:24px}.dialog-actions{z-index:1;grid-template-columns:1.25fr 1fr;gap:9px;display:grid;position:relative}.primary-button,.secondary-button{cursor:pointer;border:0;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 15px;font-size:12px;font-weight:750;transition:background-color .16s,transform .16s;display:inline-flex}.primary-button{color:#fff;background:var(--coral)}.primary-button:hover{background:#df5b4d}.secondary-button{color:var(--ink);background:#e8ede4}.secondary-button:hover{background:#dce5d8}.primary-button:active,.secondary-button:active{transform:translateY(1px)}.primary-button svg{width:16px;height:16px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@keyframes matched-pop{0%{transform:rotateY(180deg)scale(1)}58%{transform:rotateY(180deg)scale(1.045)}to{transform:rotateY(180deg)scale(1)}}@keyframes start-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes card-shake{0%,to{transform:translate(0)}20%{transform:translate(-4px)rotate(-1deg)}40%{transform:translate(4px)rotate(1deg)}60%{transform:translate(-3px)}80%{transform:translate(2px)}}@keyframes status-pulse{0%,to{box-shadow:0 0 0 4px #ef6a5b1f}50%{box-shadow:0 0 0 7px #ef6a5b08}}@keyframes preview-pulse{0%,to{box-shadow:0 0 0 4px #d29a2421}50%{box-shadow:0 0 0 7px #d29a240a}}@keyframes board-preview-glow{0%,to{border-color:#d3dfd1}50%{border-color:#d29a249e}}@keyframes count-pop{0%{opacity:.35;transform:scale(.72)}to{opacity:1;transform:scale(1)}}@keyframes turn-pulse{0%,to{box-shadow:0 0 #ffffff57}50%{box-shadow:0 0 0 4px #fff0}}@keyframes backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-in{0%{opacity:0;transform:translateY(14px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes confetti-fall{0%{opacity:0;transform:translateY(-12px) rotate(var(--confetti-rotation))}10%{opacity:1}to{opacity:0;transform:translateY(430px) rotate(calc(var(--confetti-rotation) + 310deg))}}@media (width<=1220px){.race-toolbar{grid-template-columns:minmax(165px,.65fr) minmax(245px,1fr) auto;gap:12px}.race-mode-label{display:none}.mode-button{width:66px}.stat{min-width:76px;padding:0 9px}}@media (height<=800px) and (width>=1000px){.app-shell{padding-top:10px;padding-bottom:14px}.topbar{min-height:48px;padding-bottom:8px}.brand-mark{width:38px;height:38px}.brand-tile{width:25px;height:25px}.brand-spark{top:11px;left:11px}.brand-copy strong{font-size:20px}.race-workspace{margin-top:8px}.race-area{gap:8px}.race-toolbar{min-height:50px;padding-block:5px}.race-status-icon{width:30px;height:30px}.mode-button{height:36px}.duel-arena{gap:10px}.player-zone{gap:6px;padding:8px}.zone-avatar{width:36px;height:36px}.zone-identity strong{font-size:24px}.board-shell{padding:8px}.board-caption{margin-top:5px;padding-top:5px}}@media (height<=700px) and (width>=1000px){.app-shell{padding-top:7px;padding-bottom:8px}.topbar{min-height:40px;padding-bottom:5px}.brand-mark{width:34px;height:34px}.brand-tile{width:22px;height:22px}.brand-spark{width:16px;height:16px;top:9px;left:9px}.brand-copy strong{font-size:19px}.icon-button,.new-round-button{height:34px}.icon-button{width:34px}.race-workspace{margin-top:5px}.race-toolbar{min-height:44px}.race-status small{display:none}.stat-label{font-size:8px}.stat strong{font-size:11px}.mode-button{height:30px}.player-zone{gap:5px;padding:7px}.zone-avatar{width:32px;height:32px}.zone-avatar svg{width:18px;height:18px}.zone-identity strong{font-size:21px}.zone-state{height:23px}.board-shell{padding:7px}.board-caption{margin-top:4px;padding-top:4px;font-size:8px}.match-owner{height:18px;top:3px;right:3px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
