:root {
  /* Deep purple base */
  --bg: #0a0320;
  --bg-2: #140833;
  --panel: #1d0f49;
  --panel-2: #251360;
  --line: #3a1f7a;
  --line-soft: #2a1658;

  /* Text */
  --ink: #ffffff;
  --ink-dim: #c4b5fd;
  --ink-mute: #8b7fb8;

  /* Accents — vibrant, high contrast */
  --accent: #a78bfa;
  --accent-2: #c4b5fd;
  --pink: #f472b6;
  --cyan: #67e8f9;
  --yellow: #fde047;
  --good: #86efac;
  --warn: #fcd34d;
  --bad: #fb7185;

  --code-bg: #120732;
  --radius: 16px;
  --radius-lg: 22px;

  /* Flat pixel-art offset shadows */
  --sh-pink: 8px 8px 0 0 rgba(244,114,182,0.25);
  --sh-cyan: 8px 8px 0 0 rgba(103,232,249,0.25);
  --sh-yellow: 8px 8px 0 0 rgba(253,224,71,0.22);
  --sh-purple: 8px 8px 0 0 rgba(167,139,250,0.3);

  /* Flat chip text-on-color colors (for legibility on bright bg) */
  --on-pink: #1a0533;
  --on-cyan: #032030;
  --on-yellow: #2a1800;
  --on-purple: #14063a;

  --font-display: "Outfit", "Google Sans", "Product Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { overflow: hidden; }
code, pre, kbd { font-family: var(--font-mono); }
button { font: inherit; color: inherit; font-family: var(--font-body); }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.025em; }

/* ==== Background effects ==== */
.bg-fx {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1000px 700px at 18% 12%, rgba(167,139,250,0.28), transparent 55%),
    radial-gradient(900px 700px at 85% 88%, rgba(244,114,182,0.22), transparent 55%),
    radial-gradient(800px 600px at 50% 110%, rgba(103,232,249,0.14), transparent 60%),
    linear-gradient(180deg, #150935 0%, #0a0320 100%);
}
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(196,181,253,0.22) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(244,114,182,0.10) 1px, transparent 0);
  background-size: 14px 14px, 28px 28px;
  background-position: 0 0, 7px 7px;
  mix-blend-mode: screen;
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.4) 100%);
}
.sprinkles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.sp {
  position: absolute; left: var(--x); top: var(--y);
  color: var(--c); font-size: var(--s); font-weight: 700;
  font-family: var(--font-display);
  opacity: 0.55; animation: tw 4s ease-in-out infinite;
  text-shadow: 0 0 18px currentColor;
}
.sp:nth-child(2n) { animation-delay: -2s; }
.sp:nth-child(3n) { animation-delay: -1s; animation-duration: 6s; }
@keyframes tw { 0%,100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.75; transform: scale(1.15); } }

/* ==== Landing ==== */
.landing { overflow: auto; background: var(--bg); }
.landing main { max-width: 820px; margin: 12vh auto; padding: 0 28px; position: relative; z-index: 2; }
.landing .logo { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-bottom: 28px; text-transform: uppercase; font-size: 14px; }
.landing h1 { font-family: var(--font-display); font-size: 56px; line-height: 1.05; margin: 0 0 20px; font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing .sub { color: var(--ink-dim); margin: 0 0 28px; font-size: 19px; line-height: 1.55; }
.landing .how { margin-top: 48px; }
.landing .how h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.landing pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; overflow: auto; font-size: 14px; }
.landing code { color: var(--accent-2); }
.landing .footnote { color: var(--ink-mute); font-size: 13px; margin-top: 48px; }
.landing .footnote a { color: var(--cyan); }

