:root {
  --lime: #c6ff2b;
  --lime-dark: #9fdb00;
  --ink: #0d1015;
  --ink-2: #161a21;
  --panel: rgba(22, 26, 33, 0.72);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f4f6f0;
  --text-dim: #a9b0ba;
  --danger: #ff5d5d;
  --cold: #6fc7ff;
  --warm: #ff9d4d;
  --radius: 20px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Sora", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  position: relative;
}

/* ---------- Animated sky background ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #2b6ea8 0%, #6fb3d9 35%, #cfe8ea 65%, #eef4ea 100%);
  transition: background 1.2s ease;
  overflow: hidden;
}
.sky.dawn { background: linear-gradient(180deg, #2a2f6b 0%, #a4568c 40%, #f2966a 70%, #ffd39a 100%); }
.sky.day  { background: linear-gradient(180deg, #1f7ac9 0%, #57a9e8 40%, #a9d8ef 75%, #eef6ea 100%); }
.sky.dusk { background: linear-gradient(180deg, #1c1440 0%, #7a3d6f 35%, #d8674f 70%, #f7ab5b 100%); }
.sky.night{ background: linear-gradient(180deg, #05060f 0%, #0a1024 40%, #131b34 75%, #1b2440 100%); }

.sun-moon {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  top: 12%;
  left: 15%;
  background: radial-gradient(circle at 35% 35%, #fff6c9, #ffdd66 60%, #ffc233 100%);
  box-shadow: 0 0 60px 20px rgba(255, 221, 102, 0.45);
  transition: left 1.2s ease, top 1.2s ease, background 1.2s ease, box-shadow 1.2s ease, opacity 1s ease;
}
.sky.night .sun-moon {
  background: radial-gradient(circle at 35% 35%, #f4f6ff, #cfd6ee 60%, #aab4d6 100%);
  box-shadow: 0 0 40px 10px rgba(180, 190, 230, 0.35);
  left: 72%;
  top: 10%;
}
.sky.dusk .sun-moon, .sky.dawn .sun-moon { top: 55%; box-shadow: 0 0 70px 25px rgba(255, 150, 90, 0.4); }

.stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.sky.night .stars { opacity: 1; }
.stars::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 15%, #fff, transparent),
    radial-gradient(1px 1px at 50% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 65% 22%, #fff, transparent),
    radial-gradient(1px 1px at 80% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 30%, #fff, transparent),
    radial-gradient(1px 1px at 20% 35%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 40%, #fff, transparent);
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }

.clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  filter: blur(1px);
  opacity: 0.85;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud.c1 { width: 120px; height: 40px; top: 18%; left: -20%; animation: drift 38s linear infinite; }
.cloud.c1::before { width: 60px; height: 60px; top: -30px; left: 15px; }
.cloud.c1::after { width: 50px; height: 50px; top: -20px; left: 60px; }
.cloud.c2 { width: 90px; height: 30px; top: 30%; left: -30%; animation: drift 52s linear infinite; animation-delay: -10s; }
.cloud.c2::before { width: 45px; height: 45px; top: -22px; left: 10px; }
.cloud.c2::after { width: 38px; height: 38px; top: -16px; left: 45px; }
.cloud.c3 { width: 150px; height: 45px; top: 10%; left: -40%; animation: drift 65s linear infinite; animation-delay: -25s; }
.cloud.c3::before { width: 70px; height: 70px; top: -35px; left: 20px; }
.cloud.c3::after { width: 55px; height: 55px; top: -22px; left: 80px; }
@keyframes drift { to { transform: translateX(160vw); } }
.sky.night .cloud { opacity: 0.25; }

.rain { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.rain.active { opacity: 1; }
.rain::before {
  content: "";
  position: absolute; inset: -20% -10%;
  background-image: repeating-linear-gradient(115deg, rgba(200,225,255,0.55) 0 2px, transparent 2px 22px);
  animation: rainfall 0.5s linear infinite;
}
@keyframes rainfall { from { transform: translateY(-10%);} to { transform: translateY(10%);} }

.wind-lines { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.wind-lines.active { opacity: 0.5; }
.wind-lines::before, .wind-lines::after {
  content: "";
  position: absolute;
  left: -30%;
  width: 60%;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: windblow 2.4s linear infinite;
}
.wind-lines::before { top: 25%; animation-duration: 2.1s; }
.wind-lines::after { top: 60%; animation-duration: 2.8s; animation-delay: -1s; }
@keyframes windblow { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateX(160vw); opacity: 0; } }

.road {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, #2b2f36, #14161a);
  z-index: 1;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}
.road-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 6px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, var(--lime) 0 40px, transparent 40px 80px);
  animation: roadmove 1.4s linear infinite;
  opacity: 0.9;
}
@keyframes roadmove { from { background-position: 0 0; } to { background-position: -80px 0; } }

/* ---------- App shell ---------- */
.app {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 5vw, 48px) 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.brand-dot {
  width: 10px; height: 10px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 12px 2px var(--lime);
  flex-shrink: 0;
}
.brand .slash { color: var(--lime); }
.brand .of { font-size: 0.7em; opacity: 0.7; font-family: var(--font-body); font-weight: 500; }
.brand .bang { color: var(--lime); }

