/* Dean Black — black, his logo yellow, fight-poster type, pixel art. Mobile first. */
:root {
  --black: #000;
  --yellow: #ffe81a;      /* the logo */
  --gold: #e2aa1e;        /* the tights */
  --white: #f4f4f6;
  --steel: #17171d;       /* panels */
  --smoke: #b9b9c6;       /* quiet text */
  --display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --body: 'Pixelify Sans', 'Silkscreen', ui-monospace, monospace;   /* pixel text, to match the art */
  --pixel: 'Silkscreen', ui-monospace, monospace;
  --pad: clamp(18px, 4.5vw, 40px);
  --dock: 62px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 19px/1.4 var(--body);
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(46px, 12vw, 88px)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
h3 { font: 400 34px/1 var(--display); text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; padding: 12px 16px; background: var(--yellow); color: var(--black); font-weight: 700; }
.skip:focus { left: 0; }

/* ---------- buttons: a block that presses into its shadow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border: 3px solid var(--yellow); background: var(--yellow); color: var(--black);
  font: 400 21px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none;
  box-shadow: 5px 5px 0 var(--gold);
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--gold); }
.btn--ghost { background: transparent; color: var(--yellow); box-shadow: 5px 5px 0 #4a3d08; }
.btn--small { min-height: 46px; padding: 0 16px; font-size: 18px; box-shadow: 4px 4px 0 var(--gold); }
.btn--small.btn--ghost { box-shadow: 4px 4px 0 #4a3d08; }
.btn--small:active { transform: translate(4px, 4px); }

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--pad); padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
.bar__logo { display: block; width: 62px; flex: none; }
.bar__nav { display: none; gap: 30px; font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.bar__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.bar__nav a:hover { color: var(--yellow); }
.bar__right { display: flex; align-items: center; gap: 8px; }
.bar__social { display: flex; }
.bar__social a { display: grid; place-items: center; width: 38px; height: 44px; color: #8d8d9a; -webkit-tap-highlight-color: transparent; }
.bar__social a:hover, .bar__social a:active { color: var(--yellow); }
.bar__social svg { width: 20px; height: 20px; }
.sound {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 2px solid #33333e; background: transparent; color: var(--white);
  font: 400 13px/1 var(--pixel); cursor: pointer; touch-action: manipulation;
}
.sound__dot { width: 10px; height: 10px; background: var(--yellow); }
.sound[aria-pressed="false"] .sound__dot { background: #55555f; }

/* ---------- hero: the ring you can tap ---------- */
.hero { display: grid; gap: 22px; padding: 0 0 34px; max-width: var(--wrap); margin: 0 auto; }
.hero__words { display: grid; gap: 18px; padding: 0 var(--pad); justify-items: start; }
.hero__logo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }     /* phones: the logo is on the big screen in the ring */
.hero__lede { max-width: 32ch; font-size: 21px; color: var(--smoke); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hype { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 6px; pointer-events: none; }
.hype__cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 14px; padding: 0 4px; }
.hype__cells i { background: rgba(0, 0, 0, 0.7); outline: 1px solid #3a3a48; transform: skewX(-14deg); }
.hype__cells i.on { background: var(--yellow); }
.hype__label { font: 400 13px/1.2 var(--pixel); color: var(--white); text-shadow: 2px 2px 0 #000; }
.hype.is-max .hype__label { color: var(--yellow); }

.ring {
  position: relative; aspect-ratio: 180 / 296; overflow: hidden;
  border-top: 4px solid var(--yellow); border-bottom: 4px solid var(--yellow);
  background: #07060f; user-select: none; -webkit-user-select: none;
}
.ring__bg { width: 100%; height: 100%; object-fit: cover; }
.ring__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ring__dean {
  position: absolute; left: 27.8%; top: 56.76%; width: 44.44%;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ring__dean img { width: 100%; height: auto; pointer-events: none; }
.ring__dean::after { content: ''; position: absolute; inset: -14% -30%; }      /* generous tap target */
.ring__hint {
  position: absolute; left: 50%; top: 46%; transform: translateX(-50%);
  padding: 6px 12px; background: var(--yellow); color: var(--black);
  font: 400 clamp(12px, 3.3vw, 16px)/1 var(--pixel); white-space: nowrap; pointer-events: none;
  animation: hint 900ms steps(2) infinite;
}
.ring__hint::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--yellow); }
.ring__hint[hidden] { display: none; }
@keyframes hint { 50% { transform: translate(-50%, 5px); } }
.ring__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ring.is-flash .ring__flash { animation: flash 180ms steps(3) 1; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
.ring.is-shake { animation: shake 240ms steps(4) 1; }
@keyframes shake { 25% { transform: translate(-5px, 3px); } 50% { transform: translate(4px, -4px); } 75% { transform: translate(-3px, -2px); } }
.ring__slam { position: absolute; left: 50%; top: 2%; width: 62%; height: auto; transform: translateX(-50%) scale(1); opacity: 0; pointer-events: none; }
.ring.is-main .ring__slam { animation: slam 2200ms steps(1) 1; }
@keyframes slam {
  0% { opacity: 1; transform: translateX(-50%) scale(2.6); filter: brightness(4); }
  6% { transform: translateX(-50%) scale(1.7); }
  12% { transform: translateX(-50%) scale(1); filter: none; }
  88% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; }
}
.is-loading .ring__bg { filter: brightness(0.16); }
.is-loading .ring__dean img { filter: brightness(0) ; }
.is-loading .ring__hint { visibility: hidden; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-bottom: 4px solid var(--yellow); padding: 10px 0; }
.ticker__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: ticker 36s linear infinite; }
.ticker__track img { height: 38px; width: auto; }
.ticker__track span { font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--yellow); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- shared section layout ---------- */
.block { max-width: var(--wrap); margin: 0 auto; padding: clamp(52px, 11vw, 96px) var(--pad); }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.block__head p { margin-top: 10px; max-width: 36ch; color: var(--smoke); font-size: 21px; }
.stamp { width: clamp(84px, 20vw, 140px); height: auto; flex: none; transform: rotate(7deg); }
.stamp--left { transform: rotate(-6deg); }
.hazard { height: 16px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--black) 14px 28px); }

