:root {
  color-scheme: dark;
  --bg: #07101f;
  --bg-deep: #030712;
  --panel: #101a31;
  --panel-strong: #16213f;
  --panel-soft: rgba(255, 255, 255, .055);
  --line: rgba(211, 224, 255, .12);
  --line-strong: rgba(211, 224, 255, .22);
  --ink: #f5f7ff;
  --muted: #9aa7c4;
  --violet: #7c6cff;
  --violet-2: #9d8cff;
  --cyan: #55e6d2;
  --blue: #6da4ff;
  --orange: #ffad6d;
  --pink: #ff7cb7;
  --yellow: #f9d75f;
  --danger: #ff7f93;
  --success: #4be0b5;
  --shadow: 0 24px 54px rgba(0, 0, 0, .28);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

button {
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

.ui-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(85, 230, 210, .34);
  outline-offset: 2px;
}

img,
svg,
iframe {
  max-width: 100%;
}

.app-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -15%, rgba(124, 108, 255, .25), transparent 38%),
    #030712;
}

.app-backdrop i {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .16;
}

.app-backdrop i:nth-child(1) { top: 10%; left: -130px; background: var(--cyan); }
.app-backdrop i:nth-child(2) { top: 42%; right: -150px; background: var(--violet); }
.app-backdrop i:nth-child(3) { bottom: -130px; left: 30%; background: var(--pink); }

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: clip;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(180deg, #07101f 0%, #081126 46%, #050a16 100%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 0 90px rgba(0, 0, 0, .5);
}

.boot-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  text-align: center;
}

.boot-screen strong { font-size: 20px; }
.boot-screen small { color: var(--muted); }

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: conic-gradient(from 32deg, var(--cyan), var(--violet), var(--pink), var(--orange), var(--cyan));
  box-shadow: 0 0 26px rgba(124, 108, 255, .28);
}

.brand-mark::after {
  position: absolute;
  inset: 8px;
  content: "";
  border-radius: 7px;
  background: #f7f9ff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45);
}

.brand-mark--large {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  animation: brandPulse 1.8s ease-in-out infinite;
}

.brand-mark--large::after { inset: 13px; border-radius: 9px; }

.app-header {
  position: sticky;
  z-index: 60;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  border-bottom: 1px solid rgba(211, 224, 255, .08);
  background: rgba(6, 13, 28, .84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand-button {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand-button b,
.brand-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-button b { font-size: 14px; line-height: 1.2; }
.brand-button small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }

.header-chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  color: #dce4ff;
  font-size: 12px;
  font-weight: 750;
}

.header-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.view {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding: 22px 14px calc(102px + var(--safe-bottom));
  animation: viewIn .35s ease both;
}

.view--flush { padding: 0 0 calc(86px + var(--safe-bottom)); }

.tabbar {
  position: fixed;
  z-index: 80;
  right: max(10px, calc((100vw - 520px) / 2));
  bottom: max(8px, var(--safe-bottom));
  left: max(10px, calc((100vw - 520px) / 2));
  max-width: 520px;
  height: 68px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(220, 228, 255, .16);
  border-radius: 22px;
  background: rgba(12, 21, 43, .92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.tabbar button {
  min-width: 0;
  min-height: 54px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  padding: 4px 2px;
  border-radius: 16px;
  background: transparent;
  color: #7f8bab;
  font-size: 10px;
  font-weight: 750;
  transition: .22s ease;
}

.tabbar button span {
  font-size: 19px;
  line-height: 1;
}

.tabbar button span .ui-icon { width: 19px; height: 19px; }

.tabbar button.is-active {
  background: linear-gradient(145deg, rgba(124, 108, 255, .28), rgba(85, 230, 210, .1));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(146, 134, 255, .2);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: currentColor;
}

.page-title {
  margin: 0;
  font-size: clamp(30px, 8.7vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.page-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 30px 2px 13px;
}

.section-row h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.section-row button {
  min-height: 48px;
  padding: 0 8px;
  background: transparent;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
}

.launch-card {
  position: relative;
  min-height: 432px;
  padding: 25px 21px 21px;
  overflow: hidden;
  border: 1px solid rgba(168, 157, 255, .2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 24%, rgba(85, 230, 210, .22), transparent 24%),
    radial-gradient(circle at 15% 92%, rgba(255, 124, 183, .18), transparent 30%),
    linear-gradient(145deg, #192453 0%, #28205a 50%, #10182f 100%);
  box-shadow: var(--shadow);
}

.launch-card::after {
  position: absolute;
  width: 260px;
  height: 260px;
  top: 85px;
  right: -105px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, .025), 0 0 0 68px rgba(255, 255, 255, .018);
}

.launch-kicker {
  position: relative;
  z-index: 2;
  color: #b8c3e9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.launch-card h1 {
  position: relative;
  z-index: 2;
  max-width: 310px;
  margin: 24px 0 13px;
  font-size: clamp(37px, 10.8vw, 51px);
  line-height: 1.07;
  letter-spacing: -.055em;
}

.launch-card h1 span { color: var(--cyan); }

.launch-card p {
  position: relative;
  z-index: 2;
  max-width: 315px;
  margin: 0;
  color: #c2cbea;
  font-size: 14px;
  line-height: 1.72;
}

.lab-orbit {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 82px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  animation: orbitFloat 5s ease-in-out infinite;
}

.lab-orbit::before,
.lab-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.lab-orbit::before {
  inset: 22px;
  border: 1px dashed rgba(85, 230, 210, .44);
}

.lab-orbit::after {
  top: 43px;
  left: 43px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 36% 30%, #fff, var(--cyan) 20%, var(--violet) 65%, transparent 67%);
  box-shadow: 0 0 35px rgba(85, 230, 210, .44);
}

.orbit-node {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 173, 109, .45);
}

.orbit-node:first-child { top: 6px; left: 15px; }
.orbit-node:last-child { right: -2px; bottom: 26px; background: var(--pink); }

.launch-actions {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 9px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 52px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 850;
}

.primary-button {
  background: linear-gradient(110deg, var(--violet), #638fff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(95, 94, 255, .25);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .075);
  color: #eaf0ff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: #c9d3ef;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.stat-strip > div {
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .045);
  text-align: center;
}

.stat-strip b,
.stat-strip span { display: block; }
.stat-strip b { font-size: 18px; }
.stat-strip span { margin-top: 3px; color: var(--muted); font-size: 10px; }

.home-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-action {
  position: relative;
  min-height: 154px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.home-action::after {
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 92px;
  height: 92px;
  content: "";
  border-radius: 50%;
  background: var(--glow, var(--violet));
  filter: blur(30px);
  opacity: .24;
}

.home-action span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: rgba(124, 108, 255, .15);
  background: color-mix(in srgb, var(--glow, var(--violet)) 18%, transparent);
  color: var(--glow, var(--violet));
  font-size: 21px;
}

.home-action .ui-icon { width: 21px; height: 21px; }

.home-action b { display: block; margin-top: 17px; font-size: 16px; }
.home-action small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.mission-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #111d38, #10162e);
}

.mission-card::after {
  position: absolute;
  top: -55px;
  right: -40px;
  width: 150px;
  height: 150px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 230, 210, .24), transparent 66%);
}

