@font-face {
  font-family: Archivo Black;
  src: url('/assets/archivo.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Archivo Black;
  src: url('/assets/archivo-ext.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: DM Sans;
  src: url('/assets/dm.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: DM Sans;
  src: url('/assets/dm-ext.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-024F;
}
:root {
  color-scheme: dark;
  --ink: #101014;
  --white: #f3f1f6;
  --red: #ff624d;
  --gutter: clamp(20px, 5vw, 84px);
  --header: 72px;
  --body: 'DM Sans', system-ui, sans-serif;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --surface: #0c0c10;
  --text: var(--white);
  --muted: #aca9b4;
  --line: #302f39;
  --panel: #18181e;
  --accent-text: #ff806c;
  font-family: var(--body);
  color: var(--text);
  background: var(--ink);
  scroll-padding-top: var(--header);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
::selection { color: var(--ink); background: #ff7968; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.skip { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip:focus { position: fixed; z-index: 10; inset: 88px auto auto 20px; clip-path: none; width: auto; height: auto; padding: 12px; color: var(--ink); background: var(--white); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--ink);
  background: var(--red);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { background: #ff7461; }
.button.quiet { background: transparent; border-color: var(--line); color: var(--text); }
.button.quiet:hover, .button.quiet[aria-pressed="true"] { border-color: var(--accent-text); color: var(--accent-text); }
.button:disabled { opacity: .48; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 36px;
  font-size: .92rem;
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--accent-text); }
.header { background: #0c0c10f5; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: var(--header); align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-family: var(--display); font-size: clamp(.87rem, 1.6vw, 1.2rem); letter-spacing: -.055em; }
.brand-icon { display: grid; place-content: center; gap: 3px; width: 31px; height: 31px; flex: none; background: var(--red); border-radius: 2px; }
.brand-icon i { display: block; width: 13px; height: 4px; background: var(--ink); transform: skewX(-26deg) translateX(2px); }
.brand-icon i + i { transform: skewX(-26deg) translateX(-2px); }
.section-nav, .header-actions, .language { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.header-actions { gap: clamp(9px, 1.4vw, 23px); }
.section-nav a, .mobile-menu a, .language a { color: var(--muted); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.section-nav a:hover, .mobile-menu a:hover, .language a:hover,
.section-nav [aria-current], .mobile-menu [aria-current], .language [aria-current], .footer [aria-current] { color: var(--accent-text); }
.language { gap: 5px; }
.language a { display: grid; place-items: center; min-width: 30px; min-height: 44px; font-size: .78rem; }
.language span { color: var(--muted); }
.play-link { color: var(--white); background: transparent; border-color: var(--line); min-height: 44px; }
.play-link:hover, .play-link[aria-current] { color: var(--ink); background: var(--red); border-color: var(--red); }
.mobile-menu { display: none; }
.account-link { border-color: var(--line); background: var(--panel); color: var(--text); min-height: 44px; white-space: nowrap; }
.account-link:hover, .account-link[aria-current] { border-color: var(--accent-text); background: transparent; color: var(--accent-text); }
.preview-bar { border-bottom: 1px solid var(--line); font-size: .8rem; }
.preview-bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 32px; padding-block: 4px; }
.preview-bar strong { padding-inline: 5px; background: var(--red); color: var(--ink); }
.preview-bar a { margin-inline-start: auto; text-decoration: underline; }
:root:has(.preview-bar) { scroll-padding-top: calc(var(--header) + 35px); }

.baha-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(570px, calc(100svh - var(--header)), 960px);
  overflow: clip;
  background: #0b0b0e;
}
.baha-hero > img, .baha-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.baha-hero > img { z-index: -2; left: auto; width: min(81%, 1560px); object-fit: cover; object-position: 63% 38%; }
.baha-hero::after {
  content: '';
  z-index: -1;
  background: linear-gradient(90deg, #0b0b0e 5%, #0b0b0eeb 25%, #0b0b0e42 55%, transparent 73%), linear-gradient(0deg, #0b0b0e8f, transparent 30%);
}
.baha-hero-copy { padding-block: 46px; animation: cinema-in .6s cubic-bezier(.2,.75,.3,1) both; }
.baha-hero .eyebrow { color: var(--accent-text); margin-bottom: clamp(18px, 3vw, 36px); }
.baha-hero h1 { font: 400 clamp(75px, 10.8vw, 170px)/.81 var(--display); letter-spacing: -.054em; }
.baha-hero h1 span { display: block; }
.baha-hero h1 + p { max-width: 34ch; margin-block: clamp(23px, 3vw, 38px) 21px; color: #e3e0e6; font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.5; }

.cinema {
  background: radial-gradient(ellipse 75% 110% at 76% -19%, #211c29 0%, transparent 77%), var(--surface);
  padding-block: clamp(24px, 4.6vw, 72px) clamp(42px, 6vw, 86px);
}
.cinema-main {
  display: grid;
  grid-template-columns: minmax(0, .69fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(20px, 4.3vw, 69px);
}
.cinema-copy { position: relative; min-width: 0; }
.cinema-detail { animation: cinema-in .52s cubic-bezier(.2,.75,.3,1) both; }
@keyframes cinema-in {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: none; }
}
.cinema-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.cinema-meta span:first-child { color: var(--accent-text); }
.cinema-meta span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.cinema-detail :is(h1, h2), .cinema-empty h2 {
  color: var(--text);
  font: 780 clamp(2.5rem, 5.1vw, 5.25rem)/.96 var(--body);
  letter-spacing: -.075em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.cinema-description { max-width: 34ch; margin-top: clamp(12px, 2.4vw, 26px); color: var(--muted); font-size: clamp(.99rem, 1.5vw, 1.16rem); line-height: 1.5; text-wrap: pretty; }
.cinema-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: clamp(13px, 2.5vw, 30px); }
.cinema-play { justify-content: center; column-gap: 10px; min-width: 122px; }
.cinema-play span:first-child { font-size: .72em; }
.cinema-permalink { color: var(--muted); text-decoration: none; }
.video-credit { margin-top: 16px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.video-credit summary { cursor: pointer; min-height: 28px; width: fit-content; }
.video-credit a { text-decoration: underline; text-underline-offset: .18em; }
.video-credit p { max-width: 39ch; padding-block: 2px 5px; }
.cinema-player { position: relative; min-width: 0; animation: cinema-in .65s .08s cubic-bezier(.2,.75,.3,1) both; }
.cinema-empty { padding-block: clamp(35px, 6vw, 75px); }
.cinema-empty p { margin-top: 12px; color: var(--muted); }
.studio-strip { border-top: 1px solid var(--line); padding-block: clamp(40px, 7vw, 105px); background: #111116; }
.studio-strip-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 7vw, 110px); }
.studio-strip img { width: 100%; aspect-ratio: 1.66; object-fit: cover; border-radius: 6px; }
.studio-strip h2 { font: 780 clamp(2.25rem, 5.5vw, 5.5rem)/.94 var(--body); letter-spacing: -.07em; text-wrap: balance; }
.studio-strip p { color: var(--muted); max-width: 36ch; line-height: 1.55; margin-block: 17px 12px; }
@supports (animation-timeline: view()) {
  .studio-strip-inner { animation: cinema-in linear both; animation-timeline: view(); animation-range: entry 6% cover 34%; }
}

.reels {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overflow-anchor: none;
  border: 1px solid #3b3644;
  border-radius: 8px;
  background: #070709;
  box-shadow: 0 24px 75px #0007;
}
.reels::-webkit-scrollbar { display: none; }
.reels:focus-visible { outline-offset: -3px; }
.reel { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: 100%; scroll-snap-align: start; }
.reel video, .reel-edge img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.screen-play {
  position: absolute;
  place-self: center;
  display: grid;
  place-content: center;
  width: clamp(52px, 7vw, 84px);
  aspect-ratio: 1;
  color: #fff;
  background: #111016a8;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  font-size: clamp(.85rem, 1.9vw, 1.55rem);
  text-indent: .13em;
  transition: color .2s, background-color .2s, transform .25s;
}
.screen-play:hover { transform: scale(1.08); color: var(--ink); background: var(--red); }
.video-fullscreen {
  position: absolute;
  top: 10px;
  background: #141413;
  border: 1px solid #ffffff50;
  border-radius: 2px;
  color: var(--white);
  font-size: .78rem;
}
.video-fullscreen { right: 10px; min-height: 44px; min-width: 44px; padding: 7px 10px; justify-content: center; }
.video-fullscreen:hover { color: var(--ink); background: var(--red); }
.video-fullscreen span { font-size: 1.3rem; }
video:fullscreen { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-error { position: absolute; display: grid; justify-items: center; gap: 12px; padding: 16px; background: var(--panel); }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.feed-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.feed-hint > [aria-hidden] { color: var(--accent-text); font-size: 1.2rem; }
.touch-hint { display: none; }
.feed-controls { display: flex; flex: none; align-items: center; gap: 7px; }
.feed-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 22px; color: var(--text); background: transparent; font-size: 1.15rem; transition: color .18s, background-color .18s; }
.feed-controls button:hover:not(:disabled) { color: var(--ink); background: var(--red); }
@media (hover: none) and (pointer: coarse) {
  .wheel-hint { display: none; }
  .touch-hint { display: inline; }
}
.video-links { background: var(--surface); padding: 12px; }
.video-links a { text-decoration: underline; margin-right: 12px; }

.footer { border-top: 1px solid var(--line); padding-block: clamp(42px, 6vw, 85px) 32px; }
.footer-main { display: grid; grid-template-columns: 1fr .95fr auto; gap: clamp(20px, 4vw, 60px); }
.footer-main p { max-width: 32ch; color: var(--muted); font-size: .92rem; margin-top: 12px; }
.footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 19px; color: var(--muted); font-size: .88rem; }
.footer nav a:hover, .footer-contact a:hover { color: var(--accent-text); }
.footer-contact { display: grid; align-content: start; gap: 8px; overflow-wrap: anywhere; }
.footer-contact a { font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: .22em; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: clamp(26px, 5vw, 60px); padding-top: 12px; }
.footer-utilities { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); }
.footer-signature { font-size: .86rem; font-weight: 760; }
.footer-heart { margin-left: 3px; color: var(--red); }
.snow-canvas { position: fixed; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.snow-toggle { min-height: 44px; padding: 6px 0 6px 9px; background: transparent; color: var(--muted); border: 0; font-size: .86rem; font-weight: 750; }
.snow-toggle[aria-pressed="true"], .snow-toggle:hover { color: var(--accent-text); }
.snow-toggle span { font-size: 1.1rem; }

.inside, .missing { min-height: 64svh; padding-block: clamp(42px, 7vw, 112px) clamp(52px, 8vw, 130px); }
.page-title { margin-bottom: clamp(26px, 4vw, 56px); }
.page-title h1, .brand-feature h1, .missing h1 {
  font: 400 clamp(2.6rem, 7.25vw, 8rem)/.95 var(--display);
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
.page-title p, .feature-intro { max-width: 53ch; margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.55; }
.inside > .text-link { margin-bottom: clamp(16px, 2.8vw, 35px); }
.missing h1 { margin-bottom: 24px; }
.company-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-block: 22px; }
.eyebrow { font-size: .77rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.brand-feature { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; padding-block: clamp(42px, 7vw, 104px) clamp(24px, 5vw, 74px); }
.brand-feature img { width: 100%; aspect-ratio: 1.17; object-fit: cover; border-radius: 6px; }
[data-page="company"] .brand-feature img { object-position: 72% center; }
.brand-feature .eyebrow { margin-bottom: 15px; color: var(--accent-text); }
.brand-feature h1 { font-size: clamp(2.6rem, 5.9vw, 6.6rem); text-wrap: balance; }
.company-detail { padding-bottom: clamp(52px, 8vw, 104px); }
.company-grid, .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(18px, 3.4vw, 52px); }
.company-grid section, .contact-grid section { border-top: 1px solid var(--line); padding-block: 20px 10px; }
.company-grid h2, .contact-grid h2, .controls h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 830; letter-spacing: -.055em; line-height: 1.12; }
.company-grid p, .contact-grid p, .controls > p { max-width: 49ch; color: var(--muted); line-height: 1.55; margin-top: 11px; }
.contact-address { display: inline-block; margin-bottom: clamp(34px, 6vw, 84px); color: var(--accent-text); font-size: clamp(1.15rem, 4.3vw, 4rem); font-weight: 800; letter-spacing: -.055em; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .13em; text-decoration-thickness: .04em; }
.contact-address:hover { color: var(--text); }
.offices { margin-top: 28px; }
.offices address { font-style: normal; margin-top: 12px; color: var(--muted); }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(25px, 7vw, 105px); }
.login-copy { max-width: 480px; }
.login-copy h1 { font: 780 clamp(2.65rem, 5.5vw, 5.7rem)/.95 var(--body); letter-spacing: -.065em; overflow-wrap: anywhere; }
.login-copy > p { color: var(--muted); line-height: 1.52; margin-top: 15px; }
.login-layout img { width: 100%; aspect-ratio: 1.1; object-fit: cover; object-position: 75% center; border-radius: 8px; }
.login-form { display: grid; gap: 16px; margin-top: 30px; }
.login-form label { display: grid; gap: 7px; font-size: .93rem; font-weight: 720; }
.login-form input { min-width: 0; width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 12px; min-height: 47px; }
.login-form input::placeholder { color: var(--muted); }
.login-form .button { justify-self: start; }
.login-status { min-height: 1.4em; color: var(--accent-text); }
[data-page="admin"] .login-layout { grid-template-columns: minmax(0, 480px); justify-content: center; }

.inside.arcade:has(.arcade-layout, .local-game) { padding-top: clamp(22px, 3vw, 47px); }
.inside.arcade:has(.arcade-layout, .local-game) > .text-link { margin-bottom: 14px; }
.inside.arcade:has(.arcade-layout, .local-game) .page-title { margin-bottom: 22px; }
.inside.arcade:has(.arcade-layout, .local-game) .page-title h1 { font-size: clamp(2.55rem, 5.2vw, 6rem); }
.inside.arcade:has(.arcade-layout, .local-game) .page-title p { max-width: 76ch; margin-top: 8px; }
.arcade-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .22fr); gap: clamp(18px, 4vw, 56px); }
.monitor, .local-game { align-self: start; border: 1px solid var(--line); border-radius: 2px; padding: clamp(8px, 1.4vw, 16px); background: var(--panel); }
.arcade-screen { position: relative; display: grid; aspect-ratio: 16 / 10; overflow: hidden; background: #080808; }
.splash, .splash img { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash { display: grid; place-content: center; justify-items: center; gap: 16px; isolation: isolate; }
.splash img { z-index: -2; object-fit: cover; object-position: 66% 45%; }
.splash::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0b0a0970, #0b0a09b8); }
.splash strong { color: var(--white); font: 400 clamp(3.3rem, 12vw, 9rem)/.9 var(--display); letter-spacing: -.09em; }
.start { z-index: 1; }
.monitor-panel { display: flex; align-items: center; gap: 9px; min-height: 24px; padding-top: 8px; color: var(--muted); font-size: .87rem; }
.pilot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--red); }
.doom-monitor canvas { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; background: black; }
.doom-actions, .doom-pad { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.doom-pad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doom-pad button { justify-content: center; padding-inline: 4px; touch-action: none; }
.doom-monitor:fullscreen { display: grid; grid-template-rows: minmax(0,1fr) auto auto auto; background: #090909; border: 0; padding: 8px; }
.doom-monitor:fullscreen .arcade-screen { aspect-ratio: auto; }
.controls dl { margin-block: 16px; border-top: 1px solid var(--line); }
.controls dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.controls dd { color: var(--muted); font-size: .88rem; margin-top: 5px; }
kbd { display: inline-block; color: var(--text); border: 1px solid var(--line); padding: 3px 6px; background: var(--panel); }
.game-list { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 clamp(18px, 3vw, 40px); }
.game-entry { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; min-height: 112px; border-bottom: 1px solid var(--line); }
.game-entry:hover h2, .game-entry:hover .game-arrow { color: var(--accent-text); }
.game-entry h2 { font-size: clamp(1.3rem, 3vw, 2.15rem); font-weight: 850; line-height: 1; letter-spacing: -.06em; }
.game-entry p { max-width: 42ch; color: var(--muted); margin-top: 7px; font-size: .91rem; line-height: 1.4; }
.game-icon { display: grid; place-items: center; font-size: 1.65rem; line-height: 1; color: var(--accent-text); background: var(--panel); aspect-ratio: 1; border-radius: 2px; }
.game-arrow { font-size: 1.4rem; }
.game-doom { grid-row: span 3; grid-template-columns: minmax(0, 1fr) auto; }
.game-doom img { width: 100%; height: 100%; min-height: 0; max-height: 265px; aspect-ratio: 16 / 8; object-fit: cover; object-position: 58% 37%; grid-column: 1 / -1; border-radius: 2px; }
.game-doom h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 4rem); }
.arcade-secret { width: fit-content; max-width: 100%; margin-top: 30px; color: var(--muted); }
.arcade-secret summary { padding: 8px 0; cursor: pointer; font-size: .86rem; }
.arcade-secret summary span { color: var(--accent-text); }
.arcade-secret p { padding-block: 6px; font-size: .92rem; }
.local-game { width: min(100%, 1080px); margin-inline: auto; }
.local-game[data-game="snake"] { width: min(100%, clamp(660px, 68svh, 920px)); }
.local-game:fullscreen, .local-game[data-game="snake"]:fullscreen { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; background: #09090b; }
.local-game:fullscreen > .game-board { width: auto; max-width: 100%; height: 100%; aspect-ratio: 480 / 230; }
.local-game[data-game="snake"]:fullscreen > .game-board { aspect-ratio: 1; }
.local-game:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }
.local-game:fullscreen > :is(.game-score, .game-actions) { width: min(100%, 1080px); }
.game-score { display: flex; align-items: center; flex-wrap: wrap; gap: 8px min(3vw, 24px); color: var(--muted); margin: 0 0 10px; font-size: .92rem; }
.game-score button { margin-inline-start: auto; min-height: 44px; }
.game-score strong { color: var(--accent-text); margin-left: 2px; }
.game-board { position: relative; width: 100%; }
.game-board canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.game-board canvas[height="230"] { aspect-ratio: 480 / 230; }
.game-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: #141413df; }
.game-overlay p { font: 400 clamp(1.25rem, 4vw, 2.35rem)/1 var(--display); letter-spacing: -.065em; text-align: center; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 12px; align-items: center; }
.dpad { display: flex; gap: 5px; }
.dpad button { width: clamp(39px, 10vw, 51px); height: 44px; padding: 0; background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 800; font-size: 1.13rem; }
.dpad button:hover { color: var(--accent-text); border-color: var(--accent-text); }

.puzzle-game { max-width: min(100%, 680px); }
.puzzle-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; border: 1px solid var(--line); background: #08090b; }
[data-puzzle="memory"] .puzzle-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-puzzle="mines"] .puzzle-board { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.puzzle-board button { display: grid; place-items: center; min-width: 0; padding: 0; aspect-ratio: 1; border: 1px solid #373740; border-radius: 2px; background: #25252d; color: #e4e5eb; font: 700 clamp(1rem, 4vw, 2.4rem)/1 var(--body); }
.puzzle-board button[data-state="hidden"] { background: repeating-linear-gradient(135deg, #25252d 0 6px, #272831 6px 7px); }
.puzzle-board button[data-state="open"], .puzzle-board button[data-state="off"] { background: #11151b; color: #b5cee2; }
.puzzle-board button[data-state="matched"], .puzzle-board button[data-state="lit"] { background: #283927; color: #dcfaab; border-color: #68844d; }
.puzzle-board button[data-state="mine"], .puzzle-board button[data-state="flag"], [data-puzzle-flag][aria-pressed="true"] { background: #402326; color: #ffb0a7; border-color: #96605d; }
.puzzle-board button:hover, .puzzle-board button:focus-visible { border-color: var(--accent-text); }
.puzzle-status { color: var(--muted); }

.mine.inside { padding-top: clamp(24px, 3vw, 48px); }
.mine > .text-link { margin-bottom: 14px; }
.mine .page-title { margin-bottom: 24px; }
.mine .page-title h1 { font-size: clamp(2.45rem, 5.4vw, 5rem); }
.mine .page-title p { margin-top: 10px; }
.mine-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr); gap: clamp(16px, 3vw, 42px); align-items: start; }
.mine-face { --mineral: #9eaebc; --seam: #b67b42; min-width: 0; padding: clamp(14px, 2.6vw, 32px); border: 1px solid var(--line); background: #111214; }
.mine-face[data-layer="1"] { --seam: #ae6951; }
.mine-face[data-layer="2"] { --seam: #479bae; }
.mine-face[data-layer="3"] { --seam: #9a70c2; }
.mine-face[data-layer="4"] { --seam: #d86940; }
.mine-face[data-layer="5"] { --seam: #45a098; }
.mine-face[data-ore="copper"] { --mineral: #ec9e72; }
.mine-face[data-ore="amber"] { --mineral: #fbc965; }
.mine-face[data-ore="green"] { --mineral: #99dc94; }
.mine-face[data-ore="red"] { --mineral: #fb7e87; }
.mine-face[data-ore="blue"] { --mineral: #87cefa; }
.mine-face[data-ore="violet"] { --mineral: #bda5f5; }
.mine-stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin: 0; }
.mine-stats div { padding-top: 7px; border-top: 1px solid #444951; }
.mine-stats dt, .mine-vein span, .mine-depth, .mine-save { font-size: .87rem; color: var(--muted); }
.mine-stats dd { margin: 3px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.mine-hit {
  position: relative; isolation: isolate; display: block; overflow: hidden; width: 100%; height: clamp(235px, 36vw, 365px);
  margin: 14px 0 0; padding: 0; border: 1px solid #494039; border-radius: 2px;
  background: #181411; touch-action: none; user-select: none; -webkit-touch-callout: none;
}
.mine-hit::before, .mine-hit::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mine-hit::before {
  background: radial-gradient(ellipse at 38% 39%, transparent 0%, #0e0d0de3 74%), url('/assets/mine-quarry.webp') center 42% / cover;
  opacity: .46;
}
.mine-hit::after {
  background: radial-gradient(ellipse at 42% 45%, color-mix(in srgb, var(--seam) 46%, transparent), transparent 68%),
    linear-gradient(transparent 70%, #0d0c0aec);
}
.mine-hit:focus-visible { outline-offset: 3px; }
.mine-cube {
  position: absolute; display: block; width: clamp(130px, min(35vw, 44%), 223px); aspect-ratio: 1;
  left: 39%; top: 46%; translate: -50% -50%;
  filter: drop-shadow(0 18px 12px #000c); pointer-events: none;
}
.mine-pick {
  position: absolute; display: block; width: clamp(88px, min(20vw, 25%), 144px); left: 56%; bottom: 21%;
  transform-origin: 64% 95%; transform: rotate(16deg); pointer-events: none;
}
.mine-pick img { display: block; width: 100%; height: auto; transform: scaleX(-1); filter: drop-shadow(1px 6px 4px #000a); }
[data-pick="0"] .mine-pick img { filter: drop-shadow(1px 6px 4px #000a) saturate(.55) brightness(.86); }
[data-pick="5"] .mine-pick img { filter: drop-shadow(1px 6px 4px #000a) sepia(.44) hue-rotate(130deg) saturate(1.6); }
.mine-impact {
  position: absolute; display: block; left: 48%; top: 54%; width: 76px; aspect-ratio: 1; margin: -38px;
  opacity: 0; pointer-events: none;
  background:
    radial-gradient(circle at 51% 49%, #fff8d0 0 2px, transparent 9px),
    radial-gradient(circle at 29% 36%, var(--mineral) 0 2px, transparent 3px),
    radial-gradient(circle at 67% 24%, #ffca73 0 2px, transparent 3px),
    radial-gradient(circle at 76% 58%, var(--mineral) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 69%, #ffca73 0 2px, transparent 3px);
}
.mine-cube::before, .mine-cube::after, .mine-cube i, .mine-cube b { content: ''; position: absolute; inset: 0; }
.mine-cube::before {
  clip-path: polygon(6% 27%, 50% 4%, 94% 27%, 50% 52%);
  background: linear-gradient(115deg, #d3b59229, #25201890), url('/assets/mine-quarry.webp') 33% 39% / 78%;
}
.mine-cube::after {
  clip-path: polygon(50% 52%, 94% 27%, 94% 72%, 50% 97%);
  background: linear-gradient(120deg, #2b241f64, #101015cc), url('/assets/mine-quarry.webp') 58% 74% / 76%;
}
.mine-cube i {
  z-index: 1;
  clip-path: polygon(6% 27%, 50% 52%, 50% 97%, 6% 72%);
  background: radial-gradient(ellipse 5% 4% at 17% 51%, var(--mineral) 86%, transparent 100%),
    radial-gradient(ellipse 7% 5% at 34% 69%, var(--mineral) 85%, transparent 100%),
    radial-gradient(ellipse 3% 2% at 22% 72%, var(--mineral) 80%, transparent 100%),
    linear-gradient(145deg, #d8c4b22b, #24202195),
    url('/assets/mine-quarry.webp') 23% 80% / 83%;
}
.mine-cube b {
  z-index: 2;
  background: #101317;
  opacity: 0;
  clip-path: polygon(58% 14%, 49% 29%, 55% 36%, 46% 53%, 57% 63%, 49% 76%, 53% 88%, 47% 76%, 53% 63%, 42% 53%, 52% 36%, 46% 29%);
}
.mine-face[data-damage="light"] .mine-cube b { opacity: .55; }
.mine-face[data-damage="heavy"] .mine-cube b { opacity: 1; }
.mine-verb { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: grid; place-items: center; min-height: 40px; padding: 0 15px; border: 1px solid #9f7650; background: #1a130f; color: #ffe4bc; font-weight: 800; white-space: nowrap; }
[data-mining] .mine-verb { border-color: #eab878; background: #332319; }
.mine-input { margin: 7px 0 14px; color: var(--muted); font-size: .83rem; }
.mine-vein { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.mine-vein strong { color: var(--mineral); font-size: 1.05rem; }
.mine-vein progress { width: 100%; height: 10px; accent-color: var(--mineral); }
.mine-depth { margin-top: 16px; }
.mine-notice { min-height: 2.6em; margin-top: 6px; color: #d3e8bc; font-size: .9rem; }
.mine-shop h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.mine-shop > p { color: var(--muted); margin-top: 5px; }
.mine-shop ol { list-style: none; margin: 12px 0; padding: 0; }
.mine-shop li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-block: 8px; }
.mine-shop li > div { display: grid; gap: 2px; }
.mine-shop li span { font-size: .85rem; color: var(--muted); }
.mine-shop button { min-height: 44px; padding-inline: 10px; white-space: nowrap; }
.mine-shop button[aria-disabled="true"] { color: var(--muted); cursor: default; }
.mine-shop button[aria-disabled="false"] { background: #303c29; border-color: #758b63; color: #e2f7cf; }
.mine-credits { margin-top: 18px; color: var(--muted); font-size: .82rem; }
.mine-credits summary { width: fit-content; cursor: pointer; }
.mine-credits p { margin-top: 6px; }
.mine-credits a { text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 740px) { .mine-layout { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1170px) {
  .section-nav, .account-link { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 16px; height: 10px; border-block: 1px solid currentColor; }
  .mobile-menu[open] summary { color: var(--accent-text); border-color: var(--accent-text); }
  .mobile-menu nav { position: absolute; inset: 100% 0 auto; display: grid; background: var(--surface); padding: 8px var(--gutter) 15px; border-block: 1px solid var(--line); }
  .mobile-menu a { display: flex; align-items: center; min-height: 45px; }
  .mobile-menu a + a { border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .inside.local-arcade { display: grid; grid-template-columns: minmax(200px, .4fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: clamp(24px, 4vw, 66px); }
  .local-arcade > .text-link { justify-self: start; }
  .local-arcade > .page-title { grid-column: 1; }
  .local-arcade > .local-game { grid-area: 1 / 2 / 3 / 3; }
}
@media (max-width: 740px) {
  :root { --header: 61px; }
  .header-inner, .header-actions { gap: 9px; }
  .baha-hero { align-items: end; }
  .baha-hero > img { height: 83%; width: 100%; object-position: 67% 36%; }
  .baha-hero::after { background: linear-gradient(0deg, #0b0b0e 11%, #0b0b0ee6 28%, #0b0b0e00 72%), linear-gradient(90deg, #0b0b0e80, transparent 75%); }
  .baha-hero h1 { font-size: clamp(70px, 16vw, 116px); }
  .cinema-main, .brand-feature, .arcade-layout, .studio-strip-inner, .login-layout { grid-template-columns: minmax(0, 1fr); }
  .cinema-main { gap: 17px; }
  .cinema-player { grid-row: 1; }
  .cinema-detail :is(h1, h2) { font-size: clamp(2.5rem, 9vw, 4.35rem); }
  .cinema-description { max-width: 48ch; }
  .cinema-meta { margin-bottom: 9px; }
  .cinema-actions { margin-top: 14px; }
  .brand-feature img, .login-layout img { aspect-ratio: 1.65; }
  .login-layout .login-copy { width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .controls dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; }
  .game-list { grid-template-columns: minmax(0, 1fr); }
  .game-doom { grid-row: auto; }
}
@media (max-width: 480px) {
  .brand { gap: 6px; }
  .brand-icon { width: 26px; height: 26px; }
  .play-link { gap: 7px; padding-inline: 9px; font-size: .81rem; }
  .language { gap: 1px; }
  .language a { min-width: 26px; }
  .header-actions { gap: 7px; }
  .mobile-menu summary { width: 42px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .header .brand { font-size: .77rem; }
  .header .play-link span { display: none; }
  .header .language > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
