:root {
  --bg: #12100f;
  --bg-2: #1b1714;
  --panel: #221c18;
  --panel-2: #2c241e;
  --line: rgba(217, 119, 87, 0.22);
  --text: #faf9f5;
  --muted: #c9bdb2;
  --danger: #d97757;
  --danger-2: #be5f3f;
  --amber: #d9a441;
  --alcohol: #c98a5e;
  --safe: #3e7c5b;
  --accent: var(--danger);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(217, 119, 87, 0.12), transparent 34rem),
    radial-gradient(circle at 90% 15%, rgba(201, 138, 94, 0.08), transparent 28rem),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--danger);
  color: #fff;
}

.warning-strip {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    #d97757 0 16px,
    #12100f 16px 32px
  );
  position: relative;
  z-index: 60;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============ NAV ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  padding-top: 5px;
}

.brand-text {
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .back-home {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(217, 119, 87, 0.08);
}

.nav-links .back-home:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-bottom: 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 60px;
  align-items: center;
  min-height: 590px;
  padding-top: 40px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--danger-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pulse-dot,
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.7);
  animation: pulse 1.8s infinite;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 950;
  margin-bottom: 26px;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--danger);
  text-stroke: 2px var(--danger);
  text-shadow: 0 0 42px rgba(217, 119, 87, 0.25);
}

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-2));
  color: #fff;
  box-shadow: 0 14px 34px rgba(217, 119, 87, 0.28);
}

.btn-danger:hover {
  box-shadow: 0 18px 44px rgba(217, 119, 87, 0.42);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-note {
  max-width: 560px;
  color: #778396;
  font-size: 12px;
}

/* hero art */
.hero-art {
  position: relative;
  height: 470px;
  min-height: 420px;
}

.hero-card {
  position: absolute;
  width: 240px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(26, 34, 46, 0.95), rgba(9, 12, 17, 0.92));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card p {
  font-weight: 850;
  margin-top: 8px;
}

.hero-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-card .art-icon {
  width: 100%;
  height: 110px;
  color: #cbd5e1;
}

.hero-card-cig {
  top: 24px;
  left: 0;
  color: var(--danger-2);
  transform: rotate(-5deg);
  z-index: 2;
}

.hero-card-cig .art-icon {
  color: #e2e8f0;
}

.hero-card-drink {
  right: 0;
  bottom: 32px;
  color: var(--amber);
  transform: rotate(5deg);
}

.hero-ring {
  position: absolute;
  inset: 60px 30px 40px 10px;
  border: 1px solid rgba(217, 119, 87, 0.25);
  border-radius: 50%;
  animation: slowspin 18s linear infinite;
}

.hero-ring::before,
.hero-ring::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 24px var(--danger);
}

.hero-ring::before {
  top: -6px;
  left: 50%;
}

.hero-ring::after {
  bottom: -6px;
  right: 14%;
  background: var(--amber);
  box-shadow: 0 0 24px var(--amber);
}

/* ============ SECTIONS ============ */
.section {
  padding: 96px 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2,
.help-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.section-head p,
.help-section > .container > div > p {
  color: var(--muted);
  font-size: 16px;
}

/* ============ TABS ============ */
.substance-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.substance-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  text-align: left;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.substance-tab:hover {
  transform: translateY(-2px);
  color: #fff;
}

.substance-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.17), rgba(190, 95, 63, 0.06));
  border-color: rgba(217, 119, 87, 0.62);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 87, 0.08), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.substance-tab[data-substance="alcohol"].is-active {
  background: linear-gradient(135deg, rgba(201, 138, 94, 0.16), rgba(201, 138, 94, 0.04));
  border-color: rgba(201, 138, 94, 0.62);
}

.substance-tab[data-substance="mobile"].is-active {
  background: linear-gradient(135deg, rgba(91, 127, 166, 0.16), rgba(91, 127, 166, 0.04));
  border-color: rgba(91, 127, 166, 0.62);
}

.tab-emoji {
  font-size: 30px;
  line-height: 1;
}

.substance-tab strong {
  display: block;
  font-size: 16px;
}

.substance-tab small {
  display: block;
  font-size: 12px;
  color: #7f8b9c;
  margin-top: 2px;
}

/* ============ TIMELINE ============ */
.timeline-wrap {
  margin-bottom: 22px;
}

.timeline-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 9px;
  background: #0b0f14;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.timeline-btn {
  position: relative;
  padding: 13px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #748196;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.timeline-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.timeline-btn.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent), transparent 72%);
}

.timeline-btn small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.72;
  margin-top: 2px;
}

