:root {
  color-scheme: light;
  --ink: #172c27;
  --muted: #56706a;
  --leaf: #315b4d;
  --muted: #56706a;
  --leaf: #315b4d;
  --leaf-dark: #193d34;
  --cream: #f7f2e8;
  --paper: #fffdf7;
  --ochre: #e6b85d;
  --line: rgba(40, 63, 54, .16);
  --shadow: 0 24px 80px rgba(22, 44, 35, .23);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #afc9bd; color: var(--ink); }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #cf8e24; outline-offset: 3px; }
#game-shell { position: fixed; inset: 0; overflow: hidden; background: linear-gradient(#b5d1c8 0%, #e0d3b3 100%); }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; inset: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) auto max(18px, env(safe-area-inset-left)); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; pointer-events: none; }
.mission-card { width: min(390px, calc(100vw - 145px)); padding: 18px 20px 16px; background: rgba(250, 247, 237, .93); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: 0 12px 34px rgba(19, 48, 37, .17); backdrop-filter: blur(12px); pointer-events: auto; }
.eyebrow { color: #597369; font-size: 10px; line-height: 1.3; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.sun-dot { width: 8px; height: 8px; display: inline-block; background: #deab4d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(222,171,77,.15); }
.mission-card h1 { font: 600 21px/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.025em; margin: 11px 0 6px; }
.mission-card p { color: #526a60; font-size: 13px; line-height: 1.5; margin: 0; }
.progress-row { margin-top: 14px; display: flex; align-items: center; gap: 10px; color: #314d43; font-size: 11px; font-weight: 700; }
.progress-track { height: 6px; flex: 1; overflow: hidden; background: #dce4da; border-radius: 99px; }
#progress-fill { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #598a65, #d49f43); border-radius: inherit; transition: width .35s ease; }
.hud-actions { display: flex; gap: 8px; pointer-events: auto; }
.icon-button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #23483a; background: rgba(250,247,237,.91); box-shadow: 0 8px 22px rgba(19,48,37,.12); font-size: 12px; font-weight: 750; cursor: pointer; }
.icon-button:hover { background: #fffdf7; }
.interact-prompt { position: absolute; left: 50%; bottom: max(38px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 9px 10px 9px 18px; background: rgba(25, 48, 39, .9); color: #fff8e9; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; box-shadow: 0 10px 30px rgba(18,34,26,.24); white-space: nowrap; font-size: 13px; }
#interact-button { color: #243b2f; background: #eac26f; border: 0; border-radius: 10px; padding: 10px 13px; font-size: 12px; font-weight: 800; cursor: pointer; }
#interact-button kbd { margin-left: 6px; border: 1px solid rgba(30,50,38,.3); border-radius: 4px; padding: 1px 5px; font: inherit; }
.world-note { position: absolute; bottom: max(98px, calc(env(safe-area-inset-bottom) + 98px)); left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 11px 16px; border: 1px solid rgba(255,255,255,.56); border-radius: 12px; background: rgba(249,245,233,.94); color: #263f34; box-shadow: 0 8px 24px rgba(14,43,30,.16); font-size: 13px; text-align: center; }
.scrim { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: linear-gradient(90deg, rgba(16,41,32,.46), rgba(20,43,36,.14) 60%, rgba(31,46,39,.25)); }
.title-card, .task-card { width: min(610px, 100%); max-height: calc(100dvh - 36px); overflow: auto; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(255,255,255,.78); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.title-card { margin-right: auto; margin-left: clamp(0px, 6vw, 96px); }
.brand-line { display: flex; align-items: center; gap: 10px; color: #5c7668; font-size: 10px; letter-spacing: .15em; font-weight: 850; text-transform: uppercase; }
.brand-seed { display: inline-block; width: 12px; height: 17px; border-radius: 70% 30% 65% 35%; background: #8a9b64; transform: rotate(31deg); box-shadow: inset 3px -2px 0 rgba(30,67,47,.15); }
.title-kicker { margin: 28px 0 8px; color: #b27936; font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.title-card h1 { margin: 0; color: #1c392e; font: 500 clamp(38px, 6vw, 66px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.title-card h1 span { display: block; color: #688174; font-size: .68em; letter-spacing: -.035em; margin-top: 7px; }
.title-copy { max-width: 470px; margin: 18px 0 0; color: #52675e; font-size: 15px; line-height: 1.65; }
.title-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 25px 0 22px; color: #536a5f; font-size: 11px; }
.title-controls b { color: #2e4b3b; letter-spacing: .04em; }
.primary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 19px; border: 0; border-radius: 12px; background: #244b3c; color: #fff9eb; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 7px 18px rgba(36,75,60,.2); transition: transform .18s, background .18s; }
.primary-button:hover { background: #173c2e; transform: translateY(-1px); }
.primary-button span { font-size: 18px; }
.text-button { display: block; border: 0; margin: 13px 0 0; padding: 4px 0; color: #49715d; background: none; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.text-button:hover { color: #1f4835; text-decoration: underline; }
.access-note { color: #74877d; margin: 19px 0 0; font-size: 11px; }
.panel-scrim { z-index: 8; background: rgba(20, 43, 34, .48); backdrop-filter: blur(5px); }
.task-card { width: min(650px, 100%); border-radius: 21px; padding: clamp(23px, 4vw, 36px); }
.task-card h2 { margin: 12px 0 8px; color: #1c392e; font: 550 clamp(27px, 4vw, 38px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.task-copy { margin: 0; color: #566b62; font-size: 14px; line-height: 1.55; }
.fruit-check { display: flex; align-items: center; gap: 18px; margin: 23px 0 18px; padding: 15px 17px; border: 1px solid #e1e4d8; border-radius: 15px; background: #f6f5ed; }
.fruit-check strong, .fruit-check span:not(.cherry-illustration) { display: block; }
.fruit-check strong { color: #254435; font-size: 16px; }
.fruit-check div span { margin-top: 4px; color: #667970; font-size: 12px; }
.cherry-illustration { position: relative; display: block; width: 44px; height: 44px; flex: 0 0 44px; border: 3px solid rgba(101,57,40,.38); border-radius: 50% 48% 50% 50%; background: radial-gradient(circle at 34% 28%, #e78261, #b33e37 63%, #7e2b2a); box-shadow: inset -4px -5px 0 rgba(76,31,30,.19); }
.cherry-illustration::before { content: ""; position: absolute; left: 23px; top: -13px; width: 10px; height: 16px; border-left: 2px solid #536b42; border-top: 2px solid #536b42; border-radius: 12px 0 0 0; transform: rotate(-21deg); }
.cherry-illustration i { display: none; position: absolute; width: 9px; height: 7px; right: 5px; top: 15px; border-radius: 50%; background: #613c30; box-shadow: 0 0 0 2px rgba(247,242,232,.45); }
.cherry-illustration.marked i { display: block; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.choice-button { position: relative; min-height: 88px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 15px 16px 14px 54px; border: 1px solid #d9e1d7; border-radius: 14px; background: #fbfaf4; color: #243d32; text-align: left; cursor: pointer; transition: border-color .16s, transform .16s, background .16s; }
.choice-button:hover { border-color: #628b70; background: #f0f5eb; transform: translateY(-1px); }
.choice-button strong { font-size: 13px; }
.choice-button small { color: #6b7c70; font-size: 11px; line-height: 1.35; }
.choice-key { position: absolute; left: 15px; top: 50%; width: 26px; height: 26px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 8px; background: #e7ecdf; color: #365542; font-size: 12px; font-weight: 850; }
.aside-choice .choice-key { background: #f0e7d7; color: #846035; }
.feedback { min-height: 18px; margin: 14px 0 0; color: #61756a; font-size: 12px; line-height: 1.45; }
.process-choices .choice-button { min-height: 112px; }
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 22px 0 4px; }
.result-grid div { display: flex; flex-direction: column; gap: 8px; min-height: 72px; padding: 13px; border-radius: 12px; background: #f3f3ea; }
.result-grid span { color: #718176; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.result-grid strong { color: #274536; font-size: 13px; line-height: 1.25; }
.ending-card .primary-button { margin-top: 16px; }
.about-card { max-width: 680px; }
.source-list { display: grid; gap: 10px; margin: 22px 0; }
.source-list p { margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 11px; background: #f4f4ec; }
.source-list a { color: #285d45; font-size: 13px; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.source-list span { color: #66766c; font-size: 11px; }
.about-card .primary-button { min-width: 200px; }
.error-card { margin: 0 auto; }
.touch-controls { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .hud { inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) auto max(10px, env(safe-area-inset-left)); }
  .mission-card { width: min(315px, calc(100vw - 118px)); padding: 12px 13px 11px; border-radius: 14px; }
  .mission-card h1 { font-size: 17px; margin: 8px 0 4px; }
  .mission-card p { font-size: 11px; }
  .eyebrow { font-size: 8px; }
  .progress-row { margin-top: 10px; font-size: 10px; }
  .hud-actions { gap: 5px; }
  .icon-button { min-height: 38px; padding: 0 10px; font-size: 10px; }
  .title-card { margin: 0; padding: 25px 24px; border-radius: 20px; }
  .title-card h1 { font-size: clamp(41px, 11vw, 59px); }
  .title-copy { font-size: 13px; }
  .title-controls { gap: 8px 12px; margin: 18px 0; font-size: 10px; }
  .scrim { padding: 14px; }
  .task-card { padding: 23px 19px; border-radius: 18px; }
  .task-copy { font-size: 13px; }
  .choice-row { grid-template-columns: 1fr; }
  .choice-button, .process-choices .choice-button { min-height: 65px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid div { min-height: 55px; flex-direction: row; align-items: center; justify-content: space-between; }
  .touch-controls { position: absolute; z-index: 3; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: flex-end; pointer-events: none; }
  .dpad { width: 156px; height: 148px; display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 46px); gap: 4px; pointer-events: auto; }
  .dpad button { width: 48px; height: 46px; border: 1px solid rgba(255,255,255,.76); border-radius: 13px; background: rgba(34,70,54,.83); color: #fff9eb; font-size: 19px; font-weight: 800; touch-action: none; box-shadow: 0 3px 12px rgba(20,42,33,.19); }
  .dpad button:nth-child(1) { grid-column: 2; grid-row: 1; }
  .dpad button:nth-child(2) { grid-column: 1; grid-row: 2; }
  .dpad button:nth-child(3) { grid-column: 2; grid-row: 2; }
  .dpad button:nth-child(4) { grid-column: 3; grid-row: 2; }
  .dpad button:active { background: #b98535; }
  .touch-controls p { position: absolute; left: 2px; bottom: -18px; margin: 0; color: rgba(255,255,255,.88); text-shadow: 0 1px 4px #243a30; font-size: 9px; white-space: nowrap; }
  .interact-prompt { bottom: max(24px, calc(env(safe-area-inset-bottom) + 165px)); font-size: 11px; gap: 8px; padding: 7px 8px 7px 12px; }
  #interact-button { padding: 9px 11px; }
  .world-note { bottom: max(178px, calc(env(safe-area-inset-bottom) + 178px)); font-size: 11px; }
}
@media (max-width: 390px) {
  .mission-card { width: calc(100vw - 118px); }
  .mission-card p { max-width: 210px; }
  .hud-actions { flex-direction: column; }
  .title-card { padding: 22px 20px; }
  .brand-line { font-size: 9px; }
  .title-kicker { margin-top: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