.progress {
  display: flex;
  gap: 6px;
}
.progress span {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  transition: background .3s ease, width .3s ease;
}
.progress span.done { background: var(--lime); }
.progress span.current { background: #fff; width: 32px; }

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(16px, 5vw, 48px);
  position: relative;
}

.screen {
  width: 100%;
  max-width: 640px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: screenIn .5s cubic-bezier(.2,.8,.2,1);
}
.screen.active { display: flex; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Hero / welcome ---------- */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 11vw, 96px);
  line-height: 0.92;
  margin: 0;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0,0,0,0.35);
}
.hero-title .line { display: block; }
.hero-title .line.small {
  font-size: 0.35em;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 4px 0;
}
.hero-title .slash { color: var(--lime); }
.hero-title .bang { color: var(--lime); }
.hero-sub {
  max-width: 480px;
  color: rgba(255,255,255,0.85);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
}

.cyclist-stage { width: 100%; max-width: 420px; height: 130px; position: relative; }
.cyclist { width: 100%; height: 100%; overflow: visible; }
.cyclist .tire { fill: none; stroke: #1a1d22; stroke-width: 6; }
.cyclist .hub { fill: var(--lime); }
.cyclist .spokes line { stroke: #2c3038; stroke-width: 2; }
.cyclist .wheel { transform-box: fill-box; transform-origin: center; }
.cyclist .wheel-back { animation: wheelspin-back 0.9s linear infinite; }
.cyclist .wheel-front { animation: wheelspin-front 0.9s linear infinite; }
@keyframes wheelspin-back { from { transform: translate(46px, 84px) rotate(0); } to { transform: translate(46px, 84px) rotate(360deg); } }
@keyframes wheelspin-front { from { transform: translate(166px, 84px) rotate(0); } to { transform: translate(166px, 84px) rotate(360deg); } }
.cyclist .frame, .cyclist .fork, .cyclist .seatpost, .cyclist .saddle, .cyclist .handlebar {
  fill: none; stroke: var(--lime); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
}
.cyclist .rider .head { fill: #f4f6f0; }
.cyclist .rider .body, .cyclist .rider .arm { stroke: #f4f6f0; stroke-width: 4; fill: none; stroke-linecap: round; }
.cyclist .leg-upper, .cyclist .leg-lower { stroke: #f4f6f0; stroke-width: 4; fill: none; stroke-linecap: round; }
.cyclist .leg-back { transform-box: fill-box; transform-origin: 86px 46px; animation: pedalback 0.9s linear infinite; }
.cyclist .leg-front { transform-box: fill-box; transform-origin: 86px 46px; animation: pedalfront 0.9s linear infinite; }
.cyclist .shadow { fill: rgba(0,0,0,0.28); filter: blur(2px); }
@keyframes wheelspin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes pedalback { 0% { transform: rotate(0deg) translateY(0);} 50% { transform: rotate(8deg) translateY(2px);} 100% { transform: rotate(0deg) translateY(0);} }
@keyframes pedalfront { 0% { transform: rotate(0deg) translateY(2px);} 50% { transform: rotate(-8deg) translateY(0);} 100% { transform: rotate(0deg) translateY(2px);} }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: var(--lime);
  color: #0d1015;
  box-shadow: 0 8px 24px rgba(198, 255, 43, 0.35);
}
.btn-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(198, 255, 43, 0.45); }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-arrow { transition: transform .2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-text {
  background: transparent;
  color: var(--text-dim);
  padding: 10px 8px;
}
.btn-text:hover { color: #fff; }
.btn-cta { font-size: 17px; }

/* ---------- Cards ---------- */
.card.step-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.step-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
}
.step-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  color: #fff;
}
.step-hint { margin: -8px 0 0; color: var(--text-dim); font-size: 14px; }

.step-nav {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* location */
.input-wrap { position: relative; }
#locationInput {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 17px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
#locationInput:focus { border-color: var(--lime); background: rgba(255,255,255,0.1); }
#locationInput::placeholder { color: rgba(255,255,255,0.4); }

.suggestions {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #1a1e26;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  z-index: 5;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.suggestions:empty { display: none; }
.suggestions li {
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.suggestions li span.muted { color: var(--text-dim); font-size: 13px; }
.suggestions li:hover { background: rgba(198,255,43,0.14); }

.selected-location {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(198,255,43,0.1);
  border: 1px solid rgba(198,255,43,0.3);
  color: var(--lime);
  font-weight: 600;
}
.selected-location.show { display: flex; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* route (gpx) upload */
.route-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 2px dashed rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.route-drop:hover { border-color: rgba(198,255,43,0.4); background: rgba(255,255,255,0.07); }
.route-drop.dragover { border-color: var(--lime); background: rgba(198,255,43,0.1); }
.route-drop.loading { opacity: 0.6; pointer-events: none; }
.route-drop-icon { font-size: 28px; flex-shrink: 0; }
.route-drop-text { font-size: 13.5px; color: var(--text-dim); line-height: 1.4; }
.route-drop-text strong { color: #fff; font-size: 14.5px; }

.route-summary {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(198,255,43,0.08);
  border: 1px solid rgba(198,255,43,0.25);
}
.route-summary.show { display: flex; }
.route-summary.error { background: rgba(255,157,77,0.12); border-color: rgba(255,157,77,0.3); }
.route-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route-summary-name { font-weight: 700; color: #fff; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.route-remove {
  background: transparent; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 13px; padding: 4px 8px; border-radius: 8px;
}
.route-remove:hover { color: #fff; background: rgba(255,255,255,0.08); }
.route-summary-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.route-summary-stat { display: flex; flex-direction: column; }
.route-summary-stat b { font-family: var(--font-display); font-size: 24px; color: var(--lime); line-height: 1; }
.route-summary-stat span { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

.route-duration-hint {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(198,255,43,0.1);
  border: 1px solid rgba(198,255,43,0.25);
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
}
.route-duration-hint.show { display: flex; }

/* segmented control */
.segmented {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
}
.seg {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s ease;
}
.seg.active { background: var(--lime); color: #0d1015; }

#durationModeSegment { flex-wrap: wrap; width: 100%; }
#durationModeSegment .seg { flex: 1 1 auto; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 480px) {
  #durationModeSegment .seg { padding: 8px 10px; font-size: 12.5px; }
}

/* time / duration pickers */
.time-picker, .duration-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.time-readout, .duration-readout {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.duration-readout .readout-unit {
  font-size: 0.4em;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.duration-mode-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.duration-mode-panel[hidden] { display: none; }

.computed-hint {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(198,255,43,0.1);
  border: 1px solid rgba(198,255,43,0.25);
  color: var(--lime);
  font-size: 13.5px;
  font-weight: 600;
}
.computed-hint:empty { display: none; }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--lime) var(--fill, 50%), rgba(255,255,255,0.15) 0);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--lime);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--lime);
  cursor: pointer;
}
.time-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
}

/* option grids (training type) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.option-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--text);
}
.option-card:hover { border-color: rgba(198,255,43,0.4); transform: translateY(-2px); }
.option-card.selected { border-color: var(--lime); background: rgba(198,255,43,0.12); box-shadow: 0 0 0 1px var(--lime) inset; }
.opt-icon { font-size: 28px; }
.opt-title { font-weight: 700; font-size: 14.5px; text-align: center; }
.opt-desc { font-size: 11.5px; color: var(--text-dim); text-align: center; line-height: 1.3; }

/* intensity */
.intensity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intensity-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--text);
}
.intensity-card:hover { border-color: rgba(198,255,43,0.4); transform: translateY(-2px); }
.intensity-card.selected { border-color: var(--lime); background: rgba(198,255,43,0.12); }
.int-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.12); border-radius: 6px; overflow: hidden; }
.int-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), #ffd23f); border-radius: 6px; }

/* ---------- Loading ---------- */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 0;
}
.wheel-spinner { width: 110px; height: 110px; }
.spin-tire { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 6; }
.spin-spokes { transform-box: fill-box; transform-origin: center; animation: wheelspin 0.7s linear infinite; }
.spin-spokes line { stroke: var(--lime); stroke-width: 4; stroke-linecap: round; }
.spin-hub { fill: var(--lime); }
#loadingText { color: #fff; font-weight: 600; font-size: 16px; }

