/* Platform 8 · An NYC Pizza Rat game — site styles */
:root {
  --bg: #0b0a08;
  --bg2: #14120e;
  --ink: #f2ede2;
  --muted: #a69f90;
  --q: #fccc0a;
  --amber: #ffb21a;
  --red: #c8141a;
  --tile: #2a2620;
  --paper: #efe6cf;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --mono: "Courier New", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--q); }
.q { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--q); color: #111; font: 800 1em/1 var(--sans); flex: none; }
.q.small { width: 1.35em; height: 1.35em; font-size: .95em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: #000; }
/* the key art covers the hero; the live board sits exactly over the board painted into it (in the art's own units) */
.hero-art { position: absolute; left: 50%; width: max(100vw, calc(100svh * 1479 / 1064)); aspect-ratio: 1479 / 1064;
  top: min(0px, calc(50svh - 0.42 * max(100vw, calc(100svh * 1479 / 1064)) * 1064 / 1479)); transform: translateX(-50%); container-type: inline-size; }
@media (max-aspect-ratio: 1/1) {
  .hero { min-height: 0; display: block; padding-top: calc(100vw * 1064 / 1479); }
  .hero-art { width: 100vw; top: 0; }
  .hero-shade { background: linear-gradient(rgba(0,0,0,0) 40%, var(--bg) calc(100vw * 1064 / 1479)); }
  .hero-inner { margin: 22px auto 34px; }
  .scroll-cue { display: none; }
}
.hero-cam { position: absolute; inset: 0; transform-origin: 50% 40%; animation: push 30s ease-out forwards; }
.hero-cam img { width: 100%; height: 100%; }
@keyframes push { from { transform: scale(1.0) } to { transform: scale(1.06) } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 62%, rgba(11,10,8,.6) 82%, var(--bg) 100%), radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); }
.hero-flicker { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; animation: flicker 9s infinite steps(1); }
@keyframes flicker { 0%, 58%, 60%, 61.5%, 100% { opacity: 0 } 59%, 61% { opacity: .25 } 60.5% { opacity: .1 } }
.hero-inner { position: relative; z-index: 2; width: min(640px, 92vw); margin-bottom: 7svh; text-align: center; }
.board { position: absolute; left: 27.3%; top: 37.3%; width: 45.4%; height: 12.4%; display: flex; flex-direction: column; justify-content: center; gap: .55cqw;
  background: #060606; border: .14cqw solid #2c2c2c; border-radius: .7cqw; padding: 1.1cqw 1.7cqw; text-align: left; box-shadow: inset 0 0 1.6cqw #000;
  font: 700 1.95cqw/1 var(--mono); color: var(--amber); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 0 .45cqw rgba(255,170,20,.8); }
