@font-face {
  font-family: Arcade Condensed;
  src: url("/play/assets/c5/c5482c1d79258e8f8524e31b09066dd8.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #07121e;
  --panel: #101e2c;
  --cream: #fff0c9;
  --cyan: #18e1ff;
  --amber: #ffb322;
  --muted: #cad3da;
  --line: #354454;
  --display: Arcade Condensed, "Arial Narrow", Impact, sans-serif;
  font: 16px/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--cream); }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1440px, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }

.topbar {
  position: relative;
  background: #07101b;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--cyan) 0 54%, var(--amber) 78%) 1;
}
.topbar-inner { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.7rem); min-height: 66px; padding-block: .65rem; }
.intro .game-summary {
  max-width: 43ch;
  margin-top: .85rem;
  color: var(--muted);
  font: 500 clamp(.92rem, 1.28vw, 1.08rem)/1.55 system-ui, sans-serif;
  text-shadow: 0 1px 4px #000;
}
.brand, .topbar nav, .play { font-family: var(--display); font-weight: 700; text-transform: uppercase; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-size: clamp(1.35rem, 3vw, 2.1rem); font-style: italic; white-space: nowrap; }
.brand > span {
  width: 1.2rem;
  height: .66rem;
  transform: skewX(-24deg);
  background: repeating-linear-gradient(var(--cyan) 0 2px, transparent 2px 5px);
}
.topbar nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); margin-left: auto; font-size: clamp(1.05rem, 2vw, 1.4rem); }
.topbar nav a { text-decoration: none; white-space: nowrap; }
.topbar nav a:hover { color: var(--cyan); }
.languages { display: inline-flex; flex-shrink: 0; border: 1px solid #3d5669; padding: 3px; border-radius: 4px; }
.languages button { padding: .3rem .48rem; border: 0; border-radius: 2px; background: transparent; color: var(--muted); font: 700 .83rem/1.4 system-ui, sans-serif; cursor: pointer; }
.languages button[aria-pressed=true] { background: var(--cyan); color: #061621; }
.languages button:hover { color: white; }
.languages button[aria-pressed=true]:hover { color: #061621; }

.arcade {
  padding-block: clamp(2.6rem, 5.5vw, 5rem) clamp(2.4rem, 5vw, 4.3rem);
  background:
    linear-gradient(90deg, #06121bbd, #06121b38 39%, transparent 65%),
    radial-gradient(ellipse at 2% 2%, #57b9ff42, transparent 23%),
    radial-gradient(ellipse at 97% 28%, #47bcff26, transparent 35%),
    linear-gradient(180deg, #06121bec 0%, #061b31d6 55%, #07121e42 77%, var(--night) 100%),
    url("/stadium.webp") center bottom / cover no-repeat;
}
.hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.42fr); gap: clamp(1.3rem, 4vw, 4rem); align-items: center; }
.intro h1 {
  width: max-content;
  max-width: 100%;
  padding: .1em .08em .065em 0;
  border-top: .065em solid var(--cyan);
  border-bottom: .065em solid var(--amber);
  color: var(--cream);
  font: italic 700 clamp(4.25rem, 10vw, 11rem)/.77 var(--display);
  letter-spacing: -.03em;
  text-transform: uppercase;
  transform: skewY(-4deg);
  text-shadow: .025em .045em #050910;
}
.intro h1 span { display: block; }
.intro p { margin-top: clamp(1.3rem, 2.7vw, 2.1rem); max-width: 24ch; font: italic 700 clamp(1.25rem, 2.4vw, 2rem)/1.1 var(--display); }
.play {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  min-height: 56px;
  margin-top: .85em;
  padding: .42em .65em;
  color: #171000;
  background: linear-gradient(#ffc54a, #ffad15);
  border: 2px solid #ffe39a;
  outline: 1px solid #f09612;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 28px #ff980742, inset 0 -3px #a96200;
  font-size: clamp(1.55rem, 2.75vw, 2.55rem);
  font-style: italic;
  line-height: 1.04;
}
.play:hover { background: #ffd374; }
.play:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.play span:last-child { font-style: normal; }

.cabinet {
  position: relative;
  isolation: isolate;
  padding: clamp(.74rem, 2vw, 1.55rem);
  border: 2px solid #a68c57;
  border-radius: clamp(.6rem, 2vw, 1.45rem);
  background: linear-gradient(132deg, #34414e, #101925 30%, #101925 76%, #2d3542);
  box-shadow: 0 .55rem 0 #06090c, 0 .8rem 2rem #000a, inset 0 0 0 3px #0a101a;
}
.cabinet::before, .cabinet::after, .cabinet-edge {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 14%;
  height: clamp(2px, .35vw, 5px);
  background: repeating-linear-gradient(135deg, var(--amber) 0 14px, #523912 14px 18px);
  box-shadow: 0 0 9px #ffad287d;
}
.cabinet::before { top: .4em; left: 8%; }
.cabinet::after { bottom: .4em; right: 8%; }
.cabinet-edge { top: .4em; right: 8%; background: repeating-linear-gradient(135deg, var(--cyan) 0 14px, #1a424f 14px 18px); box-shadow: 0 0 9px #18e1ff6b; }
.cabinet img { display: block; width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 0 0 3px #0009; }

.features, .controls { padding-block: clamp(2.2rem, 5vw, 4.8rem); border-top: 1px solid var(--line); }
.features > h2 { margin-bottom: clamp(1.25rem, 3.2vw, 2.8rem); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.42fr);
  gap: clamp(1rem, 5vw, 4.2rem);
  align-items: center;
  padding-block: clamp(1.4rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
  --feature-color: var(--cyan);
}
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1.42fr) minmax(0, .78fr); --feature-color: var(--amber); }
.feature:nth-of-type(even) .feature-art { grid-column: 1; grid-row: 1; }
.feature:nth-of-type(even) .feature-copy { grid-column: 2; grid-row: 1; }
.feature h3 { font: italic 700 clamp(2.2rem, 4.3vw, 3.65rem)/1 var(--display); color: var(--feature-color); }
.feature p { color: var(--muted); margin-top: .8rem; max-width: 43ch; }
.feature-art img { display: block; width: 100%; height: auto; border: 2px solid var(--feature-color); border-radius: .5rem; box-shadow: 0 .35rem 1.25rem #0008; }
.competition-list { display: flex; list-style: none; flex-wrap: wrap; padding: 0; gap: .4rem; margin: 1rem 0 0; }
.competition-list li { border: 1px solid var(--line); border-radius: .22rem; padding: .1rem .48rem; font-size: .8rem; background: var(--panel); }
h2, dt { font-family: var(--display); font-weight: 700; line-height: 1.04; }
h2 { font-size: clamp(2.4rem, 4.85vw, 4.3rem); }
kbd { border: 1px solid var(--line); padding: .1rem .42rem; border-radius: 3px; background: var(--panel); font-size: .8rem; }
dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.4rem 0 0; }
dl > div { background: var(--panel); padding: .95rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid var(--cyan); }
dl > div:nth-child(2) { border-top-color: var(--amber); }
dt { font-size: 1.35rem; margin-bottom: .4rem; }
dd { margin: .25rem 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 1rem; }
footer .brand { font-size: 1.35rem; }

@media (max-width: 780px) {
  .hero, .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-art, .feature:nth-of-type(even) .feature-copy { grid-column: auto; grid-row: auto; }
  .intro h1 { font-size: clamp(4.75rem, 15vw, 8rem); }
  .intro p { max-width: none; }
  .cabinet { margin-top: .35rem; }
}
@media (max-width: 530px) {
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; }
  .topbar nav { grid-row: 2; grid-column: 1/-1; margin-left: 0; }
  .languages { grid-row: 1; grid-column: 2; }
  .arcade { padding-top: 2.1rem; }
  dl { grid-template-columns: 1fr; }
}

.gallery-stage { aspect-ratio: 1586 / 992; }
.gallery-stage img { height: 100%; object-fit: contain; }
.gallery-stage img[hidden], .gallery-controls[hidden], .gallery-toggle span[hidden] { display: none; }
.gallery-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .7rem;
}
.gallery-controls button {
  min-width: 2.35rem;
  min-height: 2.25rem;
  padding: .22rem .55rem;
  color: var(--cream);
  background: #07121e;
  border: 1px solid #486075;
  border-radius: .25rem;
  cursor: pointer;
}
.gallery-controls button:hover { border-color: var(--cyan); color: var(--cyan); }
.gallery-prev, .gallery-next { font: 700 1.5rem/.9 system-ui, sans-serif; }
.gallery-count { color: var(--muted); font: 700 .72rem/1 ui-monospace, monospace; white-space: nowrap; }
.gallery-controls .gallery-toggle { margin-left: auto; font: 700 .81rem/1.2 system-ui, sans-serif; }
.creator-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.5rem; padding-block: 1.25rem; }
.creator-credit { color: var(--muted); font-size: .91rem; }
.creator-credit strong { color: var(--cream); }
.creator-credit a { color: var(--cyan); text-underline-offset: .18em; }
.creator-credit a:hover { color: var(--cream); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.45rem; }
.hero-actions .play { margin-top: 0; }
#download-desktop, #download-cancel {
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  background: #07121ef0;
  color: var(--cream);
  font: 700 .92rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
#download-desktop:hover, #download-cancel:hover { color: var(--cyan); }
#download-desktop:disabled { opacity: .55; cursor: wait; }
#download-progress { margin-top: .8rem; }
#download-progress p { margin: .3rem 0; color: var(--cream); font: 600 .88rem/1.4 system-ui, sans-serif; }
#download-meter { accent-color: var(--cyan); max-width: 100%; }
#download-cancel { margin: .25rem 0 0 .45rem; }

#launch-screen[hidden] { display: none; }
#launch-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  background: #07121e;
  color: var(--cream);
  font-weight: 700;
}
#launch-screen img { width: 56px; height: 56px; image-rendering: pixelated; }
#launch-screen progress { width: 8rem; accent-color: var(--cyan); }

@media (min-width: 850px) {
  .controls dl { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