.mission-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
}

.mission-card h3 { position: relative; z-index: 1; margin: 16px 0 7px; font-size: 22px; }
.mission-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mission-card button { width: 100%; margin-top: 19px; }

.page-hero {
  padding: 7px 2px 9px;
}

.course-list,
.lab-list,
.archive-list {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.course-card {
  position: relative;
  min-height: 294px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, #111b34, #10142a);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

.course-card--violet { background: radial-gradient(circle at 85% 15%, rgba(124,108,255,.28), transparent 30%), linear-gradient(145deg,#111b34,#171437); }
.course-card--cyan { background: radial-gradient(circle at 90% 13%, rgba(85,230,210,.22), transparent 28%), linear-gradient(145deg,#0d2131,#161536); }

.course-no {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #bfc9e5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.course-card h2 { max-width: 290px; margin: 24px 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }
.course-card p { max-width: 320px; margin: 0; color: #aeb8d4; font-size: 13px; line-height: 1.65; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.tag-row span {
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
  color: #bbc5e0;
  font-size: 10px;
}

.course-card button { width: 100%; margin-top: 20px; }

.dictionary-banner {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(249, 215, 95, .25);
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(249, 215, 95, .1), rgba(124, 108, 255, .08));
  color: var(--ink);
  text-align: left;
}

.dictionary-banner > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(249, 215, 95, .13);
  color: var(--yellow);
}

.dictionary-banner > span .ui-icon { width: 23px; height: 23px; }
.dictionary-banner div { min-width: 0; }
.dictionary-banner b,
.dictionary-banner small { display: block; }
.dictionary-banner b { font-size: 14px; }
.dictionary-banner small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dictionary-banner > i { color: #8d99b8; }
.dictionary-banner > i .ui-icon { width: 18px; height: 18px; }

.course-visual {
  position: absolute;
  top: 20px;
  right: 17px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  transform: rotate(8deg);
  background: radial-gradient(circle at 30% 25%, var(--cyan), transparent 23%), radial-gradient(circle at 72% 72%, var(--pink), transparent 28%), #252359;
  box-shadow: 0 15px 30px rgba(0, 0, 0, .22);
}

.archive-card {
  padding: 17px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
}

.archive-card span { color: var(--violet-2); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.archive-card h3 { margin: 8px 0 5px; font-size: 17px; }
.archive-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.lab-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: linear-gradient(140deg, #121d38, #11152c);
  color: var(--ink);
  text-align: left;
}

.lab-card::after {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 132px;
  height: 132px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--violet)), transparent 68%);
  opacity: .25;
}

.lab-card .lab-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: rgba(124, 108, 255, .15);
  background: color-mix(in srgb, var(--accent, var(--violet)) 18%, transparent);
  color: var(--accent, var(--violet));
  font-size: 24px;
}

.lab-card .ui-icon { width: 24px; height: 24px; }

.lab-card h3 { margin: 20px 0 6px; font-size: 21px; }
.lab-card p { max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lab-card .lab-status { position: absolute; top: 20px; right: 18px; color: #c2ccec; font-size: 10px; font-weight: 750; }

.badge-shelf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.badge-item {
  min-width: 0;
  padding: 15px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, .035);
  text-align: center;
  opacity: .4;
}

.badge-item.is-earned {
  opacity: 1;
  background: linear-gradient(150deg, rgba(124, 108, 255, .18), rgba(85, 230, 210, .08));
  box-shadow: inset 0 0 0 1px rgba(141, 131, 255, .12);
}

.badge-item i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  font-style: normal;
  font-size: 20px;
}

.badge-item .ui-icon { width: 20px; height: 20px; }

.badge-item b { display: block; overflow: hidden; color: #dfe5f7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.path-list {
  position: relative;
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.path-list::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 23px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--cyan), var(--violet), rgba(124, 108, 255, .12));
}

.path-step {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
  padding: 14px 15px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--panel);
}

