  section { padding-block: clamp(36px, 7vw, 80px); }
  .sec-h { font-size: var(--fs-3xl); font-weight: 900; margin-bottom: 24px; }

  /* hero */
  .c-hero { padding-block: clamp(32px, 7vw, 76px) 12px; }
  .c-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
  .c-hero .wrap + .wrap { display: block; }
  @media (max-width: 860px) { .c-hero .wrap { grid-template-columns: 1fr; } }
  .c-hero h1 { font-size: var(--fs-hero); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
  .c-hero h1 em { font-style: normal; color: var(--accent); }
  .c-hero .lead { margin-top: 14px; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 30em; }
  .cd-box { display: grid; gap: 12px; width: min(560px, 100%); }
  .kick { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
  .kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); animation: live 2s var(--ease-out) infinite; }
  @keyframes live { 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
  @media (max-width: 860px) { .cd-box { width: 100%; margin-top: 4px; } }
  .stats { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .stats div { padding: 18px 20px; display: grid; gap: 2px; }
  .stats div + div { border-inline-start: 1px solid var(--line); }
  .stats b { font-size: var(--fs-2xl); font-weight: 900; line-height: 1.2; }
  .stats span { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
  .stats div:last-child b { color: var(--accent); }
  @media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-inline-start: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
  .c-hero .ctas { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

  /* tracks: looping 3D carousel — drag with mouse or touch, arrows, dots, keyboard */
  .cf { --cw: min(78vw, 380px); position: relative; overflow-x: clip; height: 380px; margin-top: 6px; perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
  .cf.dragging { cursor: grabbing; }
  .cf:focus-visible .track.is-center { outline: 2px solid var(--accent); outline-offset: 4px; }
  .cf::before, .cf::after { content: ""; position: absolute; z-index: 20; top: 0; bottom: 0; width: 12vw; pointer-events: none; }
  .cf::before { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
  .cf::after { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .track { position: absolute; top: 12px; left: 50%; width: var(--cw); height: 340px; margin-left: calc(var(--cw) / -2); will-change: transform, filter;
    isolation: isolate; overflow: hidden; display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); cursor: inherit; text-align: start; font: inherit; color: inherit; transform-style: preserve-3d; }
  .track.is-center { box-shadow: var(--shadow-3); border-color: color-mix(in oklab, var(--tc) 35%, var(--line)); }
  .track:not(.is-center) * { pointer-events: none; }
  .track::before { content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--tc) 22%, transparent), transparent); z-index: -1; }
  .track .tico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tc); color: #fff; }
  .track .tico svg { width: 26px; height: 26px; }
  .track .tno { position: absolute; top: 20px; inset-inline-end: 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 700; }
  .track h3 { font-size: var(--fs-xl); line-height: 1.4; }
  .track p { color: var(--ink-2); font-size: var(--fs-md); }
  .track .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
  .track .more { position: absolute; bottom: 20px; inset-inline-end: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform 380ms var(--ease-spring); }
  .track.is-center:hover .more { transform: rotate(-45deg) scale(1.08); }
  .track .more svg { width: 18px; height: 18px; }
  .flow-ctl { display: flex; justify-content: center; gap: 10px; align-items: center; }
  .flow-ctl .dots { display: flex; gap: 6px; }
  .flow-ctl .dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: width var(--t-med) var(--ease-out), background-color var(--t-med); }
  .flow-ctl .dots button[aria-current="true"] { width: 26px; background: var(--accent); }

  /* track sheet */
  dialog.sheet { border: 0; padding: 0; width: min(720px, 100% - 24px); max-height: min(88dvh, 860px); border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
  dialog.sheet::backdrop { background: rgba(8, 11, 14, .55); backdrop-filter: blur(4px); }
  dialog.sheet[open] { animation: sheetIn 440ms var(--ease-spring); display: flex; flex-direction: column; }
  @keyframes sheetIn { from { transform: translateY(40px) scale(.97); opacity: 0; } }
  @media (max-width: 620px) { dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; } }
  .sh-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .sh-head .tico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
  .sh-head .tico svg { width: 22px; height: 22px; }
  .sh-head h3 { flex: 1; font-size: var(--fs-xl); }
  .sh-head h3:focus { outline: none; }
  .sh-body { padding: 8px 20px 20px; overflow-y: auto; display: grid; gap: 4px; }
  .blk { display: grid; gap: 10px; padding-block: 16px; border-bottom: 1px dashed var(--line); }
  .blk:last-child { border-bottom: 0; }
  .blk h4 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); font-weight: 800; letter-spacing: .02em; }
  .blk h4 svg { width: 18px; height: 18px; color: var(--accent); }
  .blk p { color: var(--ink-2); line-height: 1.95; }
  .blk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .blk li { display: grid; grid-template-columns: auto 1fr; gap: 10px; color: var(--ink-2); line-height: 1.85; }
  .blk li::before { content: ""; width: 18px; height: 18px; margin-top: 5px; border-radius: 6px; background: var(--ok-soft) center / 12px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317885A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
  .blk.bonus li::before { background-color: var(--warn-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A86A12' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
  .blk .att { display: flex; gap: 8px; flex-wrap: wrap; }
  pre.io { direction: ltr; text-align: left; margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; }
  .sh-foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }

  /* rules */
  .rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; counter-reset: r; }
  .rules li { counter-increment: r; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.9; }
  .rules li::before { content: counter(r, persian); width: 30px; height: 30px; border-radius: 10px; background: var(--slate-soft); display: grid; place-items: center; font-weight: 900; color: var(--ink); }
  .rules li.warn::before { background: var(--accent-soft); color: var(--accent); }

  /* selection: three stages */
  .stages { display: grid; grid-template-columns: 1.25fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
  @media (max-width: 960px) { .stages { grid-template-columns: 1fr; } .stages .arrow { transform: rotate(-90deg); justify-self: center; } }
  .stage { padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
  /* the prize card keeps one dark, warm look in both themes */
  .stage.win { position: relative; overflow: hidden; isolation: isolate; color: #F4F6F8; border-color: rgba(255, 255, 255, .08);
    background: radial-gradient(120% 90% at 0% 0%, rgba(198, 44, 47, .55), transparent 60%), linear-gradient(160deg, #1A2026, #0F1317); box-shadow: 0 24px 60px -28px rgba(198, 44, 47, .55); }
  .stage.win::after { content: ""; position: absolute; z-index: -1; inset: auto -20% -45% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 18px solid rgba(198, 44, 47, .22); border-left-color: transparent; border-bottom-color: transparent; }
  .stage .k { display: flex; align-items: center; gap: 10px; }
  .stage .k i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--slate-soft); font-style: normal; font-weight: 900; }
  .stage.win .k i { background: rgba(255, 255, 255, .12); color: #fff; }
  .stage h3 { font-size: var(--fs-xl); }
  .big { font-size: 2.6rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
  .big small { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin-inline-start: 6px; }
  .stage.win .big small { color: rgba(244, 246, 248, .66); }
  .arrow { align-self: center; color: var(--line-strong); }
  .arrow svg { width: 28px; height: 28px; }
  .crit { display: grid; gap: 10px; }
  .crit .c { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: var(--fs-sm); font-weight: 700; }
  .crit .c b { font-variant-numeric: tabular-nums; }
  .crit .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
  .crit .bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(270deg, var(--brand-slate), var(--accent)); transform-origin: right; }
  .stage.win .crit .bar { background: rgba(255, 255, 255, .12); }
  .stage.win .crit .bar i { background: var(--accent); }
  @media (prefers-reduced-motion: no-preference) { .crit .bar i { animation: grow 900ms var(--ease-out) both; animation-timeline: view(); animation-range: entry 10% cover 40%; } @supports not (animation-timeline: view()) { .crit .bar i { animation: none; } } }
  @keyframes grow { from { transform: scaleX(0); } }
  .defense-split { display: grid; grid-template-columns: 8fr 7fr 5fr; gap: 4px; }
  .defense-split span { height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--slate-soft); }
  .defense-split span:last-child { background: var(--accent-soft); color: var(--accent); }
  .mix { display: flex; height: 34px; border-radius: 10px; overflow: hidden; font-size: 12px; font-weight: 800; }
  .mix span { flex: 1; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #F4F6F8; }
  .mix span + span { background: #C62C2F; color: #fff; }

  /* timeline */
  .tl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
  .tl::before { content: ""; position: absolute; top: 15px; inset-inline: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
  .tl li { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; padding-inline: 6px; }
  .tl .node { width: 32px; height: 32px; border-radius: 10px; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; display: grid; place-items: center; }
  .tl li.now .node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
  .tl li.now .node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
  .tl b { font-size: var(--fs-md); }
  .tl span { font-size: var(--fs-sm); color: var(--muted); }
  @media (max-width: 760px) {
    .tl { grid-template-columns: 1fr; gap: 18px; }
    .tl::before { top: 12px; bottom: 12px; inset-inline: auto; right: 15px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); }
    .tl li { grid-template-columns: auto 1fr; justify-items: start; text-align: start; gap: 2px 14px; }
    .tl .node { grid-row: span 2; }
  }

  /* form */
  #submit .form-card { max-width: 760px; margin-inline: auto; }
  .grp { display: grid; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line-strong); }
  .grp:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .trk-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  @media (max-width: 560px) { .trk-pick { grid-template-columns: 1fr; } }
  .trk-pick label { position: relative; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); transition: border-color var(--t-med), background-color var(--t-med), transform var(--t-fast); background: var(--surface); }
  .trk-pick label:active { transform: scale(.98); }
  .trk-pick label i { width: 12px; height: 12px; border-radius: 4px; background: var(--tc); flex: none; transition: transform 360ms var(--ease-spring); }
  .trk-pick input { position: absolute; opacity: 0; }
  .trk-pick label:has(input:checked) { border-color: var(--ink); background: var(--slate-soft); }
  .trk-pick label:has(input:checked) i { transform: scale(1.5) rotate(45deg); }
  .trk-pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

  .splay { display: inline-flex; align-items: center; }
  .splay .chs { display: inline-flex; gap: 6px; margin-inline-start: 8px; }
  .splay .chs a, .splay .chs button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transform: scale(0) translateX(20px); opacity: 0; transition: transform 420ms var(--ease-spring), opacity 200ms; transition-delay: calc(var(--i) * 50ms); }
  .splay.open .chs a, .splay.open .chs button { transform: none; opacity: 1; }
  .splay .chs svg { width: 18px; height: 18px; }

/* the full text of every track: readable without script, moved into the dialog when script runs */
.track-details { display: grid; gap: 20px; margin-top: 28px; }
html.js .track-details { display: none; }
.track-details .td { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.track-details .td .sh-head .tico { color: #fff; }

/* without script the carousel is a plain list of cards */
html:not(.js) .cf { height: auto; display: grid; gap: 12px; padding-inline: max(16px, env(safe-area-inset-left, 0px)); perspective: none; overflow: visible; cursor: auto; }
html:not(.js) .cf::before, html:not(.js) .cf::after { content: none; }
html:not(.js) .track { position: static; width: auto; height: auto; margin: 0; }
html:not(.js) .flow-ctl, html:not(.js) .track .more { display: none; }
