/* RANGER GAMEZ -- the arcade. A 1930s picture-house marquee (the studio's
   bulb-and-Z sting) holding three hyperpop games. One visual world, dark only:
   every surface paints its own background. */
@font-face { font-family: 'Bungee'; font-weight: 400; font-display: swap; src: url(fonts/bungee-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url(fonts/outfit-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url(fonts/outfit-latin-800-normal.woff2) format('woff2'); }

:root {
  --ink: #0F0A07; --ink2: #17100B; --panel: #211710; --panel2: #2B1E15; --line: #3D2B1E;
  --cream: #F4E9D4; --muted: #BBA98C; --dim: #85735A;
  --gold: #F6C453; --gold2: #FFE08A; --bulb: #FFF3C4; --pop: #FF4FA8; --teal: #34E0D0;
  --display: 'Bungee', 'Arial Black', Impact, system-ui, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.5; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold2); }
:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .04em; }
.brand b span { color: var(--gold); }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--cream); background: var(--panel); }

/* the marquee: a frame of bulbs that chase */
.marquee { position: relative; border-radius: 22px; padding: 14px; background: linear-gradient(180deg, #3a2615, #24170e); box-shadow: 0 30px 80px #000a, inset 0 0 0 2px #5a3d22; }
.marquee::before { content: ''; position: absolute; inset: 6px; border-radius: 17px; pointer-events: none;
  background:
    radial-gradient(circle, var(--bulb) 0 2.6px, #ffcf5a88 3.4px, transparent 5px) top left / 22px 12px repeat-x,
    radial-gradient(circle, var(--bulb) 0 2.6px, #ffcf5a88 3.4px, transparent 5px) bottom left / 22px 12px repeat-x,
    radial-gradient(circle, var(--bulb) 0 2.6px, #ffcf5a88 3.4px, transparent 5px) top left / 12px 22px repeat-y,
    radial-gradient(circle, var(--bulb) 0 2.6px, #ffcf5a88 3.4px, transparent 5px) top right / 12px 22px repeat-y;
  animation: chase 1.2s steps(2) infinite; filter: drop-shadow(0 0 4px #ffc84a); }
@keyframes chase { 50% { opacity: .55; } }
.marquee-in { position: relative; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, #2e1a10 0%, #150d08 70%); padding: clamp(26px, 5vw, 56px) clamp(20px, 4vw, 48px); overflow: hidden; }

/* hero */
.hero { padding-block: 28px 10px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); color: var(--cream); text-shadow: 0 0 24px #ffb84a55; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34ch; margin-top: 16px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-family: var(--body); font-weight: 800; font-size: 16px; letter-spacing: .02em; text-decoration: none; border: 0; cursor: pointer; }
.btn.gold { background: var(--gold); color: #251704; box-shadow: 0 4px 0 #a9761c, 0 10px 30px #f6c45333; }
.btn.gold:hover { background: var(--gold2); color: #251704; }
.btn.gold:active { transform: translateY(2px); box-shadow: 0 2px 0 #a9761c; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); color: var(--cream); }
.fan { position: relative; height: 420px; }
.fan .ph { position: absolute; top: 20px; width: 190px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 6px solid #0c0806; box-shadow: 0 24px 50px #000c; background: #000; }
.fan .ph img { width: 100%; height: 100%; object-fit: cover; }
.fan .ph:nth-child(1) { left: 2%; transform: rotate(-9deg) translateY(26px); }
.fan .ph:nth-child(2) { left: 50%; transform: translateX(-50%); z-index: 2; }
.fan .ph:nth-child(3) { right: 2%; transform: rotate(9deg) translateY(26px); }
.fan .ph:hover { z-index: 3; }
.facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.facts span::before { content: '\2605'; color: var(--gold); margin-right: 6px; }

/* sections */
.sec { padding-block: 56px 8px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(28px, 4vw, 40px); }
.sec-h p { color: var(--muted); max-width: 46ch; }

/* game cards: posters on the lobby wall */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--cream); box-shadow: 0 1px 0 #ffffff0d inset, 0 18px 40px #0008; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 #ffffff0d inset, 0 26px 50px #000b, 0 0 0 2px var(--accent, var(--gold)); color: var(--cream); }
.card .art { position: relative; aspect-ratio: 3 / 4; background: #000; }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--panel) 70%, transparent) 72%, var(--panel) 100%); }
.card .badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: #0f0a07e6; color: var(--gold2); border: 1px solid #f6c45366; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.card .body { padding: 0 18px 18px; margin-top: -40px; position: relative; display: grid; gap: 10px; flex: 1; }
.card h3 { font-size: 28px; color: var(--accent, var(--gold)); text-shadow: 0 2px 0 #000; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 12px; font-weight: 600; color: var(--cream); background: var(--panel2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.card .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.card .go b { font-weight: 800; background: var(--accent, var(--gold)); color: #120b06; padding: 9px 18px; border-radius: 999px; font-size: 15px; }
.card .go small { color: var(--dim); font-size: 12px; font-weight: 600; }
.card.soon { border: 2px dashed var(--line); background: var(--ink2); box-shadow: none; align-items: center; justify-content: center; text-align: center; padding: 36px 20px; min-height: 260px; gap: 10px; }
.card.soon:hover { transform: none; box-shadow: none; }
.card.soon h3 { color: var(--dim); font-size: 22px; text-shadow: none; }

/* strip: testers */
.strip { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: linear-gradient(90deg, #2a1a10, #1b120c); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.strip img { width: 56px; height: 56px; }
.strip h3 { font-size: 22px; }
.strip p { color: var(--muted); margin-top: 4px; }

/* footer */
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--ink2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-block: 26px; color: var(--dim); font-size: 14px; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* play page */
.play-top .wrap { max-width: none; height: 56px; }
.play-top .title { font-family: var(--display); font-size: 18px; color: var(--accent, var(--gold)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-top .tools { margin-left: auto; display: flex; gap: 6px; }
.iconbtn { white-space: nowrap; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 600 14px var(--body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.iconbtn:hover { border-color: var(--gold); color: var(--cream); }
.iconbtn svg { width: 18px; height: 18px; }
.stage { display: grid; grid-template-columns: minmax(0, auto) minmax(300px, 420px); gap: 34px; justify-content: center; align-items: start; padding: 22px 20px 10px; }
.screen { position: relative; height: min(calc(100vh - 110px), 920px); aspect-ratio: var(--ar, 9 / 16); border-radius: 30px; padding: 10px; background: #0b0806; box-shadow: 0 0 0 2px #3d2b1e, 0 30px 80px #000c, 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); }
.screen iframe { width: 100%; height: 100%; border: 0; border-radius: 22px; background: #000; display: block; }
.screen:fullscreen { padding: 0; border-radius: 0; background: #000; }
.screen:fullscreen iframe { border-radius: 0; max-width: calc(100vh * var(--arn, .5625)); margin: 0 auto; }
.about { display: grid; gap: 18px; padding-bottom: 20px; }
.about h1 { font-size: clamp(32px, 4vw, 44px); color: var(--accent, var(--gold)); }
.about .tag { color: var(--cream); font-size: 19px; font-weight: 600; }
.about .blurb { display: grid; gap: 10px; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.panel h2 { font-size: 16px; letter-spacing: .08em; color: var(--gold); margin-bottom: 10px; }
.panel ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--cream); }
.panel ol li::marker { color: var(--gold); font-weight: 800; }
.help { border-color: #6b5a2a; background: #231c0e; color: var(--gold2); font-size: 15px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 30%; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.shots img { border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: start; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.more { display: grid; gap: 10px; }
.more a { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.more a:hover { border-color: var(--gold); color: var(--cream); }
.more img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; }
.more b { font-family: var(--display); font-weight: 400; font-size: 17px; display: block; }
.more small { color: var(--muted); font-size: 13px; line-height: 1.3; display: block; }
.small { font-size: 14px; color: var(--dim); }

/* prose pages */
.prose { max-width: 720px; margin: 0 auto; padding: 40px 20px 20px; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); }
.prose h2 { font-size: 22px; color: var(--gold); margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--cream); }

/* phones */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .fan { height: 330px; max-width: 460px; width: 100%; margin: 0 auto; }
  .fan .ph { width: 150px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top nav a.hide-sm { display: none; }
  .brand b { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
  .card .art { aspect-ratio: 16 / 11; }
  .strip { grid-template-columns: 1fr; text-align: left; }
  .strip img { display: none; }
  /* the game takes the whole screen under the bar; the info is one tap away */
  .stage { display: block; padding: 0; }
  .screen { height: calc(100svh - 56px); width: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; box-shadow: none; }
  .screen iframe { border-radius: 0; }
  .about { padding: 22px 20px; }
  .shots { grid-auto-columns: 42%; }
  .play-top .brand b { display: none; }
}
@media (min-width: 761px) { .only-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .marquee::before { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}
@media (max-width: 420px) { .hide-xs { display: none; } }
@media (max-width: 760px) {
  .play-top .wrap { gap: 8px; padding-inline: 12px; }
  .play-top .brand img { width: 32px; height: 32px; }
  .play-top .iconbtn { height: 36px; min-width: 36px; padding: 0 10px; font-size: 13px; }
  .play-top .title { font-size: 16px; }
}
@media (max-width: 760px) { .hide-sm-text { display: none; } }