/* ---------- Result ---------- */
.result-wrap { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; }

.result-hero {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.result-hero-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
}
.result-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 9vw, 68px);
  color: #fff;
  margin: 6px 0;
  animation: popIn .6s cubic-bezier(.2,.9,.3,1.2);
}
.result-hero-title .slash { color: var(--lime); }
.result-hero-sub { color: rgba(255,255,255,0.85); font-size: 15px; }
@keyframes popIn { from { opacity: 0; transform: scale(.6) rotate(-4deg);} to { opacity: 1; transform: scale(1) rotate(0);} }

.weather-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
}
.weather-icon { font-size: 34px; }
.weather-main { font-weight: 700; font-size: 20px; color: #fff; }
.weather-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }
.weather-meta span { white-space: nowrap; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } .option-grid, .intensity-grid { grid-template-columns: repeat(2, 1fr); } }

.result-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-card.full { grid-column: 1 / -1; }
.rc-head { display: flex; align-items: center; gap: 10px; }
.rc-icon { font-size: 22px; }
.rc-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.rc-big { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--lime); line-height: 1; }
.rc-big .rc-unit { font-size: 0.4em; font-weight: 700; color: var(--text-dim); font-family: var(--font-body); }
.rc-caption { color: var(--text-dim); font-size: 13px; }

