/* 一生 · 人生模拟器 */
:root {
  --bg: #f4efe4;
  --bg-2: #ece5d5;
  --surface: #fffdf7;
  --surface-2: #f8f2e4;
  --ink: #23241f;
  --ink-soft: #4a4a42;
  --muted: #78715f;
  --line: #ded3bd;
  --line-soft: #eae1d0;
  --accent: #b3502f;
  --accent-ink: #fff8ef;
  --accent-soft: #f3dfd3;
  --jade: #2f6b5f;
  --gold: #a8823c;
  --shadow: 0 10px 30px rgba(74, 60, 32, .09);
  --radius: 18px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --bg-2: #1a1d20;
    --surface: #1f2226;
    --surface-2: #24282c;
    --ink: #efe8da;
    --ink-soft: #d6cebd;
    --muted: #9c9585;
    --line: #34383d;
    --line-soft: #2b2f33;
    --accent: #d97a55;
    --accent-ink: #1b1410;
    --accent-soft: #3a2a24;
    --jade: #74b3a3;
    --gold: #c9a25f;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-2), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.app {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px 56px;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
}
.seal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
}
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; }
.nav-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  min-height: 38px;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- screens ---------- */
.screen { display: none; animation: fadeUp .32s ease both; }
.screen.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hero { padding: 34px 4px 22px; text-align: left; }
.hero-kicker {
  font-size: 12px;
  letter-spacing: .5em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero h1 {
  font-size: clamp(56px, 20vw, 88px);
  line-height: 1.02;
  letter-spacing: .06em;
  color: var(--ink);
}
.hero-lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 30em;
}