/* ---------- watch ---------- */
.watch { display: grid; gap: 30px; align-items: center; }
.watch__frame { position: relative; border: 4px solid var(--yellow); box-shadow: 10px 10px 0 var(--yellow); margin-right: 10px; background: var(--black); }
.watch__frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--black); image-rendering: pixelated; }
.watch__play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  display: grid; place-items: center; padding-left: 8px;
  border: 0; border-radius: 50%; background: var(--yellow); color: var(--black);
  cursor: pointer; touch-action: manipulation; transition: transform 80ms steps(2);
}
.watch__play:active { transform: scale(0.9); }
.watch__play[hidden] { display: none; }
.watch__words { display: grid; gap: 16px; justify-items: start; }
.watch__words p { max-width: 32ch; color: var(--smoke); font-size: 21px; }

/* ---------- GIF rail ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad);
  margin: 0 calc(var(--pad) * -1); padding: 6px var(--pad) 22px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.gif { scroll-snap-align: start; display: grid; background: var(--steel); border: 4px solid var(--yellow); box-shadow: 7px 7px 0 var(--yellow); margin: 0 7px 7px 0; }
.gif img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #07060f; }
.gif__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.gif__name { font: 400 25px/1 var(--display); text-transform: uppercase; }
.gif__acts { display: flex; gap: 10px; }

/* ---------- wallpapers ---------- */
.walls__body { display: grid; gap: 34px; justify-items: center; }
.phone {
  position: relative; width: min(64vw, 290px); padding: 9px; border-radius: 38px;
  background: #1c1c24; box-shadow: 10px 10px 0 var(--yellow);
}
.phone__wall { width: 100%; height: auto; border-radius: 30px; }
.phone__clock { position: absolute; left: 0; right: 0; top: 5.5%; display: grid; justify-items: center; gap: 2px; text-shadow: 0 2px 0 rgba(0,0,0,.6); pointer-events: none; }
.phone__clock span:first-child { font: 600 clamp(36px, 11vw, 54px)/1 var(--body); }
.phone__clock span:last-child { order: -1; font: 500 14px/1.2 var(--body); }
.walls__pick { display: grid; gap: 26px; justify-items: center; width: 100%; }
.walls__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; max-width: 420px; }
.walls__thumbs button { padding: 0; border: 3px solid #33333e; background: none; cursor: pointer; border-radius: 12px; overflow: hidden; touch-action: manipulation; }
.walls__thumbs button[aria-checked="true"] { border-color: var(--yellow); box-shadow: 4px 4px 0 var(--yellow); }
.walls__thumbs img { width: 100%; height: auto; }
.walls__get { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- games ---------- */
.cabinets { display: grid; gap: 30px; }
.cab { display: grid; background: var(--steel); border: 4px solid var(--yellow); box-shadow: 8px 8px 0 var(--yellow); margin-right: 8px; }
.cab > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cab__body { display: grid; gap: 10px; padding: 18px; }
.cab__body p { color: var(--smoke); }
.cab__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.cab__best { font: 400 14px/1 var(--pixel); color: var(--smoke); }
.cab__best b { color: var(--yellow); font-weight: 700; }

/* ---------- live / booking ---------- */
.live { display: grid; gap: 48px; }
.live__col { display: grid; gap: 16px; justify-items: start; }
.live__col p { max-width: 32ch; font-size: 21px; color: var(--smoke); }
.live__links { display: flex; flex-wrap: wrap; gap: 18px 16px; margin: 0; padding: 0; list-style: none; }

/* ---------- footer ---------- */
.foot { display: grid; justify-items: center; gap: 12px; padding: 54px var(--pad) 40px; border-top: 2px solid #22222a; color: var(--smoke); }
.foot img { width: min(52vw, 230px); height: auto; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin: 6px 0 0; padding: 0; list-style: none; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
.foot__links a:hover { color: var(--yellow); }

/* ---------- thumb dock (phones) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--dock) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--black); border-top: 3px solid var(--yellow);
}
.dock a { display: grid; justify-items: center; align-content: center; gap: 4px; color: var(--smoke); text-decoration: none; font: 400 11px/1 var(--pixel); -webkit-tap-highlight-color: transparent; }
.dock svg { width: 22px; height: 22px; shape-rendering: crispEdges; }
.dock a.is-here { color: var(--black); background: var(--yellow); }

/* ---------- game dialog ---------- */
.game { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--black); color: var(--white); }
.game::backdrop { background: var(--black); }
.game[open] { display: grid; grid-template-rows: auto 1fr; }
.game__top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); border-bottom: 3px solid var(--yellow); }
.game__top h2 { font-size: 30px; flex: 1; }
.game__score { font: 700 24px/1 var(--pixel); color: var(--yellow); min-width: 2ch; text-align: right; }
.game__close { min-height: 44px; padding: 0 14px; border: 2px solid #33333e; background: none; color: var(--white); font: 400 13px/1 var(--pixel); cursor: pointer; }
.game__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.game__stage canvas { background: #07060f; }
.game__big { position: absolute; left: 0; right: 0; top: 12%; text-align: center; font: 400 clamp(90px, 30vw, 160px)/1 var(--display); color: var(--yellow); text-shadow: 6px 6px 0 #4a3d08; pointer-events: none; }
.game__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: rgba(0, 0, 0, 0.72); }
.game__msg[hidden] { display: none; }
.game__msg-title { font: 400 clamp(44px, 13vw, 70px)/0.95 var(--display); text-transform: uppercase; color: var(--yellow); }
.game__msg-sub { max-width: 24ch; color: var(--white); font-size: 21px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--dock) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 30; transform: translate(-50%, 20px); padding: 12px 18px; background: var(--white); color: var(--black); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 120ms, transform 120ms; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wider screens ---------- */
@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .toast { bottom: 28px; }
  .bar__nav { display: flex; }
  .bar__logo { width: 76px; }
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 44px; padding: 34px var(--pad) 64px; }
  .hero__words { padding: 0; }
  .hero__words { order: -1; }
  .hero__logo { position: static; width: min(100%, 470px); height: auto; overflow: visible; clip-path: none; margin-left: -6px; }
  .ring { aspect-ratio: 16 / 9; }
  .ring__dean { left: 37.5%; top: 28.9%; width: 25%; }
  .ring__hint { top: 9%; }
  .ring__slam { top: 4%; width: 46%; }
  .ring { border: 4px solid var(--yellow); box-shadow: 12px 12px 0 var(--yellow); margin-right: 12px; }
  .watch { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 54px; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 34px 28px; }
  .walls__body { grid-template-columns: auto minmax(0, 1fr); gap: 64px; justify-items: start; align-items: center; }
  .walls__pick { justify-items: start; }
  .walls__get { justify-content: flex-start; }
  .cabinets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .ring__hint { animation: none; }
  .ring.is-shake, .ring.is-flash .ring__flash { animation: none; }
  .btn, .watch__play { transition: none; }
}