/* ==== Home landing — modern hero with scattered pixel icons ==== */
.home { background: #0f0628; position: relative; overflow-x: hidden; min-height: 100vh; }
.home .pixel-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><rect x='11' y='11' width='2' height='2' fill='%23a78bfa' fill-opacity='0.16'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='%23f472b6' fill-opacity='0.18'><rect x='58' y='22' width='4' height='2'/><rect x='59' y='21' width='2' height='4'/><rect x='14' y='64' width='4' height='2'/><rect x='15' y='63' width='2' height='4'/><rect x='102' y='92' width='4' height='2'/><rect x='103' y='91' width='2' height='4'/></g><g fill='%2367e8f9' fill-opacity='0.18'><rect x='86' y='34' width='4' height='2'/><rect x='87' y='33' width='2' height='4'/><rect x='30' y='100' width='4' height='2'/><rect x='31' y='99' width='2' height='4'/></g></svg>");
  background-size: 24px 24px, 120px 120px;
}
.home .pixel-scatter { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.home .px {
  position: absolute; left: var(--x); top: var(--y);
  color: var(--c); font-family: 'JetBrains Mono', monospace;
  font-size: 20px; opacity: 0.5; font-weight: 600;
}

.home .pixel-icons { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.home .pic {
  position: absolute; left: var(--x); top: var(--y);
  width: clamp(48px, 5vw, 72px); height: clamp(48px, 5vw, 72px);
  transform: rotate(var(--rot));
  image-rendering: pixelated;
  opacity: 0.85;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.5));
  transition: transform .3s ease;
}
.home .pic:hover { transform: rotate(0deg) scale(1.08); opacity: 1; }
.home .pic svg { width: 100%; height: 100%; shape-rendering: crispEdges; }

