/* Same office, different superpowers · React / Vue / Angular · Vefskólinn */

/* ---------- tokens ---------- */
:root {
  --paper: #f3efe7;
  --paper-2: #e9e3d8;
  --board: #ffffff;
  --ink: #22242a;
  --ink-2: #565a66;
  --ink-3: #8a8f9c;
  --line: #ddd7cb;
  --marker: #2b3a67;
  --sticky: #ffe27a;
  --sticky-pink: #ffd1dc;
  --sticky-green: #c9f0d2;
  --sticky-blue: #cfe7ff;
  --wood: #d8b78a;
  --wood-deep: #b8925f;
  --plant: #4f9a5c;
  --react: #1a9bd0;
  --react-soft: #dff3fb;
  --vue: #3aa876;
  --vue-soft: #dff4e9;
  --angular: #c8102e;
  --angular-soft: #fbe1e5;
  --code-bg: #1d2029;
  --code-fg: #e8ebf2;
  --good: #2f9e63;
  --bad: #d33f3f;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 40px -20px rgba(40, 30, 10, .35), 0 2px 8px -3px rgba(40, 30, 10, .2);
  --shadow-sm: 0 6px 16px -8px rgba(40, 30, 10, .35);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; letter-spacing: -.02em; margin: 0; }
code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-ligatures: none; }
.hand { font-family: "Caveat", "Segoe Script", cursive; font-weight: 700; color: var(--marker); font-size: 30px; line-height: 1.05; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.dim { color: var(--ink-3); font-weight: 500; }
p code, li code, td code { background: var(--paper-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: .85em; color: var(--marker); }
:focus-visible { outline: 3px solid var(--react); outline-offset: 2px; }

/* ---------- ambient background: office wall + desk ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43, 58, 103, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 58, 103, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.bg-glow-1 { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, rgba(255, 226, 122, .55), rgba(255, 226, 122, 0) 65%); }
.bg-glow-2 { width: 60vmax; height: 60vmax; right: -25vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(58, 168, 118, .28), rgba(58, 168, 118, 0) 65%); }
#glyphs { position: absolute; inset: 0; width: 100%; height: 100%; }
.desk-edge {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 5;
  background: linear-gradient(var(--wood), var(--wood-deep));
  box-shadow: 0 -6px 18px -6px rgba(0, 0, 0, .25);
}
.desk-edge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: rgba(255, 255, 255, .35); }

/* ---------- deck & slides ---------- */
.deck { position: fixed; left: 50%; top: 50%; width: 1600px; height: 900px; transform: translate(-50%, -50%); transform-origin: center; z-index: 1; }
.slide {
  position: absolute; inset: 0; padding: 64px 90px 96px;
  opacity: 0; visibility: hidden; transform: translateX(80px);
  transition: opacity .55s var(--ease), transform .65s var(--ease), visibility 0s .6s;
  display: flex; flex-direction: column;
}
.slide.past { transform: translateX(-80px); }
.slide.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 2; }

.rise { opacity: 0; transform: translateY(24px); }
.slide.active .rise { animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms + .15s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.frag { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.frag.on { opacity: 1; transform: none; }

.hl { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .05em; height: .38em; z-index: -1; transform: scaleX(0); transform-origin: left; border-radius: 4px; opacity: .55; }
.hl-react::before { background: var(--react); }
.hl-vue::before { background: var(--vue); }
.hl-angular::before { background: var(--angular); }
.hl-sticky::before { background: var(--sticky); opacity: 1; }
.slide.active .hl::before { animation: sweep .7s var(--ease) forwards; animation-delay: .45s; }
@keyframes sweep { to { transform: scaleX(1); } }

.c-react { color: var(--react); }
.c-vue { color: var(--vue); }
.c-angular { color: var(--angular); }

/* common type */
.eyebrow { font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 14px; }
h1 { font-size: 100px; line-height: .98; font-weight: 700; }
h2 { font-size: 58px; line-height: 1.05; font-weight: 700; margin-bottom: 30px; }
h3 { font-size: 26px; font-weight: 700; }
.sub { font-size: 30px; color: var(--ink-2); margin: 24px 0 0; }
.sub em { font-style: normal; color: var(--ink); font-weight: 600; }
.lead { font-size: 24px; color: var(--ink-2); margin: -10px 0 28px; max-width: 1100px; line-height: 1.4; }
.takeaway { margin: auto 0 0; font-size: 25px; color: var(--ink-2); line-height: 1.35; padding-top: 22px; }
.takeaway em { font-style: normal; color: var(--ink); font-weight: 600; box-shadow: inset 0 -.4em 0 var(--sticky); }
.corner { position: absolute; right: 90px; bottom: 110px; margin: 0; transform: rotate(-2deg); }
.hint { margin-top: 40px; }
.center { text-align: center; }

/* buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 600; font-size: 18px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: var(--shadow-sm); background: var(--ink); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- shared components: whiteboard, sticky notes, nameplate, bubbles ---------- */
.board {
  background: var(--board); border: 10px solid #e6e1d6; border-radius: 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0, 0, 0, .04);
  padding: 34px 40px; position: relative;
}
.board::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -22px; height: 12px; background: #cfc8bb; border-radius: 0 0 8px 8px; }
.board .hand { font-size: 34px; }

.sticky {
  position: relative; background: var(--sticky); color: var(--ink);
  padding: 18px 20px 20px; width: 250px; min-height: 150px;
  font-size: 20px; line-height: 1.3; font-weight: 500;
  box-shadow: 2px 6px 14px -6px rgba(0, 0, 0, .35);
  transform: rotate(var(--r, -1.5deg));
}
.sticky::before { content: ""; position: absolute; left: 50%; top: -10px; width: 70px; height: 20px; transform: translateX(-50%) rotate(-1deg); background: rgba(255, 255, 255, .45); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.sticky b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 22px; margin-bottom: 6px; }
.sticky.pink { background: var(--sticky-pink); }
.sticky.green { background: var(--sticky-green); }
.sticky.blue { background: var(--sticky-blue); }
.sticky.frag { transform: translateY(20px) rotate(var(--r, -1.5deg)); }
.sticky.frag.on { transform: rotate(var(--r, -1.5deg)); }

.nameplate {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(#fbf7ee, #e8e0cf); border: 1px solid #cfc4ad; border-radius: 6px;
  padding: 10px 20px; box-shadow: var(--shadow-sm);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 24px;
}
.nameplate small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 14px; color: var(--ink-2); letter-spacing: .02em; }
.nameplate .logo { width: 30px; height: 30px; flex: none; }

.bubble {
  position: relative; background: var(--board); border: 2px solid var(--ink); border-radius: 18px;
  padding: 16px 22px; font-size: 22px; line-height: 1.3; box-shadow: var(--shadow-sm);
}
.bubble::after { content: ""; position: absolute; left: 40px; bottom: -14px; width: 24px; height: 24px; background: var(--board); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.bubble.tail-left::after { left: -14px; bottom: 26px; transform: rotate(135deg); }
.bubble .hand { font-size: 28px; display: block; }

/* avatars (SVG symbols defined in index.html) */
.avatar { width: 220px; height: 260px; display: block; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .18)); }
.avatar.lg { width: 330px; height: 390px; }
.avatar.sm { width: 120px; height: 142px; }
.mini { display: block; }

/* ---------- 1 · title ---------- */
.s-title { padding: 0; justify-content: flex-end; }
.s-title .photo { position: absolute; inset: 0; background: url("assets/office.jpg") center 30% / cover no-repeat; border-radius: 0; }
.s-title .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 10, .08) 20%, rgba(20, 16, 10, .72) 55%, rgba(20, 16, 10, .94) 100%); }
.s-title .title-block { position: relative; padding: 0 90px 120px; color: #fff; }
.s-title .eyebrow { color: rgba(255, 255, 255, .75); }
.s-title h1 { font-size: 92px; color: #fff; }
.s-title .sub { color: rgba(255, 255, 255, .88); }
.s-title .sub em { color: #fff; }
.s-title .title-block { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.s-title .hand { color: #ffe27a; }
.s-title .hl-sticky::before { opacity: .9; }
.s-title .credit { position: absolute; right: 24px; bottom: 60px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- 2 · where we are ---------- */
.path { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.path .stop { background: var(--board); border: 2px solid var(--line); border-radius: 16px; padding: 22px 26px; min-width: 250px; box-shadow: var(--shadow-sm); }
.path .stop b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 24px; margin-bottom: 8px; }
.path .stop span { color: var(--ink-2); font-size: 18px; line-height: 1.35; display: block; }
.path .stop.now { border-color: var(--marker); background: #fffdf5; transform: scale(1.04); }
.path .stop.now b { color: var(--marker); }
.path .arrow { font-size: 40px; color: var(--ink-3); }
.recap { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip { background: var(--board); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 19px; font-weight: 500; }
.chip.on-chip { background: var(--sticky); border-color: transparent; }

/* ---------- 3 · why frameworks ---------- */
.why { display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 10px; }
.why > * { min-width: 0; }
.why .board { min-height: 0; padding: 28px 32px; }
.why-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 22px; line-height: 1.35; }
.why .why-list li { font-size: 20px; }
.why-list .tick { font-family: "Caveat", cursive; font-size: 30px; color: var(--marker); line-height: 1; }
.why-list .tick.bad { color: var(--bad); }
.counter-demo { background: var(--board); border: 2px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.counter-demo .row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.counter-demo .feat { font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700; flex: 1; }
.demo-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-panes h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.demo-panes h4 + pre + h4 { margin-top: 10px; }
.counter-demo pre { margin: 0; background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; overflow: hidden; min-height: 52px; white-space: pre; }
#demoVanilla { min-height: 230px; }
#demoTemplate { min-height: 150px; }
.counter-demo pre .k { color: #c792ea; }
.counter-demo pre .s { color: #8fd18a; }
.counter-demo pre .f { color: #82aaff; }
.counter-demo pre .t { color: #f07178; }
.counter-demo pre .a { color: #ffcb6b; }
.counter-demo pre .c { color: #7d8494; font-style: italic; }
.counter-demo pre .new { background: rgba(255, 226, 122, .18); display: block; margin: 0 -14px; padding: 0 14px; }
.counter-demo .caption { font-size: 15px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.4; }

/* ---------- 4 · meet the team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 10px; align-items: end; }
.member { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; position: relative; border: 0; background: none; padding: 0; }
.member .bubble { position: absolute; top: -30px; left: 50%; transform: translate(-50%, 10px) scale(.96); width: 330px; opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; text-align: left; }
.member .bubble::after { left: 50%; margin-left: -12px; }
.member.talk .bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
.member .avatar { transition: transform .35s var(--ease); margin-top: 120px; }
.member:hover .avatar, .member.talk .avatar { transform: translateY(-8px); }
.tap { font-size: 16px; color: var(--ink-3); margin-top: 6px; }

/* ---------- profile slides ---------- */
.profile { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 50px; align-items: start; margin-top: 4px; }
.profile > div { min-width: 0; }
.profile-code { overflow-x: auto; }
.profile-left { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.idcard { background: var(--board); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.idcard header { padding: 16px 24px; display: flex; align-items: center; gap: 14px; color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px; }
.idcard header .logo { width: 36px; height: 36px; }
.idcard header small { margin-left: auto; font-family: "Inter", sans-serif; font-weight: 500; font-size: 16px; opacity: .9; }
.idcard.react header { background: var(--react); }
.idcard.vue header { background: var(--vue); }
.idcard.angular header { background: var(--angular); }
.idcard dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; margin: 0; padding: 22px 26px; font-size: 20px; }
.idcard dt { color: var(--ink-3); font-weight: 500; }
.idcard dd { margin: 0; font-weight: 500; line-height: 1.35; }
.profile-code { margin-top: 20px; background: var(--code-bg); color: var(--code-fg); border-radius: 14px; padding: 18px 22px; font-size: 18px; line-height: 1.5; box-shadow: var(--shadow-sm); }
.profile-code pre { margin: 0; white-space: pre; }
.profile-code .k { color: #c792ea; } .profile-code .s { color: #8fd18a; } .profile-code .f { color: #82aaff; } .profile-code .t { color: #f07178; } .profile-code .a { color: #ffcb6b; } .profile-code .c { color: #7d8494; font-style: italic; }
.profile .stickies { display: flex; gap: 22px; margin-top: 22px; }
.profile .stickies .sticky { width: 200px; min-height: 110px; font-size: 18px; padding: 16px 16px; }
.profile .stickies .sticky b { font-size: 19px; }

/* ---------- pros / cons ---------- */
.proscons { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 40px; align-items: start; margin-top: 4px; }
.proscons .who { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.proscons .who .bubble { font-size: 20px; }
.proscons .col h3 { display: flex; align-items: center; gap: 12px; font-size: 30px; margin-bottom: 24px; }
.proscons .col h3 .sign { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 26px; }
.proscons .col.pros .sign { background: var(--good); }
.proscons .col.cons .sign { background: var(--bad); }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.notes-grid .sticky { width: auto; min-height: 175px; font-size: 19px; padding: 18px 20px; }
.notes-grid .sticky b { font-size: 19px; }
.notes-grid .sticky:nth-child(2) { --r: 1.5deg; }
.notes-grid .sticky:nth-child(3) { --r: 1deg; }
.notes-grid .sticky:nth-child(4) { --r: -2deg; }

/* ---------- same app three ways ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab { border: 2px solid var(--line); background: var(--board); border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 18px; transition: background .2s, border-color .2s; }
.tab:hover { border-color: var(--ink-3); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.trio-code { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pane { background: var(--code-bg); color: var(--code-fg); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 400px; }
.pane header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px; background: rgba(255, 255, 255, .06); border-top: 4px solid; }
.pane.react header { border-color: var(--react); }
.pane.vue header { border-color: var(--vue); }
.pane.angular header { border-color: var(--angular); }
.pane header .logo { width: 22px; height: 22px; }
.pane header .file { margin-left: auto; font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 13px; color: #9aa1b0; }
.pane pre { margin: 0; padding: 18px 20px; font-size: 16px; line-height: 1.5; overflow: auto; flex: 1; white-space: pre; }
.pane { min-height: 520px; }
.pane .k { color: #c792ea; } .pane .s { color: #8fd18a; } .pane .f { color: #82aaff; } .pane .t { color: #f07178; } .pane .a { color: #ffcb6b; } .pane .c { color: #7d8494; font-style: italic; }
.pane .note { padding: 12px 18px; font-size: 15px; color: #c9cfdb; background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .08); line-height: 1.4; }
.pane .note b { color: #fff; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.stat-rows { display: grid; gap: 20px; }
.stat { background: var(--board); border: 2px solid var(--line); border-radius: 14px; padding: 16px 22px; box-shadow: var(--shadow-sm); }
.stat .label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.stat .label b { font-family: "Space Grotesk", sans-serif; font-size: 21px; }
.stat .label span { font-size: 15px; color: var(--ink-3); }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 80px 1fr 90px; align-items: center; gap: 12px; font-size: 16px; }
.bar .name { font-weight: 600; }
.bar .track { height: 18px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.1s var(--ease); }
.bar.react .fill { background: var(--react); }
.bar.vue .fill { background: var(--vue); }
.bar.angular .fill { background: var(--angular); }
.slide.active .bar .fill { width: var(--w); }
.bar .val { font-family: "JetBrains Mono", monospace; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.numbers .sticky { width: 100%; min-height: 0; font-size: 19px; }

/* ---------- quiz ---------- */
.quiz { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.quiz-card { background: var(--code-bg); color: var(--code-fg); border-radius: 16px; padding: 28px 30px; box-shadow: var(--shadow); min-height: 300px; display: flex; flex-direction: column; }
.quiz-card .round { font-size: 15px; color: #9aa1b0; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.quiz-card pre { margin: 0; font-size: 22px; line-height: 1.5; white-space: pre-wrap; flex: 1; }
.quiz-card .k { color: #c792ea; } .quiz-card .s { color: #8fd18a; } .quiz-card .f { color: #82aaff; } .quiz-card .t { color: #f07178; } .quiz-card .a { color: #ffcb6b; }
.quiz-answers { display: flex; gap: 14px; margin-top: 22px; }
.qa { flex: 1; border: 3px solid var(--line); background: var(--board); border-radius: 14px; padding: 16px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .15s var(--ease), border-color .2s, background .2s; }
.qa .logo { width: 28px; height: 28px; }
.qa:hover { transform: translateY(-3px); }
.qa.react:hover { border-color: var(--react); }
.qa.vue:hover { border-color: var(--vue); }
.qa.angular:hover { border-color: var(--angular); }
.qa.right { background: #e3f6ea; border-color: var(--good); }
.qa.wrong { background: #fde6e6; border-color: var(--bad); }
.qa:disabled { cursor: default; transform: none; }
.quiz-side { display: flex; flex-direction: column; gap: 18px; }
.quiz-feedback { min-height: 92px; }
.quiz-score { background: var(--board); border: 2px solid var(--line); border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; }
.quiz-score b { font-family: "Space Grotesk", sans-serif; font-size: 40px; }
.quiz-score span { color: var(--ink-3); font-size: 18px; }
.quiz-side .sticky { width: 100%; min-height: 0; font-size: 18px; }

/* ---------- decision ---------- */
.decide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 6px; }
.decide .card { background: var(--board); border: 2px solid var(--line); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; border-top-width: 8px; }
.decide .card.react { border-top-color: var(--react); }
.decide .card.vue { border-top-color: var(--vue); }
.decide .card.angular { border-top-color: var(--angular); }
.decide .card h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.decide .card h3 .logo { width: 30px; height: 30px; }
.decide .card ul { margin: 0; padding-left: 22px; font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.decide .card li { margin-bottom: 8px; }
.decide .card .hand { margin-top: auto; font-size: 26px; }
.decide .card .avatar.sm { align-self: flex-end; margin: -20px -10px -10px 0; }

/* ---------- assignment ---------- */
.assign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps { display: grid; gap: 16px; margin-top: 10px; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: start; background: var(--board); border: 2px solid var(--line); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.step b { font-family: "Space Grotesk", sans-serif; font-size: 40px; color: var(--marker); line-height: 1; }
.step h3 { font-size: 22px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 18px; color: var(--ink-2); line-height: 1.4; }
.step.frag { transform: translateX(-20px); }
.step.frag.on { transform: none; }
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.idea { background: var(--board); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 18px; box-shadow: var(--shadow-sm); }
.idea b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 20px; margin-bottom: 2px; }
.idea span { color: var(--ink-2); font-size: 16px; }
.idea.no { opacity: .55; text-decoration: line-through; }
.cmd { background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 14px 18px; font-size: 16px; line-height: 1.6; margin: 0; }
.cmd .c { color: #7d8494; }
.cmd .p { color: #ffcb6b; }

/* ---------- checklist ---------- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; margin-top: 8px; }
.check { display: flex; gap: 16px; align-items: flex-start; background: var(--board); border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, border-color .2s; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 30px; height: 30px; border: 3px solid var(--ink-3); border-radius: 8px; flex: none; display: grid; place-items: center; font-family: "Caveat", cursive; font-size: 30px; color: var(--marker); line-height: 1; margin-top: 2px; }
.check .box::after { content: "✓"; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }
.check:has(input:checked) { background: #fffbe6; border-color: var(--sticky); }
.check:has(input:checked) .box { border-color: var(--marker); }
.check:has(input:checked) .box::after { opacity: 1; transform: none; }
.check:has(input:focus-visible) { outline: 3px solid var(--react); }
.check b { display: block; font-size: 20px; margin-bottom: 3px; }
.check span { font-size: 17px; color: var(--ink-2); line-height: 1.35; }
.check-status { margin-top: 18px; font-size: 20px; color: var(--ink-2); }

/* ---------- scorecard ---------- */
.scorecard { background: var(--board); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.scorecard table { width: 100%; border-collapse: collapse; font-size: 19px; }
.scorecard th, .scorecard td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.scorecard thead th { font-family: "Space Grotesk", sans-serif; font-size: 20px; background: var(--paper); }
.scorecard thead th.react { color: var(--react); }
.scorecard thead th.vue { color: var(--vue); }
.scorecard thead th.angular { color: var(--angular); }
.scorecard tbody th { font-weight: 500; color: var(--ink-2); width: 34%; }
.scorecard tbody th small { display: block; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.scorecard input[type="range"] { width: 100%; accent-color: var(--marker); }
.scorecard td { position: relative; }
.scorecard .val { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--ink-3); position: absolute; right: 18px; top: 6px; }
.scorecard tfoot td { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; background: var(--paper); }
.scorecard tfoot th { background: var(--paper); font-weight: 500; color: var(--ink-2); }
.scorecard .winner { color: var(--marker); }
.score-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.score-foot .hand { font-size: 28px; }

/* ---------- your report (mock browser) ---------- */
.report { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.report-mock { background: var(--board); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.rm-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.rm-bar span { width: 12px; height: 12px; border-radius: 50%; background: #d6cfc2; }
.rm-bar i { font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink-3); margin-left: 10px; background: var(--board); border-radius: 6px; padding: 3px 12px; flex: 1; }
.rm-body { padding: 14px 18px; display: grid; gap: 10px; }
.rm-sec { display: grid; grid-template-columns: 250px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fcfbf8; }
.rm-sec b { font-family: "Space Grotesk", sans-serif; font-size: 19px; }
.rm-sec span { font-size: 15.5px; color: var(--ink-2); line-height: 1.35; }
.rm-sec.hi-sec { background: #fff8d6; border-color: var(--sticky); }
.rm-sec.hi-sec b { color: var(--marker); }
.rm-links { display: flex; gap: 8px; }
.rm-links i { font-style: normal; font-weight: 600; font-size: 13px; border: 1.5px solid currentColor; border-radius: 999px; padding: 3px 10px; }
.rm-cols { display: flex; gap: 6px; }
.rm-cols i { width: 34px; height: 24px; border-radius: 4px; background: var(--code-bg); opacity: .8; }
.rm-cols i:nth-child(1) { border-top: 3px solid var(--react); }
.rm-cols i:nth-child(2) { border-top: 3px solid var(--vue); }
.rm-cols i:nth-child(3) { border-top: 3px solid var(--angular); }
.rm-sec.frag { transform: translateX(-16px); }
.rm-sec.frag.on { transform: none; }
.report .sticky { width: 100%; min-height: 0; font-size: 18px; padding: 16px 18px 18px; }
.report .sticky b { font-size: 20px; }
.report > div:last-child { gap: 26px !important; }

/* ---------- hand-in ---------- */
.handin { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.deliver { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.deliver li { display: flex; gap: 16px; align-items: flex-start; font-size: 21px; line-height: 1.35; background: var(--board); border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.deliver .n { font-family: "Caveat", cursive; font-size: 34px; color: var(--marker); line-height: 1; min-width: 34px; }
.deliver b { display: block; }
.deliver span { color: var(--ink-2); font-size: 18px; }
.timeline { display: grid; gap: 0; margin-top: 10px; }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; padding: 14px 0; border-left: 4px solid var(--line); padding-left: 24px; position: relative; }
.tl::before { content: ""; position: absolute; left: -11px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--sticky); border: 3px solid var(--marker); }
.tl b { font-family: "Space Grotesk", sans-serif; font-size: 22px; color: var(--marker); }
.tl p { margin: 0; font-size: 19px; color: var(--ink-2); line-height: 1.4; }
.tl p strong { color: var(--ink); font-weight: 600; }

/* ---------- end ---------- */
.s-end { align-items: center; justify-content: center; text-align: center; }
.s-end h2 { font-size: 72px; }
.s-end .team { align-items: end; gap: 60px; margin: 0 0 20px; }
.s-end .member { cursor: default; }
.s-end .member .avatar { margin-top: 0; }
.s-end .links { display: flex; gap: 14px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.s-end .btn { font-size: 17px; padding: 11px 20px; }
.s-end .hand { font-size: 40px; margin: 10px 0 0; }

/* ---------- chrome: nameplate nav, progress, notes, help ---------- */
.chrome { position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; pointer-events: none; }
.chrome > * { pointer-events: auto; }
.chrome .plate { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(#fbf7ee, #e8e0cf); border: 1px solid #cfc4ad; border-radius: 6px; padding: 4px 14px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); box-shadow: 0 -2px 6px rgba(0, 0, 0, .15); transform: translateY(-8px); }
.chrome .plate .dim { font-weight: 500; }
.chrome .nav { display: flex; gap: 6px; transform: translateY(-8px); }
.chrome .nav button { width: 38px; height: 30px; border-radius: 6px; border: 1px solid #cfc4ad; background: linear-gradient(#fbf7ee, #e8e0cf); font-size: 16px; }
.chrome .nav button:hover { background: #fff; }
.chrome .plant { font-size: 30px; transform: translateY(-14px); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
#progress { position: fixed; left: 0; bottom: 46px; height: 5px; background: var(--marker); width: 0; z-index: 6; transition: width .4s var(--ease); }

#notes { position: fixed; left: 50%; bottom: 62px; transform: translate(-50%, 20px); width: min(1100px, 90vw); background: var(--board); border: 2px solid var(--line); border-radius: 14px; padding: 16px 22px; font-size: 17px; line-height: 1.5; color: var(--ink-2); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 20; }
#notes.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#notes .eyebrow { margin-bottom: 6px; }

#help { position: fixed; inset: 0; background: rgba(20, 16, 10, .6); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 30; }
#help.show { opacity: 1; visibility: visible; }
#help .card { background: var(--board); border-radius: 18px; padding: 30px 40px; min-width: 520px; box-shadow: var(--shadow); }
#help h3 { margin-bottom: 16px; }
#help table { border-collapse: collapse; font-size: 18px; }
#help td { padding: 6px 18px 6px 0; }
#help kbd { font-family: "JetBrains Mono", monospace; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 15px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 25; }

/* static mode (screenshots / print) */
html.static .rise, html.static .frag { opacity: 1; transform: none; animation: none; }
html.static .slide { transition: none; }
html.static .hl::before { transform: scaleX(1); animation: none; }
html.static .bar .fill { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .frag { transition: none; animation: none; opacity: 1; transform: none; }
  .slide { transition: none; }
}
