:root {
  --ink: #eaf0ff;
  --ink-dark: #13172a;
  --navy: #080b1c;
  --navy-2: #0d1227;
  --surface: #121831;
  --surface-2: #171f3e;
  --paper: #f5f7ff;
  --paper-2: #e8ecfb;
  --line: rgba(157, 172, 255, .18);
  --line-dark: rgba(20, 27, 55, .14);
  --muted: #95a0c6;
  --muted-dark: #657091;
  --orange: #ff6b4a;
  --orange-soft: #fff0eb;
  --violet: #7c5cff;
  --violet-2: #a88bff;
  --cyan: #2ed9ff;
  --cyan-soft: #dff9ff;
  --lime: #6ee7a8;
  --yellow: #ffd166;
  --red: #ff6174;
  --white: #fff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .28);
  --glow: 0 0 42px rgba(124, 92, 255, .25);
  --radius: 22px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--navy); }
body { min-height: 100vh; margin: 0; font-family: var(--sans); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(46, 217, 255, .45); outline-offset: 3px; }

.student-body, .display-body {
  background:
    radial-gradient(circle at 12% -5%, rgba(124, 92, 255, .24), transparent 32rem),
    radial-gradient(circle at 92% 10%, rgba(46, 217, 255, .15), transparent 30rem),
    linear-gradient(145deg, #080b1c 0%, #0d1227 50%, #091324 100%);
  background-attachment: fixed;
}
.student-body::before, .display-body::before { content: ""; position: fixed; z-index: -1; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.admin-body { color: var(--ink-dark); background: #f4f6fc; }

.page-shell { width: min(1500px, 100%); min-height: 100vh; margin: auto; padding: 22px clamp(16px, 3.5vw, 58px) 50px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 5px 0 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.topbar-status { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.admin-body .brand { color: var(--ink-dark); }
.brand > span:last-child { display: grid; }
.brand b { font-size: 14px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.brand-logos { display: inline-flex; align-items: center; gap: 5px; }
.git-logo, .github-logo { display: block; width: 34px; height: 34px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.github-logo { width: 29px; height: 29px; }
.brand-plus { color: var(--muted); font-size: 14px; }
.icon-github { width: 24px; height: 24px; flex: 0 0 auto; }
.line-icon { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.phase-badge, .status-badge, .step-counter { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 11px; color: #bdc6e5; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(12px); }
.step-counter { color: var(--cyan); }
.status-dot { width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,209,102,.1); }
.status-dot.running { background: var(--lime); box-shadow: 0 0 0 4px rgba(110,231,168,.1), 0 0 16px rgba(110,231,168,.6); animation: breathe 1.8s ease-in-out infinite; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.divider { height: 1px; margin: 21px 0; background: var(--line-dark); }

.button { min-height: 44px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--white); background: linear-gradient(135deg, var(--violet), #6345e8); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 9px 24px rgba(89, 59, 211, .25); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(89,59,211,.35); }
.button:active { transform: translateY(0) scale(.985); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button.secondary { color: #08111e; background: linear-gradient(135deg, var(--cyan), #5af0ca); box-shadow: 0 9px 24px rgba(46,217,255,.18); }
.button.quiet { color: inherit; background: transparent; border-color: currentColor; box-shadow: none; opacity: .75; }
.button.quiet:hover { opacity: 1; background: rgba(255,255,255,.06); }
.admin-body .button.quiet { color: var(--ink-dark); background: var(--white); border-color: #d6dbeb; }
.button.danger { background: var(--red); }
.button.cyan { color: #071423; background: var(--cyan); }
.button.full { width: 100%; margin-top: 18px; }
.button.small { min-height: 34px; padding: 7px 11px; border-radius: 9px; font-size: 11px; }
.button-row, .admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button-glow { position: relative; overflow: hidden; }
.button-glow::after { content: ""; position: absolute; top: -80%; left: -40%; width: 28%; height: 250%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: rotate(22deg); animation: shimmer 3.8s ease-in-out infinite; }

input, select { width: 100%; padding: 12px 13px; color: var(--ink-dark); background: var(--white); border: 1px solid #c9d0e6; border-radius: 10px; outline: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.13); }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { color: var(--ink-dark); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.field > span { color: var(--muted-dark); font-size: 9px; }
.input-prefix { display: flex; align-items: center; background: var(--white); border: 1px solid #c9d0e6; border-radius: 10px; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.input-prefix:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.13); }
.input-prefix b { padding-left: 13px; color: var(--violet); }
.input-prefix input { border: 0; box-shadow: none; }
.form-error { min-height: 18px; margin: 10px 0 0; color: #c52e47; font-size: 12px; }

/* Welcome */
.welcome-screen { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.15fr minmax(380px, .85fr); align-items: center; gap: clamp(35px, 7vw, 110px); position: relative; overflow: hidden; }
.ambient-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; animation: drift 10s ease-in-out infinite alternate; }
.orb-one { width: 320px; height: 320px; left: -170px; top: 15%; background: radial-gradient(circle at 65% 40%, rgba(124,92,255,.42), transparent 68%); }
.orb-two { width: 420px; height: 420px; right: -230px; bottom: -140px; background: radial-gradient(circle at 35% 35%, rgba(46,217,255,.28), transparent 68%); animation-delay: -4s; }
.welcome-copy { padding-left: clamp(0px, 4vw, 55px); animation: rise-in .65s cubic-bezier(.2,.8,.2,1) both; }
.welcome-copy .brand { margin-bottom: clamp(40px, 8vh, 90px); }
.welcome-label { margin: 0 0 13px; color: var(--cyan) !important; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.welcome-copy h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(48px, 6.7vw, 96px); line-height: .93; letter-spacing: -.065em; }
.welcome-copy h1 em, .lesson-slide h1 em, .practice-complete h1 em { color: transparent; background: linear-gradient(100deg, var(--violet-2), var(--cyan)); background-clip: text; font-style: normal; }
.welcome-copy > p:last-child { max-width: 580px; color: #aab5d7; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.65; }
.logo-showcase { display: none; }
.welcome-form { padding: clamp(27px, 3.5vw, 48px); color: var(--ink-dark); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.55); border-radius: 26px; box-shadow: var(--shadow), var(--glow); backdrop-filter: blur(18px); animation: rise-in .65s .12s cubic-bezier(.2,.8,.2,1) both; }
.form-heading { display: flex; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid #e0e4f0; }
.form-heading > span { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, var(--violet), var(--cyan)); border-radius: 11px; font: 800 11px var(--mono); }
.form-heading h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.025em; }
.form-heading p { margin: 0; color: var(--muted-dark); font-size: 11px; }

/* Main shells */
.student-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 20px; align-items: start; }
.experience-wide { width: 100%; }
.content-stack, .side-stack { display: grid; gap: 16px; min-width: 0; }
.side-stack { position: sticky; top: 18px; }
.panel { background: rgba(15,21,44,.88); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(16px); }
.panel-pad { padding: clamp(22px, 4vw, 42px); }
.identity-card { padding: 18px; background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 17px; backdrop-filter: blur(14px); }
.identity-top { display: flex; align-items: center; gap: 11px; }
.avatar, .member-avatar { display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, var(--violet), #4fcbff); font-weight: 900; box-shadow: 0 9px 24px rgba(124,92,255,.25); }
.avatar { width: 41px; height: 41px; border-radius: 13px; }
.identity-card h3 { margin: 0 0 2px; font-size: 14px; }
.identity-card p { margin: 0; color: var(--muted); font-size: 11px; }
.meta-list { display: grid; gap: 10px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.meta-row span { color: var(--muted); }
.meta-row strong { max-width: 58%; text-align: right; }
.repo-side-link { padding: 15px; display: flex; align-items: center; gap: 11px; color: var(--ink); background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(46,217,255,.08)); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .2s, border-color .2s; }
.repo-side-link:hover { transform: translateY(-2px); border-color: rgba(46,217,255,.5); }
.repo-side-link span { display: grid; }
.repo-side-link small { color: var(--muted); font-size: 8px; letter-spacing: .09em; }
.repo-side-link strong { margin-top: 3px; font-size: 11px; }

/* Team setup */
.team-setup { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 610px; }
.section-intro { padding: clamp(30px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(150deg, rgba(124,92,255,.18), rgba(12,18,40,.2)); }
.section-intro h1 { margin-bottom: 22px; font-size: clamp(43px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; }
.section-intro > p:last-child { max-width: 450px; color: #aeb8d8; line-height: 1.65; }
.team-options { padding: clamp(24px, 4vw, 52px); display: grid; gap: 14px; align-content: center; }
.team-option { position: relative; min-height: 235px; padding: 25px 25px 23px 105px; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, border-color .25s, background .25s; animation: rise-in .55s both; }
.team-option:nth-child(2) { animation-delay: .1s; }
.team-option:hover { transform: translateX(-5px); background: rgba(255,255,255,.07); border-color: rgba(46,217,255,.45); }
.option-icon { position: absolute; left: 25px; top: 28px; width: 57px; height: 57px; display: grid; place-items: center; color: var(--cyan); background: rgba(46,217,255,.08); border: 1px solid rgba(46,217,255,.2); border-radius: 17px; }
.option-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.option-number { position: absolute; right: 19px; top: 15px; color: rgba(255,255,255,.12); font: 900 38px var(--mono); }
.team-option h2 { margin: 3px 0 8px; font-size: 22px; }
.team-option p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.team-option .button { margin-top: 11px; }
.join-form { display: flex; gap: 8px; margin-top: 16px; }
.join-form input { color: var(--ink); background: rgba(4,8,22,.45); border-color: var(--line); font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; }

/* Lobby */
.lobby { padding: clamp(28px, 5vw, 64px); min-height: 650px; position: relative; }
.lobby::after { content: ""; position: absolute; width: 400px; height: 400px; right: -190px; top: -190px; border: 1px solid rgba(46,217,255,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(46,217,255,.025), 0 0 0 100px rgba(124,92,255,.02); pointer-events: none; }
.lobby-head { display: flex; align-items: start; justify-content: space-between; gap: 40px; }
.lobby-head h1 { margin-bottom: 12px; font-size: clamp(38px, 5vw, 66px); letter-spacing: -.05em; }
.lobby-head p:last-child { max-width: 600px; color: var(--muted); }
.room-ticket { min-width: 245px; padding: 18px 20px; position: relative; display: grid; color: var(--ink-dark); background: linear-gradient(135deg, var(--cyan), #7de6ff); border-radius: 17px; box-shadow: 0 18px 45px rgba(46,217,255,.18); transform: rotate(1.5deg); }
.room-ticket::before, .room-ticket::after { content: ""; position: absolute; width: 18px; height: 18px; top: 50%; background: var(--surface); border-radius: 50%; transform: translateY(-50%); }
.room-ticket::before { left: -9px; }.room-ticket::after { right: -9px; }
.room-ticket span { font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.room-ticket strong { margin: 4px 0; font: 900 clamp(25px, 3vw, 39px) var(--mono); letter-spacing: -.05em; }
.room-ticket small { justify-self: end; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.team-diagram { margin: clamp(44px, 8vh, 84px) auto 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.diagram-line { position: absolute; z-index: 0; top: 49px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 18px rgba(46,217,255,.6); animation: line-grow .8s .15s both; transform-origin: left; }
.team-node { min-width: 0; padding: 23px 18px; position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; background: var(--surface-2); border: 1px solid rgba(157,172,255,.25); border-radius: 17px; box-shadow: 0 18px 36px rgba(0,0,0,.2); animation: node-in .45s var(--delay) both; }
.member-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; }
.team-node strong, .team-node span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-node strong { font-size: 13px; }.team-node span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.team-node .crown { margin-left: auto; color: var(--yellow); font-style: normal; filter: drop-shadow(0 0 8px rgba(255,209,102,.55)); }
.empty-node { opacity: .5; border-style: dashed; background: rgba(255,255,255,.02); }
.empty-node .member-avatar { color: var(--muted); background: rgba(255,255,255,.05); box-shadow: none; }
.leader-console { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(124,92,255,.09); border: 1px solid rgba(124,92,255,.28); border-radius: 15px; }
.leader-console > div { display: flex; align-items: center; gap: 13px; }
.leader-console strong { font-size: 12px; }.leader-console p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.leader-pulse { width: 10px; height: 10px; flex: 0 0 auto; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 6px rgba(110,231,168,.09), 0 0 20px rgba(110,231,168,.75); animation: breathe 1.6s infinite; }
.waiting-note { min-height: 52px; padding: 14px 17px; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px; font-size: 11px; }

/* Lesson slides */
.lesson-stage { min-height: calc(100vh - 125px); padding: clamp(24px, 4vw, 56px); position: relative; display: grid; grid-template-rows: auto 1fr auto; background: rgba(10,14,31,.72); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(16px); }
.lesson-stage::before { content: ""; position: absolute; width: 540px; height: 540px; right: -230px; bottom: -250px; background: radial-gradient(circle, rgba(124,92,255,.18), transparent 68%); border-radius: 50%; pointer-events: none; }
.slide-progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.slide-progress i { height: 4px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.slide-progress i.active { background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 12px rgba(46,217,255,.3); animation: progress-in .45s both; }
.lesson-slide { padding: 5vh 2vw 3vh; display: grid; grid-template-columns: minmax(350px, .92fr) minmax(420px, 1.08fr); gap: clamp(35px, 6vw, 100px); align-items: center; animation: slide-in .55s cubic-bezier(.2,.8,.2,1) both; }
.slide-copy h1 { margin-bottom: 23px; font-size: clamp(43px, 5.5vw, 78px); line-height: .98; letter-spacing: -.06em; }
.slide-copy > p:last-child { max-width: 650px; color: #aab5d7; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.65; }
.slide-footer { padding-top: 18px; display: flex; justify-content: space-between; color: #697598; border-top: 1px solid var(--line); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.slide-footer strong { color: var(--cyan); font: 800 12px var(--mono); }
.git-collab-visual, .github-orbit { min-height: 420px; position: relative; display: grid; place-items: center; }
.hero-git { width: 180px; height: 180px; display: grid; place-items: center; color: var(--orange); filter: drop-shadow(0 28px 45px rgba(255,107,74,.28)); animation: hover 3s ease-in-out infinite; }
.hero-git svg { width: 100%; height: 100%; }
.collab-ring { position: absolute; width: 360px; height: 360px; border: 1px dashed rgba(46,217,255,.28); border-radius: 50%; animation: slow-spin 25s linear infinite; }
.collab-ring > span { position: absolute; display: grid; justify-items: center; gap: 5px; transform: translate(-50%,-50%); }
.collab-ring > span:nth-child(1) { left: 50%; top: 0; }.collab-ring > span:nth-child(2) { left: 93%; top: 76%; }.collab-ring > span:nth-child(3) { left: 7%; top: 76%; }
.collab-ring i { width: 52px; height: 52px; display: grid; place-items: center; color: var(--navy); background: var(--cyan); border: 5px solid var(--surface); border-radius: 50%; font-style: normal; font-weight: 900; box-shadow: 0 0 28px rgba(46,217,255,.35); }
.collab-ring b { font-size: 9px; }
.timeline-visual { min-height: 390px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.timeline-track { position: absolute; left: 5%; right: 5%; top: 50%; height: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.timeline-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--lime)); animation: line-grow 2.8s .15s ease-in-out infinite; transform-origin: left; }
.timeline-commit { position: relative; display: grid; justify-items: center; gap: 8px; animation: pop-in .45s calc(var(--i) * 230ms + 300ms) both; }
.timeline-commit span { width: 26px; height: 26px; background: var(--surface); border: 6px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 0 6px rgba(46,217,255,.1), 0 0 25px rgba(46,217,255,.45); }
.timeline-commit b { color: var(--white); font: 800 13px var(--mono); }.timeline-commit small { color: var(--muted); font-size: 9px; text-align: center; }
.giant-github { width: 180px; height: 180px; display: grid; color: var(--white); filter: drop-shadow(0 25px 45px rgba(124,92,255,.32)); animation: breathe-scale 3s ease-in-out infinite; }
.giant-github svg { width: 100%; height: 100%; }
.github-orbit > i { position: absolute; min-width: 72px; padding: 8px; color: var(--cyan); background: rgba(46,217,255,.08); border: 1px solid rgba(46,217,255,.24); border-radius: 999px; font: 800 9px var(--mono); text-align: center; transform: translate(-50%,-50%); animation: pop-in .5s calc(var(--i) * 120ms) both; }
.github-orbit > i:nth-of-type(1) { left: 50%; top: 5%; }.github-orbit > i:nth-of-type(2) { left: 95%; top: 50%; }.github-orbit > i:nth-of-type(3) { left: 50%; top: 95%; }.github-orbit > i:nth-of-type(4) { left: 5%; top: 50%; }
.start-options { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.start-card { min-height: 315px; padding: 30px 24px; display: flex; flex-direction: column; align-items: start; color: var(--ink); background: linear-gradient(145deg, rgba(124,92,255,.16), rgba(255,255,255,.035)); border: 1px solid rgba(124,92,255,.3); border-radius: 22px; animation: rise-in .55s both; }
.clone-card { border-color: rgba(46,217,255,.3); animation-delay: .15s; }
.start-card > span { color: var(--violet-2); }.clone-card > span { color: var(--cyan); }
.start-card code { margin: 28px 0 18px; padding: 8px 10px; color: var(--lime); background: rgba(0,0,0,.25); border-radius: 7px; font-size: 11px; }
.start-card strong { font-size: 18px; }.start-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.start-arrow { color: var(--muted); font: 800 10px var(--mono); }
.code-window { position: relative; color: #dfe7ff; background: #070a14; border: 1px solid #28314e; border-radius: 17px; box-shadow: 0 28px 60px rgba(0,0,0,.38); overflow: hidden; }
.code-window header { padding: 12px 14px; display: flex; align-items: center; gap: 6px; color: var(--muted); background: #11162a; border-bottom: 1px solid #282f49; font: 10px var(--mono); }
.code-window header i { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }.code-window header i:nth-child(2) { background: var(--yellow); }.code-window header i:nth-child(3) { margin-right: 7px; background: var(--lime); }
.code-window pre { min-height: 270px; margin: 0; padding: 45px 30px; font: 13px/2 var(--mono); white-space: pre-wrap; }
.code-window pre span { color: #c8d2f2; }.code-window pre del, .code-window pre ins { display: block; margin: 0 -30px; padding: 0 30px; text-decoration: none; }
.code-window pre del { color: #ff8b9a; background: rgba(255,97,116,.1); animation: code-remove .6s .7s both; }.code-window pre ins { color: #8ef0b8; background: rgba(110,231,168,.1); animation: code-add .6s 1.2s both; }
.modified-chip { position: absolute; right: 15px; bottom: 14px; padding: 6px 8px; color: var(--yellow); background: rgba(255,209,102,.09); border: 1px solid rgba(255,209,102,.22); border-radius: 7px; font: 800 9px var(--mono); animation: pop-in .4s 1.65s both; }
.stage-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.stage-zone { min-height: 265px; display: grid; place-items: center; align-content: center; gap: 35px; background: rgba(255,255,255,.035); border: 2px dashed rgba(157,172,255,.22); border-radius: 22px; }
.stage-zone.ready { border-color: rgba(110,231,168,.4); background: rgba(110,231,168,.045); }
.stage-zone small { color: var(--muted); font: 800 9px var(--mono); letter-spacing: .1em; }
.floating-file { width: 80px; height: 100px; display: grid; place-items: center; color: #091324; background: linear-gradient(145deg, var(--yellow), #ff9f5a); border-radius: 10px 10px 22px 10px; font: 900 18px var(--mono); box-shadow: 0 20px 35px rgba(0,0,0,.28); animation: file-transfer 3s ease-in-out infinite; }
.stage-zone.ready .floating-file { background: linear-gradient(145deg, var(--lime), var(--cyan)); animation-delay: 1.5s; }
.stage-command { display: grid; justify-items: center; gap: 15px; }.stage-command code { padding: 9px; color: var(--cyan); background: rgba(46,217,255,.08); border-radius: 8px; font-size: 10px; }.stage-command i { color: var(--violet-2); font-size: 30px; font-style: normal; }
.commit-visual { display: grid; justify-items: center; gap: 34px; }
.commit-terminal { width: min(540px, 100%); padding: 24px; display: grid; gap: 14px; color: #9ba7c9; background: #060913; border: 1px solid #2a3352; border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.35); font: 11px var(--mono); }
.commit-terminal strong { color: var(--lime); font-size: 15px; animation: type-in 1.4s steps(30) both; overflow: hidden; white-space: nowrap; }
.commit-stamp { width: 180px; height: 180px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--lime); background: rgba(110,231,168,.06); border: 2px solid rgba(110,231,168,.42); border-radius: 50%; box-shadow: 0 0 45px rgba(110,231,168,.14); animation: stamp-in .55s .9s both; }
.commit-stamp i { width: 48px; height: 48px; display: grid; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50%; font-style: normal; font-size: 25px; }.commit-stamp span { font-size: 10px; font-weight: 900; letter-spacing: .12em; }.commit-stamp code { color: var(--muted); font-size: 10px; }
.sync-visual { display: grid; grid-template-columns: 1fr 130px 1fr; align-items: center; gap: 18px; }
.sync-machine { min-height: 260px; display: grid; place-content: center; justify-items: center; color: var(--violet-2); background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.25); border-radius: 22px; }
.sync-machine svg { width: 90px; height: 90px; }.github-machine { color: var(--cyan); background: rgba(46,217,255,.06); border-color: rgba(46,217,255,.25); }.github-machine svg { width: 87px; height: 87px; }
.sync-machine strong { margin-top: 18px; color: var(--ink); }.sync-machine small { margin-top: 4px; color: var(--muted); }
.sync-arrows { display: grid; gap: 34px; overflow: hidden; }.sync-arrows span { display: flex; gap: 8px; color: var(--cyan); font: 800 11px var(--mono); white-space: nowrap; }.sync-arrows .push-arrow { animation: push-right 2.5s infinite; }.sync-arrows .pull-arrow { color: var(--violet-2); animation: pull-left 2.5s 1.25s infinite; }

/* Practice lab */
.practice-shell { padding: clamp(20px, 3vw, 36px); background: rgba(8,11,28,.78); border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.practice-header { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.practice-header h1 { margin: 0; font-size: clamp(29px, 3.4vw, 46px); letter-spacing: -.04em; }
.practice-progress { display: flex; gap: 5px; }
.practice-progress span { width: 56px; display: grid; justify-items: center; gap: 5px; color: #5e6b90; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.practice-progress i { width: 25px; height: 25px; display: grid; place-items: center; color: #7180a7; background: #171d35; border: 1px solid #28304c; border-radius: 50%; font: normal 800 9px var(--mono); }
.practice-progress .done { color: #84dbaa; }.practice-progress .done i { color: #071423; background: var(--lime); border-color: var(--lime); }.practice-progress .current { color: var(--cyan); }.practice-progress .current i { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(46,217,255,.08), 0 0 18px rgba(46,217,255,.38); animation: breathe 1.6s infinite; }
.practice-grid { display: grid; grid-template-columns: 260px minmax(430px, 1fr) 235px; gap: 12px; align-items: stretch; }
.repo-explorer, .repo-state { min-height: 530px; background: #11162b; border: 1px solid #29304a; border-radius: 14px; overflow: hidden; }
.window-title { min-height: 45px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; color: #c9d4f2; background: #171d34; border-bottom: 1px solid #29304a; font: 700 9px var(--mono); }
.window-title span { display: flex; align-items: center; gap: 7px; }.window-title svg { width: 17px; height: 17px; }.window-title small { color: var(--cyan); font-size: 7px; letter-spacing: .08em; }
.file-tree { min-height: 185px; padding: 10px; display: grid; align-content: start; gap: 3px; }
.tree-file { min-height: 36px; padding: 7px 8px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; color: #aeb8d8; border-radius: 7px; font: 9px var(--mono); animation: file-in .35s both; }
.tree-file:hover { background: rgba(255,255,255,.04); }.tree-file i { color: var(--yellow); font-style: normal; font-weight: 900; }.tree-file b { color: var(--yellow); }.tree-file.staged { color: #c9f8dc; background: rgba(110,231,168,.07); }.tree-file.staged b { color: var(--lime); }.tree-file.system { color: #7884a8; }
.empty-tree { min-height: 160px; display: grid; place-content: center; justify-items: center; color: #515d7d; }.empty-tree span { font-size: 33px; }.empty-tree p { margin: 8px 0 0; font-size: 9px; }
.update-button { width: calc(100% - 20px); min-height: 42px; margin: 3px 10px 12px; color: #08111e; background: linear-gradient(135deg, var(--yellow), var(--orange)); border: 0; border-radius: 9px; font-size: 10px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(255,107,74,.15); transition: transform .2s; }.update-button:hover { transform: translateY(-2px); }.update-button span { margin-right: 5px; }
.diff-preview { margin: 0 10px 10px; background: #090c18; border: 1px solid #29304a; border-radius: 8px; overflow: hidden; font: 8px/1.6 var(--mono); }.diff-preview header { padding: 6px 8px; color: var(--muted); background: #171d34; }.diff-preview del, .diff-preview ins { padding: 3px 7px; display: block; text-decoration: none; }.diff-preview del { color: #ff96a3; background: rgba(255,97,116,.1); }.diff-preview ins { color: #8ef0b8; background: rgba(110,231,168,.1); }.animate-diff del { animation: code-remove .4s both; }.animate-diff ins { animation: code-add .4s .35s both; }
.terminal-workspace { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.next-prompt { min-height: 115px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: linear-gradient(120deg, rgba(124,92,255,.15), rgba(46,217,255,.07)); border: 1px solid rgba(124,92,255,.28); border-radius: 14px; }
.next-prompt span { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: .14em; }.next-prompt h2 { margin: 5px 0 4px; font-size: 18px; }.next-prompt p { margin: 0; color: var(--muted); font-size: 9px; }.next-prompt > code { max-width: 43%; padding: 10px 12px; color: var(--lime); background: #080b16; border: 1px solid #2a3352; border-radius: 8px; font: 9px/1.45 var(--mono); text-align: right; }
.terminal { min-height: 405px; display: grid; grid-template-rows: auto 1fr auto; color: #cbd5f3; background: #050711; border: 1px solid #29304a; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 50px rgba(0,0,0,.25); }
.terminal-bar { min-height: 41px; padding: 9px 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #667295; background: #11162b; border-bottom: 1px solid #29304a; font: 8px var(--mono); }.terminal-bar > span { display: flex; gap: 5px; }.terminal-bar i { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }.terminal-bar i:nth-child(2) { background: var(--yellow); }.terminal-bar i:nth-child(3) { background: var(--lime); }.terminal-bar b { color: #8e99bc; font-weight: 500; }.terminal-bar small { justify-self: end; color: #4f5c7e; font-size: 7px; }
.terminal-output { max-height: 350px; padding: 15px 16px; overflow: auto; font: 10px/1.55 var(--mono); }.terminal-line { margin-bottom: 9px; color: #9aa7cc; white-space: pre-wrap; animation: terminal-in .2s both; }.terminal-line.input { color: var(--white); }.terminal-line.success { color: var(--lime); }.terminal-line.hint { color: var(--yellow); }.terminal-line.system { color: var(--cyan); }.terminal-line.output { color: #b8c4e5; }
.terminal-form { display: flex; border-top: 1px solid #29304a; }.terminal-form > span { padding: 13px 0 13px 15px; color: var(--lime); font: 11px var(--mono); }.terminal-form input { flex: 1; padding: 12px 9px; color: var(--white); background: transparent; border: 0; border-radius: 0; box-shadow: none; font: 10px var(--mono); }.terminal-form button { padding: 0 14px; color: var(--cyan); background: rgba(46,217,255,.07); border: 0; border-left: 1px solid #29304a; font-size: 8px; font-weight: 900; cursor: pointer; }
.repo-state { padding: 15px; }.repo-state h3 { margin-bottom: 14px; color: #d9e1fa; font-size: 11px; }.state-meter { padding: 8px 0; display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid #252c45; font-size: 8px; }.state-meter strong { color: var(--yellow); font: 900 11px var(--mono); }
.history-stack, .remote-stack { margin-top: 16px; padding: 11px; background: rgba(255,255,255,.025); border: 1px solid #252c45; border-radius: 9px; }.history-stack > span, .remote-stack > span { display: flex; align-items: center; gap: 5px; color: var(--violet-2); font: 800 8px var(--mono); }.remote-stack > span { color: var(--cyan); }.remote-stack svg { width: 13px; height: 13px; }
.history-node { margin-top: 10px; display: grid; grid-template-columns: 10px 45px 1fr; gap: 4px; align-items: center; animation: file-in .25s calc(var(--i) * 80ms) both; }.history-node i { width: 7px; height: 7px; background: var(--violet); border: 2px solid #1c2340; border-radius: 50%; outline: 1px solid var(--violet); }.remote-stack .history-node i { background: var(--cyan); outline-color: var(--cyan); }.history-node code { color: #9da9cc; font-size: 7px; }.history-node small { overflow: hidden; color: #7f8bad; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }.empty-history { margin: 12px 0 0; color: #56617f; font-size: 8px; }.remote-stack.is-pushing { animation: remote-pulse .9s both; }
.practice-complete { min-height: calc(100vh - 130px); display: grid; place-content: center; justify-items: center; text-align: center; }.practice-complete h1 { margin-bottom: 20px; font-size: clamp(50px, 7vw, 92px); line-height: .95; letter-spacing: -.065em; }.practice-complete > p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.65; }.success-rings { width: 130px; height: 130px; margin-bottom: 30px; position: relative; display: grid; place-items: center; }.success-rings i { position: absolute; inset: 0; border: 1px solid rgba(110,231,168,.3); border-radius: 50%; animation: success-ring 2.5s infinite; }.success-rings i:nth-child(2) { animation-delay: .6s; }.success-rings i:nth-child(3) { animation-delay: 1.2s; }.success-rings span { width: 75px; height: 75px; z-index: 1; display: grid; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50%; font-size: 38px; box-shadow: 0 0 55px rgba(110,231,168,.28); animation: pop-in .55s both; }.completed-flow { margin: 27px 0; display: flex; align-items: center; gap: 12px; }.completed-flow span { padding: 8px 10px; color: var(--cyan); background: rgba(46,217,255,.07); border: 1px solid rgba(46,217,255,.18); border-radius: 8px; font: 800 9px var(--mono); }.completed-flow i { color: var(--violet-2); font-style: normal; }

/* Real missions */
.mission-page { display: grid; gap: 18px; }
.mission-hero { padding: clamp(25px, 4vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 35px; background: linear-gradient(125deg, rgba(124,92,255,.15), rgba(46,217,255,.055)); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.mission-hero h1 { margin-bottom: 12px; font-size: clamp(36px, 4.5vw, 62px); line-height: 1; letter-spacing: -.05em; }.mission-hero p:last-child { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.6; }
.github-repo-button { min-width: 245px; padding: 17px; display: flex; align-items: center; gap: 11px; color: var(--white); background: #151a2d; border: 1px solid #343c5c; border-radius: 14px; text-decoration: none; box-shadow: 0 16px 35px rgba(0,0,0,.2); transition: transform .2s, border-color .2s; }.github-repo-button:hover { transform: translateY(-3px); border-color: var(--cyan); }.github-repo-button span { display: grid; flex: 1; font-size: 11px; font-weight: 800; }.github-repo-button small { max-width: 170px; margin-top: 3px; overflow: hidden; color: var(--muted); font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.repo-provisioning { min-width: 260px; padding: 15px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; }.repo-provisioning .plain-loader { width: 28px; height: 28px; margin: 0; }.repo-provisioning div { display: grid; }.repo-provisioning strong { font-size: 11px; }.repo-provisioning small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.mission-alert { padding: 16px 20px; display: flex; gap: 18px; color: #ffdf8e; background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.22); border-left: 4px solid var(--yellow); border-radius: 13px; font-size: 11px; }.mission-alert strong { flex: 0 0 auto; }
.mission-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 18px; }
.instruction-card, .assignment-card, .command-sheet, .secret-form { background: rgba(15,21,44,.88); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.instruction-card { padding: 24px; }.instruction-card > header { display: flex; justify-content: space-between; color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: .12em; }.instruction-card > header b { color: var(--muted); }.instruction-card ol { margin: 24px 0 0; padding: 0; display: grid; list-style: none; }.instruction-card li { min-height: 75px; display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: center; position: relative; color: #c9d3f0; border-top: 1px solid var(--line); font-size: 13px; }.instruction-card li:first-child { border-top: 0; }.instruction-card li i { width: 35px; height: 35px; z-index: 1; display: grid; place-items: center; color: var(--cyan); background: #111831; border: 1px solid rgba(46,217,255,.3); border-radius: 50%; font: normal 800 10px var(--mono); }
.mission-tools { display: grid; gap: 13px; align-content: start; }.assignment-card { padding: 21px; background: linear-gradient(145deg, rgba(124,92,255,.18), rgba(16,22,46,.9)); border-color: rgba(124,92,255,.35); }.assignment-card > span { color: var(--violet-2); font-size: 8px; font-weight: 900; letter-spacing: .12em; }.assignment-card h3 { margin: 7px 0 3px; font-size: 24px; }.assignment-card small { color: var(--muted); font: 9px var(--mono); }.assignment-card pre { margin: 17px 0 10px; padding: 14px; color: var(--lime); background: rgba(0,0,0,.25); border-radius: 9px; font: 10px/1.6 var(--mono); white-space: pre-wrap; }.assignment-card > code { color: var(--cyan); font-size: 9px; }
.command-sheet { padding: 18px; }.command-sheet h3 { margin-bottom: 12px; font-size: 12px; }.command-sheet button { width: 100%; padding: 9px 6px; display: flex; justify-content: space-between; gap: 10px; color: #aeb9d9; background: transparent; border: 0; border-top: 1px solid var(--line); cursor: pointer; }.command-sheet button:hover { color: var(--white); }.command-sheet code { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.command-sheet button span { color: var(--cyan); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.secret-form { padding: 18px; }.secret-form label { display: block; margin-bottom: 10px; font-size: 10px; font-weight: 800; }.secret-form > div { display: flex; gap: 7px; }.secret-form input { color: var(--ink); background: rgba(255,255,255,.05); border-color: var(--line); font-family: var(--mono); text-transform: uppercase; }.secret-form p { margin: 8px 0 0; color: var(--muted); font-size: 8px; }
.puzzle-page { min-height: calc(100vh - 135px); display: grid; align-content: center; }.puzzle-page > h1 { margin-bottom: 8px; font-size: clamp(40px, 5vw, 67px); letter-spacing: -.05em; }.puzzle-page > p:not(.eyebrow) { color: var(--muted); }.puzzle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 28px; }.puzzle-card { min-height: 330px; padding: 22px; display: flex; flex-direction: column; color: var(--ink); background: rgba(15,21,44,.88); border: 1px solid var(--line); border-radius: 18px; transition: border-color .25s, transform .25s; }.puzzle-card > span { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: .12em; }.puzzle-card h2 { min-height: 76px; margin: 22px 0; font-size: 20px; line-height: 1.25; }.puzzle-card > div:last-child { display: flex; gap: 6px; margin-top: auto; }.puzzle-card button { flex: 1; padding: 8px 5px; color: #aeb9d9; background: #11172d; border: 1px solid #303956; border-radius: 8px; font: 800 9px var(--mono); cursor: pointer; }.puzzle-card button:hover { color: var(--cyan); border-color: var(--cyan); }.puzzle-card.solved { border-color: var(--lime); transform: translateY(-5px); box-shadow: 0 18px 45px rgba(110,231,168,.1); }.mini-graph { height: 50px; margin-top: 30px; display: flex; align-items: center; }.mini-graph i { width: 16px; height: 16px; background: var(--surface); border: 4px solid var(--violet); border-radius: 50%; box-shadow: 40px 0 0 -4px var(--surface), 40px 0 0 0 var(--cyan), 80px 0 0 -4px var(--surface), 80px 0 0 0 var(--lime); }

/* Shared notices and loaders */
.toast-region { position: fixed; z-index: 100; top: 20px; right: 20px; width: min(365px, calc(100% - 40px)); display: grid; gap: 8px; }.toast { padding: 13px 15px; color: var(--white); background: rgba(17,23,47,.96); border: 1px solid #394464; border-radius: 11px; box-shadow: var(--shadow); font-size: 11px; backdrop-filter: blur(14px); animation: toast-in .25s both; }.toast.error { border-left: 4px solid var(--red); }.toast.success { border-left: 4px solid var(--lime); }
.loading-state { min-height: 75vh; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 12px; }.plain-loader { width: 34px; height: 34px; margin-bottom: 14px; border: 3px solid rgba(157,172,255,.15); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }

/* Display */
.display-shell { width: 100%; min-height: 100vh; padding: clamp(28px, 4.5vw, 76px); }.display-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; margin-bottom: 6vh; border-bottom: 1px solid var(--line); }.display-kicker { color: var(--cyan); font-size: clamp(11px, 1.1vw, 18px); font-weight: 900; text-transform: uppercase; letter-spacing: .15em; }.display-title { max-width: 1300px; margin: 0 0 3vh; font-size: clamp(53px, 8vw, 124px); line-height: .88; letter-spacing: -.07em; }.display-summary { max-width: 950px; color: #aab5d7; font-size: clamp(18px, 2vw, 31px); line-height: 1.45; }.display-progress-line { width: 100%; height: 5px; margin: 4vh 0; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }.display-progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 20px rgba(46,217,255,.45); transition: width .5s ease; }.display-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }.display-group { padding: 20px; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 15px; backdrop-filter: blur(12px); }.display-group-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }.display-group h3 { margin: 0; font-size: clamp(18px, 2vw, 30px); }.display-group .count { color: var(--cyan); font: 600 11px var(--mono); }.display-group p { margin: 10px 0 0; color: var(--muted); font-size: 11px; }.display-metric { display: flex; align-items: end; gap: 20px; margin-top: 6vh; }.display-metric strong { color: transparent; background: linear-gradient(135deg, var(--violet-2), var(--cyan)); background-clip: text; font-size: clamp(82px, 15vw, 215px); line-height: .72; letter-spacing: -.09em; }.display-metric span { max-width: 270px; color: #aab5d7; font-size: clamp(16px, 2vw, 28px); }.model-display { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4vw; margin-top: 8vh; }.model-display > div { position: relative; padding-top: 16px; border-top: 3px solid rgba(124,92,255,.4); }.model-display > div:not(:last-child)::after { content: "→"; position: absolute; top: 26px; right: -2.7vw; color: var(--cyan); font-size: 28px; }.model-display b { display: block; font-size: clamp(17px, 2vw, 32px); }.model-display small { color: var(--cyan); font: 500 clamp(10px, 1vw, 15px) var(--mono); }
.display-slide-items { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); animation: rise-in .55s both; }
.story-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; margin-top: 5vh; }.story-wall article { min-height: 190px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, rgba(124,92,255,.13), rgba(46,217,255,.05)); border: 1px solid var(--line); border-radius: 18px; animation: rise-in .5s both; }.story-wall span { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .13em; }.story-wall p { margin: 28px 0 0; font-size: clamp(18px, 2vw, 29px); line-height: 1.35; }

/* Admin */
.admin-shell { width: min(1550px, 100%); min-height: 100vh; margin: auto; padding: 28px clamp(18px, 4vw, 56px) 60px; }.admin-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #d9deed; }.admin-header h1 { margin: 3px 0 0; font-size: clamp(29px, 4vw, 47px); letter-spacing: -.05em; }.admin-header p { margin: 4px 0 0; color: var(--muted-dark); font-size: 11px; }.admin-brand { margin-bottom: 17px; }.admin-grid { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 18px; align-items: start; }.admin-column { display: grid; gap: 15px; }.admin-card, .admin-group { color: var(--ink-dark); background: rgba(255,255,255,.92); border: 1px solid #dce1ef; border-radius: 15px; box-shadow: 0 12px 35px rgba(46,55,96,.06); overflow: hidden; }.admin-card { padding: 19px; }.admin-card h2 { margin-bottom: 14px; font-size: 14px; }.admin-card h2 small { color: var(--muted-dark); font-weight: 500; }.admin-phase { border-left: 5px solid var(--violet); }.admin-phase > strong { display: block; font-size: 23px; letter-spacing: -.035em; }.admin-phase p { margin: 7px 0 17px; color: var(--muted-dark); font-size: 11px; }.admin-card .button { min-height: 34px; padding: 7px 10px; border-radius: 8px; box-shadow: none; font-size: 10px; }.admin-card .button.quiet:hover { background: #f0f2f9; }.key-form { display: flex; gap: 7px; }.key-form input { padding: 8px 10px; font-size: 11px; }.sim-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px,1fr)); gap: 6px; margin: 15px 0; }.sim-stat { padding: 9px 3px; background: #f3f5fb; border: 1px solid #e0e4ef; border-radius: 8px; text-align: center; }.sim-stat strong { display: block; font-size: 17px; }.sim-stat span { color: var(--muted-dark); font-size: 7px; text-transform: uppercase; }.admin-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }.admin-group-head { padding: 16px; display: flex; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, #f8f8ff, #f0f7ff); border-bottom: 1px solid #e1e5f0; }.admin-group-head h3 { margin: 0 0 4px; }.admin-group-head code { color: #6847eb; font-size: 10px; }.lock-pill { padding: 4px 7px; align-self: start; color: var(--muted-dark); background: #eef0f6; border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase; }.lock-pill.locked { color: #08773d; background: #dff7ea; }.admin-member { padding: 13px 16px; border-bottom: 1px solid #e4e7f0; }.admin-member:last-child { border: 0; }.admin-member-row { display: flex; justify-content: space-between; gap: 10px; }.admin-member strong { font-size: 11px; }.admin-member span { color: var(--muted-dark); font-size: 9px; }.leader-label { margin-left: 5px; padding: 2px 5px; color: #5d36d6 !important; background: #eee9ff; border-radius: 5px; font-size: 7px !important; text-transform: uppercase; }.move-row { display: flex; gap: 6px; margin-top: 8px; }.move-row select { padding: 6px 7px; font-size: 9px; }.move-row button { padding: 0 9px; color: var(--white); background: var(--ink-dark); border: 0; border-radius: 7px; font-size: 9px; cursor: pointer; }.group-diagnostics { padding: 13px 16px; display: grid; gap: 7px; background: #f8f9fc; border-top: 1px solid #e4e7f0; }.diagnostic-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-dark); font-size: 9px; }.diagnostic-row strong { color: var(--ink-dark); }.unassigned-list { display: grid; gap: 6px; }.unassigned-item { padding: 8px; display: flex; justify-content: space-between; gap: 10px; background: #f4f5fa; border-radius: 7px; font-size: 10px; }.danger-zone { border-color: #ffc2ca; }.dark-text { color: var(--ink-dark); }.admin-body .registration-wrap { width: min(780px,100%); margin: 8vh auto; color: var(--ink-dark); background: var(--white); border-radius: 20px; box-shadow: 0 22px 70px rgba(35,44,87,.14); }.admin-body .registration-form { padding: 45px; }.admin-body .form-error { color: #c52e47; }

.pool-form { display: flex; gap: 6px; }
.pool-form input { width: 68px; padding: 7px 8px; color: var(--ink-dark); background: #fff; border: 1px solid #dce1ef; border-radius: 8px; font: 600 10px var(--mono); }
.pool-form .button:disabled { opacity: .45; cursor: not-allowed; }
.phase-form { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.phase-form select { min-width: 0; padding: 7px 8px; color: var(--ink-dark); background: #fff; border: 1px solid #dce1ef; border-radius: 8px; font: 600 9px var(--mono); }

/* Motion */
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-9px) scale(.98); } }
@keyframes shimmer { 0%,65% { transform: translateX(-350%) rotate(22deg); } 100% { transform: translateX(650%) rotate(22deg); } }
@keyframes breathe { 50% { opacity: .55; transform: scale(.9); } }
@keyframes breathe-scale { 50% { transform: scale(1.06); filter: drop-shadow(0 28px 55px rgba(124,92,255,.46)); } }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes drift { to { transform: translate(35px, -25px) scale(1.12); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes progress-in { from { transform: scaleX(0); transform-origin: left; } }
@keyframes node-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes code-remove { from { opacity: 0; transform: translateX(-20px); } }
@keyframes code-add { from { opacity: 0; transform: translateX(20px); } }
@keyframes file-transfer { 50% { transform: translateY(-10px) rotate(2deg); box-shadow: 0 28px 45px rgba(0,0,0,.35); } }
@keyframes type-in { from { width: 0; } to { width: 100%; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.6) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-4deg); } }
@keyframes push-right { from { transform: translateX(-80px); opacity: 0; } 40%,70% { opacity: 1; } to { transform: translateX(100px); opacity: 0; } }
@keyframes pull-left { from { transform: translateX(80px); opacity: 0; } 40%,70% { opacity: 1; } to { transform: translateX(-100px); opacity: 0; } }
@keyframes file-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes terminal-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes remote-pulse { 50% { border-color: var(--cyan); box-shadow: 0 0 25px rgba(46,217,255,.2); transform: scale(1.02); } }
@keyframes success-ring { 0% { transform: scale(.45); opacity: 0; } 30% { opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .practice-grid { grid-template-columns: 220px 1fr; }.repo-state { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.repo-state h3 { grid-column: 1/-1; }.history-stack, .remote-stack { margin-top: 0; }
  .lesson-slide { grid-template-columns: .9fr 1.1fr; gap: 35px; }.git-collab-visual, .github-orbit { transform: scale(.82); }
}

@media (max-width: 900px) {
  .welcome-screen, .team-setup, .student-layout, .admin-grid, .mission-layout { grid-template-columns: 1fr; }
  .welcome-screen { padding: 30px 0; }.welcome-copy { padding: 0; }.welcome-copy .brand { margin-bottom: 45px; }.welcome-copy h1 { font-size: clamp(45px, 11vw, 78px); }
  .side-stack { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; }.team-setup { min-height: auto; }.section-intro { min-height: 360px; }.team-options { padding: 25px; }
  .lesson-slide { grid-template-columns: 1fr; padding-top: 4vh; }.slide-copy h1 { font-size: clamp(40px, 8vw, 67px); }.git-collab-visual, .github-orbit { min-height: 350px; }
  .practice-grid { grid-template-columns: 1fr; }.repo-explorer, .repo-state { min-height: auto; }.repo-state { grid-column: auto; grid-template-columns: 1fr 1fr; }.practice-progress { display: none; }
  .mission-hero { align-items: stretch; flex-direction: column; }.github-repo-button, .repo-provisioning { min-width: 0; }.puzzle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-shell { padding: 14px 12px 30px; }.brand small { display: none; }.brand b { font-size: 11px; }.git-logo { width: 30px; height: 30px; }.github-logo { width: 25px; height: 25px; }.brand-plus { font-size: 10px; }.phase-badge { max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.step-counter { display: none; }
  .welcome-screen { gap: 30px; }.welcome-copy .brand { margin-bottom: 35px; }.welcome-copy h1 { font-size: 45px; }.welcome-form { padding: 25px 20px; border-radius: 19px; }
  .side-stack { grid-template-columns: 1fr; }.team-option { padding: 88px 20px 22px; }.option-icon { left: 20px; top: 20px; }.join-form { flex-direction: column; }
  .lobby { padding: 25px 18px; }.lobby-head { flex-direction: column; }.room-ticket { width: 100%; min-width: 0; }.team-diagram { grid-template-columns: 1fr; margin-top: 35px; }.diagram-line { display: none; }.leader-console { align-items: stretch; flex-direction: column; }.leader-console .button { width: 100%; }
  .lesson-stage { min-height: calc(100vh - 110px); padding: 20px 16px; border-radius: 18px; }.lesson-slide { padding: 35px 0 20px; }.slide-copy h1 { font-size: 39px; }.slide-copy > p:last-child { font-size: 14px; }.git-collab-visual, .github-orbit { min-height: 300px; transform: scale(.7); margin: -30px; }.start-options, .stage-visual, .sync-visual { grid-template-columns: 1fr; }.start-arrow, .stage-command i { transform: rotate(90deg); }.start-card { min-height: 220px; }.stage-zone { min-height: 180px; }.sync-arrows { height: 90px; transform: rotate(90deg); }.code-window pre { padding: 30px 15px; font-size: 10px; }.code-window pre del, .code-window pre ins { margin: 0 -15px; padding: 0 15px; }.commit-terminal strong { font-size: 11px; }.slide-footer span { display: none; }
  .practice-shell { padding: 15px 10px; }.practice-header h1 { font-size: 29px; }.next-prompt { align-items: stretch; flex-direction: column; }.next-prompt > code { max-width: none; text-align: left; }.repo-state { grid-template-columns: 1fr; }.terminal-form button { padding: 0 9px; }.practice-complete h1 { font-size: 48px; }.completed-flow { gap: 5px; }.completed-flow span { padding: 6px; font-size: 7px; }
  .mission-hero { padding: 25px 19px; }.mission-hero h1 { font-size: 38px; }.mission-alert { flex-direction: column; gap: 5px; }.instruction-card { padding: 18px; }.secret-form > div { flex-direction: column; }
  .admin-groups { grid-template-columns: 1fr; }.admin-header { align-items: start; flex-direction: column; }.display-header .brand > span:last-child { display: none; }.model-display { grid-template-columns: 1fr 1fr; row-gap: 40px; }.model-display > div::after { display: none; }
}

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