/* The front page of the hosted version: same colours as the clock.
   Dark navy, white numbers, peach labels, cyan for what's next. */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/app/fonts/Barlow-Regular.ttf) format('truetype'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/app/fonts/Barlow-Bold.ttf) format('truetype'); }

:root {
  --navy: #0b0a1f;
  --panel: #15143a;
  --line: rgba(255, 255, 255, .14);
  --white: #ffffff;
  --soft: #c9c8e6;
  --next: #7df3ff;
  --label: #ffc2a6;
  --hot: #ff5c7a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  padding: 32px 16px 48px;
  font: 18px/1.5 Bahnschrift, Barlow, 'Segoe UI', system-ui, sans-serif;
  color: var(--white);
  background: radial-gradient(1200px 700px at 50% -10%, #22205c 0%, var(--navy) 60%) fixed var(--navy);
}

.top { max-width: 760px; margin: 0 auto 28px; text-align: center; }
h1 { font-size: clamp(44px, 9vw, 76px); line-height: 1.05; letter-spacing: .01em; }
h2 { font-size: 30px; line-height: 1.15; margin-bottom: 8px; }
h3 { font-size: 20px; margin: 22px 0 10px; }
.lead { margin-top: 12px; font-size: 20px; color: var(--soft); text-wrap: balance; }
.label { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 4px; }

.cards { max-width: 980px; margin: 0 auto; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.card.narrow { max-width: 460px; margin: 12vh auto 0; }
.card p { color: var(--soft); }
.card p b { color: var(--white); }

.row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
input {
  flex: 1 1 180px; min-width: 0; height: 54px; padding: 0 16px;
  font: inherit; color: var(--white);
  background: var(--navy); border: 2px solid var(--line); border-radius: 12px;
}
input:focus-visible, .button:focus-visible, .link:focus-visible { outline: 3px solid var(--next); outline-offset: 2px; }
input::placeholder { color: #7f7da8; }
.code-box { font-size: 28px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; text-align: center; font-variant-numeric: tabular-nums; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 24px; flex: 0 0 auto;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--white); background: transparent; border: 2px solid var(--white); border-radius: 12px;
}
.button.next { color: var(--navy); background: var(--next); border-color: var(--next); }
.button.google { width: 100%; margin-top: 14px; color: var(--navy); background: var(--white); }
.button:hover { filter: brightness(1.1); }
.link { font: inherit; color: var(--next); background: none; border: 0; cursor: pointer; text-decoration: underline; }

.clubs { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.clubs a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; text-decoration: none; font-weight: 700;
  color: var(--white); background: var(--navy); border: 1px solid var(--line);
}
.clubs a span { color: var(--next); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.clubs a:hover { border-color: var(--next); }

.hint { margin-top: 10px; font-size: 16px; }
.message { min-height: 1.5em; margin-top: 10px; font-weight: 700; color: var(--label) !important; }
.message.bad { color: var(--hot) !important; }
.message a { color: var(--next); overflow-wrap: anywhere; }
.foot { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 15px; color: #8f8db8; }
