:root {
  --ink: #294f4b;
  --muted: #6c817c;
  --paper: #fffdf7;
  --line: #ddd4b8;
  --green: #58a57b;
  --green-dark: #34775d;
  --yellow: #edb94b;
  --blue: #69abc6;
  --coral: #e67968;
  --shadow: 0 19px 42px rgba(78,75,45,.15), 0 9px 0 rgba(155,139,91,.18);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f7f5df; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); font-family: "Trebuchet MS","Arial Rounded MT Bold",Arial,sans-serif; background: radial-gradient(circle at 13% 8%,rgba(238,190,77,.17),transparent 25%),radial-gradient(circle at 88% 12%,rgba(91,161,124,.17),transparent 24%),linear-gradient(135deg,#fff9e7,#f0f4df 58%,#eef5e6); }
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
.background-grain { position: fixed; inset: 0; pointer-events: none; opacity: .6; background-image: radial-gradient(circle,rgba(255,255,255,.9) 0 3px,transparent 3.5px); background-size: 42px 42px; }
.app { position: relative; width: min(1120px,calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding: 22px 0 52px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.brand,.sound-button,.journal-button { min-height: 50px; border: 2px solid #d6ccaa; border-radius: 17px; background: rgba(255,253,247,.94); box-shadow: 0 5px 0 rgba(158,143,95,.2); }
.brand { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 7px; text-align: left; }
.brand > span:first-child { width: 43px; height: 43px; flex: 0 0 43px; }
.brand svg { width: 100%; height: 100%; }
.brand > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.brand small,.eyebrow,.section-title small,.route-copy small,.game-head small,.card-title span { color: #9a6d2d; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.brand strong { font-size: 15px; white-space: nowrap; }
.top-actions { display: flex; gap: 9px; }
.sound-button { width: 50px; padding: 0; font-size: 24px; }
.journal-button { padding: 0 15px; font-size: 14px; font-weight: 900; white-space: nowrap; }

.hero,.routes-page,.game-shell,.result-page,.journal-page,.detail-page { border: 2px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.hero { min-height: 530px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(410px,.92fr); overflow: hidden; border-radius: 42px; }
.hero-copy { min-width: 0; z-index: 2; padding: 49px 31px 38px 53px; }
h1,h2,p { overflow-wrap: anywhere; }
h1,h2 { margin: 0; letter-spacing: -.035em; }
.hero h1,.routes-page h1,.result-page h1,.journal-page h1,.detail-page h1 { font-family: Georgia,"Times New Roman",serif; }
.hero h1 { max-width: 610px; margin-top: 10px; font-size: clamp(47px,5.3vw,70px); line-height: 1.01; }
.hero-copy > p { max-width: 600px; margin: 22px 0 27px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.hero-actions,.result-actions,.center { display: flex; flex-wrap: wrap; gap: 12px; }
.primary,.secondary,.hint-button,.back-link { min-height: 54px; padding: 0 22px; border-radius: 17px; font-weight: 900; }
.primary { border: 0; color: white; background: var(--green); box-shadow: 0 7px 0 var(--green-dark); }
.primary:hover:not(:disabled) { background: #66b189; transform: translateY(-1px); }
.primary:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 var(--green-dark); }
.secondary,.back-link { border: 2px solid #d8ceae; background: #fffaf0; box-shadow: 0 6px 0 rgba(157,137,84,.2); }
.secondary:hover:not(:disabled),.back-link:hover { background: #fff2cd; }
.compact { min-height: 46px; padding: 0 16px; }
button:focus-visible { outline: 4px solid rgba(99,172,202,.42); outline-offset: 3px; }

.hero-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 31px; }
.hero-facts > div { min-width: 0; display: grid; grid-template-columns: 36px 1fr; align-items: center; padding: 9px; border: 2px solid #d8d5b8; border-radius: 16px; background: #f5f7e8; }
.hero-facts span { grid-row: 1/3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }
.hero-facts b { font-size: 12px; }
.hero-facts small { color: var(--muted); font-size: 9px; }
.hero-lab { min-width: 0; position: relative; min-height: 530px; overflow: hidden; background: linear-gradient(rgba(255,255,255,.4) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.4) 1px,transparent 1px),linear-gradient(145deg,#d9ece1,#c6dfd8); background-size: 31px 31px,31px 31px,auto; }
.hero-lab::before { content: ""; position: absolute; width: 390px; height: 390px; left: 50%; top: 46%; border: 48px solid rgba(255,255,255,.24); border-radius: 50%; transform: translate(-50%,-50%); }
.hero-jar { position: absolute; z-index: 2; left: 51%; top: 44%; width: 280px; height: 390px; transform: translate(-50%,-50%); }
.hero-scientist { position: absolute; z-index: 3; right: -16px; bottom: -18px; width: 185px; height: 300px; object-fit: contain; }
.hero-note { position: absolute; z-index: 4; left: 18px; top: 24px; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 6px 16px rgba(60,82,66,.15); }
.hero-note b { font-size: 23px; }
.hero-note span { font-size: 11px; font-weight: 900; }

.safety-note { width: min(920px,calc(100% - 28px)); display: flex; align-items: center; gap: 13px; margin: 18px auto 0; padding: 16px 21px; border: 2px solid #e1c889; border-radius: 24px; background: #fff2c7; box-shadow: 0 7px 0 rgba(166,136,65,.15); }
.safety-note > span { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--yellow); font-family: Georgia,serif; font-size: 24px; font-weight: 900; }
.safety-note p { margin: 0; line-height: 1.4; }

.home-routes { margin-top: 41px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title h1,.section-title h2 { margin-top: 5px; font-size: 35px; }
.section-title > b { padding: 8px 13px; border-radius: 13px; color: var(--green-dark); background: #e1f0e3; white-space: nowrap; }
.route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.route-card { min-width: 0; min-height: 310px; position: relative; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 21px; border: 2px solid #d8ceb0; border-radius: 28px; text-align: left; background: #fffaf0; box-shadow: 0 8px 0 rgba(155,137,87,.17); transition: transform .16s ease,box-shadow .16s ease; }
.route-card:hover { transform: translateY(-4px); box-shadow: 0 12px 0 rgba(155,137,87,.17); }
.route-1 { background: linear-gradient(145deg,#edf5e7,#fffdf4); }
.route-2 { background: linear-gradient(145deg,#e5f2f1,#fffdf4); }
.route-3 { background: linear-gradient(145deg,#f4ecd9,#fffdf4); }
.route-number,.journal-route h2 span { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--yellow); font-family: Georgia,serif; font-size: 21px; font-weight: 900; }
.route-number { position: absolute; left: 17px; top: 16px; z-index: 2; }
.route-icons { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; padding-left: 27px; }
.route-icons .choice-svg { width: 88px; height: 88px; margin-left: -27px; filter: drop-shadow(0 7px 5px rgba(55,74,62,.13)); }
.route-copy { display: flex; flex-direction: column; align-items: flex-start; }
.route-copy strong { margin: 6px 0; font-family: Georgia,serif; font-size: 25px; }
.route-copy em { min-height: 45px; color: var(--muted); font-size: 14px; font-style: normal; line-height: 1.4; }
.route-copy b { margin-top: 14px; color: var(--green-dark); }

.routes-page,.journal-page { padding: 36px; border-radius: 38px; }
.route-grid.large .route-card { min-height: 330px; }
.lab-rule { display: grid; grid-template-columns: 43px 1fr 43px 1fr; align-items: center; gap: 13px; margin-top: 29px; padding: 22px; border-radius: 22px; background: #edf4e6; }
.lab-rule > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }
.lab-rule p { margin: 0; }
.lab-rule b,.lab-rule small { display: block; }
.lab-rule small { margin-top: 3px; color: var(--muted); }

.game-shell { overflow: hidden; border-radius: 38px; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 31px 23px; border-bottom: 2px dashed #ddd4bd; }
.game-head h1 { margin-top: 5px; font-family: Georgia,serif; font-size: 38px; }
.game-head p { margin: 4px 0 0; color: var(--muted); }
.progress { width: 322px; flex: 0 0 322px; display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.progress span { width: 28px; height: 28px; display: grid; place-items: center; justify-self: center; border-radius: 50%; color: #898679; background: #edeadd; font-size: 10px; font-weight: 900; }
.progress .active { color: white; background: var(--yellow); box-shadow: 0 4px 0 #d29a2e; }
.progress .done { color: white; background: var(--green); }
.game-layout { display: grid; grid-template-columns: 430px minmax(0,1fr); gap: 20px; padding: 23px; background: linear-gradient(135deg,#fffaf0,#f2f5e8); }
.jar-card,.task-card { min-width: 0; border: 2px solid #ddd4b8; border-radius: 29px; background: #fffdf8; box-shadow: 0 8px 18px rgba(78,71,42,.08); }
.jar-card { padding: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title strong { font-family: Georgia,serif; font-size: 22px; text-align: right; }
.lab-jar { position: relative; width: 230px; height: 300px; margin: 7px auto 2px; }

.hero-jar,.lab-jar,.result-jar,.detail-jar,.mini-jar { --glass:#e7f5f0; }
.jar-lid { position: absolute; z-index: 8; left: 20%; top: 2%; width: 60%; height: 10%; opacity: .25; border: 5px solid #315954; border-radius: 11px 11px 5px 5px; background: #a5c8c4; transition: opacity .3s ease; }
.jar-lid.is-visible { opacity: 1; }
.jar-glass { position: absolute; z-index: 2; left: 10%; top: 8%; width: 80%; height: 83%; overflow: hidden; border: 5px solid #315954; border-radius: 27% 27% 18% 18% / 13% 13% 8% 8%; background: linear-gradient(90deg,rgba(255,255,255,.7),rgba(217,242,235,.45) 35%,rgba(255,255,255,.27) 70%,rgba(176,221,210,.42)); box-shadow: inset 14px 0 0 rgba(255,255,255,.3),0 13px 18px rgba(50,80,67,.14); }
.jar-glow { position: absolute; z-index: 7; left: 16%; top: 7%; width: 8%; height: 62%; border-radius: 50%; background: rgba(255,255,255,.64); transform: rotate(4deg); }
.jar-base { position: absolute; z-index: 1; left: 14%; bottom: 3%; width: 72%; height: 8%; border: 5px solid #315954; border-radius: 0 0 22px 22px; background: #86aaa4; }
.layer { position: absolute; left: 0; width: 100%; }
.gravel-layer { z-index: 2; bottom: 0; height: 18%; background: radial-gradient(circle at 15% 45%,#9ca8a0 0 6%,transparent 7%),radial-gradient(circle at 36% 67%,#738d84 0 7%,transparent 8%),radial-gradient(circle at 62% 38%,#a9afa3 0 7%,transparent 8%),radial-gradient(circle at 84% 67%,#718a83 0 6%,transparent 7%),#c4c4ab; }
.soil-layer { z-index: 3; bottom: 12%; height: 24%; background: radial-gradient(circle at 16% 32%,#b98a5f 0 2%,transparent 3%),radial-gradient(circle at 55% 60%,#c9a272 0 3%,transparent 4%),#795b45; border-top: 4px solid #315954; }
.jar-plant { position: absolute; z-index: 4; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(43,72,55,.13)); }
.jar-plant.main { left: 15%; bottom: 22%; width: 72%; height: 68%; }
.jar-plant.small { left: 1%; bottom: 18%; width: 49%; height: 40%; }
.creature { position: absolute; z-index: 6; border: 2px solid #315954; background: #e9f1e3; }
.springtail-one,.springtail-two { width: 5px; height: 5px; border-radius: 50%; }
.springtail-one { left: 32%; bottom: 27%; }
.springtail-two { left: 42%; bottom: 23%; }
.woodlouse-one { left: 62%; bottom: 21%; padding: 0 4px 2px; border-radius: 9px; color: #315954; font-size: 8px; letter-spacing: -1px; }
.leaf-one,.leaf-two { position: absolute; z-index: 5; bottom: 24%; color: #c18847; font-size: 18px; transform: rotate(28deg); }
.leaf-one { left: 22%; }
.leaf-two { right: 17%; transform: rotate(-30deg); }
.drop-one,.drop-two,.drop-three { position: absolute; z-index: 6; width: 8px; height: 13px; border-radius: 50% 50% 55% 55%; background: #79bed4; clip-path: polygon(50% 0,100% 52%,88% 84%,50% 100%,12% 84%,0 52%); }
.drop-one { right: 16%; top: 25%; }
.drop-two { right: 25%; top: 12%; }
.drop-three { left: 18%; top: 33%; }
.light-rays { position: absolute; z-index: 9; right: -2%; top: 5%; color: #edb749; font-size: 36px; text-shadow: 0 0 18px #fff2a8; }
.cycle-arrow { position: absolute; z-index: 7; color: #4b9472; font-size: 31px; font-weight: 900; opacity: .78; }
.cycle-arrow.a { right: 7%; top: 35%; transform: rotate(45deg); }
.cycle-arrow.b { left: 8%; top: 46%; transform: rotate(225deg); }
.is-settled .jar-glass { box-shadow: inset 14px 0 0 rgba(255,255,255,.3),0 0 0 6px rgba(88,165,123,.15),0 13px 18px rgba(50,80,67,.14); }

.meters { display: grid; gap: 7px; margin-top: 3px; }
.meters > div > span { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 11px; }
.meters i { color: var(--muted); font-style: normal; }
.meters > div > div { height: 9px; overflow: hidden; border-radius: 8px; background: #e9e7d9; }
.meters em { display: block; height: 100%; border-radius: inherit; background: var(--meter); transition: width .45s ease; }
.guide { display: grid; grid-template-columns: 66px 1fr; align-items: center; margin-top: 13px; overflow: hidden; border: 2px solid #cadbd2; border-radius: 17px; background: #e9f4ef; }
.guide img { width: 66px; height: 85px; object-fit: contain; align-self: end; }
.guide p { margin: 0; padding: 9px 11px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.task-card { padding: 25px; }
.task-card h2 { margin-top: 8px; font-family: Georgia,serif; font-size: 29px; line-height: 1.16; }
.scene-text { margin: 11px 0 0; padding: 13px 15px; border-left: 5px solid var(--green); border-radius: 0 15px 15px 0; color: var(--muted); background: #edf4e7; line-height: 1.45; }
.choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-top: 19px; }
.choice-card { min-width: 0; min-height: 179px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 7px; border: 2px solid color-mix(in srgb,var(--tone) 48%,#d5ccb3); border-radius: 22px; background: color-mix(in srgb,var(--tone) 10%,#fffdf7); box-shadow: 0 6px 0 rgba(133,119,76,.13); transition: transform .15s ease,box-shadow .15s ease; }
.choice-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(133,119,76,.13); }
.choice-svg { width: 82px; height: 82px; }
.choice-card span { min-width: 0; text-align: center; }
.choice-card strong,.choice-card small { display: block; overflow-wrap: anywhere; }
.choice-card strong { font-size: 14px; line-height: 1.18; }
.choice-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.2; }
.choice-card.is-wrong,.step-card.is-wrong,.order-slot.is-wrong { border-color: var(--coral); background: #fff0eb; animation: nudge .24s ease; }
.choice-card.is-hint,.step-card.is-hint { border-color: var(--yellow); background: #fff4c9; box-shadow: 0 0 0 4px rgba(237,185,75,.24),0 6px 0 rgba(170,126,31,.17); }

.order-slots { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 17px; }
.order-slot { min-width: 0; min-height: 100px; position: relative; display: flex; align-items: center; justify-content: center; padding: 25px 8px 8px; border: 2px dashed #cfc6ad; border-radius: 17px; color: #969183; text-align: center; background: #f6f2e7; }
.order-slot > span { position: absolute; left: 7px; top: 7px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: white; background: #c5bfae; font-size: 10px; font-weight: 900; }
.order-slot b { font-size: 11px; line-height: 1.25; }
.order-slot em { font-size: 10px; font-style: normal; }
.order-slot.filled { border-style: solid; border-color: #91bca1; color: var(--ink); background: #e9f4e9; }
.order-slot.filled > span { background: var(--green); }
.step-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-top: 13px; }
.step-card { min-width: 0; min-height: 75px; position: relative; display: flex; align-items: center; padding: 10px 10px 10px 43px; border: 2px solid #d8cfb5; border-radius: 17px; text-align: left; background: #fffaf0; box-shadow: 0 5px 0 rgba(133,119,76,.12); }
.step-card i { position: absolute; left: 9px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: #bdb7a5; font-size: 11px; font-style: normal; font-weight: 900; }
.step-card span { font-size: 12px; font-weight: 900; line-height: 1.25; }
.step-card.is-selected { border-color: var(--green); background: #e7f3e8; }
.step-card.is-selected i { background: var(--green); }
.check-button { width: 100%; margin-top: 15px; }

.feedback-placeholder,.feedback { margin: 0 23px; border-radius: 18px; }
.feedback-placeholder { padding: 17px 19px; border: 2px dashed #d9d0b5; color: var(--muted); background: #fffaf0; }
.feedback { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border: 2px solid transparent; }
.feedback > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 22px; font-weight: 900; }
.feedback strong,.feedback p { display: block; margin: 0; }
.feedback p { margin-top: 3px; line-height: 1.4; }
.feedback.success { border-color: #a8cfaf; background: #def0df; }
.feedback.success > span { background: var(--green); }
.feedback.error { border-color: #edbdaf; background: #fff0eb; }
.feedback.error > span { background: var(--coral); }
.feedback.hint { border-color: #e1c16d; background: #fff3c7; }
.feedback.hint > span { background: var(--yellow); }
.game-actions { display: flex; justify-content: space-between; gap: 14px; padding: 20px 23px 27px; }
.hint-button { border: 2px solid #d5b65b; background: #fff1b8; box-shadow: 0 6px 0 rgba(175,130,34,.23); }
.hint-button:disabled { opacity: .5; box-shadow: none; }

.result-page { padding: 44px 35px 38px; border-radius: 39px; text-align: center; }
.result-page h1 { margin-top: 8px; font-size: 55px; }
.result-page > p { color: var(--muted); font-size: 18px; }
.stars { margin: 20px 0 12px; }
.stars span { color: #d7d4c8; font-size: 52px; text-shadow: 0 5px 0 rgba(96,79,40,.1); }
.stars .filled { color: var(--yellow); }
.stats { width: min(620px,100%); display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin: 22px auto; }
.stats > div { padding: 13px; border: 2px solid #ddd3b6; border-radius: 18px; background: #fffaf0; }
.stats b,.stats span { display: block; }
.stats b { font-size: 27px; }
.stats span { color: var(--muted); font-size: 12px; }
.result-system { width: min(790px,100%); display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 25px; margin: 20px auto 28px; padding: 18px 25px; border-radius: 27px; background: linear-gradient(135deg,#e8f3e5,#e2f0ed); }
.result-jar { position: relative; width: 200px; height: 270px; margin: 0 auto; }
.result-links { display: grid; gap: 10px; }
.result-links > div { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 16px; text-align: left; background: rgba(255,255,255,.75); }
.result-links span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }
.result-actions { justify-content: center; }

.journal-route + .journal-route { margin-top: 30px; padding-top: 26px; border-top: 2px dashed #ddd3b6; }
.journal-route h2 { display: flex; align-items: center; gap: 10px; font-family: Georgia,serif; font-size: 27px; }
.journal-route h2 span { width: 35px; height: 35px; flex-basis: 35px; font-size: 17px; }
.journal-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; margin-top: 15px; }
.journal-card { min-width: 0; min-height: 184px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9px 7px; border: 2px solid #ddd3b6; border-radius: 20px; background: #fffaf0; }
.journal-card.is-open { box-shadow: 0 6px 0 rgba(137,120,74,.13); }
.journal-card.is-open:hover { transform: translateY(-2px); background: #f2f7e8; }
.journal-card > i { position: absolute; left: 8px; top: 8px; z-index: 9; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; font-style: normal; font-weight: 900; }
.journal-card > strong { margin-top: 5px; font-size: 12px; line-height: 1.18; text-align: center; }
.mini-jar { position: relative; width: 95px; height: 125px; display: block; }
.mini-jar .jar-lid { border-width: 2px; border-radius: 4px; }
.mini-jar .jar-glass { border-width: 2px; box-shadow: inset 5px 0 rgba(255,255,255,.3); }
.mini-jar .jar-base { border-width: 2px; }
.mini-jar .soil-layer { border-width: 1px; }
.mini-jar .light-rays { font-size: 14px; }
.mini-jar .cycle-arrow { font-size: 12px; }
.mini-jar .creature { border-width: 1px; transform: scale(.6); }
.mini-jar .leaf-one,.mini-jar .leaf-two { font-size: 7px; }
.mini-jar .drop-one,.mini-jar .drop-two,.mini-jar .drop-three { width: 3px; height: 5px; }
.journal-card.is-locked { color: #a8a294; background: #f1efe5; }
.lock { width: 70px; height: 70px; display: grid; place-items: center; border: 3px dashed #c6beaa; border-radius: 50%; font-family: Georgia,serif; font-size: 32px; }
.journal-page .center { justify-content: center; margin-top: 30px; }

.detail-page { padding: 31px; border-radius: 38px; }
.back-link { border: 0; }
.detail-grid { display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 31px; align-items: center; margin-top: 20px; }
.detail-jar { position: relative; width: 340px; height: 455px; margin: 0 auto; border: 2px solid #d8d1b8; border-radius: 31px; background: radial-gradient(circle at 50% 40%,#eff6df,#deeee5); }
.detail-jar .jar-lid { left: 28%; top: 7%; width: 44%; }
.detail-jar .jar-glass { left: 19%; top: 14%; width: 62%; height: 72%; }
.detail-jar .jar-base { left: 23%; bottom: 10%; width: 54%; }
.detail-jar .light-rays { right: 11%; top: 12%; }
.detail-copy h1 { margin: 8px 0 13px; font-size: 47px; }
.detail-copy > p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.fact-box,.adult-detail { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 15px; border-radius: 18px; background: #e5f1e5; }
.fact-box > span { color: var(--green-dark); font-size: 28px; }
.fact-box p { margin: 0; line-height: 1.45; }
.detail-choice { display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 12px; border: 2px solid #d8d0b7; border-radius: 19px; background: #fffaf0; }
.detail-choice .choice-svg { width: 76px; height: 76px; flex: 0 0 76px; }
.detail-choice b,.detail-choice small { display: block; }
.detail-choice small { margin-top: 3px; color: var(--muted); }
.detail-steps { counter-reset: detailsteps; display: grid; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; }
.detail-steps li { position: relative; min-height: 45px; display: flex; align-items: center; padding: 8px 10px 8px 46px; border: 2px solid #d8d0b7; border-radius: 15px; background: #fffaf0; font-weight: 900; }
.detail-steps li::before { counter-increment: detailsteps; content: counter(detailsteps); position: absolute; left: 10px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 11px; }
.adult-detail { display: block; background: #fff1c7; }

@keyframes nudge { 0%,100%{transform:translateX(0)} 35%{transform:translateX(-5px)} 70%{transform:translateX(5px)} }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0,1fr) 380px; }
  .hero-copy { padding-left: 37px; }
  .game-layout { grid-template-columns: 375px minmax(0,1fr); }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 102px; flex-direction: row; justify-content: flex-start; padding: 8px 13px; }
  .choice-card .choice-svg { width: 74px; height: 74px; flex: 0 0 74px; }
  .choice-card span { text-align: left; }
  .order-slots { grid-template-columns: repeat(2,1fr); }
  .journal-grid { grid-template-columns: repeat(4,1fr); }
  .detail-grid { grid-template-columns: 350px minmax(0,1fr); }
}

@media (max-width: 780px) {
  .app { width: min(100% - 20px,1120px); padding-top: 10px; }
  .topbar { gap: 7px; }
  .brand { padding-right: 8px; }
  .brand small { display: none; }
  .brand strong { font-size: 14px; }
  .brand > span:first-child { width: 40px; height: 40px; flex-basis: 40px; }
  .sound-button { width: 45px; min-height: 45px; }
  .journal-button { min-height: 45px; padding: 0 9px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 38px 27px 32px; }
  .hero h1 { font-size: 50px; }
  .hero-lab { min-height: 430px; }
  .hero-jar { left: 45%; }
  .hero-scientist { width: 205px; right: 2%; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 0; display: grid; grid-template-columns: 130px 1fr; align-items: center; }
  .route-icons { height: 125px; padding-left: 21px; }
  .route-icons .choice-svg { width: 71px; height: 71px; }
  .route-copy em { min-height: 0; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .routes-page,.journal-page { padding: 25px 21px; }
  .lab-rule { grid-template-columns: 43px 1fr; }
  .game-head { align-items: flex-start; flex-direction: column; padding: 24px 21px; }
  .progress { width: 100%; flex-basis: auto; grid-template-columns: repeat(10,1fr); gap: 3px; }
  .game-layout { grid-template-columns: 1fr; padding: 17px; }
  .jar-card { display: grid; grid-template-columns: 270px 1fr; gap: 11px; align-items: center; }
  .card-title { grid-column: 1/-1; }
  .lab-jar { grid-row: 2/5; }
  .guide { grid-template-columns: 65px 1fr; }
  .task-card { padding: 23px; }
  .choice-grid { grid-template-columns: repeat(3,1fr); }
  .choice-card { min-height: 148px; flex-direction: column; justify-content: center; padding: 8px; }
  .choice-card .choice-svg { width: 76px; height: 76px; }
  .choice-card span { text-align: center; }
  .feedback-placeholder,.feedback { margin: 0 17px; }
  .game-actions { padding: 18px 17px 24px; }
  .journal-grid { grid-template-columns: repeat(3,1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-jar { width: min(390px,100%); }
}

@media (max-width: 540px) {
  .app { width: calc(100% - 16px); }
  .topbar { align-items: flex-start; }
  .brand { min-height: 52px; gap: 6px; }
  .brand > span:first-child { width: 37px; height: 37px; flex-basis: 37px; }
  .brand strong { width: 104px; white-space: normal; line-height: 1.05; }
  .top-actions { gap: 5px; }
  .sound-button { width: 44px; min-height: 44px; }
  .journal-button { min-height: 44px; padding: 0 7px; font-size: 10px; }
  .hero,.routes-page,.game-shell,.result-page,.journal-page,.detail-page { border-radius: 27px; }
  .hero-copy { padding: 29px 19px 26px; }
  .hero h1 { font-size: 39px; }
  .hero-copy > p { margin: 16px 0 20px; font-size: 16px; }
  .hero-actions,.hero-actions button,.result-actions,.result-actions button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-lab { min-height: 350px; }
  .hero-jar { left: 43%; top: 46%; width: 225px; height: 315px; }
  .hero-scientist { width: 140px; height: 240px; right: -7px; }
  .hero-note { left: 8px; top: 8px; }
  .safety-note { width: calc(100% - 18px); padding: 13px; }
  .safety-note p { font-size: 12px; }
  .section-title h1,.section-title h2 { font-size: 29px; }
  .routes-page,.journal-page { padding: 23px 13px; }
  .route-card { grid-template-columns: 98px 1fr; padding: 16px 13px; }
  .route-number { width: 34px; height: 34px; left: 9px; top: 9px; font-size: 16px; }
  .route-icons { width: 102px; height: 106px; }
  .route-icons .choice-svg { width: 57px; height: 57px; margin-left: -20px; }
  .route-copy strong { font-size: 21px; }
  .route-copy em,.route-copy b { font-size: 12px; }
  .lab-rule { padding: 15px 11px; }
  .game-head h1 { font-size: 32px; }
  .progress span { width: 25px; height: 25px; font-size: 9px; }
  .game-layout { padding: 10px; }
  .jar-card { display: block; padding: 13px; }
  .card-title strong { font-size: 19px; }
  .lab-jar { width: 215px; height: 280px; }
  .meters { margin-top: 0; }
  .guide { margin-top: 11px; }
  .task-card { padding: 19px 13px; }
  .task-card h2 { font-size: 25px; }
  .scene-text { font-size: 13px; }
  .choice-grid { grid-template-columns: 1fr; gap: 9px; }
  .choice-card { min-height: 92px; flex-direction: row; justify-content: flex-start; padding: 7px 11px; }
  .choice-card .choice-svg { width: 68px; height: 68px; flex-basis: 68px; }
  .choice-card span { text-align: left; }
  .order-slots { grid-template-columns: repeat(2,1fr); gap: 6px; }
  .order-slot { min-height: 91px; }
  .step-options { grid-template-columns: 1fr; }
  .step-card { min-height: 69px; }
  .feedback { align-items: flex-start; padding: 13px; }
  .feedback p { font-size: 13px; }
  .game-actions { flex-direction: column; }
  .game-actions button { width: 100%; }
  .result-page { padding: 34px 14px 28px; }
  .result-page h1 { font-size: 38px; }
  .stats { grid-template-columns: 1fr; }
  .result-system { grid-template-columns: 1fr; padding: 13px; }
  .result-jar { width: 170px; height: 225px; }
  .journal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .journal-card { min-height: 170px; }
  .mini-jar { width: 88px; height: 113px; }
  .detail-page { padding: 21px 12px; }
  .detail-jar { height: 390px; }
  .detail-copy h1 { font-size: 36px; }
}

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