:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #172035;
  font-synthesis: none;
  --panel-bg: #fff;
  --game-panel-bg: #ffffffc2;
  --panel-border: #d5deea;
  --panel-shadow: 0 12px 36px #42597924;
  --text: #172035;
  --muted: #718096;
  --accent: #6878ff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  background: #080c14;
  color: #e8eef7;
  --panel-bg: #111a2ae8;
  --game-panel-bg: #111a2acc;
  --panel-border: #293850cc;
  --panel-shadow: 0 14px 42px #00000066;
  --text: #e8eef7;
  --muted: #8d9bad;
  --accent: #8b7bff;
}

* { box-sizing: border-box; }
[hidden] { display:none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { background: #f5f6f8; }
:root[data-theme="dark"] body { background:#080c14; }
button, input, select { font: inherit; }
button { color: inherit; }

#game { position:fixed; z-index:0; inset:0; width:100%; height:100%; touch-action:none; contain:strict; }
.render-layer { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; contain:strict; }
.hub-frame { position:fixed; z-index:20; inset:0; width:100%; height:100%; border:0; background:#080c14; }
.hub-frame[hidden] { display:none; }
#premium-cells { z-index:1; }
#game-overlay { z-index:2; }
.server-state { display:flex; align-items:center; gap:8px; min-height:34px; padding:0 12px; border:1px solid var(--panel-border); border-radius:999px; background:var(--panel-bg); color:#647187; font-size:.78rem; box-shadow:0 5px 18px #42597916; backdrop-filter:blur(12px); }
.server-state span { width: 7px; height: 7px; border-radius: 50%; background: #ffb052; box-shadow: 0 0 10px currentColor; }
.server-state.online span { background: #4ce2a3; }
.server-state.offline span { background: #ff6580; }

.start-panel { position:fixed; z-index:4; inset:0; display:flex; align-items:flex-start; justify-content:center; padding:190px 20px 120px; overflow-x:hidden; overflow-y:auto; background-color:#f7f8fa; background-image:linear-gradient(#cfd5df80 1px,transparent 1px),linear-gradient(90deg,#cfd5df80 1px,transparent 1px); background-size:40px 40px; transition:opacity .28s ease,visibility .28s ease; }
.start-panel::before { display:none; }
.start-panel.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.start-bubbles { position:absolute; z-index:0; inset:0; overflow:hidden; pointer-events:none; }
.start-bubbles i { position:absolute; display:block; border:2px solid #ffffffd9; border-radius:50%; box-shadow:0 10px 24px #53698724; }
.start-bubbles i:nth-child(1) { top:18%; left:5%; width:32px; height:32px; background:#27d8ef; }
.start-bubbles i:nth-child(2) { top:8%; left:17%; width:54px; height:54px; background:#ffd43b; }
.start-bubbles i:nth-child(3) { top:29%; left:31%; width:21px; height:21px; background:#ff5c91; }
.start-bubbles i:nth-child(4) { top:16%; right:30%; width:42px; height:42px; background:#876cff; }
.start-bubbles i:nth-child(5) { top:8%; right:14%; width:27px; height:27px; background:#ff8b35; }
.start-bubbles i:nth-child(6) { top:34%; right:5%; width:59px; height:59px; background:#43d681; }
.start-bubbles i:nth-child(7) { bottom:17%; left:6%; width:66px; height:66px; background:#ff6b67; }
.start-bubbles i:nth-child(8) { bottom:8%; left:27%; width:29px; height:29px; background:#4d9cff; }
.start-bubbles i:nth-child(9) { right:27%; bottom:11%; width:47px; height:47px; background:#a9e63a; }
.start-bubbles i:nth-child(10) { right:9%; bottom:25%; width:24px; height:24px; background:#f150d1; }
.start-bubbles i:nth-child(11) { top:14%; left:44%; width:17px; height:17px; background:#ff7657; }
.start-bubbles i:nth-child(12) { right:43%; bottom:5%; width:35px; height:35px; background:#20c8b0; }
.game-title { position:absolute; z-index:3; top:25px; left:50%; width:min(650px,calc(100vw - 160px)); margin:0; transform:translateX(-50%); line-height:0; }
.game-title img { display:block; width:100%; height:auto; filter:drop-shadow(0 15px 18px #5666a333); }
.start-characters { position:absolute; inset:0; pointer-events:none; }
.start-character { position:absolute; z-index:1; display:block; object-fit:contain; filter:drop-shadow(0 24px 24px #49739f2b); user-select:none; }
.start-character-left { left:max(-200px,calc(50% - 875px)); top:44%; width:clamp(500px,48vw,680px); transform:translate(var(--left-parallax-x,0%),calc(-50% + var(--left-parallax-y,0%))) rotate(-2deg); }
.start-character-right { right:max(-200px,calc(50% - 875px)); top:44%; width:clamp(500px,48vw,680px); transform:translate(var(--right-parallax-x,0%),calc(-50% + var(--right-parallax-y,0%))) rotate(2deg); }
.start-center { position:relative; z-index:2; width:min(420px,100%); display:flex; flex-direction:column; align-items:center; }
.mode-select { position:relative; z-index:2; width:min(900px,100%); }
.mode-select-head { display:flex; align-items:center; gap:18px; margin-bottom:18px; padding:0 4px; color:var(--text); }
.mode-select-head > div { display:grid; gap:3px; }
.mode-select-head span { color:#7180ee; font-size:.68rem; font-weight:900; letter-spacing:.16em; }
.mode-select-head h2 { margin:0; font-size:clamp(2rem,4vw,3rem); line-height:1; letter-spacing:-.055em; }
.mode-select-head p { margin:3px 0 0; color:#7b889b; font-size:.78rem; }
.mode-back { flex:0 0 52px; width:52px; height:52px; border:1px solid #d7e0ec; border-radius:15px; background:#ffffffeb; box-shadow:0 8px 24px #536b8b24; color:#55647a; font-size:2rem; cursor:pointer; transition:transform .18s,background .18s; }
.mode-back:hover { transform:translateX(-2px); background:#fff; }
.mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.mode-card { position:relative; min-height:210px; display:grid; grid-template-columns:116px minmax(0,1fr); grid-template-rows:1fr auto; align-items:center; gap:10px 18px; padding:22px; overflow:hidden; border:1px solid #d7e0ec; border-radius:22px; background:#ffffffed; box-shadow:0 16px 46px #526d9924; color:var(--text); text-align:left; cursor:pointer; transition:transform .2s,border-color .2s,box-shadow .2s; }
.mode-card:not(:disabled):hover { z-index:3; transform:translateY(-4px); border-color:#aebbf2; box-shadow:0 22px 55px #526d9936; }
.mode-card.locked { cursor:default; }
.mode-card.account-locked .mode-status { background:#fff1d8; color:#a36b13; }
.mode-card.locked .mode-card-art,.mode-card.locked .mode-card-copy { opacity:.46; filter:grayscale(.35); }
.mode-card-art { position:relative; width:112px; height:112px; grid-row:1 / span 2; filter:drop-shadow(0 12px 18px #3849682b); }
.mode-card-art i { position:absolute; display:block; border-radius:50%; }
.mode-card-art i:first-child { inset:8px; background:linear-gradient(145deg,#77ddff,#6578ff); }
.mode-card-art i:nth-child(2) { width:34px; height:34px; right:0; top:2px; background:#ff7c93; }
.mode-card-art i:nth-child(3) { width:19px; height:19px; left:0; bottom:12px; background:#ffd15c; }
.mode-blitz .mode-card-art i:first-child { background:conic-gradient(from -25deg,#ffcf55,#ff754f,#7f65ff,#55c9ff,#ffcf55); }
.mode-blitz .mode-card-art::after { content:"8:00"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:1.1rem; font-weight:950; text-shadow:0 2px 8px #39416e55; }
.mode-crazy .mode-card-art i:first-child { background:conic-gradient(#ff5f86,#ffc74f,#45dda0,#5bc8ff,#9f66ff,#ff5f86); }
.mode-battle .mode-card-art i:first-child { background:radial-gradient(circle at 35% 30%,#ffdd68,#ff7b48 42%,#7739ac 75%,#273055); }
.mode-card-copy { min-width:0; display:grid; align-content:center; gap:5px; }
.mode-card-copy small { color:#7786ee; font-size:.62rem; font-weight:900; letter-spacing:.14em; }
.mode-card-copy b { font-size:1.45rem; line-height:1; letter-spacing:-.035em; }
.mode-card-copy em { color:#7a879a; font-size:.76rem; font-style:normal; line-height:1.35; }
.mode-status { justify-self:start; padding:6px 9px; border-radius:7px; background:#e9edf3; color:#8a95a5; font-size:.58rem; font-weight:950; letter-spacing:.09em; }
.mode-status.ready { background:#edf0ff; color:#6171e8; }
.mode-tooltip { position:absolute; z-index:5; inset:12px; display:flex; flex-direction:column; justify-content:center; gap:8px; padding:24px; border:1px solid #d8e0ed; border-radius:16px; background:#fffffff5; box-shadow:0 14px 40px #40597b30; color:#657287; font-size:.76rem; line-height:1.5; opacity:0; visibility:hidden; transform:translateY(8px) scale(.98); transition:opacity .18s,transform .18s,visibility .18s; pointer-events:none; }
.mode-tooltip b { color:#26344b; font-size:1rem; }
.mode-card:hover .mode-tooltip,.mode-card:focus-visible .mode-tooltip { opacity:1; visibility:visible; transform:none; }
.start-character-down { position:relative; z-index:1; flex:0 0 auto; width:244px; margin-top:-2px; transform:translate(var(--down-parallax-x,0%),var(--down-parallax-y,0%)); }
.start-card { position:relative; z-index:2; width:min(420px,100%); padding:22px; border:1px solid var(--panel-border); border-radius:18px; background:#fff; color:var(--text); box-shadow:0 18px 55px #607da62e; }
.account-launch { width:100%; min-height:52px; display:flex; align-items:center; gap:10px; margin:0 0 16px; padding:7px 11px; border:1px solid #dce4ef; border-radius:10px; background:#f8fbff; color:#27344a; text-align:left; cursor:pointer; transition:border-color .18s,box-shadow .18s,transform .18s; }
.account-launch:hover { border-color:#9da9ff; box-shadow:0 0 0 4px #6878ff14; transform:translateY(-1px); }
.account-launch-icon { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#6f82ff,#a15eff); color:#fff; font-size:.6rem; box-shadow:0 5px 13px #6657ff36; }
.account-launch > span:nth-child(2) { min-width:0; display:grid; gap:2px; }
.account-launch small { color:#7885a0; font-size:.57rem; font-weight:900; letter-spacing:.1em; }
.account-launch b { overflow:hidden; font-size:.73rem; text-overflow:ellipsis; white-space:nowrap; }
.account-launch-arrow { margin-left:auto; color:#6878ff; font-size:1.45rem; }
.account-launch.authenticated { border-color:#ccd4ff; background:#f4f5ff; }
.account-launch.authenticated .account-launch-icon { background:linear-gradient(135deg,#42c999,#6578ff); }
.eyebrow { color:#6678ad; font-size:.7rem; font-weight:800; letter-spacing:.16em; }
.start-card > h2 { margin:6px 0 8px; font-size:clamp(2.35rem,6vw,3.35rem); line-height:.87; letter-spacing:-.07em; }
.game-description { margin:0 0 14px; color:#6e7b91; font-size:.75rem; line-height:1.4; }
.field-label { display:block; margin-bottom:8px; color:#526078; font-size:.82rem; font-weight:700; }
#nickname { width:100%; height:46px; padding:0 14px; border:1px solid #d5dfed; outline:0; border-radius:8px; background:#f8fbff; color:#172035; font-size:.92rem; transition:border-color .2s,box-shadow .2s; }
#nickname::placeholder { color:#96a3b8; }
#nickname:focus { border-color: #727eff; box-shadow: 0 0 0 4px #6878ff20; }
.picker-row { display:flex; align-items:baseline; justify-content:space-between; margin-top:14px; }
.saved-hint { color:#8a96aa; font-size:.7rem; }
.skin-picker-button { width:100%; min-height:58px; display:flex; align-items:center; gap:12px; padding:7px 12px 7px 8px; border:1px solid #d5dfed; border-radius:8px; background:#f8fbff; color:#172035; text-align:left; cursor:pointer; transition:border-color .18s,box-shadow .18s,transform .18s; }
.skin-picker-button:hover { border-color:#6878ff; box-shadow:0 0 0 4px #6878ff17; transform:translateY(-1px); }
.skin-picker-button > span:nth-child(2) { display:grid; gap:2px; min-width:0; }
.skin-picker-button small { color:#8190a8; font-size:.68rem; }
.skin-picker-button b { overflow:hidden; color:#263149; font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
.current-skin-preview { flex:0 0 44px; width:44px; height:44px; padding:3px; border:1px solid #cad5e4; border-radius:50%; background:#fff; box-shadow:0 5px 14px #35486624; }
.current-skin-preview > span { display:block; width:100%; height:100%; overflow:hidden; border-radius:50%; }
.current-skin-preview img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.current-skin-preview.skin-color > span { background:conic-gradient(#ff5c7a,#ffbd4a,#48dc9a,#55c9ff,#7e6aff,#ff5cba,#ff5c7a); }
.skin-picker-arrow { margin-left:auto; color:#6878ff; font-size:1.7rem; line-height:1; }
.skin-dialog { width:min(1220px,calc(100% - 32px)); max-width:none; border-radius:14px; color:#172035; }
.skin-dialog::backdrop { background:#dfe8f2c7; backdrop-filter:blur(8px); }
.skin-dialog-card { padding:34px; border:1px solid #d6e0ed; border-radius:14px; background:#fff; box-shadow:0 30px 100px #536b8b40; }
.skin-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:28px; margin-bottom:24px; }
.skin-dialog-head h2 { margin:5px 0 6px; font-size:2.75rem; letter-spacing:-.05em; }
.skin-dialog-head p { margin:0; color:#7a879b; font-size:1rem; }
.skin-dialog-close { flex:0 0 52px; width:52px; height:52px; border:1px solid #d7e0eb; border-radius:8px; background:#f4f7fb; color:#56647a; font-size:2.1rem; cursor:pointer; }
.skin-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:20px; max-height:min(74vh,760px); padding:12px; overflow:auto; scrollbar-width:thin; scrollbar-color:#6878ff66 transparent; }
.skin-option { position:relative; min-width:0; aspect-ratio:1; padding:8px; border:3px solid transparent; border-radius:50%; background:transparent; cursor:pointer; transition:transform .18s,border-color .18s,filter .18s,box-shadow .18s; }
.skin-option:hover { z-index:1; transform:scale(1.1); border-color:#9aa5ff; filter:saturate(1.08); box-shadow:0 12px 24px #344e7a30; }
.skin-option[aria-checked="true"] { border-color:#6878ff; box-shadow:0 0 0 3px #6878ff33; }
.skin-option span { display:block; width:100%; height:100%; border-radius:50%; box-shadow:inset 0 0 0 1px #ffffff55,0 5px 16px #26364a38; }
.skin-option.imported span { overflow:hidden; background:#edf2f8; }
.skin-option.imported img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.skin-color span { background:conic-gradient(#ff5c7a,#ffbd4a,#48dc9a,#55c9ff,#7e6aff,#ff5cba,#ff5c7a); }
.skin-neon span { background: radial-gradient(circle at 34% 28%,#fff 0 4%,#5cf3ff 12%,#4d67ff 50%,#c552ff 100%); }
.skin-comet span { background: linear-gradient(135deg,#fff 0 5%,#5bf0ff 15%,#426cff 42%,#12162b 43% 52%,#ff4f9b 53% 66%,#5425c8); }
.skin-plasma span { background: conic-gradient(from 30deg,#ff5e88,#7e5cff,#4feaff,#ff5e88); }
.skin-option.skin-grid span { background-color:#15214c; background-image:linear-gradient(#69dcff55 1px,transparent 1px),linear-gradient(90deg,#69dcff55 1px,transparent 1px); background-size:7px 7px; }
.skin-orbit span { background: radial-gradient(circle,#fff 0 5%,#8c78ff 7% 12%,#151a35 13% 35%,#5ee8ff 36% 41%,#11152b 42%); }
.skin-void span { background: radial-gradient(circle at 66% 30%,#6537bf,#141126 28%,#02030a 70%); }
.skin-sun span { background: radial-gradient(circle at 35% 30%,#fffbc1,#ffd55e 18%,#ff7b3b 52%,#ab2048); }
.skin-mint span { background: repeating-linear-gradient(135deg,#8affd5 0 7px,#2bd6bb 7px 14px,#174d69 14px 21px); }
.start-settings { margin-top:14px; overflow:hidden; border:1px solid #dbe3ee; border-radius:10px; background:#f8fbff; }
.start-settings summary { min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 13px; color:#35435a; cursor:pointer; list-style:none; }
.start-settings summary::-webkit-details-marker { display:none; }
.start-settings summary > span:first-child { display:grid; gap:2px; }
.start-settings summary b { font-size:.8rem; }
.start-settings summary small { color:#8591a4; font-size:.66rem; font-weight:500; }
.settings-chevron { color:var(--accent); font-size:1.55rem; line-height:1; transition:transform .18s; }
.start-settings[open] .settings-chevron { transform:rotate(90deg); }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px; padding:1px; border-top:1px solid #e2e8f1; background:#e2e8f1; }
.setting { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; background:#fff; cursor:pointer; }
.setting span { min-width:0; display:grid; gap:3px; }
.setting b { color:#35435a; font-size:.72rem; }
.setting small { color:#8a96a8; font-size:.6rem; line-height:1.25; }
.setting input { flex:0 0 auto; width:31px; height:18px; margin:0; accent-color:var(--accent); }
.wide-setting { grid-column:1/-1; }
.select-setting { grid-column:1/-1; }
.select-setting select { min-width:102px; padding:7px 9px; border:1px solid #d7e0ec; border-radius:8px; background:#f6f9fd; color:#35435a; font-size:.7rem; }
.settings-foot { margin:0; padding:9px 12px; border-top:1px solid #e2e8f1; color:#8995a7; font-size:.61rem; line-height:1.4; }
.play-button { width:100%; height:64px; display:flex; justify-content:center; align-items:center; gap:14px; margin-top:18px; border:0; border-radius:9px; background:linear-gradient(135deg,#6579ff,#8d5eff); box-shadow:0 12px 28px #6657ff42; color:#fff; font-size:1.08rem; font-weight:900; cursor:pointer; transition:transform .18s,filter .18s; }
.play-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
kbd { padding: 3px 7px; border: 1px solid #ffffff1f; border-radius: 6px; background: #ffffff12; color: #cbd0e7; font-family: inherit; font-size: .67rem; }
.start-card kbd { border-color:#cad4e3; background:#edf2f8; color:#59667c; }
.play-button kbd { border-color:#ffffff4a; background:#ffffff1f; color:#fff; }
.controls-note { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 14px; margin-top:10px; color:#7c889c; font-size:.66rem; }
.controls-note span { display: flex; align-items: center; gap: 6px; }
.seo-about { margin-top:11px; border-top:1px solid #e2e8f0; color:#66738a; font-size:.7rem; }
.seo-about summary { padding-top:10px; color:#5f6d84; font-weight:800; text-align:center; cursor:pointer; }
.seo-about > div { max-height:210px; margin-top:9px; padding:10px 12px; overflow:auto; border-radius:8px; background:#f5f8fc; text-align:left; }
.seo-about h2,.seo-about h3 { margin:0 0 5px; color:#28344a; font-size:.78rem; line-height:1.3; letter-spacing:0; }
.seo-about h3 { margin-top:10px; }
.seo-about p { margin:0; line-height:1.45; }
.noscript-message { position:fixed; z-index:20; left:50%; bottom:20px; width:min(560px,calc(100% - 32px)); margin:0; padding:12px 16px; transform:translateX(-50%); border-radius:10px; background:#fff; color:#263149; text-align:center; box-shadow:0 8px 30px #26314933; }

dialog { width:min(430px,calc(100% - 28px)); padding:0; border:0; border-radius:24px; background:transparent; color:var(--text); }
dialog::backdrop { background:#dfe8f2c7; backdrop-filter:blur(8px); }

.account-dialog { width:min(560px,calc(100% - 28px)); max-width:none; color-scheme:dark; }
.account-dialog::backdrop { background:#03060ddd; backdrop-filter:blur(13px) saturate(.8); }
.account-dialog[open] { animation:account-dialog-in .2s ease-out; }
@keyframes account-dialog-in { from { opacity:0; transform:translateY(12px) scale(.975); } }
.account-dialog-card { position:relative; max-height:min(90vh,790px); padding:28px; overflow:auto; isolation:isolate; border:1px solid #293957; border-radius:26px; background:radial-gradient(420px 260px at -8% -12%,#8b5cff24,transparent 68%),radial-gradient(360px 260px at 108% 6%,#3ee0ff16,transparent 66%),linear-gradient(180deg,#ffffff09,transparent 34%),#0d1422; box-shadow:0 34px 110px #000c,inset 0 1px #ffffff12; color:#e8eef7; scrollbar-width:thin; scrollbar-color:#3a4c6c transparent; }
.account-dialog-close { position:absolute; z-index:2; top:17px; right:17px; width:42px; height:42px; display:grid; place-items:center; border:1px solid #2b3b57; border-radius:13px; background:#111a2acc; color:#8796ad; font-size:1.65rem; line-height:1; cursor:pointer; transition:border-color .16s,background .16s,color .16s,transform .16s; }
.account-dialog-close:hover,.account-dialog-close:focus-visible { border-color:#ffb13b80; background:#ffb13b17; color:#ffca69; outline:0; transform:rotate(5deg); }
.account-dialog-brand { display:flex; align-items:center; gap:9px; width:max-content; margin:0 54px 22px 0; color:#f1f5fb; font-family:Unbounded,Manrope,sans-serif; font-size:.86rem; font-weight:800; letter-spacing:.03em; }
.account-dialog-brand span { width:18px; height:18px; border:2px solid #ffffffb8; border-radius:50%; background:conic-gradient(#ff4a9a,#ffb13b,#38e07b,#3ee0ff,#8b5cff,#ff4a9a); box-shadow:0 0 20px #8b5cff70; }
.account-dialog-brand em { background:linear-gradient(180deg,#fff0c4,#ffb13b 55%,#ff7a1a); background-clip:text; color:transparent; font-style:normal; }
.account-guest > .eyebrow { color:#ffb13b; font-size:.64rem; font-weight:850; letter-spacing:.18em; }
.account-guest > h2 { margin:8px 50px 8px 0; color:#f4f7fb; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(1.85rem,6vw,2.35rem); line-height:1.08; letter-spacing:-.045em; }
.account-guest > p { margin:0 36px 22px 0; color:#91a0b6; font-size:.82rem; line-height:1.6; }
.account-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:5px; border:1px solid #202e46; border-radius:14px; background:#080d17b8; }
.account-tabs button { min-height:43px; border:0; border-radius:10px; background:transparent; color:#7f8da3; font-size:.75rem; font-weight:850; cursor:pointer; transition:background .16s,color .16s,box-shadow .16s,transform .16s; }
.account-tabs button:hover { color:#c8d2df; }
.account-tabs button.active { background:linear-gradient(180deg,#ffd06a,#ffb13b 52%,#ff9227); box-shadow:inset 0 1px #ffffff8c,0 8px 20px -12px #ff9628; color:#261500; transform:translateY(-1px); }
.account-form { display:grid; gap:14px; margin-top:20px; }
.account-form label { display:grid; gap:7px; color:#c7d0de; font-size:.72rem; font-weight:800; }
.account-form label small { color:#718198; font-size:.61rem; font-weight:650; }
.account-form input { width:100%; height:49px; padding:0 14px; border:1px solid #2b3a54; border-radius:11px; outline:0; background:#080d17cc; color:#f0f4fa; caret-color:#ffb13b; font-size:.84rem; transition:border-color .16s,box-shadow .16s,background .16s; }
.account-form input::placeholder { color:#53627a; }
.account-form input:hover { border-color:#3a4d6e; }
.account-form input:focus { border-color:#ffb13b9c; background:#0a111e; box-shadow:0 0 0 4px #ffb13b18; }
.account-form .account-consent{display:flex;grid-template-columns:none;align-items:flex-start;gap:10px;font-size:.68rem;line-height:1.45;font-weight:650}.account-form .account-consent input{flex:none;width:18px;height:18px;margin:2px 0 0;padding:0;accent-color:#ffb13b}.account-form .account-consent a{color:#ffd079}
.account-primary { min-height:51px; margin-top:2px; border:0; border-radius:12px; background:linear-gradient(180deg,#ffd06a,#ffb13b 48%,#ff8a1f); box-shadow:inset 0 1px #ffffff8c,0 14px 30px -16px #ff9628dc; color:#241300; font-family:Unbounded,Manrope,sans-serif; font-size:.76rem; font-weight:900; letter-spacing:.025em; cursor:pointer; transition:transform .16s,filter .16s,box-shadow .16s; }
.account-primary:hover,.account-primary:focus-visible { outline:0; filter:brightness(1.06); transform:translateY(-2px); box-shadow:inset 0 1px #fff9,0 18px 34px -16px #ff9628; }
.account-form.busy,.exchange-form.busy { opacity:.65; }
.account-profile-head { display:flex; align-items:center; gap:14px; padding-right:44px; }
.account-avatar { flex:0 0 54px; width:54px; height:54px; display:grid; place-items:center; border:2px solid #ffffff91; border-radius:50%; background:conic-gradient(#ff4a9a,#ffb13b,#38e07b,#3ee0ff,#8b5cff,#ff4a9a); color:#fff; font-size:1.25rem; font-weight:950; box-shadow:0 0 24px #8b5cff55; }
.account-profile-head > div { min-width:0; display:grid; gap:2px; }
.account-profile-head small { color:#ffb13b; font-size:.6rem; font-weight:900; letter-spacing:.1em; }
.account-profile-head h2 { overflow:hidden; margin:0; color:#f2f6fb; font-family:Unbounded,Manrope,sans-serif; font-size:1.55rem; letter-spacing:-.04em; text-overflow:ellipsis; white-space:nowrap; }
.wallet-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.wallet-grid article { min-width:0; display:grid; gap:3px; padding:16px; border:1px solid #273751; border-radius:15px; background:linear-gradient(145deg,#111b2c,#0a111d); }
.wallet-grid article.wallet-bolz { border-color:#614a2b; background:linear-gradient(145deg,#251c12,#111722); }
.wallet-grid small { color:#8391a7; font-size:.63rem; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
.wallet-grid strong { color:#eef3f9; font-size:1.75rem; font-variant-numeric:tabular-nums; letter-spacing:-.045em; }
.wallet-grid article.wallet-bolz strong { color:#ffc45e; }
.wallet-grid span { color:#66758c; font-size:.61rem; }
.exchange-form { display:grid; grid-template-columns:minmax(0,1fr) 105px 92px; align-items:center; gap:9px; margin-top:12px; padding:13px; border:1px solid #263650; border-radius:14px; background:#0a111c9c; }
.exchange-form > div { min-width:0; display:grid; gap:2px; }
.exchange-form b { color:#d8e0eb; font-size:.72rem; }
.exchange-form small { color:#75849a; font-size:.58rem; }
.exchange-form label { height:39px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px; padding:0 8px; border:1px solid #2b3b56; border-radius:9px; background:#080d17; }
.exchange-form input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:#edf2f8; font-size:.76rem; font-weight:850; }
.exchange-form label span { color:#75849a; font-size:.6rem; }
.exchange-form button { height:39px; border:0; border-radius:9px; background:linear-gradient(180deg,#ffd06a,#ff9f2d); color:#251400; font-size:.66rem; font-weight:900; cursor:pointer; }
.cabinet-preview { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.cabinet-preview > div { display:grid; gap:3px; padding:13px; border:1px solid #263650; border-radius:13px; background:#111a2a99; }
.cabinet-preview small { color:#ffb13b; font-size:.55rem; font-weight:900; letter-spacing:.1em; }
.cabinet-preview b { color:#dce4ef; font-size:.75rem; }
.cabinet-preview span { color:#748299; font-size:.59rem; line-height:1.35; }
.account-history { margin-top:12px; padding:13px; border:1px solid #263650; border-radius:14px; background:#080d178f; }
.account-history-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-bottom:9px; }
.account-history-head > div { display:grid; gap:2px; }
.account-history-head small { color:#ffb13b; font-size:.55rem; font-weight:900; letter-spacing:.1em; }
.account-history-head b { color:#dce4ef; font-size:.75rem; }
.account-history-head > span { color:#65748b; font-size:.55rem; }
.account-match-list { display:grid; gap:6px; }
.account-match-list > p { margin:2px 0; color:#738198; font-size:.62rem; }
.account-match-list article { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 10px; border:1px solid #263650; border-radius:10px; background:#111a2a; }
.account-match-list article > div { min-width:0; display:grid; gap:2px; }
.account-match-list article b { overflow:hidden; color:#cbd5e2; font-size:.65rem; text-overflow:ellipsis; white-space:nowrap; }
.account-match-list article small { color:#6e7d93; font-size:.55rem; }
.account-match-list article strong { flex:none; color:#5fe3ab; font-size:.64rem; font-weight:900; }
.account-match-list article strong.empty { color:#718096; font-weight:750; }
.account-logout { width:100%; min-height:42px; margin-top:14px; border:1px solid #2a3a55; border-radius:10px; background:#111a2a; color:#8c9bb1; font-size:.7rem; font-weight:800; cursor:pointer; transition:border-color .16s,color .16s,background .16s; }
.account-logout:hover { border-color:#ff6d7b70; background:#ff53600d; color:#ff929c; }
.account-message { margin:16px 0 0; padding:11px 13px; border:1px solid #2d4261; border-radius:11px; background:#122039; color:#9db3d0; font-size:.7rem; line-height:1.45; }
.account-message.success { border-color:#2e775b; background:#102920; color:#72d7ae; }
.account-message.error { border-color:#773745; background:#2d141b; color:#ff9eaa; }
.account-message a { color:inherit; font-weight:900; }

.leaderboard { position:fixed; z-index:3; top:max(20px,env(safe-area-inset-top)); right:max(20px,env(safe-area-inset-right)); width:240px; padding:18px; border:1px solid #d5deeacc; border-radius:18px; background:var(--game-panel-bg); box-shadow:var(--panel-shadow); }
.leaderboard-head { display:flex; justify-content:space-between; align-items:center; color:#314058; font-size:.9rem; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.leaderboard-head small { color:#8995a7; font-size:.72rem; }
.leaderboard ol { margin:12px 0 0; padding:0; list-style:none; }
.leaderboard li { overflow:hidden; padding:6px 0; color:#66758c; font-size:.86rem; text-overflow:ellipsis; white-space:nowrap; }
.leaderboard li>span{display:block;overflow:hidden;text-overflow:ellipsis}.leaderboard li>small{display:block;overflow:hidden;margin-top:1px;color:#a07b2d;font-size:.62rem;font-weight:800;text-overflow:ellipsis}
.leaderboard li.identity-ranked{margin:2px 0;padding:5px 0;background:none;border:0;box-shadow:none}
.leaderboard li.identity-ranked>span{color:#6ddff5;font-weight:900;text-shadow:0 0 7px #55dfff70}
.leaderboard li.identity-ranked[data-frame-theme="vip"]>span{color:#c99cff;text-shadow:0 0 7px #8b5cff80}
.leaderboard li.identity-ranked[data-frame-theme="flame"]>span{color:#ff9f46;text-shadow:0 0 7px #ff4b2285}
.leaderboard li.identity-ranked[data-frame-theme="cosmic"]>span{color:#e07eff;text-shadow:0 0 8px #56e8ff85}
.leaderboard li.identity-ranked[data-frame-theme="rune"]>span,.leaderboard li.identity-ranked[data-frame-theme="diamond"]>span{color:#52dfff;text-shadow:0 0 7px #43dfff80}
.leaderboard li.identity-ranked[data-frame-theme="gold"]>span{color:#d99612;text-shadow:0 0 6px #eeb64070}
.leaderboard li.identity-ranked[data-frame-theme="silver"]>span{color:#8598b4}.leaderboard li.identity-ranked[data-frame-theme="bronze"]>span{color:#b96532}
.leaderboard li.me { color:#5868e9; font-weight:800; }
.round-banner { --result-card:#fffdf9f7;--result-soft:#f6f2ea;--result-line:#ded8cc;--result-text:#222b3a;--result-muted:#727b89; position:fixed; z-index:17; inset:0; display:grid; place-items:center; padding:24px; overflow:auto; background:#dfe5ead9; backdrop-filter:blur(10px); }
.round-banner[hidden] { display:none; }
.round-banner-card { width:min(780px,calc(100vw - 40px)); padding:28px; border:1px solid var(--result-line); border-radius:24px; background:var(--result-card); color:var(--result-text); box-shadow:0 30px 100px #42597942; animation:round-card-in .22s ease-out; }
.round-result-head { display:flex; align-items:center; gap:20px; margin-bottom:20px; }
.round-result-place { flex:none; background:linear-gradient(180deg,#fff0c4,#ffb13b 60%,#ff7a1a); background-clip:text; color:transparent; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(3rem,7vw,4.4rem); font-weight:800; line-height:1; }
.round-result-copy { min-width:0; flex:1; }
.round-banner-card span { color:#b86900; font-size:.68rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.round-banner-card h2 { margin:7px 0 7px; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(1.7rem,4vw,2.45rem); line-height:1.08; letter-spacing:-.045em; }
.round-banner-card p { margin:0; color:var(--result-muted); font-size:.86rem; line-height:1.5; }
.round-result-skin { flex:0 0 84px; width:84px; height:84px; overflow:hidden; border:2px solid #ffb13b; border-radius:50%; background:var(--result-soft); box-shadow:0 0 28px #ffb13b38; }
.round-result-skin img,.death-killer-skin img { width:100%; height:100%; display:block; border-radius:50%; object-fit:cover; }
.round-result-skin>span,.death-killer-skin>span { width:100%; height:100%; display:grid; place-items:center; border-radius:50%; }
.round-result-skin-fallback { background:linear-gradient(135deg,#7c8cff,#5bd8d0); color:#fff!important; font-size:2rem!important; line-height:1; }
.round-result-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.round-result-chips span { padding:6px 9px; border:1px solid var(--result-line); border-radius:999px; background:var(--result-soft); color:var(--result-muted); font-size:.61rem; letter-spacing:0; text-transform:none; }
.round-result-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.round-result-panel { min-width:0; padding:17px; border:1px solid var(--result-line); border-radius:16px; background:var(--result-soft); }
.round-result-panel h3 { margin:0 0 9px; font-size:.9rem; }
.round-banner-card>strong { display:block; margin-top:14px; color:var(--result-muted); font-size:.76rem; font-variant-numeric:tabular-nums; text-align:center; }
.round-results { margin:0; padding:0; border:0; background:transparent; list-style:none; counter-reset:round-rank; }
.round-results:empty { display:none; }
.round-results li { counter-increment:round-rank; display:grid; grid-template-columns:22px 28px minmax(0,1fr) auto; align-items:center; gap:7px; min-height:37px; border-top:1px solid var(--result-line); color:var(--result-muted); font-size:.72rem; text-align:left; }
.round-results li:first-child { border-top:0; color:var(--result-text); font-weight:900; }
.round-results li::before { content:counter(round-rank); color:#9299a5; font-family:Unbounded,Manrope,sans-serif; font-size:.62rem; font-variant-numeric:tabular-nums; }
.round-results li.me { color:#b86900; font-weight:900; }
.round-result-row-skin { width:28px; height:28px; overflow:hidden; border-radius:50%; background:#dfe5ec; }
.round-result-row-skin img { width:100%; height:100%; display:block; object-fit:cover; }
.round-results li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.round-results li b { color:inherit; font-size:.67rem; font-variant-numeric:tabular-nums; }
.round-progress { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; text-align:left; }
.round-progress[hidden] { display:none; }
.round-progress:empty::before { content:"Считаем награды…"; grid-column:1/-1; padding:12px; color:var(--result-muted); font-size:.72rem; text-align:center; }
.round-progress-stat,.round-progress-item { min-width:0; padding:9px 10px; border:1px solid var(--result-line); border-radius:10px; background:var(--result-card); }
.round-progress-stat small,.round-progress-item small { display:block; overflow:hidden; color:var(--result-muted); font-size:.58rem; font-weight:850; line-height:1.25; letter-spacing:.02em; text-overflow:ellipsis; white-space:nowrap; }
.round-progress-stat b,.round-progress-item b { display:block; margin-top:2px; color:var(--result-text); font-size:.74rem; font-variant-numeric:tabular-nums; }
.round-progress-stat.reward b { color:#3f9870; }
.round-progress-stat.level-up b,.round-progress-item.completed b { color:#8263d9; }
.round-progress-item { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:7px 10px; }
.round-progress-item b { margin:0; white-space:nowrap; }
.round-result-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.round-result-actions button { min-height:46px; flex:1 1 130px; border:1px solid var(--result-line); border-radius:11px; background:var(--result-soft); color:var(--result-text); font-size:.72rem; font-weight:850; cursor:pointer; }
.round-result-actions button:disabled { cursor:wait; opacity:.62; }
.round-result-actions .round-action-primary { flex-basis:210px; border:0; background:linear-gradient(180deg,#ffd06a,#ffb13b 52%,#ff8a1f); box-shadow:0 12px 25px -15px #ff8a1f; color:#241300; }
.round-banner:not([data-view="results"]) .round-banner-card { width:min(520px,calc(100vw - 40px)); text-align:center; }
.round-banner:not([data-view="results"]) .round-result-head { display:block; margin:0; }
.round-banner:not([data-view="results"]) .round-result-copy { text-align:center; }

.death-overlay { --death-card:#fffdf9f7;--death-soft:#f6f2ea;--death-line:#ded8cc;--death-text:#222b3a;--death-muted:#727b89; position:fixed; z-index:18; inset:0; display:grid; place-items:center; padding:20px; overflow:auto; background:#51131a75; backdrop-filter:blur(9px); }
.death-overlay[hidden] { display:none; }
.death-card { width:min(520px,calc(100vw - 28px)); padding:28px; border:1px solid #d9a5a8; border-radius:23px; background:var(--death-card); box-shadow:0 30px 100px #330a125c; color:var(--death-text); text-align:center; animation:round-card-in .2s ease-out; }
.death-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.death-head span { color:#c73e50; font-size:.65rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.death-head b { padding:6px 9px; border:1px solid var(--death-line); border-radius:999px; color:var(--death-muted); font-size:.59rem; }
.death-card h2 { margin:8px 0 4px; color:#df5364; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(2rem,7vw,3.15rem); line-height:1; letter-spacing:-.05em; }
.death-killer { display:flex; align-items:center; justify-content:center; gap:13px; margin:16px 0 18px; }
.death-killer-skin { flex:0 0 60px; width:60px; height:60px; overflow:hidden; border:2px solid #df5364; border-radius:50%; background:var(--death-soft); box-shadow:0 0 22px #df53643b; }
.death-killer>div:last-child { display:grid; gap:4px; text-align:left; }
.death-killer b { font-size:1rem; }
.death-killer span,.death-message,.death-balance { color:var(--death-muted); font-size:.72rem; line-height:1.5; }
.death-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:17px; }
.death-stats div { padding:12px 7px; border:1px solid var(--death-line); border-radius:12px; background:var(--death-soft); }
.death-stats b { display:block; font-family:Unbounded,Manrope,sans-serif; font-size:1rem; }
.death-stats span { display:block; margin-top:4px; color:var(--death-muted); font-size:.59rem; font-weight:750; }
.death-message { margin:0 0 13px; }
.death-revive,.death-finish { width:100%; min-height:48px; border-radius:11px; font-size:.75rem; font-weight:900; cursor:pointer; }
.death-revive { border:0; background:linear-gradient(180deg,#ffd06a,#ffb13b 52%,#ff8a1f); box-shadow:0 13px 28px -16px #ff8a1f; color:#241300; }
.death-revive:disabled { cursor:not-allowed; filter:grayscale(.45); opacity:.55; }
.death-paid-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:9px; }
.death-paid-option { min-width:0; min-height:58px; display:grid; place-items:center; align-content:center; gap:2px; padding:7px 5px; border:1px solid var(--death-line); border-radius:11px; background:var(--death-soft); color:var(--death-text); cursor:pointer; }
.death-paid-option b { font-family:Unbounded,Manrope,sans-serif; font-size:.72rem; }
.death-paid-option span { color:var(--death-muted); font-size:.57rem; font-weight:800; }
.death-paid-option:disabled { cursor:not-allowed; filter:grayscale(.5); opacity:.48; }
.death-balance { display:block; min-height:1.5em; margin:8px 0 10px; font-variant-numeric:tabular-nums; }
.death-balance.error { color:#d54353; }
.death-finish { border:1px solid var(--death-line); background:transparent; color:var(--death-muted); }
@keyframes round-card-in { from { opacity:0; transform:translateY(12px) scale(.97); } }
.spawn-protection { position:fixed; z-index:3; top:50%; left:50%; display:grid; place-items:center; transform:translate(-50%,-50%); color:#fff; text-align:center; pointer-events:none; text-shadow:0 5px 20px #26344c66; }
.spawn-protection strong { font-size:clamp(5rem,14vw,10rem); line-height:.82; letter-spacing:-.08em; opacity:0; font-variant-numeric:tabular-nums; -webkit-text-stroke:0 transparent; }
.spawn-protection strong.pulse { animation:protection-step .92s cubic-bezier(.16,.78,.28,1) both; }
.spawn-protection.go strong { font-size:clamp(4rem,12vw,8rem); letter-spacing:.02em; animation-duration:.76s; }
.spawn-protection span { margin-top:14px; padding:7px 12px; border:0; border-radius:999px; background:#ffffff24; color:#fff; font-size:clamp(.62rem,1.5vw,.82rem); font-weight:900; letter-spacing:.16em; opacity:.78; }
@keyframes protection-step {
  0% { opacity:0; transform:scale(.58); }
  18% { opacity:.9; }
  70% { opacity:.55; }
  100% { opacity:0; transform:scale(1.48); }
}
.glass-panel { border:1px solid #d5deeacc; background:var(--game-panel-bg); box-shadow:var(--panel-shadow); }
.game-stats { position:fixed; z-index:3; top:max(20px,env(safe-area-inset-top)); left:max(20px,env(safe-area-inset-left)); width:220px; padding:16px; border-radius:18px; color:var(--text); }
.practice-stat { margin:-3px 0 10px; padding:7px 8px; border:1px solid #f1bc62aa; border-radius:9px; background:#fff4d7d1; color:#8b5b13; font-size:.61rem; font-weight:900; line-height:1.3; letter-spacing:.04em; text-transform:uppercase; }
.practice-stat[hidden] { display:none; }
.giant-notice { position:fixed; z-index:14; top:max(20px,env(safe-area-inset-top)); left:50%; width:min(520px,calc(100vw - 40px)); display:grid; grid-template-columns:46px minmax(0,1fr); align-items:center; gap:12px; padding:13px 16px; border-color:#e46b75aa; border-radius:16px; background:#fffaf8ed; color:#283143; transform:translateX(-50%); pointer-events:none; animation:giant-notice-in .24s ease-out both; }
.giant-notice[hidden] { display:none; }
.giant-notice.leaving { animation:giant-notice-out .22s ease-in both; }
.giant-notice-icon { display:grid; width:46px; height:46px; place-items:center; border-radius:50%; background:#ffe6e2; font-size:1.45rem; box-shadow:inset 0 0 0 1px #ef8b8170; }
.giant-notice>div { min-width:0; display:grid; gap:2px; }
.giant-notice small { color:#c74958; font-size:.59rem; font-weight:950; letter-spacing:.13em; }
.giant-notice strong { overflow:hidden; font-size:.86rem; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.giant-notice div>span { color:#6f7887; font-size:.67rem; font-weight:680; line-height:1.35; }
@keyframes giant-notice-in { from { opacity:0; transform:translate(-50%,-12px) scale(.98); } }
@keyframes giant-notice-out { to { opacity:0; transform:translate(-50%,-8px) scale(.985); } }
.mode-game-stat { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-3px 0 10px; color:#6574e8; font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.mode-game-stat b { color:#35435a; font-size:.92rem; font-variant-numeric:tabular-nums; letter-spacing:0; }
.mode-game-stat.final-minute,.mode-game-stat.final-minute b { color:#ef704e; }
.daily-mutator { display:grid; gap:2px; margin:-2px 0 11px; padding:8px 9px; border:1px solid #f2cc78; border-radius:10px; background:#fff8dfb8; color:#8a611d; line-height:1.25; }
.daily-mutator[hidden] { display:none; }
.daily-mutator b { font-size:.72rem; }
.daily-mutator span { color:#8f754b; font-size:.61rem; font-weight:650; }
.daily-mutator.golden { border-color:#f4a928;background:linear-gradient(135deg,#fff3bdcc,#ffe386cc);box-shadow:0 0 22px #ffbd3d30;color:#8b5200; }
.mass-stat { display:grid; gap:2px; padding-bottom:10px; border-bottom:1px solid #e3e9f1; }
.mass-stat small { color:#8591a4; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.mass-stat strong { font-size:1.65rem; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
.mass-stat i { color:#9aa5b5; font-size:.9rem; font-style:normal; font-weight:700; letter-spacing:0; }
.stat-row { display:flex; justify-content:space-between; gap:8px; padding:10px 0; color:#69778d; font-size:.78rem; font-variant-numeric:tabular-nums; }
.boost-stat { display:flex; align-items:center; gap:8px; padding-top:10px; border-top:1px solid #e3e9f1; color:#758297; font-size:.77rem; }
.boost-stat span { flex:0 0 8px; width:8px; height:8px; border-radius:50%; background:#aab4c2; }
.boost-stat.ready { color:#3c8b68; }
.boost-stat.ready span { background:#47c78c; box-shadow:0 0 0 4px #47c78c20; }
.boost-stat.active { color:#d9692e; }
.boost-stat.active span { background:#ff7a35; box-shadow:0 0 0 4px #ff7a3526; animation:boost-dot .35s ease-in-out infinite alternate; }
.boost-stat.cooldown span { background:#f0aa45; }
@keyframes boost-dot { to { transform:scale(1.35); } }
.bonus-inventory { position:fixed; z-index:3; left:max(20px,env(safe-area-inset-left)); top:250px; width:220px; padding:12px; border-radius:16px; color:var(--text); }
.bonus-inventory-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.bonus-inventory-head > span { color:#526078; font-size:.72rem; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.bonus-inventory-head small { color:#8c97a9; font-size:.55rem; white-space:nowrap; }
.bonus-inventory-head kbd { min-width:17px; padding:1px 4px; border-color:#d1d9e5; background:#ffffffb8; color:#68758a; font-size:.52rem; }
.bonus-items { display:flex; flex-wrap:wrap; gap:7px; min-height:44px; margin-top:9px; }
.bonus-empty { align-self:center; color:#7d899c; font-size:.76rem; font-weight:700; }
.bonus-item { position:relative; width:44px; height:44px; display:grid; place-items:center; border:1px solid #dbe3ed; border-radius:12px; background:#ffffffd4; color:#425069; font-size:1.3rem; box-shadow:0 3px 10px #526d9914; }
.bonus-item.selected { border-color:#737fff; background:#f2f3ff; box-shadow:0 0 0 3px #737fff22,0 5px 16px #526d9924; transform:translateY(-1px); }
.bonus-item b { position:absolute; right:-4px; bottom:-4px; min-width:20px; height:20px; display:grid; place-items:center; padding:0 4px; border:2px solid #fff; border-radius:10px; background:#5e6bed; color:#fff; font-size:.62rem; }
.bonus-selected-name { margin-top:9px; padding:7px 9px; border-radius:9px; background:#f1f3ff; color:#3f4ba5; font-size:.76rem; font-weight:900; line-height:1.25; text-align:center; }
.bonus-effect { margin-top:8px; padding:6px 8px; border-radius:9px; background:#fff4d2; color:#8b6622; font-size:.66rem; font-weight:800; text-align:center; }
.onboarding-hint{position:fixed;left:50%;bottom:26px;z-index:16;display:grid;gap:4px;width:min(390px,calc(100vw - 28px));padding:13px 17px;transform:translateX(-50%);border:1px solid rgba(255,178,63,.48);background:rgba(255,255,255,.86);color:#29334a;text-align:center;pointer-events:none;box-shadow:0 12px 34px rgba(34,42,66,.16)}.onboarding-hint[hidden]{display:none}.onboarding-hint small{color:#ad6a00;font-size:.61rem;font-weight:900;letter-spacing:.13em}.onboarding-hint strong{font-size:.91rem}.onboarding-hint span{color:#667087;font-size:.73rem;font-weight:650}
@media(max-width:720px){.onboarding-hint{bottom:92px}}
.emoji-chat { position:fixed; z-index:4; left:max(20px,env(safe-area-inset-left)); bottom:max(20px,env(safe-area-inset-bottom)); width:min(330px,calc(100vw - 40px)); color:var(--text); }
.chat-feed { display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin-bottom:8px; pointer-events:none; }
.chat-message { max-width:100%; padding:7px 11px; border:1px solid var(--panel-border); border-radius:12px; background:var(--panel-bg); box-shadow:0 4px 16px #42597918; color:#435169; font-size:.72rem; line-height:1.35; overflow-wrap:anywhere; animation:chat-in .18s ease-out; }
.chat-message b { margin-right:5px; color:#6878ff; }
@keyframes chat-in { from { opacity:0; transform:translateY(5px); } }
.chat-compose { display:grid; grid-template-columns:1fr 38px; gap:7px; margin-bottom:7px; padding:7px; border:1px solid var(--panel-border); border-radius:14px; background:var(--panel-bg); box-shadow:var(--panel-shadow); }
.chat-compose input { min-width:0; height:38px; padding:0 10px; border:1px solid #dbe3ee; border-radius:9px; outline:0; background:#f8fbff; color:var(--text); font-size:.75rem; }
.chat-compose input:focus { border-color:#8994ff; box-shadow:0 0 0 3px #6878ff18; }
.chat-compose button { border:0; border-radius:9px; background:linear-gradient(135deg,#6579ff,#8d5eff); color:#fff; cursor:pointer; }
.emoji-picker { grid-template-columns:repeat(6,1fr); gap:5px; margin-bottom:7px; padding:8px; border:1px solid var(--panel-border); border-radius:14px; background:var(--panel-bg); box-shadow:var(--panel-shadow); }
.emoji-picker:not([hidden]) { display:grid; }
.emoji-picker button { height:36px; border:1px solid #e1e7ef; border-radius:9px; background:#f8fbff; font-size:1.1rem; cursor:pointer; transition:transform .15s,background .15s; }
.emoji-picker button:hover { transform:translateY(-1px); background:#fff; }
.emoji-toggle { min-height:44px; display:flex; align-items:center; gap:8px; padding:0 14px; border:1px solid var(--panel-border); border-radius:14px; background:var(--panel-bg); box-shadow:var(--panel-shadow); color:#536177; font-size:1rem; cursor:pointer; }
.emoji-toggle span { font-size:.72rem; font-weight:800; }
.emoji-toggle kbd { margin-left:4px; border-color:#ccd6e4; background:#ffffffb8; color:#66758c; }
.reaction-wheel { position:fixed; z-index:18; left:50%; top:50%; display:grid; grid-template-columns:repeat(3,112px); gap:9px; padding:14px; border:1px solid var(--panel-border); border-radius:24px; background:rgba(255,255,255,.94); box-shadow:0 24px 70px rgba(45,55,85,.26); transform:translate(-50%,-50%); backdrop-filter:blur(14px); }
.reaction-wheel[hidden] { display:none; }
.reaction-wheel button { min-height:88px; display:grid; place-items:center; align-content:center; gap:5px; border:1px solid #dce4ef; border-radius:17px; background:#f8fbff; color:#4c5970; cursor:pointer; transition:transform .15s,border-color .15s,background .15s; }
.reaction-wheel button:hover,.reaction-wheel button:focus-visible { transform:translateY(-2px) scale(1.02); border-color:#8e99ff; background:#fff; outline:0; }
.reaction-wheel b { font-size:1.75rem; line-height:1; }
.reaction-wheel span { font-size:.72rem; font-weight:900; }
.touch-actions { position:fixed; z-index:4; right:max(18px,env(safe-area-inset-right)); bottom:max(18px,env(safe-area-inset-bottom)); display:none; align-items:flex-end; gap:12px; }
.spectator-controls { position:fixed; z-index:4; left:50%; bottom:max(20px,env(safe-area-inset-bottom)); display:grid; grid-template-columns:48px minmax(180px,280px) 48px; align-items:center; gap:10px; padding:10px; border-radius:18px; transform:translateX(-50%); color:var(--text); }
.spectator-controls[hidden] { display:none; }
.spectator-controls > div { min-width:0; display:grid; justify-items:center; gap:2px; }
.spectator-controls small { color:#6574e8; font-size:.58rem; font-weight:900; letter-spacing:.13em; }
.spectator-controls strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.92rem; }
.spectator-controls span { color:#8290a4; font-size:.61rem; font-weight:750; }
.spectator-controls button { width:48px; height:48px; border:1px solid #d6deea; border-radius:13px; background:#ffffffd9; color:#5d6de3; font-size:1.8rem; line-height:1; cursor:pointer; box-shadow:0 3px 12px #526d9914; }
.spectator-controls button:hover:not(:disabled) { border-color:#9ba7ff; background:#fff; transform:translateY(-1px); }
.spectator-controls button:disabled { opacity:.35; cursor:default; }
.touch-actions button { width:58px; height:58px; border:1px solid var(--panel-border); border-radius:50%; background:var(--panel-bg); box-shadow:var(--panel-shadow); color:#59677e; font-weight:900; }
.touch-actions button.active { border-color:#ffad63; background:#fff7ed; box-shadow:0 0 0 4px #ff7b1926,0 0 24px #ff6b3538; }
.touch-actions .bonus-touch-button { width:48px; height:48px; border-color:#d9defe; background:#f6f7ff; color:#6470df; }
.touch-actions .bonus-use-button { border-color:#ffd0a6; background:#fff7ec; color:#d86a28; }
#boost-button { position:relative; }
.boost-flame-icon { position:absolute; left:16px; top:21px; width:27px; height:16px; border-radius:65% 15% 65% 15%; background:linear-gradient(90deg,#fff36a 0 32%,#ff9c22 33% 68%,#ff4726 69%); transform:rotate(-45deg); filter:drop-shadow(0 0 4px #ff6f27aa); }
#boost-button.active .boost-flame-icon { animation:boost-button-flame .13s ease-in-out infinite alternate; }
@keyframes boost-button-flame { to { transform:rotate(-45deg) scaleX(.82) scaleY(1.12); filter:drop-shadow(0 0 7px #ffba35cc); } }
#split-button { width:72px; height:72px; position:relative; }
#split-button span { position:absolute; width:24px; height:24px; border-radius:50%; background:#7c85ff; }
#split-button span:first-child { left:14px; top:25px; }
#split-button span:last-child { right:14px; top:16px; }

@media (pointer: coarse) { .touch-actions:not([hidden]) { display:flex; } }
@media (max-width: 680px) {
  .start-panel { padding:142px 12px 126px; }
  .start-bubbles i { transform:scale(.72); }
  .start-bubbles i:nth-child(3),.start-bubbles i:nth-child(11) { display:none; }
  .game-title { top:62px; width:min(340px,calc(100vw - 72px)); }
  .start-card { padding:18px; border-radius:10px; }
  .account-dialog-card { padding:22px 18px; border-radius:16px; }
  .wallet-grid { gap:8px; }
  .wallet-grid article { padding:13px; }
  .exchange-form { grid-template-columns:1fr 94px; }
  .exchange-form > div { grid-column:1/-1; }
  .exchange-form button { min-width:0; }
  .round-banner { padding:10px; align-items:start; }
  .round-banner-card { width:100%; margin:auto 0; padding:18px 14px; border-radius:18px; }
  .round-result-head { gap:11px; margin-bottom:14px; }
  .round-result-place { font-size:2.7rem; }
  .round-result-skin { flex-basis:58px; width:58px; height:58px; }
  .round-result-grid { grid-template-columns:1fr; gap:10px; }
  .round-result-panel { padding:13px; }
  .round-result-actions { margin-top:13px; }
  .round-result-actions button { min-height:42px; }
  .death-overlay { padding:10px; align-items:start; }
  .death-card { margin:auto 0; padding:20px 16px; border-radius:18px; }
  .death-stats { gap:5px; }
  .death-stats div { padding:10px 4px; }
  .mode-select { width:min(430px,100%); }
  .mode-select-head { gap:12px; margin-bottom:12px; }
  .mode-select-head p { display:none; }
  .mode-back { flex-basis:44px; width:44px; height:44px; border-radius:12px; }
  .mode-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .mode-card { min-height:184px; grid-template-columns:1fr; grid-template-rows:76px auto auto; gap:6px; padding:13px; border-radius:16px; text-align:center; }
  .mode-card-art { width:76px; height:76px; grid-row:auto; justify-self:center; }
  .mode-card-copy { justify-items:center; }
  .mode-card-copy b { font-size:1.05rem; }
  .mode-card-copy em { display:none; }
  .mode-status { justify-self:center; font-size:.5rem; }
  .mode-tooltip { inset:7px; padding:14px; font-size:.66rem; text-align:left; }
  .start-character-left { left:-88px; top:48%; width:270px; transform:translate(var(--left-parallax-x,0%),calc(-50% + var(--left-parallax-y,0%))) rotate(-7deg); }
  .start-character-right { right:-96px; top:48%; width:280px; transform:translate(var(--right-parallax-x,0%),calc(-50% + var(--right-parallax-y,0%))) rotate(7deg); }
  .start-character-down { width:170px; margin-top:-1px; transform:translate(var(--down-parallax-x,0%),var(--down-parallax-y,0%)); }
  .start-card > h2 { font-size:3.1rem; }
  .skin-dialog-card { padding:20px 12px 12px; }
  .skin-dialog-head { margin-inline:6px; }
  .skin-dialog-head h2 { font-size:1.6rem; }
  .skin-dialog-head p { display:none; }
  .skin-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; max-height:72vh; }
  .controls-note { display:none; }
  .leaderboard { top:12px; right:8px; width:190px; padding:13px; border-radius:14px; }
  .leaderboard-head { font-size:.78rem; }
  .leaderboard-head small { font-size:.64rem; }
  .leaderboard li { gap:6px; padding:5px 0; font-size:.76rem; }
  .game-stats { top:12px; left:8px; width:172px; padding:12px 13px; border-radius:14px; }
  .giant-notice { top:12px; width:min(440px,calc(100vw - 390px)); min-width:300px; }
  .mass-stat small { font-size:.64rem; }
  .mass-stat strong { font-size:1.38rem; }
  .mass-stat i { font-size:.76rem; }
  .stat-row,.boost-stat { font-size:.7rem; }
  .bonus-inventory { top:232px; left:max(12px,env(safe-area-inset-left)); width:190px; padding:10px; }
  .bonus-inventory-head small { display:none; }
  .bonus-item { width:39px; height:39px; font-size:1.15rem; }
  .emoji-chat { left:12px; bottom:max(12px,env(safe-area-inset-bottom)); width:min(230px,calc(100vw - 110px)); }
  .spectator-controls { bottom:max(12px,env(safe-area-inset-bottom)); grid-template-columns:44px minmax(150px,1fr) 44px; width:min(360px,calc(100vw - 24px)); gap:7px; padding:8px; }
  .spectator-controls button { width:44px; height:44px; }
  .emoji-picker { grid-template-columns:repeat(4,1fr); }
  .reaction-wheel { grid-template-columns:repeat(3,minmax(82px,1fr)); width:min(340px,calc(100vw - 24px)); gap:7px; padding:10px; }
  .reaction-wheel button { min-height:78px; }
}
@media (max-width: 340px) {
  .leaderboard { top:196px; right:8px; width:182px; }
  .game-stats { width:172px; }
  .emoji-chat { width:calc(100vw - 96px); }
}

/* Post-start product shell. The original start screen is deliberately outside
   this scope, so both themes can evolve without changing the entry card. */
.poststart-bar { width:100%; min-height:62px; display:flex; align-items:center; gap:22px; margin:0 0 22px; padding:9px 12px; border:1px solid #d7e0ec; border-radius:18px; background:#ffffffed; box-shadow:0 14px 40px #526d9922; }
.poststart-brand { display:flex; align-items:center; gap:9px; padding:7px 8px; border:0; background:transparent; color:#172035; cursor:pointer; white-space:nowrap; }
.poststart-brand > span { width:25px; height:25px; border-radius:50%; background:conic-gradient(#ff4a9a,#ffb13b,#38e07b,#3ee0ff,#8b5cff,#ff4a9a); box-shadow:0 0 18px #6578ff55; }
.poststart-brand b { font-size:.78rem; font-weight:950; letter-spacing:-.03em; }
.poststart-brand em { color:#6578ff; font-style:normal; }
.poststart-bar > nav,.portal-topbar > nav { display:flex; align-items:center; gap:3px; }
.poststart-bar nav button,.portal-topbar nav button { min-height:38px; padding:0 11px; border:0; border-radius:10px; background:transparent; color:#718096; font-size:.7rem; font-weight:800; cursor:pointer; }
.poststart-bar nav button:hover,.poststart-bar nav button.active,.portal-topbar nav button:hover,.portal-topbar nav button.active { background:#eef1ff; color:#5567e9; }
.poststart-actions { min-width:0; display:flex; align-items:center; gap:8px; margin-left:auto; }
.poststart-wallet { min-height:38px; display:flex; align-items:center; gap:5px; padding:0 10px; border:1px solid #dbe3ee; border-radius:11px; background:#f7f9fd; color:#27344a; font-size:.72rem; font-variant-numeric:tabular-nums; }
.poststart-wallet i { width:15px; height:15px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff9bc,#ffc33f 55%,#d48616); box-shadow:inset 0 0 0 2px #f3aa27; }
.poststart-wallet i.mini { width:11px; height:11px; margin-left:4px; background:#a9b3c8; box-shadow:inset 0 0 0 2px #7c89a2; }
.poststart-wallet small { color:#8490a4; font-size:.58rem; }
.poststart-theme,.poststart-profile,.portal-close { min-height:38px; border:1px solid #dbe3ee; border-radius:11px; background:#f7f9fd; color:#46546a; cursor:pointer; }
.poststart-theme { width:38px; font-size:1rem; }
.poststart-profile { max-width:160px; display:flex; align-items:center; gap:8px; padding:0 11px 0 6px; }
.poststart-profile span { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#42c999,#6578ff); color:#fff; font-size:.65rem; }
.poststart-profile b { overflow:hidden; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }

.portal-dialog { width:100%; max-width:none; height:100%; max-height:none; padding:0; border:0; background:transparent; color:#eff5ff; }
.portal-dialog::backdrop { background:#060911e8; backdrop-filter:blur(10px); }
.portal-shell { --portal-bg:#080c14; --portal-bg-2:#0e1521; --portal-panel:#121b29; --portal-panel-2:#182335; --portal-line:#26354b; --portal-text:#eff5ff; --portal-muted:#8d9bad; --portal-cyan:#3ee0ff; --portal-violet:#8b5cff; --portal-green:#38e07b; width:100%; min-height:100%; background:radial-gradient(circle at 18% -10%,#17344f 0,transparent 34%),radial-gradient(circle at 90% 10%,#291c50 0,transparent 30%),var(--portal-bg); color:var(--portal-text); overflow:auto; }
.portal-shell.light { --portal-bg:#eef3f8; --portal-bg-2:#f8fbff; --portal-panel:#fff; --portal-panel-2:#f1f5fa; --portal-line:#d9e2ed; --portal-text:#172035; --portal-muted:#728096; background:radial-gradient(circle at 18% -10%,#cceefe 0,transparent 34%),radial-gradient(circle at 90% 10%,#e6dafe 0,transparent 30%),var(--portal-bg); }
.portal-topbar { position:sticky; z-index:5; top:0; min-height:68px; display:flex; align-items:center; gap:18px; padding:9px max(18px,calc((100vw - 1260px)/2)); border-bottom:1px solid var(--portal-line); background:color-mix(in srgb,var(--portal-bg) 90%,transparent); backdrop-filter:blur(16px); }
.portal-topbar .poststart-brand { color:var(--portal-text); }
.portal-topbar nav button { color:var(--portal-muted); }
.portal-topbar nav button:hover,.portal-topbar nav button.active { background:var(--portal-panel-2); color:var(--portal-cyan); }
.portal-topbar .poststart-wallet,.portal-topbar .poststart-theme,.portal-close { border-color:var(--portal-line); background:var(--portal-panel); color:var(--portal-text); }
.portal-close { width:38px; font-size:1.55rem; line-height:1; }
.portal-content { width:min(1180px,calc(100% - 36px)); min-height:calc(100vh - 69px); margin:0 auto; padding:38px 0 80px; outline:0; }
.portal-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:22px; }
.portal-kicker { color:var(--portal-cyan); font-size:.68rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.portal-page-head h1 { margin:5px 0 0; color:var(--portal-text); font-size:clamp(2rem,5vw,3.5rem); line-height:.95; letter-spacing:-.055em; }
.portal-page-head p { max-width:560px; margin:7px 0 0; color:var(--portal-muted); font-size:.82rem; line-height:1.55; }
.portal-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
.portal-card { grid-column:span 4; min-width:0; padding:20px; border:1px solid var(--portal-line); border-radius:18px; background:color-mix(in srgb,var(--portal-panel) 93%,transparent); box-shadow:0 18px 50px #00000020; }
.portal-card.wide { grid-column:span 8; }
.portal-card.full { grid-column:1/-1; }
.portal-card h2,.portal-card h3 { margin:0; color:var(--portal-text); }
.portal-card h2 { font-size:1.45rem; }
.portal-card h3 { font-size:.92rem; }
.portal-card p { margin:8px 0 0; color:var(--portal-muted); font-size:.76rem; line-height:1.5; }
.portal-profile-card { display:flex; align-items:center; gap:16px; }
.portal-avatar { flex:0 0 72px; width:72px; height:72px; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#ff4a9a,#ffb13b,#38e07b,#3ee0ff,#8b5cff,#ff4a9a); color:#fff; font-size:1.8rem; font-weight:900; box-shadow:0 0 32px #3ee0ff44; }
.portal-role { display:inline-flex; margin-top:8px; padding:5px 8px; border:1px solid #3ee0ff55; border-radius:999px; background:#3ee0ff18; color:var(--portal-cyan); font-size:.6rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.portal-wallet-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.portal-wallet-grid div { padding:13px; border:1px solid var(--portal-line); border-radius:13px; background:var(--portal-panel-2); }
.portal-wallet-grid small { display:block; color:var(--portal-muted); font-size:.62rem; }
.portal-wallet-grid strong { display:block; margin-top:3px; color:var(--portal-text); font-size:1.55rem; font-variant-numeric:tabular-nums; }
.portal-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.portal-button { min-height:39px; padding:0 14px; border:1px solid var(--portal-line); border-radius:10px; background:var(--portal-panel-2); color:var(--portal-text); font-size:.72rem; font-weight:850; cursor:pointer; }
.portal-button.primary { border-color:#3ee0ff66; background:linear-gradient(135deg,#1abbd7,#6974f5); color:#fff; }
.portal-button.danger { color:#ff8d98; }
.portal-button:disabled { opacity:.45; cursor:default; }
.portal-list { display:grid; gap:8px; margin-top:14px; }
.portal-list > article { min-height:58px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:11px 13px; border:1px solid var(--portal-line); border-radius:12px; background:var(--portal-panel-2); }
.portal-list b { display:block; color:var(--portal-text); font-size:.78rem; }
.portal-list small { display:block; margin-top:3px; color:var(--portal-muted); font-size:.65rem; }
.portal-list strong { color:var(--portal-green); font-size:.72rem; white-space:nowrap; }
.portal-empty { min-height:220px; display:grid; place-items:center; align-content:center; text-align:center; }
.portal-empty .portal-orb { width:92px; height:92px; margin-bottom:18px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff9,#3ee0ff 20%,#8b5cff 62%,#ff4a9a); box-shadow:0 0 50px #8b5cff66; }
.portal-feature-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:16px; }
.portal-feature { min-height:150px; padding:16px; border:1px solid var(--portal-line); border-radius:15px; background:var(--portal-panel-2); }
.portal-feature i { width:38px; height:38px; display:grid; place-items:center; margin-bottom:14px; border-radius:12px; background:#3ee0ff18; color:var(--portal-cyan); font-style:normal; font-weight:950; }
.portal-feature strong { display:block; color:var(--portal-text); font-size:.88rem; }
.portal-feature span { display:block; margin-top:7px; color:var(--portal-muted); font-size:.69rem; line-height:1.45; }
.portal-rating { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.portal-rating strong { font-size:1.55rem; }
.portal-rating em { color:var(--portal-muted); font-size:.65rem; font-style:normal; }
.portal-admin-table { width:100%; margin-top:14px; border-collapse:collapse; color:var(--portal-text); font-size:.7rem; }
.portal-admin-table th,.portal-admin-table td { padding:10px 8px; border-bottom:1px solid var(--portal-line); text-align:left; }
.portal-admin-table th { color:var(--portal-muted); font-size:.58rem; letter-spacing:.08em; text-transform:uppercase; }
.portal-status { display:inline-flex; align-items:center; gap:7px; color:var(--portal-green); font-size:.68rem; font-weight:800; }
.portal-status::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--portal-green); box-shadow:0 0 0 4px #38e07b18; }
.portal-mobile-nav { display:none; }

body.poststart-dark #start-panel:has(#mode-select:not([hidden])) { background:#080c14; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .game-title,body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .start-bubbles,body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .start-characters { display:none; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .poststart-bar,body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .mode-card,body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .mode-back { border-color:#26354b; background:#121b29ee; color:#eff5ff; box-shadow:0 18px 50px #0006; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .poststart-brand { color:#eff5ff; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .poststart-bar nav button,body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .mode-card-copy em,body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .mode-select-head p { color:#8d9bad; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .poststart-bar nav button.active,body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .poststart-bar nav button:hover { background:#182335; color:#3ee0ff; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .mode-select-head { color:#eff5ff; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .mode-tooltip { border-color:#33445e; background:#121b29f7; color:#a5b1c2; }
body.poststart-dark #start-panel:has(#mode-select:not([hidden])) .mode-tooltip b { color:#eff5ff; }

@media (max-width:900px) {
  .poststart-bar > nav,.portal-topbar > nav { display:none; }
  .poststart-brand b { display:none; }
  .portal-card,.portal-card.wide { grid-column:span 6; }
  .portal-feature-grid { grid-template-columns:1fr 1fr; }
  .portal-mobile-nav { position:fixed; z-index:7; left:12px; right:12px; bottom:max(10px,env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(5,1fr); gap:3px; padding:6px; border:1px solid var(--portal-line); border-radius:16px; background:color-mix(in srgb,var(--portal-panel) 94%,transparent); box-shadow:0 16px 50px #0008; backdrop-filter:blur(14px); }
  .portal-mobile-nav button { min-height:44px; padding:0 3px; border:0; border-radius:10px; background:transparent; color:var(--portal-muted); font-size:.58rem; font-weight:800; }
  .portal-mobile-nav button.active { background:var(--portal-panel-2); color:var(--portal-cyan); }
}
@media (max-width:620px) {
  .poststart-bar { margin-bottom:12px; padding:7px; }
  .poststart-wallet { display:none; }
  .poststart-profile b { max-width:70px; }
  .portal-content { width:min(100% - 22px,1180px); padding-top:24px; }
  .portal-card,.portal-card.wide { grid-column:1/-1; }
  .portal-page-head { align-items:flex-start; flex-direction:column; }
  .portal-feature-grid { grid-template-columns:1fr; }
  .portal-topbar { padding-inline:11px; }
  .portal-topbar .poststart-wallet { display:none; }
}

/* Bollz start storefront. */
.start-panel { --landing-bg:#080c14; --landing-panel:#111a2a; --landing-panel-2:#16213a; --landing-line:#22304a; --landing-text:#e8eef7; --landing-muted:#8391a8; --landing-gold:#ffb13b; display:block; padding:0; background-color:var(--landing-bg); background-image:radial-gradient(900px 600px at 12% -5%,#8b5cff2e,transparent 60%),radial-gradient(800px 600px at 105% 8%,#3ee0ff1f,transparent 60%),radial-gradient(900px 700px at 50% 108%,#ff7a1a1f,transparent 60%),linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px); background-size:auto,auto,auto,54px 54px,54px 54px; color:var(--landing-text); font-family:Manrope,Inter,system-ui,sans-serif; }
.start-panel .start-bubbles { position:fixed; opacity:.48; }
.start-panel .start-bubbles i { border:0; opacity:.7; box-shadow:0 0 24px currentColor; animation:landing-drift 16s ease-in-out infinite alternate; }
.start-panel .start-bubbles i:nth-child(2n) { animation-duration:22s; animation-direction:alternate-reverse; }
@keyframes landing-drift { to { transform:translate(32px,-24px); } }
.landing-shell { width:min(1120px,100%); min-height:100%; margin:0 auto; padding:38px 20px 34px; display:block; }
.landing-hero { position:relative; z-index:2; text-align:center; }
.landing-art { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:clamp(10px,3vw,44px); }
.landing-side { width:clamp(156px,28.6vw,338px); max-height:320px; justify-self:center; object-fit:contain; filter:drop-shadow(0 18px 40px #0009); animation:landing-float 6s ease-in-out infinite; }
.landing-right { animation-delay:-3s; }
.landing-brand { display:flex; flex-direction:column; align-items:center; gap:8px; }
.landing-brand h1 { margin:0; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(34px,6vw,64px); font-weight:800; letter-spacing:.01em; line-height:1; }
.landing-brand h1 em { background:linear-gradient(180deg,#fff0c4,#ffb13b 55%,#ff7a1a); background-clip:text; color:transparent; font-style:normal; }
.landing-brand > span { color:var(--landing-muted); font-size:13px; font-weight:800; letter-spacing:.24em; text-transform:uppercase; }
.landing-main { width:clamp(105px,14vw,168px); margin-top:10px; filter:drop-shadow(0 22px 46px #0009); animation:landing-float 5.5s ease-in-out -1.5s infinite; }
@keyframes landing-float { 50% { transform:translateY(-12px); } }
.landing-eyebrow { display:block; margin-top:24px; color:var(--landing-gold); font-size:11.5px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; }
.landing-title { margin:13px 0 10px; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(32px,5vw,58px); font-weight:800; line-height:1.02; letter-spacing:-.03em; }
.landing-tagline { margin:0; color:#b9c4d6; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(16px,2.2vw,22px); font-weight:700; }
.landing-start-card { width:min(620px,100%); margin:34px auto 0; padding:24px; border:1px solid var(--landing-line); border-radius:22px; background:linear-gradient(180deg,#ffffff0a,transparent 45%),var(--landing-panel); box-shadow:0 34px 80px -46px #000; color:var(--landing-text); }
.landing-start-card .account-launch { min-height:60px; margin:0 0 16px; border-color:#263652; border-radius:14px; background:#0c121e; color:var(--landing-text); }
.landing-start-card .account-launch:hover { border-color:#5567a1; box-shadow:0 0 0 3px #8b5cff24; }
.landing-start-card .account-launch small { color:var(--landing-muted); }
.landing-start-card .account-launch b { font-size:.86rem; }
.landing-start-card .account-launch-arrow { color:var(--landing-gold); }
.landing-play { height:66px; margin:0; border-radius:15px; background:linear-gradient(180deg,#ffd06a,#ffb13b 45%,#ff8a1f); box-shadow:inset 0 1px #ffffff8c,0 14px 34px -14px #ff9628d9; color:#1b0f00; font-family:Unbounded,Manrope,sans-serif; font-size:20px; letter-spacing:.07em; }
.landing-play kbd { border-color:#6a3a0038; background:#4d270017; color:#4a2800; }
.landing-note { margin:12px 0 0; color:#5d6b82; font-size:12.5px; line-height:1.55; }
.landing-start-card .start-settings { margin-top:18px; border-color:#1a263c; border-radius:14px; background:transparent; }
.landing-start-card .start-settings summary { color:var(--landing-text); }
.landing-start-card .start-settings summary small { display:flex; align-items:center; gap:7px; color:var(--landing-muted); }
.landing-live-dot { width:7px; height:7px; border-radius:50%; background:#38e07b; box-shadow:0 0 10px #38e07b; }
.landing-start-card .settings-chevron { width:26px; height:26px; display:grid; place-items:center; border:1px solid #ffb13b47; border-radius:8px; background:#ffb13b24; color:var(--landing-gold); }
.landing-start-card .start-settings[open] .settings-chevron { transform:rotate(45deg); }
.landing-start-card .settings-grid { border-color:#1a263c; background:#1a263c; }
.landing-start-card .setting { background:var(--landing-panel); }
.landing-start-card .setting b { color:var(--landing-text); }
.landing-start-card .setting small,.landing-start-card .settings-foot { color:var(--landing-muted); }
.landing-start-card .setting input { accent-color:var(--landing-gold); }
.landing-start-card .select-setting select { border-color:var(--landing-line); background:#0c121e; color:var(--landing-text); }
.landing-start-card .settings-foot { border-color:#1a263c; }
.landing-keys-head { display:flex; align-items:center; justify-content:center; gap:10px; margin:36px 0 14px; }
.landing-keys-head span { width:120px; height:1px; background:linear-gradient(90deg,transparent,var(--landing-line)); }
.landing-keys-head span:last-child { background:linear-gradient(270deg,transparent,var(--landing-line)); }
.landing-keys-head b { color:var(--landing-muted); font-size:11.5px; letter-spacing:.18em; text-transform:uppercase; }
.landing-keys { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.landing-keys article { display:flex; flex-direction:column; align-items:center; gap:10px; padding:22px 18px 18px; border:1px solid var(--landing-line); border-radius:18px; background:linear-gradient(180deg,#ffffff09,transparent 55%),var(--landing-panel); text-align:center; transition:.15s; }
.landing-keys article:hover { transform:translateY(-3px); border-color:#ffb13b73; }
.landing-keys article > i { width:46px; height:46px; display:grid; place-items:center; border:1px solid #ffb13b47; border-radius:14px; background:#ffb13b24; color:var(--landing-gold); font-style:normal; font-weight:800; }
.landing-keys article > b { font-size:15px; }
.landing-keys article p { min-height:56px; margin:0; color:var(--landing-muted); font-size:12.5px; line-height:1.5; }
.landing-keys article kbd { width:100%; max-width:130px; height:38px; display:grid; place-items:center; margin-top:auto; border:1px solid #34466a; border-radius:10px; background:#1b2842; box-shadow:0 3px #0d1422; color:var(--landing-text); font-family:Unbounded,Manrope,sans-serif; }
.landing-controls-foot { margin:14px 0 0; color:#5d6b82; font-size:12.5px; font-weight:600; }
.landing-section { padding-top:64px; }
.landing-section > header { max-width:620px; margin:0 auto 26px; text-align:center; }
.landing-section > header .landing-eyebrow { margin:0; }
.landing-section > header h2 { margin:10px 0; font-family:Unbounded,Manrope,sans-serif; font-size:clamp(21px,2.6vw,28px); }
.landing-section > header p { margin:0; color:#b9c4d6; font-size:clamp(14.5px,1.4vw,17px); line-height:1.6; }
.landing-how { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.landing-how article { padding:20px; border:1px solid var(--landing-line); border-radius:18px; background:var(--landing-panel); text-align:left; }
.landing-how article i { width:34px; height:34px; display:grid; place-items:center; margin-bottom:12px; border:1px solid #ffb13b4d; border-radius:10px; background:#ffb13b24; color:var(--landing-gold); font-family:Unbounded,Manrope,sans-serif; font-size:14px; font-style:normal; font-weight:700; }
.landing-how article b { display:block; margin-bottom:7px; font-size:15.5px; }
.landing-how article p { margin:0; color:var(--landing-muted); font-size:13.5px; line-height:1.6; }
.landing-legal { margin-top:54px; padding:26px; border:1px solid var(--landing-line); border-radius:20px; background:var(--landing-panel); text-align:left; }
.landing-legal-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.landing-legal-grid h3 { margin:0 0 12px; color:#5d6b82; font-size:11px; letter-spacing:.16em; text-transform:uppercase; }
.landing-legal-grid a { display:flex; align-items:center; gap:8px; padding:7px 0; color:#b9c4d6; font-size:13.5px; font-weight:700; text-decoration:none; }
.landing-legal-grid a::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--landing-gold); opacity:.7; }
.landing-legal-note { display:grid; grid-template-columns:auto 1fr; gap:14px; margin-top:20px; padding-top:18px; border-top:1px solid #1a263c; }
.landing-legal-note > i { width:38px; height:38px; display:grid; place-items:center; border:1px solid #ffb13b47; border-radius:11px; background:#ffb13b24; color:var(--landing-gold); font-style:normal; font-weight:800; }
.landing-legal-note p { margin:0; color:var(--landing-muted); font-size:12.5px; line-height:1.65; }
.landing-legal-note p + p { margin-top:8px; }
.landing-legal-note b { color:#b9c4d6; }
.landing-req { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.landing-req span { padding:7px 11px; border:1px solid var(--landing-line); border-radius:9px; background:#0c121e; color:#5d6b82; font-size:12px; font-weight:700; }
.landing-footer { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-top:20px; padding:28px 0 0; border-top:1px solid #1a263c; color:#5d6b82; font-size:12.5px; }
.landing-footer>div{display:flex;flex-wrap:wrap;gap:7px 0;max-width:850px}
.landing-footer a { margin-right:14px; color:var(--landing-muted); font-weight:700; text-decoration:none; }
@media (prefers-reduced-motion:reduce) { .start-panel .start-bubbles i,.landing-side,.landing-main { animation:none; } }
@media (max-width:860px) { .landing-keys { grid-template-columns:repeat(2,1fr); } .landing-how { grid-template-columns:1fr; } .landing-legal-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:640px) {
  .landing-shell { padding:20px 12px 28px; }
  .landing-art { grid-template-columns:1fr 1fr; gap:8px; }
  .landing-brand { grid-column:1/-1; grid-row:1; }
  .landing-side { width:47vw; grid-row:2; }
  .landing-main { width:32vw; }
  .landing-start-card { padding:18px; }
  .landing-keys { gap:10px; }
  .landing-keys article { padding:18px 12px 14px; }
  .landing-keys article p { min-height:84px; font-size:12px; }
  .landing-legal-grid { grid-template-columns:1fr; gap:14px; }
  .landing-legal { padding:18px; }
  .landing-legal-note { grid-template-columns:1fr; }
  .landing-footer { align-items:flex-start; flex-direction:column; }
}

/* Shared appearance: the account theme covers the landing, field and HUD. */
:root[data-theme="dark"] .leaderboard,
:root[data-theme="dark"] .glass-panel{border-color:#293850cc;background:var(--game-panel-bg);box-shadow:var(--panel-shadow)}
:root[data-theme="dark"] .leaderboard-head,
:root[data-theme="dark"] .mode-game-stat b,
:root[data-theme="dark"] .bonus-inventory-head>span{color:#e8eef7}
:root[data-theme="dark"] .leaderboard-head small,
:root[data-theme="dark"] .leaderboard li,
:root[data-theme="dark"] .mass-stat small,
:root[data-theme="dark"] .mass-stat i,
:root[data-theme="dark"] .stat-row,
:root[data-theme="dark"] .boost-stat,
:root[data-theme="dark"] .bonus-inventory-head small,
:root[data-theme="dark"] .bonus-empty,
:root[data-theme="dark"] .spectator-controls span{color:#8d9bad}
:root[data-theme="dark"] .leaderboard li.me{color:#a9b2ff}
:root[data-theme="dark"] .mass-stat,
:root[data-theme="dark"] .boost-stat{border-color:#293850}
:root[data-theme="dark"] .round-banner{--result-card:#111a2af7;--result-soft:#0c121e;--result-line:#293850;--result-text:#eef4ff;--result-muted:#8d9bad;background:#03060cdb}
:root[data-theme="dark"] .round-banner-card{box-shadow:0 26px 86px #000a}
:root[data-theme="dark"] .round-result-chips span{color:#a5b1c4}
:root[data-theme="dark"] .death-overlay{--death-card:#111a2af7;--death-soft:#0c121e;--death-line:#293850;--death-text:#eef4ff;--death-muted:#8d9bad;background:#2b060dcc}
:root[data-theme="dark"] .death-card{border-color:#653342;box-shadow:0 30px 100px #000b}
:root[data-theme="dark"] .giant-notice{border-color:#8e4253;background:#111a2af2;color:#edf3fc;box-shadow:0 16px 48px #0008}
:root[data-theme="dark"] .giant-notice-icon{background:#3a1c29;box-shadow:inset 0 0 0 1px #a84f5e70}
:root[data-theme="dark"] .giant-notice div>span{color:#9daabd}
:root[data-theme="dark"] .daily-mutator{border-color:#6e552d;background:#2b2315d9;color:#ffd481}
:root[data-theme="dark"] .daily-mutator span{color:#c4a875}
:root[data-theme="dark"] .daily-mutator.golden{border-color:#b67b20;background:linear-gradient(135deg,#3b2b0de8,#5b4113e8);color:#ffd878}
:root[data-theme="dark"] .bonus-item{border-color:#31415a;background:#182338;color:#dce6f5;box-shadow:0 4px 14px #0004}
:root[data-theme="dark"] .bonus-item.selected{border-color:#8b82ff;background:#25284b;box-shadow:0 0 0 3px #737fff33,0 6px 18px #0005}
:root[data-theme="dark"] .bonus-item b{border-color:#111a2a}
:root[data-theme="dark"] .bonus-selected-name{background:#24264b;color:#b8c0ff}
:root[data-theme="dark"] .bonus-effect{background:#392b13;color:#ffd788}
:root[data-theme="dark"] .onboarding-hint{border-color:#ffb23f66;background:#111a2ae6;color:#f0f5ff;box-shadow:0 14px 38px #0006}
:root[data-theme="dark"] .onboarding-hint span{color:#9daabd}
:root[data-theme="dark"] .chat-message,
:root[data-theme="dark"] .chat-compose,
:root[data-theme="dark"] .emoji-picker,
:root[data-theme="dark"] .emoji-toggle{border-color:#293850;background:#111a2aed;color:#dce5f3;box-shadow:0 6px 20px #0005}
:root[data-theme="dark"] .chat-message b{color:#9aa5ff}
:root[data-theme="dark"] .chat-compose input,
:root[data-theme="dark"] .emoji-picker button{border-color:#31415a;background:#0c121e;color:#e8eef7}
:root[data-theme="dark"] .emoji-picker button:hover{background:#182338}
:root[data-theme="dark"] .reaction-wheel{border-color:#293850;background:#111a2af2;box-shadow:0 26px 80px #000b}
:root[data-theme="dark"] .reaction-wheel button{border-color:#31415a;background:#0c121e;color:#dce5f3}
:root[data-theme="dark"] .reaction-wheel button:hover,
:root[data-theme="dark"] .reaction-wheel button:focus-visible{border-color:#8e99ff;background:#182338}
:root[data-theme="dark"] .spectator-controls button,
:root[data-theme="dark"] .touch-actions button{border-color:#31415a;background:#111a2ae8;color:#dce5f3;box-shadow:0 4px 14px #0005}
:root[data-theme="dark"] .touch-actions .bonus-touch-button{border-color:#4a4f86;background:#202442;color:#aeb7ff}
:root[data-theme="dark"] .touch-actions .bonus-use-button{border-color:#79502d;background:#332416;color:#ffb776}

:root[data-theme="light"] .start-panel{
  --landing-bg:#f4f7fb;--landing-panel:#fff;--landing-panel-2:#f5f8fc;--landing-line:#d8e2ed;
  --landing-text:#172035;--landing-muted:#6f7f94;--landing-gold:#b86900;
  background-color:var(--landing-bg);
  background-image:radial-gradient(900px 600px at 12% -5%,#8b5cff18,transparent 60%),radial-gradient(800px 600px at 105% 8%,#3ee0ff18,transparent 60%),radial-gradient(900px 700px at 50% 108%,#ffb13b1c,transparent 60%),linear-gradient(#5369870d 1px,transparent 1px),linear-gradient(90deg,#5369870d 1px,transparent 1px)
}
:root[data-theme="light"] .landing-side,
:root[data-theme="light"] .landing-main{filter:drop-shadow(0 18px 34px #49617b33)}
:root[data-theme="light"] .landing-tagline,
:root[data-theme="light"] .landing-section>header p,
:root[data-theme="light"] .landing-legal-grid a,
:root[data-theme="light"] .landing-legal-note b{color:#45546b}
:root[data-theme="light"] .landing-start-card,
:root[data-theme="light"] .landing-keys article{background:linear-gradient(180deg,#ffffffd9,transparent 60%),var(--landing-panel);box-shadow:0 24px 58px -38px #536b8b55}
:root[data-theme="light"] .landing-start-card .account-launch,
:root[data-theme="light"] .landing-start-card .select-setting select,
:root[data-theme="light"] .landing-req span{border-color:var(--landing-line);background:#f5f8fc;color:#66758a}
:root[data-theme="light"] .landing-start-card .start-settings,
:root[data-theme="light"] .landing-start-card .settings-grid,
:root[data-theme="light"] .landing-start-card .settings-foot,
:root[data-theme="light"] .landing-legal-note,
:root[data-theme="light"] .landing-footer{border-color:var(--landing-line)}
:root[data-theme="light"] .landing-start-card .settings-grid{background:var(--landing-line)}
:root[data-theme="light"] .landing-keys article kbd{border-color:#ccd7e4;background:#edf2f8;box-shadow:0 3px #c8d2df;color:#39485f}

/* landing legal compact (Claude) */
.landing-req{align-items:center}
.landing-req a{padding:7px 11px;border:1px solid var(--landing-line);border-radius:9px;background:#0c121e;color:#b9c4d6;font-size:12px;font-weight:700;text-decoration:none}
.landing-req a:hover{color:#fff}
.landing-req small{margin-left:auto;color:#5d6b82;font-size:12px}
.landing-legal{margin-bottom:28px}
@media(max-width:640px){.landing-req small{margin-left:0;width:100%}}
