:root {
  --ink: #2f2a24;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --rust: #a94e31;
  --rust-dark: #7d3f2d;
  --mustard: #d39a32;
  --green: #62724b;
  --green-soft: #dfe5cf;
  --line: #d6c7aa;
  --shadow: 0 18px 55px rgba(76, 47, 28, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--ink); background: linear-gradient(135deg, #d8c7a6, #f0e4cb 48%, #c7cfad); }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.deck { width: 100%; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding: clamp(8px, 1.3vw, 18px); }
.topbar, .footer { width: min(1320px, 100%); margin: auto; display: flex; align-items: center; gap: 12px; }
.brand { color: var(--rust-dark); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.progress { height: 8px; flex: 1; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.62); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rust), var(--mustard)); transition: width .25s ease; }
.counter { min-width: 48px; text-align: right; font-weight: 850; color: var(--rust-dark); }
.slide { width: min(1320px, 100%); height: 100%; min-height: 0; margin: auto; overflow: hidden; border: 1px solid rgba(125,63,45,.12); border-radius: clamp(20px, 3vw, 34px); background: var(--cream); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 46px); position: relative; }
.slide::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .26; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(77,99,71,.08) 31px 32px); }
.slide > * { position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: var(--rust); font-size: clamp(.72rem, 1.1vw, .9rem); font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: #3f372e; letter-spacing: -.035em; }
h1 { max-width: 980px; margin: .16em 0 .24em; font-size: clamp(2.4rem, 6.1vw, 5.8rem); line-height: .96; }
h2 { margin: .16em 0 .28em; font-size: clamp(1.8rem, 3.4vw, 3.4rem); line-height: 1.06; }
p { line-height: 1.52; }
.hero { height: 100%; display: grid; align-content: center; justify-items: start; padding-left: clamp(0px, 4vw, 58px); }
.hero > p { max-width: 760px; margin: 0 0 1.3em; font-size: clamp(1rem, 1.7vw, 1.35rem); }
.author-link { position: absolute; right: 0; bottom: 0; color: var(--rust-dark); font-weight: 850; }
.leaf-cluster { position: absolute; right: 4%; top: 8%; width: 190px; height: 160px; opacity: .82; transform: rotate(-9deg); }
.leaf-cluster i { position: absolute; width: 72px; height: 110px; border-radius: 80% 12% 80% 12%; background: var(--mustard); transform: rotate(34deg); }
.leaf-cluster i:nth-child(2) { left: 58px; top: 26px; background: var(--rust); transform: rotate(62deg) scale(.86); }
.leaf-cluster i:nth-child(3) { left: 110px; top: -12px; background: var(--green); transform: rotate(15deg) scale(.72); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: .72em 1.1em; cursor: pointer; font-weight: 900; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .3; cursor: default; transform: none; }
.button.primary { color: white; background: var(--rust); box-shadow: 0 10px 22px rgba(169,78,49,.24); }
.button.ghost { color: var(--rust-dark); background: rgba(255,250,240,.76); border: 1px solid rgba(125,63,45,.18); }
.button.big { font-size: clamp(1rem, 1.5vw, 1.22rem); padding: .9em 1.35em; }
.footer { justify-content: space-between; }
.footer-note { color: #765f4f; font-size: .84rem; text-align: center; }
.intro-layout { height: 100%; display: grid; grid-template-columns: .72fr 1.28fr; grid-template-rows: 1fr auto; gap: 18px; align-items: center; }
.paper-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.92); box-shadow: 7px 9px 0 #e5d9c3; }
.intro-copy { padding: clamp(16px, 2.2vw, 30px); font-size: clamp(.92rem, 1.4vw, 1.12rem); }
.intro-copy p:first-child { margin-top: 0; }
.intro-copy p:last-child { margin-bottom: 0; font-weight: 800; color: var(--rust-dark); }
.intro-layout > .button { grid-column: 2; justify-self: start; }
.task-screen { height: 100%; display: flex; flex-direction: column; }
.task-screen h2 { max-width: 1160px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.02; }
.instruction { margin: 0 0 1em; color: #765f4f; font-size: clamp(.86rem, 1.2vw, 1rem); }
.options { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(9px, 1.3vw, 16px); align-content: center; flex: 1; }
.option { min-height: 96px; height: auto; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; border: 2px solid #d9c7aa; border-radius: 18px; padding: 14px 18px; color: var(--ink); background: rgba(255,253,248,.92); text-align: left; cursor: pointer; box-shadow: 0 8px 20px rgba(77,49,30,.08); transition: .18s ease; }
.option:hover { border-color: var(--mustard); transform: translateY(-2px); }
.option.selected { border-color: var(--rust); background: #f7dfcf; }
.option > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 950; font-size: 1.12rem; }
.option b { min-width: 0; font-size: clamp(.96rem, 1.5vw, 1.18rem); line-height: 1.35; overflow-wrap: anywhere; }
.media-options { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.image-option { position: relative; min-height: 0; height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 10px; }
.image-option > img { grid-column: 1; grid-row: 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 12px; background: white; }
.image-option > span { position: absolute; left: 16px; top: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.image-option > b { grid-column: 1; grid-row: 2; padding-top: 7px; text-align: center; }
.question-video { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 16px; background: #1f1b18; }
.has-video { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: 16px; }
.has-video > .eyebrow, .has-video > h2, .has-video > .instruction { grid-column: 1 / -1; }
.has-video > .question-video { grid-column: 1; grid-row: 4; }
.has-video > .options { grid-column: 2; grid-row: 4; grid-template-columns: 1fr; align-content: stretch; }
.has-video .option { min-height: 0; }
.modal { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; padding: 18px; background: rgba(48,37,27,.66); backdrop-filter: blur(5px); }
.modal.open { display: grid; }
.modal-card { width: min(880px, 100%); max-height: min(86dvh, 760px); display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; border-radius: 26px; background: var(--paper); box-shadow: 0 24px 80px rgba(30,20,12,.4); border: 2px solid #e0c9a6; }
.modal-scroll { min-height: 0; overflow-y: auto; padding: clamp(20px, 3vw, 36px); }
.modal-kicker { color: var(--rust); font-size: .75rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.modal-card h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
.modal-body { font-size: clamp(.94rem, 1.45vw, 1.08rem); }
.modal-body p { margin: .65em 0; }
.modal-body a { color: var(--rust-dark); font-weight: 850; }
.modal-video { display: block; width: min(660px, 100%); max-height: 48vh; margin: 14px auto 0; border-radius: 14px; background: #1d1916; }
.response-image { display: block; width: min(520px, 100%); max-height: 42vh; margin: 12px auto; object-fit: contain; border-radius: 14px; }
.response-image.small { width: min(280px, 70%); }
.rules-list { columns: 2; column-gap: 28px; padding-left: 22px; }
.rules-list li { break-inside: avoid; margin: .34em 0; }
.modal-ok { margin: 14px clamp(20px,3vw,36px) clamp(20px,3vw,30px); }
.advice-intro { height: 100%; display: grid; align-content: center; justify-items: start; max-width: 960px; gap: 10px; }
.advice-intro .paper-card { padding: clamp(18px, 3vw, 34px); font: clamp(1rem, 1.7vw, 1.28rem)/1.58 Georgia, serif; }
.advice-screen { height: 100%; display: flex; flex-direction: column; }
.advice-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: 1fr; }
blockquote { margin: 0; min-height: 0; overflow-y: auto; padding: clamp(22px, 3vw, 38px); border-left: 7px solid var(--mustard); border-radius: 14px; background: rgba(255,253,248,.9); white-space: pre-line; font: clamp(1rem,1.65vw,1.3rem)/1.5 Georgia,serif; }
.reflection { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--green-soft); }
.reflection textarea { min-height: 0; flex: 1; resize: none; border: 2px solid #aeb797; border-radius: 12px; padding: 12px; background: white; color: var(--ink); }
.final-screen { height: 100%; display: grid; align-content: center; justify-items: start; max-width: 900px; }
.final-screen p { max-width: 720px; font-size: clamp(1rem,1.7vw,1.3rem); }
.final-screen .button { margin: 6px 8px 6px 0; }

@media (max-width: 760px) {
  .deck { gap: 5px; padding: 7px; }
  .topbar, .footer { gap: 7px; }
  .brand { font-size: .62rem; }
  .counter { min-width: 38px; font-size: .72rem; }
  .slide { border-radius: 20px; padding: 16px; }
  h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.38rem, 6vw, 2rem); }
  .leaf-cluster { width: 110px; height: 90px; opacity: .32; }
  .leaf-cluster i { width: 46px; height: 70px; }
  .hero { padding: 0; }
  .author-link { position: static; margin-top: 18px; }
  .footer-note { display: none; }
  .button { padding: .62em .88em; font-size: .8rem; }
  .intro-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 8px; }
  .intro-layout > .button { grid-column: 1; }
  .intro-copy { min-height: 0; overflow-y: auto; padding: 12px; font-size: .78rem; }
  .options { grid-template-columns: 1fr; gap: 7px; }
  .option { min-height: 58px; grid-template-columns: 34px 1fr; gap: 8px; padding: 8px 10px; border-radius: 13px; }
  .option > span { width: 30px; height: 30px; font-size: .84rem; }
  .option b { font-size: .82rem; }
  .media-options { grid-template-columns: 1fr; }
  .image-option { min-height: 82px; height: auto; grid-template-columns: 38% 1fr; grid-template-rows: 1fr; padding: 6px 9px; }
  .image-option > img { grid-column: 1; grid-row: 1; height: 78px; }
  .image-option > span { left: 7px; top: 7px; }
  .image-option > b { grid-column: 2; grid-row: 1; align-self: center; padding: 0 4px 0 10px; }
  .has-video { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto minmax(0, .9fr) minmax(0, 1.1fr); gap: 6px; }
  .has-video > .eyebrow, .has-video > h2, .has-video > .instruction { grid-column: 1; }
  .has-video > .question-video { grid-column: 1; grid-row: 4; }
  .has-video > .options { grid-column: 1; grid-row: 5; grid-template-columns: 1fr 1fr; }
  .has-video .option { min-height: 46px; padding: 5px 7px; }
  .instruction { margin-bottom: .45em; font-size: .72rem; }
  .modal { padding: 9px; }
  .modal-card { max-height: 92dvh; border-radius: 19px; }
  .modal-scroll { padding: 17px; }
  .modal-body { font-size: .84rem; }
  .rules-list { columns: 1; }
  .advice-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  blockquote { padding: 14px; font-size: .82rem; }
}

@media (max-height: 660px) and (min-width: 761px) {
  .slide { padding: 20px 28px; }
  h2 { font-size: 2rem; }
  .option { min-height: 68px; padding: 9px 14px; }
  .intro-copy { font-size: .88rem; }
}
