/* Obo's Discovery Quest — brand tokens per Academy Branding Playbook.
   Fonts: Raleway (body + bold dialogue) and Baloo 2 (headings — a genuinely
   chunky, rounded display face, not a hopeful system-font guess) both ship in
   assets/fonts/, open-license, pulled from Google Fonts. OnelySans is the
   licensed brand headline font: it loads from assets/fonts/ the moment it's
   dropped in and instantly supersedes Baloo 2 everywhere var(--head) is used —
   nothing else needs to change. */
@font-face {
  font-family: "OnelySans";
  src: url("../assets/fonts/OnelySans-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/Raleway-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/Raleway-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/Baloo2-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/Baloo2-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/Baloo2-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  --yellow: #FDB713; --teal: #219CBC; --navy: #022F49;
  --orange: #E87A55; --sky: #54AFE7; --green: #43B268;
  --ground: #FDFBF4; --card: #FFFFFF; --line: #D8E2E8;
  --head: "OnelySans", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  --body: "Raleway", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  /* pastel tints of the brand palette, for chat-bubble backgrounds */
  --pastel-teal: #E3F5FA; --pastel-purple: #F1E9FA; --pastel-yellow: #FFF6DC;
  --pastel-green: #E8F6EE; --pastel-orange: #FDEBE4; --pastel-sky: #E8F4FC;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body); color: var(--navy);
  background-color: var(--ground);
  /* Atmosphere over a flat wash: a faint "spark" dot-grid (nodding to the
     app's whole Spark motif) plus three soft brand-color blooms, instead of a
     single two-stop gradient. Every hue here is already in the brand palette —
     this is more depth from the same system, not a new one. */
  background-image:
    radial-gradient(rgba(2, 47, 73, 0.05) 1.5px, transparent 1.5px),
    radial-gradient(circle at 12% -8%, rgba(253, 183, 19, 0.30), transparent 40%),
    radial-gradient(circle at 106% 6%, rgba(33, 156, 188, 0.24), transparent 46%),
    radial-gradient(circle at 46% 118%, rgba(84, 175, 231, 0.30), transparent 52%),
    linear-gradient(180deg, #EAF6FA 0%, var(--ground) 30%);
  background-size: 26px 26px, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  min-height: 100vh; font-size: 17px; line-height: 1.5;
}
h1, h2, h3 { font-family: var(--head); color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(26px, 5.5vw, 42px); margin: clamp(6px, 1.6vh, 10px) 0; }
h2 { font-size: clamp(19px, 4.2vw, 28px); margin: clamp(8px, 2vh, 14px) 0 clamp(6px, 1.2vh, 10px); }
.screen { max-width: 860px; margin: 0 auto; padding: clamp(10px, 2.5vh, 18px) 16px clamp(16px, 5vh, 60px); }
.center-screen { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sub { color: #3D5A6E; max-width: 55ch; }

/* One well-orchestrated entrance per screen: show() replaces .screen's whole
   subtree each navigation, so this replays for free on every step of the
   quest without any JS hooks. Staggered by direct-child position; capped past
   the 6th child so long forms don't leave trailing buttons waiting. */
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.screen > * { animation: screenIn 0.5s cubic-bezier(.16, .84, .44, 1) both; }
.screen > *:nth-child(1) { animation-delay: 0s; }
.screen > *:nth-child(2) { animation-delay: .06s; }
.screen > *:nth-child(3) { animation-delay: .12s; }
.screen > *:nth-child(4) { animation-delay: .18s; }
.screen > *:nth-child(5) { animation-delay: .24s; }
.screen > *:nth-child(6) { animation-delay: .30s; }
.screen > *:nth-child(n+7) { animation-delay: .34s; }

/* Scene backgrounds — drop-in: assets/bg-<key>.png behind a soft scrim.
   Set per screen via body[data-bg] in app.js. If a PNG is absent the layered
   url() simply renders nothing and the base body gradient shows through, so
   this stays graceful for any future zone whose art hasn't landed yet. */
body[data-bg] {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
body[data-bg="welcome"] {
  background-image: linear-gradient(180deg, rgba(234, 246, 250, 0.30), rgba(253, 251, 244, 0.45)),
    url("../assets/bg-welcome.png");
}
body[data-bg="zone-tinker"] {
  background-image: linear-gradient(180deg, rgba(253, 251, 244, 0.35), rgba(253, 251, 244, 0.55)),
    url("../assets/bg-zone-tinker.png");
}
body[data-bg="zone-logic"] {
  background-image: linear-gradient(180deg, rgba(253, 251, 244, 0.35), rgba(253, 251, 244, 0.55)),
    url("../assets/bg-zone-logic.png");
}
body[data-bg="zone-spark"] {
  background-image: linear-gradient(180deg, rgba(253, 251, 244, 0.35), rgba(253, 251, 244, 0.55)),
    url("../assets/bg-zone-spark.png");
}
body[data-bg="zone-creator"] {
  background-image: linear-gradient(180deg, rgba(253, 251, 244, 0.35), rgba(253, 251, 244, 0.55)),
    url("../assets/bg-zone-creator.png");
}
body[data-bg="zone-nature"] {
  background-image: linear-gradient(180deg, rgba(253, 251, 244, 0.35), rgba(253, 251, 244, 0.55)),
    url("../assets/bg-zone-nature.png");
}
body[data-bg="zone-tower"] {
  background-image: linear-gradient(180deg, rgba(253, 251, 244, 0.35), rgba(253, 251, 244, 0.55)),
    url("../assets/bg-zone-tower.png");
}
body[data-bg="finale"] {
  background-image: linear-gradient(180deg, rgba(253, 251, 244, 0.35), rgba(253, 251, 244, 0.55)),
    url("../assets/bg-finale-workshop.png");
}
/* Content sits on a translucent, blurred panel so text stays legible over any
   scene while the illustration still frames the screen. */
body[data-bg] .screen {
  background: rgba(253, 251, 244, 0.66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(2, 47, 73, 0.16);
  margin-top: 16px; margin-bottom: 40px;
}

/* buttons */
.btn {
  font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--navy);
  background: #fff; border: 3px solid var(--navy); border-radius: 999px;
  padding: 10px 22px; cursor: pointer; margin: 4px;
  box-shadow: 0 3px 0 var(--navy); transition: transform 0.08s ease, box-shadow 0.08s ease;
}
@media (hover: hover) {
  .btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--navy); }
  .btn-door:not(:disabled):hover { box-shadow: 0 5px 0 var(--green); }
}
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--yellow); }
.btn-big { font-size: 21px; padding: 14px 34px; margin-top: clamp(8px, 2.4vh, 18px); }
.btn-small { font-size: 14px; padding: 6px 14px; box-shadow: 0 2px 0 var(--navy); }
.btn-door { background: #E8F6EE; border-color: var(--green); box-shadow: 0 3px 0 var(--green); color: #1E5B36; }
.link-btn { background: none; border: none; color: var(--teal); font-size: 15px;
  cursor: pointer; text-decoration: underline; font-family: var(--body); margin: 8px; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* form bits */
.f-label { display: block; font-weight: 700; margin: 18px 0 6px; }
.text-input {
  font-family: var(--body); font-size: 18px; width: 100%; max-width: 420px;
  padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px;
}
.pin-input { max-width: 120px; text-align: center; letter-spacing: 8px; }
.age-row, .opt-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.opt-col { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 14px auto; width: 100%; }
.age-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; font-family: var(--head); font-size: 18px; cursor: pointer;
}
.age-btn.sel { background: var(--yellow); border-color: var(--navy); }
.opt-btn {
  border: 2px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 18px; font-family: var(--body); font-size: 15px; cursor: pointer;
}
.opt-btn.sel { background: var(--teal); color: #fff; border-color: var(--teal); }
.opt-btn.dis { opacity: 0.5; pointer-events: none; }
.opt-wide { width: 100%; text-align: left; }
.err { color: #B3261E; font-weight: 700; min-height: 1.2em; }

/* characters */
.obo-hero { width: min(180px, 40vw, 26vh); }
.master-hero { width: min(170px, 40vw, 24vh); display: block; margin: 0 auto; }
.obo-sm { width: 74px; }
.obo-inline { width: 34px; vertical-align: middle; }
.child-note { font-weight: 700; }

/* speech bar — each line renders as a simple curved-corner rectangle "spoken"
   by the character avatar inside it: a pastel tint of the character's brand
   color, rounded corners, no tail. */
#speech-bar { min-height: clamp(56px, 11vh, 84px); margin-bottom: clamp(6px, 1.6vh, 12px); }
.speech {
  display: flex; align-items: center; gap: 12px;
  border: 3px solid var(--teal); border-radius: 22px;
  padding: 12px 16px; max-width: 700px; margin: 0 auto;
  box-shadow: 0 4px 0 rgba(2, 47, 73, 0.14);
}
.speech-obo { background: var(--pastel-sky); border-color: var(--teal); }
.speech-villain { border-color: #6B3FA0; background: var(--pastel-purple); }
.speech-avatar { width: 54px; flex: 0 0 54px; }
.speech-text { flex: 1; font-family: var(--body); font-weight: 700; font-size: 19px; line-height: 1.42; }
.audio-btn { font-size: 20px; background: var(--sky); border: none; border-radius: 50%;
  width: 44px; height: 44px; cursor: pointer; flex: 0 0 44px; }

/* map */
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.map-zone {
  border: 3px solid var(--zc, var(--teal)); border-radius: 18px; background: #fff;
  padding: 18px 10px; cursor: pointer; font-family: var(--head); font-size: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--navy);
  box-shadow: 0 4px 0 var(--zc, var(--teal)); transition: transform 0.1s ease;
}
.map-zone:active { transform: translateY(3px); box-shadow: none; }
.map-zone.done { background: #F0FAF3; }
.mz-icon { font-size: 34px; }
.mz-check { color: var(--green); font-size: 13px; font-family: var(--body); font-weight: 700; }

/* mission map — the six lands as stops on the winding road (all clickable;
   the next unvisited stop pulses as a suggested path, completed ones check off).
   Falls back to a flat sky tint if bg-welcome.png is absent. */
.mission-map {
  position: relative; aspect-ratio: 16 / 9; overflow: visible;
  /* Full-bleed: break out of the 860px .screen column and fill the viewport
     width (the .screen is centered, so this stays centered too). */
  width: min(1400px, 96vw); margin: 16px 0 10px calc(50% - min(700px, 48vw));
  border-radius: 20px;
  background: #DCEFF6 url("../assets/bg-welcome.png") center/cover no-repeat;
  border: 3px solid var(--navy); box-shadow: 0 6px 0 rgba(2, 47, 73, 0.18);
}
.mission-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.trail-base, .trail-dash { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trail-base { stroke: rgba(255, 255, 255, 0.7); stroke-width: 9; }
.trail-dash { stroke: var(--yellow); stroke-width: 5; stroke-dasharray: 0.5 13; }

.mission-marker, .mission-castle {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: var(--head);
}
.mm-pin {
  position: relative; width: clamp(46px, 6.5vw, 68px); height: clamp(46px, 6.5vw, 68px);
  border-radius: 50%; background: #fff; border: 4px solid var(--zc, var(--teal));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 rgba(2, 47, 73, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.5);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.mm-icon { font-size: clamp(22px, 3.4vw, 32px); line-height: 1; }
.mm-step {
  position: absolute; top: -7px; left: -7px; z-index: 3; min-width: 20px; height: 20px;
  padding: 0 4px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.mm-check {
  position: absolute; right: -7px; bottom: -7px; z-index: 3; width: 22px; height: 22px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; line-height: 22px;
  text-align: center; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.mm-label {
  font-size: clamp(11px, 2.4vw, 14px); color: var(--navy); background: rgba(255, 255, 255, 0.92);
  border-radius: 8px; padding: 1px 7px; white-space: nowrap; box-shadow: 0 1px 3px rgba(2, 47, 73, 0.2);
}
.mm-tip {
  position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--navy); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.14s ease, transform 0.14s ease;
}
.mm-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--navy);
}
.mission-marker:hover .mm-pin, .mission-marker:focus-visible .mm-pin {
  transform: scale(1.16) translateY(-2px);
  box-shadow: 0 6px 0 rgba(2, 47, 73, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.6), 0 0 22px var(--zc, var(--teal));
}
.mission-marker:hover .mm-tip, .mission-marker:focus-visible .mm-tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.mission-marker:active .mm-pin { transform: scale(1.05); box-shadow: 0 2px 0 rgba(2, 47, 73, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.5); }
.mission-marker.done .mm-pin { border-color: var(--green); }
.mission-marker.done .mm-icon { opacity: 0.85; }
.mission-marker.next .mm-pin { animation: missionPulse 1.5s ease-in-out infinite; }
.mission-marker.next .mm-label { background: var(--yellow); font-weight: 700; }
@keyframes missionPulse {
  0%, 100% { box-shadow: 0 4px 0 rgba(2, 47, 73, 0.28), 0 0 0 6px rgba(253, 183, 19, 0); }
  50%      { box-shadow: 0 4px 0 rgba(2, 47, 73, 0.28), 0 0 0 13px rgba(253, 183, 19, 0.5); }
}
.mission-castle .mc-icon { font-size: clamp(30px, 6vw, 44px); line-height: 1; display: block;
  filter: drop-shadow(0 3px 4px rgba(2, 47, 73, 0.4)); transition: transform 0.14s ease; }
.mission-castle.locked { cursor: default; }
.mission-castle.locked .mc-icon { filter: grayscale(0.6) brightness(0.92) drop-shadow(0 3px 4px rgba(2, 47, 73, 0.4)); opacity: 0.85; }
.mission-castle.open .mc-icon { animation: castleBob 1.5s ease-in-out infinite; }
.mission-castle.open .mm-label { background: var(--yellow); font-weight: 700; }
.mission-castle.open:hover .mc-icon, .mission-castle.open:focus-visible .mc-icon { transform: scale(1.14); }
@keyframes castleBob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.06); } }

/* zone chrome */
.zone-head { display: flex; align-items: center; gap: 10px; border-bottom: 4px solid var(--zc, var(--teal)); margin-bottom: clamp(6px, 1.4vh, 10px); }
.zone-stage { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: clamp(10px, 2.4vh, 16px); margin-top: clamp(6px, 1.4vh, 10px); }
.zone-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(6px, 1.6vh, 14px); justify-content: center; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(6px, 1.6vh, 14px); }
.part { border: 2px dashed var(--navy); background: #FFF6DC; border-radius: 12px;
  padding: 10px 14px; font-size: 16px; cursor: pointer; }
.part.sel { background: var(--yellow); border-style: solid; }

/* tinker — Skate the Gap (canvas physics game; js/skate.js) */
.sk-wrap { border-radius: 14px; overflow: hidden; border: 2px solid var(--line); }
/* Backdrop is tinker-meadow-background.png (an open canyon/ravine), NOT
   bg-zone-tinker.png — the zone art has its own bridge and props sitting
   exactly where the child builds. This is ambient scenery behind the canvas;
   the game draws its own cliffs + gap on top via physics geometry in
   js/skate.js, so the backdrop doesn't need to align pixel-for-pixel. */
#sk-canvas { display: block; width: 100%; aspect-ratio: 16 / 9; touch-action: none;
  background: url("../assets/tinker-meadow-background.png") center/cover no-repeat; }
.sk-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.sk-bonus { display: contents; }
.sk-item { display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 2px dashed var(--navy); background: #FFF6DC; border-radius: 12px;
  padding: 8px 12px; font-size: 14px; font-family: var(--head); color: var(--navy); cursor: pointer; }
.sk-item img { width: 52px; height: 44px; object-fit: contain; pointer-events: none; }
.sk-item:active { background: var(--yellow); }

/* tinker — fallback slot build (headless / no-canvas environments) */
.gap-scene { display: flex; align-items: flex-end; justify-content: center; gap: 4px; min-height: 120px; position: relative; }
.cliff { width: 90px; height: 90px; background: var(--green); border-radius: 12px 12px 0 0; position: relative; }
.goal-flag { position: absolute; top: -28px; right: 8px; font-size: 24px; }
.slots { display: flex; gap: 6px; align-items: flex-end; }
.slot { width: 74px; height: 46px; border: 3px dashed var(--teal); border-radius: 10px;
  background: #EAF6FA; cursor: pointer; font-size: 13px; }
.slot.filled { border-style: solid; background: #FFF6DC; }
.obo-walker { position: absolute; left: 6px; bottom: 92px; transition: left 1s ease; }
.obo-walker.cross { left: calc(100% - 96px); }

/* logic */
.lgrid { display: grid; grid-template-columns: repeat(5, minmax(44px, 64px)); gap: 4px; justify-content: center; }
.cell { aspect-ratio: 1; background: #EAF6EA; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 22px; }
.cell.tree { background: #D7EDD7; }
.cell.goal { background: #FFF3C4; }
.cell.start { background: #D9F0F7; }
.program { margin-top: 14px; }
.prog-strip { min-height: 44px; background: #F4F7F9; border-radius: 10px; padding: 6px;
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pblock { background: var(--yellow); border: 2px solid var(--navy); border-radius: 8px;
  padding: 4px 10px; font-family: var(--head); font-size: 18px; }
.pblock.ghost { background: none; border: none; color: #9AB0BE; }
.prog-keys { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.pkey { width: 54px; height: 54px; font-size: 24px; border-radius: 12px;
  border: 2px solid var(--navy); background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--navy); }
.pkey.loop { width: auto; padding: 0 12px; background: #E8F6EE; }
.pkey:active { transform: translateY(3px); box-shadow: none; }

/* logic — 2.5D isometric board */
.zone-stage.logic {
  background: radial-gradient(120% 90% at 50% 0%, #EAF7EE 0%, #D6EEDD 55%, #C7E7D1 100%);
  border-color: var(--green); overflow: hidden;
}
.iso-board { position: relative; margin: 4px auto 12px; }
.iso-tile { position: absolute; pointer-events: none; filter: drop-shadow(0 2px 1px rgba(2, 47, 73, 0.08)); }
.iso-obj { position: absolute; transform: translate(-50%, -100%); pointer-events: none;
  filter: drop-shadow(0 5px 4px rgba(2, 47, 73, 0.22)); transition: opacity 0.25s ease; }
.iso-obj.faded { opacity: 0.5; }   /* Obo is behind this — let him show through */
.iso-goal { animation: goalFloat 1.8s ease-in-out infinite; }
@keyframes goalFloat { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -112%); } }
#lg-obo {
  position: absolute; transform: translate(-50%, -86%); cursor: pointer;
  transition: left 0.32s ease, top 0.32s ease;
}
#lg-obo img { width: 100%; display: block; filter: drop-shadow(0 6px 5px rgba(2, 47, 73, 0.3)); transition: filter 0.2s ease; }
/* when Obo is behind a (now-faded) object, give him a glowing silhouette */
#lg-obo.occluded img { filter: drop-shadow(0 0 5px #EAF6FA) drop-shadow(0 0 14px #7BE0A6) brightness(1.08); }
/* ouch! — a burst of stars circling Obo when he bumps something */
.ouch { position: absolute; left: 50%; top: 34%; width: 0; height: 0; pointer-events: none; z-index: 1000; }
.ouch-txt {
  position: absolute; left: 50%; top: -46px; transform: translateX(-50%);
  background: #fff; color: var(--orange); border: 2px solid var(--orange); border-radius: 12px;
  font-family: var(--head); font-size: 14px; padding: 2px 10px; white-space: nowrap;
  animation: ouchPop 0.95s ease forwards;
}
.ouch-star {
  position: absolute; left: 0; top: 0; color: var(--yellow); font-size: 16px;
  text-shadow: 0 0 4px rgba(253, 183, 19, 0.8);
  animation: ouchStar 0.95s ease-out forwards;
  transform: rotate(calc(var(--i) * 72deg)) translateY(-4px);
}
@keyframes ouchPop {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.6); }
  30% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.05); }
  80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-6px); }
}
@keyframes ouchStar {
  0% { opacity: 0; transform: rotate(calc(var(--i) * 72deg)) translateY(0) scale(0.3); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 72deg + 120deg)) translateY(-34px) scale(1.1); }
}
#lg-obo.hop { animation: oboHop 0.5s ease; }
@keyframes oboHop {
  0%, 100% { transform: translate(-50%, -86%); }
  45% { transform: translate(-50%, -112%); }
}
#lg-obo.bump { animation: oboBump 0.46s ease; }
@keyframes oboBump {
  0%, 100% { transform: translate(-50%, -86%); }
  30% { transform: translate(-38%, -86%) rotate(6deg); }
  65% { transform: translate(-58%, -86%) rotate(-5deg); }
}

