:root {
  --ink: #231c19;
  --muted: #6e625b;
  --paper: #f7f1e7;
  --cream: #fffaf2;
  --wine: #7f1d2d;
  --wine-dark: #56131f;
  --terracotta: #c85735;
  --gold: #e6a83f;
  --leaf: #2f6a50;
  --leaf-light: #9db99f;
  --line: rgba(73, 49, 39, .16);
  --shadow: 0 24px 70px rgba(55, 31, 23, .13);
  --radius: 24px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -100px; padding: 12px 18px; background: #fff; border-radius: 12px; }
.skip-link:focus { top: 16px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar { position: sticky; z-index: 100; top: 0; height: 78px; display: flex; align-items: center; gap: 32px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgba(247, 241, 231, .94); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--wine); border-radius: 50% 50% 47% 53% / 49% 43% 57% 51%; font: 700 14px var(--serif); letter-spacing: .06em; box-shadow: inset 0 0 0 4px rgba(255,255,255,.15); }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font: 700 19px var(--serif); }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 28px; margin-left: auto; }
.desktop-nav a { position: relative; color: #51443e; font-size: 13px; font-weight: 700; text-decoration: none; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--wine); transition: right .25s ease; }
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.progress-pill { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; }
.progress-ring { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--leaf) var(--progress, 0%), rgba(47,106,80,.14) 0); }
.progress-ring::before { content: ""; grid-area: 1/1; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); }
.progress-ring span { z-index: 1; grid-area: 1/1; font-size: 9px; font-weight: 800; }
.progress-copy { color: var(--muted); font-size: 11px; font-weight: 700; }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: 999px; }
.lang-button { width: 38px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.lang-button.active { color: #fff; background: var(--wine); }

.hero { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; min-height: 690px; max-width: 1360px; margin: 0 auto; padding: 72px max(32px, calc((100% - 1180px) / 2)) 68px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 52% 0 0; pointer-events: none; background-image: radial-gradient(rgba(127,29,45,.11) .8px, transparent .8px); background-size: 12px 12px; mask-image: linear-gradient(90deg, #000, transparent); }
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: 650px; }
.eyebrow, .kicker { color: var(--wine); font-size: 11px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(230,168,63,.18); }
h1 { max-width: 670px; margin: 22px 0 22px; font: 600 clamp(52px, 6.1vw, 86px)/.96 var(--serif); letter-spacing: -.045em; }
h1 em { color: var(--wine); font-weight: 500; }
.hero-lead { max-width: 580px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.72; }
.hero-cta { display: flex; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 28px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(68,37,28,.13); }
.button-primary { color: #fff; background: var(--wine); border-color: var(--wine); }
.button-ghost { background: rgba(255,255,255,.42); }
.hero-stats { display: flex; align-items: stretch; gap: 0; margin-top: 42px; }
.hero-stats div { min-width: 118px; padding-right: 26px; }
.hero-stats div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font: 700 28px var(--serif); }
.hero-stats span { max-width: 90px; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }

.hero-art { position: relative; min-height: 530px; align-self: center; }
.sun-disc { position: absolute; width: 420px; height: 420px; top: 44px; left: 54%; transform: translateX(-50%); border-radius: 50%; background: #ead9c1; box-shadow: inset 0 0 0 38px rgba(255,255,255,.22); }
.sun-disc::before, .sun-disc::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(127,29,45,.18); }
.sun-disc::before { inset: 26px; }
.sun-disc::after { inset: 70px; }
.plate { position: absolute; z-index: 2; display: grid; place-items: center; width: 340px; height: 340px; top: 82px; left: 54%; transform: translateX(-50%) rotate(-5deg); border-radius: 50%; background: #fffdf8; box-shadow: 0 36px 65px rgba(72,41,28,.2), inset 0 0 0 17px #efe6d8, inset 0 0 0 20px #d5c7b6; }
.plate-rim { position: relative; width: 252px; height: 252px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 45% 45%, #fff9e7 0 24%, #e7c96e 25% 33%, #d66947 34% 39%, #f4e1b5 40% 48%, #78a98a 49% 58%, #f8f0d8 59%); }
.plate-label { position: absolute; inset: 73px 47px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; border: 1px solid rgba(127,29,45,.2); border-radius: 50%; background: rgba(255,250,242,.91); text-align: center; backdrop-filter: blur(6px); }
.plate-label small { color: var(--wine); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.plate-label strong { margin: 3px 0; font: 700 25px var(--serif); }
.plate-label span { color: var(--muted); font-size: 10px; }
.ingredient { position: absolute; display: block; border-radius: 50%; background: var(--wine); box-shadow: inset 0 0 0 5px rgba(255,255,255,.38); }
.ing-1 { width: 32px; height: 32px; top: 18px; left: 84px; background: #a6bd64; }
.ing-2 { width: 23px; height: 23px; top: 58px; right: 23px; background: #a83b35; }
.ing-3 { width: 42px; height: 19px; bottom: 47px; right: 19px; background: #854329; transform: rotate(35deg); border-radius: 60%; }
.ing-4 { width: 28px; height: 28px; bottom: 23px; left: 80px; background: #d9a33c; }
.ing-5 { width: 18px; height: 46px; top: 88px; left: 22px; background: #a85e9b; transform: rotate(27deg); border-radius: 60%; }
.ing-6 { width: 28px; height: 13px; top: 45px; left: 49px; background: #557d4b; transform: rotate(-25deg); border-radius: 60%; }
.float-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(105,73,57,.14); border-radius: 16px; background: rgba(255,253,248,.91); box-shadow: 0 20px 38px rgba(62,36,27,.14); backdrop-filter: blur(12px); }
.float-card small, .float-card strong { display: block; }
.float-card small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.float-card strong { margin-top: 2px; font: 700 16px var(--serif); }
.fruit-card { top: 42px; right: 4px; animation: drift 5s ease-in-out infinite; }
.fruit-orb { width: 45px; height: 45px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b5 0 10%, #e9a72f 12% 61%, #a85824 64% 67%, #d98d2d 69%); box-shadow: 8px 7px 0 -2px #d98522; }
.fact-card { left: 5px; bottom: 66px; animation: drift 5.5s ease-in-out .4s infinite reverse; }
.fact-card > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--leaf); }
@keyframes drift { 50% { transform: translateY(-8px); } }

.source-note { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; border: 1px solid rgba(127,29,45,.16); border-left: 4px solid var(--wine); background: #f3e7db; border-radius: 16px; }
.source-note .note-icon { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--wine); font: italic 700 16px var(--serif); }
.source-note strong { font: 700 17px var(--serif); }
.source-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.section { padding-top: 105px; padding-bottom: 112px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading h2 { max-width: 650px; margin: 8px 0 0; font: 600 clamp(36px, 4vw, 55px)/1.04 var(--serif); letter-spacing: -.035em; }
.section-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.filter-row { display: flex; gap: 9px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.4); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.filter b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(35,28,25,.08); font-size: 9px; }
.filter.active { color: #fff; border-color: var(--wine); background: var(--wine); }
.filter.active b { background: rgba(255,255,255,.16); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.learn-card { position: relative; min-height: 285px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.76); cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.learn-card:hover { transform: translateY(-5px); border-color: rgba(127,29,45,.3); box-shadow: var(--shadow); }
.learn-card::after { content: attr(data-letter); position: absolute; right: -6px; bottom: -34px; color: rgba(127,29,45,.05); font: 700 145px/1 var(--serif); }
.learn-card.has-photo { min-height: 405px; padding-top: 0; }
.card-photo { position: relative; z-index: 2; height: 170px; margin: 0 -24px 22px; overflow: hidden; background: var(--card-soft); }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.learn-card.has-photo:hover .card-photo img { transform: scale(1.04); }
.card-photo .source-badge { position: absolute; top: 14px; right: 14px; background: rgba(255,253,248,.9); box-shadow: 0 3px 14px rgba(30,20,15,.13); backdrop-filter: blur(8px); }
.card-photo .source-badge.extra { background: rgba(245,252,247,.92); }
.card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.type-icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 17px; background: var(--card-soft); font-size: 27px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.source-badge { padding: 7px 10px; border-radius: 999px; color: var(--wine); background: rgba(127,29,45,.08); font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.source-badge.extra { color: var(--leaf); background: rgba(47,106,80,.1); }
.learn-card h3 { position: relative; z-index: 1; margin: 28px 0 8px; font: 700 27px/1.05 var(--serif); letter-spacing: -.025em; }
.learn-card.has-photo h3 { margin-top: 0; }
.learn-card p { position: relative; z-index: 1; display: -webkit-box; min-height: 62px; margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.card-foot span:last-child { color: var(--wine); font-size: 18px; }

.region-section { padding: 105px 0 112px; color: #fff; background: var(--wine-dark); overflow: hidden; }
.section-heading.light .kicker { color: #efbd69; }
.section-heading.light > p { color: rgba(255,255,255,.66); }
.region-stage { display: grid; grid-template-columns: 330px 1fr; min-height: 480px; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.04); }
.region-tabs { padding: 16px; border-right: 1px solid rgba(255,255,255,.13); }
.region-tab { width: 100%; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; gap: 2px 10px; padding: 21px 17px; border: 0; border-radius: 17px; color: rgba(255,255,255,.58); background: transparent; text-align: left; cursor: pointer; }
.region-tab + .region-tab { margin-top: 8px; }
.region-tab > span { grid-row: 1 / 3; align-self: center; font: italic 600 19px var(--serif); }
.region-tab strong { color: inherit; font: 700 21px var(--serif); }
.region-tab small { font-size: 10px; }
.region-tab.active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 #efbd69; }
.region-panel { position: relative; min-width: 0; padding: 46px; overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(230,168,63,.15), transparent 35%); }
.region-panel::after { content: attr(data-number); position: absolute; right: -10px; bottom: -80px; color: rgba(255,255,255,.035); font: 700 340px/1 var(--serif); }
.region-panel h3 { position: relative; z-index: 1; margin: 0; font: 600 42px/1.05 var(--serif); }
.region-panel > p { position: relative; z-index: 1; max-width: 620px; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.7; }
.region-items { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.region-item { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.055); }
.region-item span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 19px; }
.region-item strong { font: 700 15px var(--serif); }
.region-item small { display: block; color: rgba(255,255,255,.52); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }

.practice-tabs { display: flex; gap: 8px; width: fit-content; margin-bottom: 18px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); }
.practice-tab { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.practice-tab.active { color: #fff; background: var(--ink); }
.practice-shell { min-height: 455px; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: #efe4d5; box-shadow: inset 0 0 80px rgba(127,29,45,.03); }
.flash-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 30px; height: 100%; min-height: 385px; }
.practice-guide { align-self: center; padding: 25px; }
.practice-guide .mini-label { color: var(--wine); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.practice-guide h3 { margin: 12px 0; font: 600 35px/1.08 var(--serif); }
.practice-guide p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.mini-progress { display: flex; align-items: center; gap: 13px; margin-top: 25px; color: var(--muted); font-size: 10px; font-weight: 800; }
.mini-progress-track { flex: 1; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(35,28,25,.1); }
.mini-progress-track span { display: block; width: var(--width, 0%); height: 100%; background: var(--wine); }
.flash-card { position: relative; min-height: 385px; perspective: 1200px; cursor: pointer; }
.flash-card-inner { position: absolute; inset: 0; display: grid; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.75,.2,1); }
.flash-card.flipped .flash-card-inner { transform: rotateY(180deg); }
.flash-face { grid-area: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; backface-visibility: hidden; border-radius: 22px; color: #fff; background: var(--wine); text-align: center; box-shadow: 0 23px 45px rgba(76,28,35,.2); }
.flash-face.back { transform: rotateY(180deg); color: var(--ink); background: #fffaf2; }
.flash-face .flash-icon { font-size: 46px; }
.flash-face small { margin-top: 22px; font-size: 9px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; opacity: .65; }
.flash-face h3 { margin: 10px 0; font: 600 clamp(35px, 5vw, 58px)/1 var(--serif); }
.flash-face p { max-width: 470px; margin: 7px 0; font-size: 14px; line-height: 1.65; opacity: .78; }
.flash-face .tap { position: absolute; bottom: 22px; font-size: 10px; opacity: .55; }
.flash-actions { position: absolute; z-index: 4; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; pointer-events: none; }
.circle-button { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; pointer-events: auto; }
.flash-card.flipped .circle-button { color: var(--wine); border-color: var(--line); }
.activity-card { max-width: 760px; margin: 0 auto; padding: 28px; border-radius: 22px; background: #fffaf2; text-align: center; box-shadow: var(--shadow); }
.activity-card .activity-count { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.activity-symbol { display: grid; place-items: center; width: 74px; height: 74px; margin: 18px auto; border-radius: 22px; background: #f1e2d2; font-size: 36px; }
.activity-card h3 { margin: 5px 0 10px; font: 700 34px var(--serif); }
.activity-card > p { color: var(--muted); font-size: 13px; }
.answer-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 25px; }
.answer-button { min-height: 52px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.answer-button:hover { border-color: var(--wine); }
.answer-button.correct { color: #fff; border-color: var(--leaf); background: var(--leaf); }
.answer-button.wrong { color: #fff; border-color: var(--wine); background: var(--wine); }
.activity-feedback { min-height: 28px; margin-top: 17px; color: var(--muted); font-size: 12px; font-weight: 700; }
.activity-next { margin: 5px auto 0; }

.quiz-section { position: relative; padding: 110px 0; overflow: hidden; color: #fff; background: var(--leaf); }
.quiz-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.quiz-intro .kicker { color: #f3ca78; }
.quiz-intro h2 { max-width: 500px; margin: 12px 0 18px; font: 600 clamp(40px, 4.5vw, 62px)/1.03 var(--serif); letter-spacing: -.04em; }
.quiz-intro > p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.75; }
.quiz-features { display: flex; gap: 25px; margin-top: 32px; }
.quiz-features span { min-width: 80px; }
.quiz-features b, .quiz-features small { display: block; }
.quiz-features b { font: 700 22px var(--serif); }
.quiz-features small { color: rgba(255,255,255,.55); font-size: 9px; }
.quiz-card { min-height: 460px; padding: 36px; border-radius: 28px; color: var(--ink); background: #fffaf2; box-shadow: 0 30px 70px rgba(17,45,32,.28); }
.quiz-start { display: flex; min-height: 385px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.quiz-start-icon { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; color: var(--wine); background: #efe1d4; font: 700 34px var(--serif); }
.quiz-start h3 { margin: 22px 0 8px; font: 700 34px var(--serif); }
.quiz-start p { max-width: 400px; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quiz-counter { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.quiz-progress { flex: 1; height: 6px; border-radius: 99px; background: rgba(35,28,25,.1); }
.quiz-progress span { display: block; width: var(--width); height: 100%; border-radius: inherit; background: var(--leaf); transition: width .25s; }
.quiz-question-type { display: inline-block; margin-top: 28px; color: var(--wine); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.quiz-card h3.question { min-height: 76px; margin: 9px 0 25px; font: 600 29px/1.2 var(--serif); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-option { min-height: 57px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; }
.quiz-option:hover { border-color: var(--leaf); }
.quiz-option.selected { color: #fff; border-color: var(--leaf); background: var(--leaf); }
.typed-wrap { margin-top: 5px; }
.typed-wrap input { width: 100%; height: 58px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.typed-wrap small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.quiz-nav { display: flex; justify-content: flex-end; margin-top: 25px; }
.quiz-nav .button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.result-score { display: grid; place-items: center; width: 105px; height: 105px; margin: 10px auto 18px; border-radius: 50%; color: #fff; background: var(--leaf); font: 700 30px var(--serif); box-shadow: 0 0 0 12px rgba(47,106,80,.12); }
.result-title { margin: 0; text-align: center; font: 700 33px var(--serif); }
.result-copy { text-align: center; color: var(--muted); font-size: 13px; }
.result-breakdown { max-height: 150px; margin: 18px 0; overflow-y: auto; border-top: 1px solid var(--line); }
.result-row { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.result-row b.ok { color: var(--leaf); }
.result-row b.no { color: var(--wine); }
.result-actions { display: flex; justify-content: center; gap: 8px; }
.quiz-decoration { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.qd-one { width: 430px; height: 430px; left: -250px; top: -100px; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.qd-two { width: 300px; height: 300px; right: -160px; bottom: -100px; box-shadow: 0 0 0 50px rgba(255,255,255,.025); }

.sources { padding-bottom: 95px; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.source-grid article { display: flex; gap: 16px; min-height: 190px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.42); }
.source-grid article > span { flex: 0 0 auto; color: var(--wine); font: italic 700 17px var(--serif); }
.source-grid strong { font: 700 18px var(--serif); }
.source-grid p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-grid a { color: var(--wine); font-size: 10px; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.image-credits { max-width: 900px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.45); }
.image-credits summary { padding: 17px 20px; color: var(--wine); font-size: 11px; font-weight: 900; cursor: pointer; }
#imageCredits { padding: 0 20px 20px; }
.credit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.credit-list p { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.credit-list span { color: var(--muted); text-align: right; }
.credit-list a, .detail-box a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
#imageCredits > small { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; }
.source-disclaimer { max-width: 780px; margin: 27px auto 0; color: var(--muted); font-size: 10px; text-align: center; }
footer { padding: 28px 0; color: #fff; background: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand .brand-mark { background: var(--wine); }
.footer-brand small { color: rgba(255,255,255,.55); }
.footer-inner > a { color: rgba(255,255,255,.65); font-size: 11px; font-weight: 700; text-decoration: none; }

dialog { padding: 0; border: 0; color: var(--ink); background: transparent; }
dialog::backdrop { background: rgba(29,18,15,.7); backdrop-filter: blur(8px); }
.detail-dialog { width: min(820px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 32px)); border-radius: 28px; background: var(--cream); box-shadow: var(--shadow); }
.dialog-close { position: absolute; z-index: 5; top: 15px; right: 15px; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.82); font-size: 23px; cursor: pointer; }
.detail-hero { display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 52px 42px 35px; background: linear-gradient(135deg, var(--detail-soft), #fffaf2 65%); }
.detail-visual { display: grid; place-items: center; min-height: 190px; border: 1px solid rgba(0,0,0,.05); border-radius: 35% 65% 55% 45% / 53% 36% 64% 47%; background: rgba(255,255,255,.6); font-size: 79px; box-shadow: inset 0 0 0 12px rgba(255,255,255,.25); }
.detail-visual.photo { overflow: hidden; border-radius: 24px; box-shadow: 0 10px 28px rgba(46,30,20,.13); }
.detail-visual.photo img { display: block; width: 100%; min-height: 190px; height: 100%; object-fit: cover; }
.detail-meta { align-self: center; }
.detail-meta h2 { margin: 10px 0; font: 700 45px/1 var(--serif); letter-spacing: -.035em; }
.detail-meta p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tag { padding: 7px 10px; border-radius: 999px; color: var(--wine); background: rgba(127,29,45,.08); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px 42px 42px; }
.detail-box { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.55); }
.detail-box.full { grid-column: 1 / -1; }
.detail-box small { color: var(--wine); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.detail-box p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.detail-box.memory { border-color: rgba(230,168,63,.5); background: #fff4cf; }
.progress-dialog { width: min(560px, calc(100% - 32px)); border-radius: 26px; background: var(--cream); }
.progress-content { padding: 42px; }
.progress-content h2 { margin: 0; font: 700 37px var(--serif); }
.progress-content > p { color: var(--muted); font-size: 12px; }
.big-progress { display: grid; grid-template-columns: 90px 1fr; gap: 22px; align-items: center; margin: 25px 0; }
.big-ring { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: conic-gradient(var(--leaf) var(--progress), #e5ded3 0); }
.big-ring::before { content: ""; grid-area: 1/1; width: 70px; height: 70px; border-radius: 50%; background: var(--cream); }
.big-ring b { z-index: 1; grid-area: 1/1; font: 700 21px var(--serif); }
.progress-stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.progress-stat b { color: var(--ink); }
.reset-link { margin-top: 24px; border: 0; color: var(--wine); background: transparent; font-size: 10px; font-weight: 900; text-decoration: underline; cursor: pointer; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%, 140%); padding: 12px 17px; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }

.empty { grid-column: 1 / -1; padding: 60px; color: var(--muted); text-align: center; }
.reveal { animation: reveal .6s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 980px) {
  .desktop-nav, .progress-copy { display: none; }
  .topbar { padding-inline: 24px; }
  .header-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .eyebrow, .hero-cta, .hero-stats { justify-content: center; }
  .hero-art { min-height: 500px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .region-stage { grid-template-columns: 250px 1fr; }
  .quiz-wrap { grid-template-columns: 1fr; gap: 40px; }
  .quiz-intro { max-width: 650px; text-align: center; margin: auto; }
  .quiz-intro h2 { margin-inline: auto; }
  .quiz-features { justify-content: center; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .topbar { height: 68px; padding-inline: 14px; }
  .brand strong { font-size: 16px; }
  .brand-mark { width: 37px; height: 37px; }
  .progress-pill { display: none; }
  .hero { padding: 49px 18px 36px; }
  .hero::before { inset: 0; }
  h1 { font-size: clamp(44px, 14vw, 65px); }
  .hero-lead { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-stats div { min-width: 0; flex: 1; padding-right: 10px; }
  .hero-stats div + div { padding-left: 10px; }
  .hero-art { min-height: 410px; margin-top: 26px; }
  .sun-disc { width: 330px; height: 330px; top: 35px; }
  .plate { width: 275px; height: 275px; top: 64px; }
  .plate-rim { width: 205px; height: 205px; }
  .plate-label { inset: 56px 39px; }
  .plate-label strong { font-size: 20px; }
  .fruit-card { top: 0; right: -4px; }
  .fact-card { left: -4px; bottom: 31px; }
  .float-card { padding: 9px 11px; }
  .source-note { margin-top: 20px; }
  .section { padding-top: 75px; padding-bottom: 78px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .section-heading h2 { font-size: 39px; }
  .card-grid { grid-template-columns: 1fr; }
  .learn-card { min-height: 250px; }
  .region-section { padding: 76px 0; }
  .region-stage { display: block; }
  .region-tabs { display: flex; padding: 9px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .region-tab { min-width: 190px; }
  .region-tab + .region-tab { margin: 0; }
  .region-panel { padding: 30px 20px; }
  .region-panel h3 { font-size: 35px; }
  .region-items { grid-template-columns: 1fr; }
  .practice-shell { min-height: 490px; padding: 16px; }
  .practice-tabs { width: 100%; overflow-x: auto; }
  .practice-tab { flex: 1; justify-content: center; white-space: nowrap; }
  .flash-layout { grid-template-columns: 1fr; min-height: 455px; }
  .practice-guide { display: none; }
  .flash-card { min-height: 455px; }
  .answer-buttons { grid-template-columns: 1fr; }
  .quiz-section { padding: 78px 0; }
  .quiz-card { min-height: 500px; padding: 23px 18px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-card h3.question { min-height: 0; font-size: 25px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid article { min-height: 0; }
  .credit-list { grid-template-columns: 1fr; }
  .credit-list p { display: block; }
  .credit-list span { display: block; margin-top: 4px; text-align: left; }
  .detail-hero { grid-template-columns: 1fr; padding: 54px 22px 25px; }
  .detail-visual { width: 150px; min-height: 150px; margin: auto; }
  .detail-meta { text-align: center; }
  .detail-tags { justify-content: center; }
  .detail-meta h2 { font-size: 36px; }
  .detail-body { grid-template-columns: 1fr; padding: 20px 22px 32px; }
  .detail-box.full { grid-column: auto; }
  .footer-inner { gap: 20px; }
  .footer-inner > a { display: none; }
}
