:root {
  --ink: #17324d;
  --ink-soft: #4e6376;
  --teal: #087f8c;
  --teal-dark: #066a74;
  --green: #2e7d4f;
  --yellow: #f2c94c;
  --coral: #d95d4f;
  --sky: #eaf6f8;
  --cloud: #ffffff;
  --line: #d7e4e8;
  --paper: #fbfdfd;
  --shadow: 0 18px 44px rgba(23, 50, 77, 0.12);
  --adventure-art: url("./assets/island-adventure-sprite-v1.webp");
  --explorer-art-a: url("./assets/island-explorer-portraits-a-v2.jpg");
  --explorer-art-b: url("./assets/island-explorer-portraits-b-v2.jpg");
  --career-art: url("./assets/island-explorer-sprite-v1.webp");
  --collectible-art: url("./assets/island-collectible-sprite-v1.webp");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sky);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 0; background: var(--sky); }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(8,127,140,0.32); outline-offset: 2px; }
h1:focus { outline: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.46; }

.auth-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  overflow: hidden;
  background: var(--paper);
}
.auth-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  overflow: hidden;
  padding: 32px clamp(32px, 5vw, 82px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(242,201,76,.18), transparent 24%),
    radial-gradient(circle at 9% 91%, rgba(109,191,186,.24), transparent 30%),
    linear-gradient(150deg, #122a43 0%, #17324d 48%, #075c69 100%);
}
.auth-art::before,
.auth-art::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.auth-art::before {
  top: 11%;
  right: 7%;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  box-shadow: 0 0 0 12px rgba(242,201,76,.08), 0 0 48px rgba(242,201,76,.3);
  animation: auth-beacon 1.8s ease-out 2;
}
.auth-art::after {
  right: -16%;
  bottom: -36%;
  width: 74%;
  aspect-ratio: 1;
  background: rgba(96,190,184,.13);
}
.auth-art-copy {
  position: relative;
  z-index: 3;
  max-width: 610px;
  margin-top: clamp(38px, 5vh, 62px);
  animation: auth-enter-rise .7s cubic-bezier(.2,.75,.2,1) both;
}
.auth-art > .brand-mark { align-self: flex-start; }
.auth-art-copy h1 {
  max-width: 590px;
  margin: 11px 0 18px;
  font-size: clamp(3.1rem, 4.8vw, 4.85rem);
  line-height: .94;
  letter-spacing: -.055em;
}
.auth-art-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: #d6e8eb;
  font-size: 1rem;
  line-height: 1.58;
}
.auth-quest-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 8px;
  margin-top: 20px;
}
.auth-quest-row > span {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 11px;
  color: #d7e9ec;
  background: rgba(8,45,61,.35);
  font-size: .67rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}
