/* playmidway.com: the midway after dark.
   One display face (Alfa Slab One, the same face as the App Store captions) and one text face (Figtree).
   Colours are taken from the game: the hall, maple lanes, the title sign's green, the enamel red and the marquee gold. */

@font-face { font-family: "Alfa Slab One"; src: url("/fonts/alfa-slab-one-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-wght.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: dark;
  --hall: #1d130d;
  --hall-deep: #140d09;
  --wood: #3b2618;
  --maple: #c98a4b;
  --cream: #ffedcf;
  --cream-soft: #dccaa9;
  --gold: #f6b73c;
  --red: #b3261e;
  --green: #1f4d3b;
  --line: rgb(255 237 207 / .14);
  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--hall);
  color: var(--cream-soft);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--hall); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--cream); line-height: 1.08; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 .second, h1 .second { display: block; color: var(--gold); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--cream); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 32px);
  padding: 10px var(--gutter);
  background: rgb(20 13 9 / .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .sign { flex: none; display: block; width: clamp(112px, 14vw, 150px); }
.site-header nav { display: flex; gap: clamp(12px, 2.4vw, 28px); margin-left: auto; font-weight: 600; font-size: .98rem; }
.site-header nav a { color: var(--cream-soft); text-decoration: none; padding: 6px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -2px var(--gold); }
.site-header .ticket { flex: none; }
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; row-gap: 4px; }
  .site-header nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .site-header .ticket { margin-left: auto; padding: 9px 18px; font-size: .95rem; }
}

/* The ticket: the one recurring device. A paper ticket with notched ends, used for the download action. */
.ticket {
  --notch: 9px;
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 28px;
  background: var(--gold); color: #2a1709;
  font: 400 1.05rem/1 var(--display); letter-spacing: .01em; text-decoration: none;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: background-color .15s ease, transform .15s ease;
}
.ticket:hover { background: var(--cream); color: #2a1709; transform: translateY(-1px); }
.ticket:focus-visible { outline-offset: 5px; }
.ticket svg { width: 1.05em; height: 1.05em; flex: none; }
.ticket.large { padding: 18px 36px; font-size: 1.25rem; --notch: 12px; }

/* Layout */
main { display: block; }
.band { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* Hero: the approved motion piece in a cabinet window */
.hero { padding: clamp(16px, 3vw, 32px) var(--gutter) 0; }
.hero-window {
  position: relative; max-width: 1400px; margin: 0 auto;
  aspect-ratio: 1920 / 824; overflow: hidden;
  border-radius: 18px;
  background: var(--hall-deep) url("/media/press/video/header-21x9-1920-poster.webp") center / cover;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px #000;
}
.hero-window video { width: 100%; height: 100%; object-fit: cover; }
.hero-window .toggle {
  position: absolute; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgb(20 13 9 / .7); color: var(--cream); cursor: pointer;
  display: grid; place-items: center;
}
.hero-window .toggle svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .hero-window { aspect-ratio: 4 / 3; border-radius: 12px; } .hero-window video { object-position: 50% 50%; } }

.hero-copy { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero-copy h1 { margin: 0; }
.hero-copy .act p { margin-bottom: 1.4em; }
.hero-copy small { display: block; margin-top: 14px; color: var(--cream-soft); font-size: .92rem; }
@media (max-width: 820px) { .hero-copy { grid-template-columns: 1fr; } }

/* Boards */
.boards .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.board-stage { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 900 / 811; background: var(--hall-deep); box-shadow: 0 0 0 1px var(--line); }
.board-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.board-stage img.is-on { opacity: 1; }
.board-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.board-list li { border-bottom: 1px solid var(--line); }
.board-list button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 14px 1fr; column-gap: 16px; align-items: baseline;
  padding: 14px 4px;
}
.board-list button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); align-self: center; transition: background-color .2s; }
.board-list button[aria-pressed="true"]::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.board-list .name { font: 400 1.3rem/1.2 var(--display); color: var(--cream-soft); }
.board-list button[aria-pressed="true"] .name, .board-list button:hover .name { color: var(--cream); }
.board-list .what { grid-column: 2; color: var(--cream-soft); font-size: .98rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, margin .3s ease; }
.board-list button[aria-pressed="true"] .what { max-height: 4em; margin-top: 4px; }
.board-list button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (max-width: 820px) { .boards .wrap { grid-template-columns: 1fr; } }

