/* Badminton entry guide: athlevents.com/guides/badminton-entry.html. Standalone page, not part of the app bundle. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
.eyebrow { text-decoration: none; }
/* Layout: a single reading column; each step pairs a phone illustration with its instructions, stacking on phones. */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --fg: #0f1d2e;
  --muted: #52627a;
  --line: #d6e0eb;
  --accent: #164a75;
  --accent-strong: #0a3156;
  --accent-soft: #e0eaf3;
  --ok-bg: #e3f6ee; --ok-fg: #0b5a3e;
  --warn-bg: #fdf3dc; --warn-fg: #7a4a06;
  --step: #164a75; --step-fg: #ffffff;
  /* The app's own screens are dark in both themes. */
  --app-bg: #020617; --app-bar: #0f172a; --app-card: #1e293b; --app-line: #334155;
  --app-text: #f8fafc; --app-sub: #cbd5e1; --app-dim: #64748b;
  --app-blue: #2563eb; --app-green: #10b981; --app-amber: #d97706;
  --app-active: #172554; --app-ok: #064e3b; --app-info: #172554; --app-warn: #78350f;
  --frame: #c9d4e2;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071a2e; --surface: #0c2440; --fg: #e8eef6; --muted: #9db0c7; --line: #1d3a5c;
    --accent: #94b5d3; --accent-strong: #c2d5e7; --accent-soft: #10304f;
    --ok-bg: #0d3a2b; --ok-fg: #a7f0cf; --warn-bg: #3a2a0b; --warn-fg: #f7d38b;
    --step: #2f6699; --step-fg: #ffffff; --frame: #1d3a5c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071a2e; --surface: #0c2440; --fg: #e8eef6; --muted: #9db0c7; --line: #1d3a5c;
  --accent: #94b5d3; --accent-strong: #c2d5e7; --accent-soft: #10304f;
  --ok-bg: #0d3a2b; --ok-fg: #a7f0cf; --warn-bg: #3a2a0b; --warn-fg: #f7d38b;
  --step: #2f6699; --step-fg: #ffffff; --frame: #1d3a5c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
}
.wrap {
  max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.hero { background: var(--accent-strong); color: #ffffff; }
:root[data-theme="dark"] .hero { background: #0a3156; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: #0a3156; } }
.hero .wrap { padding-block: 40px 36px; display: grid; gap: 14px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #c2d5e7; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); color: #ffffff; }
.hero p { max-width: 62ch; color: #e0eaf3; font-size: 17px; }
.route { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 0; list-style: none; }
.route li {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border-radius: 999px; background: rgba(255,255,255,0.1); font-size: 14px; color: #ffffff;
}
.route b {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #ffffff; color: #0a3156; font-size: 12px;
}

/* Contents */
.toc { border-bottom: 1px solid var(--line); background: var(--surface); }
.toc .wrap { padding-block: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

main .wrap { padding-block: 24px 56px; display: grid; gap: 22px; }

.section {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px clamp(18px, 3vw, 32px); display: grid; gap: 18px; scroll-margin-top: 16px;
}
.section-head { display: grid; gap: 4px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(22px, 3vw, 28px); }
.section-head p { color: var(--muted); }

.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.split.wide-screens { grid-template-columns: minmax(0, 1fr); }
.screens { display: flex; flex-wrap: wrap; gap: 22px; }
@media (max-width: 720px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > figure { justify-self: center; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--step); color: var(--step-fg); font-weight: 700; font-size: 13px; margin-top: 1px;
}
.bul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.bul li::marker { color: var(--accent); }
.text { display: grid; gap: 14px; min-width: 0; }
.note { border-radius: 10px; padding: 12px 14px; font-size: 15px; background: var(--accent-soft); }
.note.ok { background: var(--ok-bg); color: var(--ok-fg); }
.note.warn { background: var(--warn-bg); color: var(--warn-fg); }
.note b { font-weight: 600; }

.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.choice > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.choice h3 { font-size: 18px; }
.choice p { color: var(--muted); font-size: 15px; }
.tag { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); }
.tag.slow { background: var(--warn-bg); color: var(--warn-fg); }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq div { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; }
.faq dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .faq div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ── Phone illustrations ─────────────────────────────────────────── */
figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
figcaption { font-size: 13px; color: var(--muted); text-align: center; max-width: 240px; }
.phone {
  width: 240px; max-width: 100%; border-radius: 26px; padding: 7px; background: var(--frame);
}
.screen {
  background: var(--app-bg); color: var(--app-text); border-radius: 20px; overflow: hidden;
  font-family: var(--font-body); font-size: 11.5px; line-height: 1.4; min-height: 420px;
}
.status { display: flex; justify-content: space-between; padding: 7px 14px 2px; font-size: 10px; color: var(--app-sub); font-weight: 600; }
.appbar { display: flex; justify-content: space-between; align-items: center; background: var(--app-bar); padding: 9px 12px; }
.appbar strong { font-family: var(--font-display); letter-spacing: 0.04em; font-size: 12px; }
.appbar span { width: 18px; height: 18px; border-radius: 50%; background: var(--app-line); }
.body { padding: 12px; display: grid; gap: 8px; }
.s-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--app-text); }
.s-sub { color: var(--app-dim); font-size: 10.5px; }
.s-text { color: var(--app-sub); }
.s-card { background: var(--app-card); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; border: 1px solid transparent; position: relative; }
.s-card.active { background: var(--app-active); border-color: var(--app-blue); }
.s-card b { font-size: 12px; color: var(--app-text); font-weight: 600; }
.s-card small { color: var(--app-sub); font-size: 10.5px; }
.s-card.radio { padding-left: 28px; }
.s-card.radio::before {
  content: ""; position: absolute; left: 10px; top: 11px; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--app-sub);
}
.s-card.radio.active::before { border-color: var(--app-blue); background: radial-gradient(var(--app-blue) 45%, transparent 50%); }
.pill { position: absolute; right: 8px; top: 8px; font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #ffffff; background: var(--app-green); }
.pill.blue { background: var(--app-blue); } .pill.amber { background: var(--app-amber); }
.s-field { display: grid; gap: 3px; }
.s-field label { font-size: 10px; font-weight: 600; color: var(--app-sub); }
.s-field div { background: var(--app-bar); border: 1px solid var(--app-line); border-radius: 6px; padding: 6px 8px; color: var(--app-text); }
.s-field div.ph { color: var(--app-dim); }
.s-btn { background: var(--app-blue); color: #ffffff; text-align: center; font-weight: 600; border-radius: 8px; padding: 8px; font-size: 12px; }
.s-btn.green { background: var(--app-green); }
.s-btn.ghost { background: var(--app-card); }
.s-btn.muted { background: var(--app-line); color: var(--app-sub); }
.s-banner { border-radius: 8px; padding: 7px 9px; font-size: 10.5px; color: #ffffff; background: var(--app-info); }
.s-banner.ok { background: var(--app-ok); } .s-banner.warn { background: var(--app-warn); }
.s-row { display: flex; justify-content: space-between; color: var(--app-sub); }
.s-row b { color: var(--app-text); }
.s-hr { height: 1px; background: var(--app-line); }
.s-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.s-progress i { height: 4px; border-radius: 4px; background: var(--app-line); }
.s-progress i.on { background: var(--app-blue); }
.s-done { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--app-ok); color: var(--app-green); font-weight: 700; font-size: 20px; justify-self: center; margin-top: 30px; }
.center { text-align: center; }

.footer { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
