/* Ball Drop: Call It — site styles. Colours from the game icon: cream table, orange ball, navy ink, blue rail. */
:root {
  --cream: #F6F1E7;
  --paper: #FFFDF8;
  --navy: #1B2A4A;
  --ink-soft: #4A5672;
  --orange: #E8571E;
  --orange-deep: #C2410C;
  --blue: #2F5BD3;
  --line: #E4DCCB;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--orange-deep); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.top, .tabs, main, footer { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.brand img { border-radius: 11px; box-shadow: 0 2px 6px rgba(27,42,74,.15); }
.lang {
  flex: none; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--navy);
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.lang:hover { background: var(--navy); color: var(--cream); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 6px; }
.tabs a {
  padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.tabs a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: #fff; }

main { padding-top: 10px; padding-bottom: 8px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(27,42,74,.06); margin: 12px 0 20px;
}
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 {
  font-size: 1.22rem; line-height: 1.3; margin: 1.8em 0 .5em; padding-top: .9em; border-top: 2px dashed var(--line);
  scroll-margin-top: 12px;
}
h3 { font-size: 1.05rem; margin: 1.6em 0 .35em; scroll-margin-top: 12px; }
h3::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--orange); margin-right: .5em; vertical-align: .08em; }
p, ul, ol { margin: 0 0 1em; }
ul { padding-left: 1.25em; }
li { margin: .3em 0; }
li::marker { color: var(--orange); }
strong { font-weight: 700; }
.doc > p:first-of-type { color: var(--ink-soft); }
.small { font-size: .88rem; color: var(--ink-soft); }
.up, .jump { font-size: .92rem; margin-top: 1.6em; }
.jump { margin-top: 0; }

.toc { margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; background: var(--cream); }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: .6em 0 .2em; padding-left: 1.2em; font-size: .95rem; }

/* The finish band: tick marks with the orange marker, as on the play screen. */
.band, .ruler {
  height: 14px; border-radius: 999px; margin: 18px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(27,42,74,.35) 18px 20px),
    #DCE5FA;
  border: 2px solid var(--blue);
}
.ruler { position: relative; height: 22px; margin: 22px auto; max-width: 320px; }
.marker {
  position: absolute; top: 50%; left: 58%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF9A6B, var(--orange) 55%, var(--orange-deep));
  box-shadow: 0 2px 6px rgba(194,65,12,.35);
}
.marker::before, .marker::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 2px; }
.marker::before { width: 16px; height: 2px; }
.marker::after { width: 2px; height: 16px; }
.miss .marker { left: 88%; }

.hero { text-align: center; padding-top: 34px; }
.hero .icon { border-radius: 28px; box-shadow: 0 6px 18px rgba(27,42,74,.18); }
.hero h1 { font-size: 2rem; margin-top: .5em; }
.sub { font-weight: 700; color: var(--orange-deep); font-size: 1.1rem; margin-bottom: .6em; }
.hero p { max-width: 34em; margin-left: auto; margin-right: auto; }
.links { display: grid; gap: 10px; margin-bottom: 20px; }
.pill {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 18px;
  background: var(--navy); color: var(--cream); text-decoration: none; font-weight: 700;
}
.pill:hover { background: var(--blue); color: #fff; }

footer { padding-bottom: 36px; text-align: center; font-size: .92rem; }
footer .band { height: 10px; margin: 6px 0 16px; }
footer p { margin: .4em 0; }
footer a[aria-current] { font-weight: 700; color: var(--navy); }

@media (min-width: 640px) {
  .card { padding: 34px 40px; }
  .links { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
