/* =========================================================
   Dovelo — platform styles
   ========================================================= */

:root {
  --bg: #0e1124;
  --bg-2: #12162f;
  --panel: #181d3b;
  --panel-2: #20264a;
  --line: #2b3262;
  --text: #f3f5ff;
  --muted: #9aa4d8;

  --lime: #b8ff3d;
  --lime-dark: #6fa300;
  --orange: #ff8a1f;
  --cyan: #2ad4ff;
  --red: #ff4d5e;
  --yellow: #ffd23f;

  --radius: 18px;
  --top: 64px;
  --side: 236px;
  --accent: var(--lime);

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
[hidden] { display: none !important; }

svg.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.fill { fill: currentColor; stroke: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------------------------------------------------------
   Layout shell
--------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  grid-template-rows: var(--top) 1fr;
  min-height: 100vh;
}

.topbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(12px, 2vw, 24px);
  height: var(--top);
  background: rgba(14, 17, 36, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 10px; width: calc(var(--side) - 24px); flex: none; }
.logo-mark { width: 38px; height: 38px; }
.logo-word { font-family: var(--display); font-size: 31px; letter-spacing: .5px; color: var(--lime); line-height: 1; padding-bottom: 3px; }

.search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--lime); background: var(--panel-2); color: var(--text); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-weight: 700; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }

.top-actions { margin-left: auto; display: flex; gap: 8px; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--text);
  transition: background .15s, border-color .15s, transform .1s;
}
.icon-btn:hover { background: var(--panel-2); border-color: #3a4290; }
.icon-btn:active { transform: translateY(1px); }
.icon-btn.on { color: var(--red); }

/* Sidebar */
.sidebar {
  position: sticky;
  top: var(--top);
  align-self: start;
  height: calc(100vh - var(--top));
  overflow-y: auto;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 2px solid var(--line);
  background: var(--bg-2);
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { margin: 14px 12px 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: #c9d0f5;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: var(--lime); color: #11150a; box-shadow: 0 3px 0 var(--lime-dark); }
.nav-item .badge-n { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.1); }
.nav-item.active .badge-n { background: rgba(0,0,0,.14); }

.side-note {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #232a5a, #181d3b);
  border: 2px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.side-note strong { color: var(--text); font-size: 15px; }

/* Content */
.content { min-width: 0; padding: 22px clamp(14px, 3vw, 36px) 0; }

.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin: 0 -4px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .nav-item { flex: none; padding: 9px 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 999px; font-size: 14px; }
.chips .nav-item.active { border-color: var(--lime); }
.chips .nav-label { display: none; }

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 16px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .3px;
  color: #11150a;
  background: var(--lime);
  box-shadow: 0 5px 0 var(--lime-dark);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lime-dark); }
.btn.secondary { background: var(--panel-2); color: var(--text); box-shadow: 0 5px 0 #0d1029; border: 2px solid var(--line); }
.btn.secondary:active { box-shadow: 0 1px 0 #0d1029; }
.btn.small { padding: 9px 18px; font-size: 16px; border-radius: 13px; box-shadow: 0 4px 0 var(--lime-dark); }
.btn.block { width: 100%; }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; margin-bottom: 34px; }

.hero-main {
  position: relative;
  min-height: clamp(290px, 36vw, 430px);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid var(--line);
  background: var(--panel);
}
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.hero-main:hover img { transform: scale(1.04); }
.hero-main::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 11, 28, .9) 0%, rgba(9, 11, 28, .55) 45%, rgba(9, 11, 28, 0) 80%),
              linear-gradient(0deg, rgba(9, 11, 28, .6) 0%, rgba(9, 11, 28, 0) 40%);
}
.hero-body { height: 100%; max-width: 540px; padding: clamp(20px, 3.4vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; position: absolute; inset: 0; }
.hero-kicker { display: flex; gap: 8px; flex-wrap: wrap; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: .5px; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.hero p { margin: 0; color: #dfe4ff; font-size: clamp(14px, 1.5vw, 17px); max-width: 44ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.hero-best { font-size: 14px; color: #dfe4ff; display: flex; align-items: center; gap: 6px; }
.hero-best svg { color: var(--yellow); }

.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-pick {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  text-align: left;
  border-radius: 18px;
  background: var(--panel);
  border: 3px solid var(--line);
  transition: border-color .15s, transform .15s, background .15s;
}
.hero-pick:hover { transform: translateX(-3px); background: var(--panel-2); }
.hero-pick.active { border-color: var(--lime); background: var(--panel-2); }
.hero-pick img { width: 88px; height: 66px; border-radius: 12px; object-fit: cover; flex: none; }
.hero-pick strong { display: block; font-size: 17px; line-height: 1.15; }
.hero-pick span { font-size: 13px; color: var(--muted); }

/* tags & badges */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.tag.hot { background: var(--orange); color: #2b1300; }
.tag.new { background: var(--lime); color: #11150a; }
.tag.d3 { background: var(--cyan); color: #00222b; }

/* ---------------------------------------------------------
   Games grid
--------------------------------------------------------- */
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .3px; }
.count { color: var(--muted); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}

.tile {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 3px solid transparent;
  text-align: left;
  isolation: isolate;
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), border-color .15s, box-shadow .2s;
}
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 10, 26, .92) 0%, rgba(8, 10, 26, .0) 55%); }
.tile:hover, .tile:focus-visible { transform: scale(1.04); border-color: var(--lime); box-shadow: 0 14px 30px rgba(0,0,0,.45); z-index: 2; }
.tile:hover img { transform: scale(1.08); }

.tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile-title { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; letter-spacing: .3px; }
.tile.big .tile-title { font-size: 32px; }
.tile-sub { font-size: 13px; color: #c9d0f5; opacity: 0; max-height: 0; transition: opacity .2s, max-height .2s; overflow: hidden; }
.tile:hover .tile-sub, .tile.big .tile-sub { opacity: 1; max-height: 3em; }

.tile .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.tile .fav {
  position: absolute; right: 10px; top: 10px;
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(10, 12, 30, .6);
  color: #fff;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .15s, background .15s, transform .1s;
}
.tile:hover .fav, .tile .fav.on, .tile:focus-within .fav { opacity: 1; }
.tile .fav.on { color: var(--red); }
.tile .fav:hover { background: rgba(10, 12, 30, .9); transform: scale(1.1); }

.tile .play-dot {
  position: absolute; right: 14px; bottom: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: #11150a;
  box-shadow: 0 4px 0 var(--lime-dark);
  transform: scale(.6); opacity: 0;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), opacity .15s;
}
.tile:hover .play-dot, .tile:focus-visible .play-dot { transform: scale(1); opacity: 1; }
.tile.big .play-dot { width: 56px; height: 56px; }

.tile.soon { cursor: default; border: 3px dashed var(--line); background: repeating-linear-gradient(135deg, #151a37 0 14px, #181d3b 14px 28px); }
.tile.soon::after { display: none; }
.tile.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.tile.soon .soon-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px; color: var(--muted); }
.tile.soon .soon-body strong { font-family: var(--display); font-weight: 400; font-size: 19px; color: #c9d0f5; }
.tile.soon .soon-body svg { width: 28px; height: 28px; }

.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 3px dashed var(--line); border-radius: 22px; }
.empty strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--text); margin-bottom: 6px; }