.burn-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.burn-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff9d4d, #ffd23f, var(--lime));
  animation: burnfill 1s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes burnfill { from { width: 0; } to { width: var(--burn-fill); } }

.snack-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.snack {
  width: 22px;
  height: 30px;
  border-radius: 3px 3px 10px 10px;
  border: 2px solid var(--lime);
  background: linear-gradient(180deg, #ffd23f, #ff9d4d);
  position: relative;
  transform: scale(0);
  animation: snackpop .45s cubic-bezier(.3,1.6,.4,1) forwards;
}
.snack::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 8px;
  background: var(--lime);
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%) rotate(-4deg);
}
@keyframes snackpop { from { transform: scale(0) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.snack-more {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
}

.kit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  font-size: 14.5px;
}
.kit-list li .kit-icon { font-size: 18px; width: 22px; text-align: center; }
.kit-list li.warn { background: rgba(255,157,77,0.12); color: #ffcb9e; }

.bidon-row { display: flex; gap: 8px; align-items: flex-end; }
.bidon {
  width: 26px;
  height: 46px;
  border-radius: 6px 6px 10px 10px;
  border: 2px solid var(--lime);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.bidon::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80%;
  background: linear-gradient(180deg, #7fd8ff, #2b9de0);
  animation: fillup .9s ease forwards;
  transform-origin: bottom;
}
@keyframes fillup { from { transform: scaleY(0);} to { transform: scaleY(1);} }
.bidon-neck { width: 10px; height: 8px; background: var(--lime); margin: 0 auto; border-radius: 3px 3px 0 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(198,255,43,0.12);
  border: 1px solid rgba(198,255,43,0.3);
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
}

.route-stats-row { display: flex; gap: 28px; flex-wrap: wrap; }
.route-stat { display: flex; flex-direction: column; }
.route-stat-big { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--lime); line-height: 1; }
.route-stat-label { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

.elev-chart-wrap {
  width: 100%;
  height: 90px;
  transform-origin: bottom;
  animation: chartgrow .8s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes chartgrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.elev-chart { width: 100%; height: 100%; display: block; }
.elev-area { fill: rgba(198,255,43,0.18); }
.elev-line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }

.notes-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.notes-list li {
  display: flex; gap: 8px; align-items: flex-start;
  color: #ffd9b3; font-size: 13.5px; line-height: 1.4;
  background: rgba(30, 22, 14, 0.82);
  border: 1px solid rgba(255,157,77,0.3);
  backdrop-filter: blur(16px);
  padding: 10px 12px; border-radius: 10px;
}

@media (max-width: 480px) {
  .option-grid { grid-template-columns: repeat(2, 1fr); }
}
