/* Magic Learning Lab 2.0 — concept preview styles. No outside files: fonts and art are all local. */
@import url(fonts/fonts.css);

:root {
  --teal: #0f8577; --teal-dark: #0a5f56; --teal-soft: #d9f2ee;
  --cream: #fff8ec; --paper: #ffffff; --ink: #17323a; --ink-soft: #46626a;
  --lamp: #ffc94a; --lamp-deep: #f2a51e; --sea: #1f7fd1; --sky: #58aef0; --grass: #6dbb3c;
  --purple: #7a4fd0; --wood: #b9783f;
  --radius: 22px; --shadow: 0 10px 30px rgba(15, 60, 80, .18);
  --head: "Baloo 2", ui-rounded, system-ui, sans-serif; --body: "Nunito", ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 19px; line-height: 1.5; color: var(--ink); background: var(--cream); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); } h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); } h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
:focus-visible { outline: 4px solid var(--purple); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 99; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 12px 26px; border: 0; border-radius: 999px;
  font: 800 1.15rem var(--head); text-decoration: none; cursor: pointer; background: var(--teal); color: #fff; box-shadow: 0 5px 0 var(--teal-dark); transition: transform .12s; }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--teal-dark); }
.btn.gold { background: var(--lamp); color: #3b2a00; box-shadow: 0 5px 0 var(--lamp-deep); }
.btn.plain { background: #fff; color: var(--teal-dark); box-shadow: 0 5px 0 #c9dedb; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.tag.soon { background: #f1ecdf; color: #7a6a45; } .tag.ready { background: #dff5d0; color: #2d6a0c; }
.note { font-size: .85rem; color: var(--ink-soft); }
.concept-bar { background: #17323a; color: #fff; font-size: .9rem; padding: 8px 16px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.concept-bar a { color: var(--lamp); font-weight: 800; }

/* top bar */
.top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.top img.logo { height: 84px; width: auto; }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.top nav a { min-height: 48px; display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px; font: 800 1rem var(--head); text-decoration: none; color: var(--ink); background: rgba(255,255,255,.8); }
.top nav a.grown { background: transparent; border: 2px solid rgba(23,50,58,.25); font-weight: 600; }

/* speech bubble + characters */
.bubble { position: relative; background: #fff; border-radius: 24px; padding: 16px 20px; box-shadow: var(--shadow); font: 700 1.2rem var(--head); max-width: 330px; }
.bubble::after { content: ""; position: absolute; left: 44px; bottom: -16px; border: 16px solid transparent; border-top-color: #fff; border-bottom: 0; }
.zuri { height: min(34vh, 380px); width: auto; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
.beaker { height: 110px; width: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }

/* ---------- Concept A: the interactive lighthouse ---------- */
.sceneA { min-height: 100vh; background: linear-gradient(#2f93e8 0%, #6cbcf5 55%, #bfe5fb 72%, #1f7fd1 72.2%, #175fae 100%); position: relative; overflow: hidden; }
.sceneA .stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 0 20px 40px; max-width: 1300px; margin: 0 auto; }
.sceneA .left { align-self: center; color: #fff; text-shadow: 0 2px 8px rgba(0,40,90,.45); }
.sceneA .left .bubble { color: var(--ink); text-shadow: none; margin: 18px 0 22px; }
.tower { position: relative; height: min(calc(100vh - 190px), 780px); min-height: 430px; aspect-ratio: 640 / 963; justify-self: center; border-radius: 30px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 24px 60px rgba(0,30,70,.4); }
.tower img { width: 100%; height: 100%; object-fit: cover; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; border: 5px solid #fff; background: var(--lamp); color: #3b2a00;
  font: 800 1.6rem var(--head); cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.spot::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); animation: pulse 2.2s infinite; }
.spot.on, .spot:hover { background: #fff; transform: translate(-50%, -50%) scale(1.12); }
@keyframes pulse { 0% { transform: scale(.75); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.rooms { display: grid; gap: 14px; align-self: center; }
.roombtn { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; text-align: left; width: 100%; max-width: 360px; min-height: 84px; padding: 10px 16px; line-height: 1.25; border: 0; border-radius: var(--radius);
  background: rgba(255,255,255,.95); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); font-family: var(--body); font-size: 1rem; transition: transform .12s; }
.roombtn b { display: block; font: 800 1.25rem/1.15 var(--head); }
.roombtn .n { width: 56px; height: 56px; border-radius: 50%; background: var(--lamp); display: grid; place-items: center; font: 800 1.5rem var(--head); color: #3b2a00; }
.roombtn.on, .roombtn:hover { transform: translateX(-6px); background: #fff; outline: 4px solid var(--lamp); }

.room { display: none; min-height: 100vh; background: var(--cream); }
.room.open { display: block; animation: enter .45s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.room .banner { position: relative; height: min(46vh, 420px); background: #cfe9f7 center/cover; display: flex; align-items: flex-end; }
.room .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,40,50,.75)); }
.room .banner .in { position: relative; z-index: 1; color: #fff; padding: 24px; width: 100%; max-width: 1180px; margin: 0 auto; }
.room .banner.need { background: repeating-linear-gradient(45deg, #dfeef0 0 22px, #d2e6e9 22px 44px); }
.room .banner.need::after { background: none; } .room .banner.need .in { color: var(--ink); }
.home-btn { position: sticky; top: 12px; z-index: 5; margin: 12px 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 26px 0 50px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.card .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--teal-soft); display: grid; place-items: center; font-size: 2rem; }
a.card:hover { outline: 4px solid var(--lamp); }

/* ---------- Concept B: the discovery adventure hub ---------- */
.heroB { position: relative; background: #123 url(art/workbench-wide.jpg) center/cover; color: #fff; }
.heroB::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,45,52,.92) 0%, rgba(8,45,52,.7) 45%, rgba(8,45,52,.15) 100%); }
.heroB .in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: end; min-height: min(78vh, 640px); padding-top: 30px; }
.heroB .copy { align-self: center; padding-bottom: 40px; } .heroB .copy p { font-size: 1.25rem; max-width: 34em; }
.heroB .cast { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.heroB .top { position: relative; z-index: 1; } .heroB .top img.logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); } .heroB .cast .zuri { height: min(46vh, 380px); }
.heroB .top nav a { background: rgba(255,255,255,.14); color: #fff; } .heroB .top nav a.grown { border-color: rgba(255,255,255,.5); }
.band { padding: 54px 0; } .band.alt { background: #fff; } .band.sea { background: linear-gradient(#e3f4ff, #cfeaf9); }
.band > .wrap > .lead { max-width: 40em; color: var(--ink-soft); }
.roomgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.roomcard { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 250px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: #2a8 center/cover; box-shadow: var(--shadow); }
.roomcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8,45,52,.88)); }
.roomcard div { position: relative; z-index: 1; padding: 18px; } .roomcard b { font: 800 1.45rem var(--head); display: block; }
.roomcard:hover { outline: 5px solid var(--lamp); }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; background: #fff; border-radius: 30px; padding: 26px; box-shadow: var(--shadow); }
.feature img { border-radius: 20px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 18px; list-style: none; }
.steps li { background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; border-radius: 999px; padding: 4px 14px; font-size: .95rem; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 22px; }
.tile { background: #fff; border-radius: 20px; padding: 16px 12px; text-align: center; font: 800 1.05rem var(--head); box-shadow: 0 4px 14px rgba(15,60,80,.12); min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tile span { font-size: 2.2rem; }
.grown { background: #17323a; color: #e8f3f1; } .grown a { color: var(--lamp); } .grown h2 { color: #fff; }
.grown ul { columns: 2; padding-left: 1.1em; }
footer { background: #0e2329; color: #b9cdd0; padding: 26px 0; font-size: .9rem; } footer a { color: #fff; }

/* ---------- Mission: Sink or Float ---------- */
.mission { min-height: 100vh; background: linear-gradient(#e8f7f4, #fff8ec); padding-bottom: 60px; }
.progress { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 22px; }
.progress li { padding: 5px 14px; border-radius: 999px; background: #fff; font-weight: 800; font-size: .92rem; color: var(--ink-soft); border: 2px solid #d5e5e2; }
.progress li.now { background: var(--teal); color: #fff; border-color: var(--teal); } .progress li.done { background: var(--teal-soft); color: var(--teal-dark); }
.lab { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.tank { position: relative; height: 380px; border-radius: 26px; overflow: hidden; background: linear-gradient(#f7fbff 0 34%, #7fd0f2 34% 100%); border: 6px solid #fff; box-shadow: var(--shadow); }
.tank::before { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 8px; background: rgba(255,255,255,.75); }
.tank::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: #e2c58d; }
.thing { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); font-size: 4.2rem; line-height: 1; transition: top 1.5s cubic-bezier(.3,.8,.4,1); }
.thing.float { top: 24%; animation: bob 2.4s ease-in-out 1.5s infinite; } .thing.sink { top: 73%; }
@keyframes bob { 50% { margin-top: 7px; } }
.tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.pick { min-height: 92px; border-radius: 18px; border: 3px solid #d5e5e2; background: #fff; cursor: pointer; font: 700 .95rem var(--body); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pick span { font-size: 2.2rem; line-height: 1.1; } .pick.sel { border-color: var(--teal); background: var(--teal-soft); } .pick.tested { opacity: .55; }
.choice { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.say { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 16px; } .say .bubble { max-width: none; flex: 1; font-size: 1.15rem; } .say .bubble::after { left: auto; right: 40px; }
table.journal { width: 100%; border-collapse: collapse; font-size: 1rem; } .journal th, .journal td { padding: 8px 6px; border-bottom: 2px solid #e6efed; text-align: left; } .journal th { font-family: var(--head); }
.hide { display: none !important; }

@media (max-width: 900px) {
  .sceneA .stage { grid-template-columns: 1fr; } .sceneA .left { text-align: center; } .sceneA .left .bubble { margin-inline: auto; } .zuri { height: 220px; margin: 0 auto; }
  .tower { max-width: 380px; margin: 0 auto; } .top img.logo { height: 60px; } .top nav a { font-size: .9rem; padding: 4px 12px; }
  .heroB .in, .feature, .lab { grid-template-columns: 1fr; } .heroB .cast .zuri { height: 240px; } .tower { height: auto; width: 100%; }
  .roomgrid { grid-template-columns: 1fr 1fr; } .tiles { grid-template-columns: 1fr 1fr; } .grown ul { columns: 1; } .tray { grid-template-columns: repeat(4, 1fr); }
  .roombtn:hover, .roombtn.on { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Hybrid home: lighthouse first, shelves below ---------- */
.sceneA.hy .more { text-align: center; margin: 0; padding: 0 0 26px; }
.sceneA.hy .tower { height: min(calc(100vh - 270px), 760px); }
@media (max-width: 900px) {
  .sceneA.hy .left .zuri { display: none; } .sceneA.hy .left h1 { font-size: 1.9rem; margin-top: 6px; }
  .sceneA.hy .left .bubble { margin: 8px auto 6px; font-size: 1.05rem; padding: 10px 16px; } .sceneA.hy .left .bubble::after { display: none; }
  .sceneA.hy .stage { gap: 14px; } .sceneA.hy .tower { height: auto; max-width: 300px; }
}

/* ---------- Experiment stages (mission.html) ---------- */
#stage > .tank, .magbox, .mixbox, .svgstage { display: block; width: 100%; border-radius: 26px; border: 6px solid #fff; box-shadow: var(--shadow); overflow: hidden; }
.svgstage { height: auto; background: #fdf3dc; }
.magbox, .mixbox { position: relative; height: 380px; background: linear-gradient(#fdf3dc 0 72%, #c98b4a 72% 100%); }
.magnet { position: absolute; left: 6%; top: 50%; width: 130px; height: 74px; display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 12px rgba(0,0,0,.25); }
.magnet i { flex: 1; background: var(--teal); } .magnet i + i { background: #f4f0e4; }
.obj { position: absolute; left: 74%; top: 50%; font-size: 4rem; line-height: 1; transition: left 1.1s cubic-bezier(.6,0,.9,.6); margin-top: 6px; }
.obj.pulled { left: calc(6% + 132px); } .obj.nope { animation: nope .45s 2; }
@keyframes nope { 25% { margin-left: -8px; } 75% { margin-left: 8px; } }
.mixbox { background: #fdf3dc; } .mixbox.dark { background: #0d0f14; }
.mixbox .c { position: absolute; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; transition: left 1.3s, top 1.3s; }
.mixbox.dark .c { mix-blend-mode: screen; }
.mixbox .c1 { left: 24%; } .mixbox .c2 { left: 76%; } .mixbox .c3 { left: 50%; top: 82%; }
.mixbox.three .c1, .mixbox.three .c2 { top: 36%; }
.mixbox.go .c1 { left: 41%; } .mixbox.go .c2 { left: 59%; } .mixbox.go .c3 { top: 62%; } .mixbox.three.go .c1, .mixbox.three.go .c2 { top: 42%; }
.mixbox .res { position: absolute; left: 50%; top: 50%; width: 230px; height: 200px; margin: -100px 0 0 -115px; border-radius: 48% 52% 50% 50%; opacity: 0; transition: opacity .7s; }
.mixbox .res.show { opacity: 1; }
.wx * { transition: opacity 1.4s, fill 1.4s, transform 1.4s; transform-box: fill-box; }
.wx #sock { transform-origin: 0% 50%; } .wx #merc { transform-origin: 50% 100%; } .wx #puddle { transform-origin: 50% 50%; }
.slide { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; font: 800 1.05rem var(--head); }
.slide input { flex: 1; min-width: 180px; height: 44px; accent-color: var(--teal); }
.soundbar { margin-top: 12px; align-items: center; } .soundbar .btn { min-height: 52px; padding: 8px 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; min-height: 44px; } .check input { width: 26px; height: 26px; accent-color: var(--teal); }
.dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0,0,0,.35); flex: none; }
.tray .pick { padding: 6px 4px; text-align: center; line-height: 1.15; }
@media (max-width: 900px) { .tray { grid-template-columns: repeat(2, 1fr); } .magbox, .mixbox { height: 300px; } .mixbox .c { width: 130px; height: 130px; margin: -65px 0 0 -65px; } }
@media (max-width: 900px) { .say { align-items: center; } .say .bubble { font-size: 1rem; padding: 12px 14px; } .say .beaker { height: 72px; } .say .bubble::after { display: none; } }

/* ---------- Games (game.html) and the Wonder page ---------- */
.wrap.narrow { max-width: 820px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dots { display: flex; gap: 10px; list-style: none; padding: 0; margin: 10px 0 18px; }
.dots li { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #cfe1de; } .dots li.done { background: var(--teal); border-color: var(--teal); } .dots li.now { background: var(--lamp); border-color: var(--lamp-deep); }
#show { text-align: center; margin: 4px 0 14px; }
.bigico { font-size: 6.5rem; line-height: 1.15; } .bigico.shadowbox { background: #f6ecd2; border-radius: 24px; padding: 10px 0; } .shadowed { display: inline-block; filter: brightness(0) opacity(.82); }
.cap { font: 800 1.3rem var(--head); margin: 0; }
.clues { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: left; }
.clues li { display: flex; align-items: center; gap: 14px; background: var(--teal-soft); border-radius: 18px; padding: 10px 16px; font-weight: 800; font-size: 1.1rem; } .clues li span { font-size: 2.2rem; line-height: 1; }
.seq { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; background: #f6ecd2; border-radius: 24px; padding: 18px 12px; }
.seq .q { width: 54px; height: 54px; border-radius: 14px; border: 4px dashed var(--ink-soft); display: grid; place-items: center; font: 800 1.8rem var(--head); color: var(--ink-soft); }
.sh { display: inline-block; width: 44px; height: 44px; flex: none; } .sh.big { width: 64px; height: 64px; }
.sh.c { border-radius: 50%; background: var(--teal); } .sh.s { border-radius: 8px; background: var(--lamp-deep); } .sh.t { background: var(--purple); clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.grp { display: inline-flex; gap: 5px; padding: 8px; border-radius: 14px; background: #fff; } .grp .sh { width: 22px; height: 22px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt { min-height: 96px; border-radius: 20px; border: 4px solid #d5e5e2; background: #fff; cursor: pointer; font: 800 1.05rem/1.2 var(--head); color: var(--ink); padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.opt .oi { font-size: 2.6rem; line-height: 1; } .opt:hover:not(:disabled) { border-color: var(--lamp); }
.opt.yes, .pick.yes { border-color: #3c9a1e; background: #e3f7d6; opacity: 1; } .opt.no, .pick.no { opacity: .4; }
.opt.yes::after, .pick.yes::after { content: "✓"; color: #2d6a0c; font-size: 1.4rem; line-height: 1; }
.tray.hunt { grid-template-columns: repeat(3, 1fr); } .tray.hunt .pick { min-height: 110px; } .tray.hunt .pick span { font-size: 2.8rem; }
@media (max-width: 700px) { .opts { grid-template-columns: 1fr; } .opt { min-height: 72px; flex-direction: row; justify-content: flex-start; padding: 10px 18px; text-align: left; } .bigico { font-size: 5rem; } .tray.hunt { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stories, journal, grown-ups ---------- */
.lead { max-width: 40em; color: var(--ink-soft); }
.card.story .cover { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 170px; border-radius: 16px; background: #cfe9f7 center/cover; overflow: hidden; }
.card.story .cover img { height: 130px; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); } .card.story .cover img + img { height: 62px; }
.listen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 16px; margin: 10px 0 16px; font-weight: 800; box-shadow: var(--shadow); } .listen audio { flex: 1; min-width: 240px; height: 44px; }
.book { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; }
.scene { position: relative; min-height: 380px; border-radius: 26px; border: 6px solid #fff; box-shadow: var(--shadow); background: #cfe9f7 center/cover; display: flex; align-items: flex-end; justify-content: center; gap: 10px; overflow: hidden; padding-bottom: 6px; }
.scene img { height: 250px; width: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); } .scene img + img { height: 110px; }
.page { background: #fff; border-radius: 26px; padding: 24px 26px; box-shadow: var(--shadow); font-size: 1.25rem; line-height: 1.6; } .page .big { font: 800 1.5rem var(--head); } .page h2 { font-size: 1.5rem; margin-top: .4em; }
.turn { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 40px; }
.sheet { background: #fff; border-radius: 26px; padding: 24px; margin-top: 22px; box-shadow: var(--shadow); }
.lines { margin: 14px 0; } .lines b { display: block; font-family: var(--head); } .lines i { display: block; border-bottom: 2px solid #b9c9c6; height: 34px; } .lines i.box { border: 2px solid #b9c9c6; border-radius: 12px; height: 150px; margin-top: 8px; }
.adult { background: #fff; } .adult section { margin-top: 34px; scroll-margin-top: 16px; } .adult h2 { border-bottom: 3px solid var(--teal-soft); padding-bottom: 4px; } .adult li { margin-bottom: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; } .toc a { min-height: 44px; display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; background: var(--teal-soft); font-weight: 800; text-decoration: none; }
.tablewrap { overflow-x: auto; } .adult .journal td { vertical-align: top; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: var(--teal-dark); text-decoration: underline; cursor: pointer; text-align: left; }
.field { min-height: 56px; width: 120px; font: 800 1.3rem var(--head); border: 3px solid #cfe1de; border-radius: 16px; padding: 6px 14px; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .scene { min-height: 260px; } .scene img { height: 180px; } .scene img + img { height: 80px; } .page { font-size: 1.1rem; padding: 18px; } }
@media print {
  .noprint, .concept-bar, .skip { display: none !important; } body, .mission { background: #fff !important; } .panel, .sheet { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
}

/* Lamp Signals */
.lampbox{display:flex;flex-direction:column;align-items:center;gap:10px;background:#17323a;border-radius:18px;padding:22px 16px}
.lampbox .cap{color:#fff;margin:0}
.lamp{width:120px;height:120px;border-radius:50%;background:#4a4a3a;border:6px solid #0f8577;transition:background .12s,box-shadow .12s}
.lamp.on{background:#ffc94a;box-shadow:0 0 0 14px rgba(255,201,74,.35),0 0 60px 30px rgba(255,201,74,.55)}
.code{list-style:none;padding:0;margin:14px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
.code li{display:flex;align-items:center;gap:10px;background:#fff7df;border-radius:12px;padding:8px 12px;font-weight:700}
.code .sig{display:inline-flex;gap:5px;min-width:64px}
.code .sig i{height:14px;border-radius:7px;background:#f2a51e;display:block}
.code .sig i.short{width:14px}.code .sig i.long{width:40px}
@media (prefers-reduced-motion:reduce){.lamp{transition:none}}

/* footer on the live site */
.sitefoot{background:#0e2329;color:#b9cdd0;padding:26px 0;font-size:.95rem}.sitefoot p{margin:0 0 10px;color:#fff}.sitefoot nav{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}.sitefoot a{color:#fff;display:inline-flex;align-items:center;min-height:44px;padding:0 10px;border-radius:10px}.sitefoot a:hover,.sitefoot a:focus-visible{background:rgba(255,255,255,.12)}
a.tile{color:inherit;text-decoration:none;transition:transform .15s}a.tile:hover,a.tile:focus-visible{transform:translateY(-3px);box-shadow:0 8px 20px rgba(15,60,80,.22)}
@media (prefers-reduced-motion:reduce){a.tile{transition:none}a.tile:hover{transform:none}}
