/* frontend/public/tour/tour.css */
/* Styles for the protected Interactive Tour Player (desktop + mobile) */

:root {
  --bg: #070B14;
  --card: #111829;
  --card-2: #172136;
  --line: #23314F;
  --text: #F1F5F9;
  --dim: #94A3B8;
  --muted: #64748B;
  --blue: #4E78FF;
  --blue-s: rgba(78,120,255,.16);
  --green: #2DD48F;
  --green-s: rgba(45,212,143,.15);
  --orange: #FFAA5E;
  --orange-s: rgba(255,170,94,.16);
  --red: #FB7185;
  --red-s: rgba(251,113,133,.16);
  --violet-s: rgba(155,123,255,.22);
  --shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 18% 10%, rgba(78,120,255,.18), transparent 65%),
    radial-gradient(820px 480px at 84% 88%, rgba(45,212,143,.12), transparent 65%);
  color: var(--text);
  font-family: Inter, "Segoe UI", -apple-system, Roboto, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Thin progress bar at very top */
.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.06);
  z-index: 60;
}
.top-progress i {
  display: block;
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width .45s ease;
}

/* Minimal clean top header */
.topbar {
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 40;
}
.top-left, .top-right {
  display: flex;
  align-items: center;
  gap: 11px;
}
.chapters-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font: 600 12.5px Inter, sans-serif;
  cursor: pointer;
  transition: border-color .2s;
}
.chapters-btn:hover { border-color: var(--blue); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.brand em { font-style: normal; color: var(--blue); }
.step-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  background: rgba(255,255,255,.05);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}

.speed-group {
  display: inline-flex;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.speed-pill {
  background: transparent;
  border: 0;
  color: var(--dim);
  font: 700 11.5px Inter, sans-serif;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.speed-pill.active {
  background: var(--blue);
  color: #fff;
}

.wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45,212,143,.12);
  border: 1.5px solid rgba(45,212,143,.4);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.wallet.bump {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(45,212,143,.45);
}
.wallet b { color: #6EE7B7; font-variant-numeric: tabular-nums; }
.wallet-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--green);
  color: #042417;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all .28s;
  white-space: nowrap;
}
.wallet-pop.show { opacity: 1; transform: translateY(0); }

