:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-soft: #0c0e16;
  --text: #f6f7fb;
  --muted: #a9adbd;
  --muted-strong: #c9ccda;
  --line: rgba(255, 255, 255, 0.11);
  --glass: rgba(255, 255, 255, 0.065);
  --glass-strong: rgba(255, 255, 255, 0.095);
  --cyan: #69dcff;
  --blue: #7b8cff;
  --violet: #b99cff;
  --pink: #ff80c0;
  --green: #89f0c0;
  --red: #ff7f8f;
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.1);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(81, 94, 170, 0.19), transparent 36rem),
    linear-gradient(180deg, #080910 0%, #07080d 62%, #090a11 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

::selection {
  background: rgba(105, 220, 255, 0.25);
  color: white;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: #05060a;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

.ambient-one {
  top: 18%;
  left: -24rem;
  background: var(--cyan);
}

.ambient-two {
  right: -26rem;
  top: 52%;
  background: var(--pink);
  animation-delay: -7s;
}

@keyframes ambient-drift {
  to { transform: translate3d(3rem, 4rem, 0) scale(1.08); }
}

.glass {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
}

.glass::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 22%, transparent 70%, rgba(255, 255, 255, 0.035));
  content: "";
  pointer-events: none;
}

.section-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 32px), 1040px);
  min-height: 64px;
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  align-items: center;
  border-radius: 22px;
  background: rgba(18, 20, 29, 0.65);
  pointer-events: auto;
  transition: background 250ms ease, box-shadow 250ms ease;
}

.site-header.scrolled .nav-shell {
  background: rgba(12, 14, 21, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px 11px 7px 12px;
  background:
    radial-gradient(circle at 30% 25%, white 0 4%, transparent 5%),
    linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--pink));
  box-shadow: 0 0 20px rgba(105, 220, 255, 0.34), inset 2px 2px 5px rgba(255, 255, 255, 0.55);
  transform: rotate(-8deg);
}

.brand-dot {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 6px;
  margin: 0 auto;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 580;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.nav-progress {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-progress svg {
  position: absolute;
  inset: 5px;
  width: 38px;
  height: 38px;
  transform: rotate(-90deg);
}

.nav-progress circle {
  fill: none;
  stroke-width: 2.4;
}

.progress-track { stroke: rgba(255, 255, 255, 0.11); }
.progress-value {
  stroke: var(--cyan);
  stroke-dasharray: 100.53;
  stroke-dashoffset: 100.53;
  stroke-linecap: round;
  transition: stroke-dashoffset 300ms ease;
}

.nav-progress span {
  position: relative;
  font-size: 9px;
  font-weight: 750;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: white;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding-top: 160px;
  padding-bottom: 60px;
  grid-template-columns: 1.04fr 0.96fr;
  align-content: center;
  gap: 30px 50px;
}

.hero::before {
  position: absolute;
  inset: 12% 0 auto;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 125, 255, 0.1), transparent 65%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.eyebrow,
.section-number,
.card-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.eyebrow span {
  width: 20px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.2rem);
  font-weight: 720;
  letter-spacing: -0.074em;
  line-height: 0.9;
}

.gradient-text,
.section-heading h2 span,
.quiz-intro h2 span {
  background: linear-gradient(105deg, #ffffff 0%, var(--cyan) 30%, var(--blue) 64%, var(--pink) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 660px;
  margin: 32px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  letter-spacing: -0.018em;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 21px;
  gap: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
  background: linear-gradient(110deg, #dff8ff, #a7ecff 36%, #babfff 100%);
  box-shadow: 0 12px 40px rgba(105, 220, 255, 0.18), inset 0 1px white;
  color: #080a12;
}

.button.primary:hover {
  box-shadow: 0 16px 55px rgba(105, 220, 255, 0.28), inset 0 1px white;
}

.time-chip {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(137, 240, 192, 0.08), 0 0 16px var(--green);
}

.hero-orbit {
  position: relative;
  min-height: 500px;
  align-self: center;
  perspective: 1000px;
}

.orbit-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 220, 255, 0.28), rgba(123, 140, 255, 0.08) 45%, transparent 70%);
  filter: blur(35px);
  transform: translate(-50%, -50%);
}