.path-step > span {
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  margin-left: 0;
  border: 5px solid #101a31;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  box-sizing: content-box;
}

.path-step h3 { margin: 0 0 4px; font-size: 16px; }
.path-step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.about-panel {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: linear-gradient(145deg, #151f3d, #171332);
}

.about-panel h2 { margin: 18px 0 12px; font-size: 27px; line-height: 1.25; }
.about-panel p { margin: 0; color: #b6c0dc; font-size: 14px; line-height: 1.85; }

.quote-card {
  margin-top: 13px;
  padding: 21px;
  border-left: 3px solid var(--cyan);
  border-radius: 6px 21px 21px 6px;
  background: rgba(85, 230, 210, .07);
  font-size: 17px;
  line-height: 1.65;
}

.artifact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.artifact-card {
  min-height: 120px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, .035);
}

.artifact-card span { color: var(--cyan); font-size: 10px; font-weight: 800; }
.artifact-card b { display: block; margin-top: 20px; font-size: 17px; }
.artifact-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.profile-summary {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: radial-gradient(circle at 85% 10%, rgba(124,108,255,.24), transparent 32%), var(--panel);
}

.profile-summary h2 { margin: 19px 0 5px; font-size: 26px; }
.profile-summary p { margin: 0; color: var(--muted); font-size: 13px; }

.progress-ring-mini {
  --progress: 0;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) calc(var(--progress) * 1%), rgba(255,255,255,.08) 0);
}

.progress-ring-mini::before {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  content: attr(data-label);
  border-radius: 50%;
  background: var(--panel);
  font-size: 14px;
  font-weight: 850;
}

.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.immersive {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(180deg, #07101f, #060b18);
}

.immersive-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 28, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.immersive-header button {
  width: 48px;
  min-height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .06);
  color: #edf2ff;
  font-size: 20px;
}

.immersive-header button .ui-icon,
.course2-brand button .ui-icon { width: 21px; height: 21px; margin: auto; }

.immersive-header div { min-width: 0; text-align: center; }
.immersive-header b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.immersive-header small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }

.game-content {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding: 20px 14px calc(108px + var(--safe-bottom));
}

.game-scorebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #b8c2df;
  font-size: 11px;
  font-weight: 750;
}

.score-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
}

.game-stage {
  position: relative;
  min-height: calc(100vh - 180px);
  min-height: calc(100svh - 180px);
  padding: 23px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(circle at 85% 12%, rgba(124,108,255,.2), transparent 30%), linear-gradient(160deg,#111c36,#0e1329);
}

.game-stage h1 { margin: 0; font-size: 29px; line-height: 1.17; letter-spacing: -.035em; }
.game-stage > p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.timeline-progress {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 22px 0 16px;
}

.timeline-progress i {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
}

.timeline-progress i.is-done { background: var(--cyan); box-shadow: 0 0 10px rgba(85,230,210,.4); }

.tech-token-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.tech-token {
  min-height: 104px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.045);
  color: var(--ink);
  text-align: left;
  transition: .2s ease;
}