/* Prize counter: the memorable part. A striped awning, wooden shelves and price tags in tickets. */
.counter { background: linear-gradient(var(--hall), #2a1a10 30%, var(--hall)); }
.counter-head { max-width: 1180px; margin: 0 auto 40px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
@media (max-width: 820px) { .counter-head { grid-template-columns: 1fr; } }
.booth { max-width: 1180px; margin: 0 auto; border-radius: 0 0 16px 16px; background: #2b1b11; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px #000; }
.awning {
  height: 46px; border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(90deg, var(--red) 0 44px, var(--cream) 44px 88px);
  position: relative;
}
.awning::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: radial-gradient(circle at 22px 0, var(--red) 21px, #0000 22px) 0 0 / 88px 14px repeat-x,
              radial-gradient(circle at 66px 0, var(--cream) 21px, #0000 22px) 0 0 / 88px 14px repeat-x;
}
.shelves { list-style: none; margin: 0; padding: 40px clamp(12px, 3vw, 32px) 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shelves li { position: relative; display: flex; justify-content: center; padding-bottom: 14px; margin-bottom: 26px; }
.shelves li::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: 0; height: 14px; background: linear-gradient(#8a5a33, #5a3a22); box-shadow: 0 6px 10px -4px #000; }
.prize {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  width: 100%; min-height: 168px; padding: 6px 4px 0; border-radius: 10px;
}
.prize img { height: 112px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 8px rgb(0 0 0 / .45)); transition: transform .2s ease; }
.prize:hover img, .prize[aria-pressed="true"] img { transform: translateY(-4px) scale(1.04); }
.price {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 4px; background: var(--cream); color: #2a1709;
  font: 700 .82rem/1.2 var(--text); font-variant-numeric: tabular-nums;
}
.price svg { width: 13px; height: 13px; }
.prize[aria-pressed="true"] .price { background: var(--gold); }
.prize:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.prize-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin: 0; padding: 22px clamp(16px, 3vw, 32px) 26px; border-top: 1px solid var(--line); min-height: 112px; }
.prize-card h3 { margin: 0; }
.prize-card p { margin: 0; grid-column: 1 / -1; }
.prize-card .price { font-size: .95rem; justify-self: start; }
@media (max-width: 900px) { .shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .shelves li:nth-child(n+10) { display: none; } }
@media (max-width: 480px) { .prize { min-height: 136px; } .prize img { height: 84px; } .shelves { padding-top: 32px; } .ticket.large { padding: 15px 26px; font-size: 1.05rem; } }

/* iPhone Duo */
.duo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.duo video { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 14px; background: var(--hall-deep); }
.fold-moves { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.fold-moves li { padding-left: 30px; position: relative; max-width: var(--measure); }
.fold-moves li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 2px; background: var(--gold); }
.fold-moves b { color: var(--cream); font-weight: 700; }
@media (max-width: 820px) { .duo .wrap { grid-template-columns: 1fr; } .duo video { order: 2; max-width: 340px; } }

/* Closing */
.closing { text-align: center; background: var(--hall) url("/media/hall.webp") center 40% / cover; position: relative; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(29 19 13 / .92), rgb(29 19 13 / .55) 45%, rgb(29 19 13 / .92)); z-index: -1; }
.closing .sign { width: min(440px, 80%); margin: 0 auto 28px; }
.closing p { margin: 0 auto 28px; }

/* Footer */
.site-footer { padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); background: var(--hall-deep); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--cream-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--cream); text-decoration: underline; }
.site-footer p { margin: 0; }

/* Reading pages: support, privacy */
.page-head { padding: clamp(48px, 8vw, 96px) var(--gutter) 8px; }
.page-head .wrap, .reading { max-width: 760px; margin: 0 auto; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.reading { padding: 0 var(--gutter) clamp(64px, 10vw, 120px); box-sizing: content-box; }
.reading h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.reading .meta { color: var(--cream-soft); font-size: .95rem; }
.contact-card { margin: 28px 0 8px; padding: 22px 24px; border-radius: 12px; background: #2b1b11; box-shadow: inset 0 0 0 1px var(--line); }
.contact-card p { margin: 0 0 .4em; }
.contact-card a.mail { font: 400 clamp(1.2rem, 3vw, 1.5rem)/1.3 var(--display); text-decoration: none; overflow-wrap: anywhere; }

/* Press kit */
.press-head .wrap { max-width: 1040px; }
.press-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
button.ticket { border: 0; cursor: pointer; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.toc a { color: var(--cream-soft); text-decoration: none; }
.toc a:hover { color: var(--cream); text-decoration: underline; }
.reading.press { max-width: 1040px; }
.reading.press > section > p, .reading.press > section > ul.fold-moves, .reading.press > section > h3 { max-width: 68ch; }
.reading h3 { margin-top: 1.6em; }
.reading h3 .meta { font: 500 .9rem/1 var(--text); color: var(--cream-soft); margin-left: 8px; }
.meta { color: var(--cream-soft); font-size: .92rem; }
figure { margin: 28px 0; }
figure.wide img, figure.wide video { width: 100%; border-radius: 12px; background: var(--hall-deep); }
figcaption { margin-top: 10px; font-size: .92rem; color: var(--cream-soft); }
.media-grid { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 22px 18px; }
.media-grid.tall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.media-grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.media-grid.logos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: end; }
.media-grid li { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; line-height: 1.4; }
.media-grid img { width: 100%; border-radius: 8px; background: var(--hall-deep); }
.media-grid img.icon { width: 120px; border-radius: 26px; }
.file-list { padding-left: 1.1em; display: grid; gap: 10px; max-width: 68ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 24px 0 0; padding: 22px 24px; border-radius: 12px; background: #2b1b11; box-shadow: inset 0 0 0 1px var(--line); max-width: 760px; }
.facts dt { color: var(--cream); font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.more { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.more li { display: flex; gap: 16px; align-items: flex-start; }
.more img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.more h3 { margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
