/* ─────────────────────────────────────────────────────────────
   2026 高科大 STEAM 夏令營 — design tokens & base styles
   "Maker lab × kids' playground" — chunky, blueprint, Scratch-block motifs
   ───────────────────────────────────────────────────────────── */

:root {
  /* Default palette: Sunshine */
  --bg: #FFF6E3;
  --paper: #FFFFFF;
  --ink: #0B0B0E;
  --ink-2: #2A2A33;
  --muted: rgba(11, 11, 14, 0.56);
  --line: rgba(11, 11, 14, 0.14);
  --line-strong: rgba(11, 11, 14, 0.85);

  --primary: #FFD23F;       /* sunny yellow */
  --primary-ink: #0B0B0E;
  --accent: #FF5C39;        /* coral */
  --blue: #2154F0;          /* electric blue */
  --mint: #00C896;          /* fresh mint */
  --plum: #6B4BFF;          /* tech purple */

  --soft-1: #FFEAB8;
  --soft-2: #DBE5FF;
  --soft-3: #FFD9CC;
  --soft-4: #C8F0E3;

  /* Type */
  --font-cn: "Noto Sans TC", "PingFang TC", "Heiti TC", system-ui, sans-serif;
  --font-en: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --font-display: "Archivo Black", "Noto Sans TC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Density */
  --pad-section: 96px;
  --pad-card: 24px;
  --gap: 24px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 14px 32px -16px rgba(11,11,14,.18);
  --shadow-pop: 0 24px 60px -24px rgba(11,11,14,.32);

  /* Page width */
  --maxw: 1240px;
}

[data-density="compact"] {
  --pad-section: 64px;
  --pad-card: 18px;
  --gap: 16px;
}
[data-density="comfy"] {
  --pad-section: 128px;
  --pad-card: 32px;
  --gap: 32px;
}

/* Palette themes */
[data-palette="sunshine"] {
  --bg: #FFF6E3; --primary: #FFD23F; --accent: #FF5C39; --blue: #2154F0;
  --soft-1:#FFEAB8; --soft-2:#DBE5FF; --soft-3:#FFD9CC; --soft-4:#C8F0E3;
}
[data-palette="ocean"] {
  --bg: #EAF4FF; --primary: #2EC4FF; --accent: #FF6FB8; --blue: #1135A8;
  --soft-1:#CFE7FF; --soft-2:#B4E2F2; --soft-3:#FFCFE3; --soft-4:#D5F0E5;
  --primary-ink: #0B1C36;
}
[data-palette="lab"] {
  --bg: #F2F3EF; --primary: #C7FF3E; --accent: #FF2E63; --blue: #1B1F26;
  --soft-1:#E8F8C2; --soft-2:#DDE0DA; --soft-3:#FFD2DD; --soft-4:#CFE9D8;
  --primary-ink: #0B0B0E;
}
[data-palette="dusk"] {
  --bg: #15131F; --paper: #1F1C2E; --ink: #F4F1E8; --ink-2: #CFC9BB;
  --muted: rgba(244,241,232,.55); --line: rgba(244,241,232,.16);
  --line-strong: rgba(244,241,232,.85);
  --primary: #FFCE3A; --accent: #FF6F61; --blue: #6BA8FF;
  --soft-1:#3A2F0E; --soft-2:#1F2D55; --soft-3:#3A1D17; --soft-4:#0F3A2D;
  --primary-ink: #15131F;
  --shadow-card: 0 1px 0 rgba(255,255,255,.04), 0 14px 32px -16px rgba(0,0,0,.6);
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-cn);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Headings */
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(34px, 4.5vw, 64px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
p  { margin: 0; text-wrap: pretty; }

/* Utilities */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 2px;
}
.mono { font-family: var(--font-mono); }
.display-en { font-family: var(--font-display); letter-spacing: -0.02em; }