/* ============ DAMAGE LAYOUT ============ */
.damage-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
}

.body-panel,
.stage-panel {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), #0c1016);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.body-panel {
  padding: 16px 14px 12px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.035), transparent 55%),
    linear-gradient(160deg, #151c26, #0a0e13);
}

.body-panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 8px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.body-map {
  width: 100%;
  height: auto;
  max-height: 620px;
}

.body-silhouette {
  fill: url(#bodyGrad);
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1;
}

.body-silhouette circle,
.body-silhouette rect,
.body-silhouette path {
  fill: url(#bodyGrad);
}

.body-silhouette path[fill="none"] {
  fill: none;
}

.organ {
  color: #526174;
  opacity: 0.25;
  transition: opacity 0.42s ease, color 0.42s ease, filter 0.42s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.organ text {
  font-size: 9.4px;
  font-weight: 750;
  fill: #7b8798;
  paint-order: stroke;
  stroke: #0a0e13;
  stroke-width: 3px;
  stroke-linejoin: round;
  letter-spacing: 0.03em;
}

.organ.is-affected {
  color: var(--accent);
  opacity: 1;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent), transparent 35%));
  animation: organPulse 2.4s ease-in-out infinite;
}

.organ.is-affected text {
  fill: #fff;
}

.organ.is-recovering {
  color: var(--safe);
}

.body-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 10px 4px;
  color: var(--muted);
  font-size: 11px;
}

.body-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.danger {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.legend-dot.safe {
  background: #526174;
}

/* stage panel */
.stage-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.stage-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-substance {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 13px;
}

.stage-summary {
  color: #c2ccd9;
  font-size: 15px;
  margin-bottom: 22px;
}

.severity-box {
  margin-bottom: 24px;
}

.severity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.severity-head strong {
  color: var(--accent);
  font-size: 14px;
}

.severity-bar {
  height: 10px;
  border-radius: 999px;
  background: #252d38;
  overflow: hidden;
}

.severity-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97757, var(--accent));
  transition: width 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.disease-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.disease-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  animation: fadeSlideIn 0.45s backwards;
}

.disease-item svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  padding: 5px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
}

.disease-item strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.3;
}

.disease-item span {
  display: block;
  color: #8995a6;
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 3px;
}

.disease-cost {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 62%);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 92%);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.stage-cost-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--accent), transparent 66%);
  border-radius: 10px;
  color: #8995a6;
  background: color-mix(in srgb, var(--accent), transparent 95%);
  font-size: 11px;
  line-height: 1.5;
}

.stage-footnote {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #778396;
  font-size: 12px;
  font-style: italic;
}

/* progression strip */
.progression-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.progress-card {
  padding: 14px;
  background: #0b0f14;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.progress-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
}

.progress-card svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  color: var(--accent);
  opacity: 0.9;
}

.progress-card.bad-1 svg { opacity: 0.36; filter: saturate(0.6); }
.progress-card.bad-2 svg { opacity: 0.55; filter: saturate(0.8); }
.progress-card.bad-3 svg { opacity: 0.78; }
.progress-card.bad-4 svg { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent), transparent 35%)); }

.progress-card strong {
  display: block;
  text-align: center;
  font-size: 12px;
}

.progress-card span {
  display: block;
  text-align: center;
  color: #758196;
  font-size: 10.5px;
  margin-top: 3px;
}

/* ============ ORGAN GALLERY ============ */
.organ-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.organ-card {
  position: relative;
  padding: 20px;
  background: linear-gradient(165deg, #151c26, #0b0f14);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.organ-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 87, 0.42);
}

.organ-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.15), transparent 70%);
}

.organ-icon-wrap {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.organ-icon-wrap svg {
  width: 42px;
  height: 42px;
}

.danger-tint {
  color: var(--danger-2);
  background: rgba(217, 119, 87, 0.08);
  border-color: rgba(217, 119, 87, 0.18);
}

.organ-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.organ-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.organ-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffb4ad;
  background: rgba(217, 119, 87, 0.1);
  border: 1px solid rgba(217, 119, 87, 0.18);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ CALCULATOR ============ */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.calc-card {
  --card-accent: var(--danger);
  padding: 26px;
  background: linear-gradient(165deg, #151c26, #0b0f14);
  border: 1px solid var(--line);
  border-top: 4px solid var(--card-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calc-alcohol {
  --card-accent: var(--alcohol);
}

.calc-mobile {
  grid-column: 1 / -1;
  --card-accent: #5b7fa6;
}

.mobile-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}

.mobile-results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-results .result {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.mobile-results .result strong {
  text-align: left;
}

.cost-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(91, 127, 166, 0.18);
  border-radius: 14px;
  background: rgba(91, 127, 166, 0.035);
}

.cost-panel h4 {
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.cost-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(91, 127, 166, 0.1);
}

.cost-row span {
  color: var(--muted);
  font-size: 12.5px;
}

.cost-row strong {
  flex: 0 0 auto;
  color: #8ab0d0;
  font-size: 12.5px;
  text-align: right;
}

.calc-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.calc-emoji {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-accent), transparent 88%);
  font-size: 27px;
}

.calc-card-head h3 {
  font-size: 20px;
}

.calc-card-head p {
  color: var(--muted);
  font-size: 13px;
}

.control {
  margin-bottom: 18px;
}

.control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #c4ceda;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
}