.liquid-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 46% 54% 57% 43% / 45% 42% 58% 55%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.95), transparent 8%),
    radial-gradient(circle at 34% 30%, rgba(105, 220, 255, .55), transparent 30%),
    radial-gradient(circle at 70% 74%, rgba(255, 128, 192, .5), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(95, 106, 220, .14));
  box-shadow:
    inset 16px 18px 36px rgba(255, 255, 255, 0.16),
    inset -22px -24px 45px rgba(67, 36, 132, 0.32),
    0 35px 90px rgba(50, 55, 120, 0.38);
  transform: translate(-50%, -50%) rotate(-9deg);
  animation: liquid-morph 9s ease-in-out infinite alternate;
}

.core-reflection {
  position: absolute;
  inset: 12% 18% auto auto;
  width: 38%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(12px);
  transform: rotate(34deg);
}

@keyframes liquid-morph {
  50% { border-radius: 58% 42% 41% 59% / 52% 62% 38% 48%; transform: translate(-50%, -50%) rotate(6deg) scale(1.04); }
  100% { border-radius: 43% 57% 62% 38% / 56% 38% 62% 44%; transform: translate(-50%, -50%) rotate(-3deg) scale(.98); }
}

.orbit-card {
  position: absolute;
  z-index: 2;
  width: 220px;
  padding: 18px 19px;
  border-radius: 22px;
  transition: transform 240ms ease;
}

.orbit-card:hover { transform: translateY(-5px) rotate(0deg); }
.orbit-card-a { top: 54px; right: -4px; transform: rotate(3deg); }
.orbit-card-b { left: 2px; bottom: 54px; transform: rotate(-4deg); }

.orbit-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.orbit-card strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.infinite-line {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.infinite-line span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--cyan));
  background-size: 200% 100%;
  box-shadow: 0 0 12px var(--cyan);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.resource-dots {
  display: flex;
  margin-top: 13px;
  gap: 6px;
}

.resource-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255, 128, 192, 0.55);
}

.resource-dots i:nth-child(4), .resource-dots i:nth-child(5) { opacity: .16; box-shadow: none; }

.orbit-badge {
  position: absolute;
  right: 30px;
  bottom: 98px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 19px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 750;
}

.hero-footer {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 1 / -1;
  padding-top: 32px;
  gap: 54px;
  border-top: 1px solid var(--line);
}

.hero-footer div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.hero-footer strong { font-size: 20px; }
.hero-footer span { color: var(--muted); font-size: 12px; }

.learning-section,
.sources-section {
  padding-block: 130px;
}

.section-heading {
  display: grid;
  margin-bottom: 64px;
  grid-template-columns: 1fr 1fr;
  gap: 8px 70px;
  align-items: end;
}

.section-heading.compact {
  margin-bottom: 46px;
}

.section-heading .section-number {
  grid-column: 1 / -1;
  color: var(--cyan);
}

.section-heading h2,
.quiz-intro h2 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.7rem);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: .96;
}

.section-heading > p:last-child {
  max-width: 470px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 17px;
}

.scarcity-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.principle-card,
.budget-card {
  min-height: 440px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.principle-card {
  display: flex;
  flex-direction: column;
}

.principle-card::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(105, 220, 255, .22) 22%, rgba(123,140,255,.08) 55%, transparent 70%);
  filter: blur(3px);
  content: "";
}

.big-quote {
  position: relative;
  z-index: 1;
  margin: 10px 0 42px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.formula {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: auto;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.formula span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0,0,0,.12);
}

.formula .formula-result {
  border-color: rgba(105, 220, 255, .2);
  background: rgba(105, 220, 255, .08);
  color: var(--cyan);
}

