/* The site around the game, in the game's own colours: the TV's night-blue felt, cream ink and gold */
:root {
  --felt: #0c2748;
  --felt-deep: #071a33;
  --bezel: #040d1a;
  --ink: #f6efdc;
  --dim: #b4c2d0;
  --gold: #f2c14e;
  --flame: #ff6a3d;
  --paper: #f4f6f8;
  --display: 'Russo One', Nunito, system-ui, sans-serif;
  --text: Nunito, system-ui, sans-serif;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--felt-deep); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--text); font-weight: 600; font-size: 18px; line-height: 1.55;
  background: radial-gradient(ellipse 80% 60% at 70% 0%, #17406f 0, var(--felt) 45%, var(--felt-deep) 100%) no-repeat, var(--felt-deep);
}
a { color: var(--gold); text-underline-offset: .18em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0; }

.bar, main, .foot { width: 100%; max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 8px; }
.brand { font-family: var(--display); font-size: 24px; color: var(--gold); text-decoration: none; }
.lang { color: var(--dim); font-weight: 800; font-size: 15px; }

/* ---- The front page ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); max-width: 13em; }
.lede { margin-top: 22px; max-width: 34em; color: var(--dim); font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 2px solid rgba(246, 239, 220, .35);
  color: var(--ink); font-weight: 900; font-size: 17px; text-decoration: none; transition: border-color .15s, background-color .15s; }
.button:hover { border-color: var(--ink); }
.button.main { border-color: var(--gold); background: var(--gold); color: #17302a; }
.button.main:hover { background: #ffd36b; border-color: #ffd36b; }

/* The TV, playing a match, with the table's code torn off like a ticket at its corner */
.tv { position: relative; margin: 0 0 40px; }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--bezel);
  box-shadow: 0 0 0 10px var(--bezel), 0 0 0 11px #1b2c44, 0 40px 80px -30px rgba(0, 0, 0, .8); }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.stand { width: 26%; height: 18px; margin: 10px auto 0; border-radius: 0 0 10px 10px; background: linear-gradient(#0d1d33, var(--bezel)); }
.ticket { position: absolute; right: -14px; bottom: -6px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 22px 22px;
  background: var(--paper); color: var(--felt); transform: rotate(-5deg); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), 92% 100%, 84% calc(100% - 5px), 75% 100%, 66% calc(100% - 4px), 58% 100%, 50% calc(100% - 5px), 41% 100%, 33% calc(100% - 4px), 25% 100%, 16% calc(100% - 5px), 8% 100%, 0 calc(100% - 4px)); }
.ticket-caption { font-weight: 800; font-size: 14px; color: #3d5a7a; }
.ticket-code { font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px); letter-spacing: .08em; line-height: 1; }

section > h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 28px; }
.steps, .games, .need { padding: 56px 0; border-top: 1px solid rgba(180, 194, 208, .16); }

/* Three steps, in order */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--gold); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--dim); }

/* The games, as the TV menu shows them: each its own poster */
.games ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 28px; }
.game img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--felt-deep); }
.game h3 { margin-top: 14px; font-size: 22px; }
.facts { margin-top: 4px; color: var(--gold); font-weight: 800; font-size: 15px; }
.game p:last-child { margin-top: 8px; color: var(--dim); font-size: 16px; line-height: 1.5; }

.need dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.need dt { font-weight: 900; font-size: 19px; }
.need dd { margin: 6px 0 0; color: var(--dim); max-width: 34em; }

.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 40px;
  border-top: 1px solid rgba(180, 194, 208, .16); color: var(--dim); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---- Privacy and terms: plain reading ---- */
.legal { max-width: calc(68ch + 2 * var(--gutter)); padding-top: 40px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p { margin-top: 12px; color: #dfe5ec; }
.legal .updated { color: var(--dim); font-size: 15px; }
.legal .ask { margin-top: 40px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .tv { max-width: 560px; margin-right: 14px; }
  .steps ol, .need dl { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
