:root {
  --bg: #08060f;
  --bg-2: #0d0a18;
  --card: #141022;
  --card-2: #1b1530;
  --line: rgba(170, 160, 255, 0.14);
  --ink: #f4f3ff;
  --muted: #a9a6c8;
  --blue: #1f7bff;
  --blue-2: #46a6ff;
  --cyan: #3fd2ff;
  --pink: #ff3fb4;
  --amber: #ffb35c;
  --game: #3fd2ff;
  --game-2: #ff3fb4;
  --font-display: "Poppins", "Kanit", system-ui, sans-serif;
  --font-script: "Pacifico", cursive;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Kanit", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topbar: 72px;
  --panel-w: min(470px, 40vw);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-2); }
button { font: inherit; color: inherit; cursor: pointer; }
kbd {
  display: inline-block; min-width: 1.8em; padding: 0.1em 0.4em; margin: 0 0.1em;
  border: 1px solid rgba(255,255,255,0.3); border-bottom-width: 2px; border-radius: 6px;
  font: 500 0.85em/1.2 var(--font-display); text-align: center; background: rgba(255,255,255,0.06);
}
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--blue); color: #fff; border-radius: 10px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* shared buttons */
.btn-blue, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border: 0; border-radius: 999px; text-decoration: none;
  font: 600 14px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 0 0 1px rgba(120,180,255,0.45) inset, 0 8px 26px rgba(31,123,255,0.45);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-blue:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(150,200,255,0.6) inset, 0 12px 34px rgba(31,123,255,0.65); }
.btn {
  display: inline-flex; justify-content: center; align-items: center; padding: 13px 24px; border-radius: 999px; text-decoration: none;
  color: var(--ink); border: 1px solid rgba(120,170,255,0.45); background: rgba(31,123,255,0.06);
  font: 600 14px/1 var(--font-display); letter-spacing: 0.03em;
}
.btn:hover { border-color: var(--blue-2); background: rgba(31,123,255,0.14); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 40;
  display: flex; align-items: center; gap: clamp(16px, 4vw, 56px);
  padding: 0 clamp(16px, 3vw, 40px);
  background: linear-gradient(to bottom, rgba(8,6,15,0.9), rgba(8,6,15,0));
  transition: background 0.3s;
}
.topbar.solid { background: rgba(8,6,15,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 66px; height: 66px; margin: 4px -6px 0 -6px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(47,140,255,0.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 800 22px/1 var(--font-display); letter-spacing: 0.01em; }
.brand-text small { margin-top: 4px; font: 600 9px/1 var(--font-display); letter-spacing: 0.32em; color: #cfd2ef; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px;
  font: 600 13px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}
.topnav a:hover { opacity: 1; background: rgba(255,255,255,0.07); }
.topnav a.active { opacity: 1; background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 4px 18px rgba(31,123,255,0.5); }

/* ---------- arcade (3D) ---------- */
.arcade {
  position: relative; height: 100vh; height: 100svh; min-height: 580px; overflow: hidden;
  background: #0a0612 url("../art/backdrop.jpg") center / cover no-repeat;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.arcade.no-webgl #scene { display: none; }
.arcade.no-webgl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,6,15,0.4), rgba(8,6,15,0.85)); }