.budget-card {
  background:
    radial-gradient(circle at 95% 0%, rgba(185,156,255,.15), transparent 42%),
    linear-gradient(145deg, var(--glass-strong), var(--glass));
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  margin-bottom: 36px;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.card-topline .card-kicker { margin-bottom: 6px; }
.card-topline h3 { margin: 0; font-size: 27px; letter-spacing: -.04em; }

.budget-balance {
  padding: 9px 12px;
  border: 1px solid rgba(137, 240, 192, .2);
  border-radius: 12px;
  background: rgba(137, 240, 192, .08);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.budget-balance.over {
  border-color: rgba(255, 127, 143, .25);
  background: rgba(255, 127, 143, .08);
  color: var(--red);
}

.allocation-control {
  position: relative;
  z-index: 1;
  margin: 22px 0;
}

.allocation-control label {
  display: flex;
  margin-bottom: 8px;
  justify-content: space-between;
  color: var(--muted-strong);
  font-size: 13px;
}

.allocation-control output { color: white; font-variant-numeric: tabular-nums; }

input[type="range"] {
  width: 100%;
  height: 5px;
  margin: 0;
  border-radius: 20px;
  appearance: none;
  background: linear-gradient(90deg, var(--cyan) var(--range-fill, 35%), rgba(255,255,255,.1) var(--range-fill, 35%));
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid #0b0d14;
  border-radius: 50%;
  appearance: none;
  background: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 18px rgba(105,220,255,.5);
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 4px solid #0b0d14;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 18px rgba(105,220,255,.5);
}

.budget-meter {
  position: relative;
  z-index: 1;
  height: 7px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.budget-meter span {
  display: block;
  width: 75%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 200ms ease, background 200ms ease;
}

.experiment-note {
  position: relative;
  z-index: 1;
  min-height: 38px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.demand-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.flow-stage {
  position: relative;
  min-height: 260px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.flow-stage::after {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 220, 255, .15), transparent 68%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.flow-stage:hover,
.flow-stage.active {
  border-color: rgba(105,220,255,.35);
  background: rgba(105,220,255,.065);
  transform: translateY(-5px);
}

.flow-stage.active::after { opacity: 1; }

.stage-index { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.stage-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-top: 28px;
  place-items: center;
  border: 1px solid rgba(105, 220, 255, .25);
  border-radius: 20px;
  background: rgba(105, 220, 255, .09);
  color: var(--cyan);
  font-size: 27px;
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.wallet-icon { color: var(--violet); border-color: rgba(185,156,255,.24); background: rgba(185,156,255,.08); }
.market-icon { color: var(--pink); border-color: rgba(255,128,192,.24); background: rgba(255,128,192,.08); }
.flow-stage h3 { margin: 24px 0 4px; font-size: 24px; letter-spacing: -.04em; }
.flow-stage p { margin: 0; color: var(--muted); font-size: 13px; }

.flow-operator {
  display: grid;
  min-width: 74px;
  color: var(--muted);
  place-items: center;
}

.flow-operator span { font-size: 22px; color: white; }
.flow-operator small { font-size: 10px; }

.flow-explanation {
  margin: 22px 0 0;
  padding: 17px 20px;
  border-radius: 17px;
  color: var(--muted);
  font-size: 13px;
}

.flow-explanation strong { color: white; }

.choice-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.choice-card {
  display: flex;
  min-height: 180px;
  padding: 30px;
  gap: 22px;
  align-items: flex-start;
  border-radius: var(--radius-md);
}

.choice-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  color: var(--cyan);
  font-size: 23px;
}

.choice-symbol.external { color: var(--pink); }
.choice-card > div { position: relative; z-index: 1; }
.choice-card h3 { margin: 2px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.choice-card p { margin: 0; color: var(--muted); font-size: 14px; }

.needs-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.need-card {
  min-height: 470px;
  padding: 16px 28px 32px;
  overflow: hidden;
  border-radius: 30px;
}

.need-visual {
  position: relative;
  z-index: 1;
  height: 190px;
  margin: 0 -12px 30px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.42), transparent 5%),
    radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
}

.need-visual span {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}

.need-visual i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 43% 57% 60% 40% / 52% 37% 63% 48%;
  background: linear-gradient(145deg, rgba(255,255,255,.22), var(--accent-soft));
  box-shadow: inset 12px 14px 28px rgba(255,255,255,.12), 0 20px 50px var(--accent-shadow);
  transform: translate(-50%, -50%) rotate(-12deg);
}

.existence { --accent: var(--cyan); --accent-soft: rgba(105,220,255,.22); --accent-shadow: rgba(105,220,255,.12); }
.culture { --accent: var(--violet); --accent-soft: rgba(185,156,255,.22); --accent-shadow: rgba(185,156,255,.12); }
.luxury { --accent: var(--pink); --accent-soft: rgba(255,128,192,.22); --accent-shadow: rgba(255,128,192,.12); }
.need-card .card-kicker { position: relative; z-index: 1; margin-bottom: 7px; color: var(--accent); }
.need-card h3 { position: relative; z-index: 1; margin: 0; font-size: 23px; letter-spacing: -.04em; }
.need-card > p:not(.card-kicker) { position: relative; z-index: 1; min-height: 66px; margin: 12px 0 20px; color: var(--muted); font-size: 13px; }
.need-card ul { position: relative; z-index: 1; display: flex; margin: 0; padding: 0; gap: 7px; list-style: none; flex-wrap: wrap; }
.need-card li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.1); color: var(--muted-strong); font-size: 11px; }

.sorter {
  display: grid;
  min-height: 220px;
  margin-top: 24px;
  padding: 36px 40px;
  grid-template-columns: 1fr 1fr;
  gap: 20px 50px;
  align-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(105,220,255,.09), transparent 45%),
    linear-gradient(145deg, var(--glass-strong), var(--glass));
}