/* Blueprint grid background */
.blueprint {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Scratch-block shape: notch on top + tab on bottom */
.snap-block {
  position: relative;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,.4) inset;
  border: 2px solid var(--ink);
}
.snap-block::before,
.snap-block::after {
  content: "";
  position: absolute;
  left: 28px;
  width: 36px;
  height: 8px;
  background: var(--primary);
  border: 2px solid var(--ink);
  border-radius: 0 0 8px 8px;
}
.snap-block::before {
  top: -10px;
  border-top: none;
  border-radius: 0 0 8px 8px;
}
.snap-block::after {
  bottom: -10px;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* Chip / pill */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.chip.solid { background: var(--ink); color: var(--bg); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Primary CTA */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 0 var(--ink);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); transform: none; }
.btn.small { padding: 10px 16px; font-size: 14px; box-shadow: 0 4px 0 var(--ink); }
.btn.small:hover { box-shadow: 0 2px 0 var(--ink); }
.btn.accent { background: var(--accent); color: #fff; }

/* Card */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
}

/* Section spacing */
section { padding: var(--pad-section) 0; position: relative; }
section + section { padding-top: 0; }

/* Sticky nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1.5px solid var(--ink);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 17px;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none; padding: 8px 14px;
  border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: background .15s ease;
}
.nav-links a:hover { background: var(--ink); color: var(--bg); }
.countdown-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--soft-2);
}
.countdown-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

/* HERO */
.hero {
  padding-top: 56px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}