/* Why section */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px 0 10px; }
.why-card { padding: 22px; border-radius: 22px; background: var(--panel); border: 2px solid var(--line); }
.why-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--lime); color: #11150a; margin-bottom: 12px; font-size: 22px; }
.why-card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 22px; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }

.footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 28px 0 34px; margin-top: 30px; border-top: 2px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-logo { font-family: var(--display); font-size: 24px; color: var(--lime); }

/* ---------------------------------------------------------
   Player
--------------------------------------------------------- */
.player { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #05060f; }
.player-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px; flex: none; background: var(--bg-2); border-bottom: 2px solid var(--line); }
.player-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-title img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.player-title strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-actions { margin-left: auto; display: flex; gap: 8px; }
.player-bar .icon-btn { width: 40px; height: 40px; border-radius: 12px; }

.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }

.overlay {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(7, 9, 24, .74);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.overlay.clear { background: rgba(7, 9, 24, .35); backdrop-filter: none; }

.card {
  width: min(100%, 440px);
  border-radius: 26px;
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  text-align: center;
  animation: pop .28s cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes pop { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.card-art { position: relative; height: 150px; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel), transparent 70%); }
.card-body { padding: 4px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .4px; line-height: 1.05; }
.card .lead { margin: 0; color: #c9d0f5; font-size: 15px; }

.controls { display: grid; gap: 8px; text-align: left; }
.controls .row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--panel-2); font-size: 15px; }
.controls .keys { display: flex; gap: 5px; flex: none; min-width: 92px; }
kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 8px; background: #0e1124; border: 2px solid var(--line); border-bottom-width: 4px; font-family: var(--font); font-size: 13px; font-weight: 900; color: #fff; }
.controls .desc { color: #c9d0f5; }
.touch-hint { display: none; color: var(--muted); font-size: 14px; }
@media (pointer: coarse) { .touch-hint { display: block; } .controls .row.kb { display: none; } }

.best-line { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; }
.best-line svg { color: var(--yellow); }
.best-line b { color: var(--text); }

.stats { display: grid; gap: 8px; text-align: left; }
.stats .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); font-size: 15px; color: #c9d0f5; }
.stats .row b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--yellow); }
.stats .row.hl { background: #26340f; color: #dfffa0; }
.stats .row.hl b { color: var(--lime); }
.new-best { display: inline-flex; align-self: center; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 99px; background: var(--yellow); color: #3a2800; font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; animation: wiggle 1s ease infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) scale(1.05); } }
.card-actions { display: grid; gap: 10px; }

/* ---------------------------------------------------------
   In-game HUD (used by every game)
--------------------------------------------------------- */
.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-family: var(--font); }
.hud-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hud-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.hud-chip {
  display: flex; flex-direction: column; gap: 0;
  min-width: 84px; padding: 6px 14px 7px;
  border-radius: 16px;
  background: rgba(10, 12, 30, .66);
  border: 2px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  line-height: 1.05;
}
.hud-chip.right { text-align: right; }
.hud-label { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud-val { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .5px; color: #fff; }
.hud-val small { font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--muted); margin-left: 3px; }
.hud-chip.gold .hud-val { color: var(--yellow); }
.hud-chip.accent .hud-val { color: var(--lime); }
.hud-chip.pop .hud-val { animation: bump .22s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }

.hud-center { position: absolute; left: 0; right: 0; top: 18%; display: grid; place-items: center; text-align: center; }
.hud-big { font-family: var(--display); font-weight: 400; font-size: clamp(72px, 16vw, 160px); line-height: 1; color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 40px rgba(184, 255, 61, .5); animation: countpop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes countpop { from { transform: scale(2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hud-banner { font-family: var(--display); font-size: clamp(22px, 4vw, 38px); color: #fff; padding: 6px 22px; border-radius: 14px; background: rgba(10, 12, 30, .7); border: 2px solid rgba(255, 255, 255, .16); animation: countpop .35s cubic-bezier(.3, 1.6, .5, 1); }
.hud-banner.warn { color: var(--red); border-color: var(--red); }
.hud-banner.good { color: var(--lime); border-color: var(--lime); }

.hud-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hud-bar { width: 170px; height: 14px; border-radius: 99px; background: rgba(10, 12, 30, .7); border: 2px solid rgba(255, 255, 255, .16); overflow: hidden; }
.hud-bar > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2ad4ff, #b8ff3d); transition: width .08s linear; }
.hud-bar.red > i { background: linear-gradient(90deg, #ff4d5e, #ff9a3d); }
.hud-bar.long { width: min(46vw, 420px); height: 16px; }

.hearts { display: flex; gap: 4px; font-size: 26px; line-height: 1; color: var(--red); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.hearts .lost { color: rgba(255, 255, 255, .2); }
.mini-canvas { border-radius: 16px; background: rgba(10, 12, 30, .6); border: 2px solid rgba(255, 255, 255, .16); width: 130px; height: 130px; }
.power-chip { padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: var(--cyan); color: #00222b; }

.touch-pad { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.touch-pad .cluster { display: flex; gap: 12px; align-items: flex-end; }
.tbtn {
  pointer-events: auto;
  touch-action: none;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--display); font-size: 17px; letter-spacing: .5px;
  color: #fff;
  background: rgba(10, 12, 30, .55);
  border: 3px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}
.tbtn.on { background: var(--lime); color: #11150a; border-color: #fff; }
.tbtn.big { width: 92px; height: 92px; font-size: 22px; }
.tbtn.small { width: 56px; height: 56px; font-size: 14px; }
.tbtn.gas { background: rgba(60, 160, 40, .55); }
.tbtn.boost { background: rgba(40, 150, 255, .55); }
.tbtn.bomb { background: rgba(255, 120, 30, .55); }

/* ---------------------------------------------------------
   Toast
--------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 30px); padding: 12px 22px; border-radius: 14px; background: #fff; color: #11150a; font-weight: 900; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .hero-pick { flex-direction: column; align-items: flex-start; }
  .hero-pick img { width: 100%; height: 80px; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .chips { display: flex; }
  .logo { width: auto; }
  .why { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --top: 58px; }
  .logo-word { font-size: 26px; }
  .logo-mark { width: 32px; height: 32px; }
  .hero-side { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 168px; gap: 10px; }
  .tile.big { grid-column: span 2; grid-row: span 1; }
  .tile.big .tile-title { font-size: 26px; }
  .tile-title { font-size: 17px; }
  .tile .fav { opacity: 1; }
  .tile-sub { display: none; }
  .section-head h2 { font-size: 24px; }
  .player-title strong { font-size: 18px; }
  .hud-val { font-size: 22px; }
  .hud-chip { min-width: 70px; padding: 5px 10px 6px; }
  .mini-canvas { width: 96px; height: 96px; }
}

@media (max-height: 480px) {
  .card-art { display: none; }
  .card-body { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------
   About page
--------------------------------------------------------- */
.about { margin-bottom: 10px; }
.about-hero {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(24px, 4vw, 52px);
  border-radius: 26px;
  border: 3px solid var(--line);
  background:
    radial-gradient(520px 260px at 90% 0%, rgba(42, 212, 255, .22), transparent 70%),
    radial-gradient(480px 260px at 0% 100%, rgba(184, 255, 61, .16), transparent 70%),
    var(--panel);
  margin-bottom: 18px;
}
.about-hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 68px); line-height: 1; letter-spacing: .5px; }
.about-hero h1 span { color: var(--lime); }
.about-hero p { margin: 0; max-width: 62ch; color: #d3d9fb; font-size: clamp(15px, 1.6vw, 18px); }
.about-cta { margin-top: 8px; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .about-grid { grid-template-columns: 1fr; } }
