@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/barlow-condensed-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-500-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-500-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-500-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  background: #050a12;
  color: #f6fbff;
  --cyan: #63e6ff;
  --ember: #ff4e2f;
  --ink: #07101d;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  min-width: 320px;
  overflow-x: hidden;
  background: #050a12;
}

button { font: inherit; }

.game-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 18%, rgba(85, 178, 255, .3), transparent 25%),
    linear-gradient(180deg, #071223 0%, #0a1725 51%, #05070c 100%);
}

.game-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 6, 12, .88) 0%, rgba(2, 6, 12, .5) 48%, rgba(2, 6, 12, .2) 100%);
}

.scene { position: fixed; inset: 0; z-index: -2; background-position: center; background-size: cover; background-repeat: no-repeat; }

.moon {
  position: absolute;
  right: 12%; top: 8%; width: min(36vw, 420px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0 4%, #c9eeff 38%, #87bdd5 62%, #59879f 100%);
  box-shadow: 0 0 65px rgba(125, 211, 252, .38);
  opacity: .9;
}

.castle {
  position: absolute;
  right: 19%; top: 25%;
  font-size: clamp(10rem, 26vw, 24rem);
  color: #02050a;
  text-shadow: 0 20px 40px #000;
  transform: scaleX(.72);
}

.fog { position: absolute; left: -10%; width: 120%; height: 16%; filter: blur(16px); opacity: .48; background: linear-gradient(90deg, transparent, #91bed0, transparent); }
.fog--one { bottom: 15%; transform: rotate(-2deg); }
.fog--two { bottom: 1%; transform: rotate(2deg); opacity: .3; }

.age-screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 500px);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 4rem) clamp(1.25rem, 6vw, 6rem);
}

.brand-kicker, .eyebrow {
  display: block;
  color: var(--cyan);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: .16em;
  font-size: .85rem;
}

.brand-lockup h1 {
  margin: .5rem 0 0;
  max-width: 8ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: .76;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 8px 30px #000;
}