.sorter-copy,
.sorter-actions,
.sorter-feedback { position: relative; z-index: 1; }
.sorter-copy .card-kicker { margin-bottom: 4px; }
.sorter-copy h3 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.sorter-copy > p { margin: 8px 0 16px; color: var(--muted-strong); }
.sorter-progress { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 10px; }
.sorter-progress i { display: block; width: 110px; height: 4px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.08); }
.sorter-progress b { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--cyan); transition: width 200ms ease; }

.sorter-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sorter-actions button,
.cycle-controls button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.sorter-actions button:hover,
.cycle-controls button:hover { transform: translateY(-2px); border-color: rgba(105,220,255,.3); }
.sorter-actions button.correct { border-color: rgba(137,240,192,.5); background: rgba(137,240,192,.1); color: var(--green); }
.sorter-actions button.wrong { border-color: rgba(255,127,143,.5); background: rgba(255,127,143,.1); color: var(--red); }
.sorter-actions button:disabled { cursor: default; transform: none; }
.sorter-feedback { grid-column: 2; min-height: 20px; margin: -10px 0 0; color: var(--muted); font-size: 12px; }
.sorter-feedback.success { color: var(--green); }

.perspective-panel {
  display: grid;
  min-height: 320px;
  padding: 50px;
  grid-template-columns: 1fr auto 1fr;
  gap: 44px;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.perspective-panel article { position: relative; z-index: 1; }
.perspective-label { color: var(--cyan); font-size: 11px; font-weight: 720; letter-spacing: .11em; text-transform: uppercase; }
.perspective-panel article:last-child .perspective-label { color: var(--pink); }
.perspective-panel h3 { margin: 10px 0 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.05em; }
.perspective-panel p { max-width: 410px; margin: 0; color: var(--muted); }
.perspective-divider { position: relative; z-index: 1; display: grid; width: 1px; height: 180px; place-items: center; background: var(--line); }
.perspective-divider span { padding: 8px; border-radius: 50%; background: #11131b; color: var(--muted); font-size: 10px; }

.influences {
  display: grid;
  margin-top: 84px;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px 80px;
}

.influence-intro .card-kicker { color: var(--pink); margin-bottom: 8px; }
.influence-intro h3 { margin: 0; font-size: 32px; letter-spacing: -.045em; }
.influence-intro p { margin: 12px 0 0; color: var(--muted); }
.influence-list { display: flex; gap: 10px; align-content: flex-start; flex-wrap: wrap; }
.influence-chip {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.influence-chip:hover,
.influence-chip.active { border-color: rgba(255,128,192,.3); background: rgba(255,128,192,.09); color: white; }
.influence-output { grid-column: 2; min-height: 78px; margin: -6px 0 0; padding: 20px 22px; border-radius: 18px; color: var(--muted-strong); font-size: 14px; }

.cycle-card {
  padding: 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 55%, rgba(105,220,255,.07), transparent 30%),
    radial-gradient(circle at 80% 55%, rgba(255,128,192,.07), transparent 30%),
    linear-gradient(145deg, var(--glass-strong), var(--glass));
}

.cycle-controls {
  position: relative;
  z-index: 2;
  display: flex;
  width: fit-content;
  margin: 0 auto 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0,0,0,.16);
}

.cycle-controls button { min-height: 40px; padding: 0 16px; border-color: transparent; background: transparent; }
.cycle-controls button.active { background: rgba(255,255,255,.09); color: white; box-shadow: inset 0 1px rgba(255,255,255,.1); }

.cycle-visual { position: relative; z-index: 1; }
.cycle-visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.node-title { fill: white; font-size: 25px; font-weight: 680; letter-spacing: -1px; }
.node-subtitle { fill: #a9adbd; font-size: 12px; }
.stream-path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 8 13; animation: stream-flow 1.2s linear infinite; transition: opacity 240ms ease; }
.stream-goods .stream-path { stroke: var(--cyan); filter: url(#softGlow); }
.stream-money .stream-path { stroke: var(--pink); filter: url(#softGlow); }
.stream-label { fill: #d7d9e3; font-size: 13px; font-weight: 620; transition: opacity 240ms ease; }
@keyframes stream-flow { to { stroke-dashoffset: -21; } }
.cycle-visual[data-cycle-view="goods"] .stream-money,
.cycle-visual[data-cycle-view="money"] .stream-goods { opacity: .08; }
.cycle-visual[data-cycle-view="goods"] .company-node,
.cycle-visual[data-cycle-view="goods"] .household-node,
.cycle-visual[data-cycle-view="money"] .company-node,
.cycle-visual[data-cycle-view="money"] .household-node { opacity: .92; }

.cycle-legend {
  display: flex;
  margin-top: 8px;
  gap: 22px;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
}

.cycle-legend span { display: inline-flex; gap: 7px; align-items: center; }
.cycle-legend i { width: 20px; height: 3px; border-radius: 10px; }
.goods-dot { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.money-dot { background: var(--pink); box-shadow: 0 0 9px var(--pink); }
.cycle-explanation { position: relative; z-index: 1; max-width: 720px; margin: 22px auto 4px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.cycle-explanation strong { color: white; }

.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.knowledge-card { overflow: hidden; border-radius: 25px; }
.knowledge-card summary {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 92px;
  padding: 22px;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.knowledge-card summary::-webkit-details-marker { display: none; }
.knowledge-card summary span { color: var(--cyan); font-size: 10px; letter-spacing: .12em; }
.knowledge-card summary strong { font-size: 15px; }
.knowledge-card summary i { color: var(--muted); font-style: normal; font-size: 20px; transition: transform 180ms ease; }
.knowledge-card[open] summary i { transform: rotate(45deg); }
.knowledge-card > div { position: relative; z-index: 1; padding: 0 22px 24px; color: var(--muted); font-size: 13px; }
.knowledge-card p { margin: 0; }
.knowledge-card dl { margin: 18px 0 0; }
.knowledge-card dt { margin-top: 12px; color: white; font-weight: 670; }
.knowledge-card dd { margin: 3px 0 0; }

.quiz-section { width: min(calc(100% - 24px), 1320px); }
.quiz-shell {
  display: grid;
  min-height: 610px;
  padding: clamp(28px, 6vw, 76px);
  grid-template-columns: .82fr 1.18fr;
  gap: 70px;
  align-items: center;
  border-radius: 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(105,220,255,.15), transparent 35%),
    radial-gradient(circle at 92% 90%, rgba(255,128,192,.12), transparent 37%),
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
}

.quiz-shell::after {
  position: absolute;
  top: -160px;
  right: 34%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 43% 57% 60% 40% / 52% 37% 63% 48%;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(105,220,255,.025));
  content: "";
  transform: rotate(20deg);
}

.quiz-intro,
.quiz-stage { position: relative; z-index: 1; }
.quiz-intro .section-number { color: var(--pink); }
.quiz-intro h2 { font-size: clamp(3rem, 5vw, 4.8rem); }
.quiz-intro > p:not(.section-number) { max-width: 390px; margin: 24px 0 0; color: var(--muted); }
.best-score { display: flex; width: fit-content; margin-top: 36px; padding: 13px 16px; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.12); }
.best-score span { color: var(--muted); font-size: 11px; }
.best-score strong { color: var(--cyan); font-size: 14px; }

.quiz-stage { min-height: 390px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: rgba(5,6,10,.32); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.quiz-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.quiz-progress { height: 3px; margin: 12px 0 34px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.08); }
.quiz-progress span { display: block; width: 16.67%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width 250ms ease; }
.quiz-question { margin: 0 0 24px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 620; letter-spacing: -.035em; line-height: 1.16; }
.answer-list { display: grid; gap: 9px; }
.answer-button { display: flex; width: 100%; min-height: 50px; padding: 12px 15px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); cursor: pointer; color: var(--muted-strong); text-align: left; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.answer-button:hover { border-color: rgba(105,220,255,.28); background: rgba(105,220,255,.055); transform: translateX(3px); }
.answer-button span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.answer-button.correct { border-color: rgba(137,240,192,.44); background: rgba(137,240,192,.09); color: white; }
.answer-button.wrong { border-color: rgba(255,127,143,.44); background: rgba(255,127,143,.08); color: white; }
.answer-button:disabled { cursor: default; transform: none; }
.quiz-feedback { min-height: 42px; margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.quiz-feedback strong { color: white; }
.next-button { float: right; min-height: 43px; padding: 0 17px; border: 0; border-radius: 13px; background: white; cursor: pointer; color: #090a10; font-size: 12px; font-weight: 720; }
.result-card { padding-top: 28px; text-align: center; }
.result-orb { display: grid; width: 110px; height: 110px; margin: 0 auto 24px; place-items: center; border: 1px solid rgba(105,220,255,.32); border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.35), rgba(105,220,255,.13) 35%, rgba(123,140,255,.08)); box-shadow: 0 16px 50px rgba(105,220,255,.14), inset 0 1px rgba(255,255,255,.4); }
.result-orb strong { font-size: 28px; }
.result-card h3 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.result-card p { margin: 8px auto 24px; color: var(--muted); font-size: 13px; }
.restart-button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.07); cursor: pointer; color: white; font-size: 12px; font-weight: 670; }

.sources-section { padding-top: 70px; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.source-card { display: flex; min-height: 110px; padding: 22px; gap: 18px; align-items: center; border-radius: 24px; transition: transform 180ms ease, border-color 180ms ease; }
.source-card:hover { border-color: rgba(105,220,255,.28); transform: translateY(-3px); }
.pdf-icon { position: relative; z-index: 1; display: grid; width: 48px; height: 58px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,128,192,.24); border-radius: 10px 10px 14px 14px; background: rgba(255,128,192,.09); color: var(--pink); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.source-card > span:nth-child(2) { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; }
.source-card strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.source-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.source-card b { position: relative; z-index: 1; margin-left: auto; color: var(--muted); font-size: 18px; }

.site-footer {
  display: flex;
  min-height: 150px;
  padding-block: 42px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.site-footer p,
.site-footer > a:last-child { color: var(--muted); font-size: 12px; }
.site-footer > a:last-child:hover { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.flashcards-section {
  padding-top: 150px;
}

.flashcards-heading .section-number {
  color: var(--violet);
}

.flashcard-app {
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  border-radius: 44px;
  background:
    radial-gradient(circle at 8% 8%, rgba(105, 220, 255, .1), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(255, 128, 192, .1), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
}

.deck-toolbar,
.deck-status,
.flashcard-stage,
.card-shortcuts,
.deck-controls,
.mastery-track {
  position: relative;
  z-index: 1;
}

.deck-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.deck-filters {
  display: flex;
  padding: 5px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0, 0, 0, .16);
}

.deck-filters button,
.shuffle-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.deck-filters button:hover,
.deck-filters button.active {
  background: rgba(255, 255, 255, .09);
  color: white;
}

.shuffle-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, .04);
}

.shuffle-button:hover {
  border-color: rgba(105, 220, 255, .3);
  color: white;
  transform: translateY(-2px);
}

.shuffle-button span {
  display: inline-block;
  margin-right: 5px;
  color: var(--cyan);
  font-size: 17px;
}

.deck-status {
  display: flex;
  max-width: 760px;
  margin: 32px auto 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.mastery-count {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.mastery-count i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(137, 240, 192, .7);
}

.mastery-count strong {
  color: white;
}

.mastery-track {
  max-width: 760px;
  height: 3px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.mastery-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 10px rgba(105, 220, 255, .5);
  transition: width 280ms ease;
}

.flashcard-stage {
  width: min(100%, 760px);
  height: 430px;
  margin: 0 auto;
  perspective: 1500px;
}

.stack-card {
  position: absolute;
  inset: 12px 18px -12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 31px;
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.stack-card-one {
  transform: translateY(6px) rotate(1.2deg) scale(.985);
}

.stack-card-two {
  transform: translateY(17px) rotate(-1.3deg) scale(.965);
  opacity: .65;
}

.study-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 32px;
  cursor: pointer;
  outline: none;
  --card-accent: var(--cyan);
  --card-accent-soft: rgba(105, 220, 255, .16);
}

.study-card.category-beduerfnisse {
  --card-accent: var(--violet);
  --card-accent-soft: rgba(185, 156, 255, .16);
}

.study-card.category-kreislauf {
  --card-accent: var(--pink);
  --card-accent-soft: rgba(255, 128, 192, .15);
}

.study-card:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 7px;
}

.study-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 580ms cubic-bezier(.2, .75, .25, 1);
}

.study-card.is-flipped .study-card-inner {
  transform: rotateY(180deg);
}

.study-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  padding: clamp(30px, 6vw, 58px);
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 14%, var(--card-accent-soft), transparent 35%),
    linear-gradient(145deg, rgba(24, 27, 39, .98), rgba(10, 12, 19, .98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .12);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.study-card-face::before {
  position: absolute;
  top: -135px;
  right: -85px;
  width: 290px;
  height: 290px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
  border-radius: 43% 57% 60% 40% / 52% 37% 63% 48%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), transparent);
  content: "";
  transform: rotate(18deg);
}

.study-card-back {
  background:
    radial-gradient(circle at 12% 88%, var(--card-accent-soft), transparent 38%),
    linear-gradient(145deg, rgba(19, 22, 33, .99), rgba(9, 10, 16, .99));
  transform: rotateY(180deg);
}

.card-face-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-topic {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-topic::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  content: "";
}

.card-number {
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.card-question {
  position: relative;
  z-index: 1;
  max-width: 630px;
  margin: auto 0;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 670;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.card-answer-label {
  position: relative;
  z-index: 1;
  margin: auto 0 8px;
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-answer-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 680;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.card-answer {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 18px 0 auto;
  color: var(--muted-strong);
  font-size: clamp(.96rem, 1.7vw, 1.15rem);
  line-height: 1.55;
}

.card-example {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.flip-cue {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.flip-cue span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  color: var(--card-accent);
  font-size: 15px;
}

.card-shortcuts {
  display: flex;
  margin: 30px 0 18px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
}

.card-shortcuts kbd {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 -1px rgba(255, 255, 255, .08);
  color: var(--muted-strong);
  font-family: inherit;
  font-size: 9px;
}

.card-shortcuts > span {
  width: 1px;
  height: 12px;
  margin-inline: 7px;
  background: var(--line);
}

.deck-controls {
  display: grid;
  max-width: 650px;
  margin: 0 auto;
  grid-template-columns: 48px 1fr 1fr 48px;
  gap: 10px;
}

.deck-arrow,
.rating-button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 680;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.deck-arrow {
  padding: 0;
  font-size: 18px;
}

.deck-arrow:hover,
.rating-button:hover {
  transform: translateY(-2px);
}

.rating-button span {
  margin-right: 7px;
}

.rating-button.hard:hover,
.rating-button.hard.selected {
  border-color: rgba(255, 127, 143, .35);
  background: rgba(255, 127, 143, .09);
  color: var(--red);
}

.rating-button.known:hover,
.rating-button.known.selected {
  border-color: rgba(137, 240, 192, .35);
  background: rgba(137, 240, 192, .09);
  color: var(--green);
}

.deck-summary {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.deck-summary article {
  display: grid;
  min-height: 96px;
  padding: 19px;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
}

.deck-summary article > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: .1em;
}

.deck-summary article:nth-child(2) > span { color: var(--violet); }
.deck-summary article:nth-child(3) > span { color: var(--pink); }
.deck-summary article div { display: flex; min-width: 0; flex-direction: column; }
.deck-summary strong { font-size: 13px; }
.deck-summary small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.deck-summary b { color: var(--muted-strong); font-size: 10px; white-space: nowrap; }

@media (max-width: 980px) {
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 9px; }
  .hero { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-copy { max-width: 780px; }
  .hero-orbit { width: min(100%, 560px); min-height: 440px; margin: 0 auto; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-top: 18px; }
  .scarcity-layout { grid-template-columns: 1fr; }
  .principle-card, .budget-card { min-height: 390px; }
  .demand-flow { grid-template-columns: 1fr; }
  .flow-stage { display: grid; min-height: auto; padding: 22px; grid-template-columns: auto 58px 1fr; gap: 0 16px; align-items: center; }
  .stage-index { grid-row: 1 / 3; }
  .stage-icon { margin: 0; grid-row: 1 / 3; }
  .flow-stage h3 { margin: 0 0 4px; }
  .flow-operator { display: flex; min-width: 0; height: 44px; gap: 8px; justify-content: center; }
  .needs-showcase { grid-template-columns: 1fr 1fr; }
  .need-card:last-child { grid-column: 1 / -1; min-height: 410px; }
  .need-card:last-child .need-visual { height: 160px; }
  .sorter { grid-template-columns: 1fr; }
  .sorter-feedback { grid-column: 1; }
  .influences { grid-template-columns: 1fr; gap: 28px; }
  .influence-output { grid-column: 1; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .quiz-shell { grid-template-columns: 1fr; gap: 48px; }
  .deck-summary { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --radius-lg: 28px; }
  html { scroll-padding-top: 88px; }
  .section-shell { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header { top: 10px; }
  .nav-shell { width: calc(100% - 20px); min-height: 58px; padding: 6px 7px 6px 15px; border-radius: 19px; }
  .nav-links {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: grid;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(12,14,21,.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(25px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav-shell.open .nav-links { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 12px; }
  .nav-progress { margin-left: auto; }
  .menu-button { display: block; margin-left: 6px; }
  .nav-shell.open .menu-button span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-shell.open .menu-button span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { min-height: auto; padding-top: 150px; padding-bottom: 70px; }
  h1 { font-size: clamp(3.7rem, 17vw, 5.2rem); }
  .hero-lead { margin-top: 25px; font-size: 1rem; }
  .hero-orbit { min-height: 380px; transform: scale(.9); }
  .liquid-core { width: 210px; height: 210px; }
  .orbit-card { width: 190px; padding: 15px; }
  .orbit-card-a { right: 6%; }
  .orbit-card-b { left: 6%; }
  .hero-footer { gap: 14px; justify-content: space-between; }
  .hero-footer div { display: grid; gap: 0; }
  .hero-footer span { font-size: 10px; }
  .learning-section, .sources-section { padding-block: 88px; }
  .flashcards-section { padding-top: 110px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .section-heading > p:last-child { font-size: 15px; }
  .principle-card, .budget-card { min-height: auto; padding: 28px; }
  .principle-card { min-height: 390px; }
  .card-topline { display: grid; }
  .budget-balance { width: fit-content; }
  .choice-grid, .needs-showcase { grid-template-columns: 1fr; }
  .choice-card { min-height: auto; padding: 24px; }
  .need-card, .need-card:last-child { min-height: 430px; grid-column: auto; }
  .sorter { padding: 28px; }
  .sorter-actions { grid-template-columns: 1fr; }
  .perspective-panel { padding: 30px; grid-template-columns: 1fr; gap: 25px; }
  .perspective-divider { width: 100%; height: 1px; }
  .cycle-card { padding: 16px 10px 22px; }
  .cycle-controls { width: 100%; }
  .cycle-controls button { min-width: 0; padding: 0 8px; flex: 1; font-size: 10px; }
  .cycle-visual svg { min-width: 0; margin-left: 0; }
  .cycle-visual { overflow: hidden; }
  .cycle-legend { gap: 10px; flex-wrap: wrap; }
  .cycle-explanation { margin-inline: 12px; }
  .quiz-section { width: calc(100% - 16px); }
  .quiz-shell { min-height: 0; padding: 38px 18px 18px; border-radius: 34px; }
  .quiz-stage { min-height: 400px; padding: 22px 16px; }
  .source-grid { grid-template-columns: minmax(0, 1fr); }
  .source-card strong { overflow: visible; overflow-wrap: anywhere; white-space: normal; }
  .flashcard-app { padding: 18px 12px 24px; border-radius: 30px; }
  .deck-toolbar { display: grid; gap: 10px; }
  .deck-filters { overflow-x: auto; scrollbar-width: none; }
  .deck-filters::-webkit-scrollbar { display: none; }
  .deck-filters button { flex: 0 0 auto; padding-inline: 13px; }
  .shuffle-button { width: 100%; }
  .deck-status, .mastery-track { margin-inline: 8px; }
  .flashcard-stage { height: 410px; }
  .stack-card { inset-inline: 9px; }
  .study-card-face { padding: 28px 24px; border-radius: 25px; }
  .study-card { border-radius: 25px; }
  .card-question { font-size: clamp(2rem, 10.5vw, 3rem); }
  .card-answer-title { font-size: clamp(1.75rem, 9vw, 2.7rem); }
  .card-answer { margin-top: 14px; font-size: .93rem; }
  .card-example { margin-top: 17px; padding-top: 13px; }
  .card-shortcuts { margin-top: 27px; }
  .deck-controls { grid-template-columns: 42px 1fr 1fr 42px; gap: 6px; }
  .deck-arrow, .rating-button { min-height: 47px; border-radius: 13px; font-size: 10px; }
  .rating-button span { display: block; margin: 0; font-size: 13px; }
  .deck-summary article { min-height: 88px; }
  .site-footer { gap: 20px; flex-wrap: wrap; }
  .site-footer p { width: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
