:root {
  color-scheme: light;
  --ink: #33271f;
  --muted: #715f50;
  --cream: #fffaf0;
  --cream-deep: #f6ead5;
  --green: #315d35;
  --green-soft: #eaf4df;
  --red: #a72b24;
  --line: #ead9bd;
  --shadow: 0 16px 38px rgba(91, 61, 31, .13);
}

* { box-sizing: border-box; }

html, body, #app {
  color-scheme: light;
  forced-color-adjust: none;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7f0e4;
  font-family: "Nunito", system-ui, sans-serif;
}

button, a { font: inherit; }

button:focus-visible, a:focus-visible {
  outline: 4px solid #f7c448;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: #fff;
  background: #111;
  border-radius: .5rem;
}

.skip-link:focus { top: 1rem; }

.screen { min-height: 100vh; }

.world {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  background: #171713;
  overflow: hidden;
}

.world::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: linear-gradient(rgba(12, 18, 12, .42), rgba(12, 18, 12, .42)), url("assets/health-world.png") center / cover no-repeat;
  filter: blur(18px) saturate(.78);
  transform: scale(1.04);
}

.world-stage {
  position: relative;
  z-index: 1;
  width: min(100vw, calc(100vh * 1.5988));
  height: min(100vh, calc(100vw / 1.5988));
  aspect-ratio: 1586 / 992;
  overflow: hidden;
  background: #171713;
  box-shadow: 0 0 40px rgba(0,0,0,.28);
}

.world-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.world-title {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

.hotspot {
  position: absolute;
  min-width: 10%;
  min-height: 10%;
  border: 0;
  border-radius: 1rem;
  color: transparent;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}

.hotspot:hover, .hotspot:focus-visible {
  outline: none;
  background: rgba(255, 247, 186, .11);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 185, .38), inset 0 0 12px rgba(255, 224, 112, .18);
}

.world-stage.is-guiding .hotspot {
  animation: guide-area 2.2s ease-in-out 2;
}

@keyframes guide-area {
  0%, 100% { background: transparent; box-shadow: none; }
  50% { background: rgba(255, 247, 175, .115); box-shadow: inset 0 0 0 1px rgba(255, 244, 175, .42), inset 0 0 12px rgba(255, 224, 96, .2); }
}

.hotspot-fruits { left: 8%; top: 21%; width: 28%; height: 36%; }
.hotspot-vegetables { left: 35%; top: 20%; width: 30%; height: 42%; }
.hotspot-grains { right: 4%; top: 20%; width: 31%; height: 42%; }
.hotspot-protein { left: 3%; bottom: 3%; width: 32%; height: 34%; }
.hotspot-herbs { left: 35%; bottom: 2%; width: 30%; height: 36%; }
.hotspot-nuts { right: 2%; bottom: 2%; width: 30%; height: 34%; }

