/* The half-time page, served while Whodle is dormant. See src/paused.js.
   Same paper ground and display face as the game, so it reads as Whodle resting rather
   than a parked domain. */

@font-face{
  font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;
  src:url("/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

:root{
  --bg:#faf6ee; --panel:#fffdf9; --ink:#1a1714; --muted:#665d53; --line:#ddd2be;
  --green:#1e7a45; --board:#1d2a22; --board-ink:#f5f1e8; --amber:#e0b341;
  --shadow:0 6px 18px rgba(60,45,20,.16);
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#14120f; --panel:#1c1a16; --ink:#f5f1e8; --muted:#a9a091; --line:#3a352c;
    --board:#0d1611; --green:#6ecf96; --shadow:0 8px 22px rgba(0,0,0,.5);
  }
}

*{box-sizing:border-box;margin:0}
html,body{min-height:100%}
body{
  background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased;
  font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  display:flex; justify-content:center; padding:48px 16px;
}
.pitch{max-width:440px; width:100%; text-align:center}

.kicker{
  font-family:"Barlow Condensed",system-ui,sans-serif; font-size:22px; letter-spacing:3px;
  text-transform:uppercase; color:var(--green); margin-bottom:24px;
}

/* The scoreboard. Rotated a third of a degree, like the game's stickers: put down by a
   person, never quite straight. */
.board{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px;
  background:var(--board); color:var(--board-ink); border-radius:10px;
  padding:16px 16px 12px; box-shadow:var(--shadow); transform:rotate(-.35deg);
  font-family:"Barlow Condensed",system-ui,sans-serif; text-transform:uppercase;
}
.team{font-size:16px; letter-spacing:1px; opacity:.85}
.score{font-size:44px; line-height:1; font-variant-numeric:tabular-nums}
.score span{margin:0 8px; opacity:.6}
.clock{
  grid-column:1 / -1; justify-self:center; color:var(--amber); font-size:16px;
  letter-spacing:2px; animation:blink 2s steps(1) infinite;
}
@keyframes blink{50%{opacity:.25}}

h1{
  font-family:"Barlow Condensed",system-ui,sans-serif; font-size:56px; line-height:1;
  margin:40px 0 12px; letter-spacing:.5px;
}
.lead{font-size:18px; font-weight:600; margin-bottom:12px}
p{color:var(--muted)}
.lead{color:var(--ink)}

/* A ball kept up on the spot, because nobody can stand still at half-time. */
.ball{
  width:36px; height:36px; margin:36px auto 0; border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 5px, transparent 5.5px),
    radial-gradient(circle at 18% 30%, var(--ink) 0 3px, transparent 3.5px),
    radial-gradient(circle at 82% 30%, var(--ink) 0 3px, transparent 3.5px),
    radial-gradient(circle at 30% 85%, var(--ink) 0 3px, transparent 3.5px),
    radial-gradient(circle at 70% 85%, var(--ink) 0 3px, transparent 3.5px),
    var(--panel);
  border:2px solid var(--ink);
  animation:keepy 1.1s cubic-bezier(.5,0,.5,1) infinite alternate;
}
@keyframes keepy{
  from{transform:translateY(0) rotate(0)}
  to{transform:translateY(-28px) rotate(160deg)}
}

.thanks{margin-top:36px; padding-top:20px; border-top:1px dashed var(--line); font-size:14px}

@media (prefers-reduced-motion: reduce){
  .ball,.clock{animation:none}
}