/* ---------- name input ---------- */
.name-field { margin: 8px 0 18px; }
.name-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 7px;
}
.name-field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
}
.name-row input:focus-visible,
.icon-btn:focus-visible,
.seg-btn:focus-visible,
.btn:focus-visible,
.nav-btn:focus-visible,
.choice:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- dossier ---------- */
.dossier {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px 16px 6px;
  margin: 4px 0 16px;
}
.dossier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.dossier-title {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .28em;
  color: var(--ink-soft);
}
.dossier-roll {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.name-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 14px 0 0;
}
.name-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 46px;
}
.name-row input::placeholder { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.icon-btn {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.gender-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}
.row-label {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
  flex: 0 0 auto;
}
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex: 1 1 auto;
  min-width: 0;
}
.seg-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding: 0 4px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.seg-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.fate-rows {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.fate-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  animation: fadeUp .32s ease both;
}
.fate-row:first-child { border-top: none; }
.fate-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 16px;
  flex: 0 0 auto;
}
.fate-body { min-width: 0; }
.fate-top {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.fate-label {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  flex: 0 0 auto;
}
.fate-name {
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.fate-desc {
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 3px;
}
.fate-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill.up { color: var(--jade); border-color: color-mix(in srgb, var(--jade) 40%, var(--line)); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons ---------- */
.btn {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 13px 18px;
  font-size: 15px;
  cursor: pointer;
  min-height: 48px;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: .04em;
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 10px 8px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.btn-quiet:hover { color: var(--accent); }
.start-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
.start-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

/* ---------- life head ---------- */
.life-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 2px 12px;
}
.life-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.life-name {
  font-family: var(--serif);
  font-size: 24px;
  overflow-wrap: anywhere;
}
.life-stage { font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.life-age { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); }
.age-unit { font-size: 14px; margin-left: 2px; color: var(--muted); font-family: var(--sans); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.stat { min-width: 0; }
.stat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.stat-name { letter-spacing: .05em; }
.stat-val { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.bar {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 65%, transparent);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--jade);
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.stat[data-key="health"] .bar > i { background: #b4553c; }
.stat[data-key="mind"] .bar > i { background: #4a6d8c; }
.stat[data-key="wealth"] .bar > i { background: var(--gold); }
.stat[data-key="fame"] .bar > i { background: #8a5a86; }
.stat[data-key="mood"] .bar > i { background: var(--jade); }
.stat[data-key="bond"] .bar > i { background: #b8676b; }
.stat[data-key="courage"] .bar > i { background: #8a6a3a; }
.stat.flash .stat-val { color: var(--accent); }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

.traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 2px 0; }
.trait {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 80%, var(--ink));
  animation: pop .3s ease both;
}
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- event card ---------- */
.event-card {
  margin-top: 18px;
  padding: 20px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.age-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  letter-spacing: .06em;
}
.event-title {
  font-size: 24px;
  line-height: 1.35;
  margin: 12px 0 10px;
  overflow-wrap: anywhere;
}
.event-text { color: var(--ink-soft); font-size: 15px; white-space: pre-line; }
.choices { display: grid; gap: 9px; margin-top: 18px; }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  min-height: 56px;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.choice:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.choice:disabled { opacity: .55; cursor: not-allowed; }
.choice-label { display: block; font-size: 15px; color: var(--ink); }
.choice-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.choice.locked .choice-hint { color: var(--accent); }

.outcome { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; animation: fadeUp .3s ease both; }
.outcome-text { font-size: 15px; color: var(--ink); }
.deltas { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.delta {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.delta.up { color: var(--jade); border-color: color-mix(in srgb, var(--jade) 45%, var(--line)); }
.delta.down { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.delta.new { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.fragment {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.foot-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- ending ---------- */
.obit {
  margin-top: 22px;
  padding: 30px 22px 26px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.obit::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  pointer-events: none;
}
.obit-kicker { font-size: 11px; letter-spacing: .45em; color: var(--muted); }
.obit-title {
  font-size: clamp(27px, 8vw, 34px);
  line-height: 1.35;
  margin: 14px 0 10px;
  color: var(--ink);
}
.obit-age {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .06em;
}
.obit-line {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.9;
  font-family: var(--serif);
}

.radar-wrap { margin: 16px 0; padding: 8px 0; }
.radar-host { display: grid; place-items: center; }
.radar-host svg { width: 100%; max-width: 340px; height: auto; }

.final-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.final-stats .fin-stat:last-child { grid-column: 1 / -1; }
.fragment {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--muted);
  border-left: 2px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border-radius: 0 8px 8px 0;
}
.fragment:empty { display: none; }

.recap-card {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-2);
}
.recap-title {
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--muted);
  margin-bottom: 10px;
}
.recap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.recap-list li {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
}
.recap-list span { color: var(--muted); font-size: 11.5px; letter-spacing: .08em; }
.recap-list b {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.fin-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.fin-stat b { font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.identity-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 16px;
  padding: 15px 16px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.identity-card > div { flex: 1 1 0; min-width: 0; }
.id-split { flex: 0 0 1px !important; background: var(--line); }
.id-label { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.id-value {
  font-family: var(--serif);
  font-size: 17px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.rank-card {
  margin-top: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.rank-head { font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.rank-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--ink-soft);
  min-width: 0;
}
.rank-item b { font-family: var(--serif); font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.rank-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.end-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.end-foot { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- board ---------- */
.board-head { padding: 24px 2px 14px; }
.board-head h1 { font-size: 30px; letter-spacing: .06em; }
.board-lead { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  cursor: pointer;
  min-height: 40px;
}
.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.board-list { display: grid; gap: 8px; }
.board-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
}
.board-row.me { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.rank-no {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.board-row.top .rank-no { color: var(--accent); }
.board-name { font-size: 15px; overflow-wrap: anywhere; }
.board-name .you {
  font-size: 10.5px;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 6px;
  vertical-align: 2px;
}
.board-sub { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.board-score {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.board-score small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); }
.board-empty {
  padding: 34px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.board-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.board-actions { margin-top: 16px; }
.board-actions .btn { width: 100%; }

/* ---------- timeline sheet ---------- */
.sheet {
  width: min(560px, calc(100% - 28px));
  max-height: 82vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.sheet::backdrop { background: rgba(25, 22, 16, .5); }
.sheet-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.sheet-head h2 { font-size: 19px; }
.timeline {
  margin: 0;
  padding: 8px 18px 22px;
  list-style: none;
}
.timeline li {
  padding: 13px 0 13px 16px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-age {
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: .06em;
}
.tl-title { font-size: 14.5px; margin-top: 2px; }
.tl-choice { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.timeline .tl-empty { color: var(--muted); font-size: 13px; border: 0; padding-left: 0; }
.timeline .tl-empty::before { display: none; }

@media (max-width: 360px) {
  .stats, .final-stats, .rank-grid { grid-template-columns: minmax(0, 1fr); }
  .start-actions, .end-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 720px) {
  .app { max-width: 680px; }
  .event-card { padding: 26px 26px 24px; }
  .hero { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