.control output {
  color: var(--card-accent);
  font-size: 15px;
  font-weight: 900;
  min-width: 48px;
  text-align: right;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-accent) 0%, var(--card-accent) 50%, #2b3441 50%, #2b3441 100%);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--card-accent);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--card-accent);
  cursor: pointer;
}

.control-small {
  margin-top: 22px;
}

.control-small input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  color: #fff;
  background: #0a0e13;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.control-small input[type="number"]:focus {
  border-color: var(--card-accent);
}

.calc-results {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
}

.result span {
  color: var(--muted);
  font-size: 12.5px;
}

.result strong {
  color: #fff;
  font-size: 16px;
  text-align: right;
}

.danger-result {
  border-color: color-mix(in srgb, var(--card-accent), transparent 72%);
  background: color-mix(in srgb, var(--card-accent), transparent 92%);
}

.danger-result strong {
  color: var(--card-accent);
}

.calc-note {
  margin-top: 18px;
  color: #748196;
  font-size: 11.5px;
  line-height: 1.5;
}

/* ============ FACTS ============ */
.fact-strip {
  padding: 60px 0 30px;
  background:
    linear-gradient(135deg, rgba(217, 119, 87, 0.09), rgba(201, 138, 94, 0.05)),
    #090c10;
  border-block: 1px solid var(--line);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.fact {
  padding-left: 18px;
  border-left: 3px solid var(--danger);
}

.fact strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fact-source {
  margin-top: 34px;
  color: #667284;
  font-size: 11px;
}

/* ============ HELP ============ */
.help-section {
  padding-bottom: 110px;
}

.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: start;
}

.help-grid > div > p {
  margin-bottom: 24px;
}

.help-cards {
  display: grid;
  gap: 12px;
}

.help-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.help-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--danger);
  border-radius: 12px;
  font-size: 19px;
}

.help-card h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.help-card p {
  color: var(--muted);
  font-size: 13px;
}

.help-card a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--danger);
  text-underline-offset: 3px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 44px 0;
  background: #05070a;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.footer p {
  color: #6f7b8d;
  font-size: 12px;
  margin-top: 14px;
}

.footer-strong {
  color: #b5bfcc !important;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin-top: 0;
}

.footer-disclaimer {
  color: #f0b9b4 !important;
}

.footer-disclaimer strong {
  color: #ff8a80;
}

.footer-sponsor {
  color: #aeb9c7 !important;
}

.footer-sponsor strong {
  color: #8ab0d0;
}

.footer-copyright {
  color: #667284 !important;
}

/* ============ ANIMATIONS ============ */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.65); }
  70% { box-shadow: 0 0 0 11px rgba(217, 119, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0); }
}

@keyframes slowspin {
  to { transform: rotate(360deg); }
}

@keyframes organPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
  }

  .hero-art {
    height: 360px;
    min-height: 340px;
    max-width: 590px;
  }

  .damage-layout {
    grid-template-columns: 1fr;
  }

  .body-map {
    max-height: 560px;
  }

  .organ-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 680px);
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .substance-tabs {
    grid-template-columns: 1fr;
  }

  .timeline-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }

  .timeline-btn {
    flex: 0 0 76px;
  }

  .progression-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calc-grid,
  .help-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-controls,
  .mobile-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-mobile {
    grid-column: auto;
  }

  .stage-panel {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .hero-card {
    width: 205px;
  }

  .hero-card .art-icon {
    height: 90px;
  }
}

@media (max-width: 520px) {
  .organ-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .progression-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-art {
    display: none;
  }

  .calc-card {
    padding: 20px 16px;
  }

  .result {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .result strong {
    text-align: left;
  }

  .mobile-controls,
  .mobile-results {
    grid-template-columns: 1fr;
  }

  .cost-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .cost-row strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