.tech-token span { color: var(--muted); font-size: 9px; font-weight: 800; }
.tech-token b { font-size: 17px; }
.tech-token.is-correct { border-color: rgba(75,224,181,.75); background: rgba(75,224,181,.12); transform: scale(.97); }
.tech-token.is-wrong { border-color: rgba(255,127,147,.75); animation: shake .3s ease; }

.game-feedback {
  min-height: 48px;
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #c9d2eb;
  font-size: 12px;
  line-height: 1.5;
}

.task-card {
  min-height: 280px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 22px 35px rgba(0,0,0,.2);
}

.task-card span { color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.task-card h2 { margin: 20px 0 8px; font-size: 25px; line-height: 1.3; }
.task-card p { margin: 0; color: var(--muted); font-size: 13px; }

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.decision-grid button {
  min-height: 64px;
  border-radius: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.decision-grid button:first-child { background: linear-gradient(140deg,#267e82,#285877); }
.decision-grid button:last-child { background: linear-gradient(140deg,#694ec4,#403d81); }

.workflow-brief {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.04);
}

.workflow-brief small { color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.workflow-brief h2 { margin: 9px 0 6px; font-size: 20px; }
.workflow-brief p { margin: 0; color: var(--muted); font-size: 12px; }

.workflow-slots {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.workflow-slot {
  min-height: 57px;
  display: grid;
  grid-template-columns: 28px 74px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.workflow-slot > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: rgba(124,108,255,.18); color: var(--violet-2); font-size: 10px; font-weight: 850; }
.workflow-slot > b { color: #aab5d2; font-size: 11px; }
.workflow-slot > em { overflow: hidden; color: #eef2ff; font-size: 12px; font-style: normal; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.module-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.module-bank button {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: #dce4f8;
  font-size: 11px;
  font-weight: 750;
}

.module-bank button.is-used { opacity: .34; }

.game-complete {
  min-height: calc(100vh - 165px);
  min-height: calc(100svh - 165px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.reward-orb {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 10%, var(--violet) 43%, #161d3c 45%);
  box-shadow: 0 0 0 14px rgba(124,108,255,.08), 0 0 70px rgba(85,230,210,.28);
  font-size: 36px;
  animation: rewardPop .65s cubic-bezier(.2,.9,.3,1.3) both;
}

.reward-orb .ui-icon { width: 34px; height: 34px; }

.game-complete h1 { margin: 34px 0 8px; font-size: 31px; }
.game-complete p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.game-complete button { width: min(100%, 320px); margin-top: 24px; }

.course-gate {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  padding: 24px 16px calc(28px + var(--safe-bottom));
  background: radial-gradient(circle at 80% 10%, rgba(124,108,255,.18), transparent 32%);
}

.gate-art {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 29px;
  background: radial-gradient(circle at 28% 25%, rgba(85,230,210,.3), transparent 23%), radial-gradient(circle at 78% 70%, rgba(255,124,183,.24), transparent 28%), linear-gradient(140deg,#101d38,#2a1d52);
}

.gate-art::before,
.gate-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.gate-art::before { width: 180px; height: 180px; top: 34px; left: 34px; }
.gate-art::after { width: 96px; height: 96px; right: 35px; bottom: 26px; box-shadow: 0 0 0 25px rgba(255,255,255,.025); }
.gate-art span { position: absolute; z-index: 2; right: 22px; bottom: 19px; left: 22px; color: #dce4fb; font-size: 11px; font-weight: 800; letter-spacing: .12em; }

.gate-copy { flex: 1; padding: 27px 5px 0; }
.gate-copy h1 { margin: 0; font-size: 37px; line-height: 1.12; letter-spacing: -.045em; }
.gate-copy p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.gate-form { margin-top: 21px; }
.gate-form label { display: block; margin-bottom: 8px; color: #b4bfdc; font-size: 11px; font-weight: 750; }
.gate-row { display: grid; grid-template-columns: 1fr 112px; gap: 8px; }
.gate-row input { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(255,255,255,.055); color: #fff; font-size: 16px; }
.gate-error { min-height: 22px; margin: 7px 0 0; color: var(--danger); font-size: 11px; }

.chapter-list {
  display: grid;
  gap: 8px;
  margin-top: 19px;
}

.chapter-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.chapter-item > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: rgba(124,108,255,.13); color: var(--violet-2); font-size: 11px; font-weight: 850; }
.chapter-item > span .ui-icon { width: 18px; height: 18px; }
.chapter-item b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item > i { color: #7783a4; font-style: normal; }
.chapter-item > i .ui-icon { width: 17px; height: 17px; }
.chapter-item.is-done > span { background: rgba(75,224,181,.14); color: var(--success); }

.reader-page {
  min-height: 100vh;
  min-height: 100svh;
  background: #07101f;
}

.reader-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.reader-progress i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width .3s ease;
}

.reader-content {
  min-height: calc(100vh - 67px);
  min-height: calc(100svh - 67px);
  padding: 18px 14px calc(102px + var(--safe-bottom));
}

.story-visual {
  position: relative;
  height: 184px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background-position: center;
  background-size: cover;
}

.story-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 20%, rgba(4,8,20,.82));
}

.story-visual span {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 15px;
  left: 16px;
  color: #dce6ff;
  font-size: 11px;
  font-weight: 750;
}

.story-card,
.terms-page,
.insight-page {
  margin-top: 12px;
  padding: 21px 18px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--panel);
}

.story-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 750; }
.story-card h1,
.terms-page h1,
.insight-page h1 { margin: 15px 0 13px; font-size: 27px; line-height: 1.28; letter-spacing: -.035em; }
.story-body { color: #e3e8f6; font-size: 16px; line-height: 1.88; }
.story-body b,
.story-body strong { color: var(--cyan); font-weight: 850; }
.term-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.term-chips button { min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: 12px; background: rgba(124,108,255,.12); color: #c6bcff; font-size: 11px; font-weight: 750; }

.term-list { display: grid; gap: 9px; margin-top: 17px; }
.term-card { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.035); }
.term-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.term-card h2 { margin: 0; font-size: 18px; }
.term-card header span { color: var(--violet-2); font-size: 10px; font-weight: 750; }
.term-card p { margin: 10px 0 0; color: #c0c9df; font-size: 13px; line-height: 1.65; }
.term-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.insight-page { background: radial-gradient(circle at 85% 10%, rgba(85,230,210,.18), transparent 30%), linear-gradient(150deg,#111f36,#13172f); }
.insight-quote { padding: 18px; border-left: 3px solid var(--cyan); border-radius: 5px 17px 17px 5px; background: rgba(85,230,210,.07); color: #edf4ff; font-size: 16px; line-height: 1.8; }
.insight-rules { display: grid; gap: 8px; margin-top: 16px; }
.insight-rules div { padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; color: #b8c2dc; font-size: 11px; }
.insight-rules b { display: block; margin-bottom: 3px; color: #fff; font-size: 13px; }

.reader-controls {
  position: fixed;
  z-index: 90;
  right: max(10px, calc((100vw - 520px) / 2));
  bottom: max(8px, var(--safe-bottom));
  left: max(10px, calc((100vw - 520px) / 2));
  max-width: 520px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(11,19,39,.94);
  box-shadow: 0 18px 45px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.reader-controls button { min-width: 0; min-height: 52px; border-radius: 15px; font-size: 13px; font-weight: 850; }
.reader-controls button:disabled { opacity: .35; }

.dictionary-view { padding-top: 14px; }

.dictionary-hero {
  position: relative;
  padding: 25px 20px 21px;
  overflow: hidden;
  border: 1px solid rgba(249, 215, 95, .2);
  border-radius: 29px;
  background:
    radial-gradient(circle at 90% 8%, rgba(249, 215, 95, .22), transparent 31%),
    radial-gradient(circle at 2% 100%, rgba(124, 108, 255, .21), transparent 31%),
    linear-gradient(145deg, #15203d, #17142f);
}

.dictionary-hero::after {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 155px;
  height: 155px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .02);
}

.dictionary-hero h1 {
  position: relative;
  z-index: 1;
  margin: 15px 0 9px;
  font-size: clamp(32px, 9.2vw, 43px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.dictionary-hero > p:not(.eyebrow) { position: relative; z-index: 1; margin: 0; color: #b6c1df; font-size: 13px; line-height: 1.7; }

.dictionary-search {
  position: relative;
  z-index: 2;
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: rgba(4, 9, 21, .52);
  color: var(--yellow);
}

.dictionary-search .ui-icon { width: 20px; height: 20px; }
.dictionary-search input { width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; }
.dictionary-search input::placeholder { color: #7f8ca9; }

.dictionary-filters {
  display: flex;
  gap: 7px;
  margin: 13px -14px 0;
  padding: 0 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dictionary-filters::-webkit-scrollbar { display: none; }
.dictionary-filters button { flex: 0 0 auto; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .035); color: #a9b4d0; font-size: 11px; font-weight: 800; }
.dictionary-filters button.is-active { border-color: rgba(249, 215, 95, .42); background: rgba(249, 215, 95, .11); color: var(--yellow); }

.term-feature {
  position: relative;
  width: 100%;
  min-height: 164px;
  margin-top: 11px;
  padding: 19px 54px 19px 19px;
  overflow: hidden;
  border: 1px solid rgba(249, 215, 95, .22);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(249, 215, 95, .11), rgba(124, 108, 255, .08));
  color: var(--ink);
  text-align: left;
}

.term-feature::after { position: absolute; top: -45px; right: -35px; width: 125px; height: 125px; content: ""; border-radius: 50%; background: rgba(249, 215, 95, .13); filter: blur(20px); }
.term-feature > span { color: var(--yellow); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.term-feature h2 { margin: 14px 0 6px; font-size: 27px; }
.term-feature p { margin: 0; color: #c0c9df; font-size: 12px; line-height: 1.6; }
.term-feature > i { position: absolute; z-index: 1; top: 58px; right: 18px; color: var(--yellow); }

.term-index { display: grid; gap: 8px; }

.term-entry {
  min-height: 114px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-content: center;
  column-gap: 10px;
  padding: 15px 14px 14px 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.term-entry[hidden] { display: none; }
.term-entry > span,
.term-entry h3,
.term-entry p { grid-column: 1; min-width: 0; }
.term-entry > span { color: var(--yellow); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.term-entry h3 { margin: 6px 0 3px; font-size: 18px; }
.term-entry p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.term-entry > i { grid-column: 2; grid-row: 1 / 4; align-self: center; color: #7783a4; }
.term-entry > i .ui-icon { width: 17px; height: 17px; }
.dictionary-empty { padding: 25px 15px; color: var(--muted); font-size: 13px; text-align: center; }

.dictionary-detail { min-height: 100vh; min-height: 100svh; background: linear-gradient(180deg, #07101f, #050916); }
.dictionary-detail-main { padding: 28px 15px calc(42px + var(--safe-bottom)); }
.dictionary-detail-main > h1 { margin: 12px 0 21px; font-size: clamp(40px, 12vw, 58px); line-height: 1.05; letter-spacing: -.05em; overflow-wrap: anywhere; }
.definition-card,
.example-card,
.term-memory { padding: 19px; border-radius: 22px; }
.definition-card { border: 1px solid rgba(249, 215, 95, .25); background: linear-gradient(145deg, rgba(249, 215, 95, .11), rgba(255, 255, 255, .035)); }
.example-card { margin-top: 10px; border: 1px solid rgba(85, 230, 210, .2); background: rgba(85, 230, 210, .075); }
.definition-card span,
.example-card span { color: var(--yellow); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.example-card span { color: var(--cyan); }
.definition-card p,
.example-card p { margin: 12px 0 0; color: #e9edfa; font-size: 17px; line-height: 1.75; }
.term-memory { margin-top: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.term-memory b { font-size: 13px; }
.term-memory p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.related-terms { display: flex; flex-wrap: wrap; gap: 7px; }
.related-terms button,
.course2-terms button { min-width: 48px; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(124, 108, 255, .09); color: #c9c2ff; font-size: 11px; font-weight: 800; }

.course2-native,
.course2-reader { min-height: 100vh; min-height: 100svh; background: linear-gradient(180deg, #07101f, #060a17); }
.course2-index { padding: 17px 14px calc(42px + var(--safe-bottom)); }
.course2-launch { position: relative; min-height: 315px; padding: 23px 19px; overflow: hidden; border: 1px solid rgba(85, 230, 210, .2); border-radius: 29px; background: radial-gradient(circle at 88% 12%, rgba(85,230,210,.25), transparent 28%), radial-gradient(circle at 9% 94%, rgba(157,140,255,.22), transparent 31%), linear-gradient(145deg,#122443,#171535); }
.course2-launch::after { position: absolute; top: 95px; right: -70px; width: 190px; height: 190px; content: ""; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.02); }
.course2-launch h1 { position: relative; z-index: 1; margin: 20px 0 10px; font-size: clamp(31px, 9vw, 43px); line-height: 1.13; letter-spacing: -.045em; }
.course2-launch > p:not(.eyebrow) { position: relative; z-index: 1; margin: 0; color: #b9c4df; font-size: 13px; line-height: 1.7; }
.course2-system-map { position: absolute; z-index: 2; right: 18px; bottom: 20px; left: 18px; display: flex; align-items: center; }
.course2-system-map span { flex: 0 0 auto; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 7px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(5,10,24,.64); color: #eaf2ff; font-size: 10px; font-weight: 850; }
.course2-system-map i { flex: 1; min-width: 5px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet-2)); }

.course2-principle { margin-top: 12px; padding: 18px; border: 1px dashed rgba(85,230,210,.3); border-radius: 19px; background: rgba(85,230,210,.05); }
.course2-principle b { color: var(--cyan); font-size: 11px; }
.course2-principle p { margin: 8px 0 0; color: #c1cae0; font-size: 13px; line-height: 1.65; }

.course2-reader-content { min-height: calc(100vh - 67px); min-height: calc(100svh - 67px); padding: 22px 14px calc(108px + var(--safe-bottom)); }
.course2-reader-content article { width: 100%; max-width: 100%; animation: viewIn .32s ease both; }
.course2-reader-content .eyebrow { color: var(--mission); }
.course2-reader-content h1 { margin: 17px 0 11px; font-size: clamp(30px, 8.7vw, 42px); line-height: 1.16; letter-spacing: -.045em; overflow-wrap: anywhere; }
.course2-lead { margin: 0; color: #bdc7df; font-size: 15px; line-height: 1.8; }
.course2-opening blockquote,
.course2-case blockquote,
.course2-recap blockquote { margin: 15px 0 0; padding: 17px 16px; border: 0; border-left: 3px solid var(--mission); border-radius: 5px 17px 17px 5px; background: color-mix(in srgb, var(--mission) 8%, transparent); color: #edf2ff; font-size: 15px; font-weight: 750; line-height: 1.7; }
.course2-contrast { display: grid; gap: 9px; margin-top: 22px; }
.course2-contrast div { min-height: 96px; padding: 16px; border: 1px solid rgba(255,127,147,.2); border-radius: 19px; background: rgba(255,127,147,.07); }
.course2-contrast div.is-good { border-color: rgba(75,224,181,.25); background: rgba(75,224,181,.075); }
.course2-contrast span { display: block; color: var(--danger); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.course2-contrast .is-good span { color: var(--success); }
.course2-contrast b { display: block; margin-top: 10px; font-size: 15px; line-height: 1.55; }
.course2-card-grid { display: grid; gap: 9px; margin-top: 22px; }
.course2-card-grid section { min-height: 164px; padding: 17px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); }
.course2-card-grid i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--mission) 15%, transparent); color: var(--mission); font-size: 17px; font-style: normal; font-weight: 900; }
.course2-card-grid h2 { margin: 15px 0 6px; font-size: 19px; }
.course2-card-grid p { margin: 0; color: #c0c9df; font-size: 12px; line-height: 1.6; }
.course2-card-grid small { display: block; margin-top: 9px; color: var(--mission); font-size: 10px; line-height: 1.5; }
.course2-rule-list,
.course2-flow { display: grid; gap: 9px; margin-top: 22px; }
.course2-rule-list section,
.course2-flow section { min-height: 96px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.035); }
.course2-rule-list span,
.course2-flow span { width: 40px; min-height: 40px; display: grid; place-items: center; padding: 5px; border-radius: 13px; background: color-mix(in srgb, var(--mission) 14%, transparent); color: var(--mission); font-size: 9px; font-weight: 900; text-align: center; }
.course2-rule-list h2,
.course2-flow h2 { margin: 1px 0 5px; font-size: 16px; line-height: 1.35; }
.course2-rule-list p,
.course2-flow p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.course2-note { margin-top: 12px; padding: 15px; border: 1px dashed color-mix(in srgb, var(--mission) 35%, transparent); border-radius: 17px; color: #cbd3e7; font-size: 12px; line-height: 1.65; }

.challenge-brief { margin-top: 21px; padding: 19px; border: 1px solid color-mix(in srgb, var(--mission) 30%, transparent); border-radius: 22px; background: radial-gradient(circle at 95% 5%, color-mix(in srgb, var(--mission) 15%, transparent), transparent 40%), rgba(255,255,255,.045); }
.challenge-brief > span { color: var(--mission); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.challenge-brief h2 { margin: 13px 0 8px; font-size: 20px; line-height: 1.5; }
.challenge-brief p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.course2-options { display: grid; gap: 8px; margin-top: 12px; }
.course2-options button { min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); color: #edf1fb; text-align: left; transition: .2s ease; }
.course2-options b,
.course2-options small { display: block; }
.course2-options b { font-size: 14px; line-height: 1.4; }
.course2-options small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.course2-options button.is-correct { border-color: rgba(75,224,181,.65); background: rgba(75,224,181,.11); }
.course2-options button.is-wrong { border-color: rgba(255,127,147,.65); background: rgba(255,127,147,.1); animation: shake .3s ease; }
.course2-feedback { min-height: 60px; display: flex; align-items: center; margin-top: 10px; padding: 13px 14px; border-radius: 16px; background: rgba(255,255,255,.04); color: #bac4dc; font-size: 11px; line-height: 1.6; }
.course2-feedback.is-success { background: rgba(75,224,181,.08); color: #bff4e5; }
.course2-template { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.course2-template section { min-height: 108px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.course2-template b,
.course2-template span { display: block; }
.course2-template b { color: var(--mission); font-size: 13px; }
.course2-template span { margin-top: 9px; color: #b9c3da; font-size: 11px; line-height: 1.55; }
.recap-orb { width: 76px; height: 76px; display: grid; place-items: center; margin: 24px 0 20px; border: 1px solid color-mix(in srgb, var(--mission) 50%, transparent); border-radius: 25px; background: color-mix(in srgb, var(--mission) 14%, transparent); color: var(--mission); box-shadow: 0 0 34px color-mix(in srgb, var(--mission) 15%, transparent); }
.recap-orb .ui-icon { width: 34px; height: 34px; }
.course2-terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }

/* Lesson 02: full-content mobile course index */
.course2-launch--full { min-height: 365px; padding-bottom: 116px; }
.course2-scope {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.course2-scope div { min-width: 0; min-height: 76px; display: flex; flex-direction: column; justify-content: center; padding: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(4,11,27,.5); backdrop-filter: blur(12px); }
.course2-scope b { color: #fff; font-size: 21px; line-height: 1; }
.course2-scope span { margin-top: 7px; color: #9eabc4; font-size: 9px; line-height: 1.3; }
.part-list { display: grid; gap: 11px; margin-top: 13px; }
.part-entry {
  width: 100%;
  min-height: 196px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 12px;
  padding: 17px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mission);
  border-radius: 22px;
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--mission) 13%, transparent), transparent 40%), linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  color: var(--ink);
  text-align: left;
}
.part-entry.is-done { border-color: color-mix(in srgb, var(--mission) 42%, transparent); }
.part-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: color-mix(in srgb, var(--mission) 16%, transparent); color: var(--mission); font-size: 12px; font-weight: 900; }
.part-number .ui-icon { width: 22px; height: 22px; }
.part-entry > div { min-width: 0; }
.part-entry small { display: block; color: var(--mission); font-size: 9px; font-weight: 850; line-height: 1.55; }
.part-entry h2 { margin: 9px 0 7px; font-size: 21px; line-height: 1.28; letter-spacing: -.025em; }
.part-entry p { margin: 0; color: #b5c0d8; font-size: 12px; line-height: 1.65; }
.part-entry em { display: inline-flex; min-height: 30px; align-items: center; margin-top: 11px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--mission) 10%, transparent); color: #dbe4f8; font-size: 9px; font-style: normal; font-weight: 800; }
.part-entry > i { align-self: center; color: var(--mission); }
.part-entry > i .ui-icon { width: 18px; height: 18px; }
.course2-completeness { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); color: #aab6cf; font-size: 10px; }
.course2-completeness div { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.course2-completeness i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet-2), var(--pink)); }
.course2-completeness b { color: #e9efff; font-size: 10px; white-space: nowrap; }

.glossary-clue { min-height: 230px; display: flex; flex-direction: column; justify-content: center; margin-top: 20px; padding: 22px; border: 1px solid rgba(249,215,95,.25); border-radius: 24px; background: radial-gradient(circle at 90% 10%, rgba(249,215,95,.16), transparent 35%), rgba(255,255,255,.045); }
.glossary-clue > span { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.glossary-clue p { margin: 16px 0 10px; color: #f0f3fc; font-size: 20px; font-weight: 750; line-height: 1.55; }
.glossary-clue small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.glossary-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.glossary-choices button { min-width: 0; min-height: 62px; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.045); color: #edf2ff; font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }
.glossary-choices button.is-correct { border-color: rgba(75,224,181,.68); background: rgba(75,224,181,.13); color: #d8fff3; }
.glossary-choices button.is-wrong { border-color: rgba(255,127,147,.68); background: rgba(255,127,147,.11); color: #ffdce4; }

.toast {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: calc(92px + var(--safe-bottom));
  left: 18px;
  max-width: 460px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(15, 24, 49, .96);
  color: #e7edff;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .22s ease;
}

.toast.is-showing { opacity: 1; transform: translateY(0); }

@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes brandPulse { 50% { transform: scale(1.06); box-shadow: 0 0 42px rgba(124,108,255,.42); } }
@keyframes orbitFloat { 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes rewardPop { from { opacity: 0; transform: scale(.35) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

@supports not (color: color-mix(in srgb, white, black)) {
  .home-action span,
  .lab-card .lab-icon { background: rgba(124,108,255,.16); }
}

@media (max-width: 374px) {
  .view { padding-right: 11px; padding-left: 11px; }
  .launch-card { min-height: 445px; padding-right: 17px; padding-left: 17px; }
  .launch-card h1 { font-size: 36px; }
  .launch-actions { right: 16px; left: 16px; }
  .home-action { padding: 14px; }
  .gate-row { grid-template-columns: 1fr 102px; }
  .game-stage { padding-right: 14px; padding-left: 14px; }
}

@media (min-width: 541px) {
  .app-shell { border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
