:root {
  color-scheme: dark;
  --bg: #050b14;
  --bg-raised: #091421;
  --surface: rgba(12, 27, 44, .82);
  --surface-strong: #0d1b2b;
  --line: rgba(121, 194, 255, .15);
  --line-bright: rgba(46, 233, 255, .42);
  --text: #f4f8ff;
  --muted: #91a5bb;
  --cyan: #2ee9ff;
  --blue: #4a8dff;
  --purple: #8876ff;
  --green: #42e8a6;
  --red: #ff6684;
  --yellow: #ffc85b;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --content: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(69, 136, 191, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 136, 191, .045) 1px, transparent 1px),
    radial-gradient(circle at 15% 5%, rgba(46, 233, 255, .08), transparent 28rem),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto;
  line-height: 1.55;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 999; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .7rem 1rem; background: var(--cyan); color: #021018; border-radius: 10px; font-weight: 800; }
.skip-link:focus { transform: none; }

.ambient { position: fixed; z-index: -1; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(100px); opacity: .12; pointer-events: none; }
.ambient-one { background: var(--blue); top: 8rem; right: -10rem; }
.ambient-two { background: var(--purple); bottom: -12rem; left: -9rem; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(5, 11, 20, .82); backdrop-filter: blur(18px); }
.header-inner { width: min(calc(100% - 2rem), 1380px); min-height: 74px; margin: auto; display: flex; align-items: center; gap: 1.6rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid var(--line-bright); border-radius: 12px; color: var(--cyan); background: linear-gradient(145deg, rgba(46, 233, 255, .14), rgba(74, 141, 255, .04)); font-family: ui-monospace, monospace; font-weight: 900; box-shadow: inset 0 0 22px rgba(46, 233, 255, .08); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .96rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: .2rem; color: var(--cyan); font-size: .68rem; letter-spacing: .22em; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: .2rem; margin-inline: auto; }
.main-nav a { padding: .7rem .78rem; color: var(--muted); border-radius: 10px; font-size: .88rem; font-weight: 650; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(74, 141, 255, .1); }
.main-nav a.active { box-shadow: inset 0 -2px 0 var(--cyan); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.xp-pill { min-width: 104px; display: grid; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 24, 40, .8); line-height: 1.05; }
.xp-pill span { color: var(--muted); font-size: .64rem; letter-spacing: .12em; font-weight: 800; }
.xp-pill strong { margin-top: .24rem; color: var(--cyan); font-size: .88rem; }
.control-button, .icon-button { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: rgba(11, 25, 41, .78); cursor: pointer; transition: .2s ease; }
.control-button { padding: 0 .8rem; }
.icon-button { width: 42px; }
.control-button:hover, .icon-button:hover { border-color: var(--line-bright); background: rgba(46, 233, 255, .08); }
.nav-toggle { display: none; }

main { width: min(calc(100% - 2rem), var(--content)); margin: auto; min-height: calc(100vh - 156px); padding: 2.2rem 0 4rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--cyan); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 850; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hero { display: grid; grid-template-columns: 1.18fr .82fr; gap: 1rem; align-items: stretch; }
.hero-main, .mission-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(14, 31, 50, .9), rgba(8, 18, 31, .92)); box-shadow: var(--shadow); }
.hero-main { padding: clamp(2rem, 5vw, 4.4rem); }
.hero-main::after { content: "01"; position: absolute; right: 1.3rem; bottom: -3rem; color: rgba(83, 190, 255, .055); font: 900 13rem/1 ui-monospace, monospace; }
.hero h1 { max-width: 760px; margin: .8rem 0 1rem; font-size: clamp(2.45rem, 6vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: transparent; background: linear-gradient(110deg, var(--cyan), #7eb4ff 55%, #a293ff); background-clip: text; }
.hero-main > p { max-width: 640px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 0 1.15rem; border: 1px solid transparent; border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #031017; background: linear-gradient(115deg, var(--cyan), #79adff); box-shadow: 0 10px 28px rgba(46, 233, 255, .18); }
.button.secondary { border-color: var(--line); background: rgba(255, 255, 255, .035); }
.button.danger { color: #fff; background: #c73b58; }
.mission-panel { padding: 1.4rem; display: flex; flex-direction: column; }
.mission-top { display: flex; justify-content: space-between; align-items: center; }
.mission-label { color: var(--muted); font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }
.live-dot { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-size: .72rem; font-weight: 800; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.mission-panel h2 { margin: auto 0 .4rem; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.15; }
.mission-panel p { margin: 0 0 1rem; color: var(--muted); }
.mission-meter { display: grid; gap: .5rem; }
.meter-line { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.meter-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.meter-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 1rem; }
.stat-card { display: flex; align-items: center; gap: .8rem; min-height: 92px; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 23, 38, .72); }
.stat-icon { display: grid; place-items: center; width: 42px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 12px; color: var(--cyan); background: rgba(46, 233, 255, .08); font-weight: 900; }
.stat-card strong { display: block; font-size: 1.35rem; line-height: 1; }
.stat-card span { display: block; margin-top: .35rem; color: var(--muted); font-size: .78rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 3.2rem 0 1rem; }
.section-heading h2 { margin: .2rem 0 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.text-link { color: var(--cyan); font-size: .9rem; font-weight: 750; }
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.lesson-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 305px; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(12, 27, 45, .9), rgba(7, 16, 28, .9)); transition: transform .25s ease, border-color .25s ease; }
.lesson-card:hover { transform: translateY(-4px); border-color: rgba(46, 233, 255, .35); }
.lesson-card::after { content: attr(data-number); position: absolute; right: .8rem; top: -.7rem; color: rgba(75, 163, 255, .055); font: 900 7.5rem/1 ui-monospace, monospace; }
.lesson-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.lesson-icon { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border-radius: 13px; color: var(--cyan); border: 1px solid rgba(46, 233, 255, .22); background: rgba(46, 233, 255, .08); font: 800 .75rem ui-monospace, monospace; }
.lesson-number { color: var(--muted); font: 750 .75rem ui-monospace, monospace; letter-spacing: .1em; }
.lesson-card h3 { position: relative; z-index: 1; max-width: 80%; margin: 1.25rem 0 .5rem; font-size: 1.35rem; line-height: 1.2; }
.lesson-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); }
.lesson-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.meta-chip { padding: .32rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: #bed0e1; font-size: .7rem; }
.card-bottom { margin-top: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: .4rem; color: var(--muted); font-size: .72rem; }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.card-button { min-height: 42px; padding: 0 .8rem; border: 1px solid var(--line-bright); border-radius: 10px; color: var(--cyan); background: rgba(46, 233, 255, .06); font-weight: 800; cursor: pointer; }
.site-footer { width: min(calc(100% - 2rem), 1380px); margin: auto; padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-footer div { display: grid; }
.site-footer span { font-size: .72rem; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--text); }
.confirm-dialog { max-width: 450px; padding: 1.5rem; color: var(--text); border: 1px solid var(--line-bright); border-radius: 18px; background: var(--surface-strong); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(0, 5, 12, .75); backdrop-filter: blur(5px); }
.confirm-dialog h2 { margin: .8rem 0 .3rem; }
.confirm-dialog p { color: var(--muted); }
.dialog-icon { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 50%; color: var(--red); background: rgba(255,102,132,.1); font-weight: 900; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; }
.toast-region { position: fixed; z-index: 200; right: 1rem; bottom: 1rem; display: grid; gap: .6rem; }

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

/* Shared interface primitives */
.ui-icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.lesson-icon .ui-icon, .stat-icon .ui-icon, .catalog-icon .ui-icon { width: 23px; height: 23px; }
.button .ui-icon { width: 18px; height: 18px; }
.is-complete { --line: rgba(66, 232, 166, .28); }
.is-complete .lesson-icon, .is-complete .catalog-icon { color: var(--green); border-color: rgba(66, 232, 166, .3); background: rgba(66, 232, 166, .08); }
.section-count { color: var(--muted); font-size: .85rem; }
.section-tag { display: inline-flex; align-items: center; gap: .5rem; color: var(--cyan); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }
.page-heading { max-width: 820px; margin: 1.2rem 0 2.3rem; }
.page-heading h1 { margin: .4rem 0 .65rem; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.055em; line-height: 1; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.mission-code { margin-top: auto; color: var(--cyan); font: 750 .72rem ui-monospace, monospace; letter-spacing: .1em; }
.feature-strip { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 19, 32, .72); }
.feature-strip article { min-height: 98px; display: flex; align-items: center; gap: .9rem; padding: 1.2rem; }
.feature-strip article + article { border-left: 1px solid var(--line); }
.feature-strip .ui-icon { width: 28px; height: 28px; color: var(--cyan); }
.feature-strip strong, .feature-strip span { display: block; }
.feature-strip strong { font-size: .86rem; letter-spacing: .04em; }
.feature-strip span { margin-top: .2rem; color: var(--muted); font-size: .76rem; }

/* Module and catalog views */
.module-overview { margin-bottom: 1rem; min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem 2rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(115deg, rgba(13, 31, 51, .95), rgba(8, 18, 31, .9)); }
.module-overview > div:first-child { display: flex; align-items: center; gap: 1.5rem; }
.module-index { color: rgba(46, 233, 255, .16); font: 900 5rem/1 ui-monospace, monospace; }
.module-overview h2 { margin: .25rem 0 .2rem; font-size: 1.8rem; }
.module-overview p { margin: 0; color: var(--muted); }
.module-score { min-width: 130px; text-align: right; }
.module-score strong { display: block; color: var(--cyan); font-size: 2.4rem; line-height: 1; }
.module-score span { color: var(--muted); font-size: .76rem; }
.roadmap-note { margin-top: 1rem; display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px dashed rgba(136, 118, 255, .38); border-radius: var(--radius); background: rgba(136, 118, 255, .045); }
.roadmap-note > span { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border-radius: 13px; color: #a99dff; background: rgba(136, 118, 255, .11); }
.roadmap-note strong { display: block; }
.roadmap-note p { margin: .2rem 0 0; color: var(--muted); font-size: .86rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.catalog-card { min-height: 230px; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13, 29, 47, .86), rgba(7, 17, 29, .85)); }
.catalog-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--cyan); border: 1px solid var(--line-bright); border-radius: 13px; background: rgba(46,233,255,.07); }
.catalog-copy > span { color: var(--cyan); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.catalog-copy h3 { margin: .35rem 0; font-size: 1.2rem; }
.catalog-copy p { margin: 0; color: var(--muted); font-size: .88rem; }
.catalog-foot { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; align-items: center; padding-top: .9rem; border-top: 1px solid var(--line); }
.catalog-foot span { color: var(--muted); font-size: .78rem; }
.catalog-foot a { color: var(--cyan); font-weight: 800; }

/* Virtual lab */
.virtual-lab { display: grid; grid-template-columns: .78fr 1.22fr; overflow: hidden; min-height: 510px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(11, 27, 45, .94), rgba(5, 13, 23, .95)); box-shadow: var(--shadow); }
.lab-controls { padding: clamp(1.4rem, 3.5vw, 2.5rem); border-right: 1px solid var(--line); }
.lab-controls h2 { margin: .55rem 0 .35rem; font-size: 2rem; }
.lab-controls > p { margin: 0 0 1.4rem; color: var(--muted); }
.lab-controls label { display: grid; gap: .42rem; margin-top: .85rem; color: #cde0ef; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lab-controls select { width: 100%; min-height: 48px; padding: 0 .85rem; color: var(--text); border: 1px solid var(--line); border-radius: 11px; background: #0a1828; cursor: pointer; }
.lab-controls select:hover { border-color: var(--line-bright); }
.lab-controls .lab-help { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .75rem; }
.pc-visual { position: relative; display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: 1.2rem; padding: 2rem; background: radial-gradient(circle at 40% 45%, rgba(46,233,255,.09), transparent 45%); }
.pc-case { max-width: 310px; width: 100%; margin: auto; padding: .7rem; border: 1px solid rgba(46,233,255,.3); border-radius: 22px; background: #07121f; box-shadow: 0 0 45px rgba(46,233,255,.07), inset 0 0 30px rgba(46,233,255,.035); }
.pc-top { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 .45rem; color: var(--muted); font: 700 .6rem ui-monospace, monospace; letter-spacing: .12em; }
.pc-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pc-board { position: relative; min-height: 360px; padding: 1rem; border: 1px solid rgba(121,194,255,.1); border-radius: 15px; background: linear-gradient(rgba(46,233,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(46,233,255,.03) 1px, transparent 1px), #081828; background-size: 18px 18px; }
.pc-board::before, .pc-board::after { content: ""; position: absolute; background: rgba(46,233,255,.18); }
.pc-board::before { left: 49%; top: 20%; width: 1px; height: 56%; }
.pc-board::after { left: 19%; top: 51%; width: 62%; height: 1px; }
.pc-slot { position: absolute; z-index: 1; padding: .65rem; border: 1px solid rgba(74,141,255,.28); border-radius: 10px; background: rgba(8, 25, 42, .94); box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.pc-slot small, .pc-slot strong { display: block; }
.pc-slot small { color: var(--cyan); font: 750 .58rem ui-monospace, monospace; letter-spacing: .12em; }
.pc-slot strong { max-width: 130px; margin-top: .25rem; font-size: .7rem; }
.cpu-slot { left: 13%; top: 17%; }.ram-slot { right: 9%; top: 34%; }.storage-slot { left: 15%; bottom: 10%; }
.pc-fan { position: absolute; right: 12%; bottom: 12%; width: 62px; height: 62px; border: 6px double rgba(46,233,255,.24); border-radius: 50%; box-shadow: inset 0 0 18px rgba(46,233,255,.1); }
.pc-fan::before, .pc-fan::after { content: ""; position: absolute; inset: 21px 4px; border-radius: 50%; background: rgba(46,233,255,.25); transform: rotate(45deg); }
.pc-fan::after { transform: rotate(135deg); }
.performance-card { display: grid; gap: 1.2rem; }
.performance-card > div:first-child span { display: block; color: var(--muted); font-size: .78rem; }
.performance-card > div:first-child strong { display: block; margin-top: .15rem; font-size: 1.35rem; }
.performance-card b { color: var(--cyan); font-size: 2.6rem; }
.score-ring, .level-orbit { position: relative; width: 160px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at center, #081522 58%, transparent 59%), conic-gradient(var(--cyan) calc(var(--score) * 1%), rgba(255,255,255,.07) 0); box-shadow: 0 0 35px rgba(46,233,255,.07); }
.score-ring::after, .level-orbit::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(46,233,255,.12); border-radius: 50%; }
.score-ring span { max-width: 90px; color: var(--text); font-size: .83rem; font-weight: 850; }

/* Exercise and challenge indexes */
.exercise-grid, .challenge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.exercise-card, .challenge-card { min-height: 330px; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(13, 29, 47, .92), rgba(7, 17, 29, .9)); }
.exercise-head { display: flex; justify-content: space-between; align-items: center; color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.exercise-head > span:first-child { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border: 1px solid var(--line-bright); border-radius: 12px; background: rgba(46,233,255,.06); }
.exercise-card h2 { margin: 1.3rem 0 .3rem; font-size: 1.45rem; }
.exercise-card > p { margin: 0 0 1.4rem; color: var(--muted); }
.exercise-card .button { align-self: flex-start; margin-top: auto; }
.challenge-card { position: relative; overflow: hidden; }
.challenge-number { position: absolute; right: .7rem; bottom: -2.4rem; color: rgba(74,141,255,.05); font: 900 10rem/1 ui-monospace, monospace; }
.challenge-state { align-self: flex-start; padding: .3rem .55rem; border: 1px solid rgba(255,200,91,.25); border-radius: 99px; color: var(--yellow); font-size: .66rem; letter-spacing: .1em; font-weight: 850; }
.challenge-card.is-complete .challenge-state { color: var(--green); border-color: rgba(66,232,166,.3); }
.challenge-card h2 { position: relative; margin: 1.3rem 0 .45rem; font-size: 1.55rem; }
.challenge-card p { position: relative; margin: 0; color: var(--muted); }
.challenge-reward { position: relative; display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0; color: var(--cyan); }
.challenge-card .button { position: relative; align-self: flex-start; margin-top: auto; }

/* Progress dashboard */
.progress-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 1.6rem 2rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(120deg, rgba(13,31,51,.95), rgba(8,18,31,.9)); }
.level-orbit { width: 150px; }
.level-orbit span, .level-orbit strong { position: absolute; z-index: 1; }
.level-orbit span { margin-top: -34px; color: var(--muted); font-size: .62rem; letter-spacing: .1em; }
.level-orbit strong { margin-top: 10px; font-size: 2rem; }
.level-summary h2 { margin: .35rem 0 .2rem; font-size: 1.8rem; }
.level-summary > p { margin: 0 0 1rem; color: var(--muted); }
.reset-progress { align-self: start; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: .8rem; }
.metric-grid article { min-height: 155px; display: flex; flex-direction: column; padding: 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,23,38,.76); }
.metric-grid article > span { color: var(--cyan); }
.metric-grid article > span .ui-icon { width: 25px; height: 25px; }
.metric-grid strong { margin-top: auto; font-size: 2rem; line-height: 1; }
.metric-grid small { color: var(--muted); font-size: .9rem; }
.metric-grid p { margin: .5rem 0 0; color: var(--muted); font-size: .78rem; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.badge-card { min-height: 150px; display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,23,38,.72); }
.badge-card.locked { filter: grayscale(1); opacity: .5; }
.badge-card.unlocked { border-color: rgba(66,232,166,.28); background: linear-gradient(145deg, rgba(66,232,166,.07), rgba(10,23,38,.8)); animation: badgeReveal .55s ease both; }
.badge-emblem { display: grid; place-items: center; width: 58px; aspect-ratio: 1; flex: 0 0 auto; border: 1px solid var(--line-bright); border-radius: 18px 18px 23px 23px; color: var(--cyan); background: rgba(46,233,255,.07); font: 850 .75rem ui-monospace, monospace; }
.badge-card strong { display: block; }
.badge-card p { margin: .25rem 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.badge-card div > span { color: var(--green); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.lesson-progress-list { display: grid; gap: .6rem; }
.lesson-progress-list > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,23,38,.72); }
.lesson-progress-list > a:hover { border-color: var(--line-bright); }
.lesson-progress-list > a > div { min-width: 0; }
.lesson-progress-list > a > div > strong { display: block; margin-bottom: .55rem; }
.lesson-progress-list > a > b { color: var(--cyan); }
.mini-lesson-icon { display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 12px; background: rgba(46,233,255,.07); color: var(--cyan); font: 800 .65rem ui-monospace, monospace; }

/* Reusable lesson template */
.lesson-shell { display: grid; gap: 1rem; }
.lesson-hero { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(14,32,52,.96), rgba(7,16,28,.92)); box-shadow: var(--shadow); }
.back-link { display: inline-block; margin-bottom: 1.8rem; color: var(--muted); font-size: .82rem; }
.back-link:hover { color: var(--cyan); }
.lesson-title-row { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.lesson-title-row h1 { max-width: 900px; margin: .5rem 0 .6rem; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.05em; }
.lesson-title-row p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1rem; }
.lesson-xp { width: 118px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; text-align: center; border: 1px solid rgba(46,233,255,.3); border-radius: 50%; background: rgba(46,233,255,.05); box-shadow: inset 0 0 30px rgba(46,233,255,.05); }
.lesson-xp span { color: var(--cyan); }
.lesson-xp strong { color: var(--cyan); font-size: 1.55rem; line-height: 1.1; }
.lesson-xp small { max-width: 70px; color: var(--muted); font-size: .58rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .07em; }
.lesson-status { display: grid; grid-template-columns: 1fr minmax(250px, 340px); align-items: end; gap: 2rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lesson-live-progress { width: 100%; }
.lesson-stepper { position: sticky; z-index: 35; top: 86px; display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,17,29,.93); backdrop-filter: blur(16px); }
.lesson-stepper a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.lesson-stepper a + a { border-left: 1px solid var(--line); }
.lesson-stepper a:hover { color: var(--text); background: rgba(46,233,255,.05); }
.lesson-stepper span { color: var(--cyan); font: 750 .66rem ui-monospace, monospace; }
.lesson-section { scroll-margin-top: 155px; display: grid; grid-template-columns: 68px 1fr; gap: 1.2rem; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: rgba(8,19,32,.76); }
.section-index { color: rgba(46,233,255,.34); font: 850 1rem ui-monospace, monospace; letter-spacing: .1em; }
.section-body { min-width: 0; }
.section-body > h2 { margin: .35rem 0 .4rem; font-size: clamp(1.7rem, 3.5vw, 2.55rem); letter-spacing: -.035em; }
.section-lead { max-width: 720px; margin: 0 0 1.3rem; color: var(--muted); }
.intro-section blockquote { max-width: 920px; margin: 1.1rem 0; padding: 1.2rem 1.3rem; border: 0; border-left: 3px solid var(--cyan); background: rgba(46,233,255,.045); font-size: 1.15rem; line-height: 1.65; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.outcome-grid > div { display: flex; align-items: center; gap: .6rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; color: #c6d8e8; font-size: .82rem; }
.outcome-grid .ui-icon { color: var(--green); }
.theory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.2rem; }
.theory-grid article { min-height: 170px; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,24,40,.72); }
.theory-grid article > span { color: var(--cyan); font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }
.theory-grid h3 { margin: .55rem 0 .3rem; }
.theory-grid p { margin: 0; color: var(--muted); font-size: .82rem; }

/* Interactive explanations */
.interactive-workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: 1rem; }
.system-map, .cpu-explorer { position: relative; min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at center, rgba(46,233,255,.07), transparent 42%), linear-gradient(rgba(74,141,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(74,141,255,.035) 1px, transparent 1px), #071522; background-size: auto, 24px 24px, 24px 24px, auto; }
.data-flow { position: absolute; left: 50%; top: 1rem; transform: translateX(-50%); color: var(--muted); font: 750 .62rem ui-monospace, monospace; letter-spacing: .13em; }
.system-node, .spec-node { position: absolute; min-width: 125px; min-height: 76px; padding: .65rem; border: 1px solid rgba(74,141,255,.24); border-radius: 12px; color: var(--text); background: rgba(8,24,40,.95); cursor: pointer; box-shadow: 0 14px 28px rgba(0,0,0,.2); transition: .2s ease; }
.system-node:hover, .system-node.active, .spec-node:hover, .spec-node.active { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 0 22px rgba(46,233,255,.12); }
.system-node.visited::after, .spec-node.visited::after { content: "✓"; position: absolute; right: .42rem; top: .35rem; color: var(--green); font-size: .7rem; }
.system-node small, .system-node strong, .system-node span, .spec-node small, .spec-node strong { display: block; }
.system-node small { color: var(--cyan); font: 700 .55rem ui-monospace, monospace; }
.system-node strong { margin-top: .15rem; font: 850 .95rem ui-monospace, monospace; }
.system-node span { margin-top: .2rem; color: var(--muted); font-size: .66rem; }
.input-node { left: 5%; top: 18%; }.cpu-node { left: 50%; top: 18%; transform: translateX(-50%); }.cpu-node:hover, .cpu-node.active { transform: translateX(-50%) translateY(-3px); }.output-node { right: 5%; top: 18%; }
.ram-node { left: 17%; top: 50%; }.storage-node { right: 17%; top: 50%; }.board-node { left: 50%; bottom: 5%; transform: translateX(-50%); }.board-node:hover, .board-node.active { transform: translateX(-50%) translateY(-3px); }.bus-node { left: 50%; top: 39%; min-width: 240px; min-height: 56px; transform: translateX(-50%); border-color: rgba(46,233,255,.28); }.bus-node:hover, .bus-node.active { transform: translateX(-50%) translateY(-3px); }
.flow-arrow { position: absolute; top: 24%; color: var(--cyan); font-size: 1.5rem; opacity: .65; }.arrow-one { left: 29%; }.arrow-two { right: 29%; }
.component-inspector { min-height: 500px; display: flex; flex-direction: column; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(14,31,50,.94), rgba(7,17,29,.94)); }
.inspector-label { color: var(--muted); font: 750 .62rem ui-monospace, monospace; letter-spacing: .14em; }
#inspector-content { margin-top: auto; margin-bottom: auto; }
#inspector-content small { color: var(--cyan); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
#inspector-content h3 { margin: .5rem 0; font-size: 1.65rem; }
#inspector-content p { margin: 0; color: var(--muted); }
.inspector-progress { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.cpu-die { position: absolute; left: 50%; top: 50%; width: 170px; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); display: grid; place-items: center; align-content: center; border: 2px solid rgba(46,233,255,.5); border-radius: 24px; background: linear-gradient(145deg, #112b42, #071421); box-shadow: 0 0 60px rgba(46,233,255,.12), inset 0 0 30px rgba(46,233,255,.08); }
.cpu-die > * { transform: rotate(-45deg); }
.cpu-die span, .cpu-die small { color: var(--muted); font: 700 .6rem ui-monospace, monospace; letter-spacing: .1em; }
.cpu-die strong { color: var(--cyan); font-size: 2rem; line-height: 1; }
.spec-node { min-width: 130px; min-height: 62px; }
.spec-node small { color: var(--muted); font-size: .62rem; }
.spec-node strong { margin-top: .25rem; color: var(--cyan); }
.spec-1 { left: 4%; top: 8%; }.spec-2 { left: 38%; top: 4%; }.spec-3 { right: 4%; top: 10%; }.spec-4 { left: 4%; top: 43%; }.spec-5 { right: 4%; top: 44%; }.spec-6 { left: 12%; bottom: 7%; }.spec-7 { right: 12%; bottom: 7%; }

/* Tables and games */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.cpu-table { width: 100%; min-width: 650px; border-collapse: collapse; background: rgba(7,18,31,.8); }
.cpu-table th, .cpu-table td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.cpu-table thead th { color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.cpu-table tbody th { color: var(--cyan); }
.cpu-table tbody td { font: 700 .8rem ui-monospace, monospace; }
.game-card { overflow: hidden; margin-top: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,18,31,.8); }
.game-card > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: rgba(13,29,47,.7); }
.game-number { color: var(--cyan); font: 750 .65rem ui-monospace, monospace; letter-spacing: .1em; }
.game-card h3 { margin: 0; }
.game-card header p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.reward-chip { padding: .35rem .55rem; border: 1px solid rgba(46,233,255,.24); border-radius: 99px; color: var(--cyan); font-size: .7rem; font-weight: 800; }
.game-mount { min-height: 240px; padding: 1.2rem; }
.match-board { display: grid; grid-template-columns: .7fr 1.3fr; gap: 1rem; }
.match-bank, .match-targets { display: grid; gap: .6rem; align-content: start; }
.match-bank { padding: .8rem; border: 1px dashed rgba(46,233,255,.25); border-radius: 14px; background: rgba(46,233,255,.025); }
.match-chip, .match-target { min-height: 52px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: rgba(13,30,49,.9); cursor: pointer; }
.match-chip { padding: .7rem; font-weight: 850; }
.match-chip:hover, .match-chip.selected { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.match-chip.solved { opacity: .3; }
.match-target { display: grid; grid-template-columns: minmax(94px, auto) 1fr; align-items: center; gap: .7rem; padding: .5rem; text-align: left; }
.target-slot { display: grid; place-items: center; min-height: 37px; padding: .25rem .55rem; border: 1px dashed rgba(121,194,255,.25); border-radius: 8px; color: var(--muted); font-size: .68rem; text-align: center; }
.match-target.ready { border-color: rgba(46,233,255,.55); background: rgba(46,233,255,.05); }
.match-target.solved { border-color: rgba(66,232,166,.4); background: rgba(66,232,166,.06); }
.match-target.solved .target-slot { color: var(--green); border-color: rgba(66,232,166,.35); }
.wrong { animation: shake .35s ease; border-color: var(--red) !important; }
.activity-hint { color: var(--muted); font-size: .72rem; }
.game-feedback, .quiz-feedback, .challenge-feedback { min-height: 46px; display: flex; align-items: center; gap: .5rem; margin-top: .8rem; padding: .7rem .85rem; border: 1px solid transparent; border-radius: 10px; font-size: .82rem; }
.game-feedback:empty, .quiz-feedback:empty, .challenge-feedback:empty { display: none; }
.correct { color: #baffdf; border-color: rgba(66,232,166,.3); background: rgba(66,232,166,.07); }
.incorrect { color: #ffd0da; border-color: rgba(255,102,132,.3); background: rgba(255,102,132,.07); }
.info { color: #cfe2ff; border-color: rgba(74,141,255,.3); background: rgba(74,141,255,.07); }
.inline-next { margin-left: auto; padding: .4rem .7rem; color: var(--cyan); border: 1px solid var(--line-bright); border-radius: 8px; background: transparent; cursor: pointer; font-weight: 800; }
.round-meta { display: flex; justify-content: space-between; margin: 1rem 0 .5rem; color: var(--muted); font-size: .7rem; }
.game-question { margin: .4rem 0 1rem; font-size: 1.15rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.choice-card { min-height: 100px; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; padding: .9rem; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(13,31,51,.95), rgba(8,18,31,.9)); cursor: pointer; }
.choice-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.choice-card span { font-size: 1rem; font-weight: 850; }
.choice-card small { margin-top: .3rem; color: var(--muted); }
.choice-card.correct { border-color: var(--green); }
.activity-success { min-height: 215px; display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: left; }
.activity-success > span { display: grid; place-items: center; width: 58px; aspect-ratio: 1; color: #052018; border-radius: 50%; background: var(--green); font-size: 1.5rem; font-weight: 900; box-shadow: 0 0 28px rgba(66,232,166,.22); }
.activity-success strong { font-size: 1.15rem; }
.activity-success p { margin: .25rem 0 0; color: var(--muted); }

/* Quiz and challenges */
.quiz-form { display: grid; gap: .8rem; }
.result-banner { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid rgba(66,232,166,.25); border-radius: 13px; background: rgba(66,232,166,.055); }
.result-banner > span { color: var(--green); }
.result-banner strong { display: block; }
.result-banner p { margin: .2rem 0 0; color: var(--muted); font-size: .75rem; }
.quiz-question { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,18,31,.75); }
.quiz-question legend { display: flex; align-items: center; gap: .7rem; padding: 0 .4rem; font-weight: 750; }
.quiz-question legend span { color: var(--cyan); font: 700 .67rem ui-monospace, monospace; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: .75rem; }
.quiz-options label, .follow-up label, .processor-pick label, .evidence-pick label { position: relative; cursor: pointer; }
.quiz-options input, .follow-up input, .processor-pick input, .evidence-pick input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-options label span, .follow-up label span, .processor-pick label > span, .evidence-pick label span { min-height: 48px; display: flex; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; color: #c9dae9; background: rgba(13,30,49,.72); }
.quiz-options input:checked + span, .follow-up input:checked + span, .processor-pick input:checked + span, .evidence-pick input:checked + span { border-color: var(--cyan); color: var(--text); background: rgba(46,233,255,.07); box-shadow: inset 3px 0 0 var(--cyan); }
.quiz-options input:focus-visible + span, .follow-up input:focus-visible + span, .processor-pick input:focus-visible + span, .evidence-pick input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.answered-correct { border-color: rgba(66,232,166,.35); }
.answered-wrong { border-color: rgba(255,102,132,.35); }
.answer-explanation { display: none; margin-top: .7rem; padding: .65rem .8rem; border-radius: 9px; font-size: .75rem; }
.answered-correct .answer-explanation, .answered-wrong .answer-explanation { display: flex; gap: .5rem; }
.answered-correct .answer-explanation { color: #baffdf; background: rgba(66,232,166,.07); }
.answered-wrong .answer-explanation { color: #ffd0da; background: rgba(255,102,132,.07); }
.answer-explanation strong { flex: 0 0 auto; }
.quiz-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.quiz-submit-row > span { color: var(--muted); font-size: .75rem; }
.quiz-feedback { justify-content: space-between; }
.quiz-feedback strong, .quiz-feedback span { display: block; }
.challenge-section { border-color: rgba(136,118,255,.25); background: linear-gradient(145deg, rgba(136,118,255,.055), rgba(8,19,32,.8)); }
.challenge-form { display: grid; gap: 1rem; }
.sequence-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sequence-list li { min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,21,36,.85); }
.sequence-index { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 8px; color: var(--cyan); background: rgba(46,233,255,.07); font: 750 .7rem ui-monospace, monospace; }
.sequence-actions { display: flex; gap: .35rem; }
.sequence-actions button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; }
.sequence-actions button:hover { color: var(--cyan); border-color: var(--line-bright); }
.follow-up, .processor-pick, .evidence-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; }
.follow-up legend, .processor-pick legend, .evidence-pick legend { grid-column: 1 / -1; padding: 0 .4rem; font-weight: 750; }
.processor-pick label > span { display: grid; }
.processor-pick small { color: var(--muted); font-size: .68rem; }
.evidence-pick { grid-template-columns: repeat(2, 1fr); }
.challenge-form > .button { justify-self: start; }
.challenge-complete { min-height: 180px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid rgba(66,232,166,.3); border-radius: 14px; background: rgba(66,232,166,.06); }
.challenge-complete > span { color: var(--green); }
.challenge-complete > span .ui-icon { width: 36px; height: 36px; }
.challenge-complete strong { font-size: 1.2rem; }
.challenge-complete p { margin: .2rem 0 0; color: var(--muted); }
.challenge-complete > b { color: var(--cyan); }

/* Lesson completion */
.completion-section { border-color: rgba(46,233,255,.22); background: radial-gradient(circle at 90% 10%, rgba(46,233,255,.07), transparent 35%), rgba(8,19,32,.82); }
.completion-panel { min-height: 300px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
.completion-orb { width: 150px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(46,233,255,.3); border-radius: 50%; color: var(--cyan); background: rgba(46,233,255,.05); box-shadow: inset 0 0 35px rgba(46,233,255,.04); font-size: 1.8rem; font-weight: 900; }
.completion-orb .ui-icon { width: 55px; height: 55px; }
.completion-panel.complete .completion-orb { color: var(--green); border-color: rgba(66,232,166,.4); background: rgba(66,232,166,.06); }
.completion-copy h2 { margin: .35rem 0; font-size: 2rem; }
.completion-copy > p { margin: 0; color: var(--muted); }
.completion-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin: 1.2rem 0; }
.completion-stats span { padding: .75rem; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.completion-stats strong { display: block; color: var(--text); font-size: 1.1rem; }
.completion-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* States, notifications, classroom */
.empty-state { min-height: 65vh; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state > span { color: rgba(46,233,255,.2); font: 900 8rem/1 ui-monospace, monospace; }
.empty-state h1 { margin: -1rem 0 .3rem; font-size: 2rem; }
.empty-state p { color: var(--muted); }
.toast { min-width: min(360px, calc(100vw - 2rem)); display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(9,23,38,.96); box-shadow: var(--shadow); transform: translateY(18px); opacity: 0; transition: .25s ease; }
.toast.show { transform: none; opacity: 1; }
.toast > span { display: grid; place-items: center; width: 28px; aspect-ratio: 1; border-radius: 50%; color: #06141c; background: var(--cyan); font-weight: 900; }
.toast.success > span { background: var(--green); }.toast.badge > span { background: var(--yellow); }
.toast strong { font-size: .82rem; }
.control-button.active { color: var(--cyan); border-color: var(--line-bright); background: rgba(46,233,255,.08); }
.classroom-mode { font-size: 118%; }
.classroom-mode .ambient, .classroom-mode .feature-strip, .classroom-mode .site-footer { display: none; }
.classroom-mode .site-header { position: relative; }
.classroom-mode .main-nav { visibility: hidden; }
.classroom-mode .lesson-stepper { top: .75rem; }
.classroom-mode .button, .classroom-mode button, .classroom-mode select { min-height: 54px; }
.classroom-mode main { width: min(calc(100% - 2rem), 1500px); }

@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes badgeReveal { from { transform: scale(.92); opacity: .3; } to { transform: none; opacity: 1; } }