.loader {
  position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(ellipse at center, rgba(20,12,36,0.88), #08060f 70%), #08060f url("../art/backdrop.jpg") center / cover;
  transition: opacity 0.7s, visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-coin { width: 80px; height: 80px; image-rendering: pixelated; filter: drop-shadow(0 0 18px rgba(255,197,46,0.55)); animation: coin 1s steps(8) infinite; }
@keyframes coin { 0% { transform: scaleX(1); } 25% { transform: scaleX(0.15); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(0.15); } 100% { transform: scaleX(1); } }
.loader-text { margin: 8px 0 0; font: 400 18px/1 var(--font-pixel); color: #ffd84a; letter-spacing: 0.06em; text-shadow: 3px 3px 0 #b3004f, 0 0 14px rgba(255,63,180,0.55); }
.loader-text .dots { display: inline-block; width: 3ch; overflow: hidden; vertical-align: bottom; animation: dots 1.2s steps(4, jump-none) infinite; }
@keyframes dots { from { width: 0; } to { width: 3ch; } }
@media (prefers-reduced-motion: reduce) { .loader-coin, .loader-text .dots { animation: none; } }
.loader-bar { width: 240px; height: 14px; padding: 2px; border: 2px solid #ffd84a; background: rgba(0,0,0,0.4); }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-2), var(--pink)); transition: width 0.2s; }
.loader-sub { margin: 0; font-size: 13px; color: var(--muted); }

/* selected-cabinet card */
.peek {
  position: absolute; z-index: 14; left: clamp(16px, 3vw, 40px); bottom: clamp(104px, 15vh, 140px);
  display: flex; gap: 16px; align-items: flex-start; width: min(430px, calc(100% - 32px)); padding: 20px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(160deg, rgba(26,20,48,0.86), rgba(10,8,22,0.9));
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px color-mix(in srgb, var(--game) 25%, transparent);
  backdrop-filter: blur(14px);
  transition: opacity 0.4s, transform 0.4s;
}
.arcade.loading .cab-arrow, .arcade.loading .selector, .arcade.loading .hint { opacity: 0; pointer-events: none; }
.arcade.focused .peek, .arcade.loading .peek { opacity: 0; transform: translateY(16px); pointer-events: none; }
.peek.swap { animation: peekIn 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes peekIn { from { opacity: 0; transform: translateY(10px); } }
.peek-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--game) 70%, transparent), 0 0 20px color-mix(in srgb, var(--game) 40%, transparent); }
.peek-title { margin: 0; font: 700 26px/1.1 var(--font-display); }
.peek-tag { margin: 4px 0 8px; color: var(--blue-2); font: 500 15px/1.3 var(--font-display); }
.peek-desc { margin: 0 0 16px; color: #dcdaf2; font-size: 15px; line-height: 1.5; }

.hint {
  position: absolute; z-index: 14; right: clamp(16px, 3vw, 40px); bottom: clamp(36px, 5vh, 52px); margin: 0;
  color: rgba(255,255,255,0.65); font-size: 13px; transition: opacity 0.4s;
}
.arcade.focused .hint { opacity: 0; }

.tooltip {
  position: absolute; z-index: 12; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  padding: 8px 14px; border-radius: 12px; white-space: nowrap;
  background: rgba(10,8,24,0.9); border: 1px solid color-mix(in srgb, var(--game) 70%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--game) 40%, transparent);
  font: 700 14px/1.3 var(--font-display);
}
.tooltip small { display: block; font: 400 12px/1.3 var(--font-body); color: var(--muted); }

/* selector */
.selector {
  position: absolute; z-index: 15; left: 0; right: 0; bottom: clamp(16px, 3vh, 28px); margin: 0 auto; width: fit-content;
  display: flex; align-items: center; gap: 6px; padding: 6px; max-width: calc(100% - 32px);
  background: rgba(12,10,26,0.72); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px);
  transition: opacity 0.4s, transform 0.4s;
}
.arcade.focused .selector { opacity: 0; pointer-events: none; transform: translateY(20px); }
.sel-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.sel-list::-webkit-scrollbar { display: none; }
.sel-list li { flex: none; }
.sel-item { display: block; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: transparent; transition: border-color 0.2s, transform 0.2s; }
.sel-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sel-item span { display: none; }
.sel-item:hover { transform: translateY(-2px); }
.sel-item.active { border-color: var(--blue-2); box-shadow: 0 0 14px rgba(70,166,255,0.6); }
.sel-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.08); font-size: 22px; line-height: 1; }
.sel-arrow:hover { background: var(--blue); }