.home main.home-hero {
  position: relative; z-index: 2;
  max-width: 780px; margin: 0 auto;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 48px 28px;
}
.home .brand {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0 0 22px;
  background: linear-gradient(135deg, var(--cyan) 0%, #ffffff 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 48px rgba(167,139,250,0.4));
}
.home .tagline {
  color: var(--ink-dim);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  margin: 0 0 56px;
  max-width: 560px;
  letter-spacing: -0.005em;
}

.home .install { width: 100%; max-width: 720px; }
.home .tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.home .tab {
  background: rgba(26,15,58,0.75);
  border: 1px solid rgba(167,139,250,0.25);
  color: var(--ink-dim);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all .15s;
}
.home .tab:hover { color: var(--ink); border-color: var(--accent); background: rgba(26,15,58,0.95); }
.home .tab.active {
  background: var(--accent); border-color: var(--accent);
  color: #0a0320; font-weight: 600;
  box-shadow: 0 6px 20px rgba(167,139,250,0.35);
}

.home .cmd-box {
  position: relative;
  background: rgba(4,2,12,0.92);
  border: 1px solid rgba(103,232,249,0.35);
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(103,232,249,0.06) inset;
  text-align: left;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.home .cmd-box pre {
  background: transparent; border: none; box-shadow: none;
  margin: 0; padding: 22px 28px; padding-right: 104px;
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  line-height: 1.6; color: var(--cyan);
  white-space: pre; overflow-x: auto;
  border-radius: 0;
}
.home .cmd-box code { color: var(--cyan); font-family: 'JetBrains Mono', monospace; }
.home .copy-btn {
  position: absolute; top: 14px; right: 14px;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.35);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600; font-size: 13px;
  letter-spacing: -0.005em;
  transition: all .15s;
}
.home .copy-btn:hover { background: #ffffff; color: #0a0320; border-color: #ffffff; }
.home .copy-btn.ok { background: var(--cyan); color: #032030; border-color: var(--cyan); }

.home .hint {
  color: var(--ink-mute);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 14px;
  margin: 20px 0 0;
  font-weight: 400;
}
.home .footnote {
  color: var(--ink-mute);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 13px;
  margin-top: 72px;
  text-align: center;
  font-weight: 400;
}
.home .footnote a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(103,232,249,0.5); }
.home .footnote a:hover { border-bottom-style: solid; }

@media (max-width: 720px) {
  .home .brand { font-size: clamp(96px, 24vw, 140px); }
  .home .pic { opacity: 0.55; }
}

/* ==== Setup page ==== */
.setup-form { display: flex; gap: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.setup-form input { flex: 1; min-width: 280px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 16px 18px; border-radius: 12px; font: 500 16px var(--font-mono); outline: none; box-shadow: 6px 6px 0 0 rgba(244,114,182,0.2); }
.setup-form input:focus { border-color: var(--accent); box-shadow: 6px 6px 0 0 rgba(157,124,255,0.4); }
.setup-status { padding: 14px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-dim); font-size: 15px; }
.setup-status.good { color: var(--cyan); border-color: var(--cyan); }
.setup-status.bad { color: #ff88a8; border-color: rgba(244,114,182,0.5); }

/* ==== Player ==== */
.player { display: flex; flex-direction: column; height: 100vh; background: var(--bg); position: relative; }
.stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 72px 88px; min-height: 0; position: relative; z-index: 2; }
.stage > * { width: 100%; max-width: 1280px; }

.caption { position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%); max-width: 78%; background: rgba(20,8,51,0.85); border: 1px solid var(--line); backdrop-filter: blur(12px); padding: 14px 20px; border-radius: 14px; color: var(--ink); font-size: 16px; text-align: center; z-index: 5; }

.controls { border-top: 1px solid var(--line-soft); padding: 14px 24px 18px; background: rgba(10,3,32,0.85); backdrop-filter: blur(14px); position: relative; z-index: 3; }
.progress { height: 4px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.progress-bar { height: 100%; width: 0%; background: var(--cyan); transition: width .25s ease; }
.row { display: flex; align-items: center; gap: 10px; }
.btn { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 10px 18px; border-radius: 12px; cursor: pointer; transition: all .15s; min-width: 48px; font-weight: 500; font-size: 14px; }
.btn:hover { background: var(--panel-2); border-color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #0a0320; font-weight: 700; }
.btn-primary:hover { background: #ffffff; border-color: #ffffff; color: #0a0320; transform: translateY(-1px); }
.btn-big { padding: 18px 36px; font-size: 18px; border-radius: 14px; }
.spacer { flex: 1; }
.counter { color: var(--ink-dim); font-size: 13px; min-width: 60px; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.doc-title { color: var(--ink-dim); font-size: 13px; padding-left: 14px; border-left: 1px solid var(--line); margin-left: 14px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 500; }

/* ==== Gate (start screen) ==== */
.gate { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,3,32,0.75); backdrop-filter: blur(14px); z-index: 10; }
.gate.hidden { display: none; }
.gate-card { text-align: center; max-width: 480px; padding: 56px 48px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 12px 12px 0 0 rgba(244,114,182,0.35), 0 30px 80px rgba(0,0,0,0.4); }
.gate-badge { display: inline-block; font-family: var(--font-display); letter-spacing: .15em; color: var(--accent); font-size: 13px; text-transform: uppercase; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; }
.gate-title { font-family: var(--font-display); font-size: 40px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; background: linear-gradient(180deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-sub { color: var(--ink-dim); font-size: 15px; margin-bottom: 28px; }

/* ==== Slide entrance animation ==== */
.stage > * { animation: fadeIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ============================================================
   20 slide type styles — bigger, bolder, centered
   ============================================================ */

/* 1. title */
.s-title { text-align: center; padding: 40px 0; }
.s-title .accent { display: inline-block; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; margin-bottom: 28px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-family: var(--font-display); font-weight: 600; }
.s-title h1 { font-family: var(--font-display); font-size: clamp(56px, 8vw, 104px); line-height: 1; margin: 0; letter-spacing: -0.035em; font-weight: 700; background: linear-gradient(180deg, #fff 0%, #c4b5fd 70%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.s-title p { color: var(--ink-dim); font-size: clamp(20px, 2.2vw, 26px); margin-top: 26px; max-width: 820px; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* 2. bullets */
.s-bullets { max-width: 900px; margin: 0 auto; }
.s-bullets h2 { font-size: 44px; margin: 0 0 36px; font-weight: 700; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.s-bullets ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.s-bullets li { display: flex; gap: 18px; align-items: flex-start; padding: 22px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 21px; transition: transform .2s, border-color .2s; box-shadow: var(--sh-purple); }
.s-bullets li:hover { transform: translateX(4px); border-color: var(--accent); }
.s-bullets li .mark { font-weight: 700; flex: 0 0 auto; width: 28px; font-size: 22px; font-family: var(--font-display); }
.s-bullets li:nth-child(4n+1) .mark { color: var(--pink); }
.s-bullets li:nth-child(4n+2) .mark { color: var(--cyan); }
.s-bullets li:nth-child(4n+3) .mark { color: var(--yellow); }
.s-bullets li:nth-child(4n+4) .mark { color: var(--accent-2); }
.s-bullets li:nth-child(4n+1) { box-shadow: var(--sh-pink); }
.s-bullets li:nth-child(4n+2) { box-shadow: var(--sh-cyan); }
.s-bullets li:nth-child(4n+3) { box-shadow: var(--sh-yellow); }
.s-bullets li:nth-child(4n+4) { box-shadow: var(--sh-purple); }
.s-bullets.check li .mark { color: var(--good) !important; }
.s-bullets.number li .mark { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

/* 3. code */
.s-code { max-width: 1100px; margin: 0 auto; }
.s-code .cap { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.s-code h2 { margin: 0 0 24px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.s-code pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; margin: 0; overflow: auto; font-size: 17px; line-height: 1.7; max-height: 62vh; box-shadow: var(--sh-cyan); }
.s-code .hl { background: linear-gradient(90deg, rgba(167,139,250,0.18), rgba(244,114,182,0.1)); display: block; margin: 0 -30px; padding: 0 30px; border-left: 3px solid var(--accent); }

/* 4. codeCompare */
.s-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1280px; margin: 0 auto; }
.s-compare .pane { display: flex; flex-direction: column; }
.s-compare .label { font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; align-self: flex-start; border: 1px solid; }
.s-compare .label.bad { color: var(--bad); border-color: rgba(251,113,133,0.4); background: rgba(251,113,133,0.08); }
.s-compare .label.good { color: var(--good); border-color: rgba(134,239,172,0.4); background: rgba(134,239,172,0.08); }
.s-compare pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 0; overflow: auto; font-size: 15px; line-height: 1.7; max-height: 58vh; }
.s-compare .pane:nth-child(1) pre { box-shadow: var(--sh-pink); }
.s-compare .pane:nth-child(2) pre { box-shadow: var(--sh-cyan); }

/* 5. fileTree */
.s-tree { max-width: 900px; margin: 0 auto; }
.s-tree h2 { font-size: 36px; margin: 0 0 28px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-tree .tree { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 30px 36px; font-family: var(--font-mono); font-size: 17px; line-height: 2.1; box-shadow: var(--sh-pink); }
.s-tree .tree .row { white-space: pre; color: var(--ink); gap: 0; }
.s-tree .tree .row.hi { color: var(--cyan); background: rgba(103,232,249,0.08); border-radius: 8px; padding: 2px 6px; margin: 0 -6px; border-left: 3px solid var(--cyan); }
.s-tree .tree .row.dim { color: var(--ink-mute); }
.s-tree .tree .note { color: var(--ink-dim); margin-left: 14px; font-style: italic; font-family: var(--font-body); }

/* 6. flowDiagram */
.s-flow { max-width: 1200px; margin: 0 auto; }
.s-flow h2 { font-size: 36px; margin: 0 0 32px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-flow svg { width: 100%; max-height: 60vh; }
.s-flow .node rect { stroke: none; }
.s-flow .node:nth-child(4n+1) rect { fill: #f472b6; }
.s-flow .node:nth-child(4n+2) rect { fill: #67e8f9; }
.s-flow .node:nth-child(4n+3) rect { fill: #fde047; }
.s-flow .node:nth-child(4n+4) rect { fill: #a78bfa; }
.s-flow .node:nth-child(4n+1) text { fill: #1a0533; }
.s-flow .node:nth-child(4n+2) text { fill: #032030; }
.s-flow .node:nth-child(4n+3) text { fill: #2a1800; }
.s-flow .node:nth-child(4n+4) text { fill: #14063a; }
.s-flow .node text { font: 700 16px var(--font-display); letter-spacing: -0.01em; }
.s-flow .edge path { fill: none; stroke: rgba(255,255,255,0.65); stroke-width: 2; }
.s-flow .edge text { fill: var(--ink-dim); font: 13px var(--font-body); }
.s-flow .arrowhead { fill: rgba(255,255,255,0.85); }

/* 7. sequenceDiagram */
.s-seq { max-width: 1100px; margin: 0 auto; }
.s-seq h2 { font-size: 34px; margin: 0 0 24px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-seq .actors { display: flex; justify-content: space-around; margin-bottom: 16px; gap: 16px; }
.s-seq .actor { padding: 14px 24px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; border: none; color: #0a0320; letter-spacing: -0.01em; box-shadow: 0 4px 0 rgba(0,0,0,0.35); }
.s-seq .actor:nth-child(4n+1) { background: var(--pink); color: #1a0533; }
.s-seq .actor:nth-child(4n+2) { background: var(--cyan); color: #032030; }
.s-seq .actor:nth-child(4n+3) { background: var(--yellow); color: #2a1800; }
.s-seq .actor:nth-child(4n+4) { background: var(--accent); color: #14063a; }
.s-seq svg { width: 100%; height: 50vh; }
.s-seq .msg line { stroke: var(--pink); stroke-width: 2; }
.s-seq .msg text { fill: var(--ink); font: 14px var(--font-body); }
.s-seq .lane { stroke: rgba(255,255,255,0.55); stroke-dasharray: 5 8; stroke-width: 1.5; }

/* 8. architecture */
.s-arch { max-width: 1200px; margin: 0 auto; }
.s-arch h2 { font-size: 36px; margin: 0 0 28px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-arch .layers { display: grid; gap: 18px; }
.s-arch .layer { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 24px 24px 32px; background: rgba(29,15,73,0.4); }
.s-arch .layer-name { color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 16px; }
.s-arch .boxes { display: flex; gap: 18px; flex-wrap: wrap; }
.s-arch .box { border: none; border-radius: 12px; padding: 16px 22px; font-weight: 700; font-family: var(--font-display); min-width: 140px; text-align: center; font-size: 15px; transition: transform .15s; box-shadow: 4px 4px 0 rgba(0,0,0,0.4); letter-spacing: -0.01em; }
.s-arch .box:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.4); }
.s-arch .box:nth-child(4n+1) { background: var(--pink); color: var(--on-pink); }
.s-arch .box:nth-child(4n+2) { background: var(--cyan); color: var(--on-cyan); }
.s-arch .box:nth-child(4n+3) { background: var(--yellow); color: var(--on-yellow); }
.s-arch .box:nth-child(4n+4) { background: var(--accent); color: var(--on-purple); }

/* 9. callout */
.s-callout { display: grid; place-items: center; }
.s-callout .card { max-width: 900px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 48px 56px; display: grid; grid-template-columns: 88px 1fr; gap: 32px; align-items: center; box-shadow: var(--sh-purple); }
.s-callout .icon { font-size: 64px; }
.s-callout.info .card { border-color: var(--accent); box-shadow: 0 20px 60px rgba(167,139,250,0.3); }
.s-callout.tip .card { border-color: var(--good); }
.s-callout.warning .card { border-color: var(--warn); }
.s-callout.success .card { border-color: var(--good); }
.s-callout h3 { margin: 0 0 10px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-display); }
.s-callout p { margin: 0; color: var(--ink-dim); font-size: 20px; line-height: 1.55; }

/* 10. definition */
.s-def { text-align: center; max-width: 900px; margin: 0 auto; }
.s-def .term { font-family: var(--font-display); font-size: clamp(56px, 8vw, 96px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 24px; line-height: 1; background: linear-gradient(135deg, var(--cyan), var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-def .definition { font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); line-height: 1.55; text-wrap: balance; }
.s-def .also { color: var(--ink-dim); margin-top: 24px; font-size: 15px; font-style: italic; }

/* 11. twoColumn */
.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1100px; margin: 0 auto; }
.s-two .col { padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.s-two .col:nth-child(1) { box-shadow: var(--sh-pink); }
.s-two .col:nth-child(2) { box-shadow: var(--sh-cyan); }
.s-two .col h3 { font-family: var(--font-display); font-size: 28px; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; }
.s-two .col:nth-child(1) h3 { color: var(--pink); }
.s-two .col:nth-child(2) h3 { color: var(--cyan); }
.s-two .col p { font-size: 19px; color: var(--ink); margin: 0; line-height: 1.6; }

/* 12. stats */
.s-stats { max-width: 1100px; margin: 0 auto; }
.s-stats h2 { font-size: 36px; margin: 0 0 36px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-stats .grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.s-stats .cell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; transition: transform .2s; }
.s-stats .cell:nth-child(4n+1) { box-shadow: var(--sh-pink); }
.s-stats .cell:nth-child(4n+2) { box-shadow: var(--sh-cyan); }
.s-stats .cell:nth-child(4n+3) { box-shadow: var(--sh-yellow); }
.s-stats .cell:nth-child(4n+4) { box-shadow: var(--sh-purple); }
.s-stats .cell:hover { transform: translate(-2px, -2px); }
.s-stats .val { font-family: var(--font-display); font-size: 68px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.s-stats .cell:nth-child(4n+1) .val { color: var(--pink); }
.s-stats .cell:nth-child(4n+2) .val { color: var(--cyan); }
.s-stats .cell:nth-child(4n+3) .val { color: var(--yellow); }
.s-stats .cell:nth-child(4n+4) .val { color: var(--accent-2); }
.s-stats .lab { color: var(--ink-dim); margin-top: 10px; font-size: 15px; }

/* 13. terminal */
.s-term { max-width: 1000px; margin: 0 auto; }
.s-term .frame { background: #04020c; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-cyan); }
.s-term .bar { background: var(--panel); padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.s-term .dot { width: 13px; height: 13px; border-radius: 50%; background: #555; }
.s-term .dot.r { background: #ff5f56; }
.s-term .dot.y { background: #ffbd2e; }
.s-term .dot.g { background: #27c93f; }
.s-term .body { padding: 28px 32px; font-family: var(--font-mono); font-size: 16px; color: var(--ink-dim); line-height: 1.8; }
.s-term .prompt { color: var(--cyan); font-weight: 600; }
.s-term .cmd { color: #fff; }
.s-term .out { color: var(--ink-mute); white-space: pre-wrap; margin-top: 10px; }

/* 14. steps */
.s-steps { max-width: 1000px; margin: 0 auto; }
.s-steps h2 { font-size: 36px; margin: 0 0 32px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.s-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; transition: transform .2s; }
.s-steps li:hover { transform: translate(-2px, -2px); }
.s-steps li:nth-child(4n+1) { box-shadow: var(--sh-pink); }
.s-steps li:nth-child(4n+2) { box-shadow: var(--sh-cyan); }
.s-steps li:nth-child(4n+3) { box-shadow: var(--sh-yellow); }
.s-steps li:nth-child(4n+4) { box-shadow: var(--sh-purple); }
.s-steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; display: grid; place-items: center; box-shadow: 3px 3px 0 rgba(0,0,0,0.35); }
.s-steps li:nth-child(4n+1)::before { background: var(--pink); color: var(--on-pink); }
.s-steps li:nth-child(4n+2)::before { background: var(--cyan); color: var(--on-cyan); }
.s-steps li:nth-child(4n+3)::before { background: var(--yellow); color: var(--on-yellow); }
.s-steps li:nth-child(4n+4)::before { background: var(--accent); color: var(--on-purple); }
.s-steps .t { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.s-steps .d { color: var(--ink-dim); margin-top: 6px; font-size: 16px; line-height: 1.55; }

/* 15. timeline */
.s-time { max-width: 900px; margin: 0 auto; }
.s-time h2 { font-size: 36px; margin: 0 0 36px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-time ul { list-style: none; padding: 0 0 0 28px; margin: 0; border-left: 2px solid var(--line); display: grid; gap: 22px; }
.s-time li { position: relative; padding-left: 20px; font-size: 18px; }
.s-time li::before { content: ""; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px; border-radius: 3px; }
.s-time li:nth-child(4n+1)::before { background: var(--pink); }
.s-time li:nth-child(4n+2)::before { background: var(--cyan); }
.s-time li:nth-child(4n+3)::before { background: var(--yellow); }
.s-time li:nth-child(4n+4)::before { background: var(--accent); }
.s-time .t { font-family: var(--font-display); font-weight: 700; margin-right: 12px; font-variant-numeric: tabular-nums; }
.s-time li:nth-child(4n+1) .t { color: var(--pink); }
.s-time li:nth-child(4n+2) .t { color: var(--cyan); }
.s-time li:nth-child(4n+3) .t { color: var(--yellow); }
.s-time li:nth-child(4n+4) .t { color: var(--accent-2); }
.s-time .e { color: var(--ink); }

/* 16. warning */
.s-warn { max-width: 900px; margin: 0 auto; }
.s-warn .head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.s-warn .head .icon { font-size: 52px; }
.s-warn h2 { margin: 0; font-size: 36px; color: var(--warn); font-weight: 700; letter-spacing: -0.02em; }
.s-warn ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.s-warn li { background: rgba(252,211,77,0.08); border: 1px solid rgba(252,211,77,0.35); padding: 18px 22px; border-radius: var(--radius); font-size: 17px; box-shadow: var(--sh-yellow); }

/* 17. quiz */
.s-quiz { max-width: 820px; margin: 0 auto; }
.s-quiz h2 { font-size: 34px; margin: 0 0 32px; text-align: center; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.s-quiz .choices { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.s-quiz .choice { border: none; border-radius: 10px; padding: 20px 24px; font-size: 17px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; transition: transform .15s; cursor: default; box-shadow: 4px 4px 0 rgba(0,0,0,0.35); }
.s-quiz .choice:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.35); }
.s-quiz .choice:nth-child(4n+1) { background: var(--pink); color: var(--on-pink); }
.s-quiz .choice:nth-child(4n+2) { background: var(--cyan); color: var(--on-cyan); }
.s-quiz .choice:nth-child(4n+3) { background: var(--yellow); color: var(--on-yellow); }
.s-quiz .choice:nth-child(4n+4) { background: var(--accent); color: var(--on-purple); }
.s-quiz .choice.good { outline: 3px solid var(--good); outline-offset: 4px; }
.s-quiz .answer { margin-top: 28px; color: var(--ink-dim); font-size: 15px; padding: 18px 22px; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); font-style: italic; grid-column: 1 / -1; }

/* 18. summary */
.s-sum { max-width: 900px; margin: 0 auto; }
.s-sum h2 { font-size: 48px; margin: 0 0 32px; letter-spacing: -0.025em; font-weight: 700; text-align: center; background: linear-gradient(180deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-sum ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.s-sum li { font-size: 22px; padding: 20px 24px 20px 64px; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.s-sum li:nth-child(4n+1) { box-shadow: var(--sh-pink); }
.s-sum li:nth-child(4n+2) { box-shadow: var(--sh-cyan); }
.s-sum li:nth-child(4n+3) { box-shadow: var(--sh-yellow); }
.s-sum li:nth-child(4n+4) { box-shadow: var(--sh-purple); }
.s-sum li::before { content: "✦"; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-family: var(--font-display); font-weight: 700; }
.s-sum li:nth-child(4n+1)::before { content: "✦"; color: var(--pink); }
.s-sum li:nth-child(4n+2)::before { content: "＋"; color: var(--cyan); }
.s-sum li:nth-child(4n+3)::before { content: "▲"; color: var(--yellow); }
.s-sum li:nth-child(4n+4)::before { content: "✺"; color: var(--accent-2); }

/* 19. image */
.s-image { text-align: center; max-width: 1100px; margin: 0 auto; }
.s-image img { max-width: 100%; max-height: 62vh; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--sh-purple); }
.s-image .cap { color: var(--ink-dim); margin-top: 18px; font-size: 16px; font-style: italic; }

/* 20. comparison */
.s-cmp { max-width: 1100px; margin: 0 auto; }
.s-cmp h2 { font-size: 36px; margin: 0 0 28px; text-align: center; font-weight: 700; letter-spacing: -0.02em; }
.s-cmp table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 17px; box-shadow: var(--sh-purple); }
.s-cmp th, .s-cmp td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.s-cmp th { background: var(--panel); font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.s-cmp tr:last-child td { border-bottom: none; }
.s-cmp tr:nth-child(even) td { background: rgba(29,15,73,0.3); }
.s-cmp .row-label { color: var(--ink-dim); font-weight: 500; font-family: var(--font-display); }

/* Error */
.slide-err { color: var(--bad); padding: 28px; background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.4); border-radius: var(--radius); font-size: 16px; }

.audio-error { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); max-width: 90%; background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.5); color: #ffd6d6; padding: 14px 20px; border-radius: 12px; font-size: 14px; z-index: 20; box-shadow: 0 12px 40px rgba(0,0,0,0.4); backdrop-filter: blur(12px); }
.audio-error b { color: #fff; margin-right: 6px; }
.audio-error code { background: rgba(0,0,0,0.3); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.audio-error button { margin-left: 14px; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; padding: 5px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.audio-error button:hover { background: rgba(255,255,255,0.1); }