.welcome-help {
  position: fixed;
  z-index: 6;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  color: #fff8e9;
  background: rgba(36, 46, 29, .76);
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.welcome-overlay {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 24, 16, .5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.welcome-overlay.is-open { opacity: 1; pointer-events: auto; }

.welcome-card {
  width: min(92vw, 560px);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid #ead8ba;
  border-radius: 28px;
  color: var(--ink);
  background: #fffaf0;
  box-shadow: 0 30px 80px rgba(0,0,0,.34);
  text-align: center;
}

.welcome-card h2 { margin: .4rem 0 1rem; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.08; }
.welcome-card p { margin: .65rem auto; max-width: 46ch; color: #4a392d; font-size: 1.03rem; font-weight: 600; line-height: 1.55; }
.welcome-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.welcome-actions button { padding: .8rem 1.15rem; border-radius: 999px; font-weight: 800; cursor: pointer; }
.welcome-start { border: 1px solid #315d35; color: #fff; background: #315d35; }
.welcome-skip { border: 1px solid var(--line); color: var(--ink); background: transparent; }

.explore-hint {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 7%;
  transform: translate(-50%, 18px);
  padding: .9rem 1.25rem;
  border: 1px solid rgba(109, 74, 30, .22);
  border-radius: 999px;
  color: #3b2d21;
  background: rgba(255, 249, 231, .96);
  font-weight: 800;
  font-size: 1.02rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.explore-hint span { margin-right: .35rem; color: var(--green); font-size: 1.15em; }

.explore-hint.is-visible { opacity: 1; transform: translate(-50%, 0); }

.page-shell {
  min-height: 100vh;
  padding: 2rem clamp(1rem, 4vw, 4rem) 4rem;
  background: #fbf4e8;
  animation: page-arrive .38s ease-out both;
}

@keyframes page-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: .18s ease both fade-away; }
::view-transition-new(root) { animation: .32s ease both page-arrive; }
@keyframes fade-away { to { opacity: 0; transform: scale(.992); } }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto 2rem;
}

.back-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }

.back-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-weight: 800;
  cursor: pointer;
}

.home-button { color: var(--green); background: #f2f7e9; }

.breadcrumb {
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fruits-page { max-width: 1180px; margin: auto; }

.page-heading { text-align: center; margin: 2rem 0 3rem; }
.eyebrow { color: var(--green); font-weight: 800; letter-spacing: .13em; font-size: .75rem; }
h1, h2 { font-family: "Lora", Georgia, serif; }
.page-heading h1 { margin: .35rem 0 .7rem; font-size: clamp(3rem, 8vw, 6rem); }
.page-heading p { margin: 0; color: var(--muted); font-size: 1.1rem; }

.fruit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.fruit-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  min-height: 210px;
  color: var(--ink);
  background: #fffaf0;
  box-shadow: 0 4px 12px rgba(91,61,31,.06);
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fruit-card:hover { transform: translateY(-5px); border-color: var(--fruit-color, var(--line)); box-shadow: 0 12px 24px color-mix(in srgb, var(--fruit-color, #5b3d1f) 18%, transparent); }
.fruit-card:hover .realistic-fruit { transform: scale(1.08) rotate(-2deg); }
.fruit-card[disabled] { opacity: .7; cursor: default; }
.fruit-card[disabled]:hover { transform: none; box-shadow: 0 4px 12px rgba(91,61,31,.06); }
.fruit-emoji { display: block; font-size: 5rem; line-height: 1.15; filter: drop-shadow(0 8px 8px rgba(67,41,20,.16)); }
.fruit-name { display: block; margin-top: .75rem; font-family: "Lora", serif; font-size: 1.25rem; font-weight: 700; }
.fruit-status { display: block; color: var(--muted); font-size: .75rem; margin-top: .25rem; }
.realistic-card { background: #fffaf0; }
.realistic-fruit-wrap { display: grid; place-items: center; height: 124px; padding: 4px; overflow: visible; }
.realistic-fruit { display: block; width: 116px; height: 116px; object-fit: contain; transition: transform .3s ease; }

.food-page { --food-accent: var(--red); --food-soft: #f7d3d4; --food-tint: #eff7e8; }
.food-page .eyebrow, .food-page .serving, .food-page .part h3 { color: var(--food-accent); }
.food-page .serving { background: var(--food-soft); }
.food-page .nutrient-card { background: var(--food-tint); }
.food-page .metric strong { color: var(--food-accent); }
.food-page .metric { border-color: color-mix(in srgb, var(--food-accent) 24%, #ead4ae); background: color-mix(in srgb, var(--food-soft) 45%, #fffaf0); }

.apple-grid, .food-grid {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(560px, 1.2fr);
  gap: 1.5rem;
  max-width: 1320px;
  margin: auto;
}

.card {
  border: 1px solid rgba(225,205,174,.8);
  border-radius: 26px;
  background: rgba(255,252,245,.88);
  box-shadow: var(--shadow);
}

.apple-hero, .food-hero {
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: 2rem;
}

.apple-hero h1, .food-hero h1 { margin: .35rem 0 .25rem; font-size: clamp(2.4rem, 4vw, 4rem); }
.intro { margin: 0; color: var(--muted); font-size: 1.05rem; }
.apple-art, .food-art { position: relative; display: grid; place-items: center; flex: 1; min-height: 330px; isolation: isolate; }
.apple-photo, .food-photo {
  display: block;
  width: min(100%, 455px);
  max-height: 445px;
  object-fit: contain;
  filter: drop-shadow(0 22px 14px rgba(76,34,16,.16));
  animation: fruit-arrive .72s cubic-bezier(.2,.8,.2,1) both;
}
.fruit-orbit { display: none; }
@keyframes fruit-arrive { from { opacity: 0; transform: translateY(28px) scale(.72) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes orbit-arrive { from { opacity: 0; transform: scale(.5); } }
.serving { align-self: center; padding: .7rem 1rem; border-radius: 999px; color: var(--green); background: #e5f2d9; font-weight: 800; text-align: center; }

.apple-info, .food-info { display: grid; gap: 1.25rem; }
.food-info > * { animation: card-rise .5s ease-out both; }
.food-info > :nth-child(2) { animation-delay: .07s; }
.food-info > :nth-child(3) { animation-delay: .14s; }
.food-info > :nth-child(4) { animation-delay: .21s; }
.food-info > :nth-child(5) { animation-delay: .28s; }
@keyframes card-rise { from { opacity: 0; transform: translateY(14px); } }
.info-card { padding: 1.5rem; }
.info-card h2 { margin: 0 0 .35rem; font-size: 1.7rem; }
.info-note { margin: 0 0 1.15rem; color: var(--muted); font-size: .9rem; }
.nutrient-card { background: #eff7e8; }

.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; }
.metric { padding: 1rem .5rem; border: 1px solid #ead4ae; border-radius: 16px; background: #fff3dc; text-align: center; }
.metric strong { display: block; color: var(--red); font-size: 1.25rem; }
.metric span { color: var(--muted); font-size: .72rem; }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { padding: .7rem 1.1rem; border: 0; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.nutrient-button { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.nutrient-button span { font-size: 1rem; line-height: 1; opacity: .65; }
.nutrient-button:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(75, 49, 28, .13); }
.chip:nth-child(1) { background: #ffe2c7; color: #9e411c; }
.chip:nth-child(2) { background: #dcefd0; color: #315d35; }
.chip:nth-child(3) { background: #e8dafa; color: #684393; }
.chip:nth-child(4) { background: #d1eee4; color: #245f50; }
.chip:nth-child(5) { background: #f7d3d4; color: #8e2527; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.part { padding: 1rem; border-radius: 16px; }
.part:nth-child(1) { background: #dcefd0; }
.part:nth-child(2) { background: #ffead0; }
.part:nth-child(3) { background: #f0dede; }
.part h3 { margin: 0 0 .5rem; color: var(--green); font-size: .78rem; letter-spacing: .05em; }
.part p { margin: 0; color: #5e5147; font-size: .82rem; line-height: 1.45; }

.glossary-card {
  display: grid;
  grid-template-columns: minmax(175px, .55fr) 1.45fr;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: #f4ecfb;
}

.glossary-intro h2 { margin: .25rem 0 0; font-size: 1.45rem; }
.glossary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; }
.glossary-list div { padding-left: .8rem; border-left: 2px solid #d5c0e9; }
.glossary-list dt { color: #684393; font-weight: 800; }
.glossary-list dd { margin: .3rem 0 0; color: #5e5147; font-size: .78rem; line-height: 1.4; }

.fun-facts { position: relative; overflow: hidden; padding: 1.45rem 1.6rem; background: linear-gradient(120deg, #fffaf0, var(--food-soft)); }
.fun-facts::after { content: "?"; position: absolute; right: 1rem; bottom: -2.5rem; color: color-mix(in srgb, var(--food-accent) 14%, transparent); font-family: "Lora", serif; font-size: 9rem; font-weight: 700; line-height: 1; }
.fun-facts h2 { margin: .25rem 0 .7rem; }
.fun-facts ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2rem; margin: 0; padding-left: 1.25rem; color: #5e5147; line-height: 1.45; }

.nutrient-dialog {
  width: min(92vw, 940px);
  max-height: 90vh;
  padding: 0;
  border: 1px solid #dfceb4;
  border-radius: 28px;
  color: var(--ink);
  background: #fffaf0;
  box-shadow: 0 30px 90px rgba(41, 29, 18, .34);
  overflow-y: auto;
}
.nutrient-dialog::backdrop { background: rgba(28, 28, 22, .58); backdrop-filter: blur(5px); }
.nutrient-dialog[open] { animation: modal-in .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.nutrient-dialog-inner { position: relative; padding: clamp(1.3rem, 3vw, 2.2rem); }
.nutrient-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-size: 1.6rem; cursor: pointer; }
.nutrient-modal-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding-right: 3rem; }
.nutrient-symbol { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 22px; color: #fff; background: var(--food-accent); font-family: "Lora", serif; font-size: 1.45rem; font-weight: 800; box-shadow: inset 0 -8px 18px rgba(0,0,0,.12); }
.nutrient-modal-head h2 { margin: .15rem 0 .25rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.nutrient-modal-head p { margin: 0; max-width: 58ch; color: #4b3d33; font-weight: 650; line-height: 1.5; }
.compound-note { margin: 1.25rem 0 0; padding: .85rem 1rem; border-left: 4px solid var(--food-accent); border-radius: 0 12px 12px 0; background: var(--food-tint); color: #56483e; }
.science-view { display: grid; grid-template-columns: minmax(210px, .72fr) 1.28fr; gap: .85rem; margin: 1.25rem 0; }
.structure-card, .journey-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: #fffdf8; }
.structure-card { display: grid; grid-template-columns: 100px 1fr; grid-template-areas: "label label" "sketch formula" "sketch heading" "sketch copy"; column-gap: 1rem; align-items: center; }
.structure-card > .eyebrow { grid-area: label; }
.structure-card h3 { grid-area: heading; margin: .1rem 0; font-family: "Lora", serif; }
.structure-card p { grid-area: copy; margin: .2rem 0 0; color: #493b32; font-size: .78rem; font-weight: 600; line-height: 1.4; }
.science-formula { grid-area: formula; align-self: end; color: var(--food-accent); font-size: 1rem; }
.molecule-sketch { grid-area: sketch; position: relative; width: 92px; height: 92px; margin-top: .55rem; }
.molecule-sketch i { position: absolute; z-index: 2; width: 22px; height: 22px; border: 4px solid #fff; border-radius: 50%; background: var(--food-accent); box-shadow: 0 2px 5px rgba(45,28,15,.18); }
.molecule-sketch i:nth-child(1) { left: 8px; top: 34px; }
.molecule-sketch i:nth-child(2) { left: 35px; top: 9px; }
.molecule-sketch i:nth-child(3) { right: 5px; top: 36px; background: #df8b39; }
.molecule-sketch i:nth-child(4) { left: 36px; bottom: 5px; background: #6b9f4c; }
.molecule-sketch i:nth-child(5) { display: none; left: 35px; top: 35px; background: #8761a2; }
.molecule-sketch b { position: absolute; z-index: 1; left: 19px; top: 42px; width: 48px; height: 5px; border-radius: 4px; background: #b59a7a; transform-origin: left center; }
.molecule-sketch b:nth-of-type(2) { transform: rotate(-42deg); }
.molecule-sketch b:nth-of-type(3) { transform: rotate(43deg); }
.molecule-sketch b:nth-of-type(4) { left: 46px; top: 20px; transform: rotate(44deg); }
.shape-ion i:not(:first-child), .shape-ion b { display: none; }
.shape-ion i:first-child { left: 24px; top: 22px; width: 48px; height: 48px; border-width: 6px; }
.shape-chain i:nth-child(5), .shape-rings i:nth-child(5), .shape-linked i:nth-child(5) { display: block; }
.shape-chain { transform: rotate(-12deg); }
.shape-tail b:nth-of-type(1) { width: 65px; transform: rotate(12deg); }
.shape-kink b:nth-of-type(1) { width: 35px; transform: rotate(18deg); }
.shape-kink b:nth-of-type(2) { left: 49px; top: 54px; width: 34px; transform: rotate(-34deg); }
.journey-card h3 { margin: .12rem 0 .75rem; font-family: "Lora", serif; }
.journey-card ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin: 0; padding: 0; list-style: none; }
.journey-card li { position: relative; min-width: 0; text-align: center; }
.journey-card li:not(:last-child)::after { content: "→"; position: absolute; top: 17px; right: -.35rem; color: var(--food-accent); font-weight: 900; }
.journey-card li > b { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto .35rem; border-radius: 50%; background: var(--food-tint); font-size: 1.15rem; }
.journey-card li strong, .journey-card li span { display: block; }
.journey-card li strong { color: #3e3028; font-size: .72rem; }
.journey-card li span { margin-top: .18rem; color: #66564a; font-size: .61rem; font-weight: 600; line-height: 1.3; }
.body-map { display: grid; grid-template-columns: minmax(180px, .65fr) 1.35fr; align-items: center; gap: 1.4rem; margin: 1.5rem 0; padding: 1.2rem 1.4rem; border-radius: 22px; background: linear-gradient(125deg, var(--food-tint), #fffaf0); }
.body-map h3 { margin: .15rem 0 .75rem; font-family: "Lora", serif; font-size: 1.45rem; }
.body-map-intro { margin: -.35rem 0 0; color: #514238; font-size: .84rem; font-weight: 650; line-height: 1.45; }
.body-tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.body-tags span { display: grid; place-items: center; min-width: 112px; min-height: 84px; gap: .25rem; padding: .65rem .8rem; border: 1px solid color-mix(in srgb, var(--food-accent) 22%, #ddd); border-radius: 16px; background: rgba(255,255,255,.84); color: #3f332b; text-align: center; font-size: .82rem; box-shadow: 0 4px 10px rgba(67,45,25,.06); }
.body-tags b { font-size: 1.75rem; }
.nutrient-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.nutrient-detail-grid section { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 17px; background: #fffdf8; }
.nutrient-detail-grid .low-card { background: #fff7df; }
.nutrient-detail-grid .high-card { background: #fff0ed; }
.nutrient-detail-grid h3 { margin: 0 0 .45rem; color: var(--food-accent); font-family: "Lora", serif; font-size: 1.05rem; }
.nutrient-detail-grid p { margin: 0; color: #44372e; font-size: .86rem; font-weight: 600; line-height: 1.55; }
.word-guide { display: grid; grid-template-columns: minmax(190px, .65fr) 1.35fr; gap: 1rem; margin-top: .9rem; padding: 1rem 1.1rem; border: 1px solid #ddcde9; border-radius: 18px; background: #f7f0fb; }
.word-guide h3 { margin: .18rem 0 0; font-family: "Lora", serif; font-size: 1.15rem; }
.word-guide dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0; }
.word-guide dl div { padding-left: .7rem; border-left: 2px solid #cdb3df; }
.word-guide dt { color: #593b72; font-weight: 900; }
.word-guide dd { margin: .25rem 0 0; color: #44384b; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.nutrient-source { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .76rem; }
.nutrient-source a { color: var(--food-accent); font-weight: 800; }

.protein-hub { max-width: 1260px; }
.category-explainer { display: flex; align-items: center; gap: 1rem; max-width: 880px; margin: -1.4rem auto 2rem; padding: .85rem 1rem; border: 1px solid #d9c7ad; border-radius: 18px; background: #fffaf0; color: #58493d; font-size: .86rem; }
.category-explainer strong { flex: 0 0 auto; color: #24623a; }
.protein-source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.protein-source-card { display: grid; grid-template-rows: 190px 1fr; min-width: 0; overflow: hidden; padding: 0; border: 1px solid color-mix(in srgb, var(--source-color) 25%, #ddcfbb); border-radius: 24px; background: #fffdf7; color: #33271f; text-align: left; box-shadow: 0 9px 20px rgba(64,45,24,.08); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.protein-source-card:hover { transform: translateY(-4px); box-shadow: 0 15px 28px rgba(64,45,24,.14); }
.source-art { display: grid; place-items: center; background: linear-gradient(150deg, var(--source-soft), #fffdf8 80%); }
.source-art img { width: 90%; height: 180px; object-fit: contain; }
.protein-source-card > span:last-child { display: grid; align-content: start; gap: .45rem; padding: 1rem 1.05rem 1.1rem; }
.protein-source-card b { font-family: "Lora", serif; font-size: 1.25rem; }
.protein-source-card small { color: #66574c; font-size: .78rem; font-weight: 650; line-height: 1.45; }
.protein-source-card em { margin-top: .25rem; color: var(--source-color); font-size: .75rem; font-style: normal; font-weight: 900; }
.source-layout { display: grid; grid-template-columns: minmax(330px, .72fr) 1.28fr; gap: 1.35rem; max-width: 1320px; margin: 0 auto; }
.source-hero { position: sticky; top: 1rem; align-self: start; display: grid; min-height: 680px; padding: 2rem; overflow: hidden; }
.source-hero h1 { margin: .2rem 0 .5rem; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.source-hero > p { margin: 0; color: #594a3e; line-height: 1.55; }
.source-hero > img { width: 100%; height: 330px; margin: .7rem auto; object-fit: contain; }
.source-fact { align-self: end; display: grid; gap: .3rem; padding: 1rem; border-radius: 18px; background: var(--source-soft); }
.source-fact strong { color: var(--source-color); }
.source-fact span { color: #493b32; font-size: .83rem; font-weight: 650; line-height: 1.45; }
.source-content > header { padding: 1rem .2rem; }
.source-content > header h2 { margin: 0; font-family: "Lora", serif; font-size: 2rem; }
.source-content > header p { margin: .35rem 0 0; color: #68584c; }
.cut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.cut-card { min-height: 205px; padding: 1.2rem; border: 1px solid color-mix(in srgb, var(--source-color) 24%, #d8cbb9); border-radius: 20px; background: #fffdf8; color: #362a22; text-align: left; box-shadow: 0 8px 18px rgba(63,43,25,.07); cursor: pointer; }
.cut-card:hover { border-color: var(--source-color); background: color-mix(in srgb, var(--source-soft) 28%, #fff); }
.cut-card span { display: block; color: var(--source-color); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cut-card strong { display: block; margin: .35rem 0; font-family: "Lora", serif; font-size: 1.3rem; }
.cut-card p { margin: 0; color: #66574c; font-size: .8rem; font-weight: 620; line-height: 1.45; }
.cut-card em { display: block; margin-top: .7rem; color: var(--source-color); font-size: .72rem; font-style: normal; font-weight: 900; }
.fitness-principle { margin-top: 1rem; padding: 1.5rem; border-color: #b7d3bd; background: #f4faf3; }
.fitness-principle h2 { margin: .2rem 0 .7rem; font-size: 1.5rem; }
.fitness-principle p { color: #3f4b3e; font-size: .85rem; line-height: 1.5; }
.protein-dialog { width: min(740px, calc(100vw - 2rem)); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 28px; background: #fffdf8; box-shadow: 0 26px 80px rgba(35,25,17,.35); }
.protein-dialog::backdrop { background: rgba(31,24,18,.62); backdrop-filter: blur(4px); }
.protein-dialog-inner { position: relative; display: grid; gap: .8rem; padding: 1.6rem; }
.protein-close { position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eee4d7; color: #3d3027; font-size: 1.5rem; cursor: pointer; }
.protein-profile-heading { padding-right: 3rem; }
.protein-profile-heading h2 { margin: .2rem 0 .3rem; font-size: 2.4rem; }
.profile-section { padding: 1rem 1.1rem; border: 1px solid #e2d6c7; border-radius: 18px; background: #fffaf1; }
.profile-section h3 { margin: 0 0 .35rem; font-family: "Lora", serif; font-size: 1.05rem; }
.profile-section p { margin: 0; color: #4f4137; font-size: .87rem; font-weight: 620; line-height: 1.55; }
.profile-section a { display: inline-block; margin-top: .5rem; color: #17624b; font-size: .76rem; font-weight: 900; }
.cooking-section { background: #fff5db; }
.fit-section { background: #eef8ed; }
.mercury-section { background: #edf7fa; }

.coming-soon {
  display: grid;
  place-items: center;
  max-width: 800px;
  min-height: 55vh;
  margin: auto;
  padding: 3rem;
  text-align: center;
}

@media (max-width: 900px) {
  .apple-grid, .food-grid { grid-template-columns: 1fr; }
  .apple-hero, .food-hero { min-height: 620px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:last-child { grid-column: 1 / -1; }
  .glossary-card { grid-template-columns: 1fr; }
  .protein-source-grid { grid-template-columns: repeat(2, 1fr); }
  .source-layout { grid-template-columns: 1fr; }
  .source-hero { position: static; min-height: 0; }
}

@media (max-width: 620px) {
  .world-stage { width: 100%; height: 100%; aspect-ratio: auto; }
  .world-art { object-fit: cover; object-position: 47% center; }
  .topbar { align-items: flex-start; }
  .breadcrumb { max-width: 48%; text-align: right; }
  .page-shell { padding: 1.25rem .9rem 3rem; }
  .parts { grid-template-columns: 1fr; }
  .glossary-list { grid-template-columns: 1fr; }
  .apple-hero, .food-hero, .info-card { padding: 1.25rem; }
  .fun-facts ul { grid-template-columns: 1fr; }
  .nutrient-dialog { width: calc(100vw - 1rem); max-height: 94vh; border-radius: 22px; }
  .nutrient-modal-head { grid-template-columns: 1fr; }
  .nutrient-symbol { width: 60px; height: 60px; border-radius: 17px; }
  .body-map { grid-template-columns: 1fr; padding: 1rem; }
  .body-tags span { flex: 1 1 100px; min-width: 96px; }
  .nutrient-detail-grid { grid-template-columns: 1fr; }
  .word-guide { grid-template-columns: 1fr; }
  .word-guide dl { grid-template-columns: 1fr; }
  .science-view { grid-template-columns: 1fr; }
  .journey-card ol { grid-template-columns: 1fr; gap: .55rem; }
  .journey-card li { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: .55rem; text-align: left; }
  .journey-card li:not(:last-child)::after { content: "↓"; left: 14px; right: auto; top: 35px; }
  .journey-card li > b { margin: 0; }
  .nutrient-source { flex-direction: column; }
  .fruit-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .fruit-card { min-height: 170px; padding: .85rem; }
  .fruit-emoji { font-size: 3.8rem; }
  .category-explainer { align-items: flex-start; flex-direction: column; }
  .protein-source-grid, .cut-grid { grid-template-columns: 1fr; }
  .protein-source-card { grid-template-columns: 115px 1fr; grid-template-rows: 1fr; }
  .source-art img { height: 130px; }
  .source-hero { padding: 1.25rem; }
  .source-hero > img { height: 240px; }
  .protein-profile-heading h2 { font-size: 1.9rem; }
}

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