/* spark — the three-chamber cave (deliberately the one dark stage in the quest) */
.zone-stage.spark {
  background: radial-gradient(circle at 50% 12%, #0E5A82 0%, #043A5C 45%, #022338 100%);
  border-color: var(--navy); color: #EAF6FA; position: relative; overflow: hidden;
  transition: background 0.9s ease;
}
/* the room lights up — warm yellow near the bulb blending into lighter blue */
.zone-stage.spark.lit-room {
  background: radial-gradient(120% 85% at 40% 18%, #FFF6D6 0%, #FBE08C 16%, #8FC7DE 52%, #58A0C6 100%);
}
.zone-stage.spark.lit-room .cave-sub { color: var(--navy); }
.cave-worms { display: flex; gap: 16px; justify-content: center; margin-bottom: 2px; }
.worm { filter: grayscale(1) brightness(0.55); transition: filter 0.4s ease; }
.worm-img { width: 34px; display: block; }
.worm.lit { filter: drop-shadow(0 0 8px #B6F09C); }
.worm.now { animation: wormPulse 1.6s ease infinite alternate; }
@keyframes wormPulse { from { filter: drop-shadow(0 0 3px #B6F09C); } to { filter: drop-shadow(0 0 12px #B6F09C); } }
.cave-title { font-family: var(--head); text-align: center; color: #FDE9A8;
  font-size: 18px; letter-spacing: 0.05em; margin-bottom: 10px; }
.cave-star { position: absolute; color: #9AD6EF; opacity: 0.7; pointer-events: none;
  animation: twinkle 2.4s ease infinite alternate; }
.cave-star.s1 { top: 12px; left: 8%; }
.cave-star.s2 { top: 44px; right: 9%; animation-delay: 0.8s; }
.cave-star.s3 { bottom: 28px; left: 13%; animation-delay: 1.5s; }
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.9; } }
.cave-sub { font-family: var(--head); font-size: 14px; color: #BFE3F2; text-align: center; margin-top: 12px; }
.lantern { text-align: center; }
.lantern-img { width: 78px; }
.lantern.lit .lantern-img { animation: glow 1.2s ease infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 0 6px #FDB713); } to { filter: drop-shadow(0 0 22px #FDB713); } }
.circuit { display: flex; align-items: center; justify-content: center; gap: 0; margin: 16px 0; flex-wrap: wrap; }
.socket { min-width: 104px; min-height: 74px; border: 3px dashed var(--teal); border-radius: 12px;
  background: #EAF6FA; font-size: 15px; cursor: pointer; padding: 6px 8px; position: relative;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.zone-stage.spark .socket { background: rgba(255, 255, 255, 0.07); color: #EAF6FA; }
.part-img { width: 34px; height: 34px; display: block; }
.part-name { display: block; }
.socket .part-img { width: 30px; height: 30px; }
.socket .part-name { font-size: 11px; line-height: 1.15; }
.socket-empty { font-family: var(--head); font-size: 24px; color: #9AD6EF; opacity: 0.8; }
.socket-tag { position: absolute; top: -9px; right: -7px; font-size: 15px; }
.zone-stage.spark .part { display: flex; flex-direction: column; align-items: center;
  min-width: 72px; padding: 6px 8px; font-size: 12px; gap: 2px; }
/* Invention Chamber tray: one combined row, color-grouped by kind instead of
   captioned by kind — power/sensor/doer read apart by border color, and by
   the matching square/round shape once they land in a slot. */
.parts-tray .part[data-kind="power"] { border-color: var(--yellow); }
.parts-tray .part[data-kind="sensor"] { border-color: var(--sky); }
.parts-tray .part[data-kind="actuator"] { border-color: var(--orange); }
.socket.filled { border-style: solid; }
.socket.hum { border-color: #B6F09C; box-shadow: 0 0 12px rgba(182, 240, 156, 0.55); }
.socket.dud { border-color: var(--orange); box-shadow: 0 0 12px rgba(232, 122, 85, 0.55); }
.socket.fresh { border-color: var(--yellow); }
.wire { width: 34px; height: 4px; background: var(--navy); border-radius: 2px; }
.zone-stage.spark .wire { background: #9AD6EF; box-shadow: 0 0 6px rgba(154, 214, 239, 0.6); }
.btn-probe { background: #D9F0F7; border-color: var(--sky); box-shadow: 0 3px 0 var(--sky); }
.btn-probe.on { background: var(--sky); color: #fff; }
.purpose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-top: 10px; }
.purpose-card { border: 3px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06);
  border-radius: 16px; color: #EAF6FA; font-family: var(--head); font-size: 15px;
  padding: 14px 8px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 6px; transition: transform 0.1s ease; }
.purpose-card:hover, .purpose-card:focus-visible { border-color: var(--yellow); }
.purpose-card:active { transform: scale(0.96); }
.pc-img { width: 48px; height: 48px; }
.invent-stage { border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 14px;
  padding: 12px; margin-top: 8px; background: rgba(2, 47, 73, 0.5); }
.invent-stage.lit { border-color: var(--yellow); box-shadow: 0 0 22px rgba(253, 183, 19, 0.35); }
.invent-stage.lit .out-socket.filled { animation: pop 0.5s ease; border-color: var(--yellow); }
.machine-title { text-align: center; font-family: var(--head); color: #FDE9A8; margin-bottom: clamp(4px, 1vh, 8px);
  display: flex; align-items: center; justify-content: center; gap: 6px; }
.mt-img { width: 26px; height: 26px; }
.machine-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.io-fixed { display: inline-flex; }
.io-img { width: 34px; height: 34px; }
.io-slot { min-width: 118px; min-height: 52px; display: inline-flex; align-items: center;
  justify-content: center; gap: 5px; border: 3px dashed #B6F09C; border-radius: 12px;
  background: rgba(255, 255, 255, 0.07); font-size: 14px; padding: 4px 8px; }
.chip-img { width: 22px; height: 22px; }
.btn-icon { width: 22px; height: 22px; vertical-align: -5px; }
.in-chip { border: 2px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; }
.in-chip.sel { background: var(--sky); color: #fff; border-color: var(--sky); }
.cave-q { margin-top: 12px; background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 10px 12px; }
.cave-q-t { font-weight: 700; margin-bottom: 8px; }
.cave-opt { color: var(--navy); text-align: left; }

/* spark chamber 3 — the Invention Chamber device builder. Height-first sizing
   (not width-first) so the whole chamber compresses to fit short viewports
   without scrolling — width is derived from height to keep the chassis art
   undistorted, and separately capped at 96% for narrow/portrait screens. */
.device-scene {
  position: relative; margin: clamp(2px, 0.8vh, 8px) auto;
  --dsh: clamp(140px, 28vh, 300px);
  height: var(--dsh); width: min(96%, calc(var(--dsh) * 1100 / 597));
}
.dev-core-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)); }
.device-scene.lit .dev-core-img { filter: drop-shadow(0 0 22px rgba(253, 183, 19, 0.5)); }
/* the chassis art already shows a dark recess per slot; the button is a light overlay
   that only glows on hover / when filled, so the brass rims read through. */
.dev-slot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center;
  justify-content: center; padding: 0; cursor: pointer; color: #F3E2AE; background: transparent;
  border: 2px dashed rgba(228, 194, 113, 0.5);
  transition: box-shadow 0.15s, background 0.15s, transform 0.1s, border-color 0.15s; }
.dev-slot.sensor, .dev-slot.power { border-radius: 7px; }
.dev-slot.actuator { border-radius: 50%; }
.dev-slot.filled { border-color: transparent; background: transparent;
  box-shadow: 0 0 12px rgba(253, 183, 19, 0.4); }
.dev-slot.drop-hover { border-color: var(--yellow); border-style: solid;
  background: rgba(253, 183, 19, 0.18); box-shadow: 0 0 16px rgba(253, 183, 19, 0.7);
  transform: translate(-50%, -50%) scale(1.06); }
.dev-slot .slot-plus { font-family: var(--head); font-size: 22px; color: rgba(243, 226, 174, 0.8); }
.dev-part { width: 96%; height: 96%; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }
/* side-by-side on any screen wide enough to have shown a two-column tray;
   wraps to stacked on narrow ones. Cuts the chamber's tallest non-art block
   roughly in half compared to a stacked name+brief layout. */
.dev-fields { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin: clamp(4px, 1.4vh, 14px) auto 0; }
.dev-field { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; text-align: left; }
.dev-field-brief { flex: 1.6 1 260px; }
.dev-lab { font-family: var(--head); font-size: 13px; color: #BFE3F2; }
.dev-fields .text-input { width: 100%; padding: 7px 10px; font-size: 15px; }
.dev-brief { min-height: clamp(32px, 6vh, 48px); resize: vertical; font-family: var(--body); line-height: 1.3; }
.dev-ghost { position: fixed; transform: translate(-50%, -50%); width: 46px; height: 46px;
  pointer-events: none; z-index: 60; opacity: 0.92; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
.dev-ghost img { width: 100%; height: 100%; object-fit: contain; }

/* activation timeline — the device "comes to life" when tested */
.dev-caption { max-width: 460px; margin: 10px auto 0; text-align: center; font-family: var(--head);
  color: #FDE9A8; font-size: 15px; line-height: 1.35; background: rgba(2, 47, 73, 0.55);
  border: 1px solid rgba(154, 214, 239, 0.4); border-radius: 12px; padding: 8px 12px; min-height: 20px; }
.dev-caption.summary { color: #fff; }
.device-scene.activating .dev-core-img { animation: corePulse 1.1s ease-in-out infinite; }
@keyframes corePulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(253, 183, 19, 0.5)); }
  50% { filter: drop-shadow(0 0 30px rgba(253, 183, 19, 0.95)); } }
.dev-slot.active { border-color: var(--yellow); }
.dev-slot.fx-power { animation: fxPower 0.9s ease-out; }
.dev-slot.fx-sense, .dev-slot.fx-sound { animation: fxSense 0.9s ease-out; }
.dev-slot.fx-light { animation: fxLight 0.7s ease-out; }
.dev-slot.fx-buzz { animation: fxBuzz 0.5s ease-in-out; }
.dev-slot.fx-burst { animation: fxBurst 0.7s ease-out; }
.dev-slot.fx-spin .dev-part { animation: fxSpin 0.9s linear; }
.dev-slot.fx-move .dev-part { animation: fxMove 0.9s ease-in-out; transform-origin: 50% 80%; }
@keyframes fxPower {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 183, 19, 0); }
  40% { box-shadow: 0 0 22px 6px rgba(253, 183, 19, 0.9); } }
@keyframes fxSense {
  0% { box-shadow: 0 0 0 0 rgba(228, 194, 113, 0.7); }
  100% { box-shadow: 0 0 0 22px rgba(228, 194, 113, 0); } }
@keyframes fxLight {
  0%, 100% { box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4); }
  40% { box-shadow: 0 0 26px 8px rgba(253, 183, 19, 0.95); } }
@keyframes fxBuzz {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-54%, -50%); }
  75% { transform: translate(-46%, -50%); } }
@keyframes fxBurst {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.28); }
  100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes fxSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes fxMove { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-24deg); } 70% { transform: rotate(24deg); } }