.hero h1 {
  font-family: var(--font-cn);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.hero h1 .x {
  font-family: var(--font-display);
  color: var(--accent);
  display: inline-block;
  transform: translateY(-4px);
  margin: 0 0.06em;
}
.hero h1 .underline {
  background-image: linear-gradient(transparent 70%, var(--primary) 70%);
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 540px;
  margin-top: 22px;
}
.hero-date {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px;
}
.hero-date .big {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.hero-date .small {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.hero-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 24px;
}
.hero-cta {
  margin-top: 36px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

/* Hero right: robot stage */
.robot-stage {
  position: relative;
  height: 520px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stage-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding: 10px 14px;
}
.stage-corner.tl { top: 0; left: 0; }
.stage-corner.tr { top: 0; right: 0; }
.stage-corner.bl { bottom: 0; left: 0; }
.stage-corner.br { bottom: 0; right: 0; }
.stage-grid {
  position: absolute; inset: 24px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.stage-track {
  position: absolute;
  left: 40px; right: 40px; bottom: 90px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--ink), var(--ink) 12px, transparent 12px, transparent 24px);
}
.stage-checker {
  position: absolute;
  right: 40px; bottom: 60px;
  width: 56px; height: 80px;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  border: 2px solid var(--ink);
}
.robot {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 240px;
  animation: drive 7s ease-in-out infinite;
}
.robot .wheel { transform-origin: center; animation: spin 1.1s linear infinite; }
.robot .wheel.back { animation-delay: -.2s; }
@keyframes drive {
  0%   { transform: translateX(-30px); }
  45%  { transform: translateX(calc(100% - 100px)); }
  55%  { transform: translateX(calc(100% - 100px)); }
  100% { transform: translateX(-30px) scaleX(-1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.signal {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: signal 1.6s ease-out infinite;
  opacity: 0;
}
@keyframes signal {
  0% { transform: scale(.4); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* Sections */
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 48px;
}
.section-head h2 .accent { color: var(--accent); }
.section-head p { color: var(--ink-2); max-width: 420px; }

/* Highlights as Scratch blocks */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hl {
  position: relative;
  padding: 24px 22px 28px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 6px 0 var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 280px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hl:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.hl::before {
  content: ""; position: absolute; left: 28px; top: -8px;
  width: 36px; height: 8px;
  background: inherit;
  border: 2px solid var(--ink); border-top: 0;
  border-radius: 0 0 6px 6px;
}
.hl::after {
  content: ""; position: absolute; left: 28px; bottom: -8px;
  width: 36px; height: 8px;
  background: inherit;
  border: 2px solid var(--ink); border-top: 0;
  border-radius: 0 0 6px 6px;
}
.hl .num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}
.hl .icon {
  margin-top: auto;
  align-self: flex-end;
  width: 60px; height: 60px;
}
.hl h3 { font-size: 22px; }
.hl p { font-size: 13.5px; opacity: 0.85; }
.hl.b1 { background: var(--primary); }
.hl.b2 { background: var(--soft-2); color: var(--ink); }
.hl.b3 { background: var(--soft-3); color: var(--ink); }
.hl.b4 { background: var(--soft-4); color: var(--ink); }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  margin-top: 48px;
}
.stat { padding: 24px 28px; border-right: 2px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat .v {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 500; }

/* About block */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.about-grid .lead {
  font-size: 22px; font-weight: 700; line-height: 1.5;
}
.about-grid p { color: var(--ink-2); font-size: 16px; }

/* SCHEDULE */
.schedule-tabs {
  display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap;
}
.tab {
  flex: 1 1 240px;
  text-align: left;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
  transition: all .15s ease;
}
.tab .day-num {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--muted);
}
.tab .day-title {
  font-weight: 800; font-size: 17px;
}
.tab .day-date {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  margin-top: 2px;
}
.tab[aria-selected="true"] {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 6px 0 var(--accent);
  transform: translateY(-2px);
}
.tab[aria-selected="true"] .day-num,
.tab[aria-selected="true"] .day-date { color: rgba(255,255,255,.65); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  padding-left: 12px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 153px; top: 8px; bottom: 8px;
  width: 2px; background: var(--ink);
  z-index: 0;
}
.tl-row {
  display: contents;
}
.tl-time {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 16px 14px 0;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
.tl-dot {
  position: relative;
  padding: 14px 0 14px 36px;
}
.tl-dot::before {
  content: "";
  position: absolute;
  left: 18px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  z-index: 1;
}
.tl-dot .card-row {
  padding: 16px 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
}
.tl-dot .activity {
  font-weight: 700; font-size: 16px;
}
.tl-dot .note {
  font-size: 13px; color: var(--muted); margin-top: 4px;
}
.tl-dot .badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--soft-1);
  border: 1.5px solid var(--ink);
}
.tl-dot.lunch .card-row { background: var(--soft-4); }
.tl-dot.break .card-row { background: transparent; border-style: dashed; box-shadow: none; }
.tl-dot.highlight .card-row { background: var(--primary); }
.tl-dot.competition .card-row { background: var(--accent); color: #fff; }
.tl-dot.competition .note { color: rgba(255,255,255,.85); }

/* Competition */
.score-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.score-row {
  display: grid;
  grid-template-columns: 200px 60px 1fr;
  gap: 18px;
  align-items: center;
}
.score-row .label { font-weight: 800; font-size: 17px; }
.score-row .pct {
  font-family: var(--font-display);
  font-size: 22px;
}
.score-row .bar {
  height: 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.score-row .fill {
  height: 100%;
  background: var(--primary);
  border-right: 2px solid var(--ink);
  width: 0;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}
.score-row.r2 .fill { background: var(--blue); }
.score-row.r3 .fill { background: var(--accent); }
.score-row.r4 .fill { background: var(--mint); }
.score-row .desc { font-size: 13px; color: var(--muted); grid-column: 1 / -1; margin-top: -4px; padding-left: 0; }

/* ── Tournament section ── */
.tour-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 36px;
}
.tour-facts .fact {
  padding: 18px 16px;
  border-right: 2px solid var(--ink);
}
.tour-facts .fact:last-child { border-right: 0; }
.tour-facts .fact .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tour-facts .fact .v {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-family: var(--font-cn);
  font-weight: 900;
}
.tour-facts .fact .v.lg {
  font-family: var(--font-display);
  font-size: 26px;
}
.tour-facts .fact .u {
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.tour-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}
.legend {
  padding: 14px 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: var(--paper);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 12px; height: 12px; display: inline-block; }

.robot-tabs { display: flex; gap: 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.robot-tab {
  border: 0;
  background: var(--paper);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  border-right: 2px solid var(--ink);
  color: var(--ink);
}
.robot-tab:last-child { border-right: 0; }
.robot-tab.active { background: var(--ink); color: var(--bg); }
.robot-tab .ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--ink);
}
.robot-tab.active .ico { border-color: var(--bg); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 10px 0; vertical-align: top; }
.spec-table td.k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  width: 100px;
  padding-top: 12px;
}
.spec-table td.v { font-weight: 600; color: var(--ink); line-height: 1.55; }

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rule-group {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 22px 22px 24px;
}
.rule-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--line);
}
.rule-icon {
  font-family: var(--font-display);
  font-size: 13px;
  background: var(--primary);
  color: var(--primary-ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 8px;
  letter-spacing: 0.04em;
}
.rule-group h4 { font-size: 18px; font-weight: 800; margin: 0; }
.rule-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rule-group li {
  font-size: 13.5px;
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
  color: var(--ink-2);
}
.rule-group li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

/* Jump link styles in timeline */
.tl-dot.jump { cursor: pointer; }
.tl-dot.jump .card-row { transition: transform .15s ease, box-shadow .15s ease; }
.tl-dot.jump:hover .card-row { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.tl-dot.opening .card-row { background: var(--blue); color: #fff; }
.tl-dot.opening .note { color: rgba(255,255,255,.85); }
.tl-dot.practice .card-row { background: var(--mint); color: #fff; }
.tl-dot.practice .note { color: rgba(255,255,255,.9); }
.jump-arrow { font-family: var(--font-display); margin-left: 8px; display: inline-block; }

/* Day 2 practice race */
.station-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 36px;
}
.station-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 20px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.station-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.station-card::before {
  content: "";
  position: absolute; left: -2px; top: -2px; bottom: -2px;
  width: 8px;
  background: var(--station-color);
  border: 2px solid var(--ink);
  border-radius: 16px 0 0 16px;
}
.station-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.station-num {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.station-icon {
  width: 44px; height: 44px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 2px 2px 0 var(--ink);
}
.station-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.station-card h4 { font-size: 19px; font-weight: 800; margin: 2px 0 4px; }
.station-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.station-focus {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
  display: flex; gap: 10px;
  font-size: 12.5px;
  align-items: center;
}
.station-focus .mono {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: var(--bg);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.bp-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: center;
}
.bp-row:last-of-type { border-bottom: 0; }
.bp-tag {
  font-family: var(--font-display);
  font-size: 18px;
  padding: 8px 0;
  text-align: center;
  border-radius: 10px;
  border: 1.5px solid;
}
.bp-tag.bp-plus { color: var(--mint); border-color: var(--mint); background: rgba(0,200,150,.1); }
.bp-tag.bp-minus { color: #FF8080; border-color: #FF8080; background: rgba(255,128,128,.08); }
.bp-name { font-weight: 700; font-size: 14.5px; }
.bp-desc { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Notes / checklist */
.notes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.note-item {
  padding: 18px 20px 18px 56px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  position: relative;
  font-size: 14.5px;
}
.note-item::before {
  content: "";
  position: absolute;
  left: 18px; top: 22px;
  width: 22px; height: 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--primary);
}
.note-item::after {
  content: "";
  position: absolute;
  left: 23px; top: 24px;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .toggle {
  font-family: var(--font-display);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--primary);
  border: 2px solid var(--ink);
  border-radius: 8px;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a {
  padding: 0 22px 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* Orgs */
.orgs {
  display: grid; gap: 24px;
}
.orgs-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.orgs-row .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 100px;
}
.org-badge {
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-weight: 600;
  font-size: 13.5px;
}
.org-badge.solid { background: var(--ink); color: var(--bg); }

/* Form */
.form-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.form-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-pop);
}
.steps {
  display: flex; flex-direction: column; gap: 0;
  position: sticky; top: 100px;
}
.step-item {
  display: flex; gap: 14px; align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}
.step-item .n {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}
.step-item.active { color: var(--ink); font-weight: 700; }
.step-item.active .n {
  background: var(--primary); border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.step-item.done { color: var(--ink); }
.step-item.done .n {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.field label .req { color: var(--accent); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-cn);
  color: var(--ink);
  outline: none;
  transition: box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 4px var(--primary);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: var(--accent);
}
.field .err {
  font-size: 12px; color: var(--accent); font-weight: 600;
  margin-top: 2px;
}
.field .hint { font-size: 12px; color: var(--muted); }

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice {
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: all .12s ease;
  user-select: none;
}
.choice:hover { background: var(--soft-1); }
.choice.selected { background: var(--ink); color: var(--bg); }

.consent {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  background: var(--bg);
}
.consent input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
.consent strong { color: var(--ink); }

.form-actions { display: flex; justify-content: space-between; margin-top: 28px; align-items: center; }
.form-progress {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
}

.success {
  text-align: center; padding: 24px 0;
}
.success .mark {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--primary);
  display: grid; place-items: center;
  box-shadow: 0 8px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 48px;
  animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success h3 { font-size: 28px; margin: 8px 0 4px; }
.success .ref {
  display: inline-flex; gap: 8px;
  padding: 10px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  margin-top: 16px;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 2px solid var(--ink);
  margin-top: 80px;
  background: var(--ink);
  color: var(--bg);
}
.footer h3 { font-size: 32px; color: var(--primary); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px;
  margin-top: 32px;
}
.footer a { color: var(--bg); }
.footer-fineprint {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.6);
  font-family: var(--font-mono);
}

/* Mascot toggle */
[data-mascot="off"] .robot,
[data-mascot="off"] .signal { display: none; }
[data-mascot="off"] .stage-corner { opacity: .25; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .robot-stage { height: 340px; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 2px solid var(--ink); }
  .stat:nth-child(odd) { border-right: 2px solid var(--ink); }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .notes { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .steps { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 6px; }
  .step-item { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 90px 1fr; }
  .timeline::before { left: 113px; }
  .score-row { grid-template-columns: 1fr 60px; }
  .score-row .bar { grid-column: 1 / -1; }
  .tour-facts { grid-template-columns: repeat(2, 1fr); }
  .tour-facts .fact { border-bottom: 2px solid var(--ink); }
  .tour-facts .fact:nth-child(odd) { border-right: 2px solid var(--ink); }
  .tour-facts .fact:nth-child(even) { border-right: 0; }
  .tour-facts .fact:nth-last-child(-n+2) { border-bottom: 0; }
  .tour-grid { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: 1fr; }
  .spec-table td.k { width: 88px; font-size: 10px; }
  .station-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
}

/* ─── Phone nav (≤720px) ───────────────────────────────────────
   Hide secondary anchors, keep countdown chip + 立即報名 button,
   prevent overflow on small screens. */
@media (max-width: 720px) {
  .nav-inner { gap: 8px; }
  .nav-links { gap: 6px; flex-wrap: nowrap; }
  .nav-links a { display: none; }
  .nav-links .countdown-chip {
    padding: 4px 8px; font-size: 11px; letter-spacing: 0;
  }
  .nav-links .btn.small { padding: 8px 12px; font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; }

  /* Hero spacing tighten */
  .hero { padding-top: 24px; }
  .hero-date .big { font-size: 56px; line-height: 1; }
  .hero h1 { font-size: 40px !important; line-height: 1.05; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Schedule timeline on phone */
  .schedule-tabs { flex-wrap: wrap; }
  .tab { flex: 1 1 calc(33% - 6px); min-width: 0; }
  .timeline { grid-template-columns: 72px 1fr; gap: 12px; }
  .timeline::before { display: none; }
  .tl-time { font-size: 11px; }

  /* Highlights one-column on small phones */
  .highlights { grid-template-columns: 1fr; }

  /* Stats single col */
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 2px solid var(--ink); }
  .stat:last-child { border-bottom: 0; }

  /* Spec table: stack key/value tighter */
  .spec-table td { font-size: 12.5px; padding: 8px 0; }
  .spec-table td.k { width: 76px; font-size: 10px; }

  /* Robot tab pills wrap */
  .robot-tabs { flex-wrap: wrap; }
  .robot-tab { flex: 1 1 50%; }

  /* Tour facts: 1 col on very small */
  .tour-facts { grid-template-columns: repeat(2, 1fr); }

  /* Footer single col + finer text */
  .footer h3 { font-size: 22px; }
  .footer-fineprint { flex-direction: column; gap: 6px; }

  /* Form: form-row stack */
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
}

/* ─── Very small phones (≤420px) ─────────────────────────────── */
@media (max-width: 420px) {
  .container { padding-left: 18px; padding-right: 18px; }
  h2 { font-size: 32px !important; }
  .hero h1 { font-size: 32px !important; }
  .countdown-chip { display: none; }
}