/* big cabinet arrows */
.cab-arrow {
  position: absolute; z-index: 16; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; padding: 0 0 3px; font-size: 32px; line-height: 1; color: #111;
  background: rgba(255,255,255,0.92); border: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 0.2s, background 0.2s, right 0.55s cubic-bezier(.2,.8,.2,1);
}
.cab-arrow:hover { transform: scale(1.08); background: #fff; }
.cab-arrow:active { transform: scale(0.94); }
.cab-prev { left: clamp(12px, 2vw, 28px); }
.cab-next { right: clamp(12px, 2vw, 28px); }
.arcade.focused .cab-next { right: calc(var(--panel-w) + 16px + clamp(12px, 2vw, 28px)); }

.backbtn {
  position: absolute; z-index: 16; left: clamp(16px, 3vw, 40px); top: calc(var(--topbar) + 10px);
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(12,10,26,0.75); backdrop-filter: blur(8px); font: 600 12px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.backbtn:hover { border-color: var(--blue-2); }

.scroll-cue { display: none; }

/* ---------- details panel ---------- */
.panel {
  position: absolute; z-index: 20; top: calc(var(--topbar) + 8px); right: 16px; bottom: 16px; width: var(--panel-w);
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(20,22,52,0.95), rgba(8,8,22,0.96));
  border: 1px solid rgba(110,150,255,0.22); border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 40px color-mix(in srgb, var(--game) 14%, transparent);
  backdrop-filter: blur(16px);
  transform: translateX(calc(100% + 40px)); visibility: hidden;
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0.55s;
}
.panel.open { transform: none; visibility: visible; transition: transform 0.55s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.panel-scroll { overflow-y: auto; padding: 26px 26px 24px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.panel-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.08); font-size: 22px; line-height: 1;
}
.panel-close:hover { background: rgba(255,255,255,0.16); }
.p-head { display: flex; gap: 18px; align-items: center; padding-right: 36px; }
.p-icon { width: 92px; height: 92px; border-radius: 22px; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.12), 0 0 26px color-mix(in srgb, var(--game) 45%, transparent); }
.p-title { margin: 0; font: 700 clamp(24px, 2.3vw, 32px)/1.08 var(--font-display); }
.p-tag { margin: 6px 0 0; color: var(--blue-2); font: 500 16px/1.3 var(--font-display); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li { padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,0.08); font: 500 12px/1.2 var(--font-display); color: #e2e2f6; }

.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); margin: 20px 0; }
.p-stats div { display: flex; flex-direction: column-reverse; align-items: center; padding: 4px 8px; text-align: center; }
.p-stats div + div { border-left: 1px solid var(--line); }
.p-stats dt { font-size: 12px; color: var(--muted); }
.p-stats dd { margin: 0 0 2px; font: 700 22px/1.2 var(--font-display); }
.star { color: #fff; font-size: 0.8em; }

.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stores .play-btn:first-child { grid-column: 1 / -1; }
.play-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border-radius: 999px;
  text-decoration: none; color: #fff;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 0 0 1px rgba(150,200,255,0.5) inset, 0 10px 30px rgba(31,123,255,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(150,200,255,0.6) inset, 0 14px 38px rgba(31,123,255,0.65); }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.05; font: 600 20px/1.05 var(--font-display); }
.play-btn small { font-size: 10px; letter-spacing: 0.1em; font-weight: 500; }
.play-btn.alt { background: rgba(255,255,255,0.05); box-shadow: 0 0 0 1px rgba(120,170,255,0.4) inset; padding: 10px 14px; }
.play-btn.alt:hover { background: rgba(31,123,255,0.15); }
.play-btn.alt span { font-size: 16px; }

.p-shots { display: flex; gap: 10px; overflow-x: auto; margin: 20px -26px 6px; padding: 4px 26px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.p-shots button { flex: none; padding: 0; border: 0; background: none; border-radius: 14px; overflow: hidden; scroll-snap-align: start; outline-offset: -2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }
.p-shots img { height: 210px; width: auto; object-fit: cover; background: #111; transition: transform 0.3s; }
.p-shots button:hover img { transform: scale(1.04); }

.p-desc { color: #d9d8ef; font-size: 15px; }
.p-desc p { margin: 0 0 12px; }
.p-desc h4 { margin: 18px 0 6px; font: 700 13px/1.4 var(--font-display); color: var(--blue-2); letter-spacing: 0.06em; }
.p-desc ul { margin: 0 0 12px; padding-left: 1.1em; }
.p-desc li { margin: 2px 0; }
.p-desc li::marker { color: var(--pink); }
.p-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.p-nav button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 500 13px/1.2 var(--font-display); }
.p-nav button:hover { border-color: var(--blue-2); }

/* ---------- content sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.section-title { margin: 0 0 16px; font: 800 clamp(28px, 3.6vw, 44px)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }

.games { background: var(--bg); }
.games-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 28px; }
.games-head .section-title { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  padding: 7px 16px; border-radius: 999px; border: 1px solid transparent; background: rgba(255,255,255,0.06);
  font: 500 13px/1.2 var(--font-display); color: #d7d6ee; transition: background 0.2s;
}
.filters button:hover { background: rgba(255,255,255,0.12); }
.filters button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 4px 16px rgba(31,123,255,0.45); }

.game-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.game-grid li[hidden] { display: none; }
.gcard { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.gcard-art { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 10px 28px rgba(0,0,0,0.4); transition: transform 0.25s, box-shadow 0.25s; }
.gcard-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gcard:hover .gcard-art, .gcard:focus-visible .gcard-art { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--c), 0 16px 36px color-mix(in srgb, var(--c) 35%, transparent); }
.gcard:hover .gcard-art img { transform: scale(1.06); }
.gcard h3 { margin: 14px 0 2px; font: 600 17px/1.25 var(--font-display); }
.gcard-meta { margin: 0; font-size: 14px; color: var(--muted); }
.gcard-platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gcard-platforms span { padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 11px; color: var(--muted); }

.about { background: linear-gradient(90deg, rgba(8,6,15,0.96) 0%, rgba(8,6,15,0.82) 45%, rgba(8,6,15,0.35) 100%), url("../art/backdrop.jpg") center / cover; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-logo { width: 132px; height: 132px; margin: 0 0 20px; image-rendering: pixelated; filter: drop-shadow(0 0 22px rgba(47,160,255,0.35)); }
.about-title { margin: 0; font: 800 clamp(34px, 4.6vw, 58px)/1 var(--font-display); }
.about-title small { display: block; margin-top: 8px; font: 600 clamp(11px, 1.1vw, 14px)/1 var(--font-display); letter-spacing: 0.42em; color: #d9dcf5; }
.about-tag { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--blue-2); font: 500 16px/1 var(--font-display); }
.about-tag::before { content: ""; width: 48px; height: 2px; background: var(--blue-2); }
.about p { color: #dcdaf0; max-width: 36em; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats li { padding: 22px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); background: rgba(14,10,28,0.72); backdrop-filter: blur(8px); }
.stats b { display: block; font: 800 clamp(24px, 3vw, 34px)/1.1 var(--font-display); color: var(--blue-2); }
.stats li:nth-child(2) b { color: var(--pink); }
.stats li:nth-child(3) b { color: var(--amber); }
.stats li:nth-child(4) b { color: #46f59b; }
.stats span { font-size: 14px; color: var(--muted); }

.contact { background: var(--bg); }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px; border: 1px solid rgba(110,150,255,0.25);
  background: radial-gradient(ellipse at 0% 0%, rgba(31,123,255,0.22), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(255,63,180,0.18), transparent 55%), var(--card);
}
.contact-card p { margin: 0; color: var(--muted); max-width: 32em; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }

.footer { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--blue-2); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(3,2,8,0.92); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 60px); border-radius: 14px; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
.lb-close, .lb-arrow { position: absolute; border: 0; background: rgba(255,255,255,0.1); border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  :root { --topbar: 60px; }
  .topbar { justify-content: space-between; }
  .brand img { width: 44px; height: 44px; margin: 2px -4px 0 -4px; }
  .brand-text b { font-size: 15px; white-space: nowrap; }
  .brand { gap: 8px; }
  .brand-text small { font-size: 7px; letter-spacing: 0.25em; }
  .topnav a { padding: 7px 8px; font-size: 11px; }
  .topnav a:nth-child(1) { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .hint { display: none; }
  .peek { bottom: 86px; left: 12px; right: 12px; width: auto; padding: 14px; gap: 12px; }
  .peek-icon { width: 52px; height: 52px; border-radius: 13px; }
  .peek-title { font-size: 20px; }
  .peek-desc { display: none; }
  .peek-tag { margin-bottom: 10px; font-size: 14px; }
  .btn-blue { padding: 10px 18px; font-size: 12px; }
  .sel-item img { width: 34px; height: 34px; }
  .cab-arrow { width: 44px; height: 44px; margin-top: -22px; font-size: 26px; top: 40%; }
  .arcade.focused .cab-arrow { top: 22%; }
  .arcade.focused .cab-next { right: clamp(12px, 2vw, 28px); }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 58%;
    border-radius: 24px 24px 0 0; border-bottom: 0;
    transform: translateY(calc(100% + 20px));
  }
  .panel-scroll { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .p-shots { margin: 18px -18px 6px; padding: 4px 18px 12px; }
  .p-shots img { height: 170px; }
  .p-icon { width: 70px; height: 70px; border-radius: 17px; }
  .p-stats dd { font-size: 18px; }
  .lightbox img { max-width: calc(100vw - 24px); }
  .lb-arrow { top: auto; bottom: 20px; transform: none; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.btn.btn-primary { border: 0; color: #fff; background: linear-gradient(180deg, var(--blue-2), var(--blue)); text-transform: none; }