/* spark chamber 1 — the lamp assembly puzzle (real everyday object) */
.lamp-scene { position: relative; height: min(520px, 56vh); aspect-ratio: 1113 / 2646; width: auto; margin: 4px auto 2px; }
.lamp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4)); }
.lamp-scene.on::after {
  content: ""; position: absolute; left: 32%; top: 20%; width: 130%; height: 46%;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(253, 183, 19, 0.95), rgba(253, 183, 19, 0.4) 42%, rgba(253, 183, 19, 0) 72%);
  animation: lampGlow 1.4s ease-in-out infinite alternate;
}
@keyframes lampGlow { from { opacity: 0.6; } to { opacity: 1; } }
.lamp-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.lamp-wires path { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lamp-wires.live path { stroke: var(--yellow); filter: drop-shadow(0 0 4px rgba(253, 183, 19, 0.9));
  animation: wireFlow 0.8s ease-in-out infinite alternate; }
@keyframes wireFlow { from { opacity: 0.65; } to { opacity: 1; } }
.lamp-slot {
  position: absolute; transform: translate(-50%, -50%); z-index: 2; box-sizing: border-box;
  border-radius: 14px; cursor: pointer; padding: 2px;
  border: 3px dashed #9AD6EF; background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.lamp-slot:hover, .lamp-slot:focus-visible { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 14px rgba(154, 214, 239, 0.6); }
.lamp-slot.filled { border-color: transparent; background: transparent; }
.lamp-slot.bad { border: 3px solid var(--orange); background: rgba(232, 122, 85, 0.16); }
.lamp-slot.flippable { border: 3px solid #B6F09C; background: transparent; animation: flippablePulse 1.2s ease-in-out infinite; }
@keyframes flippablePulse { 0%, 100% { box-shadow: 0 0 8px rgba(182, 240, 156, 0.4); } 50% { box-shadow: 0 0 18px rgba(182, 240, 156, 0.85); } }
.slot-part { width: 100%; height: 100%; object-fit: contain; display: block; }
.slot-plus { font-family: var(--head); font-size: 26px; color: #9AD6EF; }

/* creator */
.banner { position: relative; height: 180px; border-radius: 14px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.banner-title { font-family: var(--head); font-size: clamp(18px, 4vw, 30px); color: #fff;
  text-shadow: 0 2px 6px rgba(2, 47, 73, 0.5); z-index: 1; text-align: center; padding: 0 10px; }
.placed-sticker { position: absolute; font-size: 30px; }
.cr-row { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.sticker { font-size: 26px; background: none; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; padding: 4px 8px; background: #fff; }

/* nature */
.match-cols { display: flex; gap: 14px; justify-content: center; }
.mcol { display: flex; flex-direction: column; gap: 8px; flex: 1; max-width: 300px; }
.mcard { border: 2px solid var(--line); border-radius: 12px; background: #fff;
  padding: 10px; font-size: 16px; cursor: pointer; text-align: left; }
.mcard.sel { border-color: var(--teal); background: #EAF6FA; }
.mcard.done { border-color: var(--green); background: #F0FAF3; opacity: 0.8; }
.why-btn { align-self: flex-start; }

/* tower */
.tower-h { text-align: center; font-family: var(--head); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.type-tile, .star-tile {
  border: 3px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  padding: 16px 8px; font-family: var(--head); font-size: 17px; text-align: center;
}
.type-tile.sel, .star-tile.sel { border-color: var(--navy); background: var(--yellow); }
.star-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.pattern-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.pat { font-size: 34px; width: 56px; height: 56px; display: flex; align-items: center;
  justify-content: center; background: #F4F7F9; border-radius: 10px; }
.pat.hole { background: #FFF3C4; border: 3px dashed var(--yellow); font-family: var(--head); }
.pat-opt { font-size: 30px; width: 62px; height: 62px; border-radius: 12px;
  border: 3px solid var(--navy); background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--navy); }
.pat-opt:active { transform: translateY(3px); box-shadow: none; }

/* badge / faces */
.badge-pop { animation: pop 0.5s ease; }
.badge-big { width: 130px; }
@keyframes pop { from { transform: scale(0.2); } 60% { transform: scale(1.15); } to { transform: scale(1); } }
.face-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.face-btn { background: none; border: 3px solid transparent; border-radius: 16px; cursor: pointer; padding: 4px; }
.face-btn:hover, .face-btn:focus-visible { border-color: var(--teal); }
.obo-face svg { width: 76px; height: 64px; display: block; }

/* spark card */
.spark-card {
  width: min(420px, 92vw); background: linear-gradient(160deg, #fff 60%, #FFF6DC);
  border: 4px solid var(--navy); border-radius: 22px; padding: clamp(14px, 3.4vh, 22px);
  margin: clamp(8px, 2.4vh, 16px) auto;
  box-shadow: 0 8px 0 rgba(2, 47, 73, 0.25); text-align: center; position: relative;
}
.sc-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sc-spark { width: 34px; }
.sc-title { font-family: var(--head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; color: var(--teal); }
.sc-name { font-family: var(--head); font-size: 32px; margin-top: 8px; }
.sc-sub { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: #3D5A6E; margin-top: 10px; }
.sc-badge-img { width: 110px; margin-top: 6px; }
.sc-badge-name { font-family: var(--head); font-size: 24px; color: var(--navy); }
.sc-also { margin-top: 10px; font-size: 14px; font-weight: 700; color: #3D5A6E; }
.sc-obo { position: absolute; right: 10px; bottom: 8px; }
.sc-obo img { width: 64px; }
.sc-master { margin-top: 16px; font-size: 12px; font-style: italic; color: #3D5A6E; }
/* persona reveal (RIASEC) */
.sc-persona { margin-top: 12px; }
.sc-played { font-size: 13px; color: #3D5A6E; }
.sc-persona-img { width: 128px; margin: 4px auto 2px; display: block; }
.sc-persona-name { font-family: var(--head); font-size: 28px; color: var(--navy); line-height: 1.1; }
.sc-persona-tag { font-size: 15px; font-weight: 700; color: var(--teal); margin-top: 4px; }
.report-pending { font-size: 14px; color: #3D5A6E; font-style: italic; margin: 8px 0; }

/* reports */
.report { background: #fff; border: 2px solid var(--line); border-radius: 16px;
  padding: 20px 24px; margin: 18px auto; max-width: 760px; text-align: left; }
.report h2, .report h3 { margin-top: 18px; }
.rp-meta { color: #3D5A6E; font-size: 14px; }
.rp-note { background: #F4F7F9; border-left: 4px solid var(--teal); padding: 10px 14px;
  border-radius: 0 10px 10px 0; font-size: 14px; }
.radar { width: min(340px, 90%); display: block; margin: 10px auto; }
.radar-pair { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 6px 0; }
.radar-fig { flex: 1 1 260px; max-width: 340px; margin: 0; text-align: center; }
.radar-fig figcaption { font-family: var(--head); font-size: 14px; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.06em; }
.radar-fig .radar { width: 100%; }
.tablebox { overflow-x: auto; }
.report table { border-collapse: collapse; width: 100%; font-size: 14px; }
.report th, .report td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.ops-report { background: #F7FAFC; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0; }
.ops-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.ops-k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #3D5A6E; }
.ops-v { font-weight: 700; }
.ops-v.big { font-size: 22px; font-family: var(--head); }
.conf-high { color: var(--green); } .conf-medium { color: #B07A00; } .conf-emerging { color: var(--orange); }
.json-details { max-width: 760px; margin: 10px auto; text-align: left; }
.json-details pre { background: #06344F; color: #CFE8F5; border-radius: 12px; padding: 14px;
  overflow-x: auto; font-size: 12.5px; }
.session-row { display: block; width: 100%; text-align: left; background: #fff;
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 6px 0;
  cursor: pointer; font-family: var(--body); font-size: 15px; }
.session-row:hover { border-color: var(--teal); }
.w-links { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body, body[data-bg] { background: #fff !important; }
  body[data-bg] .screen { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn, .link-btn, #speech-bar, .w-links, .opt-row { display: none !important; }
  .spark-card { box-shadow: none; }
}