.brand-lockup h1 span { color: #d9f6ff; }
.brand-lockup h1 em { display: block; color: var(--ember); font-style: normal; }
.brand-lockup p { margin: 1.4rem 0 0; color: #c6d9e4; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; }

.age-card {
  width: 100%;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid rgba(125, 211, 252, .35);
  background: linear-gradient(145deg, rgba(10, 22, 37, .94), rgba(5, 10, 18, .9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border-radius: 1rem;
}

.age-card h2 { margin: .45rem 0 .6rem; font: 800 clamp(2.2rem, 5vw, 3.6rem)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.age-card > p { color: #a9bdc9; line-height: 1.55; }

.age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.5rem; }
.age-grid button {
  min-height: 4.4rem;
  border: 1px solid rgba(99, 230, 255, .25);
  border-radius: .7rem;
  color: #e9fbff;
  background: linear-gradient(180deg, #152a3b, #0b1724);
  font: 800 1.35rem "Barlow Condensed", sans-serif;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.age-grid button:hover, .age-grid button:focus-visible { transform: translateY(-3px); border-color: var(--cyan); background: linear-gradient(180deg, #1c4152, #0c2230); outline: none; }
.age-grid button:active { transform: translateY(0) scale(.98); }
.age-card .privacy-note { margin: 1rem 0 0; color: #718a9a; font-size: .78rem; }
.age-player-button { width: 100%; margin-top: .8rem; padding: .75rem; }

@media (max-width: 780px) {
  .age-screen { grid-template-columns: 1fr; align-content: center; gap: 2.2rem; }
  .brand-lockup h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .brand-lockup p { margin-top: 1rem; }
  .moon { right: -8%; width: 65vw; }
  .castle { right: -5%; top: 28%; font-size: 16rem; opacity: .62; }
}

@media (max-width: 430px) {
  .age-screen { padding: 1.2rem; }
  .age-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-lockup h1 { font-size: 3.9rem; }
}

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

/* Full game shell */
[hidden] { display: none !important; }

.screen { min-height: 100svh; position: relative; }

.scene {
  position: fixed;
  background: #06101a linear-gradient(90deg, rgba(2, 6, 12, .72), rgba(2, 6, 12, .08) 70%);
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 38%, transparent 10%, rgba(0, 4, 10, .12) 54%, rgba(0, 2, 8, .82) 110%),
    linear-gradient(180deg, rgba(2, 6, 12, .08), rgba(2, 6, 12, .35));
}

.glass-card {
  border: 1px solid rgba(135, 219, 255, .24);
  background: linear-gradient(145deg, rgba(11, 24, 39, .94), rgba(4, 9, 16, .92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px);
  border-radius: 1rem;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: radial-gradient(circle, #13293b, #050912 62%);
  transition: opacity .4s ease, visibility .4s ease;
}

.splash.is-done { opacity: 0; visibility: hidden; }
.splash-mark {
  display: grid;
  place-items: center;
  width: 7rem;
  aspect-ratio: 1;
  border: 2px solid var(--cyan);
  border-radius: 1.2rem;
  color: #e9fbff;
  font: 900 4rem/1 "Barlow Condensed", sans-serif;
  box-shadow: 0 0 3rem rgba(99, 230, 255, .28), inset 0 0 2rem rgba(99, 230, 255, .12);
}
.splash-mark span { color: var(--ember); }
.splash p { margin: 0; color: #9cb9c9; letter-spacing: .22em; font: 800 .9rem "Barlow Condensed", sans-serif; }

.topbar {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(132, 206, 239, .16);
  background: linear-gradient(180deg, rgba(3, 8, 15, .94), rgba(3, 8, 15, .72));
  backdrop-filter: blur(16px);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  border: 0;
  padding: 0;
  color: #eafaff;
  background: none;
  cursor: pointer;
  font: 800 .95rem "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
}
.mini-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid rgba(99, 230, 255, .65);
  border-radius: .4rem;
  color: var(--cyan);
  box-shadow: inset 0 0 1rem rgba(99, 230, 255, .12);
}
.topbar-stats { display: flex; align-items: center; gap: .7rem; }
.topbar-stats > span {
  display: inline-flex;
  align-items: baseline;
  gap: .22rem;
  min-height: 2.3rem;
  padding: .5rem .75rem;
  border: 1px solid rgba(141, 205, 231, .16);
  border-radius: .45rem;
  background: rgba(8, 18, 29, .82);
  font: 700 .9rem "Barlow Condensed", sans-serif;
}
.topbar-stats small { color: #708b9a; font-size: .75rem; }
.topbar-stats b { color: #dff9ff; }
.topbar-stats .coin-stat i { color: #ffb33b; font-style: normal; }

.primary-button,
.secondary-button,
.danger-button {
  min-height: 3.6rem;
  border-radius: .5rem;
  padding: .8rem 1.3rem;
  font: 800 1.05rem "Barlow Condensed", sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid #8df0ff;
  color: #021018;
  background: linear-gradient(135deg, #a5f6ff, #48cce8);
  box-shadow: 0 0 1.8rem rgba(78, 217, 241, .25), inset 0 1px rgba(255, 255, 255, .65);
}
.primary-button i { font-size: 1.8em; font-style: normal; line-height: .5; }
.primary-button--large { min-height: 4.6rem; width: 100%; font-size: 1.35rem; }
.secondary-button { border: 1px solid rgba(123, 216, 250, .35); color: #dbf8ff; background: rgba(11, 28, 43, .82); }
.danger-button { border: 1px solid rgba(255, 86, 66, .42); color: #ff9c8e; background: rgba(73, 18, 19, .3); }
.primary-button:hover, .secondary-button:hover, .danger-button:hover,
.primary-button:focus-visible, .secondary-button:focus-visible, .danger-button:focus-visible { transform: translateY(-2px); filter: brightness(1.12); outline: none; }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: translateY(0) scale(.985); }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; filter: grayscale(.75); opacity: .58; transform: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 0;
  margin: 0 0 2rem;
  padding: .5rem 0;
  color: #b8d9e7;
  background: none;
  font-weight: 700;
  cursor: pointer;
}
.back-link:hover, .back-link:focus-visible { color: var(--cyan); outline: none; }

/* Home */
.home-screen { display: flex; flex-direction: column; justify-content: space-between; padding: 5.6rem clamp(1.2rem, 6vw, 6rem) 0; }
.home-content { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(360px, 500px); gap: clamp(2rem, 8vw, 9rem); align-items: center; margin: auto 0; padding: 1rem 0 2rem; }
.brand-lockup--home h1 { font-size: clamp(4.2rem, 9vw, 8.5rem); }
.mission-card { padding: clamp(1.4rem, 3vw, 2.2rem); }
.mission-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mission-heading h2 { margin: .35rem 0 0; font: 800 clamp(2.1rem, 4vw, 3.1rem)/.96 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.level-seal { display: grid; place-items: center; width: 4.1rem; aspect-ratio: 1; border: 1px solid rgba(99, 230, 255, .42); border-radius: 50%; color: #7fa1b3; font: 700 .75rem "Barlow Condensed", sans-serif; }
.level-seal b { display: block; color: #e7fbff; font-size: 1.45rem; }
.adventure-briefing { --adventure-accent: var(--world-accent, #63e6ff); margin-top: 1rem; padding: .85rem 1rem .9rem; border: 1px solid color-mix(in srgb, var(--adventure-accent) 30%, transparent); border-left: .2rem solid var(--adventure-accent); border-radius: .55rem; background: linear-gradient(110deg, color-mix(in srgb, var(--adventure-accent) 11%, rgba(1, 8, 14, .72)), rgba(1, 8, 14, .5)); text-align: left; }
.adventure-briefing__top { display: flex; justify-content: space-between; gap: .8rem; color: #82a0ae; font: 800 .66rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.adventure-briefing__top b { color: var(--adventure-accent); font: inherit; }
.adventure-briefing h3 { margin: .35rem 0 .18rem; font: 900 1.28rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.adventure-briefing p { margin: 0; color: #a6bac3; font-size: .76rem; line-height: 1.45; }
.adventure-trail { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .28rem; margin-top: .72rem; }
.adventure-trail i { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; border: 1px solid rgba(131, 181, 201, .22); border-radius: 50%; color: #6e8995; background: rgba(0, 7, 12, .7); font: 800 .58rem "Barlow Condensed", sans-serif; font-style: normal; }
.adventure-trail i.is-checkpoint { border-radius: 28%; border-color: color-mix(in srgb, var(--adventure-accent) 48%, transparent); }
.adventure-trail i.is-cleared { color: #031015; border-color: var(--adventure-accent); background: var(--adventure-accent); box-shadow: 0 0 .6rem color-mix(in srgb, var(--adventure-accent) 36%, transparent); }
.adventure-trail i.is-current { color: white; border-color: white; background: color-mix(in srgb, var(--adventure-accent) 34%, #07101d); box-shadow: 0 0 0 .13rem color-mix(in srgb, var(--adventure-accent) 32%, transparent), 0 0 .8rem color-mix(in srgb, var(--adventure-accent) 34%, transparent); }
.mission-rule { display: flex; align-items: center; gap: 1rem; margin: 1.8rem 0; padding: 1rem; border: 1px solid rgba(122, 192, 220, .15); border-radius: .65rem; background: rgba(0, 0, 0, .18); }
.adventure-briefing + .mission-rule { margin-block: 1rem; }
.mission-rule__number { color: var(--ember); font: 900 3.4rem/1 "Barlow Condensed", sans-serif; }
.mission-rule b, .mission-rule small { display: block; }
.mission-rule b { text-transform: uppercase; font: 800 1.05rem "Barlow Condensed", sans-serif; }
.mission-rule small { margin-top: .2rem; color: #879eac; }
.codex-briefing { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; margin: -1rem 0 1.4rem; padding: .8rem 1rem; border-left: 2px solid var(--world-accent); background: rgba(1, 8, 14, .34); }
.codex-briefing > span, .codex-briefing small { color: #7894a1; font: 800 .68rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.codex-briefing b { text-transform: uppercase; font: 900 1rem "Barlow Condensed", sans-serif; }
.codex-briefing p { grid-column: 1 / -1; margin: .25rem 0 0; color: #99b0bb; font-size: .76rem; line-height: 1.4; }
.welcome-recap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; margin: -.25rem 0 1rem; padding: .8rem .9rem; border: 1px solid rgba(99, 230, 255, .2); border-left: .2rem solid var(--world-accent, var(--cyan)); border-radius: .55rem; background: rgba(2, 12, 20, .5); text-align: left; }
.welcome-recap .eyebrow { grid-row: span 2; align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.welcome-recap strong { display: block; color: #f3fbff; font: 900 1.08rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.welcome-recap p { margin: .1rem 0 0; color: #9bb2bd; font-size: .76rem; line-height: 1.4; }
.welcome-recap > small { grid-column: 2; color: #7895a3; line-height: 1.35; }
.welcome-recap > small b { color: var(--world-accent, var(--cyan)); font: 800 .68rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: .8rem; }
.home-actions button { min-height: 3.4rem; border: 1px solid rgba(129, 201, 231, .18); border-radius: .45rem; color: #b6ced9; background: rgba(3, 11, 19, .62); cursor: pointer; font: 700 .82rem "Barlow Condensed", sans-serif; letter-spacing: .04em; }
.home-actions button span { margin-right: .3rem; color: var(--cyan); }
.home-actions button:hover, .home-actions button:focus-visible { color: white; border-color: rgba(99, 230, 255, .55); outline: none; }
.back-link { min-height: 2.75rem; }
.home-footer { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(133, 209, 240, .18); background: rgba(3, 8, 14, .78); margin: 0 calc(clamp(1.2rem, 6vw, 6rem) * -1); padding: 1rem clamp(1.2rem, 6vw, 6rem); backdrop-filter: blur(12px); }
.home-footer > div { display: grid; gap: .25rem; padding: .3rem 1.4rem; border-right: 1px solid rgba(135, 204, 232, .15); }
.home-footer > div:first-child { padding-left: 0; }
.home-footer > div:last-child { border: 0; }
.home-footer span { color: #698594; font: 700 .75rem "Barlow Condensed", sans-serif; letter-spacing: .12em; }
.home-footer b { font: 800 1rem "Barlow Condensed", sans-serif; text-transform: uppercase; }

/* Interior panels */
.panel-screen { padding: 7.8rem clamp(1.2rem, 6vw, 6rem) 3rem; }
.page-heading { max-width: 700px; margin-bottom: 2rem; }
.page-heading .back-link { margin-bottom: 1.4rem; }
.page-heading h2 { margin: .35rem 0 .55rem; font: 900 clamp(2.8rem, 6vw, 5rem)/.9 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.page-heading p { margin: 0; color: #9cb1bd; line-height: 1.6; }

/* Maths */
.math-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(420px, 720px); gap: clamp(1rem, 4vw, 4rem); max-width: 1160px; margin: 0 auto; }
.round-sidebar, .question-card { padding: clamp(1.3rem, 3vw, 2.2rem); }
.round-sidebar h2 { margin: .45rem 0 .65rem; font: 800 clamp(2.2rem, 4vw, 3.2rem)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.round-sidebar > p { color: #91a9b5; line-height: 1.55; }
.seal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; margin: 1.8rem 0; }
.seal-grid i { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(130, 201, 231, .2); border-radius: .45rem; color: #456170; background: rgba(0, 0, 0, .25); font-style: normal; font-weight: 900; }
.seal-grid i.is-lit { color: #031118; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 1.2rem rgba(99, 230, 255, .4); }
.math-level-card { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: 1rem; border: 1px solid rgba(255, 85, 56, .18); border-radius: .55rem; background: linear-gradient(135deg, rgba(255, 78, 47, .08), transparent); }
.math-level-card span { color: #74909f; font: 700 .7rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.math-level-card strong { grid-row: span 2; color: var(--ember); font: 900 1.4rem "Barlow Condensed", sans-serif; }
.math-level-card small { color: #d7eaf2; }
.question-card { position: relative; overflow: hidden; }
.question-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.question-topline { display: flex; justify-content: space-between; gap: 1rem; color: #7f9aa8; font: 800 .8rem "Barlow Condensed", sans-serif; letter-spacing: .09em; }
.question-topline b { color: white; }
.question-progress { height: .35rem; overflow: hidden; margin: .75rem 0 2rem; border-radius: 99px; background: #111e28; }
.question-progress i { display: block; width: 10%; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--cyan), #a3f2ff); box-shadow: 0 0 .8rem var(--cyan); transition: width .3s ease; }
.problem-wrap { min-height: 12rem; display: grid; place-content: center; justify-items: center; }
.problem-label { color: #587584; font: 700 .75rem "Barlow Condensed", sans-serif; letter-spacing: .14em; }
.problem { margin-top: .65rem; text-align: center; font: 900 clamp(3.4rem, 8vw, 6.3rem)/1 "Barlow Condensed", sans-serif; letter-spacing: -.02em; text-shadow: 0 0 2.4rem rgba(99, 230, 255, .1); }
.problem-suffix { min-height: 1.4rem; color: #8ca3af; font-weight: 700; }
.answer-form { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(160px, .72fr); gap: .75rem; }
.answer-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.answer-form input { min-width: 0; height: 4.5rem; border: 1px solid rgba(119, 206, 239, .35); border-radius: .55rem; padding: 0 1rem; color: #eafcff; background: rgba(1, 7, 12, .72); text-align: center; font: 800 2rem "Barlow Condensed", sans-serif; }
.answer-form input:focus { border-color: var(--cyan); outline: 2px solid rgba(99, 230, 255, .15); }
.answer-feedback { min-height: 2rem; padding: .65rem 0 .25rem; color: #90a8b5; font-weight: 700; text-align: center; }
.answer-feedback.is-correct { color: #88f7c7; }
.answer-feedback.is-wrong { color: #ff9a8c; }
.learning-hint { margin: .45rem 0 .8rem; padding: .9rem 1rem; border: 1px solid rgba(255, 198, 82, .35); border-radius: .6rem; background: linear-gradient(135deg, rgba(255, 178, 48, .12), rgba(8, 18, 29, .5)); text-align: left; }
.learning-hint > span { display: flex; align-items: center; gap: .45rem; color: #ffd16d; font: 800 .78rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.learning-hint > span i { font-style: normal; }
.learning-hint p { margin: .45rem 0 0; color: #e8f3f6; font-size: .9rem; line-height: 1.5; }
.number-pad { display: none; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .7rem; }
.number-pad button { min-height: 3.4rem; border: 1px solid rgba(127, 199, 226, .18); border-radius: .45rem; color: #deeff6; background: rgba(8, 21, 33, .8); font-weight: 800; }
.number-pad__clear { grid-column: 1 / -1; color: #ff9e91 !important; }

/* Battle unlock */
.unlock-screen { display: grid; place-content: center; overflow: auto; padding: 2rem; text-align: center; background: radial-gradient(circle, rgba(20, 65, 79, .56), rgba(2, 7, 13, .84) 56%); }
.unlock-content { position: relative; z-index: 2; width: min(880px, 92vw); }
.unlock-check { display: grid; place-items: center; width: 4.8rem; aspect-ratio: 1; margin: 0 auto 1.4rem; border: 2px solid var(--cyan); border-radius: 50%; color: var(--cyan); font-size: 2.5rem; box-shadow: 0 0 2rem rgba(99, 230, 255, .35); }
.unlock-content h2 { margin: .8rem 0; font: 900 clamp(4rem, 13vw, 8rem)/.72 "Barlow Condensed", sans-serif; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 0 3rem rgba(87, 221, 255, .22); }
.unlock-content h2 em { color: var(--ember); font-style: normal; }
.unlock-content p { margin: 1.5rem 0 2rem; color: #c0d4dd; }
.unlock-rings, .unlock-rings i { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.unlock-rings i { width: 38vw; min-width: 420px; aspect-ratio: 1; border: 1px solid rgba(99, 230, 255, .14); animation: unlock-pulse 3.2s ease-out infinite; }
.unlock-rings i:nth-child(2) { animation-delay: .9s; }
.unlock-rings i:nth-child(3) { animation-delay: 1.8s; }
@keyframes unlock-pulse { from { opacity: .8; transform: translate(-50%, -50%) scale(.4); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.rune-loadout { margin: 1rem 0 1.35rem; padding: 1rem; border: 1px solid rgba(99, 230, 255, .24); border-radius: .8rem; background: rgba(1, 8, 14, .72); text-align: left; }
.rune-loadout__heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .15rem 1rem; margin-bottom: .8rem; }
.rune-loadout__heading .eyebrow { grid-column: 1 / -1; }
.rune-loadout__heading h3 { margin: 0; font: 900 1.55rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.rune-loadout__heading p { margin: 0; color: #8faebb; font-size: .74rem; }
.rune-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.rune-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem; min-height: 5.2rem; border: 1px solid rgba(123, 204, 233, .25); border-radius: .65rem; padding: .75rem; color: #dff9ff; background: rgba(7, 20, 30, .9); text-align: left; cursor: pointer; }
.rune-option > span { display: grid; place-items: center; width: 2.5rem; aspect-ratio: 1; border: 1px solid rgba(99, 230, 255, .4); border-radius: 50%; color: var(--cyan); background: rgba(64, 189, 221, .08); font-size: 1.25rem; }
.rune-option strong, .rune-option small { display: block; }
.rune-option strong { font: 900 1.05rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.rune-option small { margin-top: .18rem; color: #83a0ad; font-size: .67rem; line-height: 1.35; }
.rune-option.is-selected { border-color: #7deaff; background: linear-gradient(145deg, rgba(43, 170, 203, .23), rgba(7, 20, 30, .94)); box-shadow: 0 0 1.2rem rgba(90, 222, 255, .15); }
.rune-option.is-locked { cursor: not-allowed; opacity: .48; filter: grayscale(.6); }

/* Battle */
.battle-screen { background: #02060b; overflow: hidden; }
.battle-arena { position: fixed; inset: 0; overflow: clip; touch-action: none; cursor: none; user-select: none; background: #06101a center / cover no-repeat; }
.battle-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 2, 5, .05), transparent 45%, rgba(0, 2, 7, .72)), radial-gradient(circle at center, transparent 35%, rgba(1, 5, 10, .42)); }
.battle-hud { position: absolute; z-index: 120; inset: 1rem 1rem auto; display: grid; grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr); gap: 1rem; align-items: start; pointer-events: none; }
.battle-stat { max-width: 260px; padding: .75rem 1rem; border: 1px solid rgba(142, 211, 237, .32); border-radius: .5rem; background: rgba(3, 10, 16, .82); backdrop-filter: blur(10px); }
.battle-stat > span { display: flex; justify-content: space-between; color: #9bb5c1; font: 700 .72rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.battle-stat > span b { color: white; }
.battle-stat > div { height: .38rem; overflow: hidden; margin-top: .45rem; border-radius: 99px; background: #251113; }
.battle-stat > div i { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ff4934, #ffb14c); transition: transform .2s ease; }
.battle-stat--targets { justify-self: end; text-align: right; }
.battle-stat--targets b { display: block; color: white; font: 900 1.25rem "Barlow Condensed", sans-serif; }
.battle-level { text-align: center; text-shadow: 0 2px 10px #000; }
.battle-level span, .battle-level b { display: block; }
.battle-level span { color: var(--ember); font: 800 .68rem "Barlow Condensed", sans-serif; letter-spacing: .14em; }
.battle-level b { font: 900 1.2rem "Barlow Condensed", sans-serif; }
.battle-level i { color: var(--cyan); font-style: normal; }
.battle-level small { display: block; max-width: 13rem; margin-top: .15rem; overflow: hidden; color: #bed1d9; font: 700 .68rem "Barlow Condensed", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.battle-tip { position: absolute; z-index: 115; top: 5.8rem; left: 50%; transform: translateX(-50%); padding: .55rem 1rem; border-radius: 99px; color: #d3eaf3; background: rgba(1, 7, 12, .68); font-size: .78rem; pointer-events: none; animation: tip-away 4s forwards; white-space: nowrap; }
@keyframes tip-away { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.monster-layer { position: absolute; inset: 0; z-index: 10; }
.monster { position: absolute; width: clamp(8rem, 17vw, 15rem); aspect-ratio: .66; border: 0; padding: 0; transform: translate(-50%, -50%) scale(var(--monster-scale, .5)); transform-origin: center bottom; opacity: var(--monster-opacity, .5); color: white; background: transparent; cursor: none; filter: var(--monster-filter, none) drop-shadow(0 0 .7rem var(--monster-glow, #65e6ff)) drop-shadow(0 1rem 1.2rem rgba(0, 0, 0, .72)); will-change: transform, left, top; }
.monster img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.monster-fallback { display: none; place-items: center; width: 100%; height: 100%; border-radius: 45% 45% 35% 35%; color: #ff653f; background: radial-gradient(circle at 50% 28%, #ff663c 0 3%, transparent 4%), linear-gradient(150deg, #1b2732, #05080d); font-size: 4rem; }
.monster--fallback .monster-fallback { display: grid; }
.monster-health { position: absolute; z-index: 3; top: 8%; left: 22%; width: 56%; height: .25rem; overflow: hidden; border-radius: 99px; background: rgba(36, 7, 8, .88); box-shadow: 0 0 0 1px rgba(0, 0, 0, .65); }
.monster-health i { display: block; width: 100%; height: 100%; transform-origin: left; background: #ff5137; transition: transform .15s ease; }
.monster--hit { animation: monster-hit .24s ease; }
.monster--defeated { pointer-events: none; animation: monster-defeat .38s ease forwards; }
.monster--warded { filter: grayscale(.25) brightness(.72) var(--monster-filter, none) drop-shadow(0 0 1.2rem var(--monster-glow, #65e6ff)); }
.boss-ward-layer { position: absolute; z-index: 112; top: clamp(8.8rem, 25vh, 14rem); left: 50%; width: min(32rem, calc(100vw - 2rem)); transform: translateX(-50%); pointer-events: none; text-align: center; }
.boss-ward-layer[hidden] { display: none; }
.boss-ward-label { display: inline-block; margin: 0 0 .55rem; padding: .34rem .75rem; border: 1px solid rgba(255, 221, 126, .56); border-radius: 99px; color: #fff5c9; background: rgba(22, 12, 32, .9); box-shadow: 0 0 1rem rgba(210, 163, 255, .28); font: 900 .75rem "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.boss-ward-targets { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 1.6rem); }
.boss-ward-target { display: grid; place-items: center; min-width: 3.25rem; min-height: 3.25rem; width: clamp(3.25rem, 7vw, 4.4rem); aspect-ratio: 1; border: .15rem solid #ffe38b; border-radius: 50%; padding: 0; color: #fff9db; background: radial-gradient(circle, rgba(255, 239, 157, .4), rgba(116, 59, 157, .86) 48%, rgba(17, 8, 28, .96) 72%); box-shadow: inset 0 0 .8rem rgba(255, 247, 194, .38), 0 0 1.25rem rgba(190, 117, 255, .78); pointer-events: auto; cursor: crosshair; animation: boss-ward-pulse 1.35s ease-in-out infinite alternate; }
.boss-ward-target span { font-size: clamp(1.35rem, 4vw, 2rem); filter: drop-shadow(0 0 .35rem #fff3a6); }
.boss-ward-target:hover, .boss-ward-target:focus-visible { border-color: white; outline: .2rem solid #6eeaff; outline-offset: .18rem; transform: scale(1.08); }
.boss-ward-target:disabled { cursor: default; opacity: .5; }
.battle-boss-warded .monster--boss::after { border-width: .2rem; opacity: .9; box-shadow: 0 0 1.4rem #d498ff; }
@keyframes boss-ward-pulse { from { transform: scale(.95); } to { transform: scale(1.05); } }
@keyframes monster-hit { 50% { filter: brightness(2.4) drop-shadow(0 0 1rem #ff533a); } }
@keyframes monster-defeat { to { opacity: 0; transform: translate(-50%, -65%) scale(calc(var(--monster-scale) * .6)) rotate(8deg); filter: brightness(2) blur(4px); } }
.crosshair { position: absolute; z-index: 130; top: 0; left: 0; width: 0; height: 0; pointer-events: none; transform: translate3d(50vw, 50vh, 0); }
.crosshair::before { content: ""; position: absolute; inset: -.35rem; border: 1px solid rgba(225, 250, 255, .85); border-radius: 50%; box-shadow: 0 0 .5rem rgba(92, 224, 255, .65); }
.crosshair i { position: absolute; background: #ecfbff; box-shadow: 0 0 .4rem var(--cyan); }
.crosshair i:first-child { width: 1.6rem; height: 1px; left: -.8rem; }
.crosshair i:last-child { width: 1px; height: 1.6rem; top: -.8rem; }
.shot-flash { position: absolute; z-index: 125; left: var(--shot-x, 50%); top: var(--shot-y, 50%); width: .5rem; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0; background: white; box-shadow: 0 0 2rem 1rem var(--cyan); }
.battle-shoot .shot-flash { animation: shot-flash .16s ease; }
.battle-shoot .battle-weapon { animation: weapon-kick .18s ease; }
@keyframes shot-flash { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); } }
@keyframes weapon-kick {
  50% { transform: translateX(calc(-50% + var(--weapon-x, 0px))) translateY(calc(var(--weapon-y, 0px) + 7%)) rotate(var(--weapon-turn, 0deg)) scale(.98); }
}
.battle-weapon { position: absolute; z-index: 100; left: 50%; bottom: -20%; width: min(45vw, 490px); max-height: 73vh; object-fit: contain; transform: translateX(calc(-50% + var(--weapon-x, 0px))) translateY(var(--weapon-y, 0px)) rotate(var(--weapon-turn, 0deg)); transform-origin: center bottom; pointer-events: none; filter: drop-shadow(0 1rem 1.8rem rgba(0, 0, 0, .75)); transition: transform .11s ease-out; }
.weapon-readout { position: absolute; z-index: 121; right: 1.1rem; bottom: 1rem; display: grid; grid-template-columns: auto auto; gap: .2rem .6rem; padding: .7rem .9rem; border: 1px solid rgba(99, 230, 255, .32); border-radius: .45rem; background: rgba(2, 9, 15, .8); pointer-events: none; font: 800 .72rem "Barlow Condensed", sans-serif; }
.weapon-readout span { grid-column: 1 / -1; color: #9cb6c1; }
.weapon-readout i { align-self: center; width: .5rem; aspect-ratio: 1; border-radius: 50%; background: #68ffb2; box-shadow: 0 0 .7rem #68ffb2; }
.weapon-readout b { color: white; }
.battle-hit::after { content: ""; position: absolute; inset: 0; z-index: 150; pointer-events: none; border: 5vw solid rgba(255, 45, 35, .22); animation: damage-flash .35s ease; }
@keyframes damage-flash { to { opacity: 0; border-width: 0; } }

/* Results */
.result-screen { display: grid; place-content: center; text-align: center; }
.result-card { width: min(700px, 92vw); padding: clamp(1.6rem, 4vw, 3rem); }
.result-badge { display: grid; place-items: center; width: 5rem; aspect-ratio: 1; margin: -5.5rem auto 1.2rem; border: 1px solid #ffd470; border-radius: 50%; color: #ffcc5d; background: #132331; box-shadow: 0 0 2.2rem rgba(255, 175, 51, .26); font-size: 2.4rem; }
.result-card h2 { margin: .5rem 0 .3rem; font: 900 clamp(3.5rem, 8vw, 6rem)/.9 "Barlow Condensed", sans-serif; }
.result-subtitle { margin: 0 0 1.8rem; color: #91a8b3; }
.mastery-reveal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: stretch; margin: 0 0 1rem; padding: 1rem; border: 1px solid rgba(99, 230, 255, .28); border-left: .24rem solid var(--cyan); border-radius: .65rem; background: linear-gradient(125deg, rgba(36, 151, 180, .14), rgba(2, 9, 16, .5)); text-align: left; }
.mastery-reveal.is-first { border-color: rgba(255, 207, 93, .55); border-left-color: #ffd05d; background: linear-gradient(125deg, rgba(255, 181, 51, .17), rgba(2, 9, 16, .5)); }
.mastery-reveal.is-rune-mastery { border-color: rgba(175, 128, 255, .55); border-left-color: #bd8cff; }
.mastery-reveal > div:first-child > span, .hero-score > span { display: block; color: #72dff5; font: 800 .66rem "Barlow Condensed", sans-serif; letter-spacing: .11em; }
.mastery-reveal.is-first > div:first-child > span { color: #ffd47a; }
.mastery-reveal > div:first-child > strong { display: block; margin: .18rem 0; color: #f7fdff; font: 900 1.45rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.mastery-reveal > div:first-child p { max-width: 42ch; margin: 0; color: #9db4be; font-size: .78rem; line-height: 1.45; }
.hero-score { display: grid; align-content: center; min-width: 10rem; padding-left: 1rem; border-left: 1px solid rgba(128, 207, 237, .2); text-align: right; }
.hero-score > strong { color: #fff; font: 900 2.35rem/.95 "Barlow Condensed", sans-serif; }
.hero-score > strong small { color: #7895a3; font-size: .9rem; }
.hero-score p, .hero-score > small { margin: .25rem 0 0; color: #7f9ba7; font: 700 .62rem "Barlow Condensed", sans-serif; letter-spacing: .05em; }
.hero-score p b { color: #bd8cff; }
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.4rem; border: 1px solid rgba(125, 200, 230, .16); border-radius: .7rem; overflow: hidden; }
.reward-grid > div { padding: 1.1rem .6rem; border-right: 1px solid rgba(125, 200, 230, .15); background: rgba(1, 8, 14, .38); }
.reward-grid > div:last-child { border: 0; }
.reward-grid span, .reward-grid small { display: block; color: #6f8b99; font: 700 .65rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.reward-grid strong { display: block; margin: .25rem 0; font: 900 2.2rem "Barlow Condensed", sans-serif; }
.reward-grid .coin-text { color: #ffc75e; }
.unlock-tease { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid rgba(255, 85, 53, .35); border-radius: .5rem; background: rgba(255, 71, 43, .08); }
.unlock-tease span { color: #ff8f78; font: 700 .72rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.unlock-tease b { font: 900 1.05rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.result-story { display: grid; gap: .25rem; margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid rgba(116, 207, 239, .23); border-left: .2rem solid var(--world-accent, #63e6ff); border-radius: .55rem; background: rgba(1, 8, 14, .42); text-align: left; }
.result-story.is-checkpoint { border-color: rgba(255, 199, 94, .48); border-left-color: #ffc75e; background: linear-gradient(120deg, rgba(255, 173, 54, .13), rgba(1, 8, 14, .5)); }
.result-story > span { color: #7bdff7; font: 800 .68rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.result-story.is-checkpoint > span { color: #ffd47a; }
.result-story strong { color: #f6fcff; font: 900 1.28rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.result-story p { margin: 0; color: #a9bdc6; font-size: .82rem; line-height: 1.45; }
.result-story small { color: #7d99a6; font-size: .7rem; line-height: 1.4; }
.result-actions { display: grid; gap: .7rem; }
.result-actions.is-checkpoint { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-home-button { border: 1px solid rgba(99, 230, 255, .62); color: #dbfaff; background: linear-gradient(135deg, #17354a, #0a1c2b); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }

/* Blasters */
.blaster-grid { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 1rem; }
.blaster-card { position: relative; overflow: hidden; min-height: 390px; padding: 1.2rem; border: 1px solid rgba(123, 199, 229, .2); border-radius: .8rem; background: linear-gradient(155deg, rgba(15, 33, 48, .96), rgba(4, 10, 17, .96)); box-shadow: 0 20px 45px rgba(0, 0, 0, .3); }
.blaster-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--weapon-glow) 18%, transparent), transparent 38%); }
.blaster-card.is-locked { filter: saturate(.45); }
.blaster-card.is-equipped { border-color: var(--weapon-glow); box-shadow: 0 0 0 1px color-mix(in srgb, var(--weapon-glow) 28%, transparent), 0 20px 55px rgba(0, 0, 0, .35); }
.blaster-card__top { position: relative; display: flex; justify-content: space-between; color: #718d9b; font: 700 .75rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.blaster-card__top b { color: var(--weapon-glow); }
.blaster-visual { position: relative; display: grid; place-items: center; height: 150px; margin: .7rem 0; overflow: hidden; color: var(--weapon-glow); font: 900 6rem "Barlow Condensed", sans-serif; text-shadow: 0 0 2rem var(--weapon-glow); }
.blaster-visual::after { content: ""; position: absolute; bottom: 12%; width: 70%; height: 10%; border-radius: 50%; background: var(--weapon-glow); filter: blur(18px); opacity: .22; }
.blaster-visual img { position: relative; z-index: 1; width: auto; max-width: 92%; height: 150px; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 1rem color-mix(in srgb, var(--weapon-glow) 45%, transparent)); }
.blaster-visual span { display: none; }
.blaster-card h3 { position: relative; margin: 0; font: 900 1.8rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.blaster-card > p { position: relative; min-height: 2.8rem; color: #859daa; font-size: .82rem; line-height: 1.45; }
.weapon-bars { position: relative; display: grid; gap: .55rem; margin: 1rem 0; }
.weapon-bars span { display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; gap: .5rem; color: #718b98; font: 700 .75rem "Barlow Condensed", sans-serif; }
.weapon-bars i { height: .25rem; border-radius: 99px; background: linear-gradient(90deg, var(--weapon-glow) var(--bar), #1a2831 var(--bar)); }
.blaster-card button { position: relative; width: 100%; }
.blaster-price { color: #ffc65b; }
.level-replay { max-width: 1100px; margin: 2rem auto 0; padding: clamp(1.2rem, 3vw, 2rem); }
.level-replay__heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.2rem; }
.level-replay__heading h3 { margin: .25rem 0; font: 900 clamp(1.8rem, 4vw, 2.6rem) "Barlow Condensed", sans-serif; text-transform: uppercase; }
.level-replay__heading p { margin: 0; color: #839da9; }
.level-replay__heading > strong { color: var(--world-accent); font: 900 1.3rem "Barlow Condensed", sans-serif; text-align: right; text-transform: uppercase; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.level-choice { min-height: 6.5rem; display: grid; align-content: center; gap: .2rem; border: 1px solid rgba(122, 204, 234, .22); border-radius: .65rem; padding: .8rem; color: #dff8ff; background: rgba(5, 18, 28, .8); text-align: left; cursor: pointer; }
.level-choice span, .level-choice small { color: #718e9b; font: 800 .7rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.level-choice b { font: 900 1rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.level-choice.is-selected { border-color: var(--world-accent); background: color-mix(in srgb, var(--world-accent) 12%, rgba(5, 18, 28, .9)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--world-accent) 25%, transparent), 0 0 1.4rem color-mix(in srgb, var(--world-accent) 13%, transparent); }
.level-choice.is-selected small { color: var(--world-accent); }

/* Progress */
.progress-dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.beacon-panel { max-width: 1100px; margin-top: 1rem; padding: clamp(1.2rem, 3vw, 2rem); }
.beacon-panel__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.beacon-panel__heading h3 { margin: .3rem 0; font: 900 clamp(1.8rem, 4vw, 2.8rem) "Barlow Condensed", sans-serif; text-transform: uppercase; }
.beacon-panel__heading p { margin: 0; color: #94adb8; line-height: 1.5; }
.beacon-panel__heading > strong { flex: 0 0 auto; color: #c8f7ff; font: 900 1.45rem "Barlow Condensed", sans-serif; }
.beacon-progress-bar { height: .45rem; overflow: hidden; margin: 1.1rem 0; border-radius: 99px; background: #152631; }
.beacon-progress-bar i { display: block; width: var(--beacon-progress, 0%); height: 100%; background: linear-gradient(90deg, var(--cyan), #fff09b); box-shadow: 0 0 .8rem rgba(103, 230, 255, .5); transition: width .25s ease; }
.beacon-emblem-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
.beacon-emblem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem; align-items: center; min-width: 0; padding: .7rem; border: 1px solid rgba(126, 199, 227, .16); border-radius: .55rem; background: rgba(2, 10, 17, .42); }
.beacon-emblem > span { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border: 1px solid rgba(126, 199, 227, .28); border-radius: 50%; color: #6f8995; }
.beacon-emblem strong, .beacon-emblem small { display: block; overflow: hidden; text-overflow: ellipsis; }
.beacon-emblem strong { color: #a8bcc5; font: 800 .82rem "Barlow Condensed", sans-serif; white-space: nowrap; }
.beacon-emblem small { margin-top: .15rem; color: #667f8b; font: 700 .56rem "Barlow Condensed", sans-serif; letter-spacing: .05em; }
.beacon-emblem p { grid-column: 1 / -1; margin: .35rem 0 0; color: #708a96; font-size: .62rem; line-height: 1.35; }
.beacon-emblem.is-earned { border-color: color-mix(in srgb, var(--beacon-accent) 52%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--beacon-accent) 12%, transparent), rgba(2, 10, 17, .48)); }
.beacon-emblem.is-earned > span { color: #061117; border-color: var(--beacon-accent); background: var(--beacon-accent); box-shadow: 0 0 .7rem color-mix(in srgb, var(--beacon-accent) 42%, transparent); }
.beacon-emblem.is-earned strong { color: #f3fbff; }
.beacon-emblem.is-earned small { color: var(--beacon-accent); }
.beacon-emblem.is-current { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.rank-card { min-height: 230px; display: grid; place-content: center; justify-items: center; padding: 1.4rem; text-align: center; background: linear-gradient(145deg, rgba(12, 42, 54, .96), rgba(3, 11, 18, .96)); }
.rank-card > span { color: #7895a3; font: 700 .72rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.rank-card > strong { color: var(--cyan); font: 900 6rem/.92 "Barlow Condensed", sans-serif; text-shadow: 0 0 2rem rgba(99, 230, 255, .26); }
.rank-card > small { color: #cee4ed; font-weight: 700; }
.rank-card--math > strong { color: #ff6e50; text-shadow: 0 0 2rem rgba(255, 78, 47, .24); }
.record-card { grid-column: span 2; display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
.record-card > div { display: grid; place-content: center; padding: 1.2rem; border-right: 1px solid rgba(127, 199, 227, .14); border-bottom: 1px solid rgba(127, 199, 227, .14); }
.record-card > div:nth-child(even) { border-right: 0; }
.record-card > div:nth-child(n+3) { border-bottom: 0; }
.record-card span { color: #728e9b; font: 700 .75rem "Barlow Condensed", sans-serif; letter-spacing: .07em; }
.record-card strong { font: 900 2rem "Barlow Condensed", sans-serif; }
.loadout-card { grid-column: span 2; padding: 1.5rem; text-align: center; }
.loadout-weapon { color: var(--cyan); font-size: 4.8rem; text-shadow: 0 0 2rem var(--cyan); }
.loadout-card h3 { margin: 0; font: 900 2rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.loadout-card p { color: #7f99a6; }

/* Settings */
.settings-card { max-width: 850px; padding: .4rem 1.4rem; }
.setting-row { min-height: 5.6rem; display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(126, 199, 227, .14); }
.setting-row:last-child { border: 0; }
.setting-row b, .setting-row small { display: block; }
.setting-row b { margin-bottom: .3rem; font-size: 1rem; }
.setting-row small { color: #7994a2; line-height: 1.4; }
.setting-row select { min-width: 8rem; min-height: 3rem; border: 1px solid rgba(123, 203, 234, .3); border-radius: .45rem; padding: 0 .8rem; color: white; background: #0c1e2b; font-weight: 700; }
.range-control { min-width: min(15rem, 42vw); display: grid; grid-template-columns: minmax(8rem, 1fr) 3.2rem; gap: .75rem; align-items: center; }
.range-control input[type="range"] { width: 100%; min-height: 2.75rem; margin: 0; accent-color: var(--cyan); cursor: pointer; }
.range-control output { color: #dff9ff; font: 800 .85rem "Barlow Condensed", sans-serif; text-align: right; }
.range-control input[type="range"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: .2rem; border-radius: .35rem; }
.toggle { appearance: none; position: relative; width: 3.5rem; height: 2rem; margin: 0; border: 1px solid rgba(116, 185, 211, .35); border-radius: 99px; background: #192a34; cursor: pointer; }
.toggle::before { content: ""; position: absolute; top: .22rem; left: .24rem; width: 1.4rem; aspect-ratio: 1; border-radius: 50%; background: #738d9a; transition: transform .2s ease, background .2s ease; }
.toggle:checked { background: rgba(62, 216, 166, .2); border-color: #5df0bd; }
.toggle:checked::before { transform: translateX(1.45rem); background: #78f5ca; }
.toggle-label { min-width: 2.1rem; color: #708b98; font: 800 .75rem "Barlow Condensed", sans-serif; }
.setting-row--danger { margin-top: .5rem; }

.defeat-dialog { width: min(520px, calc(100vw - 2rem)); border: 1px solid rgba(255, 82, 58, .38); border-radius: 1rem; padding: 0; color: white; background: linear-gradient(145deg, #111f2c, #060b12); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.defeat-dialog::backdrop { background: rgba(0, 3, 8, .78); backdrop-filter: blur(8px); }
.defeat-dialog form { display: grid; gap: .7rem; padding: 2rem; text-align: center; }
.defeat-dialog h2 { margin: .2rem 0; font: 900 3.4rem/.9 "Barlow Condensed", sans-serif; }
.defeat-dialog p { margin: .4rem 0 1rem; color: #93aab5; line-height: 1.55; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 1.2rem; max-width: calc(100vw - 2rem); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; padding: .8rem 1.1rem; border: 1px solid rgba(99, 230, 255, .35); border-radius: .5rem; color: #e8faff; background: rgba(3, 13, 21, .94); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); font-weight: 700; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@media (max-width: 1000px) {
  .blaster-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .progress-dashboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .topbar { min-height: 4rem; }
  .home-screen { padding-top: 5.6rem; }
  .home-content { grid-template-columns: 1fr; gap: 2rem; }
  .brand-lockup--home h1 { font-size: clamp(3.8rem, 16vw, 6rem); }
  .mission-card { max-width: 580px; }
  .home-footer { grid-template-columns: 1fr; gap: .5rem; }
  .home-footer > div { padding: .25rem 0; border: 0; grid-template-columns: 9rem 1fr; }
  .math-layout { grid-template-columns: 1fr; }
  .round-sidebar { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; }
  .round-sidebar .back-link, .round-sidebar > p, .seal-grid { grid-column: 1 / -1; }
  .math-level-card { min-width: 180px; align-self: end; }
  .battle-weapon { width: min(64vw, 440px); bottom: -14%; }
}

@media (max-width: 620px) {
  .topbar { padding: .6rem .8rem; }
  .brand-button { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; }
  .brand-button > span:last-child, .topbar-stats small { display: none; }
  .topbar-stats { gap: .35rem; }
  .topbar-stats > span { min-height: 2.1rem; padding: .4rem .55rem; }
  .panel-screen { padding: 6.4rem 1rem 2rem; }
  .home-screen { padding-inline: 1rem; }
  .home-actions { grid-template-columns: 1fr; }
  .home-footer { margin-inline: -1rem; padding-inline: 1rem; }
  .mission-heading h2 { font-size: 2.1rem; }
  .round-sidebar { display: block; }
  .round-sidebar > p { display: none; }
  .round-sidebar h2 { font-size: 2rem; }
  .math-level-card { display: none; }
  .question-card { padding: 1.1rem; }
  .problem-wrap { min-height: 9rem; }
  .problem { font-size: clamp(3.1rem, 15vw, 4.7rem); }
  .answer-form { grid-template-columns: 1fr; }
  .answer-form input { height: 4rem; }
  .number-pad { display: grid; }
  .unlock-content h2 { font-size: clamp(3.6rem, 19vw, 5.4rem); }
  .battle-hud { inset: .6rem .6rem auto; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .battle-level { display: none; }
  .battle-stat { padding: .6rem .7rem; }
  .battle-stat--targets { width: 100%; }
  .battle-tip { top: 4.7rem; }
  .monster { width: clamp(7rem, 34vw, 11rem); }
  .battle-weapon { width: min(86vw, 400px); bottom: -10%; }
  .weapon-readout { display: none; }
  .crosshair { display: none; }
  .reward-grid { grid-template-columns: 1fr; }
  .reward-grid > div { display: grid; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid rgba(125, 200, 230, .15); text-align: left; }
  .reward-grid > div:last-child { border-bottom: 0; }
  .reward-grid small { display: none; }
  .reward-grid strong { margin: 0; font-size: 1.8rem; }
  .result-badge { margin-top: -4.6rem; }
  .result-actions.is-checkpoint { grid-template-columns: 1fr; }
  .adventure-briefing__top { align-items: flex-start; flex-direction: column; gap: .18rem; }
  .blaster-grid { grid-template-columns: 1fr; }
  .blaster-card { min-height: 350px; }
  .level-replay__heading { display: block; }
  .level-replay__heading > strong { display: block; margin-top: .8rem; text-align: left; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-dashboard { grid-template-columns: 1fr 1fr; }
  .rank-card { min-height: 180px; }
  .rank-card > strong { font-size: 4.7rem; }
  .record-card, .loadout-card { grid-column: 1 / -1; }
  .setting-row { grid-template-columns: 1fr auto; }
  .setting-row .toggle-label { display: none; }
}

.challenge-panel { max-width: 1100px; margin-top: 1rem; padding: clamp(1.2rem, 3vw, 2rem); }
.challenge-heading { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; }
.challenge-heading h3 { margin: .3rem 0; font: 900 clamp(1.8rem, 4vw, 2.8rem) "Barlow Condensed", sans-serif; text-transform: uppercase; }
.challenge-heading p { margin: 0; color: #94adb8; }
.challenge-heading > strong { color: #a7c5d1; font: 900 1.4rem "Barlow Condensed", sans-serif; }
.armour-badge { display: grid; place-items: center; width: 4.2rem; aspect-ratio: 1; border: 1px solid #557381; border-radius: 50%; color: #668997; background: rgba(5, 15, 23, .72); font-size: 2rem; }
.armour-badge.is-unlocked { color: #baf5ff; border-color: #8ee8ff; background: radial-gradient(circle, #397493, #0a2334); box-shadow: 0 0 1.5rem rgba(91, 219, 255, .42); }
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.2rem; }
.challenge-card { padding: 1rem; border: 1px solid rgba(125, 201, 231, .18); border-radius: .65rem; background: rgba(2, 10, 17, .42); }
.challenge-card > span { color: #7e98a4; font: 800 .68rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.challenge-card h4 { margin: .35rem 0; font: 900 1.3rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.challenge-card p { margin: 0; color: #8fa7b2; font-size: .82rem; line-height: 1.5; }
.challenge-card.is-complete { border-color: #71eabf; background: linear-gradient(145deg, rgba(45, 181, 138, .14), rgba(2, 10, 17, .42)); }
.challenge-card.is-complete > span { color: #7ff1c9; }
.challenge-fairness { margin: 1rem 0 0; color: #6f8b98; font-size: .76rem; }
.codex-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .8fr); gap: 1rem; max-width: 1100px; margin-top: 1rem; padding: clamp(1.2rem, 3vw, 2rem); }
.codex-panel h3 { margin: .3rem 0; font: 900 clamp(1.8rem, 4vw, 2.8rem) "Barlow Condensed", sans-serif; text-transform: uppercase; }
.codex-panel p { margin: .25rem 0 0; color: #91aab6; line-height: 1.5; }
.codex-current { padding: 1rem; border: 1px solid rgba(119, 215, 255, .2); border-radius: .65rem; background: rgba(2, 10, 17, .45); }
.codex-current > span { color: #75d8ff; font: 800 .68rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.codex-current strong { display: block; margin-top: .35rem; font: 900 1.4rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.boss-chest { display: grid; gap: .25rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid #ffc15c; border-radius: .65rem; background: linear-gradient(135deg, rgba(255, 171, 57, .16), rgba(37, 16, 5, .5)); text-align: left; }
.boss-chest > span { color: #ffd88a; font: 900 .72rem "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.boss-chest > strong { color: #fff4c9; font: 900 1.35rem "Barlow Condensed", sans-serif; }
.boss-chest > small { color: #bda87c; }

@media (max-width: 700px) {
  .home-footer { grid-template-columns: repeat(2, 1fr); }
  .home-footer > div:nth-child(2) { border-right: 0; }
  .challenge-heading { grid-template-columns: 1fr auto; }
  .challenge-heading > strong { grid-column: 1 / -1; }
  .challenge-grid { grid-template-columns: 1fr; }
  .codex-panel { grid-template-columns: 1fr; }
  .beacon-emblem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beacon-panel__heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 400px) {
  .progress-dashboard { grid-template-columns: 1fr; }
  .record-card, .loadout-card { grid-column: 1; }
  .reward-grid > div { padding: .8rem; }
  .question-topline { font-size: .7rem; }
  .beacon-emblem { grid-template-columns: 1.45rem minmax(0, 1fr); gap: .4rem; padding: .55rem; }
  .beacon-emblem > span { width: 1.45rem; }
  .beacon-emblem strong { white-space: normal; line-height: 1.05; }
}

/* Accessibility and parent controls */
.visually-hidden { 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; }
.skip-link { position: fixed; z-index: 1000; top: .6rem; left: .6rem; transform: translateY(-180%); padding: .75rem 1rem; border-radius: .45rem; color: #021018; background: #b8f7ff; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
body :is(button, input, select, a):focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(31, 174, 255, .72) !important; }

.maths-coach { padding: 1.1rem; }
.maths-coach h3 { margin: .55rem 0 .9rem; font: 800 1.45rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.maths-coach h4 { margin: .8rem 0 .25rem; color: #ffd983; font: 800 .9rem "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.maths-coach .coach-part { padding: .1rem 0; }
.maths-coach .coach-steps { display: grid; gap: .45rem; margin: .65rem 0; padding-left: 1.45rem; color: #e8f3f6; font-size: .9rem; line-height: 1.5; }
.maths-coach .coach-steps li::marker { color: #ffd16d; font-weight: 900; }
.coach-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.coach-actions button { min-height: 2.8rem; padding: .65rem .85rem; font-size: .78rem; }

.page-actions { margin-top: 1.2rem; }
.journey-screen { background: radial-gradient(circle at 75% 0%, rgba(71, 183, 215, .12), transparent 35%), #06101a; }
.journey-summary { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin-bottom: 1rem; overflow: hidden; }
.journey-summary > div { display: grid; justify-items: center; gap: .15rem; padding: 1rem; border-right: 1px solid rgba(126, 201, 231, .15); text-align: center; }
.journey-summary > div:last-child { border: 0; }
.journey-summary span, .journey-summary small { color: #76929f; font: 700 .65rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.journey-summary strong { color: #f4fcff; font: 900 2.2rem "Barlow Condensed", sans-serif; }
.journey-chapters { display: grid; gap: 1rem; max-width: 1180px; }
.journey-chapter { padding: clamp(1rem, 2.5vw, 1.6rem); border-top: .16rem solid var(--journey-accent, var(--cyan)); }
.journey-chapter__summary { cursor: pointer; list-style: none; }
.journey-chapter__summary::-webkit-details-marker { display: none; }
.journey-chapter__summary::before { content: "+"; float: right; margin: .05rem 0 0 .8rem; color: var(--journey-accent, var(--cyan)); font: 900 1.5rem/1 "Barlow Condensed", sans-serif; }
.journey-chapter[open] > .journey-chapter__summary::before { content: "−"; }
.journey-chapter__summary:focus-visible { outline: 3px solid #fff; outline-offset: .4rem; border-radius: .25rem; }
.journey-chapter__heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.journey-chapter__heading > div > strong { display: block; margin: .2rem 0; color: #f5fcff; font: 900 1.8rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.journey-chapter__heading p { max-width: 70ch; margin: 0; color: #91aab5; line-height: 1.45; }
.journey-chapter__heading > strong { flex: none; color: var(--journey-accent, var(--cyan)); font: 900 1rem "Barlow Condensed", sans-serif; }
.journey-facets { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.journey-facets span { padding: .4rem .6rem; border: 1px solid rgba(123, 199, 228, .15); border-radius: 99px; color: #708995; background: rgba(1, 8, 14, .35); font: 700 .68rem "Barlow Condensed", sans-serif; }
.journey-facets span.is-earned { color: #071016; border-color: var(--journey-accent, var(--cyan)); background: var(--journey-accent, var(--cyan)); }
.journey-monster-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.journey-monster { position: relative; min-height: 9.5rem; padding: .75rem; border: 1px solid rgba(124, 199, 227, .14); border-radius: .58rem; background: rgba(1, 8, 14, .42); }
.journey-monster > div { display: flex; justify-content: space-between; gap: .4rem; color: #68838f; font: 700 .58rem "Barlow Condensed", sans-serif; letter-spacing: .07em; }
.journey-monster > div b { color: #7894a0; }
.journey-monster h4 { margin: .55rem 0 .35rem; color: #b6cad3; font: 900 1rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.journey-monster p { margin: 0 0 .7rem; color: #718995; font-size: .68rem; line-height: 1.4; }
.journey-monster.is-spotted { border-color: rgba(99, 230, 255, .34); }
.journey-monster.is-spotted > div b { color: var(--cyan); }
.journey-monster.is-mastered { border-color: color-mix(in srgb, var(--journey-accent) 48%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--journey-accent) 10%, transparent), rgba(1, 8, 14, .5)); }
.journey-monster.is-mastered > div b, .journey-monster.is-mastered h4 { color: var(--journey-accent, #fff); }
.journey-boss-marker { display: inline-block; margin-top: .25rem; padding: .2rem .38rem; border: 1px solid rgba(255, 194, 91, .35); border-radius: .25rem; color: #ffc968; font: 800 .56rem "Barlow Condensed", sans-serif; letter-spacing: .07em; }
.journey-hero-score { display: block; position: absolute; right: .75rem; bottom: .65rem; left: .75rem; color: #d9ebf1; font: 800 .62rem "Barlow Condensed", sans-serif; letter-spacing: .05em; }
.mission-badges { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: .28rem !important; margin-top: .55rem; padding-bottom: 1.35rem; }
.mission-badges span { padding: .18rem .32rem; border: 1px solid rgba(126, 201, 231, .14); border-radius: 99px; color: #667f8a; background: rgba(1, 8, 14, .45); font: 700 .52rem "Barlow Condensed", sans-serif; letter-spacing: .035em; }
.mission-badges span.is-earned { color: #061018; border-color: var(--journey-accent, var(--cyan)); background: var(--journey-accent, var(--cyan)); }

.profile-frame-workshop { max-width: 1180px; margin-bottom: 1rem; padding: clamp(1rem, 2.5vw, 1.6rem); }
.profile-frame-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, .38fr); gap: 1rem; align-items: center; }
.profile-frame-heading h3 { margin: .2rem 0; color: #f5fcff; font: 900 1.8rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.profile-frame-heading > div:first-child p { max-width: 65ch; margin: 0; color: #91aab5; line-height: 1.45; }
.journey-profile-frame { display: grid; grid-template-columns: auto 1fr; gap: .1rem .65rem; padding: .8rem; border: 1px solid var(--profile-frame-accent, var(--cyan)); border-radius: .65rem; background: linear-gradient(135deg, color-mix(in srgb, var(--profile-frame-accent, var(--cyan)) 16%, transparent), rgba(1, 8, 14, .56)); box-shadow: 0 0 1.4rem color-mix(in srgb, var(--profile-frame-accent, var(--cyan)) 15%, transparent); }
.journey-profile-frame > span { grid-row: 1 / 3; align-self: center; color: var(--profile-frame-accent, var(--cyan)); font-size: 1.8rem; }
.journey-profile-frame strong { color: #fff; font: 900 1rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.journey-profile-frame p { margin: 0; color: #91aab5; font-size: .68rem; line-height: 1.35; }
.profile-frame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
.profile-frame-card { display: grid; grid-template-columns: auto 1fr; gap: .45rem .6rem; align-items: center; min-width: 0; padding: .7rem; border: 1px solid rgba(126, 201, 231, .14); border-radius: .55rem; background: rgba(1, 8, 14, .42); }
.profile-frame-card > span { color: #66828f; font-size: 1.25rem; }
.profile-frame-card strong { color: #c1d3db; font: 900 .95rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.profile-frame-card p { margin: .15rem 0 0; color: #718995; font-size: .66rem; line-height: 1.35; }
.profile-frame-card button { grid-column: 1 / -1; width: 100%; min-height: 2.75rem; }
.profile-frame-card.is-unlocked { border-color: color-mix(in srgb, var(--profile-frame-accent) 45%, transparent); }
.profile-frame-card.is-unlocked > span, .profile-frame-card.is-equipped strong { color: var(--profile-frame-accent); }
.profile-frame-card.is-equipped { background: linear-gradient(145deg, color-mix(in srgb, var(--profile-frame-accent) 12%, transparent), rgba(1, 8, 14, .52)); }

.expedition-screen { background: radial-gradient(circle at 18% 0%, rgba(110, 225, 255, .1), transparent 34%), #06101a; }
.expedition-summary { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin-bottom: .8rem; overflow: hidden; }
.expedition-summary > div { display: grid; justify-items: center; gap: .12rem; padding: .9rem; border-right: 1px solid rgba(126, 201, 231, .15); text-align: center; }
.expedition-summary > div:last-child { border: 0; }
.expedition-summary span, .expedition-summary small { color: #76929f; font: 700 .65rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.expedition-summary strong { color: #f4fcff; font: 900 2rem "Barlow Condensed", sans-serif; }
.expedition-fairness { max-width: 78ch; margin: 0 0 1rem; color: #87a3af; font-size: .75rem; line-height: 1.45; }
.expedition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 1180px; }
.expedition-card { display: grid; gap: .85rem; padding: clamp(1rem, 2.5vw, 1.4rem); border-top: .16rem solid var(--expedition-accent, var(--cyan)); }
.expedition-card__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: start; }
.expedition-card h3 { margin: .18rem 0; color: #f5fcff; font: 900 1.65rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.expedition-card__header p, .expedition-status { margin: 0; color: #91aab5; font-size: .74rem; line-height: 1.45; }
.expedition-crest { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border: 1px solid var(--expedition-accent); border-radius: 50%; color: var(--expedition-accent); background: color-mix(in srgb, var(--expedition-accent) 8%, #06101a); font-size: 1.35rem; }
.expedition-card.is-completed .expedition-crest { color: #061018; background: var(--expedition-accent); box-shadow: 0 0 1.3rem color-mix(in srgb, var(--expedition-accent) 25%, transparent); }
.expedition-waves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.expedition-waves li { min-width: 0; padding: .6rem; border: 1px solid rgba(126, 201, 231, .14); border-radius: .45rem; background: rgba(1, 8, 14, .4); }
.expedition-waves span { color: var(--expedition-accent); font: 800 .62rem "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.expedition-waves p { margin: .25rem 0 0; color: #9cb2bc; font-size: .65rem; line-height: 1.4; overflow-wrap: anywhere; }
.expedition-card > button { width: 100%; min-height: 2.8rem; }
.expedition-card.is-locked { border-top-color: #536873; opacity: .76; }
.expedition-card.is-locked .expedition-crest { border-color: #536873; color: #607681; }
.parent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 1180px; }
.parent-card { padding: clamp(1.2rem, 3vw, 2rem); }
.parent-card--wide { grid-column: 1 / -1; }
.parent-card h3 { margin: .35rem 0 .65rem; font: 900 2rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.parent-card > p { color: #9bb2bd; line-height: 1.6; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.topic-card { padding: .9rem; border: 1px solid rgba(123, 203, 234, .2); border-radius: .6rem; background: rgba(2, 10, 17, .38); }
.topic-card > div:first-child { display: flex; justify-content: space-between; gap: .6rem; }
.topic-card h4 { margin: 0; font: 800 1.1rem "Barlow Condensed", sans-serif; }
.topic-card span, .topic-card small { color: #7894a1; font-size: .72rem; }
.topic-card strong { display: block; margin: .6rem 0 .35rem; font: 900 1.4rem "Barlow Condensed", sans-serif; }
.topic-card p { margin: .55rem 0 0; color: #a6bdc6; font-size: .78rem; line-height: 1.45; }
.mastery-bar { height: .4rem; overflow: hidden; border-radius: 99px; background: #152631; }
.mastery-bar i { display: block; width: var(--mastery); height: 100%; background: linear-gradient(90deg, var(--cyan), #79f2bd); }
.practice-note { margin-top: 1rem; padding: .85rem 1rem; border-left: 3px solid var(--cyan); color: #d9eff6; background: rgba(85, 203, 235, .08); line-height: 1.5; }
.player-slots { display: grid; gap: .65rem; margin-top: 1rem; }
.player-slot { display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; align-items: center; padding: .8rem; border: 1px solid rgba(121, 195, 224, .18); border-radius: .6rem; background: rgba(2, 10, 17, .38); }
.player-slot.is-active { border-color: var(--cyan); }
.player-slot label { color: #7894a1; font-size: .72rem; }
.player-slot input { display: block; width: 100%; margin-top: .25rem; border: 1px solid rgba(123, 203, 234, .28); border-radius: .4rem; padding: .55rem .65rem; color: #fff; background: #0a1a26; font-weight: 700; }
.player-slot span { color: #8ca5b0; font-size: .78rem; }
.player-slot button { grid-column: 2; grid-row: 1 / span 2; min-width: 8rem; padding: .7rem; font-size: .72rem; }
.parent-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1rem; }
.parent-actions button { padding: .75rem .9rem; }
.parent-actions span { color: #7894a1; font-size: .78rem; }
.setting-row--compact { padding: .75rem 0; border-top: 1px solid rgba(126, 199, 227, .14); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 1080px; }
.privacy-grid article { padding: 1.5rem; }
.privacy-grid h3 { margin: 0 0 .55rem; font: 900 1.6rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.privacy-grid p { margin: 0; color: #9bb2bd; line-height: 1.65; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 1180px; }
.support-grid article, .support-story, .support-checkout { padding: clamp(1.25rem, 3vw, 2rem); }
.support-grid h3, .support-story h3, .support-checkout h3 { margin: .45rem 0 .65rem; font: 900 1.7rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
.support-grid p, .support-story p, .support-checkout p { margin: 0; color: #9bb2bd; line-height: 1.65; }
.support-icon { display: grid; place-items: center; width: 2.8rem; aspect-ratio: 1; border: 1px solid rgba(99, 230, 255, .5); border-radius: 50%; color: var(--cyan); background: rgba(72, 204, 232, .08); font: 900 1.2rem "Barlow Condensed", sans-serif; }
.support-story { max-width: 1180px; margin-top: 1rem; border-color: rgba(255, 194, 90, .3); }
.support-story p + p { margin-top: .8rem; }
.support-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .65fr); gap: 1rem 2rem; align-items: center; max-width: 1180px; margin-top: 1rem; }
.support-confirmation { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border: 1px solid rgba(123, 203, 234, .22); border-radius: .6rem; color: #d9eff6; background: rgba(2, 10, 17, .38); line-height: 1.45; cursor: pointer; }
.support-confirmation input { width: 1.2rem; height: 1.2rem; margin-top: .1rem; accent-color: var(--cyan); flex: 0 0 auto; }
.support-payment-actions { grid-column: 1 / -1; }
.support-payment-actions :is(a, button) { width: min(24rem, 100%); text-decoration: none; }
.support-payment-note, .support-payment-status { grid-column: 1 / -1; }
.support-payment-note { padding-top: 1rem; border-top: 1px solid rgba(126, 199, 227, .14); font-size: .82rem; }
.support-payment-status { font-size: .78rem; }

@media (max-width: 700px) {
  .support-grid, .support-checkout { grid-template-columns: 1fr; }
}

/* Battle controls, bosses, movement feedback, and blaster-specific shots */
.battle-hud { grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr) auto; }
.battle-controls { display: flex; gap: .4rem; pointer-events: auto; }
.battle-controls button { min-height: 2.6rem; border: 1px solid rgba(148, 223, 250, .38); border-radius: .4rem; padding: 0 .75rem; color: #e6faff; background: rgba(3, 10, 16, .88); cursor: pointer; font: 800 .72rem "Barlow Condensed", sans-serif; }
.battle-controls .battle-rune { display: grid; align-content: center; min-width: 7.5rem; border-color: rgba(119, 238, 255, .7); background: linear-gradient(145deg, rgba(25, 94, 122, .96), rgba(5, 25, 39, .96)); }
.battle-rune span, .battle-rune b { display: block; }
.battle-rune span { color: white; font-size: .75rem; }
.battle-rune b { color: #91f2ff; font-size: .58rem; letter-spacing: .08em; }
.battle-rune:disabled { cursor: default; opacity: .52; filter: grayscale(.5); }
.rune-moon-shield::after, .rune-frost-pulse::after, .rune-nova-burst::after, .rune-shield-block::after { content: ""; position: absolute; inset: 0; z-index: 148; pointer-events: none; animation: rune-flash .7s ease forwards; }
.rune-moon-shield::after, .rune-shield-block::after { border: clamp(.8rem, 4vw, 3.5rem) solid rgba(131, 225, 255, .42); box-shadow: inset 0 0 4rem rgba(90, 194, 255, .3); }
.rune-frost-pulse::after { background: radial-gradient(circle, rgba(189, 244, 255, .45), rgba(72, 151, 224, .14) 45%, transparent 72%); }
.rune-nova-burst::after { background: radial-gradient(circle at 50% 76%, rgba(255, 244, 184, .6), rgba(255, 160, 69, .15) 32%, transparent 66%); }
@keyframes rune-flash { from { opacity: 1; } to { opacity: 0; } }
.monster:focus-visible { outline-offset: -.25rem; }
.monster--boss { isolation: isolate; width: clamp(7.5rem, 16vw, 13rem); transform-origin: center; filter: var(--monster-filter, none) drop-shadow(0 0 1.5rem var(--monster-glow, #ff6c45)) drop-shadow(0 1.4rem 1.4rem rgba(0, 0, 0, .8)); }
.monster--boss::before { content: ""; position: absolute; z-index: -1; inset: 8% 3% 5%; border: 1px solid color-mix(in srgb, var(--monster-glow, #ffbe55) 75%, white); border-radius: 48%; pointer-events: none; opacity: .72; background: radial-gradient(circle, color-mix(in srgb, var(--monster-glow, #ffbe55) 25%, transparent) 0 34%, transparent 68%); box-shadow: 0 0 1rem color-mix(in srgb, var(--monster-glow, #ffbe55) 58%, transparent), inset 0 0 1.4rem color-mix(in srgb, var(--monster-glow, #ffbe55) 25%, transparent); animation: boss-aura 1.9s ease-in-out infinite alternate; }
.monster--boss::after { content: ""; position: absolute; z-index: 2; inset: 13% 8% 16%; border: 1px solid color-mix(in srgb, var(--monster-glow, #ffbe55) 50%, transparent); border-radius: 50%; pointer-events: none; opacity: .48; }
.battle-boss-chapter .monster--boss::before { border-width: 2px; opacity: .88; box-shadow: 0 0 1.8rem color-mix(in srgb, var(--monster-glow, #ffe07a) 72%, transparent), inset 0 0 2rem color-mix(in srgb, var(--monster-glow, #ffe07a) 32%, transparent); }
.battle-boss-active .battle-shade { background: linear-gradient(180deg, rgba(0, 2, 5, .08), transparent 42%, rgba(1, 5, 12, .78)), radial-gradient(circle at center 58%, color-mix(in srgb, var(--boss-glow, #ffbe55) 9%, transparent), rgba(1, 5, 10, .48) 64%); }
.battle-boss-active .battle-level small { color: #ffe9a9; text-shadow: 0 0 .8rem rgba(255, 198, 91, .72); }
.monster--boss .monster-health { top: 3%; left: 12%; width: 76%; height: .38rem; }
.boss-mark { position: absolute; z-index: 4; top: -7%; left: 50%; transform: translateX(-50%); padding: .32rem .72rem; border: 1px solid #ffc15c; border-radius: 99px; color: #fff7d8; background: linear-gradient(135deg, rgba(111, 42, 9, .96), rgba(42, 16, 7, .96)); box-shadow: 0 0 0 1px rgba(255, 230, 159, .2), 0 0 1rem rgba(255, 174, 61, .52); font: 900 .68rem "Barlow Condensed", sans-serif; letter-spacing: .13em; white-space: nowrap; }
.monster--boss[data-boss-kind="chapter"] .boss-mark { border-color: #fff0a1; color: #fffbe5; background: linear-gradient(135deg, rgba(89, 49, 128, .97), rgba(39, 19, 64, .97)); box-shadow: 0 0 0 1px rgba(255, 247, 190, .25), 0 0 1.25rem rgba(205, 164, 255, .72); }
.battle-boss-defeated .battle-shade { transition: background .35s ease; }
@keyframes boss-aura { from { opacity: .52; transform: scale(.96); } to { opacity: .9; transform: scale(1.04); } }
.battle-boss-active .battle-weapon { top: 75%; bottom: auto; width: min(29vw, 320px); }
.battle-paused .monster-layer, .battle-paused .battle-weapon { filter: grayscale(.55) brightness(.7); }
.attack-thorn-burst::before, .attack-frost-slow::before, .attack-heavy-smash::before,
.attack-moon-pulse::before, .attack-spore-pop::before, .attack-crystal-chime::before,
.attack-spark-dash::before, .attack-mist-wave::before, .attack-rune-tap::before { content: ""; position: absolute; inset: 0; z-index: 149; pointer-events: none; animation: damage-flash .42s ease forwards; }
.attack-thorn-burst::before { background: radial-gradient(circle, transparent 35%, rgba(105, 255, 112, .24)); }
.attack-frost-slow::before { background: linear-gradient(135deg, rgba(158, 232, 255, .28), transparent 55%); }
.attack-heavy-smash::before { background: radial-gradient(circle at bottom, rgba(255, 78, 35, .3), transparent 55%); }
.attack-moon-pulse::before { background: radial-gradient(circle, transparent 25%, rgba(152, 199, 255, .26) 27%, transparent 48%); }
.attack-spore-pop::before { background: radial-gradient(circle at 35% 65%, rgba(138, 238, 112, .2), transparent 42%); }
.attack-crystal-chime::before { background: linear-gradient(115deg, transparent 36%, rgba(143, 245, 239, .25) 48%, transparent 60%); }
.attack-spark-dash::before { background: linear-gradient(90deg, transparent, rgba(255, 232, 132, .28), transparent); }
.attack-mist-wave::before { background: radial-gradient(ellipse at center, rgba(180, 204, 240, .2), transparent 58%); }
.attack-rune-tap::before { background: radial-gradient(circle, transparent 30%, rgba(210, 170, 255, .22) 31% 34%, transparent 35%); }
.projectile-effect { position: absolute; z-index: 126; height: .22rem; transform-origin: 0 50%; pointer-events: none; border-radius: 99px; background: var(--weapon-glow); box-shadow: 0 0 .8rem var(--weapon-glow); animation: projectile-fade .28s ease forwards; }
.impact-effect { position: absolute; z-index: 127; width: 1.1rem; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; border: .16rem solid var(--weapon-glow); border-radius: 50%; box-shadow: 0 0 1.1rem var(--weapon-glow); animation: impact-pop .36s ease forwards; }
.projectile-effect[data-effect="fang"] { height: .16rem; background: repeating-linear-gradient(90deg, #d9ffd5 0 .7rem, transparent .7rem 1rem); }
.projectile-effect[data-effect="plasma"] { height: .55rem; filter: blur(.5px); }
.projectile-effect[data-effect="storm"] { height: .12rem; background: white; box-shadow: 0 -.3rem .5rem #62a9ff, 0 .3rem .5rem #62a9ff; }
.projectile-effect[data-effect="crystal"] { height: .34rem; border-top: .12rem solid white; border-bottom: .12rem solid #36e4d2; background: transparent; }
.projectile-effect[data-effect="soul"] { height: .42rem; background: linear-gradient(90deg, transparent, #ff68dc, #fff); filter: blur(1px); }
.projectile-effect[data-effect="inferno"] { height: .6rem; background: linear-gradient(90deg, #fff0a6, #ff3f24); box-shadow: 0 0 1.2rem #ff3f24; }
.projectile-effect[data-effect="eclipse"] { height: .36rem; background: linear-gradient(90deg, #ffe276, #fff, #ffe276); box-shadow: 0 0 0 .14rem rgba(65, 41, 115, .7), 0 0 1.3rem #ffe276; }
.impact-effect[data-effect="fang"] { border-radius: 15% 60% 15% 60%; }
.impact-effect[data-effect="plasma"] { width: 1.8rem; background: rgba(180, 121, 255, .34); }
.impact-effect[data-effect="storm"] { border-style: dashed; }
.impact-effect[data-effect="crystal"] { border-radius: 15%; transform: translate(-50%, -50%) rotate(45deg); }
.impact-effect[data-effect="soul"] { border-style: dotted; }
.impact-effect[data-effect="inferno"] { width: 2rem; background: rgba(255, 74, 33, .38); }
.impact-effect[data-effect="eclipse"] { width: 2rem; border-width: .3rem; box-shadow: inset 0 0 .8rem #30205d, 0 0 1.2rem #ffe276; }
@keyframes projectile-fade { to { opacity: 0; } }
@keyframes impact-pop { from { opacity: 1; transform: translate(-50%, -50%) scale(.25); } to { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } }

body.reduce-motion .fog, body.reduce-motion .unlock-rings, body.reduce-motion .projectile-effect, body.reduce-motion .impact-effect, body.reduce-motion .shot-flash,
body.reduce-motion .battle-arena::before, body.reduce-motion .rune-moon-shield::after, body.reduce-motion .rune-frost-pulse::after,
body.reduce-motion .rune-nova-burst::after, body.reduce-motion .rune-shield-block::after { display: none !important; }
body.reduce-motion .monster, body.reduce-motion .monster-health i, body.reduce-motion .battle-weapon, body.reduce-motion .boss-ward-target { animation: none !important; transition: none !important; }

@media (max-width: 900px) {
  .home-actions { grid-template-columns: repeat(2, 1fr); }
  .journey-monster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expedition-grid { grid-template-columns: 1fr; }
  .parent-grid { grid-template-columns: 1fr; }
  .parent-card--wide { grid-column: auto; }
  .battle-hud { grid-template-columns: 1fr auto 1fr; }
  .battle-controls { grid-column: 2; grid-row: 2; justify-content: center; }
}

@media (max-width: 620px) {
  .boss-ward-layer { top: 9.4rem; width: calc(100vw - 1rem); }
  .boss-ward-label { max-width: calc(100vw - 2rem); white-space: normal; }
  .welcome-recap { grid-template-columns: 1fr; }
  .welcome-recap .eyebrow { grid-row: auto; writing-mode: initial; transform: none; }
  .welcome-recap > small { grid-column: 1; }
  .mastery-reveal { grid-template-columns: 1fr; }
  .hero-score { padding: .75rem 0 0; border-top: 1px solid rgba(128, 207, 237, .2); border-left: 0; text-align: left; }
  .journey-summary { grid-template-columns: repeat(2, 1fr); }
  .journey-summary > div:nth-child(2) { border-right: 0; }
  .journey-summary > div:nth-child(-n+2) { border-bottom: 1px solid rgba(126, 201, 231, .15); }
  .journey-chapter__heading { display: grid; }
  .journey-monster-grid { grid-template-columns: 1fr; }
  .profile-frame-heading, .profile-frame-grid { grid-template-columns: 1fr; }
  .expedition-summary { grid-template-columns: 1fr; }
  .expedition-summary > div { border-right: 0; border-bottom: 1px solid rgba(126, 201, 231, .15); }
  .expedition-summary > div:last-child { border-bottom: 0; }
  .expedition-waves { grid-template-columns: 1fr; }
  .battle-hud { grid-template-columns: 1fr 1fr; }
  .battle-controls { grid-column: 1 / -1; grid-row: 2; }
  .battle-boss-active .battle-weapon { top: auto; bottom: -10%; width: min(86vw, 400px); }
  .rune-loadout__heading { grid-template-columns: 1fr; }
  .rune-options { grid-template-columns: 1fr; }
  .rune-option { min-height: 4.4rem; }
  .topic-grid, .privacy-grid { grid-template-columns: 1fr; }
  .player-slot { grid-template-columns: 1fr; }
  .player-slot button { grid-column: 1; grid-row: auto; width: 100%; }
}

/* Review pass: put play first and disclose background detail on request. */
.mission-card > #start-game { margin-top: 1rem; }
.play-promise { color: #b9ced9; font-size: .78rem; line-height: 1.6; text-align: center; margin: .65rem 0 1.2rem; }
.next-discovery { display: flex; align-items: center; gap: 1rem; padding: 1rem; margin: 0 0 1rem; border: 1px solid #38515f; border-radius: .65rem; background: linear-gradient(125deg, #173146aa, #071320aa); }
.next-discovery img { width: 5.5rem; height: 5.5rem; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 1rem #62e5ff33); }
.next-discovery h3 { margin: .3rem 0; font: 800 1.5rem/1.05 "Barlow Condensed", sans-serif; }
.next-discovery p { margin: 0; font-size: .8rem; color: #b4cad5; line-height: 1.5; }
.next-discovery .back-link { margin: .25rem 0 0; min-height: 2.75rem; font-size: .75rem; padding: .6rem 0; text-align: left; }
.next-discovery .eyebrow { font-size: .67rem; }
.mission-details { border-top: 1px solid #304755; }
.mission-details summary { color: #b8d2df; padding: .9rem 0; cursor: pointer; min-height: 2.75rem; font-size: .85rem; }
.mission-details .welcome-recap { margin-top: .5rem; }
.mission-details .codex-briefing { margin: .8rem 0; }
.coach-request { min-height: 2.75rem; font-size: .88rem; padding: .65rem 1rem; margin-top: .45rem; }
.checkpoint-note { color: #aec4cf; font-size: .75rem; line-height: 1.5; margin: .65rem 0; }
@media (max-width: 960px) {
  .home-content { gap: 1rem; padding-top: .4rem; margin-top: 0; }
  .brand-lockup--home h1 { font-size: clamp(2rem, 6.5vw, 3rem); max-width: none; line-height: 1; }
  .brand-lockup--home h1 em { display: inline; }
  .brand-lockup--home .brand-kicker { display: none; }
  .brand-lockup--home p { font-size: .9rem; margin-top: .45rem; }
  .mission-card { max-width: none; padding: 1.2rem; }
  .mission-heading h2 { font-size: 2rem; }
  .mission-heading .level-seal { width: 3.2rem; }
  .mission-card > #start-game { min-height: 3.6rem; }
  .age-screen { gap: 1.4rem; }
  .age-screen .brand-lockup h1 { font-size: 3rem; max-width: none; line-height: .95; }
  .age-screen .brand-lockup h1 em { display: inline; }
  .age-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 430px) {
  .next-discovery { gap: .6rem; padding: .8rem; }
  .next-discovery img { width: 4rem; height: 4rem; }
  .home-actions button { min-height: 2.9rem; }
}

/* Keep the next action and stopping choice visible after a win. */
.result-screen { padding: 2rem 0; }
.result-card h2 { font-size: clamp(2.7rem, 5vw, 4rem); }
.result-actions { margin: 1.2rem 0; }
.result-actions .primary-button { min-height: 3.6rem; font-size: 1.05rem; }
:is(h1, h2)[tabindex="-1"]:focus { outline: none; }
@media (max-width: 780px) {
  .math-layout { gap: .8rem; }
  .math-layout .round-sidebar { display: block; padding: .8rem 1rem; }
  .round-sidebar .back-link { margin: 0 0 .2rem; min-height: 2.75rem; }
  .round-sidebar > .eyebrow, .round-sidebar > p, .round-sidebar .math-level-card { display: none; }
  .round-sidebar h2 { font-size: 1.55rem; margin: .15rem 0 .55rem; }
  .round-sidebar .seal-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .25rem; margin: .5rem 0 0; }
  .round-sidebar .seal-grid i { min-height: 0; font-size: .7rem; }
  .result-card { padding: 1.2rem; }
  .result-actions.is-checkpoint { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .result-actions .primary-button { padding: .7rem .5rem; font-size: .9rem; }
}
@media (max-width: 430px) { .topbar-stats small { display: inline; font-size: .58rem; } .topbar-stats > span { padding: .5rem .4rem; font-size: .8rem; } .topbar-stats { gap: .3rem; } }

/* First adventure: one clear invitation, then learning with a visible purpose. */
.welcome-screen { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; max-width: 1200px; margin: auto; padding: 3rem clamp(1.2rem, 6vw, 5rem); }
.welcome-copy { position: relative; z-index: 2; max-width: 33rem; }
.welcome-copy h1 { margin: 1rem 0; color: #e4fbff; font: 900 clamp(3.4rem, 6.5vw, 6rem)/.95 'Barlow Condensed', sans-serif; letter-spacing: -.03em; }
.welcome-copy h1 em { color: #ff6145; font-style: normal; }
.welcome-lead { color: #c0d9e3; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.5; margin: 1.4rem 0; }
.welcome-copy .primary-button { width: 100%; }
.welcome-promise { margin: .8rem 0; text-align: center; color: #b7d2dc; font-size: .83rem; }
.welcome-copy .back-link { display: block; min-height: 44px; margin: .2rem auto; }
.welcome-player { opacity: .8; font-size: .73rem; }
.welcome-monster { position: relative; display: grid; place-items: center; min-height: 470px; }
.welcome-monster img { position: relative; z-index: 1; width: min(100%, 340px); height: 450px; object-fit: contain; filter: drop-shadow(0 0 50px #51b6bd55); }
.welcome-orbit { position: absolute; width: 90%; aspect-ratio: 1; border: 1px solid #89ebed55; border-radius: 50%; box-shadow: 0 0 0 30px #65d7df08, 0 0 0 60px #65d7df05, inset 0 0 80px #65d7df15; }
.welcome-monster-label { position: absolute; bottom: 0; color: #86c5ce; font: 800 .8rem 'Barlow Condensed', sans-serif; letter-spacing: .2em; }
.practice-end-screen { display: grid; place-items: center; padding: 2rem 1rem; }
.practice-end-card { width: min(100%, 610px); padding: clamp(1.3rem, 4vw, 3rem); text-align: center; }
.practice-sigil { display: block; color: #93f9eb; font-size: 4rem; text-shadow: 0 0 30px #7fffe844; }
.practice-end-card h2 { font: 900 clamp(2.2rem, 5vw, 3.5rem)/1 'Barlow Condensed', sans-serif; margin: .8rem 0; }
.practice-end-card > p { color: #c5dce4; line-height: 1.75; }
.practice-end-card .primary-button { width: 100%; }
.practice-end-card > .back-link { margin-top: .8rem; min-height: 44px; }
.adventure-promise { display: flex; justify-content: space-around; gap: .7rem; margin: 1.7rem 0; }
.adventure-promise span { color: #92ece6; font-size: 1.8rem; }
.adventure-promise b { display: block; margin-top: .5rem; color: #bfd6e0; font: 700 .75rem 'Barlow Condensed', sans-serif; }
.practice-replay { display: block; margin: .8rem auto 0; min-height: 44px; font-size: .73rem; }
.encounter-banner { position: absolute; z-index: 110; top: 8.6rem; left: 50%; transform: translateX(-50%); width: min(90%, 35rem); padding: .65rem 1rem; border: 1px solid #81dada45; border-radius: .65rem; background: #071524ed; text-align: center; pointer-events: none; }
.encounter-banner strong { color: #a3f4ed; font: 800 .9rem 'Barlow Condensed', sans-serif; letter-spacing: .1em; }
#battle-wave { display: block; color: #9df5e8; font: 800 .65rem 'Barlow Condensed', sans-serif; letter-spacing: .1em; padding: .2rem 0; }
#battle-wave[hidden] { display: none; }
.encounter-banner p { margin: .3rem 0 0; color: #d5e6eb; font-size: .74rem; line-height: 1.4; }
.battle-tip { max-width: 90%; text-align: center; white-space: normal; }
.monster--crystal-shield .monster-health { visibility: hidden; }
.crystal-shield-label { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); padding: .35rem .55rem; border: 1px solid #b5faff; border-radius: .3rem; color: #eaffff; background: #063047; white-space: nowrap; font: 900 .85rem 'Barlow Condensed', sans-serif; }
body[data-practice] .battle-stat--health, body[data-practice] .battle-rune, body[data-practice] .battle-level b { display: none; }
body[data-practice] .battle-hud { grid-template-columns: 1fr auto; }
body[data-practice] .battle-level { text-align: left; }
body[data-practice] .battle-stat--targets { text-align: right; }
body[data-practice] .battle-controls { grid-column: 1 / -1; justify-content: center; }
body[data-practice] .battle-tip { animation: none; top: auto; bottom: 1rem; z-index: 130; background: #071524ed; }
body[data-practice] .encounter-banner { top: 9.4rem; }
body[data-practice] .battle-weapon { bottom: -15%; width: min(38vw, 400px); max-height: 63vh; }
.sanctuary-card { overflow: hidden; margin: 0 0 1rem; border: 1px solid #4a727966; border-radius: .7rem; background: #091725; }
.sanctuary-scene { display: block; width: 100%; height: auto; max-height: 210px; }
.sanctuary-caption { padding: .75rem 1rem; border-top: 1px solid #587d8844; }
.sanctuary-caption > strong { display: block; margin-top: .25rem; color: #e1f6ee; font: 800 1.2rem 'Barlow Condensed', sans-serif; }
.sanctuary-caption > p { margin: .35rem 0 .6rem; color: #bdd3dc; font-size: .76rem; line-height: 1.5; }
.sanctuary-milestones { display: flex; flex-wrap: wrap; gap: .45rem .9rem; font-size: .65rem; color: #9bb3bd; }
.sanctuary-milestones .is-restored { color: #a9f4da; }
.sanctuary-scene .sanctuary-lantern { opacity: .22; }
.sanctuary-scene .sanctuary-trail, .sanctuary-scene .sanctuary-bridge, .sanctuary-scene .beacon-beam, .sanctuary-scene .beacon-light { opacity: 0; }
.sanctuary-step-1 .sanctuary-lantern, .sanctuary-step-2 .sanctuary-lantern, .sanctuary-step-3 .sanctuary-lantern, .sanctuary-step-4 .sanctuary-lantern { opacity: 1; }
.sanctuary-step-2 .sanctuary-trail, .sanctuary-step-3 .sanctuary-trail, .sanctuary-step-4 .sanctuary-trail, .sanctuary-step-3 .sanctuary-bridge, .sanctuary-step-4 .sanctuary-bridge, .sanctuary-step-4 .beacon-light { opacity: 1; }
.sanctuary-step-3 .broken-bridge, .sanctuary-step-4 .broken-bridge { opacity: 0; }
.sanctuary-step-4 .beacon-beam { opacity: .35; }
.sanctuary-step-4 .sanctuary-mist { opacity: .04; }
.sanctuary-card--result { display: grid; grid-template-columns: 1fr 1fr; margin: 1rem 0; text-align: left; }
.sanctuary-card--result .sanctuary-scene { align-self: center; }
.sanctuary-card--result .sanctuary-caption { border: 0; align-self: center; }
.sanctuary-card--result .sanctuary-milestones { display: none; }
@media (max-width: 780px) {
  .welcome-screen { grid-template-columns: 1fr; padding: 1.5rem; gap: 0; align-content: center; }
  body[data-practice] .battle-weapon { width: min(68vw, 320px); bottom: -8%; }
  .welcome-copy { width: 100%; max-width: 31rem; margin: auto; }
  .welcome-copy h1 { font-size: clamp(3rem, 10vw, 4.5rem); }
  .welcome-monster { position: absolute; right: -1rem; top: 3rem; min-height: 0; width: 45%; opacity: .17; pointer-events: none; }
  .welcome-monster img { width: 100%; height: 300px; }
  .welcome-monster-label, .welcome-orbit { display: none; }
  .welcome-lead { margin: 1.2rem 0; }
  .encounter-banner { top: 9.3rem; }
  .battle-tip { top: auto; bottom: .5rem; font-size: .67rem; }
  .sanctuary-card--result { grid-template-columns: 42% 58%; }
  .sanctuary-card--result .sanctuary-caption { padding: .6rem; }
  .sanctuary-card--result .sanctuary-caption strong { font-size: 1rem; }
  .sanctuary-card--result .sanctuary-caption p { font-size: .7rem; }
  .sanctuary-card--result .eyebrow { font-size: .55rem; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .encounter-banner { top: 5.5rem; width: min(70%, 35rem); padding: .35rem .7rem; }
  .encounter-banner p { font-size: .65rem; }
  body[data-practice] .encounter-banner { top: 5.7rem; }
}
@media (max-width: 1000px) and (max-height: 530px) and (orientation: landscape) {
  .encounter-banner { top: 9rem; padding: .25rem .7rem; }
  .encounter-banner strong { font-size: .75rem; }
  .encounter-banner p { display: none; }
}
.power-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.power-option { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: .6rem; min-width: 0; padding: 1rem; color: #deedf2; border: 1px solid #466271; border-radius: 1rem; background: linear-gradient(155deg, #1b3447, #0c1b2a); cursor: pointer; }
.power-option:hover { border-color: var(--power-color); background: #1b3548; }
.power-option.is-selected { border: 2px solid var(--power-color); padding: calc(1rem - 1px); box-shadow: 0 0 0 3px #83e6e914; }
.power-option strong { color: var(--power-color); font: 800 1.65rem 'Barlow Condensed', sans-serif; }
.power-option > span:not(.power-demo) { font-size: .88rem; line-height: 1.5; }
.power-option small { margin-top: auto; padding-top: .35rem; color: var(--power-color); font-size: .7rem; letter-spacing: .09em; font-weight: 800; }
.power-demo { display: block; position: relative; overflow: hidden; height: 100px; border-radius: .65rem; background: #081522; }
.power-demo i { display: block; position: absolute; }
.demo-blaster { width: 13px; height: 28px; background: #7393a8; bottom: 8px; left: calc(50% - 6px); border-radius: 4px 4px 1px 1px; }
.demo-target { width: 19px; height: 24px; border-radius: 45% 45% 30% 30%; background: #ad85b3; top: 24px; box-shadow: inset -5px -4px #0003; }
.demo-target::after { content: '••'; color: #0a1a26; position: absolute; top: 1px; left: 4px; font-size: 15px; letter-spacing: 1px; }
.demo-target--one { left: calc(50% - 9px); }.demo-target--two { left: calc(23% - 9px); }.demo-target--three { left: calc(77% - 9px); }
.demo-ray { left: calc(50% - 1px); top: 45px; width: 2px; height: 22px; background: var(--power-color); box-shadow: 0 0 9px var(--power-color); }
.demo-effect { left: 23%; top: 32px; width: 27%; height: 3px; background: var(--power-color); transform: rotate(-8deg); transform-origin: right; }
.power-demo--burst .demo-effect { top: 8px; left: calc(50% - 42px); width: 84px; height: 62px; border-radius: 50%; border: 3px solid var(--power-color); background: #ffd09b22; }
.power-demo--frost .demo-effect { top: 15px; left: calc(50% - 20px); width: 40px; height: 40px; border: 2px dashed var(--power-color); border-radius: 50%; background: #a4d9ff22; }
@keyframes power-demo-pulse { 0%, 25% { opacity: .15; } 45%, 80% { opacity: 1; } 100% { opacity: .15; } }
.power-demo .demo-effect, .power-demo .demo-ray { animation: power-demo-pulse 2.6s ease-in-out infinite; }
.power-selected-copy { min-height: 2.5em; color: #c0dce6; font-size: .88rem; line-height: 1.5; }
.unlock-content > p { margin: .8rem 0; }
.unlock-content > .power-selected-copy { min-height: 0; margin: .6rem 0; }
.rune-loadout > summary { min-height: 44px; align-content: center; color: #b5eaf0; cursor: pointer; font-size: .88rem; font-weight: 700; }
.rune-loadout[open] > summary { margin-bottom: .8rem; }
.power-workbench { text-align: center; padding: 1.5rem; margin: 1rem auto; max-width: 650px; }
.power-workbench p { line-height: 1.6; color: #c1d7e0; }
.power-passport { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.power-passport span { border: 1px solid #476273; border-radius: 2rem; padding: .5rem .8rem; color: #b3c8d2; font-size: .8rem; }.power-passport .is-discovered { border-color: #8ce5ce; color: #a3f1d9; }
.unlock-content { width: min(100%, 760px); }.unlock-screen { padding: 1.6rem 1rem; }.unlock-content h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }.unlock-check { font-size: 2rem; }.unlock-content .back-link { display: block; margin: .5rem auto; min-height: 44px; }.unlock-content .rune-loadout { margin: .8rem 0; }
.battle-power-readout { position: absolute; z-index: 100; left: 1rem; bottom: 1rem; color: #d0f6f2; background: #092333ee; border: 1px solid #507782; border-radius: 2rem; padding: .55rem .85rem; font: 700 .8rem 'Inter', sans-serif; pointer-events: none; }
.battle-power-readout:empty { display: none; }
body[data-practice] .battle-power-readout { bottom: 3.7rem; }
.power-link { background: #adfff0; height: 4px; box-shadow: 0 0 12px #a5fff0; transform-origin: left center; z-index: 97; }.power-link--burst { height: 7px; background: #ffbf8c; box-shadow: 0 0 18px #ffd09b; }
.monster .tactical-label { position: absolute; top: -1.8rem; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .3rem .5rem; border: 1px solid #8bc2db; border-radius: .4rem; background: #071e32; color: #ddf5ff; font: 800 .65rem/1.3 'Inter', sans-serif; pointer-events: none; }
.energy-shield { position: absolute; z-index: 2; inset: -10% -16% -12%; pointer-events: none; filter: drop-shadow(0 0 7px #66cbe97a); }
.energy-shield svg { display: block; width: 100%; height: 100%; overflow: visible; }
.energy-shield--source { filter: drop-shadow(0 0 9px #e3b95c88); }
.energy-shield--source .shield-core { filter: drop-shadow(0 0 5px #fff1b5); }
.energy-shield .shield-shards { opacity: 0; }
.energy-shield .shield-aura { animation: ward-breathe 3s ease-in-out infinite alternate; }
.energy-shield.is-struck .shield-face { animation: ward-struck .28s ease-out; }
.energy-shield.is-breaking { animation: ward-release .42s ease-out forwards; }
.energy-shield.is-breaking .shield-face, .energy-shield.is-breaking .shield-facets { opacity: .35; }
.energy-shield.is-breaking .shield-shards { opacity: 1; transform-origin: center; animation: ward-shards .42s ease-out forwards; }
@keyframes ward-breathe { to { opacity: .28; } }
@keyframes ward-struck { 30% { stroke: white; stroke-width: 7; fill: #b4faff55; } }
@keyframes ward-release { 35% { filter: brightness(1.8) drop-shadow(0 0 12px #9df6ff); } to { opacity: 0; transform: scale(1.15); } }
@keyframes ward-shards { to { transform: scale(1.5); opacity: 0; } }
.battle-hints-off .encounter-banner, .battle-hints-off .battle-tip, .battle-hints-off .crystal-shield-label { display: none; }
.pause-hints { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: .8rem 0; margin: .5rem 0; color: #c2dce7; font-size: .85rem; }
.pause-hints input { width: 22px; height: 22px; accent-color: #87edee; }
.guardian-challenge-note { font-size: .85rem; line-height: 1.5; color: #b7dce3; }
.companion-form-row { flex-basis: 100%; display: grid; gap: .5rem; }
.companion-form-row select { padding: .8rem; border: 1px solid #658496; border-radius: .5rem; background: #102334; color: #dceff4; font: inherit; max-width: 100%; }
.companion-form-row small { font-size: .78rem; line-height: 1.6; color: #a7c7d5; }
.is-greeting .sentinel-sigil { animation: sentinel-greet 1.4s ease-in-out; }
@keyframes sentinel-greet { 50% { filter: drop-shadow(0 0 10px #e3ffff); fill: white; } }
.reduce-motion .energy-shield, .reduce-motion .energy-shield *, .reduce-motion .sentinel-sigil { animation: none !important; }
.reduce-motion .energy-shield.is-breaking { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .energy-shield, .energy-shield *, .sentinel-sigil { animation: none !important; }.energy-shield.is-breaking { opacity: 0; } }
.monster .tactical-label { transform: translateX(-50%) scale(var(--tactical-scale, 1)); font-size: .7rem; transform-origin: center bottom; }
.monster--charging .tactical-label { background: #542c12; color: #ffe4aa; border-color: #ffc777; }.monster--charging { outline: 3px solid #ffc777; outline-offset: 7px; border-radius: 45%; }.monster--slowed { filter: drop-shadow(0 0 12px #a5e4ff); }.monster--slowed .tactical-label { background: #163c58; }
.round-sidebar > .rhythm-note { display: block; font-size: .83rem; line-height: 1.5; color: #b8e5e2; }
.companion-home { display: flex; align-items: center; width: 100%; gap: .8rem; padding: .9rem 1rem; margin: .8rem 0 1rem; border: 1px solid #496879; border-radius: .8rem; background: #142d40d9; color: #dceff4; text-align: left; cursor: pointer; }
.companion-home > span:first-child { font-size: 2.2rem; color: #b7e8e8; }.companion-home strong, .companion-home small { display: block; }.companion-home strong { font-size: .95rem; }.companion-home small { font-size: .76rem; line-height: 1.5; margin-top: .25rem; color: #b3cdd8; }.companion-home > b { margin-left: auto; }
.companion-screen { max-width: 850px; margin: auto; }.companion-home-scene { max-width: 650px; margin: auto; }.companion-scene { width: 100%; display: block; border: 1px solid #405c6d; border-radius: 1.5rem; }
.companion-toolbar { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }.companion-toolbar p { color: #c7dce4; line-height: 1.5; font-size: .85rem; }
.companion-customize { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; padding: 1.2rem; }.companion-customize label { flex: 1; font-size: .85rem; color: #cee5ee; }.companion-customize input { width: 100%; display: block; margin-top: .5rem; padding: .8rem; border: 1px solid #658496; border-radius: .5rem; color: #eaf7fa; background: #102334; font: inherit; }.companion-customize fieldset { width: 100%; border: 0; padding: .3rem 0 0; margin: 0; }.companion-customize legend { font-size: .85rem; color: #cce4ec; padding: .5rem 0; }
.companion-colors { display: flex; gap: .5rem; flex-wrap: wrap; }.companion-colors button { min-height: 44px; padding: .65rem 1rem; border: 1px solid #627c8c; border-radius: 2rem; color: var(--wing-color); background: #102435; cursor: pointer; }.companion-colors button[aria-pressed="true"] { border: 2px solid var(--wing-color); }
.decor-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }.decor-card { padding: 1.1rem; }.decor-card h4 { margin: 0 0 .5rem; font-size: 1rem; color: #e0edf3; }.decor-card p { color: #b9ceda; font-size: .85rem; line-height: 1.5; min-height: 3em; }.decor-card button { display: block; min-height: 44px; width: 100%; font-size: .76rem; }.decor-card button:disabled { opacity: .65; cursor: default; }
#companion-locked { padding: 2rem; text-align: center; }#companion-locked p { color: #c4dce6; line-height: 1.6; }.moth-silhouette { font-size: 6rem; color: #b6d9e1; }.companion-rescue { border: 1px solid #a9c9dd; border-radius: 1rem; padding: 1.2rem; margin: 1rem 0; background: #1a334b; }.companion-rescue p { color: #c6dce9; line-height: 1.6; }.companion-rescue h3 { margin: .6rem 0; font-size: 1.7rem; }
.moth-wings { transform-origin: 300px 177px; }.is-greeting .moth-wings { animation: moth-flutter .35s ease-in-out 4; }.is-greeting .moon-moth { animation: moth-bounce 1.4s ease-in-out; }@keyframes moth-flutter { 50% { transform: scaleX(.55); } }@keyframes moth-bounce { 50% { transform: translateY(-15px); } }
.reduce-motion .power-demo i, .reduce-motion .is-greeting .moth-wings, .reduce-motion .is-greeting .moon-moth { animation: none; }
@media (prefers-reduced-motion: reduce) { .power-demo i, .is-greeting .moth-wings, .is-greeting .moon-moth { animation: none; } }
@media (max-width: 600px) { .power-options { grid-template-columns: 1fr; gap: .6rem; }.power-option { display: grid; grid-template-columns: 94px 1fr; gap: .3rem .8rem; padding: .75rem; }.power-option.is-selected { padding: calc(.75rem - 1px); }.power-demo { height: 90px; grid-row: 1 / 4; align-self: center; }.power-option strong { font-size: 1.4rem; }.power-option > span:not(.power-demo) { font-size: .8rem; }.power-option small { font-size: .65rem; }.unlock-content > .power-options { margin: .7rem 0; }.unlock-content h2 { font-size: 2.1rem; }.unlock-content .unlock-check, .unlock-rings { display: none; }.battle-power-readout { bottom: .6rem; left: .6rem; font-size: .68rem; }.companion-customize > label { flex-basis: 100%; }.decor-options { grid-template-columns: 1fr; }.round-sidebar > .rhythm-note { display: block; font-size: .75rem; margin: .3rem 0; }.setting-row:has(#rhythm-setting) { flex-wrap: wrap; }#rhythm-setting { max-width: 100%; } }
