@font-face {
  font-family: "Mexcellent";
  src: url("/assets/fonts/Mexcellent%20Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/BebasNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a2430;
  --paper: #f2f0ea;
  --surface: #fffdf7;
  --glass-border: rgba(255, 253, 247, 0.34);

  /* Saltire blue leads, where the 2026 app led with the Mexican green — this
     tournament is on Scotland's doorstep. #0065bf is the official flag blue. */
  --saltire: #0065bf;
  --saltire-deep: #0c3d69;
  --saltire-ink: #10375c;
  --night: #051a2e;

  /* Host nations: England red, Scotland blue, Wales, Ireland green. Wales' white
     is a soft slate here — true white would vanish against the cream card. */
  --host-red: #c8102e;
  --host-blue: #0065bf;
  --host-slate: #8b96a4;
  --host-green: #169b62;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The countdown sets `display: grid`, which outranks the UA rule behind the `hidden`
   attribute — without this it would survive being hidden at kickoff. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: clamp(20px, 5vw, 48px);
  overflow-x: hidden;
}

/* Same layered-gradient backdrop as the app shell, tinted with the host-nation
   colours instead of a photographic wallpaper — nothing to load, nothing to serve. */
.shell::before,
.shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.shell::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 101, 191, 0.42), transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(0, 101, 191, 0.26), transparent 44%),
    radial-gradient(circle at 88% 14%, rgba(22, 155, 98, 0.14), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(200, 16, 46, 0.10), transparent 32%),
    linear-gradient(180deg, #0a2e4e 0%, #051a2e 56%, #03101d 100%);
}

.shell::after {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 253, 247, 0.07), transparent 58%),
    linear-gradient(180deg, transparent 62%, rgba(3, 16, 29, 0.55));
}

.lang-switch {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 8px;
  background: rgba(5, 26, 46, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lang-button {
  min-width: 40px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 253, 247, 0.62);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.lang-button:hover {
  color: var(--surface);
  background: rgba(255, 253, 247, 0.10);
}

.lang-button.is-active {
  color: var(--surface);
  background: linear-gradient(180deg, rgba(0, 101, 191, 0.92), rgba(12, 61, 105, 0.92));
  box-shadow: 0 6px 16px rgba(3, 16, 29, 0.34);
}

.halo {
  width: min(100%, 660px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.10);
  border: 1px solid rgba(255, 253, 247, 0.16);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.card {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.95), rgba(255, 253, 247, 0.88));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.kicker {
  color: var(--saltire-deep);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The logo ships as a monochrome SVG and is painted through a mask, so it can carry
   the card's ink colour rather than a flat black that would sit oddly on cream. */
.hero-logo {
  width: min(100%, 400px);
  aspect-ratio: 1386.49 / 635.24;
  background-color: var(--saltire-ink);
  -webkit-mask: url("/assets/euro2028-logo.svg") center / contain no-repeat;
  mask: url("/assets/euro2028-logo.svg") center / contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(3, 16, 29, 0.18));
}

.host-stripe {
  width: min(100%, 360px);
  height: 7px;
  display: block;
  margin-top: -4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--host-red) 0 25%,
    var(--host-blue) 25% 50%,
    var(--host-slate) 50% 75%,
    var(--host-green) 75% 100%
  );
  box-shadow: 0 8px 18px rgba(12, 61, 105, 0.20);
}

.lede {
  max-width: 44ch;
  margin: 0;
  color: #44525f;
  font-size: 1.1rem;
  line-height: 1.45;
}

.countdown {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.unit {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding-top: 10px;
  border: 1px solid rgba(12, 61, 105, 0.14);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  position: relative;
  overflow: hidden;
}

/* One host-nation colour per unit rather than the full stripe four times over —
   the four together still read as the set, without the repetition. */
.unit::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--unit-accent, var(--saltire));
}

.unit:nth-child(1) { --unit-accent: var(--host-red); }
.unit:nth-child(2) { --unit-accent: var(--host-blue); }
.unit:nth-child(3) { --unit-accent: var(--host-slate); }
.unit:nth-child(4) { --unit-accent: var(--host-green); }

.unit strong {
  color: var(--saltire-deep);
  font-family: Mexcellent, "Bebas Neue", Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 0.92;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 2px 0 rgba(255, 253, 247, 0.72),
    0 5px 10px rgba(0, 0, 0, 0.14);
}

.unit span,
.kickoff-note,
.foot {
  color: #5d6b7a;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kickoff-note {
  margin: -4px 0 0;
}

.live-banner {
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 101, 191, 0.94), rgba(12, 61, 105, 0.94));
  color: var(--surface);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot {
  color: rgba(255, 253, 247, 0.44);
  font-size: 0.82rem;
}

@media (max-width: 460px) {
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