.auth-quest-row strong { color: #ffe27c; font-size: .9rem; }
.auth-world-window {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  margin-top: clamp(26px, 3.5vh, 40px);
  animation: auth-scene-enter .82s .16s cubic-bezier(.16,.8,.2,1) both;
  contain: paint;
}
.auth-art .island-illustration {
  position: relative;
  width: 100%;
  right: auto;
  bottom: auto;
  opacity: 1;
}
.auth-world-window .adventure-scene {
  min-height: 260px;
  border: 4px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background-position: center 58%;
  box-shadow: 0 26px 60px rgba(4,26,42,.42);
}
.auth-world-window::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(23,50,77,.08);
  content: "";
  pointer-events: none;
}
.auth-world-window__label {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 15px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(7,38,56,.78);
  box-shadow: 0 8px 22px rgba(4,29,43,.25);
  backdrop-filter: blur(10px);
}
.auth-world-window__label span { color: #ffe27c; font-size: .58rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.auth-world-window__label strong { font-size: .75rem; }
.auth-world-window__route {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}
.auth-world-window__route::before {
  position: absolute;
  top: 44%;
  left: 47%;
  width: 35%;
  border-top: 2px dashed rgba(255,238,153,.8);
  content: "";
  transform: rotate(-18deg);
  transform-origin: left center;
  filter: drop-shadow(0 1px 2px rgba(8,45,61,.65));
}
.auth-world-window__route span {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(242,201,76,.16), 0 2px 6px rgba(4,29,43,.45);
  animation: auth-route-signal 2.4s ease-in-out 2;
}
.auth-world-window__route span:nth-child(1) { top: 45%; left: 46%; animation-delay: .25s; }
.auth-world-window__route span:nth-child(2) { top: 38%; left: 58%; animation-delay: .45s; }
.auth-world-window__route span:nth-child(3) { top: 31%; left: 70%; animation-delay: .65s; }
.auth-world-window__route span:nth-child(4) { top: 23%; left: 82%; animation-delay: .85s; }
.adventure-scene__crew {
  position: absolute;
  z-index: 6;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 14px;
  padding: 8px 10px 7px;
  color: #fff;
  background: rgba(7,38,56,.82);
  box-shadow: 0 9px 24px rgba(4,29,43,.3);
  backdrop-filter: blur(10px);
}
.adventure-scene__crew-portraits { display: flex; padding-left: 5px; }
.adventure-scene__crew .explorer-art {
  width: 42px;
  height: 50px;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 9px rgba(4,29,43,.35);
  animation: auth-crew-deal .52s cubic-bezier(.2,.8,.2,1) both;
}
.adventure-scene__crew .explorer-art:nth-child(2) { animation-delay: .12s; }
.adventure-scene__crew .explorer-art:nth-child(3) { animation-delay: .2s; }
.adventure-scene__crew .explorer-art:nth-child(4) { animation-delay: .28s; }
.adventure-scene__crew small { color: #fff3ae; font-size: .59rem; font-weight: 850; letter-spacing: .03em; text-align: center; }
.auth-panel {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 36px clamp(24px, 4vw, 58px);
  background:
    radial-gradient(circle at 100% 0%, rgba(109,191,186,.15), transparent 32%),
    var(--paper);
}
.auth-panel-inner {
  width: min(100%, 470px);
  border: 1px solid rgba(201,219,222,.88);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 42px);
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 54px rgba(23,50,77,.11);
  animation: auth-panel-enter .72s .1s cubic-bezier(.16,.8,.2,1) both;
}
.auth-panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-setup-step { display: grid; grid-template-columns: auto repeat(2, 22px); align-items: center; gap: 5px; color: #647a85; font-size: .66rem; font-weight: 850; letter-spacing: .02em; }
.auth-setup-step i { height: 4px; border-radius: 99px; background: #d8e6e8; }
.auth-setup-step i[aria-current="step"] { background: var(--teal); }
.brand-mark { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.08rem; }
.brand-mark--dark { color: var(--ink); }
.brand-sun { display: inline-block; width: 18px; height: 18px; background: var(--yellow); border: 4px solid rgba(255,255,255,0.35); border-radius: 50%; box-shadow: 0 0 0 4px rgba(242,201,76,0.18); }
.brand-mark--dark .brand-sun { border-color: rgba(8,127,140,0.18); }
.context-badge { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: var(--teal-dark); background: #d6f0f1; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.auth-panel h2 { margin: 18px 0 10px; font-size: clamp(2rem, 3.2vw, 2.65rem); line-height: 1; letter-spacing: -.045em; }
.muted { color: var(--ink-soft); line-height: 1.6; }
.auth-form { display: grid; gap: 10px; margin-top: 24px; }
.auth-form label { font-weight: 750; font-size: 0.9rem; }
.auth-form input { width: 100%; min-height: 54px; border: 2px solid #b9cfd4; border-radius: 12px; padding: 14px 15px; outline: none; color: var(--ink); background: #fff; }
.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,140,0.14); }
.auth-field-help,
.auth-field-error { margin: -2px 0 0; font-size: .71rem; line-height: 1.4; }
.auth-field-help { color: #607580; }
.auth-field-error { color: #a63b32; font-weight: 800; }
.auth-field-error:empty { display: none; }
.auth-form input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(217,93,79,.12); }
.auth-form .button { position: relative; overflow: hidden; min-height: 54px; }
.auth-form .button::after {
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 30%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg);
  animation: auth-cta-glint 2.8s 1.05s ease-in-out 1;
}
.auth-next-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  margin-top: 15px;
  border: 1px solid #d8e7e8;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f2f8f8;
}
.auth-next-step span { grid-row: 1 / span 2; color: var(--teal-dark); font-size: .62rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.auth-next-step strong { font-size: .78rem; }
.fine-print { margin: 18px 0 0; color: #5c6f7d; font-size: 0.8rem; line-height: 1.5; }
.auth-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 18px;
  color: #55707a;
  font-size: .72rem;
  font-weight: 750;
}
.auth-trust-list span::first-letter { color: var(--green); }

.intro-shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(410px, .95fr); overflow: hidden; background: var(--paper); }
.intro-hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  overflow: hidden;
  padding: 32px clamp(32px, 5vw, 82px) 36px;
  background:
    radial-gradient(circle at 78% 14%, rgba(242,201,76,.3), transparent 20%),
    linear-gradient(145deg, #f0fbf8 0%, #dcefee 58%, #c5e2e0 100%);
}
.intro-hero::after { content: ""; position: absolute; z-index: -1; right: -16%; bottom: -36%; width: 82%; aspect-ratio: 1; border-radius: 50%; background: rgba(8,127,140,.13); }
.intro-hero__copy { position: relative; z-index: 3; max-width: 590px; margin-top: clamp(58px, 8vh, 104px); }
.intro-hero__copy h1 { max-width: 570px; margin: 10px 0 17px; color: var(--ink); font-size: clamp(3rem, 4.8vw, 5rem); line-height: .96; letter-spacing: -.055em; }
.intro-hero__copy > p:not(.eyebrow) { max-width: 475px; margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.58; }
.intro-quest-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 9px;
  width: fit-content;
  margin-top: 20px;
  border: 1px solid rgba(8,127,140,.2);
  border-radius: 13px;
  padding: 10px 13px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 20px rgba(23,50,77,.08);
  backdrop-filter: blur(8px);
}
.intro-quest-badge > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; color: transparent; border-radius: 50%; background: var(--yellow); }
.intro-quest-badge > span::after { color: var(--ink); font-size: 1rem; content: "⌖"; }
.intro-quest-badge strong { font-size: .78rem; }
.intro-quest-badge small { color: var(--ink-soft); font-size: .62rem; }
.intro-island { position: absolute; z-index: 1; right: clamp(22px, 4vw, 64px); bottom: 28px; width: min(62%, 620px); }
.intro-island svg { width: 100%; height: auto; }
.auth-art .adventure-scene { min-height: 245px; }
.intro-island .adventure-scene { min-height: 260px; }
.intro-panel { display: grid; align-content: center; width: 100%; padding: 44px clamp(28px, 5vw, 72px); }
.intro-panel h2 { margin: 18px 0 10px; font-size: clamp(2.15rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.intro-panel__lead { max-width: 610px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.core-loop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; margin: 24px 0 18px; }
.core-loop__step { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 4px 10px; min-height: 76px; border: 1px solid #d9e6e7; border-radius: 13px; padding: 12px; background: #fff; box-shadow: 0 6px 16px rgba(23,50,77,.045); }
.core-loop__step > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-weight: 900; }
.core-loop__step > div { display: grid; gap: 3px; }
.core-loop__step strong { font-size: .86rem; }
.core-loop__step p { margin: 0; color: var(--ink-soft); font-size: .7rem; line-height: 1.35; }
.core-loop__arrow { display: none; }
.intro-rule { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #eadb9d; border-left: 5px solid var(--yellow); border-radius: 12px; padding: 13px 14px; background: #fffaf0; }
.intro-rule__icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-weight: 900; }
.intro-rule div { display: grid; gap: 3px; }
.intro-rule strong { font-size: 0.86rem; }
.intro-rule p { margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.45; }
.intro-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.intro-actions .button { width: 100%; min-height: 54px; }

@keyframes auth-beacon {
  50% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(242,201,76,.035), 0 0 58px rgba(242,201,76,.38); }
}
@keyframes auth-enter-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes auth-scene-enter { from { opacity: 0; transform: translateY(24px) scale(.975); } }
@keyframes auth-panel-enter { from { opacity: 0; transform: translateX(22px); } }
@keyframes auth-route-signal { 50% { transform: scale(1.45); box-shadow: 0 0 0 9px rgba(242,201,76,.08), 0 2px 7px rgba(4,29,43,.45); } }
@keyframes auth-crew-deal { from { opacity: 0; transform: translateX(-12px) rotate(-4deg); } }
@keyframes auth-cta-glint { 0% { left: -45%; } 65%, 100% { left: 125%; } }
.mission-strip { display: flex; align-items: center; gap: 14px; max-width: 820px; margin: 0 auto 24px; padding: 15px 18px; border: 1px solid #b9dfe0; border-radius: 8px; background: #effafa; }
.mission-strip__icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-weight: 900; }
.mission-strip div { display: grid; gap: 3px; }
.mission-strip strong { font-size: 0.9rem; }
.mission-strip div > span:last-child { color: var(--ink-soft); font-size: 0.78rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; border: 0; border-radius: 8px; padding: 12px 18px; font-weight: 800; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--teal); box-shadow: 0 8px 18px rgba(8,127,140,0.22); }
.button--primary:hover:not(:disabled) { background: var(--teal-dark); }
.button--secondary { color: var(--ink); background: #edf4f5; }
.button--secondary:hover:not(:disabled) { background: #deebed; }
.button--danger { color: #fff; background: var(--coral); }
.button--danger:hover:not(:disabled) { background: #b9473d; }
.text-button { border: 0; background: transparent; color: var(--teal-dark); font-weight: 800; padding: 6px 0; }
.text-button:hover { color: var(--ink); }
.text-button--small { font-size: 0.78rem; }

.shell { min-height: 100vh; padding: 34px 5vw 60px; }
.shell--centered { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: clamp(16px, 5%, 54px); }
.shell--centered .simple-header { flex-wrap: wrap; gap: 12px 24px; }
.shell--centered .simple-header .brand-mark { flex-shrink: 0; }
.shell--centered .toast--chooser { position: static; grid-column: 1 / -1; width: 100%; max-width: 100%; margin: 0; transform: none; }
@media (max-width: 760px) {
  .shell--centered .mission-strip { margin-inline: 0; }
}
.simple-header { display: flex; align-items: center; justify-content: space-between; }
.slot-intro { max-width: 630px; margin: 95px auto 38px; text-align: center; }
.slot-intro h1 { margin: 12px 0 10px; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -0.05em; }
.slot-intro p { margin: 0 auto; max-width: 500px; }
.eyebrow { display: block; color: var(--teal-dark); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.09em; line-height: 1.2; text-transform: uppercase; }
.auth-art .eyebrow { color: var(--yellow); }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.slot-card { position: relative; display: flex; min-height: 218px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 22px; text-align: left; color: var(--ink); background: #fff; box-shadow: 0 8px 22px rgba(23,50,77,0.04); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.slot-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow); }
.slot-card .avatar { position: relative; flex: 0 0 auto; }
.slot-card__name { font-size: 1.25rem; font-weight: 850; max-width: 100%; overflow-wrap: anywhere; }
.slot-card__progress { color: var(--ink-soft); font-size: 0.86rem; }
.slot-card__arrow { position: absolute; right: 22px; bottom: 21px; color: var(--teal); font-size: 1.3rem; }
.slot-card--new { align-items: center; justify-content: center; border-style: dashed; color: var(--teal-dark); background: transparent; text-align: center; }
.plus-sign { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--teal); font-size: 1.7rem; }
.local-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 28px 0; color: var(--ink-soft); font-size: 0.82rem; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.status-dot--warm { background: var(--yellow); }
.status-dot--green { background: var(--green); }

.app-frame { min-height: 100vh; background: var(--paper); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; padding: 0 clamp(18px, 4vw, 60px); border-bottom: 1px solid var(--line); background: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 23px; }
.topbar-link { border: 0; padding: 8px 0; color: var(--ink-soft); background: transparent; font-size: 0.84rem; font-weight: 750; }
.topbar-link:hover { color: var(--teal-dark); }
.slot-switcher { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px 6px 7px; color: var(--ink); background: #fff; font-size: 0.82rem; font-weight: 800; }
.slot-switcher:hover { border-color: var(--teal); }
.balance-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 clamp(18px, 4vw, 60px); border-bottom: 1px solid var(--line); background: #f7fbfb; }
.balance-item { display: flex; align-items: baseline; gap: 5px; min-height: 78px; padding: 15px 18px; border-right: 1px solid var(--line); }
.balance-item:first-child { padding-left: 0; }
.balance-item:last-child { border-right: 0; }
.balance-item strong { font-size: 1.7rem; letter-spacing: -0.04em; }
.balance-item > span:last-child { color: var(--ink-soft); font-size: 0.75rem; }
.balance-label { align-self: center; margin-right: auto; color: var(--ink-soft); font-size: 0.74rem; font-weight: 750; }
.balance-item--primary strong { color: var(--teal-dark); }
.balance-item--value strong { color: var(--green); }
.balance-item--investments strong { color: var(--teal); }
.run-status { display: grid; grid-template-columns: minmax(190px, 0.9fr) minmax(220px, 1.45fr) minmax(190px, 0.85fr); align-items: center; gap: 26px; padding: 14px clamp(18px, 4vw, 60px); border-bottom: 1px solid var(--line); background: #fff; }
.run-status__identity, .run-status__reward { display: grid; gap: 3px; min-width: 0; }
.run-status__identity strong { font-size: 1rem; }
.run-status__identity > span:last-child { overflow: hidden; color: var(--ink-soft); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.run-status__eyebrow, .run-status__reward > div > span { color: var(--teal-dark); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.run-status__meter { display: grid; gap: 7px; }
.run-status__meter-label { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 0.7rem; font-weight: 800; }
.run-status__meter-label strong { color: var(--ink); }
.run-status__track { height: 10px; overflow: hidden; border-radius: 999px; background: #dcebec; }
.run-status__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width 500ms ease; }
.run-status__reward { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.run-status__reward-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 2px solid #f0d77d; border-radius: 50%; color: var(--ink); background: #fff8d8; font-weight: 900; }
.run-status__reward strong { display: block; margin-top: 2px; font-size: 0.82rem; }
.game-layout { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(560px, 1.7fr) minmax(260px, 0.85fr); gap: clamp(24px, 2.5vw, 56px); width: 100%; margin: 0 auto; padding: 44px clamp(24px, 3vw, 72px) 70px; }
.map-rail, .context-rail { min-width: 0; }
.map-heading, .context-block__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress-count { color: var(--ink-soft); font-size: 0.78rem; font-weight: 800; }
.island-map { position: relative; min-height: 365px; margin-top: 17px; overflow: hidden; border: 1px solid #cde0e3; border-radius: 8px; background: #dff3f4; }
.island-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-marker { position: absolute; z-index: 2; display: grid; place-items: center; width: 47px; height: 47px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--teal); box-shadow: 0 5px 15px rgba(23,50,77,0.18); }
.map-marker strong { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; color: var(--ink); background: #fff; font-size: 0.58rem; }
.map-marker__icon { font-size: 1.15rem; font-weight: 900; }
.map-marker small { display: none; position: absolute; top: 48px; color: var(--ink); font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
.map-marker--current small { display: block; }
.map-marker--week-1 { top: 58%; left: 21%; }
.map-marker--week-2 { top: 32%; left: 47%; }
.map-marker--week-3 { top: 51%; right: 13%; }
.map-marker--week-4 { top: 25%; left: 15%; }
.map-marker--week-5 { top: 18%; left: 66%; }
.map-marker--week-6 { top: 42%; left: 34%; }
.map-marker--week-7 { top: 62%; left: 49%; }
.map-marker--week-8 { top: 67%; right: 18%; }
.map-marker--week-9 { top: 30%; right: 8%; }
.map-marker--complete { background: var(--green); }
.map-marker--current { background: var(--teal); box-shadow: 0 0 0 7px rgba(8,127,140,0.17), 0 5px 15px rgba(23,50,77,0.18); }
.map-marker--locked { color: #4e6376; background: #d5e3e5; box-shadow: none; }
.map-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-soft); font-size: 0.72rem; }
.map-progress strong { color: var(--teal-dark); font-size: 0.78rem; }
.map-progress__track { height: 7px; overflow: hidden; border-radius: 999px; background: #d7e8e8; }
.map-progress__track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width 420ms ease; }
.map-caption { display: grid; gap: 4px; margin-top: 15px; }
.map-caption strong { font-size: 0.94rem; }
.map-caption span { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }
.activity-column { min-width: 0; }
.activity-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.week-kicker { color: var(--teal-dark); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 0.75rem; }
.scene { position: relative; min-height: 340px; overflow: hidden; display: flex; align-items: flex-end; border-radius: 8px; padding: 32px; background: #e5f3f3; }
.scene--storm { background: #e8f0f2; }
.scene--career { background: #eaf5e7; }
.scene-copy { position: relative; z-index: 2; max-width: 470px; }
.scene-label { display: inline-flex; padding: 6px 9px; border-radius: 4px; color: var(--teal-dark); background: rgba(255,255,255,0.82); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.scene h1 { margin: 12px 0 10px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.055em; }
.scene p { max-width: 450px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.scene-illustration { position: absolute; inset: 0; overflow: hidden; }
.scene-sun { position: absolute; top: 34px; right: 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); }
.scene-cloud { position: absolute; width: 130px; height: 28px; border-radius: 50px; background: rgba(255,255,255,0.74); }
.scene-cloud::after, .scene-cloud::before { content: ""; position: absolute; bottom: 6px; border-radius: 50%; background: inherit; }
.scene-cloud::before { left: 24px; width: 52px; height: 52px; }
.scene-cloud::after { left: 67px; width: 34px; height: 34px; }
.scene-cloud--one { top: 76px; left: 22%; }
.scene-cloud--two { top: 40px; right: 24%; transform: scale(0.65); opacity: 0.7; }
.scene-mountain { position: absolute; right: 1%; bottom: 28px; width: 60%; height: 58%; clip-path: polygon(0 100%, 45% 15%, 100% 100%); background: #aed5cb; }
.scene-ground { position: absolute; inset: auto -10% -10% -10%; height: 36%; border-radius: 50% 50% 0 0; background: #9fd3a4; }
.scene-object { position: absolute; z-index: 1; right: 28%; bottom: 25%; display: grid; place-items: center; width: 66px; height: 66px; border: 6px solid rgba(255,255,255,0.8); border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 2rem; }
.scene-object-label { position: absolute; right: 21%; bottom: 18%; z-index: 1; color: var(--ink); font-size: 0.7rem; font-weight: 850; }
.learning-goal { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 16px 18px; border-left: 4px solid var(--yellow); background: #fffaf0; }
.goal-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-weight: 900; }
.learning-goal div { display: grid; gap: 4px; }
.goal-label, .section-label, .equation-label, .tip-label { color: var(--ink-soft); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.learning-goal strong { font-size: 0.95rem; }
.activity-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.step-count { color: var(--ink-soft); font-size: 0.8rem; }
.context-rail { display: grid; align-content: start; gap: 25px; }
.context-block { padding-top: 4px; }
.context-block__heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 0.86rem; font-weight: 850; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e4edef; }
.ledger-row > div { display: grid; gap: 3px; min-width: 0; }
.ledger-row strong { overflow: hidden; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.ledger-week { color: var(--ink-soft); font-size: 0.67rem; font-weight: 750; text-transform: uppercase; }
.ledger-amount { flex: 0 0 auto; font-weight: 850; }
.positive { color: var(--green); }
.negative { color: var(--coral); }
.neutral { color: var(--ink); }
.empty-note { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; }
.context-block--tip { padding: 16px; border-radius: 8px; background: #fffaf0; }
.context-block--tip p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; }
.portfolio-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.8rem; }
.portfolio-row strong { color: var(--ink); }
.portfolio-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.75rem; line-height: 1.45; }

.decision-layout, .review-layout, .outcome-layout, .complete-layout { min-width: 0; }
.decision-heading { margin: 28px 0 26px; }
.decision-heading h1 { margin: 10px 0 9px; font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.055em; }
.decision-heading p { max-width: 560px; margin: 0; color: var(--ink-soft); line-height: 1.6; }
.choice-single { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.chest-illustration { width: 140px; height: 140px; border-radius: 0; background-color: transparent; animation: chest-float 2.4s ease-in-out infinite; }
@keyframes chest-float { 50% { transform: translateY(-5px); filter: drop-shadow(0 12px 10px rgba(134,92,11,0.28)); } }
.choice-single strong { font-size: 1.05rem; }
.choice-single p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.86rem; }
.choice-amount { color: var(--green); font-size: 1.18rem; font-weight: 900; }
.choice-grid { display: grid; gap: 12px; }
.choice-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-choice { display: grid; gap: 8px; max-width: 430px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-choice label { font-weight: 850; }
.form-choice select, .form-choice input, .share-choice input { width: 100%; border: 1px solid #bbd0d7; border-radius: 7px; padding: 13px 14px; color: var(--ink); background: #fff; }
.form-choice select:focus, .form-choice input:focus, .share-choice input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,140,0.14); }
.form-help { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.45; }
.inline-error { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid var(--coral); border-radius: 6px; color: #8d3027; background: #fff1ef; font-size: 0.86rem; line-height: 1.45; }
.share-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 610px; }
.share-choice { display: grid; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.share-choice span { display: grid; gap: 4px; }
.share-choice strong { font-size: 1rem; }
.share-choice small { color: var(--ink-soft); line-height: 1.4; }
.market-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 610px; }
.market-preview > div { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f5fbfb; }
.market-preview strong { color: var(--teal); font-size: 1.8rem; }
.market-preview small { color: var(--ink-soft); }
.choice-card { display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; color: var(--ink); background: #fff; text-align: left; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.choice-card:hover, .choice-card--selected { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 8px 22px rgba(8,127,140,0.12); }
.choice-card--selected { box-shadow: 0 0 0 3px rgba(8,127,140,0.14); }
.choice-card--selected::after { content: "Selected"; align-self: flex-end; margin-top: auto; padding: 3px 7px; border-radius: 999px; color: var(--teal-dark); background: #dff3f4; font-size: 0.68rem; font-weight: 850; }
.choice-card__illustration { width: 104px; height: 104px; border-radius: 0; background-color: transparent; }
.choice-card__content { display: grid; gap: 5px; }
.choice-card__content strong { font-size: 1rem; }
.choice-card__content span { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.choice-card__price { margin-top: auto; color: var(--teal-dark); font-size: 0.8rem; font-weight: 850; }
.choice-card--career { min-height: 150px; }
.career-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: #d4ebcf; font-weight: 900; }
.choice-single--treasure {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  min-height: 176px;
  border: 1px solid #e9c957;
  border-left: 7px solid #d59f17;
  background: #fff8d6;
  box-shadow: 0 14px 30px rgba(111, 78, 15, 0.12);
}
.choice-card--career { min-height: 190px; }
.hint-row { display: flex; align-items: flex-start; gap: 10px; margin: 17px 0 0; color: var(--ink-soft); font-size: 0.81rem; line-height: 1.45; }
.hint-icon { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid #a9c6cc; border-radius: 50%; color: var(--teal-dark); font-weight: 900; }
.profit-breakdown { display: grid; gap: 9px; max-width: 610px; margin: -8px 0 20px; padding: 15px 17px; border-left: 4px solid var(--yellow); background: #fffaf0; }
.profit-breakdown > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--ink); font-size: 0.92rem; }
.profit-breakdown strong { font-size: 1rem; }
.profit-breakdown b { color: var(--green); font-size: 1.08rem; }
.profit-breakdown p { margin: 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }

.review-equation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-equation > div { display: grid; gap: 6px; }
.review-equation strong { font-size: 1.55rem; letter-spacing: -0.04em; }
.equation-arrow { color: var(--teal); font-size: 1.5rem; }
.balance-snapshot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 13px; border: 1px solid var(--line); background: var(--line); }
.balance-snapshot > div { display: grid; gap: 5px; padding: 13px 14px; background: #f7fbfb; }
.balance-snapshot span { color: var(--ink-soft); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.balance-snapshot strong { font-size: 0.92rem; }
.change-list { margin-top: 13px; border-top: 1px solid var(--line); }
.change-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #e4edef; font-size: 0.88rem; }
.change-row strong { font-size: 0.95rem; }
.review-note { margin-top: 20px; padding: 15px 17px; border-radius: 8px; background: #edf7f5; }
.review-note p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.55; }
.commit-banner { display: flex; align-items: center; gap: 12px; margin: -5px 0 20px; padding: 13px 15px; border: 1px solid #b9dfe0; border-radius: 8px; background: #effafa; }
.commit-banner__icon { flex-basis: 76px; width: 76px; height: 76px; }
.commit-banner div { display: grid; gap: 3px; }
.commit-banner strong { font-size: 0.88rem; }
.commit-banner span:last-child { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.4; }
.outcome-burst { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; color: var(--green); font-size: 0.77rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.outcome-burst__spark { width: 38px; height: 38px; }
.outcome-hero { position: relative; overflow: hidden; margin-top: 10px; padding: 24px; border: 1px solid #b9dfe0; border-radius: 8px; background: linear-gradient(135deg, #effafa 0%, #f8fcf3 100%); animation: outcome-rise 360ms ease both; }
.outcome-hero::after { content: ""; position: absolute; right: -38px; bottom: -58px; width: 170px; height: 170px; border: 24px solid rgba(242,201,76,0.22); border-radius: 50%; }
.outcome-hero__top, .outcome-hero__main { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.outcome-hero .outcome-burst { margin-top: 0; }
.outcome-hero__week { color: var(--teal-dark); font-size: 0.76rem; font-weight: 900; }
.outcome-hero__main { justify-content: flex-start; margin-top: 20px; }
.outcome-hero__main h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.05em; }
.outcome-hero__main p { max-width: 510px; margin: 0; color: var(--ink-soft); line-height: 1.5; }
.outcome-hero__delta { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 15px; border-top: 1px solid rgba(8,127,140,0.18); }
.outcome-hero__delta strong { font-size: 1.5rem; }
.unlock-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 13px 15px; border: 1px solid #f0d77d; border-radius: 8px; background: #fffaf0; }
.unlock-banner__icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; }
.unlock-banner div { display: grid; gap: 3px; }
.unlock-banner strong { font-size: 0.9rem; }
.unlock-banner p { margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.4; }
.outcome-reward { display: flex; align-items: center; gap: 14px; margin: 18px 0 20px; padding: 15px 17px; border: 1px solid #f0d77d; border-radius: 8px; background: #fffaf0; animation: outcome-rise 360ms ease both; }
.outcome-reward__icon { flex-basis: 112px; width: 112px; height: 112px; }
.outcome-reward strong { display: block; margin-top: 4px; font-size: 1rem; }
.outcome-reward p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.outcome-balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 13px; border: 1px solid var(--line); background: var(--line); }
.outcome-balances > div { display: grid; gap: 5px; padding: 13px 14px; background: #f7fbfb; }
.outcome-balances span { color: var(--ink-soft); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.outcome-balances strong { font-size: 1rem; animation: balance-pop 500ms ease both; }
@keyframes outcome-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes balance-pop { 0% { color: var(--teal); transform: scale(0.96); } 100% { color: var(--ink); transform: scale(1); } }
.equation-card { display: grid; gap: 8px; padding: 19px; border-left: 4px solid var(--green); background: #eef8f0; }
.equation-card strong { font-size: 1.45rem; letter-spacing: -0.03em; }
.change-list--outcome { margin-top: 18px; }
.complete-illustration { position: relative; height: 220px; margin: 20px 0 26px; overflow: hidden; border-radius: 8px; background: #e4f3ed; }
.complete-illustration svg { position: absolute; width: 80%; height: 130%; right: -3%; bottom: -20%; }
.complete-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.complete-stats div { display: grid; gap: 5px; padding: 16px 10px; border-right: 1px solid var(--line); }
.complete-stats div:last-child { border: 0; }
.complete-stats strong { font-size: 1.5rem; }
.complete-stats span { color: var(--ink-soft); font-size: 0.76rem; }
.learning-recap { margin-top: 25px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f7fbfb; }
.learning-recap h2 { margin: 6px 0 13px; font-size: 1.15rem; }
.learning-recap__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.learning-recap__grid span { padding: 9px 10px; border-radius: 5px; color: var(--ink-soft); background: #fff; font-size: 0.78rem; font-weight: 800; }

.overlay { position: fixed; z-index: 20; inset: 0; display: flex; justify-content: flex-end; background: rgba(23,50,77,0.32); }
.drawer { width: min(100%, 430px); min-height: 100%; overflow-y: auto; padding: 28px; background: #fff; box-shadow: -15px 0 50px rgba(23,50,77,0.15); }
.drawer-header { display: flex; justify-content: space-between; gap: 15px; }
.drawer-header h2 { margin: 8px 0 0; font-size: 2rem; letter-spacing: -0.04em; }
.close-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-size: 1.5rem; line-height: 1; }
.close-button:hover { border-color: var(--teal); }
.ledger-full { margin-top: 24px; }
.empty-ledger { display: grid; place-items: center; gap: 10px; min-height: 220px; color: var(--ink-soft); text-align: center; }
.empty-ledger span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.parent-card { display: grid; gap: 6px; margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f7fbfb; }
.parent-card__label, .parent-card__note { color: var(--ink-soft); font-size: 0.77rem; }
.parent-card__note { margin-top: 4px; line-height: 1.4; }
.recovery-actions { display: grid; gap: 8px; }

.cloud-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    linear-gradient(180deg, rgba(233, 247, 250, 0.96), rgba(249, 252, 244, 0.98)),
    #edf6f3;
}

.cloud-auth-card {
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid #cbded8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 50, 77, 0.14);
}

.cloud-auth-card .brand-mark { margin-bottom: 30px; }
.cloud-auth-card h1 { margin: 16px 0 10px; font-size: clamp(1.75rem, 4vw, 2.35rem); letter-spacing: 0; }
.cloud-auth-card > p { color: #526371; line-height: 1.65; }
.cloud-auth-card .auth-form { margin-top: 24px; }

.cloud-message {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 4px solid #2f7e68;
  background: #edf8f4;
  color: #24594c;
  line-height: 1.5;
}

.cloud-message--error {
  border-left-color: #b84a3a;
  background: #fff1ee;
  color: #7d3025;
}

.cloud-loader {
  width: 36px;
  height: 36px;
  margin: 24px auto 8px;
  border: 4px solid #d6e6e1;
  border-top-color: #2f7e68;
  border-radius: 50%;
  animation: cloud-spin 0.8s linear infinite;
}

@keyframes cloud-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .cloud-auth-shell { padding: 14px; align-items: start; }
  .cloud-auth-card { padding: 24px 20px; }
}

/* 2026.4 learning-game rebuild */

.game-art {
  display: inline-block;
  flex: 0 0 auto;
  width: 64px;
  aspect-ratio: 1;
  background-image: var(--adventure-art);
  background-repeat: no-repeat;
  background-size: 400% 300%;
  filter: drop-shadow(0 5px 6px rgba(23, 50, 77, 0.18));
}
.game-art--chest { background-position: 0% 0%; }
.game-art--hut { background-position: 33.333% 0%; }
.game-art--career { background-position: 66.667% 0%; }
.game-art--harbor { background-position: 100% 0%; }
.game-art--vault { background-position: 0% 50%; }
.game-art--juice { background-position: 33.333% 50%; }
.game-art--market { background-position: 66.667% 50%; }
.game-art--dividend { background-position: 100% 50%; }
.game-art--compass { background-position: 0% 100%; }
.game-art--pouch { background-position: 33.333% 100%; }
.game-art--surf { background-position: 66.667% 100%; }
.game-art--cabin { background-position: 100% 100%; }

.collectible-art {
  display: inline-block;
  flex: 0 0 auto;
  width: 32px;
  aspect-ratio: 1;
  background-image: var(--collectible-art);
  background-repeat: no-repeat;
  background-size: 400% 100%;
  filter: drop-shadow(0 3px 4px rgba(23, 50, 77, 0.2));
}
.collectible-art--shell { background-position: 0% 0%; }
.collectible-art--star { background-position: 33.333% 0%; }
.collectible-art--crown { background-position: 66.667% 0%; }
.collectible-art--compass { background-position: 100% 0%; }
.collectible-art--none {
  position: relative;
  border: 2px solid #a8bcc4;
  border-radius: 50%;
  background-image: none;
  filter: none;
}
.collectible-art--none::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 15%;
  width: 70%;
  height: 2px;
  background: #70858e;
  transform: rotate(-42deg);
}

.adventure-scene {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 3px solid rgba(255,255,255,0.72);
  border-radius: 8px;
  background-color: #0b86bd;
  background-image: url("./assets/island-map-v2.jpg");
  background-position: center 58%;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(7, 48, 69, 0.28);
}
.adventure-scene__explorer {
  position: absolute;
  z-index: 3;
  left: 9%;
  bottom: 4%;
  width: 21%;
  aspect-ratio: 3 / 4;
  height: auto;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(23,50,77,0.32);
}
.adventure-scene .game-art { position: absolute; z-index: 2; }
.adventure-scene__chest { right: 12%; bottom: 5%; width: 30%; }
.adventure-scene__cabin { right: 4%; top: 8%; width: 24%; }
.adventure-scene__compass { left: 42%; top: 3%; width: 21%; animation: marker-pulse 1.8s ease-in-out infinite; }
.complete-illustration .adventure-scene { width: 100%; min-height: 330px; }

.explorer-art,
.career-art {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 400% 200%;
}
.explorer-art { background-image: var(--explorer-art-a); }
.career-art { background-image: var(--career-art); }
.explorer-art--navigator { background-position: 0% 0%; }
.explorer-art--builder { background-position: 33.333% 0%; }
.explorer-art--collector { background-position: 66.667% 0%; }
.explorer-art--scout { background-position: 100% 0%; }
.explorer-art--trailblazer { background-position: 0% 100%; }
.explorer-art--inventor { background-position: 33.333% 100%; }
.explorer-art--naturalist { background-position: 66.667% 100%; }
.explorer-art--captain { background-position: 100% 100%; }
.explorer-art--wayfinder,
.explorer-art--engineer,
.explorer-art--stargazer,
.explorer-art--ranger,
.explorer-art--harbor-guide,
.explorer-art--cartographer,
.explorer-art--lookout,
.explorer-art--steward { background-image: var(--explorer-art-b); }
.explorer-art--wayfinder { background-position: 0% 0%; }
.explorer-art--engineer { background-position: 33.333% 0%; }
.explorer-art--stargazer { background-position: 66.667% 0%; }
.explorer-art--ranger { background-position: 100% 0%; }
.explorer-art--harbor-guide { background-position: 0% 100%; }
.explorer-art--cartographer { background-position: 33.333% 100%; }
.explorer-art--lookout { background-position: 66.667% 100%; }
.explorer-art--steward { background-position: 100% 100%; }
.career-art { width: 82px; height: 82px; filter: drop-shadow(0 4px 5px rgba(23, 50, 77, 0.15)); }
.career-art--gatherer { background-position: 0% 100%; }
.career-art--builder { background-position: 33.333% 100%; }
.career-art--tracker { background-position: 66.667% 100%; }

.balance-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 3px 7px;
}
.balance-label { grid-column: 1 / -1; align-self: auto; margin: 0; }
.balance-item strong { align-self: end; line-height: 1; }
.balance-item > span:last-child { align-self: end; padding-bottom: 2px; white-space: nowrap; }

.app-frame, .game-layout { background: #eef5f1; }
.balance-strip {
  gap: 10px;
  padding-block: 11px;
  border-bottom: 0;
  background: #123c4a;
}
.balance-item,
.balance-item:first-child {
  min-height: 62px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(7, 36, 50, 0.13);
}
.balance-item:last-child { border-right: 1px solid rgba(255,255,255,0.2); }
.run-status {
  border-top: 1px solid #efd978;
  border-bottom: 1px solid #e6ce67;
  background: #fff7d4;
}
.run-status__track { height: 12px; border: 2px solid rgba(23,50,77,0.08); background: #fff; }
.run-status__reward-icon {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
.activity-column {
  align-self: start;
  padding: clamp(20px, 2vw, 34px);
  border: 1px solid #d4e4de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(30, 73, 71, 0.1);
}
.context-block--tip {
  position: relative;
  overflow: hidden;
  border: 1px solid #efd978;
  border-left: 6px solid #e3b72e;
  background: #fff9dd;
}

.island-map {
  aspect-ratio: 2 / 3;
  min-height: 0;
  background-color: #0b86bd;
  background-image: url("./assets/island-map-v2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 14px 30px rgba(11, 91, 127, 0.18);
}
.map-marker {
  width: 68px;
  height: 68px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.map-marker__icon {
  position: absolute;
  inset: 0;
  width: 68px;
  height: 68px;
  transition: filter 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.map-marker strong {
  right: -2px;
  bottom: -2px;
  width: 25px;
  height: 25px;
  border: 3px solid #fff;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 4px 10px rgba(23,50,77,0.28);
  font-size: 0.7rem;
}
.map-marker small {
  top: 66px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23,50,77,0.9);
  box-shadow: 0 3px 8px rgba(23,50,77,0.2);
}
.map-marker--locked { background: transparent; box-shadow: none; }
.map-marker--locked .map-marker__icon { opacity: 0.8; filter: grayscale(0.55) saturate(0.7) drop-shadow(0 4px 5px rgba(23,50,77,0.2)); }
.map-marker--locked::before {
  content: "";
  position: absolute;
  z-index: 4;
  right: 4px;
  top: 0;
  width: 10px;
  height: 9px;
  border: 3px solid #fff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.map-marker--locked::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 1px;
  top: 10px;
  width: 18px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: var(--ink);
}
.map-marker--complete .map-marker__icon { filter: drop-shadow(0 0 8px rgba(242,201,76,0.75)); }
.map-marker--current { background: transparent; box-shadow: none; }
.map-marker--current .map-marker__icon { filter: drop-shadow(0 0 10px rgba(242,201,76,0.95)); }
.map-marker--week-1 { top: 83%; left: 47%; }
.map-marker--week-2 { top: 69%; left: 13%; }
.map-marker--week-3 { top: 61%; right: 16%; }
.map-marker--week-4 { top: 47%; left: 12%; }
.map-marker--week-5 { top: 34%; left: 46%; }
.map-marker--week-6 { top: 42%; right: 12%; }
.map-marker--week-7 { top: 25%; left: 17%; }
.map-marker--week-8 { top: 19%; right: 12%; }
.map-marker--week-9 { top: 5%; left: 46%; }
.map-marker--current { animation: marker-pulse 1.8s ease-in-out infinite; }
@keyframes marker-pulse { 50% { transform: translateY(-3px) scale(1.06); } }

.decision-heading h1 {
  max-width: 820px;
  font-size: clamp(1.85rem, calc(1.4rem + 1vw), 2.65rem);
  line-height: 1.1;
}
.decision-heading--with-help { display: grid; grid-template-columns: minmax(0, 820px) 38px; justify-content: start; gap: 14px; align-items: start; }
.quiz-challenge {
  grid-template-columns: 112px minmax(0, 760px) 38px;
  align-items: center;
  max-width: 980px;
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #efd978;
  border-left: 7px solid #e2b42c;
  border-radius: 8px;
  background: #fff9dd;
  box-shadow: 0 8px 20px rgba(86, 70, 21, 0.08);
}
.quiz-challenge-art { width: 100px; height: 100px; }
.quiz-challenge h1 { margin-top: 6px; font-size: clamp(1.65rem, calc(1.3rem + 0.8vw), 2.35rem); line-height: 1.14; }
.quiz-challenge .info-button { align-self: start; }
.option-with-help { position: relative; min-width: 0; }
.option-with-help .quiz-choice,
.option-with-help .journey-choice { padding-right: 56px; }
.info-button {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #98bdc4;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}
.option-with-help > .info-button { position: absolute; top: 13px; right: 13px; }
.info-button::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, calc(100vw - 42px));
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  background: #17324d;
  box-shadow: 0 8px 22px rgba(23, 50, 77, 0.24);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.info-button:hover::after,
.info-button:focus::after,
.info-button:focus-visible::after { opacity: 1; transform: translateY(0); }

.journey-progress { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.journey-progress__track { grid-column: 1 / -1; }
.play-score { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; color: var(--ink); background: #fff4bd; }
.play-scene {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 36px;
  align-items: start;
  gap: 16px;
  margin: 18px 0 4px;
  padding: 22px;
  border: 1px solid #b9dfe0;
  border-left: 6px solid var(--coral);
  border-radius: 8px;
  background: #f5fbfb;
}
.play-scene__icon { width: 70px; height: 70px; border-radius: 0; background-color: transparent; }
.play-scene h1 { margin: 6px 0 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.18; }
.play-result { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin: 12px 0; padding: 13px 14px; border-left: 4px solid var(--yellow); background: #fffaf0; }
.play-result--strong { border-left-color: var(--green); background: #effafa; }
.play-result > span { font-size: 1.2rem; }
.play-result strong { font-size: 0.85rem; }
.play-result p { margin: 3px 0 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }
.play-result small { display: block; margin-top: 5px; color: var(--teal-dark); font-size: 0.72rem; font-weight: 750; }

.mission-unlocked { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; margin: 0 0 16px; padding: 12px 14px; border-left: 5px solid var(--green); background: #edf8f1; }
.mission-unlocked span { color: var(--teal-dark); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.mission-unlocked strong { grid-row: 1 / 3; grid-column: 2; font-size: 1.35rem; }
.mission-unlocked p { margin: 0; color: var(--ink-soft); font-size: 0.78rem; }

.mission-arc { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.mission-arc__step { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; color: #738590; font-size: 0.65rem; font-weight: 750; }
.mission-arc__step i { width: 9px; height: 9px; border: 2px solid #b7c9cd; border-radius: 50%; background: #fff; }
.mission-arc__step--done { color: var(--green); }
.mission-arc__step--done i { border-color: var(--green); background: var(--green); }
.mission-arc__step--current { color: var(--teal-dark); }
.mission-arc__step--current i { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,140,0.14); }

.play-score small { color: #675715; font-size: 0.62rem; font-weight: 800; }
.play-scene__copy { min-width: 0; }
.journey-shell .play-scene { margin-top: 12px; padding: 18px; }
.journey-shell .play-scene__icon { width: 72px; height: 72px; }
.journey-shell .play-scene h1 { max-width: 600px; font-size: clamp(1.22rem, 2vw, 1.65rem); line-height: 1.2; }
.play-instrument { display: flex; align-items: center; gap: 10px; min-height: 42px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #cfe1e3; color: var(--ink-soft); font-size: 0.72rem; font-weight: 750; }
.play-instrument strong, .play-instrument b { color: var(--ink); }
.play-instrument--math { justify-content: space-between; }
.play-instrument--math > div { display: flex; align-items: center; gap: 6px; }
.play-instrument--math strong, .play-instrument--math b { display: grid; place-items: center; min-width: 31px; height: 31px; padding: 0 6px; border-radius: 50%; background: #fff4bd; font-size: 0.85rem; }
.play-instrument--math i { color: var(--teal); font-size: 1rem; font-style: normal; }
.play-instrument--ledger { display: grid; gap: 5px; }
.play-instrument--ledger > span, .play-instrument--ledger > strong { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1px; }
.play-instrument--ledger b, .play-instrument--ledger i { padding: 5px 8px; background: rgba(255,255,255,0.72); font-size: 0.65rem; font-style: normal; }
.play-instrument--ledger i { color: var(--teal-dark); font-size: 0.78rem; }
.play-instrument--market { justify-content: space-between; }
.play-instrument--market > div { display: flex; align-items: flex-end; gap: 3px; width: 62px; height: 28px; border-bottom: 2px solid #9ebbc1; }
.play-instrument--market i { flex: 1; border-radius: 2px 2px 0 0; background: var(--teal); animation: market-bar-in 480ms ease both; }
.play-instrument--market i:nth-child(1) { height: 28%; }
.play-instrument--market i:nth-child(2) { height: 50%; }
.play-instrument--market i:nth-child(3) { height: 42%; }
.play-instrument--market i:nth-child(4) { height: 74%; }
.play-instrument--market i:nth-child(5) { height: 92%; }
.play-instrument--risk { justify-content: space-between; }
.play-instrument--risk > div { display: flex; gap: 5px; }
.play-instrument--risk i { width: 17px; height: 17px; border: 2px solid var(--green); border-radius: 50%; background: #fff; }
.play-instrument--risk i:last-child { border-color: var(--coral); background: #fff1ef; }
.play-instrument--classify { justify-content: center; }
.play-instrument--classify span, .play-instrument--classify strong { padding: 6px 10px; border-radius: 999px; background: #fff; }
.play-instrument--classify i { color: var(--teal); font-size: 1rem; font-style: normal; }
.play-instrument--compare { justify-content: space-between; }
.play-instrument--compare i { flex: 1; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--green) 0 48%, transparent 48% 52%, var(--coral) 52%); }
.play-instrument--story { position: relative; overflow: hidden; min-height: 44px; }
.play-instrument--story span { position: absolute; right: 10%; bottom: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); }
.play-instrument--story i { position: absolute; right: 27%; bottom: 0; width: 70px; height: 17px; border-radius: 50% 50% 0 0; background: #9fcfb8; }
.play-instrument--story b { position: absolute; right: 0; bottom: 0; width: 100%; height: 4px; background: #9fc7d0; }

.journey-choices--math .journey-choice strong { font-size: 1.08rem; }
.journey-choices--ledger .journey-choice { border-left: 5px solid #9fc7d0; background: #f8fbfb; }
.journey-choices--market .journey-choice { border-bottom: 4px solid #9fc7d0; }
.journey-choices--risk .journey-choice { background: #fffdf6; }
.journey-choices--classify .journey-choice > span { border-radius: 7px; }
.journey-choices--compare .option-with-help:first-child .journey-choice { border-left: 5px solid var(--green); }
.journey-choices--compare .option-with-help:last-child .journey-choice { border-left: 5px solid var(--coral); }

/* Keep both possible moves visible together on common Chromebook screens. */
@media (min-width: 761px) and (max-height: 850px) {
  .topbar { height: 60px; }
  .balance-item { min-height: 58px; padding-block: 9px; }
  .balance-item strong { font-size: 1.5rem; }
  .run-status { padding-block: 9px; }
  .game-layout { padding-top: 30px; }
  .journey-progress { margin-bottom: 12px; }
  .mission-arc { gap: 6px; }
  .journey-shell .play-scene { margin-top: 8px; padding: 15px; }
  .journey-shell .play-scene h1 { font-size: 1.45rem; }
  .play-instrument { min-height: 36px; margin-top: 12px; padding-top: 10px; }
  .journey-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
  .journey-choice { height: 100%; }
  .play-result { margin: 8px 0; padding: 9px 11px; }
  .play-milestone { margin: 8px 0; padding: 7px 10px; }
  .activity-footer { margin-top: 14px; }
}

.choice-card--help { position: relative; padding-right: 48px; }
.choice-card--help::after {
  content: "i";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #98bdc4;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}
.choice-card--help::before {
  content: attr(data-tip);
  position: absolute;
  z-index: 20;
  top: 42px;
  right: 10px;
  width: min(230px, calc(100vw - 54px));
  padding: 9px 11px;
  border-radius: 6px;
  color: #fff;
  background: #17324d;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  opacity: 0;
}
.choice-card--help:hover::before,
.choice-card--help:focus-visible::before { opacity: 1; }

.avatar > span { font-size: 1.25em; line-height: 1; }
.avatar--large > span { font-size: 1.45em; }
.avatar__accessory { width: 23px; height: 23px; font-size: 0.82rem; }
.avatar--large .avatar__accessory { width: 28px; height: 28px; font-size: 0.95rem; }
.accessory-option { grid-template-columns: 34px minmax(0, 1fr); overflow: hidden; }
.accessory-option > span { width: 32px; height: 32px; font-size: 1rem; }
.accessory-option strong { min-width: 0; overflow-wrap: anywhere; }

.tour-layer { position: fixed; z-index: 1003; inset: 0; pointer-events: none; }
.tour-layer::before { content: ""; position: fixed; z-index: 0; inset: 0; background: rgba(10, 31, 48, 0.66); }
.tour-focus { position: relative; z-index: 1002; border-radius: 8px; box-shadow: 0 0 0 5px #f2c94c, 0 0 0 999px rgba(10, 31, 48, 0.04); }
.tour-card {
  position: fixed;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px;
  border-top: 6px solid var(--yellow);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}
.tour-card__count { color: var(--teal-dark); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.tour-card__icon { display: block; width: 92px; height: 92px; margin: 8px 0 -2px; }
.tour-card h2 { margin: 5px 0 7px; font-size: 1.45rem; }
.tour-card > p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.tour-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.tour-card__actions > div { display: flex; gap: 8px; }

.outcome-reward__icon, .reward-chip span, .avatar__accessory { animation: reward-pop 520ms cubic-bezier(.2,.9,.2,1.2) both; }
@keyframes reward-pop { 0% { opacity: 0; transform: scale(.45) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }

/* Lightweight game feedback: motion follows the learning consequence. */
.balance-item {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  align-items: center;
  gap: 5px;
}
.balance-label { align-self: auto; margin-right: 0; }
.balance-amount { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.balance-amount > span { color: var(--ink-soft); font-size: 0.75rem; }
.balance-item--changed { position: relative; animation: balance-card-feedback 850ms ease both; }
.balance-item--gain { --balance-feedback: rgba(63, 143, 105, 0.2); }
.balance-item--cost { --balance-feedback: rgba(217, 93, 79, 0.17); }
@keyframes balance-card-feedback {
  0% { background: var(--balance-feedback); box-shadow: inset 0 -4px 0 currentColor; }
  55% { transform: translateY(-2px); }
  100% { background: transparent; box-shadow: inset 0 0 0 transparent; transform: translateY(0); }
}

.button:active:not(:disabled),
.choice-card:active:not(:disabled),
.quiz-choice:active:not(:disabled),
.journey-choice:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.choice-card--selected,
.quiz-choice--selected,
.journey-choice--selected { animation: choice-confirm 220ms ease both; }
@keyframes choice-confirm { 50% { transform: translateY(-2px) scale(1.015); } }

.button--committing { min-width: 160px; cursor: progress; }
.button-progress { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; }
.button-progress i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: commit-dot 700ms ease-in-out infinite; }
.button-progress i:nth-child(2) { animation-delay: 100ms; }
.button-progress i:nth-child(3) { animation-delay: 200ms; }
@keyframes commit-dot { 50% { opacity: 0.35; transform: translateY(-3px); } }

.play-result { animation: play-result-in 260ms ease both; }
@keyframes play-result-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.play-milestone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 10px 13px; border: 1px solid #f0d77d; border-radius: 8px; background: #fff8d8; animation: milestone-in 380ms cubic-bezier(.2,.9,.2,1.12) both; }
.play-milestone span { color: var(--teal-dark); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.play-milestone strong { font-size: 0.82rem; }
.journey-shell--final-play .play-milestone { border-color: #9fcfb8; background: #edf8f1; }
@keyframes milestone-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.map-marker--just-unlocked { animation: marker-unlock 760ms cubic-bezier(.2,.9,.2,1.25) both; }
@keyframes marker-unlock {
  0% { opacity: 0.35; transform: scale(0.55); box-shadow: 0 0 0 0 rgba(63,143,105,0.4); }
  65% { opacity: 1; transform: scale(1.13); box-shadow: 0 0 0 12px rgba(63,143,105,0); }
  100% { transform: scale(1); }
}

.market-card strong { display: flex; align-items: center; gap: 9px; letter-spacing: 0; }
.market-card strong > span { color: var(--ink-soft); }
.market-card strong > i { color: var(--ink-soft); font-size: 1rem; font-style: normal; }
.market-card strong > b { color: var(--teal-dark); font-size: 2rem; }
.market-card--down strong > b { color: var(--coral); }
.market-motion { display: flex; align-items: flex-end; gap: 4px; width: 72px; height: 28px; padding-top: 4px; border-bottom: 2px solid #b9d2d7; }
.market-motion i { flex: 1; border-radius: 2px 2px 0 0; background: var(--green); transform-origin: bottom; animation: market-bar-in 480ms ease both; }
.market-motion i:nth-child(1) { height: 28%; }
.market-motion i:nth-child(2) { height: 45%; animation-delay: 70ms; }
.market-motion i:nth-child(3) { height: 68%; animation-delay: 140ms; }
.market-motion i:nth-child(4) { height: 92%; animation-delay: 210ms; }
.market-card--down .market-motion { align-items: flex-start; border-top: 2px solid #b9d2d7; border-bottom: 0; }
.market-card--down .market-motion i { background: var(--coral); transform-origin: top; }
.market-card--down .market-motion i:nth-child(1) { height: 92%; }
.market-card--down .market-motion i:nth-child(2) { height: 68%; }
.market-card--down .market-motion i:nth-child(3) { height: 45%; }
.market-card--down .market-motion i:nth-child(4) { height: 28%; }
@keyframes market-bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.celebration-sparks { position: absolute; z-index: 2; top: 54px; left: 50%; width: 1px; height: 1px; pointer-events: none; }
.celebration-sparks i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); animation: spark-out 760ms ease-out both; transform: rotate(var(--spark-angle)) translateY(0); }
.celebration-sparks i:nth-child(3n + 2) { background: var(--green); }
.celebration-sparks i:nth-child(3n + 3) { background: var(--coral); }
.outcome-layout--finale .celebration-sparks i { width: 10px; height: 5px; animation-duration: 980ms; }
@keyframes spark-out {
  0% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(0) scale(0.5); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(calc(var(--spark-distance) * -1)) scale(1); }
}

@media (max-width: 760px) {
  .balance-strip { align-items: stretch; }
  .balance-item, .balance-item:first-child { min-height: 76px; padding: 11px 9px; }
  .balance-item strong { font-size: 1.3rem; }
  .game-layout { padding-bottom: 34px; }
  .island-map { width: min(100%, 360px); margin-inline: auto; }
  .activity-footer { position: static; margin: 24px 0 0; padding: 16px 0 0; background: transparent; }
  .context-rail { display: grid; margin-top: 34px; padding-bottom: 24px; }
  .play-scene { grid-template-columns: 52px minmax(0, 1fr) 34px; padding: 16px; gap: 11px; }
  .play-scene__icon { width: 50px; height: 50px; font-size: 1.6rem; }
  .tour-card { right: 16px; bottom: 16px; }
}

@media (max-width: 470px) {
  .play-scene { grid-template-columns: minmax(0, 1fr) 34px; }
  .play-scene__icon { grid-column: 1; }
  .play-scene > div { grid-column: 1 / -1; }
  .play-scene > .info-button { grid-column: 2; grid-row: 1; }
  .mission-unlocked { grid-template-columns: minmax(0, 1fr) auto; }
  .mission-arc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
  .play-instrument { align-items: flex-start; flex-wrap: wrap; }
  .play-instrument--math, .play-instrument--market, .play-instrument--risk { justify-content: flex-start; }
  .play-instrument--math > div, .play-instrument--market > div, .play-instrument--risk > div { margin-left: auto; }
  .play-instrument--math > span, .play-instrument--market > span, .play-instrument--risk > span { flex: 1 1 100px; }
  .play-instrument--math > div + *, .play-instrument--market > div + *, .play-instrument--risk > div + * { flex: 1 1 100%; }
  .tour-card__actions { align-items: stretch; flex-direction: column; }
  .tour-card__actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .tour-card__actions .button { min-width: 0; }
}
.drawer-section { display: grid; gap: 12px; margin-top: 26px; }
.mini-slot { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.mini-slot strong { margin-right: auto; font-size: 0.88rem; }
.drawer-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; border: 1px solid #f0c2bd; border-radius: 8px; padding: 15px; color: var(--coral); background: #fff8f7; text-align: left; }
.drawer-action span:first-child { display: grid; gap: 4px; }
.drawer-action small { color: var(--ink-soft); line-height: 1.4; }
.guide-steps { display: grid; gap: 0; margin-top: 22px; }
.guide-steps > div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.guide-steps > div > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-weight: 900; }
.guide-steps strong { align-self: center; font-size: 0.9rem; }
.guide-steps p { grid-column: 2; margin: -4px 0 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }
.guide-note { margin-top: 24px; padding: 15px; border-radius: 8px; background: #effafa; }
.guide-note p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5; }
.drawer-footer { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; padding: 11px 14px; border-radius: 7px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 0.8rem; font-weight: 800; }

svg .wave { fill: #a8dde1; }
svg .wave--two { fill: #8ccdd4; opacity: 0.75; }
svg .island-shape { fill: #9fd3a4; stroke: #e3f5e9; stroke-width: 5; }
svg .island-highlight { fill: #bfe2aa; opacity: 0.7; }
svg .palm-trunk { fill: none; stroke: #946c49; stroke-width: 5; stroke-linecap: round; }
svg .palm-leaf { fill: none; stroke: #2e7d4f; stroke-width: 5; stroke-linecap: round; }
svg .hut { fill: #f2c94c; }
svg .hut-roof { fill: #d95d4f; }
svg .hut-door { fill: #17324d; }
svg .dock { fill: none; stroke: #9b6c4a; stroke-width: 6; stroke-linecap: round; }
svg .sun { fill: #f2c94c; }

.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; overflow: visible; border: 3px solid #fff; border-radius: 50%; color: var(--ink); background: #dcefeb; box-shadow: 0 3px 9px rgba(23,50,77,0.2); font-weight: 900; }
.avatar--small { width: 32px; height: 32px; font-size: 0.67rem; }
.avatar--large { width: 76px; height: 76px; font-size: 1.3rem; }
.avatar .explorer-art { overflow: hidden; border-radius: 50%; }
.avatar { position: relative; }
.avatar__accessory { position: absolute; right: -3px; top: -4px; display: grid; place-items: center; width: 17px; height: 17px; border: 2px solid #fff; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 0.62rem; font-style: normal; line-height: 1; }
.avatar--large .avatar__accessory { right: -5px; top: -5px; width: 23px; height: 23px; font-size: 0.78rem; }
.lesson-heading { display: grid; gap: 8px; margin: 8px 0 18px; }
.lesson-heading h1 { max-width: 680px; margin: 0; color: var(--ink); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.04; letter-spacing: 0; }
.lesson-heading p { max-width: 680px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.lesson-video { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0d2332; box-shadow: var(--shadow-soft); }
.lesson-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #102b3e; object-fit: contain; }
.video-placeholder { display: grid; place-items: center; gap: 8px; min-height: 260px; padding: 32px; color: #fff; text-align: center; background: #17324d; }
.video-placeholder__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 1.25rem; }
.video-placeholder > span:not(.video-placeholder__icon) { max-width: 520px; color: #d6eef0; font-size: 0.82rem; }
.video-placeholder--linked { align-content: center; }
.video-placeholder--linked .lesson-link { margin-top: 8px; color: #fff; text-decoration: none; }
.video-placeholder--linked .lesson-link span { color: inherit; font-size: inherit; }
.video-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; color: #d6eef0; font-size: 0.75rem; }
.video-caption .text-button { color: #fff; }
.video-error { display: grid; gap: 2px; padding: 10px 14px; color: #7d2d27; background: #fff7f6; font-size: 0.78rem; line-height: 1.45; }
.video-error[hidden] { display: none; }
.video-error span { color: var(--ink-soft); }
.lesson-transcript { border-top: 1px solid #335064; color: #e9f6f7; background: #102b3e; }
.lesson-transcript summary { padding: 12px 14px; color: #fff; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.lesson-transcript summary:focus-visible { outline: 3px solid rgba(242,201,76,0.72); outline-offset: -3px; }
.lesson-transcript__body { max-height: 320px; overflow-y: auto; padding: 4px 16px 18px; border-top: 1px solid #335064; }
.lesson-transcript__body p { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; margin: 13px 0 0; color: #d6eef0; font-size: 0.8rem; line-height: 1.55; }
.lesson-transcript__body p strong { color: var(--yellow); font-size: 0.72rem; }
.lesson-transcript__body p span { min-width: 0; }
.lesson-transcript__body > p,
.lesson-transcript__body .transcript-completion > p { display: block; }
.lesson-transcript__note { display: grid; gap: 3px; margin-top: 14px; padding: 10px 12px; border-left: 4px solid var(--yellow); color: #fff; background: #173d52; font-size: 0.78rem; line-height: 1.45; }
.lesson-transcript__note strong { color: var(--yellow); }
.lesson-path { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--ink-soft); font-size: 0.72rem; font-weight: 800; }
.lesson-path > div { display: inline-flex; align-items: center; gap: 6px; }
.path-step { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); background: #fff; }
.path-step--current { border-color: var(--teal); color: #fff; background: var(--teal); }
.path-step--done { border-color: var(--green); color: #fff; background: var(--green); }
.quiz-progress, .journey-progress { display: grid; gap: 8px; margin: 4px 0 18px; color: var(--ink-soft); font-size: 0.74rem; font-weight: 800; }
.quiz-progress__track, .journey-progress__track { overflow: hidden; height: 7px; border-radius: 99px; background: #e4eeee; }
.quiz-progress__track span, .journey-progress__track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width 220ms ease; }
.quiz-choices, .journey-choices { display: grid; gap: 10px; margin: 22px 0; }
.quiz-choice, .journey-choice { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; text-align: left; }
.quiz-choice:hover, .journey-choice:hover, .quiz-choice--selected, .journey-choice--selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,140,0.1); }
.quiz-choice:focus:not(:focus-visible), .journey-choice:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.quiz-choice:focus-visible, .journey-choice:focus-visible { outline: 3px solid rgba(8,127,140,0.32); outline-offset: 2px; }
.quiz-choice > span, .journey-choice > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); background: #eaf6f8; font-weight: 900; }
.quiz-choice--selected > span, .journey-choice--selected > span { color: #fff; background: var(--teal); }
.quiz-choice strong, .journey-choice strong { font-size: 0.88rem; line-height: 1.35; }
.quiz-choice, .journey-choice {
  border-bottom-width: 3px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(23,50,77,0.06);
}
.quiz-choice:hover, .journey-choice:hover { transform: translateY(-2px); box-shadow: 0 9px 18px rgba(8,127,140,0.12); }
.empty-ledger { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; color: var(--ink-soft); text-align: center; }
.empty-ledger__art { width: 120px; height: 120px; }

@media (min-width: 1500px) {
  .quiz-choices, .journey-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.quiz-feedback { display: grid; gap: 3px; margin: 15px 0 0; padding: 13px 15px; border-left: 4px solid var(--green); color: var(--ink-soft); background: #effafa; font-size: 0.82rem; line-height: 1.45; }
.quiz-feedback--try { border-left-color: var(--yellow); background: #fffaf0; }
.quiz-feedback strong { color: var(--ink); }
.journey-progress { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
.journey-progress > div:first-child { display: grid; gap: 3px; }
.journey-progress__track { align-self: center; }
.journey-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 15px; align-items: start; margin: 26px 0 14px; }
.journey-number { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; color: var(--ink); background: var(--yellow); font-size: 1.5rem; font-weight: 900; }
.journey-heading h1 { margin: 2px 0 8px; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; }
.journey-heading p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.reward-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 9px; border-radius: 99px; color: var(--ink); background: #fff4bd; font-size: 0.75rem; font-weight: 800; }
.reward-chip span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--yellow); }
.avatar-picker, .accessory-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 9px 0 20px; }
.avatar-option, .accessory-option { display: grid; justify-items: center; gap: 7px; min-height: 82px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: #fff; font-size: 0.7rem; font-weight: 800; }
.avatar-option:hover, .avatar-option--selected, .accessory-option:hover, .accessory-option--selected { border-color: var(--teal); color: var(--ink); box-shadow: 0 0 0 3px rgba(8,127,140,0.1); }
.accessory-option { grid-template-columns: 28px minmax(0, 1fr); align-items: center; justify-items: start; min-height: 52px; text-align: left; }
.accessory-option > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 0.82rem; }
.customize-form { display: grid; gap: 8px; }
.customize-form input { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
.customize-form input:focus { outline: 3px solid rgba(8,127,140,0.18); border-color: var(--teal); }
.reset-confirmation { display: grid; gap: 9px; margin-top: 12px; padding: 15px; border: 1px solid #efc5c1; border-left: 4px solid var(--coral); background: #fff7f6; }
.reset-confirmation strong { color: #7d2d27; }
.reset-confirmation p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.reset-confirmation label { color: var(--ink-soft); font-size: 0.78rem; font-weight: 800; }
.reset-confirmation input { width: 100%; padding: 11px 12px; border: 1px solid #d8aaa5; border-radius: 6px; color: var(--ink); background: #fff; text-transform: uppercase; }
.reset-confirmation input:focus { outline: 3px solid rgba(217,93,79,0.18); border-color: var(--coral); }
.reset-confirmation__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.reset-confirmation__actions .button { flex: 1 1 150px; }

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

@media (max-width: 1240px) {
  .game-layout { grid-template-columns: minmax(180px, 0.55fr) minmax(420px, 1.6fr); }
  .context-rail { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}

@media (min-width: 761px) and (max-width: 900px) and (min-height: 760px) {
  .auth-shell { grid-template-columns: 1fr; overflow: visible; }
  .auth-art { min-height: auto; padding: 24px 36px 64px; }
  .auth-art-copy { max-width: 700px; margin-top: 30px; }
  .auth-art-copy h1 { max-width: 700px; margin-block: 9px 13px; font-size: 3.55rem; }
  .auth-art-copy p:not(.eyebrow) { max-width: 610px; }
  .auth-world-window { width: min(100%, 700px); margin-top: 22px; }
  .auth-world-window .adventure-scene,
  .auth-art .adventure-scene { min-height: 205px; }
  .auth-panel { margin-top: -38px; border-radius: 32px 32px 0 0; padding: 30px 36px 42px; }
  .auth-panel-inner { width: min(100%, 660px); padding: 31px 36px; }
  .auth-panel h2 { font-size: 2.45rem; }
  .auth-next-step strong { font-size: .82rem; }
}

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art {
    min-height: auto;
    padding: 18px 20px 31px;
  }
  .auth-art::before { top: 17%; right: 10%; width: 16px; height: 16px; }
  .auth-art-copy { margin-top: 20px; }
  .auth-art-copy h1 { max-width: 480px; margin: 8px 0 11px; font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .auth-art-copy p:not(.eyebrow) { max-width: 480px; font-size: .84rem; line-height: 1.43; }
  .auth-quest-row { gap: 6px; margin-top: 12px; }
  .auth-quest-row > span { min-height: 34px; padding: 6px 9px; font-size: .68rem; }
  .auth-quest-row strong { font-size: .82rem; }
  .auth-world-window { width: 100%; margin-top: 12px; }
  .auth-world-window .adventure-scene,
  .auth-art .adventure-scene { min-height: 132px; border-width: 3px; border-radius: 17px; }
  .auth-world-window::after { border-radius: 17px; }
  .auth-world-window__label { top: 10px; right: 10px; left: auto; padding: 7px 9px; }
  .auth-world-window__label strong { font-size: .68rem; }
  .adventure-scene__crew { bottom: 8px; left: 8px; gap: 3px; border-radius: 11px; padding: 5px 7px 4px; }
  .adventure-scene__crew .explorer-art { width: 30px; height: 36px; border-radius: 8px; }
  .adventure-scene__crew small { font-size: .5rem; }
  .auth-world-window__route::before { border-top-width: 1px; }
  .auth-world-window__route span { width: 7px; height: 7px; border-width: 1px; box-shadow: 0 0 0 3px rgba(242,201,76,.16), 0 2px 5px rgba(4,29,43,.4); }
  .auth-panel {
    margin-top: -27px;
    border-radius: 24px 24px 0 0;
    padding: 21px 20px 25px;
  }
  .auth-panel-inner { width: 100%; border: 0; padding: 0; background: transparent; box-shadow: none; }
  .auth-panel-topline { gap: 9px; }
  .auth-setup-step { grid-template-columns: auto repeat(2, 17px); font-size: .68rem; }
  .auth-panel h2 { margin-top: 11px; font-size: 1.82rem; }
  .auth-panel .muted { margin: 0; font-size: .82rem; line-height: 1.45; }
  .auth-form { gap: 8px; margin-top: 13px; }
  .auth-form input,
  .auth-form .button { min-height: 52px; }
  .auth-field-help,
  .auth-field-error { font-size: .73rem; }
  .auth-next-step { margin-top: 10px; padding: 8px 10px; }
  .auth-next-step strong { font-size: .73rem; }
  .auth-trust-list { gap: 5px 11px; margin-top: 9px; font-size: .72rem; }
  .intro-shell {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .intro-hero { min-height: auto; padding: 20px 20px 38px; }
  .intro-hero__copy { margin-top: 28px; }
  .intro-hero__copy h1 { max-width: 510px; margin-bottom: 13px; font-size: clamp(2.4rem, 10.5vw, 3.4rem); }
  .intro-hero__copy > p:not(.eyebrow) { max-width: 500px; font-size: .87rem; line-height: 1.48; }
  .intro-quest-badge { margin-top: 14px; padding: 8px 11px; }
  .intro-island { position: relative; width: 100%; right: auto; bottom: auto; margin-top: 17px; }
  .intro-island .adventure-scene { min-height: 156px; border-radius: 17px; }
  .intro-panel { width: auto; margin-top: -20px; border-radius: 24px 24px 0 0; padding: 31px 20px 32px; background: var(--paper); }
  .intro-panel h2 { margin-top: 14px; font-size: 2rem; }
  .intro-panel__lead { font-size: .85rem; line-height: 1.48; }
  .core-loop { margin: 18px 0 14px; }
  .intro-actions {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: calc(9px + env(safe-area-inset-bottom));
    left: 12px;
    margin: 0;
    border: 1px solid rgba(184,207,208,.88);
    border-radius: 15px;
    padding: 7px;
    background: rgba(249,252,251,.94);
    box-shadow: 0 12px 32px rgba(23,50,77,.2);
    backdrop-filter: blur(14px);
  }
  .intro-actions .button { min-height: 50px; }
  .mission-strip { margin: 0 16px 24px; }
  .slot-intro { margin-top: 60px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { height: 64px; padding: 0 16px; }
  .topbar-actions { gap: 10px; }
  .topbar-link { display: inline; font-size: 0.72rem; }
  .balance-strip { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .balance-item, .balance-item:first-child { min-height: 63px; padding: 10px 8px; }
  .balance-item:nth-child(2) { border-right: 0; }
  .balance-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .balance-item:nth-child(3) { border-right: 0; }
  .balance-item:nth-child(n+3) { border-top: 0; }
  .balance-item strong { font-size: 1.3rem; }
  .balance-label { font-size: 0.67rem; }
  .run-status { grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 13px 16px; }
  .run-status__identity { grid-column: 1 / -1; }
  .run-status__reward { justify-content: flex-start; }
  .run-status__meter { grid-column: 1 / -1; grid-row: 2; }
  .game-layout { display: block; padding: 24px 16px 90px; }
  .map-rail { margin-bottom: 32px; }
  .island-map { min-height: 235px; }
  .map-marker--week-1 { top: 57%; left: 21%; }
  .map-marker--week-2 { top: 28%; left: 47%; }
  .map-marker--week-3 { top: 50%; right: 12%; }
  .map-marker--week-4 { top: 22%; left: 13%; }
  .map-marker--week-5 { top: 16%; left: 64%; }
  .map-marker--week-6 { top: 41%; left: 32%; }
  .map-marker--week-7 { top: 61%; left: 47%; }
  .map-marker--week-8 { top: 66%; right: 17%; }
  .map-marker--week-9 { top: 27%; right: 7%; }
  .context-rail { display: grid; gap: 18px; margin-top: 32px; }
  .scene { min-height: 390px; padding: 22px; }
  .scene-illustration { opacity: 0.75; }
  .scene-copy { align-self: end; }
  .scene h1 { font-size: 2.35rem; }
  .choice-grid--two, .choice-grid--three, .share-choice-grid, .market-preview { grid-template-columns: 1fr; }
  .choice-card, .choice-card--career { min-height: 118px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .choice-card__price { margin-top: 0; }
  .activity-footer { position: sticky; z-index: 5; bottom: 0; margin: 26px -16px -90px; padding: 15px 16px; background: rgba(251,253,253,0.96); border-top: 1px solid var(--line); }
  .outcome-layout .activity-footer, .complete-layout .activity-footer { position: static; margin: 26px 0 0; padding: 0; border-top: 0; background: transparent; }
  .activity-footer .button { min-width: 150px; }
  .decision-heading { margin-top: 22px; }
  .review-equation { gap: 10px; padding: 15px; }
  .review-equation strong { font-size: 1.25rem; }
  .balance-snapshot { grid-template-columns: 1fr; }
  .outcome-balances { grid-template-columns: 1fr; }
  .complete-stats strong { font-size: 1.25rem; }
  .learning-recap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 470px) {
  .slot-grid { grid-template-columns: 1fr; }
  .slot-card { min-height: 155px; }
  .slot-intro { margin: 46px auto 26px; }
  .slot-intro h1 { font-size: 2.35rem; }
  .auth-art { padding-inline: 16px; }
  .auth-art-copy { margin-top: 22px; }
  .auth-art-copy h1 { font-size: clamp(2.2rem, 10vw, 2.85rem); }
  .auth-quest-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-quest-row > span { display: grid; justify-items: center; gap: 0; padding-inline: 4px; text-align: center; }
  .auth-panel { padding-inline: 18px; }
  .auth-panel-topline .context-badge { font-size: .7rem; }
  .intro-hero { padding-inline: 16px; }
  .intro-hero__copy { margin-top: 24px; }
  .intro-hero__copy h1 { font-size: clamp(2.1rem, 10.8vw, 2.7rem); }
  .intro-hero__copy > p:not(.eyebrow) { max-width: none; }
  .intro-panel { padding: 29px 18px 30px; }
  .intro-panel h2 { font-size: 1.85rem; }
  .core-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .core-loop__step { grid-template-columns: 27px minmax(0,1fr); min-height: 72px; column-gap: 8px; padding: 9px; }
  .core-loop__step > span { width: 27px; height: 27px; }
  .core-loop__step p { font-size: .65rem; }
  .intro-actions { align-items: stretch; flex-direction: column; }
  .intro-actions .button { width: 100%; }
  .mission-strip { align-items: flex-start; margin: 0 16px 20px; }
  .brand-mark { font-size: 0.98rem; }
  .topbar-link[data-action="how-to-play"], .topbar-link[data-action="parent-settings"] { display: none; }
  .slot-switcher span:nth-child(2) { display: none; }
  .scene { min-height: 410px; }
  .scene h1 { font-size: 2.1rem; }
  .run-status { grid-template-columns: 1fr; }
  .run-status__identity, .run-status__meter { grid-column: auto; }
  .run-status__reward { justify-content: flex-start; }
  .outcome-hero { padding: 18px; }
  .outcome-hero__main { align-items: flex-start; }
  .outcome-hero__main h1 { font-size: 2rem; }
  .outcome-hero__delta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .review-equation { grid-template-columns: 1fr; }
  .equation-arrow { transform: rotate(90deg); justify-self: center; }
  .activity-footer { align-items: stretch; flex-direction: column; }
  .activity-footer .button { width: 100%; }
  .step-count { text-align: center; }
}

@media (max-width: 360px) {
  .auth-art { padding: 15px 14px 27px; }
  .auth-art-copy { margin-top: 15px; }
  .auth-art-copy h1 { margin-block: 6px 8px; font-size: 2rem; }
  .auth-art-copy p:not(.eyebrow) { font-size: .77rem; line-height: 1.36; }
  .auth-quest-row { margin-top: 9px; }
  .auth-quest-row > span { min-height: 31px; padding-block: 4px; font-size: .67rem; }
  .auth-quest-row strong { font-size: .78rem; }
  .auth-world-window { margin-top: 8px; }
  .auth-world-window .adventure-scene,
  .auth-art .adventure-scene { min-height: 110px; }
  .auth-world-window__label { top: 7px; right: 7px; padding: 5px 7px; }
  .auth-world-window__label strong { font-size: .59rem; }
  .adventure-scene__crew { bottom: 6px; left: 6px; padding: 4px 6px 3px; }
  .adventure-scene__crew .explorer-art { width: 26px; height: 31px; margin-left: -4px; border-width: 1px; border-radius: 6px; }
  .adventure-scene__crew small { font-size: .45rem; }
  .auth-panel { margin-top: -24px; padding: 18px 16px 22px; }
  .auth-panel h2 { margin-block: 8px 6px; font-size: 1.62rem; }
  .auth-panel .muted { font-size: .76rem; line-height: 1.4; }
  .auth-form { gap: 6px; margin-top: 9px; }
  .auth-form label { font-size: .8rem; }
  .auth-form input,
  .auth-form .button { min-height: 48px; }
  .auth-field-help,
  .auth-field-error { font-size: .72rem; }
  .auth-next-step { grid-template-columns: auto 1fr; margin-top: 8px; padding: 7px 8px; }
  .auth-next-step strong { font-size: .72rem; }
  .auth-trust-list { margin-top: 8px; font-size: .72rem; }
}

@media (min-width: 620px) and (max-height: 600px) {
  .auth-shell { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); overflow: hidden; }
  .auth-art { min-height: 100vh; min-height: 100svh; padding: 16px 24px; }
  .auth-art-copy { margin-top: 12px; }
  .auth-art-copy h1 { max-width: 500px; margin-block: 6px 8px; font-size: clamp(2rem, 5vw, 2.7rem); line-height: .96; }
  .auth-art-copy p:not(.eyebrow) { font-size: .75rem; line-height: 1.35; }
  .auth-quest-row { margin-top: 8px; }
  .auth-quest-row > span { min-height: 29px; padding: 4px 7px; font-size: .58rem; }
  .auth-quest-row strong { font-size: .7rem; }
  .auth-world-window { width: min(100%, 500px); margin-top: 10px; }
  .auth-world-window .adventure-scene,
  .auth-art .adventure-scene { min-height: 108px; border-radius: 14px; }
  .auth-world-window::after { border-radius: 14px; }
  .auth-world-window__label { top: 7px; right: 7px; left: auto; padding: 5px 7px; }
  .auth-world-window__label strong { font-size: .57rem; }
  .adventure-scene__crew { bottom: 6px; left: 6px; gap: 2px; padding: 4px 6px 3px; }
  .adventure-scene__crew .explorer-art { width: 25px; height: 30px; margin-left: -4px; border-width: 1px; border-radius: 6px; }
  .adventure-scene__crew small { font-size: .44rem; }
  .auth-panel { margin: 0; border-radius: 0; padding: 12px 16px; }
  .auth-panel-inner { width: min(100%, 390px); border-radius: 18px; padding: 17px 18px; }
  .auth-panel-topline .context-badge { padding: 5px 8px; font-size: .59rem; }
  .auth-setup-step { grid-template-columns: auto repeat(2, 15px); font-size: .58rem; }
  .auth-panel h2 { margin-block: 8px 6px; font-size: 1.58rem; }
  .auth-panel .muted { margin: 0; font-size: .72rem; line-height: 1.35; }
  .auth-form { gap: 5px; margin-top: 8px; }
  .auth-form label { font-size: .73rem; }
  .auth-form input,
  .auth-form .button { min-height: 44px; }
  .auth-field-help,
  .auth-field-error { font-size: .59rem; }
  .auth-next-step { margin-top: 6px; padding: 6px 8px; }
  .auth-next-step strong { font-size: .62rem; }
  .auth-trust-list { gap: 3px 8px; margin-top: 6px; font-size: .58rem; }
}

@media (max-width: 560px) {
  .video-caption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .lesson-transcript__body { max-height: 260px; }
  .lesson-transcript__body p { grid-template-columns: 42px minmax(0, 1fr); font-size: 0.76rem; }
  .lesson-path { align-items: flex-start; flex-wrap: wrap; }
  .lesson-path > span { display: none; }
  .journey-heading { grid-template-columns: 46px minmax(0, 1fr); gap: 11px; }
  .journey-number { width: 46px; height: 46px; border-radius: 12px; font-size: 1.15rem; }
  .avatar-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the learning-game overrides last in the cascade. */
.journey-progress { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.journey-progress__track { grid-column: 1 / -1; }
.play-score > span:first-child {
  width: 23px;
  height: 23px;
  border-radius: 0;
  background-color: transparent;
  background-image: var(--collectible-art);
  background-position: 33.333% 0%;
  background-repeat: no-repeat;
  background-size: 400% 100%;
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 2px 2px rgba(23,50,77,0.18));
}
.play-result__badge { width: 34px; height: 34px; }
.avatar__accessory.collectible-art {
  border: 2px solid #fff;
  background-color: transparent;
  background-image: var(--collectible-art);
  background-repeat: no-repeat;
  background-size: 400% 100%;
}
.avatar__accessory.collectible-art--shell { background-position: 0% 0%; }
.avatar__accessory.collectible-art--star { background-position: 33.333% 0%; }
.avatar__accessory.collectible-art--crown { background-position: 66.667% 0%; }
.reward-chip > span:first-child { display: block; width: 32px; height: 32px; background: transparent; }
.reward-chip .collectible-art,
.accessory-option > span > .collectible-art {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background-color: transparent;
  background-image: var(--collectible-art);
  background-repeat: no-repeat;
  background-size: 400% 100%;
}
.reward-chip .collectible-art--shell,
.accessory-option .collectible-art--shell { background-position: 0% 0%; }
.reward-chip .collectible-art--star,
.accessory-option .collectible-art--star { background-position: 33.333% 0%; }
.reward-chip .collectible-art--crown,
.accessory-option .collectible-art--crown { background-position: 66.667% 0%; }
.accessory-option .collectible-art--none {
  border: 2px solid #70858e;
  border-radius: 50%;
  background-image: none;
}
.accessory-picker { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.accessory-option strong { overflow-wrap: normal; white-space: nowrap; }
.avatar > span { line-height: 1; }
.avatar__accessory { width: 23px; height: 23px; font-size: 0.82rem; }
.avatar--large .avatar__accessory { width: 28px; height: 28px; font-size: 0.95rem; }
.map-marker--week-1 { top: 83%; left: 47%; }
.map-marker--week-2 { top: 69%; left: 13%; }
.map-marker--week-3 { top: 61%; right: 16%; }
.map-marker--week-4 { top: 47%; left: 12%; }
.map-marker--week-5 { top: 34%; left: 46%; }
.map-marker--week-6 { top: 42%; right: 12%; left: auto; }
.map-marker--week-7 { top: 25%; left: 17%; }
.map-marker--week-8 { top: 19%; right: 12%; }
.map-marker--week-9 { top: 5%; right: auto; left: 46%; }

@media (max-width: 760px) {
  .game-layout { display: flex; flex-direction: column; padding-bottom: 34px; }
  .activity-column { order: 1; }
  .map-rail { order: 2; margin-top: 38px; margin-bottom: 0; }
  .context-rail { order: 3; }
  .activity-footer,
  .outcome-layout .activity-footer,
  .complete-layout .activity-footer { position: static; inset: auto; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); background: transparent; }
  .balance-item, .balance-item:first-child { min-height: 76px; padding: 11px 9px; }
  .context-rail { display: grid; margin-top: 34px; padding-bottom: 24px; }
}

@media (max-width: 470px) {
  .balance-item, .balance-item:first-child { min-height: 60px; padding: 8px; }
  .balance-item strong { font-size: 1.18rem; }
  .run-status { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 10px 16px; }
  .run-status__identity { grid-column: 1; grid-row: 1; }
  .run-status__identity > span:last-child { font-size: 0.7rem; }
  .run-status__meter { grid-column: 1 / -1; grid-row: 2; }
  .run-status__reward { grid-column: 2; grid-row: 1; gap: 7px; }
  .run-status__reward-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .run-status__reward > div > span { display: none; }
  .run-status__reward strong { max-width: 118px; font-size: 0.72rem; line-height: 1.25; }
}

@media (max-width: 760px) {
  .activity-column { padding: 18px; }
  .quiz-challenge { grid-template-columns: 72px minmax(0, 1fr) 34px; gap: 10px; padding: 15px; }
  .quiz-challenge-art { width: 68px; height: 68px; }
  .quiz-challenge h1 { font-size: 1.72rem; }
  .map-marker, .map-marker__icon { width: 52px; height: 52px; }
  .map-marker strong { width: 22px; height: 22px; font-size: 0.62rem; }
  .map-marker small { top: 51px; }
  .choice-card__illustration, .career-art { width: 54px; height: 54px; }
  .choice-single--treasure { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .chest-illustration { width: 92px; height: 92px; }
  .choice-single--treasure .choice-amount { grid-column: 2; }
  .outcome-reward__icon { flex-basis: 82px; width: 82px; height: 82px; }
}

@media (max-width: 470px) {
  .quiz-challenge { grid-template-columns: 58px minmax(0, 1fr); }
  .quiz-challenge-art { width: 54px; height: 54px; }
  .quiz-challenge .info-button { grid-column: 2; grid-row: 1; justify-self: end; }
  .quiz-challenge > div { grid-column: 1 / -1; grid-row: 2; }
  .quiz-challenge h1 { font-size: 1.55rem; }
  .choice-single--treasure { grid-template-columns: 82px minmax(0, 1fr); padding: 14px; }
  .chest-illustration { width: 78px; height: 78px; }
}

/* World-class experience layer: persistent world memories, cinematic consequences,
   assessment integrity, and a complete mobile navigation path. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mobile-menu-button {
  display: none;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.challenge-lock {
  align-self: start;
  max-width: 120px;
  padding: 7px 9px;
  border: 1px solid #e3ce78;
  border-radius: 7px;
  color: #6b5a19;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.world-memories {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.world-memory {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 94px;
  padding: 3px 5px;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 55, 67, 0.8);
  box-shadow: 0 4px 10px rgba(5, 45, 64, 0.2);
  backdrop-filter: blur(3px);
}
.world-memory__art {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}
.world-memory small {
  font-size: 0.55rem;
  font-weight: 850;
  line-height: 1.05;
}
.world-memory--week-1 { left: 30%; bottom: 3%; }
.world-memory--week-2 { left: 2%; bottom: 22%; }
.world-memory--week-3 { right: 1%; bottom: 31%; }
.world-memory--week-4 { left: 1%; top: 43%; }
.world-memory--week-5 { left: 37%; top: 29%; }
.world-memory--week-6 { right: 2%; top: 39%; }
.world-memory--week-7 { left: 3%; top: 19%; }
.world-memory--week-8 { right: 1%; top: 12%; }
.world-memory--week-9 { left: 33%; top: 1%; }
.world-memory--new {
  z-index: 4;
  animation: world-memory-build 900ms 420ms cubic-bezier(.16,.9,.2,1.2) both;
}
@keyframes world-memory-build {
  0% { opacity: 0; transform: translateY(15px) scale(.55); }
  62% { opacity: 1; transform: translateY(-3px) scale(1.08); box-shadow: 0 0 0 12px rgba(242,201,76,0); }
  100% { transform: translateY(0) scale(1); }
}

.consequence-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(220px, 1.1fr);
  align-items: center;
  gap: 22px;
  min-height: 178px;
  overflow: hidden;
  margin: 6px 0 16px;
  padding: 22px 24px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(242,201,76,.34), transparent 28%),
    linear-gradient(135deg, #123c4a, #087f8c 66%, #3f8f69);
  box-shadow: 0 16px 34px rgba(12, 55, 67, .22);
  animation: consequence-stage-in 420ms ease both;
}
.consequence-stage::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -62px;
  width: 170px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transform: rotate(-12deg);
}
.consequence-stage__scene {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92px;
}
.consequence-stage__origin,
.consequence-stage__target {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.consequence-stage__pouch,
.consequence-stage__landmark { width: 66px; height: 66px; }
.consequence-stage__target {
  margin-left: auto;
  animation: consequence-landmark-build 520ms 760ms cubic-bezier(.18,.89,.28,1.35) both;
}
.consequence-stage__trail {
  position: absolute;
  z-index: 1;
  left: 62px;
  right: 62px;
  display: flex;
  justify-content: space-around;
}
.consequence-stage__trail::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255,255,255,.28);
}
.consequence-stage__trail i {
  position: relative;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: var(--yellow);
  animation: consequence-token-move 720ms ease both;
}
.consequence-stage__trail i:nth-child(2) { animation-delay: 100ms; }
.consequence-stage__trail i:nth-child(3) { animation-delay: 200ms; }
.consequence-stage__trail i:nth-child(4) { animation-delay: 300ms; }
.consequence-stage__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  animation: consequence-copy-in 420ms 980ms ease both;
}
.consequence-stage__copy span {
  color: #d7f2ef;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.consequence-stage__copy strong {
  max-width: 370px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.consequence-stage__copy small { color: rgba(255,255,255,.8); line-height: 1.4; }
@keyframes consequence-stage-in {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes consequence-token-move {
  from { opacity: 0; transform: translateX(-48px) scale(.45); }
  55% { opacity: 1; }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes consequence-landmark-build {
  from { opacity: 0; transform: translateY(25px) scale(.5) rotate(-7deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes consequence-copy-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.app-frame--outcome .outcome-hero { animation-delay: 1.15s; }
.app-frame--outcome .unlock-banner { animation: outcome-rise 360ms 1.3s ease both; }
.app-frame--outcome .equation-card { animation: outcome-rise 360ms 1.45s ease both; }
.app-frame--outcome .outcome-details { animation: outcome-rise 360ms 1.58s ease both; }
.app-frame--outcome .review-note { animation: outcome-rise 360ms 1.7s ease both; }
.app-frame--outcome .activity-footer { animation: outcome-rise 360ms 1.82s ease both; }

.outcome-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}
.outcome-details summary {
  min-height: 48px;
  padding: 14px 16px;
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}
.outcome-details .outcome-balances { margin: 0 14px 12px; }
.outcome-details .change-list { margin: 0 14px 14px; }
.game-menu-actions { display: grid; gap: 10px; margin-top: 24px; }
.game-menu-actions .drawer-action { border-color: var(--line); color: var(--ink); background: #f8fbfb; }

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    box-shadow: 0 6px 16px rgba(12, 55, 67, .1);
  }
  .topbar-link { min-height: 44px; padding-inline: 4px; }
  .text-button { min-height: 44px; padding: 8px 4px; }
  .island-map { max-height: 430px; }
  .consequence-stage { grid-template-columns: 1fr; gap: 10px; }
  .consequence-stage__scene { max-width: 330px; width: 100%; margin-inline: auto; }
  .consequence-stage__copy { text-align: center; }
  .consequence-stage__copy strong { margin-inline: auto; }
  .info-button { width: 40px; height: 40px; }
  .option-with-help > .info-button { top: 9px; right: 9px; }
}

@media (max-width: 470px) {
  .topbar-actions { margin-left: auto; }
  .topbar-link { display: none !important; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .slot-switcher { min-width: 44px; min-height: 44px; justify-content: center; padding: 5px; }
  .slot-switcher > span:last-child { display: none; }
  .activity-column { padding: 16px; }
  .challenge-lock { grid-column: 2; grid-row: 1; justify-self: end; max-width: 106px; font-size: .61rem; }
  .consequence-stage { min-height: 210px; padding: 18px 15px; }
  .consequence-stage__origin,
  .consequence-stage__target { width: 68px; height: 68px; }
  .consequence-stage__pouch,
  .consequence-stage__landmark { width: 58px; height: 58px; }
  .consequence-stage__copy strong { font-size: 1.52rem; }
  .world-memory { max-width: 72px; padding: 2px 4px; }
  .world-memory__art { flex-basis: 21px; width: 21px; height: 21px; }
  .world-memory small { display: none; }
  .world-memory--new small { display: block; font-size: .5rem; }
  .outcome-details summary { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .world-memory--new,
  .consequence-stage,
  .consequence-stage__target,
  .consequence-stage__trail i,
  .consequence-stage__copy,
  .app-frame--outcome .outcome-hero,
  .app-frame--outcome .unlock-banner,
  .app-frame--outcome .equation-card,
  .app-frame--outcome .outcome-details,
  .app-frame--outcome .review-note,
  .app-frame--outcome .activity-footer { animation: none !important; }
}

/* 2026.11 world-class pass: money clarity, tactile choices, and compact outcomes. */
.sound-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.sound-toggle:hover { border-color: var(--teal); background: #effafa; }

.money-hud {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(205px, .9fr);
  gap: 10px;
  padding: 10px clamp(18px, 4vw, 60px);
  background: #edf5f5;
}
.money-hud .balance-item,
.money-hud .balance-item:first-child,
.money-hud .balance-item:last-child {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 9px;
  min-height: 86px;
  padding: 10px 12px;
  border: 1px solid #c9dcdf;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 50, 77, .05);
}
.money-hud .balance-item__icon {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  width: 34px;
  height: 34px;
}
.money-hud .balance-label {
  grid-column: 2;
  grid-row: 1;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: none;
}
.money-hud .balance-amount { gap: 5px; }
.money-hud .balance-item:not(.balance-item--summary) .balance-amount { grid-column: 2; grid-row: 2; }
.money-hud .balance-item:not(.balance-item--summary) > small { grid-column: 2; grid-row: 3; }
.money-hud .balance-amount strong { color: var(--teal-dark); font-size: 1.55rem; }
.money-hud .balance-amount > span,
.money-hud .balance-item > small,
.money-hud .balance-item--summary small { color: #526975; font-size: .72rem; }
.money-hud .balance-item--investments .balance-amount strong { color: #256d50; }
.money-hud .balance-item--summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: #9fc9ce;
  background: #f5fbfb;
}
.money-hud .balance-item--summary > span:first-child { display: grid; gap: 3px; }
.money-hud .balance-item--summary .balance-label { grid-column: auto; grid-row: auto; }
.money-hud .balance-item--summary .balance-amount { flex: 0 0 auto; }
.money-hud .balance-item--changed { animation: none; isolation: isolate; }
.money-hud .balance-item--changed::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--balance-feedback);
  animation: money-hud-feedback 850ms ease both;
  pointer-events: none;
}
@keyframes money-hud-feedback {
  0% { opacity: 1; box-shadow: inset 0 -4px 0 currentColor; }
  100% { opacity: 0; box-shadow: inset 0 0 0 transparent; }
}

.path-preview {
  display: grid;
  gap: 2px;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #38525f;
  background: #edf7f7;
  font-size: .76rem;
  line-height: 1.35;
  text-align: left;
}
.path-preview b { color: var(--teal-dark); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.memory-spark { margin: 10px 0 14px; border: 1px solid #f0d77d; border-radius: 8px; background: #fffaf0; }
.memory-spark summary { min-height: 44px; padding: 11px 14px; color: var(--ink); font-size: .8rem; font-weight: 850; cursor: pointer; }
.memory-spark p { margin: 0; padding: 0 14px 13px; color: #526975; font-size: .8rem; line-height: 1.45; }

.allocation-control,
.bid-control,
.investment-meter {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bcd6d9;
  border-radius: 10px;
  background: #f5fbfb;
}
.allocation-control__values { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.allocation-control__values > div { display: grid; gap: 3px; padding: 12px; border-radius: 8px; background: #fff; text-align: center; }
.allocation-control__values span { color: #526975; font-size: .76rem; font-weight: 800; }
.allocation-control__values strong { color: var(--teal-dark); font-size: 1.7rem; }
.allocation-control__values small { color: #526975; }
.allocation-control label,
.bid-control label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 850; }
.allocation-control input[type="range"],
.bid-control input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--teal); cursor: pointer; }
.range-ends,
.bid-scale { display: flex; justify-content: space-between; gap: 12px; color: #526975; font-size: .7rem; }

.share-choice-grid { gap: 12px; }
.share-stepper { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #c9dcdf; border-radius: 10px; background: #fff; }
.share-stepper > span { display: grid; gap: 3px; }
.share-stepper small { color: #526975; }
.stepper-controls { display: grid; grid-template-columns: 44px 46px 44px; align-items: center; }
.stepper-controls button { width: 44px; height: 44px; border: 1px solid #9fc9ce; color: var(--teal-dark); background: #effafa; font-size: 1.35rem; font-weight: 900; cursor: pointer; }
.stepper-controls button:first-child { border-radius: 8px 0 0 8px; }
.stepper-controls button:last-child { border-radius: 0 8px 8px 0; }
.stepper-controls button:disabled { color: #8aa0aa; background: #f3f6f6; cursor: not-allowed; }
.stepper-controls output { display: grid; place-items: center; height: 44px; border-block: 1px solid #9fc9ce; color: var(--ink); background: #fff; font-weight: 900; }
.investment-meter { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin-top: 12px; padding: 13px 15px; }
.investment-meter > span { color: #526975; font-size: .74rem; font-weight: 800; }
.investment-meter > small { grid-column: 1 / -1; color: #526975; }
.investment-meter > div { grid-column: 1 / -1; height: 8px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #dcebec; }
.investment-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width 220ms ease; }

.bid-control__readout { display: grid; place-items: center; gap: 3px; margin-bottom: 16px; padding: 14px; border-radius: 8px; background: #fff; text-align: center; }
.bid-control__readout > span { color: #526975; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.bid-control__readout strong { color: var(--teal-dark); font-size: 1.65rem; }
.bid-control__readout small { color: #8b4b12; font-weight: 750; }
.bid-control--winning .bid-control__readout { outline: 2px solid #8ec7a9; background: #edf8f1; }
.bid-control--winning .bid-control__readout small { color: #256d50; }

.outcome-card {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #b9dfe0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 55, 67, .12);
}
.outcome-card .consequence-stage { margin: 0; border-radius: 0; box-shadow: none; }
.outcome-card__body { display: grid; gap: 14px; padding: 20px; }
.outcome-card__heading { display: flex; align-items: center; gap: 14px; }
.outcome-card__heading .outcome-reward__icon { flex: 0 0 68px; width: 68px; height: 68px; }
.outcome-card__heading h1 { margin: 4px 0; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.05; }
.outcome-card__heading p { margin: 0; color: #526975; line-height: 1.45; }
.outcome-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.outcome-facts > div { display: grid; gap: 4px; min-width: 0; padding: 11px 12px; border-radius: 8px; background: #f2f8f8; }
.outcome-facts span { color: #526975; font-size: .69rem; font-weight: 800; text-transform: uppercase; }
.outcome-facts strong { font-size: .86rem; }
.equation-card--compact { margin: 0; padding: 12px 14px; }
.outcome-card .outcome-details { margin: 0; }
.activity-footer--outcome { margin-top: 14px; }

@media (max-width: 900px) {
  .money-hud { grid-template-columns: repeat(3, 1fr); }
  .money-hud .balance-item--summary { grid-column: 1 / -1; min-height: 48px; }
}

@media (max-width: 760px) {
  .topbar { height: 56px; padding-inline: 10px; }
  .money-hud { gap: 6px; padding: 5px 10px; }
  .money-hud .balance-item,
  .money-hud .balance-item:first-child,
  .money-hud .balance-item:last-child {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 66px;
    padding: 8px;
    text-align: center;
  }
  .money-hud .balance-item__icon,
  .money-hud .balance-item > small { display: none; }
  .money-hud .balance-label,
  .money-hud .balance-item:not(.balance-item--summary) .balance-amount { grid-column: 1; }
  .money-hud .balance-label { font-size: .8125rem; }
  .money-hud .balance-amount { justify-content: center; }
  .money-hud .balance-amount strong { font-size: 1.35rem; }
  .money-hud .balance-amount > span { font-size: .68rem; }
  .money-hud .balance-item.balance-item--summary,
  .money-hud .balance-item.balance-item--summary:last-child { display: flex; min-height: 42px; padding: 6px 10px; text-align: left; }
  .money-hud .balance-item--summary small { display: block; }
  .run-status { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; min-height: 46px; padding: 6px 12px 12px; }
  .run-status__identity { grid-column: 1; grid-row: 1; }
  .run-status__identity .run-status__eyebrow,
  .run-status__identity > span:last-child,
  .run-status__reward > div > span { display: none; }
  .run-status__meter { position: absolute; right: 12px; bottom: 5px; left: 12px; display: block; }
  .run-status__meter-label { display: none; }
  .run-status__reward { grid-column: 2; grid-row: 1; gap: 5px; }
  .run-status__reward-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .run-status__reward strong { max-width: 108px; font-size: .69rem; }
  .run-status__track { height: 8px; }
  .outcome-card__body { padding: 16px; }
  .outcome-facts { grid-template-columns: 1fr 1fr; }
  .activity-footer--outcome { position: sticky; z-index: 6; bottom: 0; margin-inline: -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
}

@media (max-width: 470px) {
  .sound-toggle { width: 44px; height: 44px; }
  .money-hud .balance-item--summary .balance-label { font-size: .78rem; }
  .money-hud .balance-item--summary .balance-amount strong { font-size: 1.2rem; }
  .allocation-control { padding: 14px; }
  .allocation-control__values { gap: 7px; }
  .allocation-control__values > div { padding: 9px 5px; }
  .share-stepper { align-items: stretch; flex-direction: column; }
  .stepper-controls { align-self: stretch; grid-template-columns: 44px 1fr 44px; }
  .outcome-card .consequence-stage { min-height: 166px; }
  .outcome-card__heading { align-items: flex-start; }
  .outcome-card__heading .outcome-reward__icon { flex-basis: 50px; width: 50px; height: 50px; }
  .outcome-card__heading h1 { font-size: 1.55rem; }
  .outcome-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .money-hud .balance-item--changed::after,
  .investment-meter i { animation: none !important; transition: none !important; }
}

/* 2026.12 authoritative experience layer.
   This is the release contract for shared chrome, weekly flow, and responsive behavior. */
html { overflow-x: clip; }
body, #app, .app-frame { max-width: 100%; overflow-x: clip; }
.topbar, .topbar-actions, .money-hud, .run-status, .game-layout,
.activity-column, .map-rail, .context-rail { min-width: 0; }

.sound-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-action {
  border-color: var(--line);
  color: var(--ink);
  background: #f8fbfb;
}
.drawer-action:hover { border-color: #9fc9ce; background: #eff8f8; }
.drawer-action--danger { border-color: #f0c2bd; color: #9b3f36; background: #fff8f7; }
.drawer-action--danger:hover { border-color: var(--coral); background: #fff0ee; }
.drawer-action > .sound-icon { flex: 0 0 22px; }
[role="dialog"] h1:focus,
[role="dialog"] h2:focus { outline: none; }

.topbar {
  height: 60px;
  gap: 12px;
  padding-inline: clamp(12px, 3vw, 40px);
}
.topbar-actions { gap: clamp(8px, 1.4vw, 18px); }
.topbar-link { white-space: nowrap; }
.sound-toggle { flex-basis: 40px; width: 40px; height: 40px; }
.slot-switcher { min-width: 0; max-width: 160px; }
.slot-switcher > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.money-hud {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px clamp(12px, 3vw, 40px);
}
.money-hud .balance-item,
.money-hud .balance-item:first-child,
.money-hud .balance-item:last-child {
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: minmax(28px, auto) auto;
  min-width: 0;
  min-height: 70px;
  padding: 8px 10px;
}
.money-hud .balance-item__icon { width: 30px; height: 30px; }
.money-hud .balance-label { min-width: 0; font-size: .76rem; line-height: 1.08; }
.money-hud .balance-amount { min-width: 0; align-items: baseline; }
.money-hud .balance-amount strong { font-size: clamp(1.2rem, 2.2vw, 1.48rem); line-height: 1; }
.money-hud .balance-amount > span { white-space: nowrap; }
.money-hud .balance-item > small { display: none; }
.money-hud .balance-item--summary,
.money-hud .balance-item--summary:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: start;
  gap: 5px;
}
.money-hud .balance-item--summary > span:first-child { min-width: 0; gap: 1px; }
.money-hud .balance-item--summary .balance-amount { justify-content: flex-start; }

.run-status {
  grid-template-columns: minmax(170px, .8fr) minmax(180px, 1.4fr) minmax(185px, .9fr);
  min-height: 62px;
  gap: 20px;
  padding: 7px clamp(12px, 3vw, 40px);
}
.run-status__reward-icon,
.game-art.run-status__reward-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
}
.run-status__reward { min-width: 0; }
.run-status__reward strong { line-height: 1.18; }

.game-layout {
  grid-template-columns: minmax(230px, .7fr) minmax(500px, 1.55fr) minmax(230px, .7fr);
  gap: clamp(18px, 2vw, 36px);
  padding: 28px clamp(18px, 3vw, 52px) 64px;
}

.lesson-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0c3743; }
.video-caption { min-height: 42px; justify-content: flex-start; }
.learning-goal {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px 12px;
}
.goal-icon,
.game-art.goal-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  aspect-ratio: 1;
}
.learning-goal > div { min-width: 0; }
.learning-goal strong { line-height: 1.25; }
.mini-island-preview {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 76px;
  min-height: 56px;
  border: 1px solid #b9dfe0;
  border-radius: 9px;
  padding: 5px;
  color: var(--teal-dark);
  background: #fff;
}
.mini-island-preview > span {
  width: 54px;
  height: 31px;
  border-radius: 5px;
  background: #0b86bd url("./assets/island-map-v2.jpg") center / cover no-repeat;
  box-shadow: 0 3px 8px rgba(11,91,127,.2);
}
.mini-island-preview small { font-size: .6rem; font-weight: 850; }

.lesson-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}
.lesson-path::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: #d5e3e6;
}
.lesson-path__stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  color: #657986;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.lesson-path__stage .path-step {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid #c9dade;
  border-radius: 50%;
  color: #657986;
  background: #fff;
  font-size: .72rem;
}
.lesson-path__stage--current { color: var(--ink); }
.lesson-path__stage--current .path-step { border-color: var(--teal); color: #fff; background: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,140,.12); }
.lesson-path__stage--done .path-step { border-color: #76aa8c; color: #fff; background: var(--green); }

.decision-heading--compact { margin-top: 14px; }
.decision-heading--compact h1 { margin-block: 5px; }
.commit-banner { margin-top: 12px; }
.review-equation { margin-top: 12px; padding: 12px; }
.review-note--primary { margin-top: 12px; }
.review-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}
.review-details summary { min-height: 48px; padding: 14px; color: var(--teal-dark); font-size: .8rem; font-weight: 850; cursor: pointer; }
.review-details .balance-snapshot,
.review-details .change-list,
.review-details .review-note { margin: 0 14px 14px; }
.activity-footer--commit { margin-top: 14px; }

.bid-scale { position: relative; min-height: 29px; align-items: end; padding-top: 12px; }
.bid-scale__threshold {
  position: absolute;
  top: 0;
  left: var(--threshold-position);
  max-width: 100px;
  color: #8b4b12;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  transform: translateX(-50%);
}
.bid-scale__threshold::before { content: ""; position: absolute; top: 11px; left: 50%; width: 2px; height: 8px; background: #b06b26; }

.toast { z-index: 50; }

@media (max-width: 1240px) {
  .game-layout { grid-template-columns: minmax(220px, .58fr) minmax(500px, 1.42fr); }
  .context-rail { grid-column: 2; }
}

@media (max-width: 1024px) {
  .game-layout { display: flex; flex-direction: column; padding: 22px clamp(14px, 3vw, 28px) 44px; }
  .activity-column { order: 1; width: min(100%, 760px); margin-inline: auto; }
  .map-rail { order: 2; width: min(100%, 560px); margin: 30px auto 0; }
  .context-rail { order: 3; width: min(100%, 760px); margin: 28px auto 0; }
  .island-map { width: 100%; min-height: 0; max-height: none; }
}

@media (max-width: 900px) {
  .topbar-link { display: none !important; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .money-hud { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .money-hud .balance-item--summary { grid-column: auto; }
}

@media (max-width: 760px) {
  .topbar { position: sticky; z-index: 20; top: 0; height: 56px; padding-inline: 10px; }
  .topbar-actions { margin-left: auto; gap: 7px; }
  .brand-mark { min-width: 0; font-size: .92rem; }
  .sound-toggle { flex-basis: 42px; width: 42px; height: 42px; }
  .mobile-menu-button { min-width: 54px; padding-inline: 10px; }
  .slot-switcher { width: 44px; min-width: 44px; height: 44px; padding: 4px; }
  .slot-switcher > span:nth-child(2),
  .slot-switcher > span:last-child { display: none; }

  .money-hud { gap: 4px; padding: 5px 7px; }
  .money-hud .balance-item,
  .money-hud .balance-item:first-child,
  .money-hud .balance-item:last-child,
  .money-hud .balance-item.balance-item--summary,
  .money-hud .balance-item.balance-item--summary:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(24px, auto) auto;
    align-content: center;
    justify-items: center;
    min-height: 72px;
    padding: 6px 4px;
    text-align: center;
  }
  .money-hud .balance-item__icon,
  .money-hud .balance-item > small,
  .money-hud .balance-item--summary small,
  .money-hud .balance-amount > span { display: none; }
  .money-hud .balance-label,
  .money-hud .balance-item:not(.balance-item--summary) .balance-amount { grid-column: 1; }
  .money-hud .balance-label { min-height: 24px; font-size: clamp(.6rem, 2.7vw, .72rem); line-height: 1.05; }
  .money-hud .balance-amount { justify-content: center; }
  .money-hud .balance-amount strong,
  .money-hud .balance-item--summary .balance-amount strong { font-size: clamp(1.08rem, 5vw, 1.34rem); }

  .run-status {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
    gap: 6px 10px;
    min-height: 58px;
    padding: 6px 10px 12px;
  }
  .run-status__identity { grid-column: 1; grid-row: 1; }
  .run-status__identity .run-status__eyebrow,
  .run-status__identity > span:last-child,
  .run-status__reward > div > span { display: none; }
  .run-status__meter { position: absolute; right: 10px; bottom: 5px; left: 10px; display: block; }
  .run-status__meter-label { display: none; }
  .run-status__track { height: 7px; }
  .run-status__reward { grid-column: 2; grid-row: 1; gap: 7px; }
  .run-status__reward-icon,
  .game-art.run-status__reward-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .run-status__reward strong { max-width: 116px; font-size: .68rem; line-height: 1.14; }

  .activity-column { padding: 16px; }
  .learning-goal { grid-template-columns: 46px minmax(0, 1fr) 70px; gap: 9px; min-height: 72px; padding: 8px 9px; }
  .goal-icon,
  .game-art.goal-icon { flex-basis: 46px; width: 46px; height: 46px; }
  .learning-goal strong { font-size: .86rem; }
  .mini-island-preview { min-width: 66px; min-height: 52px; padding: 4px; }
  .mini-island-preview > span { width: 48px; height: 27px; }
  .lesson-path { align-items: initial; flex-wrap: nowrap; }
  .lesson-path__stage { font-size: .62rem; }
  .lesson-path__stage .path-step { width: 29px; height: 29px; }
  .lesson-path::before { top: 14px; }

  .activity-footer--commit,
  .activity-footer--outcome {
    position: sticky !important;
    z-index: 7;
    bottom: 0;
    margin: 14px -16px -16px !important;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--line) !important;
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(8px);
  }
  .review-layout .commit-banner { padding: 11px; }
  .review-layout .commit-banner__icon { width: 46px; height: 46px; }
  .review-equation { grid-template-columns: 1fr auto 1fr; }
  .equation-arrow { transform: none; }
  .outcome-card .consequence-stage { min-height: 150px; padding: 12px; }
  .outcome-card__body { gap: 10px; padding: 13px; }
  .outcome-card__heading .outcome-reward__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .outcome-card__heading h1 { font-size: 1.42rem; }
  .outcome-card__heading p { font-size: .83rem; line-height: 1.35; }
  .outcome-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .outcome-facts > div { padding: 8px; }
  .outcome-facts span { font-size: .58rem; }
  .outcome-facts strong { font-size: .72rem; }
  .toast { top: 66px; right: 10px; bottom: auto; left: 10px; width: auto; text-align: center; }
}

@media (max-width: 430px) {
  .brand-mark .brand-sun { width: 16px; height: 16px; }
  .sound-toggle { display: none; }
  .topbar-actions { gap: 6px; }
  .learning-goal { grid-template-columns: 44px minmax(0, 1fr) 62px; }
  .goal-icon,
  .game-art.goal-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .mini-island-preview { min-width: 58px; }
  .mini-island-preview small { font-size: .54rem; }
  .outcome-facts { grid-template-columns: 1fr 1fr; }
  .outcome-facts > div:last-child:nth-child(3) { grid-column: 1 / -1; }
  .activity-footer--commit { display: grid; grid-template-columns: .8fr 1.2fr; }
  .activity-footer--commit .button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mini-island-preview,
  .activity-footer--commit,
  .activity-footer--outcome { scroll-behavior: auto; }
}

/* Keep shared chrome dimensions stable on both sides of responsive boundaries. */
.topbar { height: 56px; }
.money-hud { padding-block: 5px; }
.money-hud .balance-item,
.money-hud .balance-item:first-child,
.money-hud .balance-item:last-child { min-height: 72px; }
.run-status { min-height: 58px; padding-block: 6px; }
.run-status__identity .run-status__eyebrow,
.run-status__identity > span:last-child,
.run-status__reward > div > span { display: none; }

@media (max-width: 760px) {
  .review-layout { padding-bottom: 82px; }
  .app-frame--outcome .activity-column { padding-bottom: 98px; }
  .activity-footer--commit,
  .activity-footer--outcome {
    position: fixed !important;
    inset: auto auto 0 14px !important;
    width: calc(100vw - 28px) !important;
    max-width: 732px !important;
    margin: 0 !important;
    box-shadow: 0 -10px 28px rgba(12,55,67,.14);
  }
  .app-frame--outcome .activity-footer--outcome { animation: none !important; transform: none !important; }
}

/* 2026.13 inclusive Explorer Builder and responsive art corrections. */
.avatar {
  --avatar-theme: #087f8c;
  box-shadow: 0 0 0 3px var(--avatar-theme), 0 5px 13px rgba(23,50,77,.24);
}
.avatar--theme-sunrise { --avatar-theme: #d95d4f; }
.avatar--theme-jungle { --avatar-theme: #2e7d4f; }
.avatar--theme-gold { --avatar-theme: #d59d16; }
.avatar--theme-orchid { --avatar-theme: #7754a7; }
.avatar--theme-midnight { --avatar-theme: #17324d; }
.avatar--builder { width: 104px; height: 104px; }
.avatar__portrait {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #bfe8f4;
}
.avatar__portrait .explorer-art {
  position: absolute;
  top: -16.667%;
  left: 0;
  width: 100%;
  height: 133.333%;
  border-radius: 0;
}
.avatar--small .avatar__portrait { border-width: 2px; }
.avatar--builder .avatar__accessory {
  right: -7px;
  top: -7px;
  width: 36px;
  height: 36px;
}

.collectible-art svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.collectible-art--anchor,
.collectible-art--spark,
.collectible-art--leaf,
.collectible-art--chart,
.collectible-art--wave,
.avatar__accessory.collectible-art--anchor,
.avatar__accessory.collectible-art--spark,
.avatar__accessory.collectible-art--leaf,
.avatar__accessory.collectible-art--chart,
.avatar__accessory.collectible-art--wave {
  display: inline-grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #17324d;
  background-color: #f2c94c;
  background-image: none;
  filter: drop-shadow(0 3px 4px rgba(23,50,77,.2));
}
.collectible-art--leaf { color: #fff; background-color: #2e7d4f; }
.collectible-art--wave { color: #fff; background-color: #087f8c; }
.collectible-art--chart { color: #fff; background-color: #7754a7; }
.collectible-art--spark { color: #17324d; background-color: #f2c94c; }
.outcome-gear { display: inline-flex; align-items: center; gap: 6px; }
.outcome-gear .collectible-art { width: 24px; }

.drawer--customize {
  width: min(100%, 680px);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  scroll-padding-bottom: 96px;
}
.builder-intro { margin-bottom: 16px; }
.builder-preview {
  position: sticky;
  z-index: 4;
  top: -28px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 142px;
  margin: 0 -28px 22px;
  padding: 18px 28px;
  border-block: 1px solid #cce2e3;
  background:
    radial-gradient(circle at 84% 15%, rgba(242,201,76,.34), transparent 27%),
    linear-gradient(135deg, #e8f7f5, #dff3fb);
  box-shadow: 0 10px 22px rgba(23,50,77,.1);
}
.builder-preview > div { display: grid; gap: 4px; min-width: 0; }
.builder-preview > div > span {
  color: var(--teal-dark);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.builder-preview strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder-preview small { color: var(--ink-soft); font-weight: 750; }
.customize-form { gap: 18px; }
.builder-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfd;
}
.builder-section--nickname {
  border: 2px solid #77bdc4;
  background: #effafa;
  box-shadow: 0 8px 18px rgba(8,127,140,.08);
}
.builder-section__heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.builder-section__heading > div { display: grid; gap: 3px; }
.builder-section__heading label,
.builder-section__heading .section-label {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.builder-section__heading small { color: var(--ink-soft); font-size: .72rem; line-height: 1.4; }
.builder-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(8,127,140,.22);
}
.nickname-control { position: relative; }
.nickname-control__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--teal-dark);
  font-size: 0;
  transform: translateY(-50%);
}
.nickname-control__icon::before,
.nickname-control__icon::after {
  position: absolute;
  content: "";
}
.nickname-control__icon::before {
  top: 7px;
  left: 1px;
  width: 15px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}
.nickname-control__icon::after {
  top: 13px;
  left: 0;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-width: 0 0 2px 2px;
}
.customize-form .nickname-control input {
  min-height: 58px;
  padding: 14px 58px 14px 46px;
  border: 2px solid #70b8bf;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(23,50,77,.06);
  font-size: 1rem;
  font-weight: 800;
}
.customize-form .nickname-control input::placeholder { color: #738892; font-weight: 650; }
.nickname-count {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 800;
  transform: translateY(-50%);
}
.avatar-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.avatar-option {
  min-height: 116px;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 12px;
  padding: 12px 6px 10px;
  background: #fff;
  font-size: .72rem;
}
.avatar-option:hover,
.avatar-option--selected { transform: translateY(-2px); }
.avatar-option--selected {
  border-color: var(--teal);
  color: var(--ink);
  background: #effafa;
  box-shadow: 0 0 0 3px rgba(8,127,140,.12), 0 8px 16px rgba(23,50,77,.1);
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.theme-option {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 70px;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 9px 4px;
  color: var(--ink-soft);
  background: #fff;
  font-size: .64rem;
}
.theme-option > span {
  width: 28px;
  height: 28px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--theme-swatch);
  box-shadow: 0 0 0 2px var(--theme-swatch);
}
.theme-option--selected {
  border-color: var(--teal);
  color: var(--ink);
  background: #effafa;
}
.accessory-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.accessory-option {
  position: relative;
  min-height: 58px;
  border-width: 2px;
  border-radius: 10px;
  padding: 9px;
}
.accessory-option > span {
  width: 34px;
  height: 34px;
  background: transparent;
}
.accessory-option > small {
  position: absolute;
  right: 8px;
  bottom: 5px;
  color: #6c6572;
  font-size: .56rem;
  font-weight: 850;
}
.accessory-option--locked { border-style: dashed; background: #f3f6f6; }
.accessory-option--locked strong { padding-right: 35px; }
.builder-save {
  position: sticky;
  z-index: 5;
  bottom: -28px;
  margin: 4px -28px -28px;
  padding: 16px 28px max(16px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  box-shadow: 0 -10px 24px rgba(23,50,77,.1);
  backdrop-filter: blur(8px);
}
.builder-save .button { width: 100%; }

.quiz-challenge { grid-template-columns: 96px minmax(0, 1fr); }
.quiz-explanation-control { margin-top: 12px; }
.challenge-lock {
  display: inline-flex;
  align-items: center;
  max-width: none;
  min-height: 38px;
  padding: 8px 11px;
  text-align: left;
}
.quiz-explanation-control .info-button { width: 40px; height: 40px; }

/* Keep the beach checkpoint and its label inside the portrait map crop. */
.map-marker--week-1 { top: 77%; left: 47%; }
.adventure-scene > .adventure-scene__explorer {
  width: 24%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

@media (max-width: 560px) {
  .drawer--customize { padding: 20px 16px max(20px, env(safe-area-inset-bottom)); }
  .builder-intro { margin-bottom: 12px; font-size: .82rem; }
  .builder-preview {
    top: -20px;
    min-height: 118px;
    margin: 0 -16px 16px;
    padding: 12px 18px;
  }
  .avatar--builder { width: 84px; height: 84px; }
  .avatar--builder .avatar__accessory { width: 30px; height: 30px; }
  .builder-preview strong { font-size: 1.25rem; }
  .builder-section { padding: 14px 12px; }
  .avatar-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-option { min-height: 112px; }
  .theme-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .accessory-picker { grid-template-columns: 1fr; }
  .builder-save {
    bottom: -20px;
    margin: 2px -16px -20px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }
  .quiz-challenge {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 14px;
  }
  .quiz-challenge-art { width: 70px; height: 70px; }
  .quiz-challenge h1 { font-size: 1.48rem; }
  .challenge-lock {
    width: 100%;
    font-size: .68rem;
    line-height: 1.35;
  }
  .info-button,
  .quiz-explanation-control .info-button { width: 44px; height: 44px; }
  .map-marker--week-1 { top: 77%; left: 47%; }
  .adventure-scene > .adventure-scene__explorer { width: 28%; border-radius: 14px; }
}

/* 2026.14 — dedicated first-run Explorer Builder. */
.explorer-builder-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f5faf9;
}
.builder-screen-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px clamp(20px, 4vw, 58px);
  border-bottom: 1px solid rgba(23,50,77,.1);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}
.builder-exit { min-height: 44px; padding: 8px 4px; }
.builder-screen-progress {
  position: relative;
  z-index: 11;
  height: 7px;
  background: #d8e8e7;
}
.builder-screen-progress > span {
  display: block;
  width: var(--builder-progress);
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #40afb1, var(--yellow));
  transition: width 320ms ease;
}
.builder-screen-progress strong {
  position: absolute;
  top: 14px;
  right: clamp(20px, 4vw, 58px);
  color: #49616e;
  padding: 4px 8px;
  border: 1px solid #dce7e6;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 12px rgba(23,50,77,.08);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.builder-screen-layout {
  display: grid;
  grid-template-columns: minmax(350px, .82fr) minmax(520px, 1.18fr);
  min-height: calc(100dvh - 75px);
}
.builder-stage {
  position: sticky;
  top: 0;
  align-self: start;
  isolation: isolate;
  display: grid;
  min-height: calc(100dvh - 75px);
  overflow: hidden;
  align-content: start;
  justify-items: center;
  padding: clamp(50px, 7vh, 78px) clamp(30px, 5vw, 72px) 42px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 16%, rgba(242,201,76,.35), transparent 23%),
    linear-gradient(155deg, #17324d 0%, #124f62 56%, #087f8c 100%);
}
.builder-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
  content: "";
  opacity: .22;
}
.builder-stage__sky span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  animation: builder-drift 8s ease-in-out infinite alternate;
}
.builder-stage__sky span:nth-child(1) { width: 110px; height: 110px; top: 11%; left: -38px; }
.builder-stage__sky span:nth-child(2) { width: 64px; height: 64px; top: 34%; right: 8%; animation-delay: -2s; }
.builder-stage__sky span:nth-child(3) { width: 22px; height: 22px; top: 16%; right: 19%; background: var(--yellow); box-shadow: 0 0 0 9px rgba(242,201,76,.12); animation-delay: -4s; }
.builder-stage__copy { position: relative; z-index: 3; max-width: 480px; }
.builder-stage__copy .eyebrow { color: #f7da77; }
.builder-stage__copy h1 {
  margin: 10px 0 0;
  font-size: clamp(2.05rem, 3.5vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.builder-stage__portrait {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  margin-top: clamp(28px, 5vh, 52px);
}
.avatar--hero { width: 176px; height: 176px; }
.avatar--hero .avatar__accessory { top: -7px; right: -7px; width: 42px; height: 42px; }
.builder-stage__ring {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.05), 0 22px 55px rgba(0,0,0,.25);
  animation: builder-ring 3.2s ease-in-out infinite;
}
.builder-stage__identity {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 4px;
  width: min(100%, 330px);
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(9,38,57,.48);
  box-shadow: 0 14px 32px rgba(6,33,46,.18);
  backdrop-filter: blur(10px);
}
.builder-stage__identity > span { color: #aee3df; font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.builder-stage__identity strong { overflow: hidden; font-size: 1.36rem; text-overflow: ellipsis; white-space: nowrap; }
.builder-stage__identity small { color: #cbe4e6; font-weight: 750; }
.builder-stage__island {
  position: absolute;
  z-index: 1;
  width: 74%;
  right: -13%;
  bottom: -12%;
  opacity: .27;
  filter: saturate(.85) drop-shadow(0 20px 30px rgba(0,0,0,.25));
  transform: rotate(-5deg);
}
.builder-stage__island .adventure-scene { min-height: 300px; }
.builder-workbench {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(54px, 7vh, 82px) clamp(28px, 6vw, 88px) 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(242,201,76,.14), transparent 24%),
    #f9fcfb;
}
.builder-step-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 640px);
  margin: 0 auto 32px;
}
.builder-step-nav__item {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d4e2e3;
  border-radius: 10px;
  padding: 9px 12px;
  color: #6b7c83;
  background: rgba(255,255,255,.74);
  text-align: left;
}
.builder-step-nav__item > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 2px solid #bed1d3;
  border-radius: 50%;
  font-size: .73rem;
  font-weight: 900;
}
.builder-step-nav__item strong { font-size: .78rem; }
.builder-step-nav__item--current { border-color: #7cbec3; color: var(--ink); background: #effafa; box-shadow: 0 6px 16px rgba(8,127,140,.08); }
.builder-step-nav__item--current > span { border-color: var(--teal); color: #fff; background: var(--teal); }
.builder-step-nav__item--complete { color: var(--teal-dark); }
.builder-step-nav__item--complete > span { border-color: #8bc9b1; color: #fff; background: var(--green); }
.builder-workbench__content { width: min(100%, 640px); margin: 0 auto; animation: builder-content-in 260ms ease both; }
.builder-copy h2 { margin: 8px 0 8px; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1; letter-spacing: -.05em; }
.builder-copy p { max-width: 590px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.onboarding-name {
  display: grid;
  gap: 5px;
  margin: 26px 0 24px;
  padding: 16px;
  border: 2px solid #77bdc4;
  border-radius: 14px;
  background: #effafa;
  box-shadow: 0 10px 24px rgba(8,127,140,.08);
}
.onboarding-name > label { font-weight: 900; }
.onboarding-name > label span { margin-left: 6px; padding: 3px 7px; border-radius: 999px; color: #526b76; background: #dce9e9; font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
.onboarding-name > small { color: var(--ink-soft); font-size: .72rem; }
.onboarding-name .nickname-control { width: 100%; margin-top: 5px; }
.onboarding-name .nickname-control input {
  width: 100%;
  min-height: 58px;
  padding: 14px 58px 14px 46px;
  border: 2px solid #70b8bf;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(23,50,77,.06);
  font-size: 1rem;
  font-weight: 800;
}
.onboarding-name .nickname-control input::placeholder { color: #738892; font-weight: 650; }
.onboarding-name .nickname-control input:focus { outline: 3px solid rgba(8,127,140,.18); outline-offset: 1px; border-color: var(--teal); }
.onboarding-name .form-help { margin-top: 2px; }
.picker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 4px 0 12px; }
.picker-heading strong { font-size: .9rem; }
.picker-heading span { color: #657983; font-size: .68rem; font-weight: 800; }
.avatar-picker--onboarding { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.avatar-picker--onboarding .avatar-option { min-height: 128px; }
.show-explorers-button,
.builder-skip {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  padding: 10px;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 850;
}
.show-explorers-button { margin-top: 8px; border: 1px dashed #a7c8ca; border-radius: 10px; background: #f5fbfa; }
.theme-picker--onboarding { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.theme-picker--onboarding .theme-option { min-height: 96px; font-size: .75rem; }
.theme-picker--onboarding .theme-option > span { width: 40px; height: 40px; }
.builder-fairness-note {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  color: #244d39;
  background: #eaf6ef;
}
.builder-fairness-note > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; }
.builder-fairness-note strong { font-size: .82rem; }
.builder-fairness-note p { margin: 3px 0 0; color: #4b6857; font-size: .73rem; line-height: 1.45; }
.picker-heading--rewards { margin-top: 28px; }
.builder-reward-teaser { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.builder-reward-teaser > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 6px 10px;
  border: 1px solid #d6e2df;
  border-radius: 12px;
  color: #405968;
  background: #f1f5f3;
  text-align: center;
}
.reward-teaser__week { position: absolute; top: 6px; left: 7px; color: #657983; font-size: .56rem; font-weight: 900; }
.reward-teaser__silhouette { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #dbe5e1; }
.reward-teaser__silhouette .collectible-art { width: 40px; height: 40px; filter: grayscale(1); opacity: .4; }
.reward-teaser__silhouette::after { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #62767e; font-size: .58rem; content: "?"; }
.builder-reward-teaser strong { display: block; overflow-wrap: anywhere; font-size: .64rem; line-height: 1.2; }
.builder-screen-actions {
  position: sticky;
  z-index: 8;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(110px,.55fr) minmax(190px,1fr);
  gap: 12px;
  width: min(100%, 640px);
  margin: auto auto 0;
  padding: 14px;
  border: 1px solid rgba(184,207,208,.82);
  border-radius: 14px;
  background: rgba(249,252,251,.94);
  box-shadow: 0 -10px 28px rgba(23,50,77,.1);
  backdrop-filter: blur(12px);
}
.builder-screen-actions .button { min-height: 54px; }
.builder-screen-actions--single { grid-template-columns: 1fr; }
.builder-skip { width: min(100%,640px); margin: 8px auto 0; font-size: .75rem; }
.builder-skip:disabled { opacity: .45; }

.explorer-reveal {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  place-items: center;
  padding: 84px 22px 48px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 23%, rgba(242,201,76,.34), transparent 25%),
    linear-gradient(165deg, #17324d 0%, #0c6570 64%, #6dbfba 100%);
}
.reveal-brand { position: absolute; z-index: 4; top: 24px; left: clamp(20px,5vw,62px); color: #fff; }
.reveal-card { position: relative; z-index: 5; display: grid; justify-items: center; width: min(100%, 620px); text-align: center; }
.reveal-kicker { padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; color: #ffe385; background: rgba(7,47,59,.38); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.reveal-avatar { position: relative; display: grid; place-items: center; width: 220px; height: 220px; margin: 24px 0 18px; }
.reveal-avatar__pulse { position: absolute; z-index: -1; inset: 2px; border: 2px solid rgba(255,255,255,.26); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.055), 0 0 65px rgba(242,201,76,.22); animation: builder-ring 2.6s ease-in-out infinite; }
.reveal-card h1 { max-width: 620px; margin: 0; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.reveal-card > p { max-width: 500px; margin: 18px 0 0; color: #d8eef0; line-height: 1.55; }
.reveal-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(100%, 520px); margin: 24px 0 0; border-block: 1px solid rgba(255,255,255,.2); }
.reveal-stats > div { display: grid; gap: 2px; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.18); }
.reveal-stats > div:last-child { border-right: 0; }
.reveal-stats strong { color: #ffe078; font-size: 1.35rem; }
.reveal-stats span { color: #d6e9eb; font-size: .65rem; }
.reveal-identity { display: flex; align-items: center; gap: 8px; margin: 15px 0 22px; color: #cfe5e7; font-size: .72rem; }
.reveal-identity strong { color: #fff; }
.reveal-theme-dot { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--theme-swatch); }
.button--launch { min-width: min(100%,320px); min-height: 58px; color: var(--ink); background: var(--yellow); box-shadow: 0 14px 30px rgba(7,34,44,.3); }
.button--launch:hover:not(:disabled) { background: #ffe17b; }
.reveal-island { position: absolute; z-index: 1; width: min(720px,70vw); right: -10%; bottom: -18%; opacity: .18; transform: rotate(-7deg); }
.reveal-island .adventure-scene { min-height: 420px; }
.reveal-sky span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); animation: builder-drift 7s ease-in-out infinite alternate; }
.reveal-sky span:nth-child(1) { width: 180px; height: 180px; left: -70px; top: 20%; }
.reveal-sky span:nth-child(2) { width: 78px; height: 78px; right: 8%; top: 18%; animation-delay: -2s; }
.reveal-sky span:nth-child(3) { width: 28px; height: 28px; left: 18%; top: 12%; background: var(--yellow); animation-delay: -3s; }
.reveal-sky span:nth-child(4) { width: 42px; height: 42px; right: 20%; bottom: 14%; animation-delay: -5s; }

.starter-coach {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: start;
  gap: 13px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #e3cb69;
  border-radius: 12px;
  background: linear-gradient(135deg,#fff9dc,#fffdf3);
  box-shadow: 0 8px 18px rgba(134,92,11,.08);
}
.starter-coach__number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-weight: 950; box-shadow: 0 5px 12px rgba(134,92,11,.16); }
.starter-coach > div { display: grid; gap: 4px; }
.starter-coach strong { font-size: .88rem; }
.starter-coach p { margin: 0; color: var(--ink-soft); font-size: .75rem; line-height: 1.45; }
.starter-coach__dismiss { min-width: 52px; min-height: 44px; border: 0; border-radius: 8px; color: var(--teal-dark); background: #fff; font-size: .72rem; font-weight: 900; }

@keyframes builder-content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes builder-ring { 50% { transform: scale(1.035); opacity: .72; } }
@keyframes builder-drift { to { transform: translate3d(7px,-9px,0); } }

@media (max-width: 960px) {
  .builder-screen-layout { grid-template-columns: 1fr; }
  .builder-stage { position: relative; min-height: 470px; padding: 48px 24px 30px; }
  .builder-stage__copy h1 { max-width: 620px; font-size: clamp(2.2rem,7vw,3.8rem); }
  .builder-stage__portrait { width: 184px; height: 184px; margin-top: 24px; }
  .avatar--hero { width: 146px; height: 146px; }
  .builder-stage__identity { margin-top: 12px; }
  .builder-stage__island { width: 58%; bottom: -25%; }
  .builder-workbench { min-height: 560px; padding: 54px 24px 28px; }
}

@media (max-width: 560px) {
  .builder-screen-header { min-height: 60px; padding: 10px 16px; }
  .builder-screen-progress strong { top: 12px; right: 16px; }
  .builder-stage { min-height: 280px; padding: 28px 18px 14px; }
  .builder-stage__copy h1 { max-width: 330px; margin-top: 6px; font-size: 1.45rem; line-height: 1; }
  .builder-stage__portrait { width: 100px; height: 100px; margin-top: 9px; }
  .avatar--hero { width: 82px; height: 82px; }
  .avatar--hero .avatar__accessory { width: 34px; height: 34px; }
  .builder-stage__identity { width: min(100%,280px); margin-top: 2px; padding: 7px 12px; }
  .builder-stage__identity strong { font-size: 1rem; }
  .builder-stage__island { width: 82%; right: -24%; bottom: -31%; }
  .builder-workbench { padding: 34px 16px 22px; }
  .builder-step-nav { margin-bottom: 18px; }
  .builder-step-nav__item { min-height: 50px; padding: 8px; }
  .builder-copy h2 { font-size: 1.75rem; }
  .builder-copy p { font-size: .86rem; }
  .onboarding-name { margin: 15px 0 21px; padding: 13px 12px; }
  .avatar-picker--onboarding { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .avatar-picker--onboarding .avatar-option { min-height: 118px; }
  .theme-picker--onboarding { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .theme-picker--onboarding .theme-option { min-height: 82px; }
  .builder-reward-teaser { gap: 7px; }
  .builder-reward-teaser > div { min-height: 88px; padding: 10px 4px 8px; }
  .reward-teaser__silhouette { width: 40px; height: 40px; }
  .reward-teaser__silhouette .collectible-art { width: 34px; height: 34px; }
  .builder-screen-actions {
    position: static;
    grid-template-columns: minmax(92px,.45fr) minmax(170px,1fr);
    gap: 8px;
    margin-top: 24px;
  }
  .builder-screen-actions.builder-screen-actions--single { grid-template-columns: 1fr; }
  .builder-screen-actions .button { min-height: 52px; padding-inline: 12px; font-size: .8rem; }
  .builder-screen-actions--single .button { width: 100%; }
  .explorer-reveal { padding: 76px 18px 36px; }
  .reveal-card h1 { font-size: clamp(2.25rem,12vw,3.5rem); }
  .reveal-avatar { width: 158px; height: 158px; margin: 18px 0 14px; }
  .reveal-stats { margin-top: 19px; }
  .reveal-stats > div { padding: 11px 5px; }
  .reveal-stats strong { font-size: 1.15rem; }
  .reveal-identity { margin-bottom: 18px; }
  .reveal-island { width: 110vw; right: -48%; bottom: -20%; }
  .starter-coach { grid-template-columns: 38px minmax(0,1fr); }
  .starter-coach__number { width: 36px; height: 36px; }
  .starter-coach__dismiss { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-art::before,
  .builder-stage__sky span,
  .builder-stage__ring,
  .reveal-avatar__pulse,
  .reveal-sky span { animation: none !important; }
}

/* Preserve breathing room around the mobile mission status. */
@media (max-width: 760px) {
  .run-status {
    min-height: 68px;
    padding: 8px 10px 16px;
  }
  .run-status__meter { bottom: 6px; }
  .run-status__reward-icon,
  .game-art.run-status__reward-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .game-layout { padding-top: 28px; }
}

/* 2026.16 — sixteen-mission launch map. */
.island-map .map-marker,
.island-map .map-marker__icon { width: 36px; height: 36px; }
.island-map .map-marker strong { right: -4px; bottom: -4px; width: 18px; height: 18px; font-size: .55rem; }
.island-map .map-marker small { top: 36px; }
.map-marker--week-1 { top: 80%; left: 10%; }
.map-marker--week-2 { top: 82%; left: 35%; }
.map-marker--week-3 { top: 78%; right: 12%; left: auto; }
.map-marker--week-4 { top: 68%; right: 5%; left: auto; }
.map-marker--week-5 { top: 57%; right: 11%; left: auto; }
.map-marker--week-6 { top: 55%; left: 47%; right: auto; }
.map-marker--week-7 { top: 59%; left: 22%; }
.map-marker--week-8 { top: 48%; left: 7%; right: auto; }
.map-marker--week-9 { top: 36%; left: 18%; right: auto; }
.map-marker--week-10 { top: 34%; left: 44%; }
.map-marker--week-11 { top: 31%; right: 12%; }
.map-marker--week-12 { top: 20%; right: 4%; }
.map-marker--week-13 { top: 9%; right: 16%; }
.map-marker--week-14 { top: 11%; left: 43%; }
.map-marker--week-15 { top: 16%; left: 17%; }
.map-marker--week-16 { top: 2%; left: 46%; }

@media (max-width: 470px) {
  .island-map .map-marker,
  .island-map .map-marker__icon { width: 32px; height: 32px; }
  .island-map .map-marker strong { width: 17px; height: 17px; font-size: .51rem; }
  .island-map .map-marker small { top: 32px; font-size: .58rem; }
}

.island-celebrating { overflow: hidden; }
.app-frame--committing .activity-column {
  position: relative;
  z-index: 2;
  animation: commit-stage-focus 720ms ease-in-out infinite alternate;
}
.app-frame--committing .game-layout::after {
  content: "";
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: rgba(12, 37, 52, .08);
  backdrop-filter: saturate(.82);
}
@keyframes commit-stage-focus {
  to { box-shadow: 0 0 0 5px rgba(242, 201, 76, .24), 0 24px 64px rgba(18, 73, 79, .22); }
}

.interaction-celebrate,
.interaction-reflect { position: relative; z-index: 2; overflow: visible; }
.interaction-celebrate { animation: interaction-celebrate 620ms cubic-bezier(.2, .9, .2, 1.25) both !important; }
.interaction-reflect { animation: interaction-reflect 340ms ease both !important; }
@keyframes interaction-celebrate {
  0% { transform: scale(.985); }
  42% { transform: translateY(-4px) scale(1.025); box-shadow: 0 0 0 5px rgba(242, 201, 76, .22), 0 16px 32px rgba(20, 103, 91, .16); }
  100% { transform: none; }
}
@keyframes interaction-reflect {
  35% { transform: translateX(-3px); }
  68% { transform: translateX(3px); }
  100% { transform: none; }
}
.choice-burst,
.moment-banner__burst {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.choice-burst i,
.moment-banner__burst i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: choice-burst-out 660ms var(--burst-delay) ease-out both;
}
.choice-burst i:nth-child(3n + 2),
.moment-banner__burst i:nth-child(3n + 2) { background: var(--teal); }
.choice-burst i:nth-child(3n + 3),
.moment-banner__burst i:nth-child(3n + 3) { background: var(--coral); }
@keyframes choice-burst-out {
  from { opacity: 1; transform: rotate(var(--burst-angle)) translateY(0) scale(.3); }
  to { opacity: 0; transform: rotate(var(--burst-angle)) translateY(-58px) scale(1); }
}
.button--ready { position: relative; isolation: isolate; animation: ready-button-pulse 820ms ease both; }
.button--ready::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px;
  border: 3px solid rgba(8, 127, 140, .32);
  border-radius: inherit;
  animation: ready-button-ring 900ms ease-out both;
}
@keyframes ready-button-pulse { 45% { transform: translateY(-2px) scale(1.018); box-shadow: 0 13px 28px rgba(8, 127, 140, .25); } }
@keyframes ready-button-ring { to { opacity: 0; transform: scale(1.1); } }

.moment-banner {
  position: fixed;
  z-index: 1750;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: min(430px, calc(100vw - 28px));
  min-height: 78px;
  padding: 10px 18px 10px 12px;
  overflow: visible;
  border: 2px solid rgba(242, 201, 76, .88);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #17324d, #087f8c 72%, #18906e);
  box-shadow: 0 18px 46px rgba(10, 43, 61, .34), 0 0 0 6px rgba(242, 201, 76, .14);
  animation: moment-banner-in 1750ms cubic-bezier(.2, .9, .2, 1) both;
}
.moment-banner__art { width: 56px; height: 56px; filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .2)); }
.moment-banner > div { display: grid; gap: 3px; }
.moment-banner > div span { color: #ffeba1; font-size: .69rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.moment-banner > div strong { font-size: 1rem; line-height: 1.2; }
@keyframes moment-banner-in {
  0% { opacity: 0; transform: translate(-50%, -28px) scale(.9); }
  14%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(.97); }
}

.reward-cinematic {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 237, 147, .32), transparent 28%),
    linear-gradient(145deg, rgba(8, 127, 140, .98), rgba(23, 50, 77, .99) 62%, rgba(18, 61, 71, .99));
  cursor: pointer;
  touch-action: manipulation;
  animation: reward-cinematic-in 420ms ease both;
}
.reward-cinematic--leaving { animation: reward-cinematic-out 260ms ease both; }
.reward-cinematic__sunburst {
  position: absolute;
  width: min(110vmax, 1100px);
  aspect-ratio: 1;
  opacity: .24;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.52) 0 7deg, transparent 7deg 18deg);
  mask-image: radial-gradient(circle, #000 0 42%, transparent 72%);
  animation: cinematic-sun-spin 16s linear infinite;
}
.reward-cinematic__stage {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(620px, calc(100vw - 32px));
  text-align: center;
  animation: cinematic-stage-in 780ms cubic-bezier(.12, .9, .18, 1.24) both;
}
.reward-cinematic__eyebrow {
  padding: 7px 13px;
  border: 1px solid rgba(255, 240, 166, .62);
  border-radius: 999px;
  color: #ffefac;
  background: rgba(23, 50, 77, .48);
  box-shadow: 0 6px 18px rgba(0,0,0,.13);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.game-art.reward-cinematic__graphic {
  width: clamp(190px, 26vw, 280px);
  height: clamp(190px, 26vw, 280px);
  margin: -2px 0 -8px;
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.3)) drop-shadow(0 0 28px rgba(255,225,109,.5));
  animation: cinematic-reward-pop 1050ms cubic-bezier(.12, .9, .18, 1.25) both;
}
.reward-cinematic--chest .reward-cinematic__graphic {
  width: clamp(230px, 31vw, 340px);
  height: clamp(230px, 31vw, 340px);
  animation: cinematic-chest-open 1150ms cubic-bezier(.15, .9, .18, 1.2) both;
}
.reward-cinematic__title {
  max-width: 620px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 5px 20px rgba(0,0,0,.25);
  animation: cinematic-copy-in 620ms 360ms ease both;
}
.reward-cinematic__delta {
  min-width: 180px;
  padding: 10px 18px;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 999px;
  color: #17324d;
  background: #fff4bd;
  box-shadow: 0 12px 30px rgba(0,0,0,.18), inset 0 -3px 0 rgba(190,145,17,.18);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 950;
  animation: cinematic-delta-in 620ms 610ms cubic-bezier(.2,.9,.2,1.25) both;
}
.reward-cinematic__delta.negative { color: #7d2d27; background: #fff0ee; }
.reward-cinematic__delta.neutral { color: #0d6671; background: #e7f8f6; }
.reward-cinematic__skip {
  position: absolute;
  z-index: 6;
  bottom: max(18px, env(safe-area-inset-bottom));
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  animation: cinematic-copy-in 400ms 900ms ease both;
}
.reward-cinematic__shockwaves,
.reward-cinematic__particles {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.reward-cinematic__shockwaves i {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border: 5px solid rgba(255, 226, 105, .72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cinematic-shockwave 1200ms ease-out both;
}
.reward-cinematic__shockwaves i:nth-child(2) { animation-delay: 170ms; }
.reward-cinematic__shockwaves i:nth-child(3) { animation-delay: 340ms; }
.reward-cinematic__particles i {
  position: absolute;
  width: 11px;
  height: 17px;
  border-radius: 3px;
  background: #f2c94c;
  animation: cinematic-particle 1350ms var(--fx-delay) cubic-bezier(.14,.76,.25,1) both;
}
.reward-cinematic__particles i:nth-child(4n + 2) { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.reward-cinematic__particles i:nth-child(4n + 3) { background: #f68b79; }
.reward-cinematic__particles i:nth-child(4n + 4) { width: 8px; height: 13px; background: #70d8bd; }
.flying-token {
  position: fixed;
  z-index: 2050;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff3aa;
  border-radius: 50%;
  color: #805d08;
  background: linear-gradient(145deg, #fff08c, #e6b52b);
  box-shadow: 0 5px 12px rgba(91, 62, 0, .3);
  font-size: .72rem;
  font-weight: 950;
  pointer-events: none;
}
.money-hud .balance-item--spotlight {
  z-index: 10;
  animation: total-cash-spotlight 1500ms cubic-bezier(.2,.9,.2,1) both !important;
}
.money-hud .balance-item--spotlight::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 3px solid #f2c94c;
  border-radius: 12px;
  animation: total-cash-ring 1200ms ease-out both;
}
@keyframes reward-cinematic-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reward-cinematic-out { to { opacity: 0; transform: scale(1.025); } }
@keyframes cinematic-sun-spin { to { transform: rotate(360deg); } }
@keyframes cinematic-stage-in {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes cinematic-reward-pop {
  0% { opacity: 0; transform: translateY(50px) scale(.22) rotate(-14deg); }
  52% { opacity: 1; transform: translateY(-10px) scale(1.13) rotate(5deg); }
  72% { transform: translateY(3px) scale(.96) rotate(-2deg); }
  100% { transform: none; }
}
@keyframes cinematic-chest-open {
  0% { opacity: 0; transform: translateY(78px) scale(.18) rotate(-9deg); filter: brightness(.45) drop-shadow(0 12px 12px rgba(0,0,0,.2)); }
  38% { opacity: 1; transform: translateY(0) scale(.92) rotate(4deg); }
  52% { transform: scale(1.2) rotate(-3deg); filter: brightness(1.55) drop-shadow(0 0 58px rgba(255,230,111,.95)); }
  68% { transform: scale(.96) rotate(2deg); }
  82% { transform: scale(1.07) rotate(-1deg); }
  100% { transform: none; filter: drop-shadow(0 26px 22px rgba(0,0,0,.3)) drop-shadow(0 0 28px rgba(255,225,109,.5)); }
}
@keyframes cinematic-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cinematic-delta-in { from { opacity: 0; transform: scale(.45) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes cinematic-shockwave {
  0% { opacity: .8; transform: translate(-50%, -50%) scale(.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.6); }
}
@keyframes cinematic-particle {
  0% { opacity: 0; transform: rotate(var(--fx-angle)) translateY(0) scale(.25); }
  18% { opacity: 1; }
  74% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--fx-angle)) translateY(calc(var(--fx-distance) * -1)) rotate(540deg) scale(.78); }
}
@keyframes total-cash-spotlight {
  0% { transform: scale(1); }
  28% { color: #17324d; background: #fff2a7; box-shadow: 0 0 0 7px rgba(242,201,76,.24), 0 12px 32px rgba(148,105,5,.22); transform: translateY(-4px) scale(1.045); }
  58% { background: #fff9d8; transform: translateY(-2px) scale(1.022); }
  100% { transform: none; }
}
@keyframes total-cash-ring { to { opacity: 0; transform: scale(1.12); } }

@media (max-width: 600px) {
  .game-art.reward-cinematic__graphic { width: 180px; height: 180px; }
  .reward-cinematic--chest .reward-cinematic__graphic { width: 220px; height: 220px; }
  .reward-cinematic__stage { gap: 8px; }
  .reward-cinematic__title { max-width: 330px; font-size: clamp(2rem, 10vw, 2.8rem); }
  .reward-cinematic__delta { padding: 8px 14px; }
  .reward-cinematic__particles i { width: 8px; height: 13px; }
  .moment-banner { grid-template-columns: 48px minmax(0, 1fr); min-height: 70px; padding: 9px 14px 9px 10px; }
  .moment-banner__art { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-frame--committing .activity-column,
  .interaction-celebrate,
  .interaction-reflect,
  .button--ready,
  .button--ready::after,
  .moment-banner,
  .reward-cinematic,
  .reward-cinematic__sunburst,
  .reward-cinematic__stage,
  .reward-cinematic__graphic,
  .reward-cinematic__title,
  .reward-cinematic__delta,
  .reward-cinematic__skip,
  .reward-cinematic__shockwaves i,
  .reward-cinematic__particles i,
  .money-hud .balance-item--spotlight,
  .money-hud .balance-item--spotlight::before {
    animation: none !important;
  }
  .reward-cinematic__sunburst,
  .reward-cinematic__shockwaves,
  .reward-cinematic__particles,
  .choice-burst,
  .moment-banner__burst { display: none !important; }
  .moment-banner { opacity: 1; transform: translateX(-50%); }
}

/* 2026.23 post-launch hardening: tablet outcomes, durable controls, and clear capacity. */
.text-button--small {
  min-height: 44px;
  padding: 10px 8px;
}

.slot-capacity {
  display: grid;
  gap: 5px;
  max-width: 760px;
  margin: 20px auto 0;
  padding: 14px 16px;
  border: 1px solid #b9dfe0;
  border-radius: 10px;
  color: var(--ink);
  background: #effafa;
  text-align: left;
}
.slot-capacity strong { color: var(--teal-dark); }
.slot-capacity p { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }

.toast {
  position: fixed;
  z-index: 50;
  top: 70px;
  right: 16px;
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
  text-align: left;
}
.toast span { min-width: 0; }
.toast button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -8px -9px -8px 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
}
.toast button:hover { background: rgba(255,255,255,.12); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }
.activity-column:focus { outline: none; }
.sound-toggle { flex-basis: 44px; width: 44px; height: 44px; }

@media (max-width: 1024px) {
  .money-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-hud .balance-item--summary,
  .money-hud .balance-item--summary:last-child { grid-column: auto; }

  .activity-column,
  .outcome-layout,
  .outcome-card,
  .outcome-card__body,
  .outcome-card__heading,
  .outcome-card__heading > div,
  .consequence-stage,
  .consequence-stage__copy { min-width: 0; max-width: 100%; }
  .outcome-card { overflow: visible; }
  .consequence-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .consequence-stage__scene { width: min(100%, 360px); margin-inline: auto; }
  .consequence-stage__copy { text-align: center; }
  .consequence-stage__copy strong { max-width: 100%; margin-inline: auto; overflow-wrap: anywhere; }
  .outcome-card__heading { align-items: flex-start; }
  .outcome-card__heading h1,
  .outcome-card__heading p,
  .outcome-facts strong,
  .equation-card strong { overflow-wrap: anywhere; }
  .outcome-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-facts > div:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .money-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-hud .balance-item--summary { grid-column: auto; }
}

@media (max-width: 760px) {
  .sound-toggle { flex-basis: 44px; width: 44px; height: 44px; }
  .toast { top: 66px; right: 10px; left: 10px; max-width: none; }
  .outcome-card__heading { gap: 10px; }
}

@media (max-width: 470px) {
  .outcome-facts { grid-template-columns: minmax(0, 1fr); }
  .outcome-facts > div:nth-child(3) { grid-column: auto; }
}

/* Review status remains visible when the compact progress meter is hidden. */
.source-review-status { margin: 0; padding: 8px 16px; color: #17324d; background: #fff3cf; font-size: .85rem; line-height: 1.5; text-align: center; }

.media-review-note { padding: 12px; font-size: .9rem; line-height: 1.5; color: #17324d; background: #fff3cf; }
.media-review-note a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px; text-decoration: underline; }

/* Review QA: keep help and navigation targets usable at every breakpoint. */
.topbar-link { min-width: 44px; min-height: 44px; }
.info-button, .quiz-explanation-control .info-button { min-width: 44px; min-height: 44px; }

/* Local adult review controls, preserving narrow layouts and visible focus. */
.media-review-note input[type="file"] { display:block; width:100%; min-width:0; max-width:100%; min-height:44px; margin:8px 0; }
.media-review-note input[type="file"]::file-selector-button { min-height:44px; margin-right:8px; }
.media-review-note { overflow-wrap:anywhere; }
.media-review-note input:focus-visible { outline:3px solid #087f8c; outline-offset:3px; }

/* Full local practice ledger, including non-cash actions. */
.printable-ledger { margin-block: 20px; font-size: 14px; overflow-wrap: anywhere; }
.printable-ledger table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.printable-ledger th, .printable-ledger td { padding: 8px 4px; border-bottom: 1px solid #738481; text-align: left; vertical-align: top; }
.printable-ledger th:nth-child(1) { width: 12%; }
.printable-ledger th:nth-child(2) { width: 50%; }
.printable-ledger th:nth-child(3), .printable-ledger th:nth-child(4) { width: 19%; }
@page { margin: 14mm; }
@media print {
  body > :not(#app), .app-frame > :not(.overlay), .drawer > :not(.printable-ledger) { display: none !important; }
  html, body, #app, .app-frame, .overlay, .drawer {
    display: block !important; position: static !important; overflow: visible !important;
    width: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
    transform: none !important; background: white !important;
  }
  .printable-ledger, .printable-ledger * { color: #000 !important; background: #fff !important; }
  .printable-ledger { position: static; width: 100%; margin: 0; font: 10pt/1.4 sans-serif; }
  .printable-ledger tr { break-inside: avoid; }
  .printable-ledger thead { display: table-header-group; }
}

/* Help content exists in the DOM and opens with pointer or keyboard. */
.help-disclosure { display:inline-flex; position:relative; align-items:center; }
.help-disclosure__text:not([hidden]) { display:block; position:absolute; z-index:30; top:100%; right:0; width:min(260px,70vw); padding:14px; background:#17324d; color:#fff; border-radius:12px; font-size:14px; line-height:1.5; box-shadow:0 4px 16px #0003; }

.checkpoint-list { margin:12px 0; font-size:14px; line-height:1.5; }
.checkpoint-list summary { cursor:pointer; min-height:44px; padding:12px 4px; }
.checkpoint-list li { margin:6px 0; }

.help-disclosure .info-button::after { display:none; }

/* Follow-up reflow: the page can be narrower than 320 CSS px at 200% zoom.
   Wrap content instead of hiding overflow or shrinking the font. */
html { overflow-wrap: anywhere; }
#app, main, section, aside, .drawer, .choice-card, .activity-footer, .topbar { min-width: 0; max-width: 100%; }
input, select, textarea, video { min-width: 0; max-width: 100%; }
.button { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .topbar, .activity-header, .activity-footer, .drawer-header { flex-wrap: wrap; gap: 10px; }
  .topbar { padding-inline: 10px; }
  .choice-grid, .decision-grid, .money-hud, .outcome-facts, .outcome-balances, .reveal-stats, .builder-screen-actions { grid-template-columns: minmax(0, 1fr); }
  .activity-footer .button, .activity-footer .step-count { width: 100%; min-width: 0; }
  .mission-arc { flex-wrap: wrap; }
  .mission-arc__step { min-width: 0; }
  .choice-card__illustration { max-width: 100%; }
}

.late-island-memories { margin-block: 12px; font-size: .85rem; }
.late-island-memories summary { cursor: pointer; padding-block: 12px; font-weight: 800; }
.late-island-memories ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.late-island-memories li { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.late-island-memory__art { width: 44px; height: 44px; }
.late-island-memories strong, .late-island-memories small { display: block; }
.late-island-memories small { margin-top: 4px; line-height: 1.5; }
@media (max-width: 400px) {
  .game-layout { padding-inline: 8px; }
  .activity-column { padding: 8px; }
  .topbar { position: static; height: auto; min-height: 56px; }
  .topbar-actions { flex-wrap: wrap; margin-left: 0; }
  .run-status { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 8px 18px; }
  .run-status__reward strong { max-width: none; }
  .choice-card, .choice-card--career { display: flex; flex-direction: column; align-items: flex-start; padding: 10px; gap: 8px; }
  .choice-card__content { width: 100%; min-width: 0; }
  .context-rail { grid-template-columns: minmax(0,1fr); }
  .learning-goal { grid-template-columns: minmax(0,1fr); }
  .review-equation { grid-template-columns: minmax(0,1fr); }
  .outcome-card__heading { flex-direction: column; }
  .activity-footer { position: static; margin-inline: 0; padding-inline: 0; }
}

.graduation-certificate {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  margin: 24px 0;
  width: 100%;
  min-height: 470px;
  aspect-ratio: 11 / 8.5;
  overflow: hidden;
  border: 4px solid #f45c1b;
  border-radius: 17px;
  background: #fffaf0;
  color: #153454;
  text-align: center;
  font-family: Montserrat,"Avenir Next",Arial,sans-serif;
  box-shadow: 0 18px 48px rgba(12,48,72,.18);
}
.graduation-certificate::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 8px;
  border: 1px solid #f6b51a;
  border-radius: 12px;
  pointer-events: none;
}
.graduation-certificate__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.graduation-certificate__copy { position: relative; z-index: 1; padding: 5.6cqw 5% 0; }
.graduation-certificate__brand {
  margin: 0;
  text-transform: uppercase;
}
.graduation-certificate__brand span { display: block; }
.graduation-certificate__brand span:first-child { font-size: clamp(10px,1.3cqw,14px); font-weight: 700; letter-spacing: .18em; }
.graduation-certificate__brand span:last-child { margin-top: .65cqw; color: #068f98; font-size: clamp(9px,1.04cqw,11px); font-weight: 500; letter-spacing: .22em; }
.graduation-certificate h1 { margin: 3.25cqw 0 0; font-family: Georgia,serif; font-size: clamp(26px,3.85cqw,40px); line-height: 1.12; font-weight: 400; }
.graduation-certificate h1 strong { display: block; color: #f45c1b; font-size: clamp(33px,5.1cqw,53px); line-height: 1.08; font-weight: 700; }
.graduation-certificate__presented { margin: 2.45cqw 0 .95cqw; color: #068f98; font-size: clamp(10px,1.28cqw,13px); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.graduation-certificate__name { margin: 0 auto 1.9cqw; max-width: 95%; font-size: clamp(31px,5.4cqw,58px); line-height: 1.06; font-weight: 700; overflow-wrap: anywhere; }
.graduation-certificate__name--long { font-size: clamp(25px,4.3cqw,47px); }
.graduation-certificate__name::after { content: ""; display: block; width: 24%; max-width: 220px; margin: 1.25cqw auto 0; border-bottom: 2px solid #f6b51a; }
.graduation-certificate__achievement { margin: 0; font-size: clamp(12px,1.68cqw,18px); line-height: 1.5; font-weight: 500; }
.graduation-certificate__badge { display: inline-block; margin: 2.15cqw 0 0; padding: 1cqw 3.4cqw; border-radius: 999px; background: #f6b51a; color: #153454; font-size: clamp(11px,1.48cqw,16px); font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.graduation-certificate__level { margin: 1cqw 0 0; font-size: clamp(10px,1.18cqw,13px); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.graduation-certificate__instructor { margin: .85cqw 0 0; font-size: clamp(10px,1.32cqw,14px); font-weight: 500; }
.graduation-certificate__disclaimer { position: absolute; z-index: 1; bottom: 3%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 88%; margin: 0; padding: .6cqw 2cqw; border-radius: 999px; background: #fffaf0; font-size: clamp(9px,1.08cqw,12px); }
.certificate-revealed { overflow: hidden; }
.certificate-reveal { position: fixed; z-index: 10000; inset: 0; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; overflow: auto; padding: 24px; background: radial-gradient(circle at 50% 28%,#20677f 0%,#0c304b 62%,#071d33 100%); }
.certificate-reveal::before { content: ""; position: fixed; inset: -40%; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 50%,rgba(255,210,68,.06) 0deg 9deg,transparent 9deg 20deg); animation: certificate-rays 28s linear infinite; }
.certificate-reveal__stage { position: relative; z-index: 1; width: min(100%,970px); min-width: 0; margin: auto; text-align: center; }
.certificate-reveal__eyebrow { margin: 0 0 12px; color: #fff; font-size: clamp(16px,2.4vw,27px); font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.certificate-reveal .graduation-certificate { margin: 0; min-height: 0; animation: certificate-pop 750ms cubic-bezier(.2,1.3,.28,1) both; box-shadow: 0 26px 70px rgba(0,0,0,.4),0 0 0 8px rgba(255,218,91,.16); }
.certificate-reveal__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.certificate-reveal__actions .button { min-width: 200px; }
.certificate-reveal__confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.certificate-reveal__piece { position: absolute; left: var(--x); top: -8%; width: 11px; height: 18px; border-radius: 2px; background: #f9b51b; transform: rotate(var(--rotation)); animation: certificate-fall var(--duration) ease-in var(--delay) both; }
.certificate-reveal__piece:nth-child(3n) { background: #fc6535; }
.certificate-reveal__piece:nth-child(4n) { background: #54d5cb; }
.certificate-reveal__piece--star { width: auto; height: auto; background: none!important; color: #ffe078; font-size: 30px; line-height: 1; text-shadow: 0 0 14px rgba(255,226,110,.7); }
@keyframes certificate-pop { from { opacity: 0; transform: translateY(40px) scale(.78) rotate(-2deg); } 65% { opacity: 1; transform: translateY(-7px) scale(1.035) rotate(.4deg); } to { opacity: 1; transform: none; } }
@keyframes certificate-fall { from { opacity: 0; transform: translateY(-10vh) rotate(var(--rotation)); } 10% { opacity: 1; } to { opacity: 0; transform: translateY(115vh) rotate(calc(var(--rotation) + 620deg)); } }
@keyframes certificate-rays { to { transform: rotate(360deg); } }
@media (max-width: 650px) {
  .certificate-reveal { padding: 12px; }
  .graduation-certificate, .certificate-reveal .graduation-certificate { width: 100%; max-width: 100%; height: 540px; min-height: 0; aspect-ratio: auto; }
  .graduation-certificate__copy { padding-top: 34px; }
  .graduation-certificate__brand span:last-child { margin-top: 5px; }
  .graduation-certificate h1 { margin-top: 26px; }
  .graduation-certificate__presented { margin: 17px 0 7px; }
  .graduation-certificate__name { margin-bottom: 13px; }
  .graduation-certificate__name::after { margin-top: 10px; }
  .graduation-certificate__badge { margin-top: 18px; padding: 10px 14px; }
  .graduation-certificate__level { margin-top: 12px; }
  .graduation-certificate__instructor { margin-top: 8px; }
  .graduation-certificate__disclaimer { white-space: normal; padding: 5px 12px; }
}
@media (max-width: 360px) {
  .graduation-certificate h1 { margin-top: 20px; }
  .graduation-certificate h1 strong { font-size: 28px; letter-spacing: -.015em; white-space: nowrap; }
  .graduation-certificate__presented { margin-top: 14px; }
  .graduation-certificate__name { font-size: 30px; }
  .graduation-certificate__name--long { font-size: 25px; }
  .graduation-certificate__achievement span { display: block; }
  .graduation-certificate__achievement br { display: none; }
  .graduation-certificate__badge { margin-top: 13px; }
  .graduation-certificate__level { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .certificate-reveal::before, .certificate-reveal__piece, .certificate-reveal .graduation-certificate { animation: none!important; }
  .certificate-reveal__piece { display: none; }
}
.printing-certificate .printable-ledger { display: none!important; }
#certificate-print-root { display: none; }
@media print {
  @page { size: letter landscape; margin: 0; }
  body.printing-certificate > #app { display: none!important; }
  body.printing-certificate > #certificate-print-root { display: block!important; position: fixed!important; inset: 0!important; width: 11in!important; height: 8.5in!important; margin: 0!important; padding: 0!important; overflow: hidden!important; background: #fff!important; visibility: visible!important; }
  body.printing-certificate * { visibility: hidden; }
  body.printing-certificate #certificate-print-root .graduation-certificate, body.printing-certificate #certificate-print-root .graduation-certificate * { visibility: visible; }
  body.printing-certificate #certificate-print-root .graduation-certificate { position: absolute; left: 0; top: 0; width: 11in; height: 8.5in; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Island Tycoon championship entry experience.
   This module intentionally owns only the first-run screen. */

.entry-shell {
  --entry-gold: #f7cf50;
  --entry-cream: #fff8de;
  --entry-night: #071b2d;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 440px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px clamp(28px, 4vw, 64px);
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
  overflow: clip;
  padding: 27px clamp(26px, 4vw, 64px) 30px;
  color: #fff;
  background: var(--entry-night);
}

.entry-world,
.entry-world__scene,
.entry-world__scene .island-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entry-world {
  z-index: -2;
  max-width: 100%;
  overflow: clip;
  contain: strict;
  background: #0a5f76;
}
.entry-world__scene { transform-origin: 58% 52%; }
.entry-world__scene .adventure-scene {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background-position: center 54%;
  background-size: cover;
  box-shadow: none;
  filter: saturate(1.12) contrast(1.03);
}

.entry-world__vignette {
  position: absolute;
  z-index: 10;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,17,31,.94) 0%, rgba(5,24,40,.82) 37%, rgba(5,26,41,.33) 68%, rgba(3,19,32,.72) 100%),
    linear-gradient(0deg, rgba(2,14,25,.88) 0%, transparent 42%, rgba(2,13,25,.38) 100%);
  transition: box-shadow .55s ease, background .55s ease;
}

.entry-world::after {
  position: absolute;
  z-index: 11;
  inset: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.entry-shell--power-spend .entry-world::after { opacity: 1; background: radial-gradient(circle at 27% 76%, rgba(247,207,80,.3), transparent 30%); }
.entry-shell--power-saved .entry-world::after { opacity: 1; background: radial-gradient(circle at 41% 67%, rgba(67,205,172,.27), transparent 31%); }
.entry-shell--power-invest .entry-world::after { opacity: 1; background: radial-gradient(circle at 56% 46%, rgba(101,190,255,.28), transparent 32%); }

.entry-world__mist {
  position: absolute;
  z-index: 12;
  width: 70vw;
  height: 30vh;
  border-radius: 50%;
  background: rgba(224,250,248,.17);
  filter: blur(45px);
  opacity: .65;
  pointer-events: none;
}
.entry-world__mist--one { top: 12%; left: -22%; animation: entry-mist-drift 18s ease-in-out infinite alternate; }
.entry-world__mist--two { right: -28%; bottom: 2%; animation: entry-mist-drift 22s -7s ease-in-out infinite alternate-reverse; }

.entry-fireflies { position: absolute; z-index: 14; inset: 0; pointer-events: none; }
.entry-fireflies i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff2a0;
  box-shadow: 0 0 7px 2px rgba(255,226,97,.68);
  animation: entry-firefly 5.8s ease-in-out infinite;
}
.entry-fireflies i:nth-child(1) { top: 19%; left: 52%; animation-delay: -.8s; }
.entry-fireflies i:nth-child(2) { top: 31%; left: 68%; animation-delay: -2.1s; }
.entry-fireflies i:nth-child(3) { top: 47%; left: 57%; animation-delay: -4.2s; }
.entry-fireflies i:nth-child(4) { top: 59%; left: 76%; animation-delay: -1.3s; }
.entry-fireflies i:nth-child(5) { top: 72%; left: 48%; animation-delay: -3.4s; }
.entry-fireflies i:nth-child(6) { top: 38%; left: 84%; animation-delay: -5s; }
.entry-fireflies i:nth-child(7) { top: 80%; left: 66%; animation-delay: -2.8s; }
.entry-fireflies i:nth-child(8) { top: 24%; left: 43%; animation-delay: -3.8s; }

.entry-world .adventure-scene__chest { right: 15%; bottom: 5%; width: min(18vw, 250px); }
.entry-world .adventure-scene__cabin { top: 8%; right: 23%; width: min(12vw, 175px); }
.entry-world .adventure-scene__compass { top: 14%; left: 56%; width: min(10vw, 145px); }
.entry-world .adventure-scene__crew {
  top: 10%;
  right: clamp(480px, 38vw, 590px);
  bottom: auto;
  left: auto;
  border-color: rgba(255,255,255,.4);
  background: rgba(5,27,42,.74);
  transform: rotate(-1.5deg);
}
.entry-world .adventure-scene__crew .explorer-art { width: 46px; height: 57px; }

.entry-camp-sign {
  position: absolute;
  z-index: 16;
  right: clamp(490px, 39vw, 610px);
  bottom: 25%;
  display: grid;
  gap: 2px;
  min-width: 178px;
  border: 2px solid rgba(255,238,178,.65);
  border-radius: 8px 8px 15px 15px;
  padding: 10px 15px 11px;
  color: #fff;
  background: linear-gradient(160deg, rgba(71,43,22,.95), rgba(33,24,21,.96));
  box-shadow: 0 10px 26px rgba(2,14,24,.4), inset 0 1px rgba(255,255,255,.18);
  transform: rotate(1.2deg);
  text-align: center;
}
.entry-camp-sign::before,
.entry-camp-sign::after {
  position: absolute;
  top: -19px;
  width: 2px;
  height: 20px;
  background: rgba(255,238,178,.7);
  content: "";
}
.entry-camp-sign::before { left: 25px; transform: rotate(9deg); }
.entry-camp-sign::after { right: 25px; transform: rotate(-9deg); }
.entry-camp-sign span { color: #ffe980; font-size: .58rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.entry-camp-sign strong { max-width: 220px; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }

.entry-topbar {
  position: relative;
  z-index: 100;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.entry-topbar .brand-mark { color: #fff; text-shadow: 0 2px 8px rgba(2,14,24,.35); }
.entry-skip {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(5,28,45,.44);
  font-size: .72rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}
.entry-skip:hover { background: rgba(5,28,45,.72); }

.entry-story {
  position: relative;
  z-index: 30;
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  width: min(100%, 680px);
  text-shadow: 0 3px 16px rgba(2,14,24,.42);
}
.entry-story .eyebrow { margin: 0; color: #ffe36f; font-size: .73rem; letter-spacing: .14em; }
.entry-story h1 {
  max-width: 650px;
  margin: 10px 0 15px;
  color: #fff;
  font-size: clamp(3.6rem, 5.6vw, 6rem);
  line-height: .91;
  letter-spacing: -.062em;
}
.entry-story__lead { max-width: 570px; margin: 0; color: #e4f1f2; font-size: clamp(.95rem, 1.3vw, 1.13rem); line-height: 1.55; }

.entry-guide {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 550px);
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,.24);
  border-left: 4px solid var(--entry-gold);
  border-radius: 14px;
  padding: 13px 15px 13px 12px;
  background: rgba(4,27,43,.62);
  box-shadow: 0 16px 34px rgba(1,12,22,.18);
  backdrop-filter: blur(12px);
}
.entry-guide__icon { align-self: center; width: 48px; height: 48px; filter: drop-shadow(0 6px 8px rgba(2,14,24,.35)); }
.entry-guide > div { display: grid; gap: 3px; }
.entry-guide span { color: #ffe476; font-size: .58rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.entry-guide strong { font-size: .88rem; }
.entry-guide p { margin: 0; color: #d5e8ea; font-size: .72rem; line-height: 1.4; }

.entry-journey-strip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #e7f2f3;
  background: rgba(3,24,39,.52);
  font-size: .66rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.entry-journey-strip span { display: inline-flex; align-items: baseline; gap: 4px; }
.entry-journey-strip strong { color: #ffe16b; font-size: .83rem; }
.entry-journey-strip i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.42); }

.entry-passport {
  position: relative;
  z-index: 40;
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,242,193,.74);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 34px);
  color: #19334b;
  background:
    radial-gradient(circle at 92% 8%, rgba(220,177,70,.2), transparent 22%),
    repeating-linear-gradient(0deg, rgba(116,84,34,.022) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, rgba(255,254,246,.98), rgba(246,238,211,.98));
  box-shadow: 0 30px 80px rgba(1,15,26,.38), inset 0 0 0 5px rgba(255,255,255,.33);
  transform: rotate(.35deg);
}
.entry-passport::after {
  position: absolute;
  right: -32px;
  bottom: -37px;
  width: 130px;
  height: 130px;
  border: 2px dashed rgba(143,92,37,.13);
  border-radius: 50%;
  content: "";
}
.entry-passport__topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.entry-passport__kicker { display: grid; gap: 2px; }
.entry-passport__kicker span { color: #0a7180; font-size: .68rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.entry-passport__kicker small { color: #697a80; font-size: .64rem; font-weight: 800; }
.entry-passport__stamp {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 2px dashed rgba(10,113,128,.45);
  border-radius: 50%;
  color: rgba(10,113,128,.72);
  font-size: .75rem;
  font-weight: 950;
  transform: rotate(-11deg);
}
.entry-passport h2 { margin: 16px 0 8px; color: #17324d; font-size: clamp(2.15rem, 3vw, 3rem); line-height: .96; letter-spacing: -.05em; }
.entry-passport__lead { margin: 0; color: #526775; font-size: .86rem; line-height: 1.5; }
.entry-passport__form { position: relative; z-index: 2; gap: 8px; margin-top: 18px; }
.entry-passport__form label { color: #17324d; }
.entry-passport__form input { min-height: 52px; border-color: #a9bec2; background: rgba(255,255,255,.9); }
.entry-passport__form .auth-field-help,
.entry-passport__form .auth-field-error { font-size: .67rem; }

.entry-live-sign {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 39px;
  border: 1px solid #d4b96d;
  border-radius: 9px;
  padding: 7px 10px;
  color: #fff7d7;
  background: linear-gradient(150deg, #624123, #37271f);
  box-shadow: inset 0 1px rgba(255,255,255,.15);
}
.entry-live-sign span { color: #ffdf69; font-size: .55rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.entry-live-sign strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }

.entry-portal {
  position: relative;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid rgba(255,232,128,.52);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(115deg, #087f8c, #075e75 54%, #0b8291);
  box-shadow: 0 12px 26px rgba(4,74,87,.3), inset 0 1px rgba(255,255,255,.18);
}
.entry-portal::before {
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 26%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg);
  animation: entry-portal-glint 3.6s 4.4s ease-in-out infinite;
}
.entry-portal span,
.entry-portal i { position: relative; z-index: 2; }
.entry-portal i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #17324d; background: var(--entry-gold); font-style: normal; transition: transform .2s ease; }
.entry-portal:hover i,
.entry-portal:focus-visible i { transform: translateX(4px) rotate(-8deg); }
.entry-trust { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; color: #537169; font-size: .65rem; font-weight: 850; }

.entry-powers {
  position: relative;
  z-index: 35;
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(118px, 1fr));
  gap: 7px;
  width: min(100%, 720px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 17px;
  padding: 8px;
  background: rgba(3,24,39,.65);
  box-shadow: 0 17px 38px rgba(1,13,23,.22);
  backdrop-filter: blur(14px);
}
.entry-powers__intro { display: grid; align-content: center; min-width: 105px; padding: 5px 8px; }
.entry-powers__intro span { color: #ffe16b; font-size: .52rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.entry-powers__intro strong { font-size: .75rem; }
.entry-power {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 11px;
  padding: 7px 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.entry-power:hover,
.entry-power:focus-visible,
.entry-power--active { transform: translateY(-3px); border-color: rgba(255,226,105,.78); background: rgba(255,255,255,.16); box-shadow: 0 8px 20px rgba(1,12,21,.22); }
.entry-power__art { width: 36px; height: 36px; filter: drop-shadow(0 4px 6px rgba(1,12,21,.28)); }
.entry-power > span:last-child { display: grid; min-width: 0; gap: 1px; }
.entry-power strong { font-size: .68rem; line-height: 1.12; }
.entry-power small { color: #cae1e3; font-size: .56rem; }
.entry-power-status { grid-column: 2 / -1; min-height: 14px; margin: 0 4px; color: #e1eff0; font-size: .6rem; text-align: center; }
.entry-power--active .entry-power__art { animation: entry-power-pop .52s cubic-bezier(.2,.8,.2,1); }

.entry-curtain {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(20,126,142,.28), transparent 25%),
    linear-gradient(145deg, #061625, #0b3042 60%, #075b69);
  pointer-events: none;
}
.entry-curtain__crest { display: grid; justify-items: center; gap: 15px; }
.entry-curtain__crest strong { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; }
.entry-curtain__sun {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  border: 7px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: var(--entry-gold);
  box-shadow: 0 0 0 13px rgba(247,207,80,.1), 0 0 70px rgba(247,207,80,.5);
}
.entry-curtain__sun::after { position: absolute; inset: -25px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; content: ""; }
.entry-curtain p { margin: 18px 0 0; color: #cde3e5; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

.entry-shell--settled .entry-curtain { display: none; }
.entry-shell--cinematic .entry-curtain { animation: entry-curtain-exit 3.15s ease both; }
.entry-shell--cinematic .entry-skip { animation: entry-skip-away .28s 4.55s ease both; }
.entry-shell--cinematic .entry-curtain__sun { animation: entry-crest-awaken 1.85s cubic-bezier(.16,.8,.2,1) both; }
.entry-shell--cinematic .entry-curtain__crest strong,
.entry-shell--cinematic .entry-curtain p { animation: entry-curtain-copy .7s .45s ease both; }
.entry-shell--cinematic .entry-world__scene { animation: entry-world-arrive 4.1s cubic-bezier(.16,.82,.2,1) both, entry-world-breathe 18s 4.1s ease-in-out infinite alternate; }
.entry-shell--cinematic .entry-topbar .brand-mark { animation: entry-rise-in .55s 2.65s ease both; }
.entry-shell--cinematic .entry-story .eyebrow { animation: entry-rise-in .55s 2.55s ease both; }
.entry-shell--cinematic .entry-story h1 { animation: entry-title-arrive .78s 2.72s cubic-bezier(.16,.85,.2,1) both; }
.entry-shell--cinematic .entry-story__lead { animation: entry-rise-in .62s 3.05s ease both; }
.entry-shell--cinematic .entry-guide { animation: entry-guide-call .68s 3.25s cubic-bezier(.18,.9,.2,1) both; }
.entry-shell--cinematic .entry-journey-strip { animation: entry-rise-in .55s 3.5s ease both; }
.entry-shell--cinematic .entry-powers { animation: entry-powers-rise .68s 3.68s cubic-bezier(.16,.86,.2,1) both; }
.entry-shell--cinematic .entry-power:nth-of-type(1) { animation: entry-power-deal .48s 3.9s ease both; }
.entry-shell--cinematic .entry-power:nth-of-type(2) { animation: entry-power-deal .48s 4.05s ease both; }
.entry-shell--cinematic .entry-power:nth-of-type(3) { animation: entry-power-deal .48s 4.2s ease both; }
.entry-shell--cinematic .entry-passport { animation: entry-passport-land .82s 3.72s cubic-bezier(.14,.86,.2,1) both; }
.entry-shell--cinematic .entry-camp-sign { animation: entry-sign-drop .62s 4.15s cubic-bezier(.2,.9,.2,1) both; }

@keyframes entry-curtain-exit {
  0%, 57% { opacity: 1; visibility: visible; }
  78% { opacity: 0; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes entry-crest-awaken { 0% { opacity: 0; transform: scale(.45) rotate(-18deg); } 60% { opacity: 1; transform: scale(1.08) rotate(3deg); } 100% { opacity: 1; transform: scale(1); } }
@keyframes entry-curtain-copy { from { opacity: 0; transform: translateY(10px); } }
@keyframes entry-skip-away { to { opacity: 0; visibility: hidden; } }
@keyframes entry-world-arrive { from { filter: saturate(.75) brightness(.58); transform: scale(1.16); } to { filter: saturate(1) brightness(1); transform: scale(1); } }
@keyframes entry-world-breathe { to { transform: scale(1.025) translate3d(-.4%, -.25%, 0); } }
@keyframes entry-rise-in { from { opacity: 0; transform: translateY(15px); } }
@keyframes entry-title-arrive { from { opacity: 0; filter: blur(7px); transform: translateY(24px) scale(.975); } }
@keyframes entry-guide-call { from { opacity: 0; transform: translateX(-24px); } }
@keyframes entry-powers-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes entry-power-deal { from { opacity: 0; transform: translateY(16px) rotate(3deg); } }
@keyframes entry-passport-land { from { opacity: 0; transform: translateX(55px) rotate(3deg) scale(.97); } to { opacity: 1; transform: rotate(.35deg); } }
@keyframes entry-sign-drop { from { opacity: 0; transform: translateY(-25px) rotate(5deg); } }
@keyframes entry-mist-drift { to { transform: translate3d(16vw, 4vh, 0) scale(1.12); } }
@keyframes entry-firefly { 0%, 100% { opacity: .15; transform: translate3d(0, 0, 0) scale(.65); } 45% { opacity: 1; transform: translate3d(9px, -14px, 0) scale(1.15); } }
@keyframes entry-portal-glint { 0%, 62% { left: -35%; } 84%, 100% { left: 128%; } }
@keyframes entry-power-pop { 45% { transform: translateY(-7px) rotate(-5deg) scale(1.13); } }

@media (max-height: 820px) and (min-width: 901px) {
  .entry-shell { gap-block: 12px; padding-block: 18px; }
  .entry-story h1 { font-size: clamp(3rem, 5vw, 4.7rem); }
  .entry-story__lead { font-size: .9rem; }
  .entry-guide { margin-top: 13px; padding-block: 10px; }
  .entry-journey-strip { margin-top: 10px; }
  .entry-passport { padding: 23px 27px; }
  .entry-passport h2 { margin-top: 11px; font-size: 2.15rem; }
  .entry-passport__form { margin-top: 12px; }
  .entry-passport__form input { min-height: 48px; }
  .entry-live-sign { min-height: 34px; }
  .entry-portal { min-height: 50px; }
}

@media (max-width: 900px) {
  .entry-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    align-content: start;
    gap: 11px;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px clamp(14px, 4vw, 28px) calc(20px + env(safe-area-inset-bottom));
  }
  .entry-world { position: fixed; }
  .entry-world__scene .adventure-scene { background-position: 60% 54%; }
  .entry-world__vignette {
    background:
      linear-gradient(180deg, rgba(3,17,30,.84) 0%, rgba(4,25,40,.68) 38%, rgba(3,20,33,.76) 72%, rgba(2,14,25,.94) 100%),
      linear-gradient(90deg, rgba(3,17,29,.6), transparent 70%);
  }
  .entry-world .adventure-scene__crew { display: none; }
  .entry-world .adventure-scene__chest { right: 4%; bottom: 18%; width: min(30vw, 160px); opacity: .75; }
  .entry-world .adventure-scene__cabin { top: 26%; right: 5%; width: min(21vw, 115px); opacity: .7; }
  .entry-world .adventure-scene__compass { top: 18%; left: 56%; width: min(18vw, 90px); }
  .entry-camp-sign { display: none; }
  .entry-topbar { grid-column: 1; grid-row: 1; min-height: 34px; }
  .entry-story { grid-column: 1; grid-row: 2; align-self: start; width: 100%; }
  .entry-story .eyebrow { font-size: .63rem; }
  .entry-story h1 { max-width: 600px; margin-block: 7px 9px; font-size: clamp(2.55rem, 9.8vw, 4.1rem); line-height: .92; }
  .entry-story__lead { max-width: 610px; font-size: .82rem; line-height: 1.43; }
  .entry-guide { grid-template-columns: 42px minmax(0, 1fr); max-width: 610px; margin-top: 11px; padding: 9px 11px 9px 9px; }
  .entry-guide__icon { width: 39px; height: 39px; }
  .entry-guide strong { font-size: .76rem; }
  .entry-guide p { font-size: .66rem; }
  .entry-journey-strip { margin-top: 9px; padding: 6px 9px; font-size: .63rem; }
  .entry-journey-strip strong { font-size: .76rem; }
  .entry-powers { grid-column: 1; grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 6px; }
  .entry-powers__intro { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 7px; min-width: 0; padding: 1px 5px 3px; }
  .entry-powers__intro strong { font-size: .7rem; }
  .entry-power { grid-template-columns: 30px minmax(0, 1fr); min-height: 48px; padding: 5px 6px; }
  .entry-power__art { width: 30px; height: 30px; }
  .entry-power strong { font-size: .65rem; }
  .entry-power small { font-size: .59rem; }
  .entry-power-status { grid-column: 1 / -1; font-size: .64rem; }
  .entry-passport { grid-column: 1; grid-row: 4; align-self: start; width: min(100%, 660px); margin-inline: auto; border-radius: 19px; padding: 19px 20px; transform: none; }
  .entry-passport h2 { margin-block: 10px 6px; font-size: 2rem; }
  .entry-passport__lead { font-size: .76rem; line-height: 1.4; }
  .entry-passport__form { gap: 6px; margin-top: 11px; }
  .entry-passport__form input { min-height: 48px; }
  .entry-passport__form .auth-field-help,
  .entry-passport__form .auth-field-error { font-size: .65rem; }
  .entry-passport__stamp { width: 40px; height: 40px; }
  .entry-live-sign { min-height: 34px; }
  .entry-portal { min-height: 50px; }
  .entry-trust { margin-top: 8px; font-size: .68rem; }
}

@media (max-width: 560px) {
  .entry-shell { gap: 9px; padding: 13px 13px calc(18px + env(safe-area-inset-bottom)); }
  .entry-topbar .brand-mark { font-size: .95rem; }
  .entry-skip { min-height: 34px; padding: 6px 10px; font-size: .64rem; }
  .entry-story h1 { max-width: 360px; font-size: clamp(2.45rem, 11.6vw, 3.2rem); }
  .entry-story__lead { max-width: 355px; font-size: .76rem; }
  .entry-guide { margin-top: 9px; }
  .entry-guide p { display: none; }
  .entry-guide strong { align-self: center; font-size: .72rem; line-height: 1.3; }
  .entry-journey-strip { gap: 6px; margin-top: 7px; font-size: .61rem; }
  .entry-journey-strip strong { font-size: .73rem; }
  .entry-power { grid-template-columns: 27px minmax(0, 1fr); gap: 4px; min-height: 45px; padding: 4px; }
  .entry-power__art { width: 27px; height: 27px; }
  .entry-power strong { font-size: .63rem; }
  .entry-power small { font-size: .57rem; }
  .entry-passport { padding: 16px; }
  .entry-passport__kicker span { font-size: .6rem; }
  .entry-passport__kicker small { font-size: .57rem; }
  .entry-passport h2 { margin-top: 8px; font-size: 1.78rem; }
  .entry-passport__lead { font-size: .72rem; }
  .entry-passport__form { margin-top: 9px; }
  .entry-passport__form label { font-size: .78rem; }
  .entry-live-sign { display: none; }
  .entry-trust { font-size: .68rem; }
}

@media (max-width: 360px) {
  .entry-story h1 { font-size: 2.28rem; }
  .entry-story__lead { font-size: .71rem; }
  .entry-guide { grid-template-columns: 36px minmax(0, 1fr); padding-block: 7px; }
  .entry-guide__icon { width: 34px; height: 34px; }
  .entry-journey-strip span { gap: 2px; }
  .entry-powers__intro { display: none; }
  .entry-power-status { font-size: .53rem; }
  .entry-passport { padding: 14px; }
  .entry-passport__stamp { width: 34px; height: 34px; font-size: .64rem; }
  .entry-passport h2 { font-size: 1.62rem; }
  .entry-passport__lead { font-size: .68rem; }
  .entry-passport__form input { min-height: 46px; }
  .entry-portal { min-height: 48px; }
}

@media (min-width: 620px) and (max-width: 900px) and (max-height: 640px) {
  .entry-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    grid-template-rows: auto 1fr auto;
    gap: 7px 18px;
    overflow: hidden;
    padding: 12px 18px 13px;
  }
  .entry-world { position: absolute; }
  .entry-world__vignette { background: linear-gradient(90deg, rgba(3,17,30,.9), rgba(4,25,40,.6) 55%, rgba(2,17,29,.84)); }
  .entry-world .adventure-scene__crew,
  .entry-world .adventure-scene__cabin,
  .entry-camp-sign { display: none; }
  .entry-topbar { grid-column: 1 / -1; grid-row: 1; min-height: 28px; }
  .entry-story { grid-column: 1; grid-row: 2; align-self: center; }
  .entry-story .eyebrow { font-size: .55rem; }
  .entry-story h1 { margin-block: 5px 7px; font-size: clamp(2.1rem, 5vw, 3rem); }
  .entry-story__lead { max-width: 470px; font-size: .68rem; }
  .entry-guide { grid-template-columns: 34px minmax(0,1fr); margin-top: 7px; padding: 6px 8px; }
  .entry-guide__icon { width: 32px; height: 32px; }
  .entry-guide span { font-size: .48rem; }
  .entry-guide strong { font-size: .64rem; }
  .entry-guide p { display: none; }
  .entry-journey-strip { margin-top: 6px; padding: 5px 7px; font-size: .5rem; }
  .entry-journey-strip strong { font-size: .62rem; }
  .entry-powers { grid-column: 1; grid-row: 3; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 5px; }
  .entry-powers__intro { display: none; }
  .entry-power { grid-template-columns: 25px minmax(0,1fr); min-height: 44px; padding: 3px 5px; }
  .entry-power__art { width: 25px; height: 25px; }
  .entry-power-status { grid-column: 1 / -1; min-height: 11px; font-size: .49rem; }
  .entry-passport { grid-column: 2; grid-row: 2 / span 2; align-self: center; padding: 15px 17px; }
  .entry-passport__stamp { width: 34px; height: 34px; }
  .entry-passport__kicker span { font-size: .55rem; }
  .entry-passport__kicker small { font-size: .52rem; }
  .entry-passport h2 { margin-block: 7px 5px; font-size: 1.55rem; }
  .entry-passport__lead { font-size: .65rem; }
  .entry-passport__form { gap: 4px; margin-top: 7px; }
  .entry-passport__form label { font-size: .7rem; }
  .entry-passport__form input { min-height: 42px; padding-block: 8px; }
  .entry-passport__form .auth-field-help,
  .entry-passport__form .auth-field-error { font-size: .55rem; }
  .entry-live-sign { min-height: 30px; padding-block: 5px; }
  .entry-portal { min-height: 44px; }
  .entry-trust { margin-top: 6px; font-size: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-curtain { display: none !important; }
  .entry-world__scene,
  .entry-world__mist,
  .entry-fireflies i,
  .entry-portal::before { animation: none !important; }
}

.lesson-video iframe[data-stream-player]{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#17324d}
.quiz-lesson-review{margin:0 0 16px}
.completed-lesson-list{margin:8px 0 0;padding-left:22px}
.completed-lesson-list li{margin:6px 0}
.lesson-review{min-width:0}
.stream-refresh-status:empty{display:none}
.stream-refresh-status:not(:empty){margin:10px 0;color:var(--color-ink-muted,#435a65);font-size:.9rem}
.stream-refresh-status .text-button{margin-left:8px}
@media(prefers-reduced-motion:reduce){.lesson-review,.lesson-review *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.auth-captcha{min-height:65px;width:100%}
.auth-captcha iframe{max-width:100%}

/* Parent entry: keep the flexible security widget's 300px minimum visible. */
.cloud-auth-card .auth-form { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 369px) {
  .cloud-auth-shell { padding-inline: 4px; }
  .cloud-auth-card { padding-inline: 5px; }
}