.board-row { display: flex; align-items: center; gap: 1.1cqw; }
.board .q { width: 2.2cqw; height: 2.2cqw; font-size: 1.45cqw; text-shadow: none; letter-spacing: 0; }
.board .dest { flex: 1; }
.board .clock b { animation: blink 1s infinite steps(1); }
.board-msg { font-size: 1.2cqw; opacity: .92; }
@keyframes blink { 50% { opacity: 0 } }
.cta-row { margin-top: 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 8px; font: 800 17px/1 var(--sans); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-play { background: var(--q); color: #111; box-shadow: 0 10px 30px rgba(252,204,10,.25); }
.btn-play .q { background: #111; color: var(--q); }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(252,204,10,.4); }
.btn-ghost { color: var(--ink); border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); }
.btn-ghost:hover { border-color: var(--ink); }
.btn.soon { background: #2a2620; color: var(--ink); box-shadow: none; }
.btn.soon .q { background: var(--q); color: #111; }
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.scroll-cue { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); text-decoration: none; font-size: 28px; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px) } }

/* ---------- sections ---------- */
main > section { padding: 90px 6vw; }
.section-title { font: 800 clamp(28px, 4vw, 42px)/1.15 var(--sans); margin: 0 0 18px; letter-spacing: -.01em; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.kicker { font: 700 13px/1 var(--mono); letter-spacing: .25em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }

.intro { max-width: 860px; margin: 0 auto; text-align: center; }
.intro h1 { font: 800 clamp(34px, 5.4vw, 60px)/1.08 var(--sans); margin: 0 0 22px; letter-spacing: -.02em; }
.intro h1 em { font-style: normal; font-family: var(--marker); color: var(--q); font-weight: 400; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: #d8d1c2; }

/* the rules notice */
.rules-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 520px); gap: 60px; justify-content: center; align-items: center;
  background: linear-gradient(var(--bg2), var(--bg2)); }
.notice { position: relative; background: var(--paper); color: #16120e; padding: 34px 34px 28px; transform: rotate(-1.6deg); box-shadow: 0 22px 50px rgba(0,0,0,.6);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(80,110,160,.22) 31px 32px); background-position: 0 66px; }
.notice::before { content: ""; position: absolute; top: 0; bottom: 0; left: 46px; width: 2px; background: rgba(200,20,26,.35); }
.notice h2 { font: 400 40px/1 var(--marker); text-align: center; margin: 0; }
.notice-sub { font: 400 19px/1.2 var(--hand); text-align: center; color: #5a4a3a; margin: 4px 0 18px; }
.notice ol { margin: 0; padding-left: 30px; font: 400 21px/1.32 var(--hand); }
.notice li { margin-bottom: 10px; }
.notice li::marker { font-family: var(--marker); color: var(--red); }
.notice li span { color: #5a4a3a; }
.notice-time { font: 400 18px/1 var(--hand); color: #5a4a3a; margin: 12px 0 0 30px; }
.tape { position: absolute; width: 90px; height: 26px; background: rgba(230,225,200,.7); top: -12px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tape.t1 { left: 20px; transform: rotate(-8deg); } .tape.t2 { right: 20px; transform: rotate(7deg); }
.choices { display: grid; gap: 14px; margin: 24px 0; }
.choice { display: flex; gap: 16px; align-items: flex-start; background: #0f0d0a; border: 1px solid #2a2620; border-radius: 10px; padding: 16px 18px; }
.choice .arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #2a2620; color: var(--ink); font-size: 24px; }
.choice .arrow.fwd { background: var(--q); color: #111; }
.small-print { color: var(--muted); font-size: 15px; }

/* spot it */
.spot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto 30px; }
.spot-card { margin: 0; background: #0f0d0a; border: 1px solid #2a2620; border-radius: 12px; overflow: hidden; }
.spot-img { position: relative; aspect-ratio: 16 / 9; }
.spot-img img { width: 100%; height: 100%; object-fit: cover; }
.ring { position: absolute; border: 4px solid var(--red); border-radius: 50%; opacity: 0; transform: scale(1.4); transition: opacity .35s, transform .45s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 0 0 2px rgba(255,255,255,.4), 0 0 24px rgba(200,20,26,.6); pointer-events: none; }
.spot-card.shown .ring { opacity: 1; transform: scale(1) rotate(-3deg); }
.spot-card figcaption { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; }
.reveal { flex: none; font: 700 14px/1 var(--sans); padding: 10px 14px; border-radius: 6px; border: 2px solid var(--q); background: none; color: var(--q); cursor: pointer; }
.reveal:hover { background: var(--q); color: #111; }
.answer { opacity: 0; transition: opacity .35s; color: #d8d1c2; font-size: 15px; }
.spot-card.shown .answer { opacity: 1; }
.spot-card.shown .reveal { border-color: #3a352c; color: var(--muted); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: 0 auto; }
.feature { background: #0f0d0a; border: 1px solid #2a2620; border-radius: 12px; padding: 26px; }
.feature h3 { margin: 12px 0 8px; font-size: 21px; }
.feature p { margin: 0; color: #c8c1b2; font-size: 16px; }
.badge { display: inline-block; font: 700 15px/1 var(--mono); color: var(--amber); border: 2px solid var(--amber); border-radius: 6px; padding: 7px 10px; letter-spacing: .08em; text-shadow: 0 0 6px rgba(255,170,20,.5); }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1280px; margin: 0 auto; }
.gal { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; background: #111; }
.gal.banner { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 6px; }
.lb-close { position: absolute; top: 14px; right: 18px; font-size: 38px; line-height: 1; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* play */
.play { background: radial-gradient(ellipse at 50% 0%, rgba(252,204,10,.12), transparent 60%), var(--bg2); }
.play-card { max-width: 720px; margin: 0 auto; text-align: center; }
.play-card h2 { font: 800 clamp(30px, 4.6vw, 50px)/1.1 var(--sans); margin: 0 0 14px; }
.play-card p { color: #d8d1c2; margin: 0 0 26px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid #2a2620; padding: 16px 4px; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--q); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { color: #c8c1b2; margin: 10px 0 0; }

/* footer */
.foot { text-align: center; padding: 50px 6vw 60px; border-top: 1px solid #1e1b16; color: var(--muted); }
.foot-sign { display: inline-flex; align-items: center; gap: 12px; background: #050505; border-top: 3px solid #f2f2f2; padding: 12px 20px; font: 800 26px/1 var(--sans); color: #f4f4f4; margin-bottom: 18px; }
.foot p { margin: 6px 0; }
.foot-small { font-size: 13px; opacity: .7; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .rules-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .notice { max-width: 440px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  main > section { padding: 64px 16px; }
  .spot-grid, .features { grid-template-columns: minmax(0, 1fr); }
  .gal-grid { grid-template-columns: minmax(0, 1fr); }
  .gal.banner { aspect-ratio: 16 / 9; }
  .notice { padding: 28px 22px 22px; }
  .notice ol { font-size: 19px; padding-left: 26px; }
  .notice::before { left: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cam, .hero-flicker, .board .clock b, .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}
