
/* The insert-coin gate appears only on the first browser visit. */
html.returning-player .gate { display: none !important; }
html.returning-player .hall[hidden] { display: flex !important; }
:root {
  --bg: #05050a;
  --panel: #0a0d15;
  --panel-2: #111622;
  --cyan: #63edff;
  --magenta: #ff417d;
  --amber: #ffd43b;
  --green: #45f0a8;
  --text: #f7fbff;
  --dim: #93a0b6;
  --line: rgba(151, 180, 216, 0.23);
  --danger: #f02e55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: "IBM Plex Mono", ui-monospace, monospace; }
body { overflow-x: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
#wreckage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.scan { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: .55; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.2) 3px 5px); mix-blend-mode: multiply; }
.vignette { position: fixed; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(120% 95% at 50% 34%, transparent 48%, rgba(0,0,0,.74) 100%); }
.screen-noise { position: fixed; inset: 0; z-index: 8; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E"); }

.gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(3, 3, 8, .96); transition: opacity .45s ease, transform .45s ease; }
.gate.gone { opacity: 0; transform: scale(1.04); pointer-events: none; }
.gate-frame { position: relative; width: min(100%, 1040px); min-height: min(650px, calc(100vh - 40px)); display: grid; place-items: center; border: 3px solid #252b38; background: linear-gradient(135deg, rgba(255,65,125,.08), transparent 35%), #070910; box-shadow: 0 0 0 8px #020307, 0 0 0 11px #596173, 0 32px 90px rgba(0,0,0,.8); overflow: hidden; }
.gate-frame::before, .gate-frame::after { content: ""; position: absolute; inset: 18px; pointer-events: none; }
.gate-frame::before { border: 1px solid rgba(99,237,255,.36); }
.gate-frame::after { background: repeating-linear-gradient(135deg, rgba(255,212,59,.9) 0 18px, #171b24 18px 36px); height: 16px; top: auto; }
.gate-bug { position: absolute; top: 30px; left: 30px; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 15px var(--danger); animation: blink 1s steps(1) infinite; }
.gate-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 80px 28px; }
.gate-kicker, .gate-warning { margin: 0; text-transform: uppercase; letter-spacing: .28em; font-size: 10px; color: var(--dim); }
.gate-line { margin: 10px 0 0; font-family: "Black Ops One", "Orbitron", sans-serif; font-size: clamp(40px, 8vw, 92px); line-height: .9; letter-spacing: .025em; text-transform: uppercase; opacity: 0; transform: scale(.92) skewX(-5deg); }
#gate-line-1 { margin-top: 30px; color: #fff; text-shadow: 5px 5px 0 #233344, 0 0 32px rgba(99,237,255,.5); }
#gate-line-2 { color: var(--amber); text-shadow: 5px 5px 0 #7d233e, 0 0 32px rgba(255,65,125,.5); }
.gate-line.on { opacity: 1; transform: scale(1) skewX(-5deg); transition: .48s cubic-bezier(.2,.9,.2,1.25); }
#enter { opacity: 0; margin: 38px 0 20px; border: 0; background: var(--magenta); color: #fff; font: 700 13px/1 "IBM Plex Mono", monospace; letter-spacing: .18em; text-transform: uppercase; padding: 0; cursor: pointer; display: inline-flex; align-items: stretch; box-shadow: 7px 7px 0 #7c1838, 0 0 28px rgba(255,65,125,.28); transform: translateY(8px); }
#enter span { padding: 17px 28px; }
#enter b { display: grid; place-items: center; min-width: 48px; background: #fff; color: #111622; }
#enter.on { opacity: 1; transform: translateY(0); transition: opacity .4s ease .15s, transform .4s ease .15s; }
#enter:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 #7c1838, 0 0 38px rgba(255,65,125,.4); }
.gate-meter { position: absolute; right: 30px; top: 30px; display: flex; gap: 4px; }
.gate-meter span { width: 7px; height: 22px; background: #252b38; animation: meter 1.25s ease-in-out infinite alternate; }
.gate-meter span:nth-child(2n) { animation-delay: -.4s; }
.gate-meter span:nth-child(3n) { animation-delay: -.8s; }

.hall { position: relative; z-index: 2; width: min(100%, 1440px); margin: 0 auto; padding: 18px 24px 92px; display: flex; flex-direction: column; gap: 70px; }
.network-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 46px; border: 1px solid var(--line); background: rgba(7,9,16,.82); backdrop-filter: blur(10px); padding: 0 14px; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.network-brand { text-decoration: none; font: 900 18px/1 "Orbitron", sans-serif; letter-spacing: .04em; }
.network-brand span { color: var(--cyan); }
.network-status { display: flex; align-items: center; gap: 9px; color: #fff; }
.network-clock { justify-self: end; color: var(--dim); }
/* Mobile-only HUD (score left, wave right) — lives in the header so the promo
   sticker can't sit on top of it. Hidden on desktop, where the hero-stage HUD
   plays that role. */
.network-hud { display: none; align-items: baseline; gap: 8px; text-transform: uppercase; }
.network-hud span { color: var(--dim); font-size: 8px; letter-spacing: .18em; }
.network-hud b { color: #fff; font: 700 13px/1 "Orbitron", sans-serif; letter-spacing: .08em; }

.hero { min-height: calc(100vh - 90px); display: grid; align-items: center; }
.hero-stage { position: relative; aspect-ratio: 16/9; min-height: 620px; overflow: hidden; border: 2px solid #5d6575; background: #05060b; box-shadow: 0 0 0 7px #10141d, 0 0 0 9px #262c38, 0 34px 80px rgba(0,0,0,.65); }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(5,5,10,.92) 0%, rgba(5,5,10,.7) 34%, transparent 64%), linear-gradient(0deg, rgba(5,5,10,.5), transparent 40%); }
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.015) 3px 4px); }
.hero-stage > img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.03); animation: arena-drift 10s ease-in-out infinite alternate; }
.hero-copy { position: absolute; z-index: 5; left: clamp(32px, 6vw, 92px); top: 50%; width: min(650px, 58%); transform: translateY(-46%); }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--magenta); font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Black Ops One", "Orbitron", sans-serif; font-size: clamp(58px, 8vw, 112px); font-weight: 400; line-height: .82; letter-spacing: -.02em; text-transform: uppercase; text-shadow: 7px 7px 0 #1d2635, 0 0 28px rgba(99,237,255,.15); transform: skewX(-3deg); }
.hero h1 em { color: var(--amber); font-style: normal; text-shadow: 7px 7px 0 #7d233e, 0 0 34px rgba(255,65,125,.24); }
/* Headline rotation: CRT flicker out, swap copy (main.js), flicker back in.
   The global reduced-motion rule kills both animations and main.js skips the
   rotation entirely when the user prefers reduced motion. */
#hero-title.title-out { animation: title-flicker-out .43s steps(1) forwards; }
#hero-title.title-in { animation: title-flicker-in .75s steps(1); }
@keyframes title-flicker-out { 0% { opacity: 1; } 18% { opacity: .15; } 30% { opacity: .85; } 46% { opacity: .1; } 60% { opacity: .55; } 74% { opacity: 0; } 100% { opacity: 0; } }
@keyframes title-flicker-in { 0% { opacity: 0; } 16% { opacity: .65; } 28% { opacity: .1; } 44% { opacity: 1; } 58% { opacity: .35; } 72% { opacity: 1; } 100% { opacity: 1; } }
.hero-intro { max-width: 550px; margin: 26px 0 30px; color: #c4cedd; font-size: clamp(13px, 1.3vw, 17px); line-height: 1.7; }
.hero-cta { display: inline-flex; align-items: stretch; text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .16em; background: var(--cyan); color: #071019; box-shadow: 7px 7px 0 #166b7a; }
.hero-cta span { padding: 16px 22px; }
.hero-cta b { display: grid; place-items: center; min-width: 46px; background: #fff; font-size: 17px; }
.hero-cta:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 #166b7a; }
.hero-hud { position: absolute; z-index: 5; top: 22px; display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.24); background: rgba(3,5,10,.72); text-transform: uppercase; }
.hero-hud span { color: var(--dim); font-size: 9px; letter-spacing: .18em; }
.hero-hud b { color: #fff; font: 700 16px/1 "Orbitron", sans-serif; letter-spacing: .08em; }
/* SCORE rides next to WAVE at the top-right so the promo sticker owns the
   stage's top-left corner without covering the counter (it did at every width). */
.hero-hud-left { right: 160px; }
.hero-hud-right { right: 22px; }
.camera-corner { position: absolute; z-index: 5; width: 38px; height: 38px; border-color: rgba(255,255,255,.65); border-style: solid; }
.top-left { top: 70px; left: 22px; border-width: 2px 0 0 2px; }.top-right { top: 70px; right: 22px; border-width: 2px 2px 0 0; }.bottom-left { bottom: 50px; left: 22px; border-width: 0 0 2px 2px; }.bottom-right { right: 22px; bottom: 50px; border-width: 0 2px 2px 0; }
.arena-callout { position: absolute; z-index: 5; padding: 7px 10px; color: #111; background: var(--amber); font: 900 10px/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-4deg); box-shadow: 4px 4px 0 rgba(0,0,0,.55); }
.callout-one { right: 20%; top: 22%; }.callout-two { right: 11%; bottom: 24%; background: var(--magenta); color: #fff; transform: rotate(6deg); }
.ticker { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 34px; overflow: hidden; display: flex; align-items: center; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; text-transform: uppercase; }
.ticker div { min-width: max-content; animation: ticker 22s linear infinite; }
.ticker i { color: var(--amber); font-style: normal; padding: 0 22px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-heading.compact { margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-family: "Black Ops One", "Orbitron", sans-serif; font-size: clamp(32px, 4vw, 54px); font-weight: 400; line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.section-number { color: var(--dim); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.cabinet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cabinet { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); min-height: 315px; overflow: hidden; border: 1px solid #3c4658; background: var(--panel); text-decoration: none; color: var(--text); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cabinet::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border: 1px solid transparent; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.12) 48%, transparent 62%); transform: translateX(-120%); transition: transform .55s ease; }
.cabinet:hover { transform: translateY(-5px); border-color: var(--cyan); box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 28px rgba(99,237,255,.12); }
.cabinet:hover::after { transform: translateX(120%); }
.cabinet.featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); min-height: 360px; border-color: rgba(255, 210, 65, .48); }
.cabinet.featured .cab-art { min-height: 360px; }
.cabinet.featured .cab-status { color: var(--amber); }
.cabinet.featured .cab-status i { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.cab-number { position: absolute; z-index: 4; top: 12px; left: 12px; display: grid; place-items: center; width: 42px; height: 34px; background: var(--amber); color: #111; font: 900 13px/1 "Orbitron", sans-serif; box-shadow: 4px 4px 0 #6f5710; }
.cab-art { position: relative; margin: 0; min-height: 315px; overflow: hidden; background: #05060b; }
.cab-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(10,13,21,.85) 100%), repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.17) 4px 6px); }
.cab-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.cabinet:hover .cab-art img { transform: scale(1.055); }
.cab-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 34px 26px 28px 14px; background: linear-gradient(90deg, rgba(10,13,21,.15), var(--panel) 16%); }
.cab-status { display: flex; align-items: center; gap: 8px; color: var(--magenta); font-size: 8.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.cab-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.cab-name { margin-top: 16px; font: 400 clamp(24px, 2.2vw, 38px)/.95 "Black Ops One", "Orbitron", sans-serif; text-transform: uppercase; }
.cab-desc { margin-top: 15px; color: var(--dim); font-size: 10px; line-height: 1.75; letter-spacing: .075em; text-transform: uppercase; }
.cab-play { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.cab-play b { font-size: 18px; }

.prize-console { display: grid; grid-template-columns: 1fr 150px; border: 2px solid #586275; background: #0e121c; box-shadow: 0 0 0 6px #05070c, 0 0 0 8px #262c38; }
.prize-screen { min-height: 150px; padding: 24px; background: radial-gradient(circle at 50% 20%, rgba(69,240,168,.09), transparent 50%), #07100e; border-right: 2px solid #343d4e; }
.prize-shelf { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.prize { min-height: 88px; display: grid; place-items: center; text-align: center; border: 1px solid rgba(69,240,168,.45); color: var(--green); font-size: 9.5px; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; padding: 12px; background: rgba(69,240,168,.035); text-shadow: 0 0 12px rgba(69,240,168,.5); }
.prize.empty { border-color: rgba(147,160,182,.2); color: #596579; text-shadow: none; background: rgba(255,255,255,.015); }
.prize-controls { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; background: linear-gradient(135deg, rgba(255,65,125,.08), transparent), #141925; }
.prize-controls span { width: 50px; height: 7px; background: #2b3342; border: 1px solid #465167; }
.prize-controls span:nth-child(2) { background: var(--magenta); box-shadow: 0 0 12px rgba(255,65,125,.45); }
.prize-controls b { margin-top: 10px; display: grid; place-items: center; width: 78px; height: 48px; border-radius: 50%; background: var(--amber); color: #16130a; font-size: 9px; box-shadow: inset 0 -7px 0 #9a7c17, 0 6px 0 #05070c; }

.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cards { display: grid; gap: 10px; }
.card { position: relative; min-height: 130px; border: 1px solid var(--line); background: linear-gradient(105deg, rgba(99,237,255,.03), transparent 42%), rgba(10,13,21,.82); padding: 18px 18px 18px 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 9px; transition: .18s ease; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cyan); opacity: .45; }
.card:hover { border-color: var(--cyan); transform: translateX(4px); }
.card-title { font: 700 14px/1.25 "Orbitron", sans-serif; letter-spacing: .05em; color: #fff; text-transform: uppercase; }
.card-meta { font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); }
.card-blurb { font-size: 10.5px; color: var(--dim); line-height: 1.65; }

.colophon { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--dim); text-transform: uppercase; }
.footer-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid var(--cyan); color: #fff; font: 900 24px/1 "Orbitron", sans-serif; transform: rotate(45deg); }
.footer-mark::first-letter { transform: rotate(-45deg); }
.colophon p { margin: 0; font-size: 8.5px; letter-spacing: .1em; line-height: 1.8; }
.colophon a { color: var(--cyan); }
.colophon > span { font-size: 8px; letter-spacing: .14em; text-align: right; }

@keyframes blink { 50% { opacity: .25; } }
@keyframes meter { from { transform: scaleY(.35); background: #2b3342; } to { transform: scaleY(1); background: var(--cyan); } }
@keyframes arena-drift { from { transform: scale(1.03) translate3d(-.5%, -.3%, 0); } to { transform: scale(1.07) translate3d(.5%, .3%, 0); } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 1120px) {
  .prize-shelf { grid-template-columns: repeat(4, 1fr); }
  .cabinet, .cabinet.featured { grid-template-columns: 1fr; }
  .cab-art, .cabinet.featured .cab-art { min-height: 260px; }
  .cab-art::after { background: linear-gradient(0deg, var(--panel) 0%, transparent 42%), repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.17) 4px 6px); }
  .cab-copy { padding: 20px 24px 24px; margin-top: -40px; background: linear-gradient(0deg, var(--panel) 78%, transparent); }
}
/* Sticker/HUD collision fix: below 900px the stage HUD moves into the header
   as a second row — SCORE bottom-left, WAVE bottom-right — leaving the stage's
   top corners to the promo sticker. */
@media (max-width: 900px) {
  .network-bar { grid-template-columns: 1fr auto; padding-block: 9px 10px; row-gap: 9px; }
  .network-clock { display: none; }
  .network-hud { display: flex; }
  .network-hud-score { grid-column: 1; justify-self: start; }
  .network-hud-wave { grid-column: 2; justify-self: end; }
  .hero-hud { display: none; }
}
@media (max-width: 860px) {
  .hall { padding-inline: 14px; gap: 54px; }
  .hero { min-height: auto; }
  .hero-stage { min-height: 660px; aspect-ratio: auto; }
  .hero-stage > img { height: 100%; width: 100%; object-fit: cover; object-position: 58% center; }
  .hero-stage::before { background: linear-gradient(0deg, rgba(5,5,10,.96) 0%, rgba(5,5,10,.75) 52%, transparent 90%); }
  .hero-copy { left: 28px; right: 28px; top: auto; bottom: 72px; width: auto; transform: none; }
  .hero h1 { font-size: clamp(52px, 12vw, 88px); }
  .hero-intro { max-width: 90%; }
  .arena-callout { display: none; }
  .cabinet-grid, .lower-grid { grid-template-columns: 1fr; }
  .prize-shelf { grid-template-columns: repeat(2, 1fr); }
  .colophon { grid-template-columns: 60px 1fr; }
  .colophon > span { display: none; }
}
@media (max-width: 580px) {
  .gate-frame { min-height: calc(100vh - 28px); }
  .gate-line { font-size: clamp(38px, 13vw, 60px); }
  .gate-bug { left: 20px; right: 20px; top: 24px; }
  .gate-meter { display: none; }
  .hall { padding-top: 10px; }
  .network-status { font-size: 8px; }
  .hero-stage { min-height: 610px; }
  .hero-copy { left: 20px; right: 20px; bottom: 60px; }
  .eyebrow { font-size: 8px; }
  .hero h1 { font-size: 48px; text-shadow: 4px 4px 0 #1d2635; }
  .hero-intro { font-size: 12px; margin: 20px 0 24px; }
  .camera-corner { display: none; }
  .section-heading { align-items: start; }
  .section-number { display: none; }
  .section-heading h2 { font-size: 36px; }
  .cab-art { min-height: 225px; }
  .cab-copy { padding-inline: 18px; }
  .cab-name { font-size: 29px; }
  .prize-console { grid-template-columns: 1fr; }
  .prize-screen { border-right: 0; border-bottom: 2px solid #343d4e; }
  .prize-controls { flex-direction: row; min-height: 90px; }
  .prize-controls span { width: 8px; height: 38px; }
  .prize-controls b { margin: 0 0 0 10px; }
  .colophon { grid-template-columns: 1fr; text-align: center; }
  .footer-mark { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[hidden] { display: none !important; }


/* Mobile arcade pass — desktop layout remains unchanged. */
@supports (height: 100dvh) {
  .gate-frame { min-height: min(650px, calc(100dvh - 40px)); }
  .hero { min-height: calc(100dvh - 90px); }
}
@media (hover: none), (pointer: coarse) {
  .cabinet:hover { transform: none; box-shadow: none; }
  .cabinet:hover::after { transform: translateX(-120%); }
  .cabinet:hover .cab-art img { transform: none; }
  .hero-cta, #enter, .cabinet, .card { touch-action: manipulation; }
}
@media (max-width: 580px) {
  .gate { padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .gate-frame { min-height: calc(100svh - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; }
  .gate-inner { min-height: 100%; padding: 76px 16px 62px; }
  #enter { width: min(100%, 330px); min-height: 54px; justify-content: space-between; }
  #enter span { flex: 1; padding-inline: 14px; }
  .hall { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); padding-bottom: max(56px, env(safe-area-inset-bottom)); }
  .network-bar { min-height: 50px; padding-inline: 10px; }
  .network-brand { font-size: 15px; }
  .hero-stage { min-height: min(610px, calc(100svh - 72px)); }
  .hero-copy { bottom: 54px; }
  .hero-cta { min-height: 52px; width: min(100%, 310px); justify-content: space-between; }
  .hero-cta span { flex: 1; text-align: center; }
  .cabinet, .cabinet.featured { min-height: 0; }
  .cab-art, .cabinet.featured .cab-art { min-height: 0; aspect-ratio: 4 / 3; }
  .cab-copy { margin-top: -26px; padding-top: 28px; }
  .cab-play { min-height: 46px; align-items: center; }
  .prize-screen { padding: 15px; }
  .prize-shelf { gap: 8px; }
  .prize { min-height: 76px; padding: 8px; font-size: 8.5px; }
  .card { min-height: 112px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 42px; }
  .hero-intro { font-size: 11px; }
  .cab-name { font-size: 26px; }
  .prize-shelf { grid-template-columns: 1fr 1fr; }
}

/* Static crawlable link into the blog; the cards beside it are JS-rendered. */
.section-more { align-self: end; color: var(--cyan); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; padding-bottom: 2px; border-bottom: 1px solid rgba(99,237,255,.35); }
.section-more:hover { border-bottom-color: var(--cyan); }

/* ---- promo sticker ---------------------------------------------------- */
/* Slapped on the top-left of the arcade, over the screen bezel, the way a
   sticker actually gets stuck to a cabinet. Sits below the network bar so it
   never covers the brand. 1 + 2 + 7 = 10, which is the whole joke. */
.promo-sticker { position: absolute; z-index: 6; top: 76px; left: 14px; width: 178px; height: 178px; display: grid; place-items: center; transform: rotate(-11deg); pointer-events: none; filter: drop-shadow(4px 6px 0 rgba(0,0,0,.55)); animation: promo-wobble 5.5s ease-in-out infinite; }
.promo-rays { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--amber) 0 9deg, #ff9d1f 9deg 18deg); }
.promo-rays::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--magenta); box-shadow: inset 0 0 0 3px var(--ink, #05050a); }
.promo-face { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1px; width: 132px; text-align: center; color: #fff; text-transform: uppercase; }
.promo-line { font: 700 9.5px/1.25 "Orbitron", sans-serif; letter-spacing: .04em; }
.promo-line b { color: var(--amber); font-size: 13px; }
.promo-every { margin-top: 2px; font: 900 11px/1 "Orbitron", sans-serif; letter-spacing: .16em; color: var(--cyan); }
.promo-punch { margin-top: 4px; font: 400 13px/.94 "Black Ops One", sans-serif; letter-spacing: .01em; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.promo-brand { margin-top: 5px; font: 700 8px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; color: rgba(255,255,255,.82); text-transform: none; }
@keyframes promo-wobble { 0%, 100% { transform: rotate(-11deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.035); } }

/* Compact sticker whenever the header carries the HUD (small widths) or the
   viewport is a short touch landscape. top clears the two-row header. */
@media (max-width: 900px), (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-height: 600px) {
  .promo-sticker { width: 132px; height: 132px; top: 106px; left: 13px; }
  .promo-face { width: 100px; }
  .promo-line { font-size: 7.5px; }
  .promo-line b { font-size: 10px; }
  .promo-every { font-size: 8.5px; }
  .promo-punch { font-size: 10px; }
  .promo-brand { font-size: 6.5px; }
}

/* cabinet quick-filter */
.cabinet-search { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cabinet-search input { width: min(420px, 100%); padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.05); color: inherit; font: inherit; font-size: 13px; letter-spacing: .04em; }
.cabinet-search input:focus { outline: none; border-color: rgba(255,255,255,.4); }
.cabinet-sort { display: flex; align-items: center; gap: 6px; }
.sort-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-right: 4px; }
.sort-btn { padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.65); font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: lowercase; cursor: pointer; }
.sort-btn:hover { border-color: rgba(255,255,255,.4); color: inherit; }
.sort-btn:focus-visible { outline: 2px solid rgba(255,255,255,.5); outline-offset: 2px; }
.sort-btn.active { border-color: var(--accent, #ff2d78); color: var(--accent, #ff2d78); box-shadow: 0 0 10px rgba(255,45,120,.35); }

/* ---- numbered pager (games + articles, 6 per page) ---- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.pager:empty { display: none; }
.pager-btn { min-width: 40px; min-height: 40px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.65); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.pager-btn:hover:not(:disabled):not(.active) { border-color: rgba(255,255,255,.4); color: inherit; }
.pager-btn:focus-visible { outline: 2px solid rgba(255,255,255,.5); outline-offset: 2px; }
.pager-btn:disabled { opacity: .3; cursor: default; }
.pager-btn.active { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(99,237,255,.35); cursor: default; }

/* ---- article tools (sort toggle + crawlable all-articles link) ---- */
.feed-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
.feed-tools .sort-btn { padding: 8px 12px; white-space: nowrap; }
.feed-tools .section-more { align-self: center; }

/* iPhone landscape containment: keep the hero inside the visual viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.hall,
.hero,
.hero-stage {
  min-width: 0;
  max-width: 100%;
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-height: 600px) {
  .hall {
    width: 100%;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .hero {
    width: 100%;
    min-height: auto;
    overflow: hidden;
  }

  .hero-stage {
    width: 100%;
    min-height: clamp(430px, 105svh, 520px);
    aspect-ratio: auto;
    box-shadow: 0 0 0 4px #10141d, 0 0 0 6px #262c38, 0 20px 50px rgba(0,0,0,.62);
  }

  .hero-copy {
    left: clamp(18px, 4vw, 34px);
    right: clamp(18px, 4vw, 34px);
    width: auto;
    max-width: 560px;
  }

  .hero h1 {
    font-size: clamp(42px, 8vw, 70px);
  }

  /* Short touch landscape (phones/tablets >900px wide): stage HUD still moves
     into the header — one roomy row — and the sticker hops to the stage's
     empty top-right so it can't sit on the headline block at the left. */
  .hero-hud { display: none; }
  .network-bar { grid-template-columns: auto 1fr auto auto auto; column-gap: 18px; }
  .network-status { justify-self: center; }
  .network-hud { display: flex; }
  .promo-sticker { top: 70px; left: auto; right: 14px; }
}
