:root {
  --pixel-ink: #171238;
  --pixel-night: #241b57;
  --pixel-violet: #5d4bc1;
  --pixel-cyan: #72dbea;
  --pixel-gold: #ffd34f;
  --pixel-pink: #ff776b;
  --pixel-green: #4cc695;
}

.adventure-page { background: #f7f4ff; }
.adventure-site-header { background: rgba(255,253,250,.97); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: #5f5874; font-size: .76rem; font-weight: 750; }
.breadcrumbs a { text-underline-offset: 3px; }
.adventure-hero { display: grid; min-height: 620px; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; padding-block: 70px 90px; }
.adventure-hero h1 { max-width: 760px; color: var(--pixel-night); font-size: clamp(2.7rem, 6.5vw, 5.2rem); }
.adventure-lede { max-width: 700px; margin-bottom: 26px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.adventure-facts { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0 0 30px; list-style: none; }
.adventure-facts li { padding: 6px 11px; border: 2px solid #d8d1f1; border-radius: 999px; color: var(--purple-dark); background: var(--white); font-size: .78rem; font-weight: 850; }
.adventure-start { min-width: 205px; }
.adventure-hero-art { position: relative; min-height: 430px; overflow: hidden; border: 6px solid var(--pixel-ink); border-radius: 18px; background: linear-gradient(#302671 0 58%, #ffc95b 58% 62%, #33765c 62%); box-shadow: 14px 16px 0 var(--pixel-gold), var(--shadow); image-rendering: pixelated; }
.adventure-hero-art::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.05) 2px, transparent 2px); background-size: 28px 28px; content: ""; }
.hero-pixel-star { position: absolute; z-index: 2; color: var(--pixel-gold); font-size: 2rem; animation: adventure-blink 1.4s steps(2,end) infinite; }
.star-a { top: 34px; left: 42px; }.star-b { top: 82px; right: 40px; animation-delay: .45s; }
.hero-crystal { position: absolute; z-index: 3; top: 42px; left: 50%; color: #a8f4ff; font-size: 3rem; text-shadow: 0 0 0 var(--pixel-ink), 4px 4px 0 var(--purple); transform: translateX(-50%) rotate(45deg); animation: crystal-float 2s steps(4,end) infinite; }
.hero-pixel-machine { position: absolute; top: 118px; left: 50%; display: grid; width: 210px; height: 175px; place-items: center; border: 7px solid var(--pixel-ink); border-radius: 14px; background: var(--pixel-violet); box-shadow: 10px 10px 0 var(--pixel-gold); transform: translateX(-50%); }
.hero-pixel-machine::before, .hero-pixel-machine::after { position: absolute; top: 54px; width: 36px; height: 65px; border: 6px solid var(--pixel-ink); background: var(--pixel-pink); content: ""; }
.hero-pixel-machine::before { left: -42px; }.hero-pixel-machine::after { right: -42px; }
.hero-pixel-machine span { display: grid; width: 100px; height: 100px; place-items: center; border: 6px solid var(--pixel-ink); border-radius: 8px; background: var(--white); color: var(--purple-dark); font-size: 4.6rem; font-weight: 1000; }
.hero-pixel-machine i { position: absolute; bottom: -34px; width: 34px; height: 34px; border: 6px solid var(--pixel-ink); border-top: 0; background: var(--pixel-cyan); }
.hero-pixel-machine i:first-of-type { left: 24px; }.hero-pixel-machine i:nth-of-type(2) { left: 50%; transform: translateX(-50%); }.hero-pixel-machine i:last-child { right: 24px; }
.hero-map-path { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 1.6rem; filter: drop-shadow(2px 2px 0 var(--pixel-ink)); }
.hero-map-path b { width: 9%; border-top: 4px dotted var(--white); opacity: .8; }

.adventure-game-section { padding-block: 90px 110px; color: var(--white); background: var(--pixel-night); }
.adventure-game-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.adventure-game-heading h2 { margin-bottom: 0; color: var(--white); }
.adventure-game-heading .eyebrow { color: var(--pixel-gold); }
.adventure-reset { min-height: 40px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; color: #ded8f4; background: rgba(255,255,255,.08); cursor: pointer; font-size: .76rem; font-weight: 850; }
.adventure-reset:hover { border-color: var(--pixel-gold); color: var(--white); }
.adventure-console { position: relative; overflow: hidden; border: 5px solid var(--pixel-ink); border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 10px 12px 0 var(--pixel-gold); }
.adventure-toolbar { display: grid; min-height: 58px; grid-template-columns: auto minmax(120px,1fr) auto auto; align-items: center; gap: 13px; padding: 9px 16px; border-bottom: 3px solid var(--pixel-ink); color: var(--white); background: #392d83; }
.adventure-toolbar p { margin: 0; font-size: .75rem; font-weight: 850; }
.adventure-meter { height: 12px; overflow: hidden; border: 3px solid var(--pixel-ink); background: #19143d; }
.adventure-meter span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, var(--pixel-gold) 0 14px, #ffbb3d 14px 17px); transition: width 300ms steps(5,end); }
.adventure-toolbar .sound-toggle { width: 38px; height: 38px; border-color: var(--pixel-ink); border-radius: 5px; }
.chapter-map { display: grid; padding: 10px; margin: 0; grid-template-columns: repeat(5,1fr); gap: 7px; border-bottom: 3px solid var(--pixel-ink); background: #eeeafd; list-style: none; }
.chapter-map button { position: relative; display: grid; width: 100%; min-height: 66px; grid-template-columns: 32px 1fr; align-items: center; gap: 1px 8px; padding: 7px 8px; border: 3px solid #b8afd9; border-radius: 7px; color: #716a8b; background: #faf9ff; cursor: pointer; text-align: left; }
.chapter-map button span { display: grid; width: 31px; height: 31px; grid-row: 1 / 3; place-items: center; border: 3px solid currentColor; border-radius: 4px; font-weight: 1000; }
.chapter-map button b { align-self: end; font-size: .77rem; line-height: 1; }.chapter-map button small { align-self: start; font-size: .6rem; }
.chapter-map button[aria-current="step"] { border-color: var(--pixel-violet); color: var(--purple-dark); background: var(--pixel-gold); box-shadow: 3px 3px 0 var(--pixel-ink); }
.chapter-map button.is-complete { border-color: #258763; color: #145e47; background: #dff8ef; }
.chapter-map button.is-complete span::after { position: absolute; content: "✓"; }
.chapter-map button:disabled { cursor: not-allowed; opacity: .48; }
.chapter-map button:focus-visible, .adventure-options button:focus-visible, .adventure-reset:focus-visible { outline: 4px solid rgba(85,185,232,.6); outline-offset: 3px; }

.adventure-scene { display: grid; min-height: 540px; grid-template-columns: minmax(0,1fr) 245px; background: #fffdf8; }
.scene-main { min-width: 0; padding: 25px; border-right: 3px solid var(--pixel-ink); }
.scene-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.scene-icon { display: grid; width: 53px; height: 53px; flex: 0 0 auto; place-items: center; border: 4px solid var(--pixel-ink); border-radius: 6px; background: var(--pixel-gold); font-size: 1.55rem; box-shadow: 4px 4px 0 var(--pixel-ink); }
.scene-heading p { margin: 0 0 2px; color: var(--purple); font-size: .67rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.scene-heading h2 { margin: 0; font-size: clamp(1.45rem,3vw,2.2rem); }
.chapter-reward { margin-left: auto; padding: 6px 9px; border: 2px solid var(--pixel-ink); border-radius: 5px; background: var(--yellow-soft); font-size: .72rem; font-weight: 900; }
.story-strip { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-bottom: 17px; }
.story-strip p, .story-strip blockquote { min-height: 64px; margin: 0; padding: 11px 13px; border: 2px solid #ded9ed; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.86); font-size: .82rem; }
.story-strip blockquote { border-color: #d6c756; color: #594a11; background: var(--yellow-soft); font-weight: 850; }
.adventure-puzzle { padding: 16px; border: 3px solid var(--pixel-ink); border-radius: 10px; background: rgba(255,255,255,.9); box-shadow: 5px 5px 0 rgba(23,18,56,.18); }
.adventure-puzzle h3 { margin: 13px 0 10px; font-size: 1rem; text-align: center; }
.adventure-clues { display: flex; min-height: 90px; align-items: center; justify-content: center; gap: 10px; }
.adventure-pair { display: grid; min-width: 96px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 12px 10px; border: 3px solid var(--pixel-ink); border-radius: 6px; color: var(--purple-dark); background: #f2efff; font-size: 1.15rem; font-weight: 1000; box-shadow: 3px 3px 0 var(--pixel-gold); }
.adventure-pair i, .target-machine i { color: var(--coral); font-style: normal; }
.target-machine { display: grid; width: min(100%,480px); grid-template-columns: 70px 24px minmax(100px,1fr) 24px 70px; align-items: center; gap: 8px; text-align: center; }
.target-machine span, .target-machine em { display: grid; min-height: 62px; place-items: center; border: 3px solid var(--pixel-ink); border-radius: 6px; color: var(--purple-dark); background: var(--white); font-size: 1.35rem; font-style: normal; font-weight: 1000; box-shadow: 3px 3px 0 var(--pixel-ink); }
.target-machine strong { display: grid; min-height: 70px; place-items: center; padding: 6px; border: 4px solid var(--pixel-ink); border-radius: 8px; color: var(--white); background: var(--pixel-violet); font-size: 1rem; box-shadow: 4px 4px 0 var(--pixel-gold); }
.adventure-options { display: grid; max-width: 650px; margin-inline: auto; grid-template-columns: repeat(4,1fr); gap: 9px; }
.adventure-options button { min-height: 53px; padding: 7px; border: 3px solid #c9c2df; border-radius: 7px; color: var(--purple-dark); background: var(--white); cursor: pointer; font-size: 1rem; font-weight: 1000; box-shadow: 0 3px 0 #b7afd2; }
.adventure-options button:hover { border-color: var(--pixel-violet); background: #f1edff; transform: translateY(-1px); }
.adventure-options button:active { transform: translateY(2px); box-shadow: none; }
.adventure-options button.is-wrong { border-color: var(--pixel-pink); color: #8c3029; background: #fff0ee; animation: pixel-wrong 320ms steps(4,end); }
.adventure-options button.is-correct { border-color: #258763; color: #145e47; background: #ddf8ed; box-shadow: 0 3px 0 #258763; animation: pixel-correct 500ms steps(4,end); }
.adventure-options button:disabled { cursor: default; transform: none; }
.adventure-feedback { display: flex; min-height: 55px; align-items: center; gap: 9px; padding: 9px 12px; border: 2px solid #ddd7eb; border-radius: 8px; color: var(--muted); background: #f7f5fc; font-size: .78rem; }
.adventure-feedback span { font-size: 1.25rem; }.adventure-feedback p { margin: 0; }
.adventure-feedback.is-correct { border-color: #7bd3b2; color: #145e47; background: #ddf8ed; }
.adventure-feedback.is-wrong { border-color: #ffaea7; color: #8c3029; background: #fff0ee; }
.adventure-feedback.sr-only { position: absolute; width: 1px; min-height: 0; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.adventure-result-row .button { min-width: 150px; }

.companion-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 15px; overflow: hidden; color: var(--white); background: #342979; text-align: center; }
.pixel-companion { position: relative; width: 130px; height: 202px; flex: 0 0 auto; margin-bottom: 14px; image-rendering: pixelated; animation: pip-idle 1.8s steps(2,end) infinite; }
.pip-emote { position: absolute; z-index: 4; top: 0; right: 4px; color: var(--pixel-gold); font-size: 1.6rem; opacity: 0; }
.pip-antenna { position: absolute; z-index: 2; top: 12px; left: 58px; width: 14px; height: 27px; border: 4px solid var(--pixel-ink); border-bottom: 0; background: var(--pixel-cyan); }
.pip-antenna i { position: absolute; top: -13px; left: -7px; width: 20px; height: 14px; border: 4px solid var(--pixel-ink); background: var(--pixel-gold); }
.pip-head { position: absolute; z-index: 3; top: 39px; left: 17px; width: 96px; height: 73px; border: 7px solid var(--pixel-ink); border-radius: 7px; background: var(--pixel-cyan); box-shadow: inset 0 -10px 0 #4fb9d1; }
.pip-ear { position: absolute; top: 18px; width: 14px; height: 29px; border: 5px solid var(--pixel-ink); background: var(--pixel-gold); }.pip-ear.left { left: -20px; }.pip-ear.right { right: -20px; }
.pip-eye { position: absolute; top: 20px; width: 12px; height: 16px; background: var(--pixel-ink); }.pip-eye.left { left: 17px; }.pip-eye.right { right: 17px; }
.pip-mouth { position: absolute; bottom: 13px; left: 35px; width: 13px; height: 6px; background: var(--pixel-ink); }
.pip-body { position: absolute; z-index: 2; top: 109px; left: 31px; width: 68px; height: 62px; border: 7px solid var(--pixel-ink); border-radius: 5px; background: var(--pixel-pink); box-shadow: inset 0 -9px 0 #e6555c; }
.pip-heart { position: absolute; top: 11px; left: 20px; color: var(--white); font-size: 1.2rem; line-height: 1; }
.pip-arm { position: absolute; top: 7px; width: 17px; height: 49px; border: 6px solid var(--pixel-ink); background: var(--pixel-cyan); transform-origin: top center; }.pip-arm.left { left: -25px; }.pip-arm.right { right: -25px; }
.pip-leg { position: absolute; bottom: -29px; width: 19px; height: 30px; border: 6px solid var(--pixel-ink); border-top: 0; background: var(--pixel-gold); }.pip-leg.left { left: 5px; }.pip-leg.right { right: 5px; }
.pip-shadow { position: absolute; bottom: 0; left: 22px; width: 86px; height: 13px; background: rgba(11,8,31,.38); }
.companion-copy { width: 100%; }.companion-label { margin: 0; color: #aaa2d2; font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }.companion-copy h3 { margin: 3px 0 10px; color: var(--pixel-gold); font-size: 1.45rem; }
.companion-message { position: relative; min-height: 83px; padding: 12px 10px; border: 3px solid var(--pixel-ink); border-radius: 6px; color: var(--pixel-ink); background: var(--white); font-size: .76rem; font-weight: 800; }
.companion-message::before { position: absolute; top: -12px; left: 50%; width: 18px; height: 18px; border-top: 3px solid var(--pixel-ink); border-left: 3px solid var(--pixel-ink); background: var(--white); content: ""; transform: translateX(-50%) rotate(45deg); }
.pixel-companion[data-mood="thinking"] .pip-antenna i { background: var(--white); animation: adventure-blink .8s steps(2,end) infinite; }
.pixel-companion[data-mood="oops"] { animation: pip-oops 520ms steps(4,end); }.pixel-companion[data-mood="oops"] .pip-eye { top: 26px; height: 7px; }.pixel-companion[data-mood="oops"] .pip-mouth { width: 18px; height: 10px; border-top: 5px solid var(--pixel-ink); background: transparent; }.pixel-companion[data-mood="oops"] .pip-emote { color: #a8f4ff; opacity: 1; content: "💧"; }
.pixel-companion[data-mood="encourage"] { animation: pip-encourage 700ms steps(5,end); }.pixel-companion[data-mood="encourage"] .pip-arm.right { transform: rotate(-145deg); }.pixel-companion[data-mood="encourage"] .pip-emote { color: var(--pixel-pink); opacity: 1; animation: emote-pop 700ms steps(4,end); }
.pixel-companion[data-mood="cheer"] { animation: pip-cheer 650ms steps(5,end); }.pixel-companion[data-mood="cheer"] .pip-arm.left { transform: rotate(145deg); }.pixel-companion[data-mood="cheer"] .pip-arm.right { transform: rotate(-145deg); }.pixel-companion[data-mood="cheer"] .pip-mouth { width: 22px; height: 12px; border-radius: 0 0 10px 10px; }.pixel-companion[data-mood="cheer"] .pip-emote { opacity: 1; animation: emote-pop 700ms steps(4,end); }
.pixel-companion[data-mood="celebrate"] { animation: pip-celebrate 900ms steps(6,end) infinite; }.pixel-companion[data-mood="celebrate"] .pip-arm.left { transform: rotate(145deg); }.pixel-companion[data-mood="celebrate"] .pip-arm.right { transform: rotate(-145deg); }.pixel-companion[data-mood="celebrate"] .pip-emote { opacity: 1; animation: emote-pop 700ms steps(4,end) infinite; }

.scene-forest { background-color: #f5fff7; background-image: linear-gradient(rgba(58,151,102,.08) 2px,transparent 2px),linear-gradient(90deg,rgba(58,151,102,.08) 2px,transparent 2px); background-size: 28px 28px; }
.scene-monster { background: #fff8e7; }.scene-factory { background-color: #edf4f8; background-image: linear-gradient(#d4e0e7 2px,transparent 2px),linear-gradient(90deg,#d4e0e7 2px,transparent 2px); background-size: 32px 32px; }.scene-castle { background: #fff5e6; }.scene-alien { background-color: #f2efff; background-image: radial-gradient(#8776db 1.5px,transparent 1.5px); background-size: 22px 22px; }
.adventure-finale { position: absolute; z-index: 10; display: grid; inset: 0; place-items: center; padding: 24px; color: var(--white); background: rgba(18,13,49,.9); backdrop-filter: blur(5px); }
.adventure-finale[hidden] { display: none; }
.finale-card { position: relative; width: min(100%,590px); padding: 35px; overflow: hidden; border: 6px solid var(--pixel-ink); border-radius: 15px; color: var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--pixel-gold); text-align: center; animation: finale-in 650ms steps(6,end); }
.finale-card h2 { color: var(--purple-dark); }.finale-card > p:not(.eyebrow) { color: var(--muted); }.finale-badge { display: block; font-size: 4.5rem; line-height: 1; animation: badge-bob 1s steps(4,end) infinite; }
.finale-route { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 23px 0; font-size: 1.55rem; }.finale-route i { color: var(--coral); font-size: 1rem; font-style: normal; }
.finale-card .button { margin: 0 auto 16px; }.finale-home { display: block; color: var(--purple); font-size: .8rem; font-weight: 850; }
.finale-confetti i { position: absolute; color: var(--pixel-gold); font-style: normal; animation: confetti-drop 1.8s steps(7,end) infinite; }.finale-confetti i:nth-child(1) { top: -20px; left: 8%; }.finale-confetti i:nth-child(2) { top: -20px; left: 28%; animation-delay: .4s; }.finale-confetti i:nth-child(3) { top: -20px; left: 52%; animation-delay: .8s; }.finale-confetti i:nth-child(4) { top: -20px; left: 75%; animation-delay: .25s; }.finale-confetti i:nth-child(5) { top: -20px; left: 92%; animation-delay: .65s; }

.chapter-guide { background: #f7f4ff; }
.chapter-guide-grid { display: grid; padding: 0; margin: 0; grid-template-columns: repeat(5,1fr); gap: 10px; list-style: none; }
.chapter-guide-grid li { padding: 20px 17px; border: 2px solid var(--line); border-radius: 13px; background: var(--white); }.chapter-guide-grid li:nth-child(even) { transform: translateY(12px); }.chapter-guide-grid span { display: inline-block; margin-bottom: 15px; padding: 4px 8px; border-radius: 5px; color: var(--purple-dark); background: var(--yellow-soft); font-size: .7rem; font-weight: 900; }.chapter-guide-grid h3 { font-size: 1rem; }.chapter-guide-grid p { margin: 0; color: var(--muted); font-size: .8rem; }
.adventure-learning { padding-block: 80px; color: var(--white); background: var(--purple-dark); }.adventure-learning-inner { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 60px; }.adventure-learning h2 { margin: 0; color: var(--white); }.adventure-learning .eyebrow { color: var(--pixel-gold); }.adventure-learning ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }.adventure-learning li { padding: 12px 14px; border-left: 4px solid var(--pixel-gold); color: #ddd8f3; background: rgba(255,255,255,.07); }.adventure-learning strong { color: var(--white); }

@keyframes adventure-blink { 50% { opacity: .35; } }
@keyframes crystal-float { 50% { transform: translate(-50%,-10px) rotate(45deg); } }
@keyframes pip-idle { 50% { transform: translateY(-3px); } }
@keyframes pip-oops { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes pip-encourage { 35% { transform: translateY(-8px) rotate(3deg); } 70% { transform: translateY(1px) rotate(-2deg); } }
@keyframes pip-cheer { 30% { transform: translateY(-15px); } 60% { transform: translateY(2px); } }
@keyframes pip-celebrate { 25% { transform: translate(-6px,-12px) rotate(-4deg); } 50% { transform: translate(6px,0) rotate(4deg); } 75% { transform: translate(-3px,-8px) rotate(-2deg); } }
@keyframes emote-pop { 50% { transform: translateY(-14px) scale(1.3); } }
@keyframes pixel-wrong { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes pixel-correct { 50% { transform: translateY(-5px) scale(1.04); } }
@keyframes finale-in { from { transform: translateY(25px) scale(.85); } }
@keyframes badge-bob { 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes confetti-drop { to { top: 110%; transform: rotate(180deg); } }

@media (max-width: 900px) {
  .adventure-hero { grid-template-columns: 1fr; padding-block: 60px 75px; text-align: center; }.adventure-hero-copy { display: grid; justify-items: center; }.breadcrumbs { justify-content: center; }.adventure-hero-art { width: min(100%,520px); min-height: 390px; margin-inline: auto; }
  .chapter-map button { grid-template-columns: 28px 1fr; padding-inline: 5px; }.chapter-map button span { width: 27px; height: 27px; }.chapter-map button small { display: none; }
  .adventure-scene { grid-template-columns: minmax(0,1fr) 210px; }.companion-panel { padding-inline: 10px; }
  .chapter-guide-grid { grid-template-columns: repeat(3,1fr); }.chapter-guide-grid li:nth-child(even) { transform: none; }
}

@media (max-width: 700px) {
  .adventure-site-header .header-inner { min-height: 52px; }
  .adventure-hero { display: block; min-height: 0; padding-block: 13px 11px; text-align: left; }.adventure-hero-copy { display: block; }.adventure-hero h1 { margin: 0; font-size: 1.45rem; }.adventure-lede { margin: 4px 0 0; font-size: .76rem; }.adventure-hero .breadcrumbs,.adventure-hero .eyebrow,.adventure-facts,.adventure-start,.adventure-hero-art { display: none; }
  .adventure-game-section { padding-block: 7px 34px; }.adventure-game-section > .shell { width: min(calc(100% - 10px),var(--shell)); }.adventure-game-heading { display: none; }.adventure-console { border-width: 3px; border-radius: 10px; box-shadow: none; }
  .adventure-toolbar { min-height: 42px; grid-template-columns: auto 1fr auto; gap: 6px; padding: 4px 6px; }.adventure-toolbar p { font-size: .62rem; }.adventure-toolbar p:nth-of-type(2) { display: none; }.adventure-meter { height: 9px; }.adventure-toolbar .sound-toggle { width: 34px; height: 34px; }
  .chapter-map { overflow: visible; grid-template-columns: repeat(5,1fr); gap: 3px; padding: 4px; }.chapter-map button { display: grid; min-height: 32px; grid-template-columns: 1fr; place-items: center; padding: 2px; border-width: 2px; box-shadow: none; }.chapter-map button span { width: 23px; height: 23px; grid-row: auto; border-width: 2px; font-size: .7rem; }.chapter-map button b,.chapter-map button small { display: none; }
  .adventure-scene { position: relative; min-height: 0; grid-template-columns: 1fr; }.scene-main { padding: 7px; border-right: 0; }.scene-heading { min-height: 37px; gap: 7px; padding-right: 52px; margin-bottom: 5px; }.scene-icon { width: 34px; height: 34px; border-width: 2px; box-shadow: 2px 2px 0 var(--pixel-ink); font-size: 1rem; }.scene-heading p { font-size: .52rem; }.scene-heading h2 { font-size: 1rem; }.chapter-reward { display: none; }
  .story-strip { display: none; }.adventure-puzzle { padding: 6px; border-width: 2px; box-shadow: 2px 2px 0 rgba(23,18,56,.18); }.adventure-puzzle h3 { margin: 6px 0; font-size: .82rem; }.adventure-clues { min-height: 59px; gap: 3px; }.adventure-pair { min-width: 0; flex: 1 1 0; gap: 2px; padding: 6px 2px; border-width: 2px; font-size: .72rem; box-shadow: 2px 2px 0 var(--pixel-gold); }.target-machine { grid-template-columns: 42px 12px minmax(82px,1fr) 12px 42px; gap: 3px; }.target-machine span,.target-machine em { min-height: 44px; border-width: 2px; font-size: .9rem; box-shadow: 2px 2px 0 var(--pixel-ink); }.target-machine strong { min-height: 48px; border-width: 2px; font-size: .68rem; box-shadow: 2px 2px 0 var(--pixel-gold); }
  .adventure-options { grid-template-columns: 1fr 1fr; gap: 5px; }.adventure-options button { min-height: 42px; border-width: 2px; font-size: .88rem; }
  .companion-panel { position: absolute; z-index: 3; top: 5px; right: 5px; display: block; width: 44px; height: 57px; padding: 0; overflow: visible; background: transparent; }.pixel-companion { width: 130px; height: 202px; margin: 0; scale: .28; transform-origin: top left; }.companion-copy { display: none; }
  .chapter-guide-grid { grid-template-columns: 1fr 1fr; }.adventure-learning-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 430px) {
  .adventure-hero h1 { font-size: 1.35rem; }
  .chapter-guide-grid { grid-template-columns: 1fr; }.finale-card { padding: 28px 16px; border-width: 4px; }.finale-route { gap: 4px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-companion, .pip-emote, .hero-crystal, .hero-pixel-star, .finale-badge, .finale-confetti i { animation: none !important; }
}
