/* Spot On Arena — the app's petrol direction. Fonts are served from here, not
   from Google: no third party sees the visitors of this site. */

@font-face { font-family: 'Bricolage'; font-weight: 800; font-display: swap;
  src: url(/fonts/BricolageGrotesque-ExtraBold.ttf) format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap;
  src: url(/fonts/SpaceGrotesk-Medium.ttf) format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap;
  src: url(/fonts/SpaceGrotesk-Bold.ttf) format('truetype'); }
@font-face { font-family: 'Martian Mono'; font-weight: 700; font-display: swap;
  src: url(/fonts/MartianMono-Bold.ttf) format('truetype'); }

:root {
  --ground: #052326;
  --surface: #0B383C;
  --rule: #17545A;
  --muted: #8FB3B5;
  --text: #FDF7F0;
  --chaux: #D9FF3C;
  --flamant: #FF3D8B;
  --mandarine: #FF9F1C;
  --stage: #000000;
  --shadow: 5px 5px 0 #000;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 500 17px/1.6 'Space Grotesk', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

a { color: var(--chaux); text-underline-offset: 3px; }
a:hover { color: var(--text); }

h1, h2, h3 { font-family: 'Bricolage', 'Space Grotesk', sans-serif; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0.6em 0 0.3em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.3em; }
p, li { max-width: 68ch; }
strong { font-weight: 700; }
.muted { color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  max-width: 1040px; width: 100%; margin: 0 auto; padding: 18px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text);
  text-decoration: none; font-family: 'Bricolage', sans-serif; font-weight: 800; font-size: 1.2rem; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a, .langs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.top nav a:hover, .top nav a[aria-current], .langs a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; }
.langs a { font-size: 0.8rem; padding: 2px 9px; border-radius: 999px; }
.langs a[aria-current] { background: var(--surface); color: var(--chaux); }

/* Footer */
.foot { border-top: 1px solid var(--rule); margin-top: 72px; padding: 24px 16px 40px;
  color: var(--muted); font-size: 0.9rem; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 8px; }
.store, .button { display: inline-block; padding: 14px 22px; border-radius: 14px;
  font-family: 'Bricolage', sans-serif; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; background: var(--chaux); color: var(--ground);
  box-shadow: var(--shadow); transition: transform .08s; }
.store:hover, .button:hover { color: var(--ground); transform: translate(-1px, -1px); }
.store:active, .button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
.store.soon { background: var(--surface); color: var(--muted); box-shadow: none;
  border: 1px dashed var(--rule); }

/* Home */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  padding: 40px 0 24px; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 4.6rem); margin-top: 0; }
.hero .lead { font-size: 1.25rem; color: var(--muted); }
.tagline { font-family: 'Bricolage', sans-serif; font-weight: 800; color: var(--chaux);
  font-size: 1.1rem; letter-spacing: 0.02em; margin: 0 0 12px; }
.stage { background: var(--stage); border-radius: 36px; aspect-ratio: 9 / 16; max-width: 300px;
  justify-self: center; width: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; border: 8px solid #10282a; box-shadow: var(--shadow);
  transform: rotate(3deg); padding: 24px; text-align: center; }
.stage .num { font-family: 'Martian Mono', monospace; font-weight: 700; color: var(--chaux);
  font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; }
.stage .small { color: #9a9a9a; font-size: 0.9rem; }
.stage .pad { width: 140px; height: 140px; border-radius: 50%; border: 3px solid var(--chaux);
  display: grid; place-items: center; font-family: 'Bricolage', sans-serif; font-weight: 800;
  color: var(--chaux); font-size: 1.4rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 12px 0; padding: 0; list-style: none; }
.steps li { background: var(--surface); border-radius: 18px; padding: 20px; }
.steps b { display: block; font-family: 'Martian Mono', monospace; color: var(--chaux); font-size: 1.6rem; }
.steps li:nth-child(2) b { color: var(--flamant); }
.steps li:nth-child(3) b { color: var(--mandarine); }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { background: var(--surface); border-radius: 20px; padding: 24px; }
.card h3 { margin-top: 0; }
.card ul { padding-left: 1.1em; margin: 0; }
.card.arena { border: 2px solid var(--flamant); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
  list-style: none; padding: 0; }
.games li { background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.games strong { display: block; font-family: 'Bricolage', sans-serif; font-weight: 800; }
.games span { color: var(--muted); font-size: 0.92rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  margin-left: 6px; vertical-align: 2px; font-family: 'Space Grotesk', sans-serif; }
.tag.free { background: var(--chaux); color: var(--ground); }
.tag.party { background: var(--flamant); color: var(--ground); }

.price { display: flex; flex-wrap: wrap; gap: 18px; }
.price .card { flex: 1 1 280px; }

/* Text pages */
.narrow { max-width: 760px; }
.center { text-align: center; margin: 0 auto; }
.center p { margin-left: auto; margin-right: auto; }
.updated { color: var(--muted); font-size: 0.95rem; }
.doc h2 { font-size: 1.45rem; border-top: 1px solid var(--rule); padding-top: 1.2em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.summary { background: var(--surface); border-left: 4px solid var(--chaux); border-radius: 12px; padding: 4px 20px; }
details { background: var(--surface); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 6px; }
address { font-style: normal; }

/* Join */
.code { font-family: 'Martian Mono', monospace; font-weight: 700; color: var(--chaux);
  font-size: clamp(3.4rem, 16vw, 6rem); letter-spacing: 0.12em; line-height: 1.1; margin: 8px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .stage { max-width: 220px; }
  .steps, .modes { grid-template-columns: 1fr; }
  .top nav { margin-left: 0; order: 3; width: 100%; }
  .langs { margin-left: auto; }
}
