/* CycleTron microsite: the app's V3 "Night Ride" tokens, fonts and components. */
@font-face { font-family: EncodeBlack; src: url(/assets/rooms/ride/EncodeSansExpanded-Black.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: EncodeXB; src: url(/assets/rooms/ride/EncodeSansExpanded-ExtraBold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: EncodeBold; src: url(/assets/rooms/ride/EncodeSansExpanded-Bold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/rooms/ride/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/rooms/ride/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root,
.ct-sim[data-appearance="dark"] {
  --bg: #06080b;
  --surface: #0e1318;
  --raised: #161d24;
  --border: #1c252e;
  --accent: #2e5bff;
  --accent-text: #8fb0ff;
  --selected: #0f1a41;
  --text: #f4f7fa;
  --muted: #9aa7b4;
  --volt: #d7ff3a;
  --volt-text: #d7ff3a;
  --track: #26313c;
  --stop-fill: #c8352c;
  --stop-text: #ffb3ac;
  --stop-mark: #ff5a4e;
  --tint: rgba(244, 247, 250, 0.08);
  --glass: rgba(14, 19, 24, 0.72);
  --z1: #5aa9e6;
  --z2: #3cc8a0;
  --z3: #f2c14e;
  --z4: #ff8a4c;
  --z5: #ff4d6d;
  --z6: #b36bff;
  --page: min(1120px, 100% - 32px);
  color-scheme: dark;
}
.ct-sim[data-appearance="light"] {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --raised: #eceae3;
  --border: #dcdad2;
  --accent: #2446e0;
  --accent-text: #2446e0;
  --selected: #e4eafd;
  --text: #0e1318;
  --muted: #4e5b66;
  --volt-text: #4f6300;
  --track: #dcdad2;
  --stop-fill: #b3261e;
  --stop-text: #b3261e;
  --stop-mark: #b3261e;
  --tint: rgba(14, 19, 24, 0.06);
  --glass: rgba(255, 255, 255, 0.8);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 Inter, system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--volt); color: #06080b; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: EncodeXB, system-ui, sans-serif; font-weight: 800; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); }
h1 em, h2 em { font-style: normal; color: var(--volt); }

/* The mark is the app's own symbol, tinted like the app's brand row. */
.ct-mark {
  display: inline-block;
  width: 26px;
  aspect-ratio: 1;
  flex: none;
  background: var(--accent-text);
  -webkit-mask: url(/assets/rooms/ride/mark.webp) center / contain no-repeat;
  mask: url(/assets/rooms/ride/mark.webp) center / contain no-repeat;
}
.ct-mark.lg { width: 96px; margin: 0 auto 18px; display: block; }

/* ---------- Header ---------- */
.ct-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(16px, (100% - 1120px) / 2);
  background: rgba(6, 8, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.ct-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 13px/1 Inter, sans-serif; letter-spacing: 0.24em; }
.ct-head nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.ct-head nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.ct-head nav a:hover { color: var(--text); }
.ct-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: 600 13px/1.2 Inter, sans-serif;
  color: var(--text);
  white-space: nowrap;
}
.ct-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
.ct-soon.lg { min-height: 48px; padding: 0 20px; font-size: 15px; }

/* ---------- Shared bits ---------- */
.ct-kicker { font: 600 12px/1.4 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px; }
.ct-dev { color: #06080b; background: var(--volt); border-radius: 6px; padding: 2px 8px; margin-right: 8px; letter-spacing: 0.08em; }
.ct-head-block { max-width: 720px; margin-bottom: 28px; }
.ct-head-block > p:last-child { color: var(--muted); margin: 0; }
section { position: relative; }
.ct-sim, .ct-fields, .ct-zones, .ct-watchsec, .ct-rides, .ct-shots, .ct-final { padding: 88px max(16px, (100% - 1120px) / 2); }
.ct-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: 600 16px/1 Inter, sans-serif;
}
.ct-btn:hover { filter: brightness(1.1); }
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); border: 1px solid var(--border); font-size: 14px; }
.seg span { padding: 0 10px 0 8px; color: var(--muted); }
.seg button { border: 0; background: none; padding: 8px 14px; min-height: 36px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.ct-chips li { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; }
.lbl, .tiles small, .w-pg > small:first-child { font: 600 10px/1.2 Inter, sans-serif; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- Phone (rendered from the app's components) ---------- */
.ct-phone {
  width: 300px;
  height: 640px;
  flex: none;
  padding: 10px;
  border-radius: 50px;
  background: #000;
  box-shadow: 0 0 0 2px #232a33, 0 40px 80px -30px rgba(46, 91, 255, 0.45);
}
.ct-screen {
  position: relative;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.hp-home, .hp-live, .v-home, .v-live, .v-finish, .v-saved { height: 100%; padding: 36px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.hp-top { display: flex; align-items: center; gap: 8px; }
.hp-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font: 600 10px/1 Inter, sans-serif; letter-spacing: 0.2em; }
.hp-brand .ct-mark { width: 22px; }
.hp-glass { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.hp-title, .v-h { font: 800 26px/1.1 EncodeXB, sans-serif; margin: 4px 0 0; }
.hp-card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 14px 14px 18px; border-radius: 28px; background: var(--tint); border: 1px solid var(--border); }
.ct-pills { display: flex; width: 100%; padding: 3px; border-radius: 999px; background: var(--tint); border: 1px solid var(--border); }
.ct-pills button { flex: 1; border: 0; background: none; min-height: 34px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; }
.ct-pills button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.ct-start {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 17px/1 Inter, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: grid;
  place-content: center;
  gap: 6px;
  margin: 14px 0;
  box-shadow: 0 0 0 6px rgba(46, 91, 255, 0.22), 0 0 0 9px rgba(143, 176, 255, 0.5), 0 0 40px 8px rgba(46, 91, 255, 0.35);
}
.ct-start i { font-style: normal; font-size: 30px; line-height: 1; }
.ct-start::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(143, 176, 255, 0.45);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.07); opacity: 0.35; } }
.ct-start:active { transform: scale(0.97); }
.hp-ready { margin: 0; text-align: center; color: var(--muted); font-size: 12px; }
.hp-ready.small { font-size: 11px; }
.hp-week { margin-top: auto; padding: 14px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.hp-week small { display: block; font: 600 10px/1 Inter, sans-serif; letter-spacing: 0.14em; margin-bottom: 6px; }
.hp-week b { font: 900 34px/1 EncodeBlack, sans-serif; color: var(--text); }
.rec { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); font: 600 11px/1 Inter, sans-serif; letter-spacing: 0.12em; color: var(--stop-text); }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--stop-mark); }
.rec b { font: 700 17px/1 EncodeBold, sans-serif; letter-spacing: 0; color: var(--text); }
.rec.paused { color: var(--muted); }
.rec.paused i { background: var(--muted); }
.hp-speed, .speed-big { margin: 0; display: flex; flex-direction: column; }
.hp-speed b, .speed-big b { font: 900 76px/0.95 EncodeBlack, sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hp-speed span, .speed-big span { color: var(--muted); font-size: 13px; }
.zbar { display: flex; gap: 4px; align-items: center; }
.zbar i { flex: 1; height: 6px; border-radius: 3px; opacity: 0.35; transition: height 0.2s, opacity 0.2s; }
.zbar i:nth-child(1) { background: var(--z1); }
.zbar i:nth-child(2) { background: var(--z2); }
.zbar i:nth-child(3) { background: var(--z3); }
.zbar i:nth-child(4) { background: var(--z4); }
.zbar i:nth-child(5) { background: var(--z5); }
.zbar i:nth-child(6) { background: var(--z6); }
.zbar i.on { opacity: 1; height: 12px; box-shadow: 0 0 12px currentColor; }
.hp-zone { margin: 0; font-size: 12px; color: var(--muted); }
.hp-tiles, .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hp-tiles span, .tiles span { padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 11px; min-width: 0; }
.hp-tiles small, .tiles small { display: block; margin-bottom: 4px; }
.hp-tiles b, .tiles b { font: 700 20px/1.1 EncodeBold, sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.tiles em { font-style: normal; }
.ct-finish { margin-top: auto; align-self: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--stop-mark); background: rgba(200, 53, 44, 0.18); color: var(--stop-text); font-weight: 600; }

/* ---------- Hero ---------- */
.ct-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  min-height: min(760px, 100vh - 64px);
  padding: 56px max(16px, (100% - 1120px) / 2) 72px;
  overflow: hidden;
  background: radial-gradient(1000px 600px at 75% 40%, rgba(46, 91, 255, 0.22), transparent 70%), var(--bg);
}
.ct-loop { position: absolute; top: 0; right: max(-80px, (100% - 1400px) / 2); width: min(980px, 72%); height: 100%; pointer-events: none; }
.ct-loop path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ct-loop-glow { stroke: rgba(46, 91, 255, 0.35); stroke-width: 18; filter: blur(8px); }
.ct-loop-line { stroke: #2e5bff; stroke-width: 3; opacity: 0.55; stroke-dasharray: 3200; animation: draw 6s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 3200; } }
.ct-loop-dot { fill: var(--volt); stroke: #06080b; stroke-width: 3; }
.ct-hero-copy { position: relative; max-width: 560px; }
.ct-hero h1 { font-family: EncodeBlack, sans-serif; font-weight: 900; font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.03em; }
.ct-hero-copy > p:not(.ct-kicker) { color: var(--muted); font-size: 19px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 14px; }
.ct-hint { font-size: 14px !important; }
.ct-hero-phone { position: relative; }

/* ---------- Numbers ---------- */
.ct-numbers { border-block: 1px solid var(--border); background: var(--surface); }
.ct-numbers dl { display: grid; grid-template-columns: repeat(5, 1fr); width: var(--page); margin: 0 auto; padding: 26px 0; }
.ct-numbers div { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; }
.ct-numbers dd { margin: 0; font: 900 clamp(32px, 4vw, 46px)/1 EncodeBlack, sans-serif; color: var(--volt); }
.ct-numbers dt { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Simulator (re-themed by Appearance) ---------- */
.ct-sim { background: var(--bg); color: var(--text); transition: background 0.3s, color 0.3s; }
.ct-sim .ct-head-block > p:last-child { color: var(--muted); }
.ct-sim[data-appearance="light"] :focus-visible { outline-color: var(--accent); }
.ct-sim[data-appearance="light"] .ct-phone { box-shadow: 0 0 0 2px #c9c7bf, 0 40px 80px -30px rgba(36, 70, 224, 0.35); }
.ct-sim[data-appearance="light"] .ct-watch { box-shadow: 0 0 0 2px #c9c7bf; }
.sim-settings { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.sim-stage { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 40px; align-items: start; }
.v-home { justify-content: center; }
.v-home .hp-title { text-align: center; }
.v-live { padding: 34px 14px 12px; gap: 10px; }
.live-top { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 6px; }
.dots button, .w-dots button { width: 22px; height: 22px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
.dots button::before, .w-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--muted); opacity: 0.6; transition: width 0.2s; }
.dots button[aria-selected="true"]::before, .w-dots button[aria-selected="true"]::before { width: 18px; background: var(--text); opacity: 1; }
.pg-ride, .pg-data { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 9px; scrollbar-width: none; }
.speed-big b { font-size: 70px; }
.meter p { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; margin: 0 0 4px; font-size: 11px; color: var(--muted); }
.meter p b { margin-left: auto; font: 700 15px/1 EncodeBold, sans-serif; color: var(--text); }
.trail { width: 100%; height: auto; flex: none; border-radius: 18px; background: var(--raised); border: 1px solid var(--border); }
.trail-line { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.trail-dot { fill: var(--volt); stroke: #06080b; stroke-width: 2.5; }
.cap { margin: -4px 0 0; font-size: 10px; color: var(--muted); }
.data-title { margin: 0; font: 800 22px/1.1 EncodeXB, sans-serif; }
.tiles.twelve b { font-size: 18px; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.controls button { border-radius: 999px; font-weight: 600; font-size: 12px; }
.c-lap, .c-finish { width: 58px; height: 58px; border: 1.5px solid var(--muted); background: var(--surface); display: grid; place-content: center; gap: 2px; padding: 0; }
.c-lap i, .c-finish i { font-style: normal; font-size: 18px; line-height: 1; }
.c-finish { border: 2px solid var(--stop-mark); background: rgba(200, 53, 44, 0.16); color: var(--stop-text); }
.c-pause { flex: 1; height: 54px; border: 0; background: var(--text); color: var(--bg); font-size: 16px !important; letter-spacing: 0.04em; }
.v-finish { justify-content: center; }
.v-note { margin: 0; color: var(--muted); font-size: 12px; }
.b-save, .b-plain { width: 100%; min-height: 46px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.b-save { border: 0; background: var(--accent); color: #fff; }
.b-plain { border: 1px solid var(--border); background: var(--surface); }
.v-finish button:disabled { opacity: 0.6; cursor: default; }
.v-saved { overflow: auto; gap: 10px; scrollbar-width: thin; }
.saved-k { margin: 0; font: 600 10px/1 Inter, sans-serif; letter-spacing: 0.14em; color: var(--volt-text); }
.laps-h { margin: 4px 0 0; font-weight: 600; }
.laps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; }
.laps li { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }

.sim-side { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 24px; }
.sim-panel { padding-top: 24px; min-width: 0; }
.sim-steps { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.sim-steps b { color: var(--text); }
.ct-watch { width: 210px; height: 254px; padding: 9px; border-radius: 58px; background: #000; box-shadow: 0 0 0 2px #232a33, 0 30px 60px -30px rgba(46, 91, 255, 0.5); }
.w-screen { position: relative; height: 100%; border-radius: 48px; overflow: hidden; background: var(--bg); padding: 16px 18px 28px; display: flex; flex-direction: column; font-size: 11px; }
.w-top { display: flex; justify-content: space-between; margin: 0 0 4px; font-weight: 600; }
.w-rec { color: var(--stop-text); }
.w-idle { margin: auto 0; text-align: center; color: var(--muted); }
.w-idle p { margin: 0 0 4px; color: var(--text); font-weight: 600; }
.w-pg { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.w-big { margin: 0; font: 900 44px/1 EncodeBlack, sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.w-pg > small { color: var(--muted); }
.w-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.w-pair b { font: 700 15px/1.1 EncodeBold, sans-serif; }
.w-pair em { font-style: normal; }
.w-pair small { display: block; color: var(--muted); }
.w-chip { margin: 6px 0 0; padding: 6px 8px; border-radius: 10px; background: var(--surface); border-left: 4px solid var(--zc, var(--muted)); font-weight: 600; font-size: 13px; }
.w-screen[data-hrz="1"] [data-w="hrz"], .w-screen[data-pwz="1"] [data-w="pwz"] { --zc: var(--z1); }
.w-screen[data-hrz="2"] [data-w="hrz"], .w-screen[data-pwz="2"] [data-w="pwz"] { --zc: var(--z2); }
.w-screen[data-hrz="3"] [data-w="hrz"], .w-screen[data-pwz="3"] [data-w="pwz"] { --zc: var(--z3); }
.w-screen[data-hrz="4"] [data-w="hrz"], .w-screen[data-pwz="4"] [data-w="pwz"] { --zc: var(--z4); }
.w-screen[data-hrz="5"] [data-w="hrz"], .w-screen[data-pwz="5"] [data-w="pwz"] { --zc: var(--z5); }
.w-screen[data-pwz="6"] [data-w="pwz"] { --zc: var(--z6); }
.w-b { width: 100%; min-height: 34px; margin-top: 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13px; }
.w-b.blue { border: 0; background: var(--accent); color: #fff; }
.w-b.red { border: 2px solid var(--stop-mark); background: rgba(200, 53, 44, 0.16); color: var(--stop-text); }
.w-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; }
.w-dots button { width: 20px; height: 20px; }
.w-dots button::before { width: 5px; height: 5px; }
.w-dots button[aria-selected="true"]::before { width: 5px; background: var(--text); }
.w-note { margin: 0; max-width: 230px; color: var(--muted); font-size: 13px; text-align: center; }
.sim-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; width: 100%; max-width: 420px; }
.sim-log li { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.sim-log li:first-child { border-color: var(--accent); }
.sim-transport { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 28px; font-size: 14px; color: var(--muted); }
.sim-transport input { width: 100%; accent-color: var(--accent); min-height: 32px; }
.sim-transport output { font-variant-numeric: tabular-nums; color: var(--text); }
.sim-fine { margin: 16px 0 0; max-width: 820px; font-size: 13px; color: var(--muted); }

/* ---------- Fields ---------- */
.ct-fields .seg { margin-bottom: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.field-grid button { text-align: left; padding: 16px; min-height: 84px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: opacity 0.2s, border-color 0.2s; }
.field-grid small { font: 600 11px/1.2 Inter, sans-serif; letter-spacing: 0.14em; color: var(--muted); }
.field-grid b { font: 700 24px/1 EncodeBold, sans-serif; font-variant-numeric: tabular-nums; }
.field-grid em { font-style: normal; color: var(--muted); font-size: 13px; }
.field-grid button[aria-pressed="true"] { border-color: var(--accent); background: var(--selected); }
.field-grid button.off { opacity: 0.38; }
.field-note { margin: 18px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--tint); border: 1px solid var(--border); max-width: 760px; }

/* ---------- Zones ---------- */
.ct-zones { background: var(--surface); }
.zone-tool { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 16px 24px; align-items: center; }
.age { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.age input { width: 180px; accent-color: var(--accent); }
.age output { font: 700 20px/1 EncodeBold, sans-serif; min-width: 2ch; }
.zone-tool .seg { justify-self: start; }
.zone-max { margin: 0; color: var(--muted); }
.zone-max b { color: var(--text); font: 700 20px/1 EncodeBold, sans-serif; }
.zone-list { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding: 0; margin: 8px 0 0; list-style: none; }
.zone-list li { padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); border-top: 6px solid var(--zc); display: flex; flex-direction: column; gap: 4px; }
.zone-list li[data-z="1"] { --zc: var(--z1); }
.zone-list li[data-z="2"] { --zc: var(--z2); }
.zone-list li[data-z="3"] { --zc: var(--z3); }
.zone-list li[data-z="4"] { --zc: var(--z4); }
.zone-list li[data-z="5"] { --zc: var(--z5); }
.zone-list span { font: 700 22px/1.1 EncodeBold, sans-serif; }
.zone-list small { color: var(--muted); }

/* ---------- Watch ---------- */
.watch-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.watch-row figure { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.watch-row img { width: 100%; border-radius: 34px; border: 10px solid #000; box-shadow: 0 0 0 2px #232a33; margin-bottom: 10px; }

/* ---------- Your rides ---------- */
.data-card { list-style: none; padding: 0; margin: 0; max-width: 620px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.data-card li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 18px; border-top: 1px solid var(--border); }
.data-card li:first-child { border-top: 0; }
.data-card span { color: var(--muted); font-size: 15px; }

/* ---------- Screenshots ---------- */
.ct-shots { background: var(--surface); }
.shot-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.shot-strip figure { flex: 0 0 min(260px, 70vw); margin: 0; scroll-snap-align: start; }
.shot-strip img { border-radius: 22px; border: 1px solid var(--border); }

/* ---------- Final ---------- */
.ct-final { text-align: center; }
.ct-final > p { color: var(--muted); }
.ct-final .ct-chips { justify-content: center; margin: 22px 0; }
.ct-actions.center { justify-content: center; }
.ct-legal { font-size: 14px; }
.ct-legal a { color: var(--accent-text); }

.made-by { background: #000; text-align: center; padding: 18px 16px; font-size: 14px; border-top: 1px solid var(--border); }
.made-by a { color: var(--muted); text-decoration: none; }
.made-by a:hover b { color: var(--volt); }

/* Scroll reveal (added by ride.js only when motion is allowed). */
.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.will-reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .ct-hero { grid-template-columns: 1fr; justify-items: center; gap: 36px; padding-top: 40px; }
  .ct-hero-copy { text-align: left; }
  .ct-loop { top: auto; bottom: 0; right: 0; width: 100%; height: 62%; }
  .sim-stage { grid-template-columns: 1fr; justify-items: center; }
  .sim-side, .sim-panel { padding-top: 0; }
  .sim-panel { width: 100%; max-width: 420px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-tool { grid-template-columns: 1fr; }
  .zone-list { grid-auto-flow: row; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  .sim-phone { height: clamp(540px, 100svh - 128px, 640px); }
  .ct-head { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px 0; }
  .ct-head .ct-soon { margin-left: auto; padding: 6px 12px; font-size: 12px; }
  .ct-head nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 20px; padding-bottom: 6px; scrollbar-width: none; }
  .ct-numbers dl { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .ct-sim, .ct-fields, .ct-zones, .ct-watchsec, .ct-rides, .ct-shots, .ct-final { padding-block: 64px; }
  .sim-transport { grid-template-columns: 1fr auto; }
  .sim-transport label { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .ct-phone { transform: scale(0.92); transform-origin: top center; margin-bottom: -50px; }
}