.skip-link {
  font-size: 12.5px;
  color: var(--dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.skip-link:hover { color: #fff; border-color: var(--dim); }

/* =====================================================================
   CHAPTERS / MODULES DRAWER
===================================================================== */
.chapters-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.chapters-drawer.open { pointer-events: auto; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,11,20,.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.chapters-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: var(--card);
  border-right: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-102%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
}
.chapters-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head strong { display: block; font-size: 15px; }
.drawer-head span { font-size: 12px; color: var(--dim); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.mod-block {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.mod-title { font-size: 13px; font-weight: 700; color: #93C5FD; margin-bottom: 4px; }
.mod-desc { font-size: 11.5px; color: var(--dim); margin-bottom: 10px; line-height: 1.4; }
.mod-slides { display: grid; gap: 5px; }
.mod-slide-btn {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 9px;
  font: 500 12.5px Inter, sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.mod-slide-btn:hover:not(:disabled) { border-color: var(--blue); background: rgba(78,120,255,.1); }
.mod-slide-btn.current { border-color: var(--blue); background: rgba(78,120,255,.18); font-weight: 700; }
.mod-slide-btn.done { color: #6EE7B7; }
.mod-slide-btn:disabled { opacity: 0.42; cursor: not-allowed; }

/* =====================================================================
   STAGE CONTAINER WITH 5 VISUAL MODES:
   zoom | slide | screencast | video | practice
===================================================================== */
.stage {
  position: relative;
  height: calc(100vh - 58px - 78px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.olga-box {
  background: radial-gradient(circle at 50% 25%, #1E2C4A 0%, #0D1424 75%);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .5s cubic-bezier(.2,.8,.2,1);
  position: relative;
  z-index: 25;
}
.olga-box.speaking {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(45,212,143,.28), var(--shadow);
}

/* MODE 1: ZOOM */
.stage[data-layout="zoom"] .olga-box {
  width: min(860px, 92vw);
  height: min(540px, 72vh);
}
.stage[data-layout="zoom"] .content-stage {
  opacity: 0;
  pointer-events: none;
  transform: scale(.96);
  position: absolute;
}

/* MODE 2: SLIDE & PRACTICE */
.stage[data-layout="slide"] .olga-box,
.stage[data-layout="practice"] .olga-box {
  position: fixed;
  left: 26px;
  bottom: 92px;
  width: 205px;
  height: 245px;
  border-radius: 18px;
}
.stage[data-layout="slide"] .content-stage,
.stage[data-layout="practice"] .content-stage {
  width: 100%;
  max-width: 980px;
  margin-left: 190px;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  opacity: 1;
  transform: none;
}

/* MODE 3: SCREENCAST & VIDEO */
.stage[data-layout="screencast"] .olga-box,
.stage[data-layout="video"] .olga-box {
  position: fixed;
  left: 26px;
  bottom: 92px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
}
.stage[data-layout="screencast"] .olga-badge,
.stage[data-layout="video"] .olga-badge {
  display: none;
}
.stage[data-layout="screencast"] .content-stage,
.stage[data-layout="video"] .content-stage {
  width: 100%;
  max-width: 1040px;
  margin-left: 90px;
  max-height: 100%;
  overflow-y: auto;
  opacity: 1;
  transform: none;
}

#olga3d { width: 100%; height: 100%; }
.olga-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--dim);
  font-size: 13px;
  pointer-events: none;
}
.olga-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7,11,20,.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 11.5px;
  font-weight: 600;
  color: #E2E8F0;
}
.olga-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* =====================================================================
   CONTENT STAGE & WIDGETS
===================================================================== */
.content-stage {
  transition: opacity .4s ease, transform .4s ease;
}
.scene-pane { display: block; }
.pane-head { margin-bottom: 14px; }
.pane-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-s);
  color: #93C5FD;
  margin-bottom: 8px;
}
.pane-head h2 {
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.16;
}

.cue {
  opacity: 0.12;
  filter: blur(1.5px);
  transform: translateY(8px);
  transition: opacity .5s ease, filter .5s ease, transform .5s ease, border-color .4s ease;
}
.cue.on {
  opacity: 1;
  filter: none;
  transform: translateY(0);
}

.win {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.win-bar {
  padding: 10px 16px;
  background: rgba(7,11,20,.55);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.win-bar span { margin-left: 8px; font-size: 12px; color: var(--dim); font-weight: 600; }
.win-body { padding: 18px; }

/* Slide 2 widgets */
.s2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .s2-grid { grid-template-columns: 1fr; } }
.s2-box {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.s2-num { font-size: 32px; font-weight: 800; color: var(--red); line-height: 1.05; margin: 4px 0 6px; }
.s2-dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; margin-top: 10px; }
.s2-dots i { aspect-ratio: 1; border-radius: 2px; background: #26324B; transition: background .25s; }
.s2-dots i.d-gray { background: #475569; }
.s2-dots i.d-red { background: var(--red); }
.s2-dots i.d-blue { background: var(--green); box-shadow: 0 0 8px var(--green); transform: scale(1.3); }

.s2-xray {
  margin-top: 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.s2-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(78,120,255,.32), transparent);
  border-bottom: 2px solid var(--blue);
  opacity: 0;
  pointer-events: none;
}
.s2-xray.scanning .s2-beam { animation: beamRun 2.2s ease-in-out forwards; }
@keyframes beamRun {
  0% { top: 0%; opacity: 1; }
  85% { top: 88%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.s2-trap-mark { padding: 2px 6px; border-radius: 5px; transition: all .4s; }
.s2-xray.caught .s2-trap-mark {
  background: var(--red-s);
  color: #FDA4AF;
  border-bottom: 2px solid var(--red);
  font-weight: 700;
}

/* Slide 3 widgets */
.s3-layers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.s3-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 15px 13px;
  transition: all .4s ease;
}
.s3-card.active-layer {
  border-color: var(--blue);
  background: rgba(78,120,255,.13);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(78,120,255,.22);
}
.s3-ico { font-size: 24px; margin-bottom: 8px; }
.s3-card h4 { font-size: 14px; margin-bottom: 6px; color: #fff; }
.s3-card p { font-size: 12px; color: var(--dim); line-height: 1.45; }
.s3-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.s3-chip { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--green-s); color: #6EE7B7; }
.s3-chip.neg { background: var(--red-s); color: #FDA4AF; }

/* Slide 4 widgets */
.s4-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .s4-layout { grid-template-columns: 1fr; } }
.cell100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 12px 0; }
.c100 { aspect-ratio: 1; border-radius: 4px; background: #23304A; transition: background .18s, transform .18s; }
.c100.work { background: var(--blue); transform: scale(1.1); }
.c100.fit { background: var(--green); }
.c100.part { background: var(--orange); }
.c100.no { background: rgba(251,113,133,.32); }

.rank-list { display: grid; gap: 8px; }
.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
}
.rank-item.top { border-color: rgba(45,212,143,.5); background: rgba(45,212,143,.1); }
.rank-score {
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-s);
  color: #6EE7B7;
  white-space: nowrap;
}

/* Slide 5 widgets */
.s5-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
@media (max-width: 820px) { .s5-grid { grid-template-columns: 1fr; } }
.sse-box {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-height: 145px;
  font-size: 13.5px;
  line-height: 1.55;
}
.sse-box .hl-v { background: var(--violet-s); color: #DDD6FE; padding: 1px 5px; border-radius: 4px; }
.sse-box .hl-b { background: var(--blue-s); color: #93C5FD; padding: 1px 5px; border-radius: 4px; }
.sse-box .hl-g { background: var(--green-s); color: #6EE7B7; padding: 1px 5px; border-radius: 4px; }
.hh-mini {
  background: var(--card-2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.hh-field {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  color: var(--dim);
  min-height: 70px;
  transition: all .3s;
}
.hh-field.pasted {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-s);
  color: #6EE7B7;
  font-weight: 600;
}
.hh-send {
  background: #253352;
  color: var(--dim);
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font: 700 13px Inter, sans-serif;
  transition: all .3s;
}
.hh-send.sent { background: var(--green); color: #042417; }

/* Slide 6 + Practice Cards */
.s6-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 820px) { .s6-cards { grid-template-columns: 1fr; } }
.s6-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.s6-card.on { border-color: var(--green); background: rgba(45,212,143,.08); }
.s6-card h4 { font-size: 14.5px; margin: 5px 0; }
.s6-card p { font-size: 12px; color: var(--dim); line-height: 1.45; }

/* Inline Practice Widget (Auth / Verification / Resume / Profile fields) */
.practice-card {
  background: var(--card);
  border: 1.5px solid rgba(78,120,255,.45);
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 10px;
  box-shadow: var(--shadow);
}
.practice-card h3 { font-size: 15.5px; margin-bottom: 6px; color: #fff; }
.practice-card p.p-sub { font-size: 12.5px; color: var(--dim); margin-bottom: 12px; line-height: 1.45; }
.practice-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.practice-tab {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 6px 12px;
  border-radius: 9px;
  font: 600 12px Inter, sans-serif;
  cursor: pointer;
}
.practice-tab.active { background: var(--blue-s); border-color: var(--blue); color: #fff; }
.practice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 720px) { .practice-row { grid-template-columns: 1fr; } }
.p-input, .p-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: 500 13px Inter, sans-serif;
}
.p-textarea { min-height: 74px; resize: vertical; }
.p-input:focus, .p-textarea:focus { outline: none; border-color: var(--blue); }
.p-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.p-btn {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: 10px;
  font: 700 12.5px Inter, sans-serif;
  cursor: pointer;
}
.p-btn.secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--dim);
}
.p-status { font-size: 12px; color: #6EE7B7; font-weight: 600; }

/* =====================================================================
   BOTTOM BAR & LIVE SUBTITLES
===================================================================== */
.bottom-bar {
  height: 78px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 40;
}

.nav-left { display: flex; gap: 7px; align-items: center; }
.icon-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  font: 600 12.5px Inter, sans-serif;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.icon-btn:hover { border-color: var(--blue); }
.icon-btn.paused {
  border-color: var(--orange);
  background: var(--orange-s);
  color: var(--orange);
}
.icon-btn.auto-toggle.on {
  border-color: rgba(45,212,143,.45);
  background: rgba(45,212,143,.12);
  color: #6EE7B7;
}
.auto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  transition: background .2s, box-shadow .2s;
}
.icon-btn.auto-toggle.on .auto-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.live-sub-wrap {
  text-align: center;
  display: flex;
  justify-content: center;
}
.live-sub {
  display: inline-block;
  background: rgba(15,23,42,.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148,163,184,.22);
  padding: 10px 20px;
  border-radius: 14px;
  font-size: clamp(13.5px, 1.35vw, 15.5px);
  font-weight: 500;
  color: #F8FAFC;
  max-width: 68ch;
  line-height: 1.38;
  transition: opacity .22s ease, transform .22s ease;
}
.live-sub.fade { opacity: 0.25; transform: translateY(3px); }

.nav-right { display: flex; justify-content: flex-end; }
.next-btn {
  background: linear-gradient(135deg, #4E78FF 0%, #2952FF 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  padding: 12px 20px;
  border-radius: 12px;
  font: 700 13px Inter, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(41,82,255,.35);
  transition: transform .2s, box-shadow .2s, background .25s, opacity .25s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.next-btn.locked, .next-btn:disabled {
  background: #1E293B;
  color: var(--dim);
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.78;
}
.next-btn.ready-pulse {
  background: linear-gradient(135deg, #2DD48F 0%, #149E63 100%);
  color: #042417;
  box-shadow: 0 0 28px rgba(45,212,143,.5);
}

/* Start Gate Overlay */
.start-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7,11,20,.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.start-overlay.hidden { display: none; }
.start-modal {
  max-width: 520px;
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.start-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green-s);
  color: #6EE7B7;
  margin-bottom: 14px;
}
.start-modal h1 { font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.start-modal p { font-size: 14px; color: var(--dim); line-height: 1.55; margin-bottom: 22px; }
.start-go {
  width: 100%;
  background: linear-gradient(135deg, #2DD48F 0%, #149E63 100%);
  color: #042417;
  font: 800 15px Inter, sans-serif;
  padding: 15px 22px;
  border-radius: 13px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45,212,143,.35);
}
.start-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.start-skip {
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
}
.start-skip:hover { color: #fff; }

/* =====================================================================
   MOBILE ADAPTATION (NO OVERLAPS)
===================================================================== */
@media (max-width: 900px) {
  html, body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body {
    display: flex;
    flex-direction: column;
    padding-bottom: 140px;
  }
  .hide-sm { display: none; }
  .topbar {
    height: auto;
    min-height: 52px;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .brand { font-size: 14px; }
  .step-counter { font-size: 11px; padding: 3px 8px; }
  .skip-link, .wallet-lbl { display: none; }
  .wallet { padding: 4px 10px; font-size: 11.5px; gap: 5px; }

  .stage {
    height: auto;
    min-height: calc(100dvh - 56px - 140px);
    padding: 8px 12px 18px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .stage[data-layout="zoom"] {
    justify-content: center;
    align-items: center;
  }
  .stage[data-layout="zoom"] .olga-box {
    width: 100%;
    max-width: 420px;
    height: min(54dvh, 400px);
  }

  .stage[data-layout="slide"] .olga-box,
  .stage[data-layout="practice"] .olga-box,
  .stage[data-layout="screencast"] .olga-box,
  .stage[data-layout="video"] .olga-box {
    position: relative;
    left: auto;
    bottom: auto;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    margin: 0 auto 2px;
    flex-shrink: 0;
  }
  .stage[data-layout="slide"] .olga-badge,
  .stage[data-layout="practice"] .olga-badge,
  .stage[data-layout="screencast"] .olga-badge,
  .stage[data-layout="video"] .olga-badge {
    display: none;
  }
  .stage[data-layout="slide"] .content-stage,
  .stage[data-layout="practice"] .content-stage,
  .stage[data-layout="screencast"] .content-stage,
  .stage[data-layout="video"] .content-stage {
    margin-left: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .pane-head { text-align: center; margin-bottom: 12px; }
  .pane-head h2 { font-size: 19px; line-height: 1.22; }
  .win-body { padding: 13px; }
  .s2-box { padding: 13px; }
  .s2-num { font-size: 26px; }
  .s2-xray { padding: 13px; margin-top: 10px; }
  .s3-layers { grid-template-columns: 1fr; gap: 8px; }
  .s3-card {
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 10px;
    align-items: start;
  }
  .s3-ico { font-size: 20px; margin-bottom: 0; }
  .s6-cards { gap: 9px; }
  .s6-card { padding: 13px; }

  .bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(7,11,20,.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "sub sub"
      "left right";
    gap: 8px;
    z-index: 60;
  }
  .live-sub-wrap { grid-area: sub; }
  .nav-left { grid-area: left; }
  .nav-right { grid-area: right; }
  .live-sub {
    width: 100%;
    max-width: none;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.32;
    border-radius: 10px;
  }
  .icon-btn { height: 38px; padding: 0 11px; font-size: 12px; }
  .next-btn { width: 100%; justify-content: center; padding: 10px 14px; font-size: 12.5px; }
}
