/* Layout concept: a course-platform shell (syllabus left, one lesson screen center, progress rail right) on cream, with glowing blue circuit traces as the progress language. */
:root {
  --cream: #FDF5F0; --cream-2: #FAEBE1; --paper: #FFFCFA;
  --ink: #2D1810; --ink-soft: #6B4A3C; --navy: #1B2A4A;
  --terra: #C4563A; --terra-deep: #8B3A2A; --sand: #D4956A;
  --line: rgba(139, 58, 42, 0.16);
  --blue: #3C9EE7; --blue-deep: #1F6FB5; --blue-wash: #EAF5FE;
  --glow: 0 0 6px rgba(60,158,231,.9), 0 0 18px rgba(60,158,231,.55);
  --f-display: 'Roboto Slab', Georgia, serif; --f-body: 'Inter', system-ui, -apple-system, sans-serif; --f-read: 'Spectral', Georgia, serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --topH: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; overflow: hidden; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue-deep); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 8px; }
.eyebrow { font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-deep); }
.draft { display: inline-block; font: 600 11px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--terra-deep); background: #FBE3D2; border: 1px dashed var(--sand); border-radius: 6px; padding: 4px 8px; }
.hint { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.tiny { font-size: 12px; color: var(--ink-soft); }

/* shell */
.app { height: 100%; display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: var(--topH) minmax(0, 1fr); grid-template-areas: "top top" "side main"; }
.app.has-rail { grid-template-columns: 300px minmax(0, 1fr) 300px; grid-template-areas: "top top top" "side main rail"; }
.top { grid-area: top; position: relative; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter-r) 0 var(--gutter); background: rgba(255,252,250,.92); border-bottom: 1px solid var(--line); z-index: 30; }
.brand img { height: 34px; width: auto; display: block; }
.cname { font: 600 15px var(--f-display); color: var(--navy); padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topstats { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topline { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: rgba(27,42,74,.08); }
.topline i { display: block; height: 100%; width: 100%; background: var(--blue); box-shadow: var(--glow); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.iconbtn { display: none; border: 0; background: transparent; color: var(--navy); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; place-items: center; }
.iconbtn:hover { background: var(--cream-2); }
.xpchip { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.xpchip .lv { background: var(--navy); color: #FDF5F0; border-radius: 99px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.xpchip .bar { width: 120px; height: 8px; border-radius: 8px; background: rgba(27,42,74,.12); overflow: hidden; }
.xpchip .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #7CC4FA); box-shadow: var(--glow); border-radius: 8px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.xpchip .n { font-variant-numeric: tabular-nums; }
.ring { --p: 0; width: 40px; height: 40px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring .track { stroke: rgba(27,42,74,.12); fill: none; }
.ring .fill { stroke: var(--blue); fill: none; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(60,158,231,.8)); transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px var(--f-body); color: var(--navy); }

/* syllabus */
.side { grid-area: side; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; z-index: 20; }
#syllabus { padding: 18px 12px 8px; display: grid; gap: 2px; align-content: start; }
.sy-label { font: 700 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 14px 12px 6px; }
.sy { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; min-height: 48px; position: relative; transition: background .2s; }
.sy:hover { background: var(--cream-2); }
.sy[aria-current="page"] { background: var(--blue-wash); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue); }
.sy .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 12px var(--f-display); color: var(--navy); border: 2px solid rgba(27,42,74,.25); background: var(--paper); transition: all .4s; }
.sy.done .ic { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--glow); }
.sy.part .ic { border-color: var(--blue); color: var(--blue-deep); }
.sy .t { flex: 1; min-width: 0; line-height: 1.25; }
.sy .sub { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.sy.lock { opacity: .6; }
.side-tools { margin-top: auto; padding: 14px 20px 22px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.linkbtn { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue-deep); padding: 6px 0; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* main */
main { grid-area: main; overflow-y: auto; overflow-x: hidden; outline: none; background-color: var(--cream); background-image: radial-gradient(rgba(60,158,231,.14) 1px, transparent 1.4px); background-size: 28px 28px; scroll-behavior: smooth; }
.screen { max-width: 920px; margin: 0 auto; padding: 32px 28px 72px; animation: enter .45s cubic-bezier(.2,.8,.2,1); }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.screen h1 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 10px; }
.lead { font-family: var(--f-read); font-size: 20px; line-height: 1.5; max-width: 38em; margin-top: 12px; }

/* rail */
.rail { grid-area: rail; display: none; overflow-y: auto; background: var(--paper); border-left: 1px solid var(--line); padding: 20px 18px 28px; }
.app.has-rail .rail { display: block; }
.rail h3, .card-s h3 { font-size: 15px; font-family: var(--f-body); font-weight: 700; color: var(--navy); }
.rail .blk { display: grid; gap: 10px; margin-bottom: 22px; }
.bigbar { height: 12px; border-radius: 12px; background: rgba(27,42,74,.12); overflow: hidden; }
.bigbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #7CC4FA); box-shadow: var(--glow); border-radius: 12px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.rowsb { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.rowsb b { font: 700 22px var(--f-display); color: var(--navy); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.bd { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }
.bd svg { width: 56px; height: 62px; }
.bd .hex { fill: var(--cream-2); stroke: rgba(27,42,74,.25); stroke-width: 2; }
.bd text { font: 700 17px var(--f-display); fill: rgba(27,42,74,.35); }
.bd.on { color: var(--navy); }
.bd.on .hex { fill: var(--blue-wash); stroke: var(--blue); filter: drop-shadow(0 0 5px rgba(60,158,231,.8)); }
.bd.on text { fill: var(--blue-deep); }
.next-card { padding: 14px; border-radius: 14px; background: var(--navy); color: #FDF5F0; display: grid; gap: 8px; }
.next-card .eyebrow { color: #8FD0FF; }
.next-card b { font: 600 17px var(--f-display); color: #fff; }
.next-card p { font-size: 13px; opacity: .85; }

/* buttons */
.btn { font: 600 15px/1 var(--f-body); border: 0; border-radius: 12px; padding: 14px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s, box-shadow .2s, background .2s; min-height: 48px; }
.btn.primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(196,86,58,.28); }
.btn.primary:hover { background: var(--terra-deep); transform: translateY(-2px); }
.btn.ghost { background: var(--paper); color: var(--navy); border: 1.5px solid rgba(27,42,74,.3); }
.btn.ghost:hover { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(60,158,231,.14); }
.btn.small { padding: 10px 14px; font-size: 14px; min-height: 44px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* cards */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 18px 40px -28px rgba(139,58,42,.35); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.card-s { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.card-s.glow { border-color: rgba(60,158,231,.5); box-shadow: 0 0 26px -10px rgba(60,158,231,.6); }
.card-s .big { font: 700 34px/1 var(--f-display); color: var(--navy); }
.card-s p { font-size: 14px; color: var(--ink-soft); }

/* home banner */
.banner { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(26px, 4vw, 48px); background: radial-gradient(700px 300px at 85% 0%, #fff 0%, rgba(255,255,255,0) 70%), var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(139,58,42,.4); }
.banner .circuits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.banner > *:not(svg) { position: relative; }
.banner h1 { font-size: clamp(32px, 4.6vw, 50px); max-width: 20ch; letter-spacing: -.01em; }
.banner h1 em { font-style: normal; color: var(--terra); }
.banner .lead { max-width: 26em; font-size: clamp(18px, 2vw, 21px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.circuits .t { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.circuits .t.draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards; }
.circuits .pulse { fill: none; stroke: #8FD0FF; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 94; filter: url(#glow); animation: run 5s linear infinite; }
.circuits .pad { fill: var(--paper); stroke: var(--blue); stroke-width: 1.6; filter: url(#glow); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes run { to { stroke-dashoffset: -100; } }

/* map */
.map { list-style: none; margin: 18px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(9, 1fr); }
.map::before, .map .fillline { content: ''; position: absolute; left: 5.5%; right: 5.5%; top: 21px; height: 3px; border-radius: 3px; background: rgba(27,42,74,.14); }
.map .fillline { background: var(--blue); box-shadow: var(--glow); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.map li { position: relative; text-align: center; padding: 0 2px; }
.map a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.25; }
.map .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2px solid rgba(27,42,74,.25); display: grid; place-items: center; font: 700 14px var(--f-display); color: var(--navy); position: relative; z-index: 1; transition: all .5s; }
.map a:hover .dot { border-color: var(--blue); transform: scale(1.08); }
.map li.done .dot { border-color: var(--blue); background: var(--blue-wash); box-shadow: var(--glow); color: var(--blue-deep); }
.map li.next .dot { border-color: var(--terra); box-shadow: 0 0 0 5px rgba(196,86,58,.15); }
.four { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.four div { padding: 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; }
.four b { display: block; font-family: var(--f-display); color: var(--navy); margin-bottom: 4px; }

/* lesson screens */
.lesson-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lesson-head .hexbig .bd svg { width: 76px; height: 84px; }
.lesson-head .meta { min-width: 0; flex: 1 1 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--cream-2); color: var(--ink-soft); }
.chip.blue { background: var(--blue-wash); color: var(--blue-deep); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tab { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid rgba(27,42,74,.2); border-radius: 14px; padding: 10px 14px 10px 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); min-height: 48px; flex: 1 1 150px; text-align: left; transition: all .25s; }
.tab:hover { border-color: var(--blue); }
.tab .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--f-display); border: 2px solid rgba(27,42,74,.25); color: var(--navy); flex: none; transition: all .4s; }
.tab[aria-selected="true"] { border-color: var(--blue); background: var(--blue-wash); box-shadow: 0 0 0 3px rgba(60,158,231,.15); }
.tab.ok .n { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--glow); }
.stage { margin-top: 14px; }
.stage h2 { font-size: 24px; }
.stage .read { font-family: var(--f-read); font-size: 18px; max-width: 42em; margin-top: 10px; }
.why-text { padding: 16px 18px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); margin-top: 14px; display: grid; gap: 10px; justify-items: start; }
.why-text p { font-family: var(--f-read); font-size: 18px; }
.stepnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.checkrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); cursor: pointer; margin-top: 12px; min-height: 48px; }
.checkrow input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue-deep); flex: none; cursor: pointer; }
.checkrow:has(input:checked) { border-color: var(--blue); background: #EEF7FE; box-shadow: 0 0 0 3px rgba(60,158,231,.12); }
.onerule { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 16px; background: linear-gradient(120deg, #FFFFFF, #EAF5FE); border: 1px solid rgba(60,158,231,.4); box-shadow: 0 0 28px -8px rgba(60,158,231,.5); }
.onerule strong { font: 700 clamp(22px, 3vw, 28px) var(--f-display); color: var(--navy); }
@media (max-width: 560px) { .onerule { grid-template-columns: 1fr; } }

/* skill cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.card { --mx: 50%; --my: 50%; position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 120px; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(180px circle at var(--mx) var(--my), rgba(60,158,231,.16), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.card:hover { transform: translateY(-3px); border-color: rgba(60,158,231,.7); box-shadow: 0 14px 30px -18px rgba(31,111,181,.6); }
.card:hover::before { opacity: 1; }
.card .trace { position: absolute; right: -2px; top: -2px; width: 56px; height: 56px; pointer-events: none; }
.card .trace path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s ease; filter: drop-shadow(0 0 3px rgba(60,158,231,.9)); }
.card:hover .trace path, .card.on .trace path { stroke-dashoffset: 0; }
.card.on { border-color: var(--blue); background: #F2F9FE; box-shadow: 0 0 0 3px rgba(60,158,231,.2), 0 0 26px -6px rgba(60,158,231,.65); }
.card .pick { all: unset; cursor: pointer; font: 600 16px/1.3 var(--f-display); color: var(--navy); padding-right: 30px; position: relative; z-index: 1; }
.card .pick::after { content: ''; position: absolute; inset: -16px -16px -60px -16px; }
.card .pick:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 4px; }
.card .row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 2; }
.card .tick { font-size: 12px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.card .tick i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(27,42,74,.3); display: inline-block; position: relative; transition: all .3s; }
.card.on .tick { color: var(--blue-deep); }
.card.on .tick i { background: var(--blue); border-color: var(--blue); box-shadow: var(--glow); animation: pop .4s; }
.card.on .tick i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.card.locked { opacity: .5; }
.card.locked .pick { cursor: not-allowed; }
@keyframes pop { 50% { transform: scale(1.35); } }
.card a.open { font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 2px; color: var(--blue-deep); text-align: right; line-height: 1.3; }
.picked .backline { margin: 2px 0 0; }
.card a.open:hover { text-decoration: underline; }
.cap-groups { display: grid; gap: 18px; margin-top: 14px; }
.cap-groups h4 { font: 700 12px var(--f-body); color: var(--terra-deep); text-transform: uppercase; letter-spacing: .12em; }
.pickcount { font: 600 14px var(--f-body); color: var(--navy); margin-top: 14px; }

/* forms */
.fields { display: grid; gap: 14px; margin-top: 14px; }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--navy); }
textarea, input[type=text] { font: 400 16px/1.5 var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid rgba(27,42,74,.25); border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical; min-height: 48px; }
textarea { min-height: 92px; }
textarea:focus, input[type=text]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(60,158,231,.2); }
.count { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.count.ok { color: var(--blue-deep); }

/* certificate */
.locked-box { padding: 26px; border-radius: 18px; border: 2px dashed rgba(27,42,74,.25); text-align: center; background: rgba(255,255,255,.55); margin-top: 20px; }
.locked-box ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.locked-box li a { display: inline-block; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: var(--cream-2); color: var(--ink-soft); text-decoration: none; }
.locked-box li.ok a { background: var(--blue-wash); color: var(--blue-deep); }
.cert-controls { display: grid; gap: 14px; max-width: 560px; margin-top: 16px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cert { position: relative; margin-top: 24px; aspect-ratio: 11 / 8.5; max-width: 100%; background: #FFFDFB; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(27,42,74,.45), 0 0 0 1px var(--line); container-type: inline-size; overflow: hidden; }
.cert .frame { position: absolute; inset: 3.2cqw; border: 2px solid var(--terra); }
.cert .frame::after { content: ''; position: absolute; inset: 6px; border: 1px solid var(--sand); }
.cert .corner { position: absolute; width: 12cqw; height: 12cqw; pointer-events: none; overflow: visible; }
.cert .corner path { fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(60,158,231,.9)); }
.cert .corner.tl { left: 4cqw; top: 4cqw; } .cert .corner.tr { right: 4cqw; top: 4cqw; transform: scaleX(-1); }
.cert .corner.bl { left: 4cqw; bottom: 4cqw; transform: scaleY(-1); } .cert .corner.br { right: 4cqw; bottom: 4cqw; transform: scale(-1); }
.cert .in { position: absolute; inset: 6cqw 9cqw; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.cert img { height: 7cqw; width: auto; }
.cert .t1 { font: 700 3.6cqw var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-deep); }
.cert .small { font: 400 max(9px, 1.6cqw) var(--f-body); color: var(--ink-soft); }
.cert .nm { font: 700 5.6cqw/1.1 var(--f-display); color: var(--navy); border-bottom: 1px solid var(--sand); padding: 0 3cqw 1cqw; min-width: 30cqw; min-height: 6.4cqw; overflow-wrap: anywhere; }
.cert .nm.empty { color: rgba(27,42,74,.25); }
.cert .cn { font: 600 3cqw var(--f-display); color: var(--navy); }
.cert .meta { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; font: 400 max(8px, 1.5cqw) var(--f-body); color: var(--ink-soft); gap: 2cqw; }
.cert .sig { width: 22cqw; flex: none; border-top: 1px solid var(--navy); padding-top: .6cqw; text-align: center; color: var(--navy); font-weight: 600; }
.cert .sig small { display: block; font-weight: 400; color: var(--ink-soft); }
.cert .meta > div { flex: 1; } .cert .meta > div:first-child { text-align: left; } .cert .meta > div:last-child { text-align: right; }
.cert .meta > .sig { flex: none; }
.honest { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--line); font-size: 14px; max-width: 46em; }

/* modal, toast, floating xp */
.modal-back { position: fixed; inset: 0; background: rgba(27,42,74,.45); display: grid; place-items: center; z-index: 120; padding: 16px; animation: fade .3s; }
.modal-back[hidden] { display: none; }
.modal { background: var(--paper); border-radius: 22px; padding: 30px 28px; max-width: 440px; width: 100%; text-align: center; display: grid; gap: 12px; justify-items: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5), 0 0 60px -10px rgba(60,158,231,.6); animation: pop-in .5s cubic-bezier(.2,1.2,.3,1); }
.modal .bd svg { width: 110px; height: 122px; }
.modal h2 { font-size: 26px; }
.modal p { color: var(--ink-soft); }
.modal .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.celebrate { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 130; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: all .35s; z-index: 140; max-width: calc(100% - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.xpfloat { position: fixed; z-index: 110; font: 700 18px var(--f-display); color: var(--blue-deep); text-shadow: 0 0 10px rgba(60,158,231,.7); pointer-events: none; animation: floatup 1.4s ease-out forwards; }
@keyframes floatup { from { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-46px); } }

.scrim { display: none; }
@media (max-width: 1179px) { .app.has-rail { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "top top" "side main"; } .app.has-rail .rail { display: none; } }
@media (max-width: 899px) {
  .app, .app.has-rail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .iconbtn { display: grid; }
  .cname, .xpchip .bar { display: none; }
  .side { position: fixed; top: calc(var(--topH) + env(safe-area-inset-top, 0px)); bottom: 0; left: 0; width: min(320px, 86vw); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 10px 0 40px -20px rgba(0,0,0,.4); }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(27,42,74,.35); z-index: 15; }
  .screen { padding: 22px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
  .map { grid-template-columns: 1fr; gap: 4px; }
  .map::before, .map .fillline { left: 21px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto; }
  .map .fillline { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .map li { text-align: left; } .map a { flex-direction: row; font-size: 15px; padding: 4px 0; }
}
@media (max-width: 480px) { .brand img { height: 28px; } .top { gap: 8px; } .topstats { gap: 8px; } .xpchip .lv { display: none; } .tab { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  main { scroll-behavior: auto; }
  .circuits .t.draw { stroke-dashoffset: 0; } .circuits .pulse { display: none; }
}

.modal textarea, .modal input[type=file] { text-align: left; font-size: 13px; }
.modal { max-height: 92vh; overflow-y: auto; }

.nextpill{margin-left:auto;font:700 10px var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:#fff;background:var(--terra);border-radius:99px;padding:3px 8px;flex:none}
.numbig{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font:700 28px var(--f-display);color:var(--navy);background:var(--paper);border:2px solid rgba(27,42,74,.25);flex:none;transition:all .6s}
.numbig.done{border-color:var(--blue);color:var(--bd,#1F6FB5);background:var(--blue-wash);box-shadow:var(--glow)}
.check{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.check li a{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;color:var(--ink);text-decoration:none;padding:6px 8px;border-radius:8px}
.check li a::before{content:'';width:16px;height:16px;border-radius:50%;border:2px solid rgba(27,42,74,.3);flex:none}
.check li.ok a::before{background:var(--blue);border-color:var(--blue);box-shadow:var(--glow)}
.check li a:hover{background:var(--cream-2)}
.xpchip .n{font-weight:600}

/* ===== premium layer ===== */
:root { --edge: rgba(139,58,42,.12); --lift: 0 1px 0 #fff inset, 0 22px 44px -28px rgba(27,42,74,.5), 0 0 0 1px var(--edge); }
body { background: var(--cream); }
main { background-color: var(--cream);
  background-image: radial-gradient(900px 520px at 88% -8%, rgba(60,158,231,.16), transparent 62%), radial-gradient(760px 560px at -8% 28%, rgba(212,149,106,.22), transparent 60%), radial-gradient(rgba(60,158,231,.16) 1px, transparent 1.5px);
  background-size: auto, auto, 28px 28px; background-attachment: local; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main:focus { outline: none; }
h1, h2 { letter-spacing: -.015em; }
.top { background: rgba(255,252,250,.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 30px -24px rgba(27,42,74,.5); }
.xpchip .n { background: var(--blue-wash); color: var(--blue-deep); border-radius: 99px; padding: 6px 12px; font-size: 13px; }

/* sidebar */
.side { background: linear-gradient(180deg, #FFFCFA 0%, #FFF7F2 100%); }
.sidecard { margin: 0 4px 10px; padding: 16px; border-radius: 18px; background: linear-gradient(145deg, #1B2A4A, #2A4170); color: #FDF5F0; display: grid; gap: 8px; box-shadow: 0 18px 34px -22px rgba(27,42,74,.8), 0 0 40px -14px rgba(60,158,231,.6); position: relative; overflow: hidden; }
.sidecard::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(60,158,231,.55); box-shadow: 0 0 24px rgba(60,158,231,.7), inset 0 0 24px rgba(60,158,231,.4); }
.sc-t { font: 700 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #8FD0FF; }
.sc-n { font-size: 14px; } .sc-n b { font: 700 28px var(--f-display); color: #fff; margin-right: 4px; }
.sidecard .bigbar { background: rgba(255,255,255,.18); height: 8px; }
.sy { border-radius: 14px; padding: 9px 12px; }
.sy .ic { width: 32px; height: 32px; font-size: 13px; background: #fff; box-shadow: 0 2px 6px -2px rgba(27,42,74,.3); }
.sy[aria-current="page"] { background: #fff; box-shadow: var(--lift), inset 3px 0 0 var(--blue); }
.sy.done .ic { background: linear-gradient(135deg, #52B0F5, #1F6FB5); }

/* hero strip */
.hs { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: clamp(22px, 3.4vw, 38px); border-radius: 28px; background: linear-gradient(130deg, #FFFFFF 0%, #FFF7F1 50%, #EAF5FE 100%); box-shadow: var(--lift); margin-bottom: 4px; }
.hs .bgc { position: absolute; right: 0; top: 0; width: 70%; height: 100%; pointer-events: none; opacity: .9; }
.hs > *:not(svg) { position: relative; }
.hs .meta { flex: 1; min-width: 0; }
.hs h1 { margin-top: 12px; font-size: clamp(30px, 4.4vw, 48px); }
.hs-sub { font-family: var(--f-read); font-size: 19px; margin-top: 10px; color: var(--ink-soft); max-width: 30em; }
.pill { display: inline-block; padding: 6px 13px; border-radius: 99px; background: rgba(196,86,58,.1); color: var(--terra-deep); font: 700 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.hs .numbig { width: 96px; height: 96px; font-size: 42px; border: 0; background: linear-gradient(150deg, #fff, #EAF5FE); box-shadow: 0 0 0 2px rgba(60,158,231,.55), 0 0 36px rgba(60,158,231,.55), inset 0 -8px 16px rgba(60,158,231,.2); color: var(--blue-deep); }
.hs .numbig .ico { width: 44px; height: 44px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chips { margin-top: 14px; }
.chip { background: #fff; box-shadow: 0 0 0 1px var(--edge); padding: 6px 12px; }
.chip.blue { background: var(--blue-wash); box-shadow: 0 0 0 1px rgba(60,158,231,.4); }
@media (max-width: 560px) { .hs { flex-direction: column; align-items: flex-start; gap: 14px; } .hs .numbig { width: 72px; height: 72px; font-size: 32px; } .hs .bgc { width: 100%; opacity: .5; } }

/* stepper tabs + stage card */
.tabs { margin-top: 20px; gap: 8px; padding: 8px; background: rgba(255,255,255,.72); border-radius: 22px; box-shadow: var(--lift); backdrop-filter: blur(8px); }
.tab { border: 0; background: transparent; border-radius: 15px; padding: 10px 14px 10px 10px; transition: background .25s, box-shadow .25s, transform .2s; }
.tab:hover { background: rgba(60,158,231,.08); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: linear-gradient(135deg, #fff, #EAF5FE); box-shadow: 0 8px 20px -10px rgba(31,111,181,.7), 0 0 0 1.5px rgba(60,158,231,.65); }
.tab .n { width: 30px; height: 30px; background: #fff; }
.tab[aria-selected="true"] .n { border-color: var(--blue); color: var(--blue-deep); }
.tab.ok .n { background: linear-gradient(135deg, #52B0F5, #1F6FB5); color: #fff; }
.stage { margin-top: 16px; padding: clamp(20px, 3vw, 34px); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--lift); backdrop-filter: blur(6px); }
.stage h2 { font-size: clamp(24px, 3vw, 30px); }
.stage > * { animation: rise .55s both cubic-bezier(.2,.8,.2,1); }
.stage > *:nth-child(2) { animation-delay: .05s; } .stage > *:nth-child(3) { animation-delay: .1s; } .stage > *:nth-child(4) { animation-delay: .15s; } .stage > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* tiles, flow, quote */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.tile { padding: 20px; border-radius: 20px; background: linear-gradient(165deg, #fff 0%, #F3F9FE 100%); box-shadow: 0 0 0 1px rgba(60,158,231,.22), 0 18px 30px -24px rgba(31,111,181,.55); display: grid; gap: 8px; align-content: start; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px rgba(60,158,231,.6), 0 24px 36px -22px rgba(31,111,181,.7), 0 0 30px -8px rgba(60,158,231,.5); }
.tile b { font: 700 17px var(--f-display); color: var(--navy); }
.tile p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.tico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--blue-deep); background: linear-gradient(145deg, #fff, #DCEEFC); box-shadow: 0 0 0 1px rgba(60,158,231,.35), 0 0 22px -4px rgba(60,158,231,.65); margin-bottom: 4px; }
.tico .ico { width: 26px; height: 26px; }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flow span { padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(27,42,74,.18); font: 700 14px var(--f-display); color: var(--navy); }
.flow span.end { background: linear-gradient(135deg, #52B0F5, #1F6FB5); color: #fff; box-shadow: 0 0 22px -2px rgba(60,158,231,.8); }
.flow i { width: 28px; height: 3px; border-radius: 3px; background: var(--blue); box-shadow: var(--glow); flex: none; }
.why-text { border: 0; border-radius: 18px; padding: 22px 24px; background: linear-gradient(135deg, #FFF8F3, #fff); box-shadow: 0 0 0 1px var(--edge); position: relative; }
.why-text::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--blue), var(--sand)); box-shadow: var(--glow); }
.why-text p { font-size: 20px; line-height: 1.55; }

/* buttons */
.btn { border-radius: 14px; }
.btn.primary { background: linear-gradient(135deg, #D2603F, #B04628); box-shadow: 0 10px 24px -8px rgba(196,86,58,.7), 0 0 0 1px rgba(255,255,255,.2) inset; }
.btn.primary:hover { background: linear-gradient(135deg, #DA6845, #9E3E22); box-shadow: 0 14px 28px -8px rgba(196,86,58,.8); }
.stepnav .btn.primary::after { content: '\2192'; font-size: 18px; transition: transform .2s; }
.stepnav .btn.primary:hover::after { transform: translateX(4px); }
.btn.ghost { background: rgba(255,255,255,.9); }

/* toggle rows */
.checkrow { align-items: center; padding: 16px 18px; border-radius: 16px; background: #fff; border: 0; box-shadow: 0 0 0 1.5px rgba(27,42,74,.16); font-weight: 600; transition: box-shadow .25s, background .25s, transform .2s; margin-top: 16px; }
.checkrow:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px rgba(60,158,231,.6); }
.checkrow input { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; margin: 0; border-radius: 10px; border: 2px solid rgba(27,42,74,.35); background: #fff; display: grid; place-items: center; transition: all .25s; flex: none; }
.checkrow input::after { content: ''; width: 7px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0) translate(-1px, -1px); transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.checkrow input:checked { background: linear-gradient(135deg, #52B0F5, #1F6FB5); border-color: #1F6FB5; box-shadow: var(--glow); }
.checkrow input:checked::after { transform: rotate(45deg) scale(1) translate(-1px, -1px); }
.checkrow:has(input:checked) { background: linear-gradient(135deg, #F2F9FE, #fff); box-shadow: 0 0 0 1.5px rgba(60,158,231,.7), 0 0 28px -8px rgba(60,158,231,.6); }
.checkrow:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--blue); }
.onerule { border: 0; box-shadow: 0 0 0 1px rgba(60,158,231,.4), 0 0 34px -10px rgba(60,158,231,.6); border-radius: 20px; }

/* skill cards with circuit glyphs */
.cards { gap: 14px; }
.card { border: 0; border-radius: 20px; padding: 18px; gap: 10px; min-height: 150px; background: linear-gradient(165deg, #fff, #FFF8F3); box-shadow: 0 0 0 1px var(--edge), 0 16px 28px -24px rgba(27,42,74,.6); }
.card:hover { box-shadow: 0 0 0 1.5px rgba(60,158,231,.7), 0 22px 34px -22px rgba(31,111,181,.7); }
.card.on { background: linear-gradient(165deg, #F2F9FE, #fff); box-shadow: 0 0 0 2px var(--blue), 0 0 34px -6px rgba(60,158,231,.7); }
.gwrap { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #fff, #E4F2FD); box-shadow: 0 0 0 1px rgba(60,158,231,.28); display: grid; place-items: center; transition: box-shadow .3s; }
.card.on .gwrap, .card:hover .gwrap { box-shadow: 0 0 0 1.5px var(--blue), 0 0 20px rgba(60,158,231,.7); }
.gly { width: 34px; height: 34px; } .gly path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; } .gly circle { fill: #fff; stroke: var(--blue); stroke-width: 1.8; }
.card.on .gly path { opacity: 1; filter: drop-shadow(0 0 3px rgba(60,158,231,.9)); }
.card .trace { display: none; }
.card .pick { font-size: 17px; padding-right: 0; }
.fields textarea, input[type=text] { border: 0; box-shadow: 0 0 0 1.5px rgba(27,42,74,.2); border-radius: 14px; background: #fff; }
textarea:focus, input[type=text]:focus { box-shadow: 0 0 0 2px var(--blue), 0 0 24px -4px rgba(60,158,231,.6); }

/* rail */
.rail { background: linear-gradient(180deg, #FFFCFA, #FFF7F2); }
.next-card { background: linear-gradient(145deg, #1B2A4A, #2A4170); border-radius: 20px; box-shadow: 0 20px 34px -22px rgba(27,42,74,.9), 0 0 40px -14px rgba(60,158,231,.6); padding: 18px; }
.bigbar { height: 10px; } 
.card-s { border: 0; border-radius: 20px; box-shadow: var(--lift); }
.card-s.glow { box-shadow: 0 0 0 1.5px rgba(60,158,231,.6), 0 0 34px -10px rgba(60,158,231,.6); }
.panel { border: 0; border-radius: 24px; box-shadow: var(--lift); }
.banner { border: 0; box-shadow: var(--lift); border-radius: 28px; }
.cert { border-radius: 10px; }
.onerule { grid-template-columns: 1fr; gap: 8px; padding: 22px 26px; }
.onerule strong { font-size: clamp(22px, 2.6vw, 28px); }
.onerule p { font-family: var(--f-read); font-size: 18px; }

/* install walkthrough */
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(27,42,74,.16); gap: 4px; }
.seg button { border: 0; background: transparent; padding: 9px 16px; border-radius: 11px; font: 600 14px var(--f-body); color: var(--ink-soft); cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: linear-gradient(135deg, #52B0F5, #1F6FB5); color: #fff; box-shadow: var(--glow); }
.inst { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 14px; }
@media (max-width: 760px) { .inst { grid-template-columns: 1fr; } }
.tipbox { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #EAF5FE, #fff); box-shadow: 0 0 0 1px rgba(60,158,231,.35); font-size: 15px; color: var(--ink); }
.tipbox b { color: var(--blue-deep); text-transform: uppercase; font-size: 11px; letter-spacing: .14em; margin-right: 6px; }
.mock { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 40px -26px rgba(27,42,74,.6), 0 0 0 1px var(--edge); }
.mock .bar { height: 36px; background: #F3EDE8; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock .d { width: 10px; height: 10px; border-radius: 50%; background: #D9CFC8; }
.mock .url { margin-left: 10px; font: 600 11px var(--f-body); color: var(--ink-soft); background: #fff; border-radius: 99px; padding: 3px 12px; }
.mock .stg { position: relative; height: 240px; padding: 22px; background: var(--cream); overflow: hidden; }
.ln { display: block; height: 9px; border-radius: 6px; background: rgba(27,42,74,.16); margin-top: 9px; }
.ln.hot { background: rgba(196,86,58,.35); margin-top: 0; }
.w100 { width: 100%; } .w88 { width: 88%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; }
.sc-card { position: relative; background: #fff; border-radius: 14px; padding: 22px 18px 18px; box-shadow: 0 0 0 1px var(--edge); margin-top: 18px; }
.sc-btn { position: absolute; font: 700 12px var(--f-body); padding: 8px 14px; border-radius: 10px; background: var(--terra); color: #fff; }
.sc-copy, .sc-save { right: 14px; top: -16px; min-width: 118px; text-align: center; height: 34px; }
.sc-btn b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; }
.sc-btn b.b { opacity: 0; }
.sc-copy { animation: btnglow 5s infinite; } .sc-copy .a { animation: swapA 5s infinite; } .sc-copy .b { animation: swapB 5s infinite; background: #3BAA5C; border-radius: 10px; }
.sc-save { animation: btnglow 5s infinite; } .sc-save .a { animation: swapA 5s infinite; } .sc-save .b { animation: swapB 5s infinite; background: #3BAA5C; border-radius: 10px; }
@keyframes swapA { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes swapB { 0%, 48% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes btnglow { 30%, 48% { box-shadow: 0 0 0 5px rgba(60,158,231,.35), 0 0 22px rgba(60,158,231,.8); } }
.cur { position: absolute; width: 26px; height: 26px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); left: 40%; top: 70%; animation: curmove 5s infinite ease-in-out; z-index: 3; }
@keyframes curmove { 0% { transform: translate(0, 0); } 35%, 55% { transform: translate(var(--cx, 150px), var(--cy, -120px)); } 100% { transform: translate(0, 0); } }
.scn-copy .cur, .scn-save .cur { --cx: 150px; --cy: -120px; }
.sc-set { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--edge); margin-top: 20px; }
.sc-row { display: flex; justify-content: space-between; align-items: center; padding: 18px; font: 600 14px var(--f-body); color: var(--navy); }
.sc-row.dim { border-top: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.sw { width: 50px; height: 28px; border-radius: 28px; background: #CFC6BF; position: relative; flex: none; }
.sw i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sc-row:not(.dim) .sw { animation: swon 5s infinite; } .sc-row:not(.dim) .sw i { animation: knob 5s infinite; }
@keyframes swon { 0%, 40% { background: #CFC6BF; box-shadow: none; } 50%, 100% { background: #3C9EE7; box-shadow: var(--glow); } }
@keyframes knob { 0%, 40% { transform: translateX(0); } 50%, 100% { transform: translateX(22px); } }
.scn-toggle .cur { --cx: 180px; --cy: -112px; }
.sc-chat { position: absolute; inset: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.sc-input { background: #fff; border-radius: 14px; padding: 14px 16px 18px; box-shadow: 0 0 0 1px var(--edge); margin-right: 70px; }
.sc-input .ln { animation: grow 5s infinite; transform-origin: left; } .sc-input .ln:nth-child(2) { animation-delay: .25s; } .sc-input .ln:nth-child(3) { animation-delay: .5s; }
@keyframes grow { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
.sc-send { right: 0; bottom: 12px; position: absolute; animation: btnglow 5s infinite; }
.scn-paste .cur { --cx: 190px; --cy: -26px; }
.bub { max-width: 78%; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--edge); display: grid; gap: 0; animation: bubin 5s infinite both; }
.bub.r { align-self: flex-end; background: var(--blue-wash); box-shadow: 0 0 0 1px rgba(60,158,231,.4); animation-delay: .9s; } .bub.l { width: 78%; }
@keyframes bubin { 0%, 8% { opacity: 0; transform: translateY(10px); } 22%, 100% { opacity: 1; transform: none; } }
.scn-answer .cur, .scn-chat .cur { display: none; }
.sk-h { display: flex; align-items: center; gap: 10px; } .sk-h .ln { margin-top: 0; width: 55%; }
.sk-i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, #fff, #DCEEFC); box-shadow: 0 0 0 1px rgba(60,158,231,.5), 0 0 14px rgba(60,158,231,.6); }
.chip.fire { justify-self: start; margin-bottom: 8px; background: var(--blue-wash); color: var(--blue-deep); box-shadow: 0 0 0 1px rgba(60,158,231,.5), 0 0 16px rgba(60,158,231,.6); }
.scn-chat .bub.l { animation-delay: 1.4s; }

.hs.compact { padding: 16px 24px; gap: 18px; border-radius: 22px; }
.hs.compact .numbig { width: 58px; height: 58px; } .hs.compact .numbig .ico { width: 28px; height: 28px; }
.hs.compact h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; } .hs.compact .hs-sub { display: none; }
.tabs.many { flex-wrap: nowrap; } .tabs.many .tab { flex: 1 1 0; justify-content: center; padding: 8px; min-width: 0; }
.tabs.many .tab span:last-child { display: none; } .tabs.many .tab[aria-selected="true"] { flex: 3 1 0; justify-content: flex-start; padding-left: 10px; }
.tabs.many .tab[aria-selected="true"] span:last-child { display: inline; }
@media (max-width: 480px) { .tabs.many .tab { flex-basis: 0 !important; } }

.chipbtn { border: 0; cursor: pointer; font: 600 12px var(--f-body); padding: 7px 13px; border-radius: 99px; background: #fff; color: var(--blue-deep); box-shadow: 0 0 0 1px rgba(60,158,231,.5); min-height: 32px; transition: box-shadow .2s, transform .2s; }
.chipbtn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px var(--blue), 0 0 18px -4px rgba(60,158,231,.7); }
.chipbtn.on { background: var(--blue-wash); }
.markrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mk { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 11px 16px 11px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px rgba(27,42,74,.18); font: 600 14px var(--f-body); color: var(--navy); min-height: 44px; transition: all .25s; }
.mk i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(27,42,74,.35); display: inline-block; position: relative; transition: all .25s; flex: none; }
.mk:hover { box-shadow: 0 0 0 1.5px var(--blue); }
.mk.on { background: linear-gradient(135deg, #F2F9FE, #fff); box-shadow: 0 0 0 1.5px rgba(60,158,231,.75), 0 0 22px -8px rgba(60,158,231,.7); }
.mk.on i { background: linear-gradient(135deg, #52B0F5, #1F6FB5); border-color: #1F6FB5; box-shadow: var(--glow); }
.mk.on i::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* certificate v2 */
.stepn { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #52B0F5, #1F6FB5); color: #fff; font: 700 13px var(--f-display); margin-right: 8px; box-shadow: var(--glow); }
.cert-controls { max-width: none; padding: 22px 24px; background: rgba(255,255,255,.86); border-radius: 22px; box-shadow: var(--lift); }
.cert-controls input { max-width: 520px; font-size: 20px; padding: 14px 16px; }
.cert .band { position: absolute; inset: 3.2cqw; border: 0; background: repeating-linear-gradient(135deg, rgba(212,149,106,.38) 0 1px, transparent 1px 4px); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 1.35cqw; pointer-events: none; }
.cert .frame { inset: 3.2cqw; } .cert .frame::after { inset: 1.35cqw; }
.cert .in { inset: 5.6cqw 9cqw 4.8cqw; justify-content: flex-start; gap: .9cqw; }
.cert .in img { height: 6cqw; margin-bottom: .6cqw; }
.cert .t1 { font-size: 3.5cqw; margin-bottom: .8cqw; }
.cert .pres { display: flex; align-items: center; gap: 1.6cqw; width: 62%; font: 600 max(8px, 1.35cqw) var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.cert .pres i { flex: 1; height: 1px; background: var(--sand); }
.cert .nm { border: 0; padding: 0 2cqw; font-size: 5.8cqw; min-height: 7cqw; line-height: 1.15; }
.cert .rule { width: 50%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(212,149,106,0), var(--blue), rgba(212,149,106,0)); box-shadow: 0 0 10px rgba(60,158,231,.8); margin-bottom: .4cqw; }
.cert .small { font-size: max(9px, 1.7cqw); }
.cert .cn { font-size: 3.2cqw; }
.cert .learn { max-width: 72%; font: 400 max(8px, 1.45cqw)/1.5 var(--f-body); color: var(--ink-soft); }
.cert .foot3 { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2cqw; }
.cert .rec { text-align: left; display: grid; gap: .1cqw; }
.cert .rec span { font: 600 max(7px, 1cqw) var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.cert .rec b { font: 600 max(9px, 1.7cqw) var(--f-body); color: var(--navy); margin-bottom: .7cqw; }
.cert .seal { width: 12.5cqw; height: 12.5cqw; filter: drop-shadow(0 0 5px rgba(60,158,231,.7)); }
.cert .seal .r1 { fill: #fff; stroke: var(--blue); stroke-width: 1.6; } .cert .seal .r2 { fill: none; stroke: var(--blue); stroke-width: .8; }
.cert .seal text { font: 700 6.2px var(--f-body); fill: var(--navy); letter-spacing: .5px; } .cert .seal .st { fill: var(--blue); }
.cert .sig { justify-self: end; width: 22cqw; border: 0; padding: 0; display: grid; justify-items: center; gap: .1cqw; }
.cert .sig i { display: block; width: 100%; height: 1px; background: var(--navy); margin-bottom: .6cqw; }
.cert .sig b { font: 700 max(10px, 1.9cqw) var(--f-display); color: var(--navy); } .cert .sig small { font-size: max(8px, 1.35cqw); }
.cert .legal { margin-top: 1.2cqw; font: 400 max(7px, 1.05cqw) var(--f-body); letter-spacing: .06em; color: var(--ink-soft); }

/* ===== review round 1 ===== */
.xpchip:empty { display: none; }
.btn.big { min-height: 54px; padding: 16px 26px; font-size: 16px; }
.btn.textlink { background: none; box-shadow: none; border: 0; color: var(--blue-deep); padding: 10px 4px; min-height: 44px; font-weight: 600; }
.btn.textlink:hover { text-decoration: underline; transform: none; box-shadow: none; }
.btn.textlink.light { color: #8FD0FF; padding-left: 0; justify-content: flex-start; }
.btn .ico { width: 18px; height: 18px; }
.stepnav { align-items: center; }

/* home strip */
.strip { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; padding: 18px 24px; border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: var(--lift); }
.strip .s-num { display: flex; align-items: baseline; gap: 8px; }
.strip .s-num b { font: 700 40px var(--f-display); color: var(--navy); line-height: 1; }
.strip .s-num span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.strip .s-bar p { margin-top: 8px; font-size: 15px; color: var(--ink); }
.strip .s-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); }
.mk.real { cursor: default; } .mk.real:hover { box-shadow: 0 0 0 1.5px rgba(60,158,231,.75); }

/* rail */
.steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steplist button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font: 500 14px var(--f-body); color: var(--ink); min-height: 40px; }
.steplist button::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(27,42,74,.3); flex: none; }
.steplist li.ok button::before { background: linear-gradient(135deg, #52B0F5, #1F6FB5); border-color: #1F6FB5; box-shadow: var(--glow); }
.steplist li.now button { background: #fff; box-shadow: 0 0 0 1px rgba(60,158,231,.5); font-weight: 600; }
.steplist button:hover { background: var(--cream-2); }
.steplist button:focus-visible { outline: 3px solid var(--blue); }
.pickchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pickchips a { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--f-body); color: var(--blue-deep); text-decoration: none; background: #fff; border-radius: 99px; padding: 6px 10px; box-shadow: 0 0 0 1px rgba(60,158,231,.45); }
.pickchips a:hover { box-shadow: 0 0 0 1.5px var(--blue), 0 0 16px -4px rgba(60,158,231,.7); }
.pickchips.big a { font-size: 14px; padding: 8px 14px 8px 8px; border-radius: 14px; }
.pickchips .gw { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(145deg, #fff, #E4F2FD); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(60,158,231,.3); }
.pickchips .gw .gly { width: 22px; height: 22px; }
.picked { margin-top: 14px; display: grid; gap: 8px; }
.next-card .btn.textlink { min-height: 36px; padding: 4px 0; }

/* module complete card */
.donecard { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 0 6px; }
.donecard .picked { justify-items: center; }
.donecheck svg { width: 86px; height: 86px; filter: drop-shadow(0 0 14px rgba(60,158,231,.75)); }
.donecheck circle { fill: #fff; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 150; stroke-dashoffset: 150; animation: dash 0.7s ease-out forwards; }
.donecheck path { fill: none; stroke: var(--blue-deep); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash 0.45s 0.55s ease-out forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.donecard h2 { font-size: clamp(24px, 3vw, 32px); }
.does { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; margin-top: -2px; }

/* compact module header after the intro tab */
.hs { transition: padding .3s; }
.hs.compact .chips { margin-top: 8px; }

/* phone */
@media (max-width: 600px) {
  .banner .circuits { display: none; }
  .hs .bgc { opacity: .3; }
  .tabs, .tabs.many { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab, .tabs.many .tab { flex: 0 0 auto !important; }
  .stepnav { position: sticky; bottom: 0; z-index: 5; margin: 18px -20px -20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255,252,250,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 0 0 26px 26px; }
  .stepnav .btn.primary { flex: 1; }
  .strip { grid-template-columns: 1fr; }
  .chipbtn { min-height: 44px; }
}

/* ===== quest map band ===== */
.quest { position: sticky; top: 0; z-index: 12; margin: 0; padding: 10px max(28px, env(safe-area-inset-right, 0px)) 6px max(28px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, rgba(255,252,250,.96), rgba(253,245,240,.9)); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--line); box-shadow: 0 12px 26px -24px rgba(27,42,74,.6); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.quest::-webkit-scrollbar { display: none; }
.qhead { display: flex; align-items: baseline; gap: 10px; max-width: 1100px; margin: 0 auto; }
.qt { font: 700 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-deep); }
.qc { font: 600 12px var(--f-body); color: var(--blue-deep); }
.qwrap { position: relative; height: 104px; max-width: 1100px; min-width: 700px; margin: 0 auto; }
.qroad { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qbase { fill: none; stroke: rgba(27,42,74,.16); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 3; }
.qlit { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px rgba(60,158,231,.9)) drop-shadow(0 0 10px rgba(60,158,231,.5)); opacity: 0; }
.qlit.on { opacity: 1; stroke-dashoffset: 0; }
.qlit.on.grow { animation: qgrow 1.1s cubic-bezier(.3,.8,.3,1) both; }
@keyframes qgrow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.qspark { fill: none; stroke: #CFEBFF; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 96; opacity: 0; }
.qspark.on { opacity: 1; animation: qflow 2.6s linear infinite; }
@keyframes qflow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.qnode { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 4px; z-index: 2; }
.qnode .qdot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--f-display); color: var(--navy); background: #fff; box-shadow: 0 0 0 2px rgba(27,42,74,.22), 0 6px 14px -8px rgba(27,42,74,.5); transition: transform .25s, box-shadow .3s, background .3s; }
.qnode .ql { position: absolute; top: 46px; white-space: nowrap; font: 600 11.5px var(--f-body); color: var(--ink-soft); }
.qnode:hover .qdot { transform: scale(1.1); box-shadow: 0 0 0 2px var(--blue), 0 0 18px rgba(60,158,231,.6); }
.qnode:focus-visible { outline: none; } .qnode:focus-visible .qdot { box-shadow: 0 0 0 3px var(--blue), 0 0 0 6px rgba(60,158,231,.25); }
.qnode.done .qdot { background: linear-gradient(135deg, #52B0F5, #1F6FB5); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(60,158,231,.85); font-size: 0; }
.qnode.done .qdot::after { content: ''; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: translate(0, -2px) rotate(45deg); }
.qnode.done .ql { color: var(--blue-deep); }
.qnode.next .qdot { box-shadow: 0 0 0 2px var(--terra), 0 0 0 7px rgba(196,86,58,.14); animation: qpulse 2s ease-in-out infinite; }
@keyframes qpulse { 50% { box-shadow: 0 0 0 2px var(--terra), 0 0 0 11px rgba(196,86,58,.06); } }
.qnode.here .qdot { transform: scale(1.12); box-shadow: 0 0 0 3px var(--blue), 0 0 22px rgba(60,158,231,.75); }
.qnode.here .ql { color: var(--navy); font-weight: 700; }
.qnode.locked .qdot { background: repeating-linear-gradient(135deg, #fff 0 4px, #F6EEE8 4px 8px); color: rgba(27,42,74,.45); }
.qnode.locked.done .qdot, .qnode[data-k="certificate"].done .qdot { background: linear-gradient(135deg, #D2603F, #8B3A2A); box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(196,86,58,.7); }
.qav { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, -100%); margin-top: -18px; transition: left .9s cubic-bezier(.45,0,.2,1), top .9s cubic-bezier(.45,0,.2,1); }
.qav .pin { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #7CC4FA, #1F6FB5); box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(60,158,231,.9); animation: bob 1.8s ease-in-out infinite; position: relative; }
.qav .pin::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
@keyframes bob { 50% { translate: 0 -4px; } }
@media (max-width: 899px) { .quest { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 600px) { .qwrap { height: 96px; } .qnode .qdot { width: 36px; height: 36px; } .qnode .ql { top: 42px; font-size: 11px; } }

/* ===== skills finder ===== */
.topbtn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 9px 14px; min-height: 40px; border-radius: 99px; background: #fff; color: var(--navy); font: 600 13px var(--f-body); box-shadow: 0 0 0 1px rgba(27,42,74,.16); transition: box-shadow .2s; }
.topbtn:hover { box-shadow: 0 0 0 1.5px var(--blue), 0 0 18px -4px rgba(60,158,231,.6); }
@media (max-width: 600px) { .topbtn span { display: none; } .topbtn { padding: 9px 11px; } }
button.sy { font-family: inherit; }
.sheet-back { position: fixed; inset: 0; z-index: 120; background: rgba(27,42,74,.38); display: flex; justify-content: flex-end; animation: fade .25s; }
.sheet-back[hidden] { display: none; }
.sheet { width: min(560px, 100%); height: 100%; overflow-y: auto; background: linear-gradient(180deg, #FFFCFA, #FFF6F0); box-shadow: -30px 0 60px -30px rgba(27,42,74,.6); padding: calc(20px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) 40px 22px; display: grid; align-content: start; gap: 12px; animation: slidein .35s cubic-bezier(.2,.8,.2,1); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.sh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sh-head h2 { font-size: 30px; margin-top: 8px; }
.sh-x { display: grid !important; }
#skill-search { font-size: 17px; padding: 13px 16px; }
.sh-group { margin-top: 10px; display: grid; gap: 8px; }
.sh-gh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.sh-gh h3 { font-size: 17px; } .sh-gh .btn.textlink { margin-left: auto; min-height: 32px; padding: 4px 0; font-size: 13px; }
.sh-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--edge); }
.sh-row .gw { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #fff, #E4F2FD); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(60,158,231,.3); }
.sh-row .gw .gly { width: 28px; height: 28px; }
.sh-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.sh-name b { font: 600 15px var(--f-display); color: var(--navy); }
.sh-name .does { flex-basis: 100%; margin: 0; }
.sheet-open { overflow: hidden; }
.qhead { position: sticky; left: 0; }
@media (max-width: 899px), (max-height: 700px) { .quest { position: relative; } }

/* ===== world map (replaces the flat quest band) ===== */
.quest { position: sticky; top: 0; z-index: 25; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 899px), (max-height: 700px) { .quest { position: sticky; } }
.qbar { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; padding: 9px max(28px, env(safe-area-inset-right, 0px)) 9px max(28px, env(safe-area-inset-left, 0px)); min-height: 48px; background: rgba(255,252,250,.9); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px -22px rgba(27,42,74,.6); }
.qbar:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.qbar .qt { font: 700 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-deep); flex: none; }
.qmini { width: min(240px, 26vw); height: 20px; flex: none; overflow: visible; }
.qmini .mb { stroke: rgba(27,42,74,.16); stroke-width: 3; stroke-linecap: round; }
.qmini .ml { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(60,158,231,.9)); transition: all .8s; }
.qmini .md { fill: #fff; stroke: rgba(27,42,74,.3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.qmini .md.on { fill: var(--blue); stroke: var(--blue); }
.qmini .mpin { fill: none; stroke: var(--blue); stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(60,158,231,.9)); transition: cx .8s cubic-bezier(.45,0,.2,1); animation: mpulse 1.8s ease-in-out infinite; }
@keyframes mpulse { 50% { stroke-opacity: .35; } }
.qwhere { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qwhere b { color: var(--blue-deep); }
.qhint { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--f-body); color: var(--blue-deep); flex: none; }
.qhint svg { transition: transform .3s; } .quest.open .qhint svg { transform: rotate(180deg); }
.qhint .tp { display: none; }
@media (hover: none) { .qhint .hv { display: none; } .qhint .tp { display: inline; } }
.qmap { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); border-radius: 24px; padding: 14px 16px 12px; background: linear-gradient(160deg, #FFFDFB 0%, #FFF4EC 55%, #EEF6FD 100%); box-shadow: 0 34px 70px -30px rgba(27,42,74,.6), 0 0 0 1px var(--edge), 0 0 60px -20px rgba(60,158,231,.5); opacity: 0; transform: translateY(-14px) scale(.97); transform-origin: 50% 0; pointer-events: none; visibility: hidden; transition: opacity .3s, transform .45s cubic-bezier(.2,1.1,.3,1), visibility 0s .45s; overflow-x: auto; }
.quest.open .qmap { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s, transform .45s cubic-bezier(.2,1.1,.3,1), visibility 0s; }
.world { display: block; width: 100%; min-width: 760px; max-width: 1100px; height: auto; margin: 0 auto; overflow: visible; }
.contour { fill: none; stroke: rgba(139,58,42,.08); stroke-width: 1.2; }
.zone { fill: rgba(212,149,106,.12); stroke: rgba(212,149,106,.35); stroke-width: 1.4; transition: fill .8s, stroke .8s; }
.zone.fogged { fill: url(#fog); stroke: rgba(139,58,42,.16); stroke-dasharray: 4 5; }
.zone.done { fill: rgba(60,158,231,.11); stroke: rgba(60,158,231,.55); filter: drop-shadow(0 0 8px rgba(60,158,231,.35)); }
.zone.here { fill: rgba(196,86,58,.10); stroke: rgba(196,86,58,.5); }
.rshadow { fill: none; stroke: rgba(45,24,16,.07); stroke-width: 16; stroke-linecap: round; transform: translate(0, 3px); }
.rbase { fill: none; stroke: #F1E3D8; stroke-width: 10; stroke-linecap: round; }
.rlit { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; filter: url(#wglow); }
.rspark { fill: none; stroke: #E4F4FF; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 26; animation: spark 1.4s linear infinite; }
@keyframes spark { to { stroke-dashoffset: -29; } }
.cloud { fill: rgba(255,255,255,.8); }
.cloud.c0 { animation: drift 26s ease-in-out infinite alternate; } .cloud.c1 { animation: drift 34s ease-in-out infinite alternate-reverse; } .cloud.c2 { animation: drift 22s ease-in-out infinite alternate; } .cloud.c3 { animation: drift 30s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translateX(60px); } }
.wnode { cursor: pointer; outline: none; }
.wnode .halo { fill: rgba(60,158,231,0); transition: fill .3s; }
.wnode:hover .halo, .wnode:focus-visible .halo { fill: rgba(60,158,231,.18); }
.wnode:focus-visible .disc { stroke: var(--blue); stroke-width: 4; }
.wnode .disc { fill: #fff; stroke: rgba(27,42,74,.35); stroke-width: 2.5; transition: all .4s; }
.wnode .num { font: 700 15px 'Roboto Slab', Georgia, serif; fill: var(--navy); }
.wnode .tick { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.wnode .lbl { font: 600 13px Inter, sans-serif; fill: var(--ink); paint-order: stroke; stroke: #FFF8F2; stroke-width: 5px; stroke-linejoin: round; }
.wnode .flag { opacity: 0; transform-box: fill-box; transform-origin: 0 100%; }
.wnode .pole { stroke: var(--navy); stroke-width: 1.6; } .wnode .cloth { fill: var(--terra); }
.wnode.done .disc { fill: var(--blue); stroke: #fff; filter: drop-shadow(0 0 7px rgba(60,158,231,.9)); }
.wnode.done .num { opacity: 0; } .wnode.done .tick { opacity: 1; }
.wnode.done .flag { opacity: 1; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 50% { transform: skewY(-6deg); } }
.wnode.done .lbl { fill: var(--blue-deep); }
.wnode.here .disc { stroke: var(--blue); stroke-width: 4; }
.wnode.here .lbl { font-weight: 700; fill: var(--navy); }
.wnode.next .disc { stroke: var(--terra); stroke-width: 3.5; animation: npulse 1.8s ease-in-out infinite; }
@keyframes npulse { 50% { stroke-width: 7; stroke-opacity: .45; } }
.wnode .summit { fill: rgba(27,42,74,.14); stroke: rgba(27,42,74,.25); stroke-width: 1.5; transform: translate(0, -6px); }
.wnode .beacon { fill: rgba(27,42,74,.25); }
.wnode.locked .disc { stroke-dasharray: 4 4; }
.wnode[data-i="8"]:not(.locked) .beacon { fill: var(--terra); filter: drop-shadow(0 0 10px rgba(196,86,58,.9)); animation: twinkle 1.6s ease-in-out infinite; }
.wnode[data-i="8"]:not(.locked) .summit { fill: rgba(196,86,58,.18); stroke: rgba(196,86,58,.5); }
@keyframes twinkle { 50% { opacity: .55; } }
.wav { pointer-events: none; }
.wav .pinb { filter: drop-shadow(0 0 8px rgba(60,158,231,.9)); stroke: #fff; stroke-width: 2; }
.wav .shadow { fill: rgba(27,42,74,.22); }
.wav .bobber { animation: wbob 1.6s ease-in-out infinite; }
.wav.walking .bobber { animation: wstep .32s ease-in-out infinite; }
@keyframes wbob { 50% { transform: translateY(-5px); } }
@keyframes wstep { 50% { transform: translateY(-7px) rotate(4deg); } }
.qlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center; margin-top: 6px; font: 600 12px var(--f-body); color: var(--ink-soft); }
.qlegend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg.done { background: var(--blue); box-shadow: 0 0 6px rgba(60,158,231,.9); } .lg.here { border: 3px solid var(--blue); background: #fff; }
.lg.next { border: 3px solid var(--terra); background: #fff; } .lg.fog { background: repeating-linear-gradient(135deg, #fff 0 2px, rgba(139,58,42,.3) 2px 4px); }
@media (max-width: 600px) { .qmini { display: none; } .qbar { gap: 10px; padding-left: 16px; padding-right: 16px; } .qmap { left: 6px; right: 6px; padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .rspark, .cloud { animation: none !important; } }
.wnode .lbl { transition: transform .5s; }
.wnode.here .lbl.above { transform: translateY(-24px); }
.qmap { overflow: visible; }
.wscroll { overflow-x: auto; scrollbar-width: thin; }
.does b { color: var(--terra-deep); font-weight: 700; }
.card { min-height: 170px; }

.toolpick { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: var(--lift); }
.seg.big button { padding: 11px 22px; font-size: 15px; min-height: 44px; }

/* ===== coming soon gate ===== */
body.soon-on { overflow: auto; height: auto; }
.soon { position: relative; min-height: 100vh; overflow: hidden; background-color: var(--cream); background-image: radial-gradient(900px 520px at 88% -8%, rgba(60,158,231,.18), transparent 62%), radial-gradient(760px 560px at -8% 28%, rgba(212,149,106,.25), transparent 60%), radial-gradient(rgba(60,158,231,.16) 1px, transparent 1.5px); background-size: auto, auto, 28px 28px; padding: 56px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
.soon-circ { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.soon-in { position: relative; max-width: 860px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 18px; }
.soon-logo { height: 46px; width: auto; }
.soon-kick { font: 800 15px var(--f-body); letter-spacing: .34em; text-transform: uppercase; color: var(--terra); margin-top: 10px; }
.soon h1 { font: 900 clamp(40px, 7vw, 78px)/1.02 var(--f-display); color: var(--navy); }
.soon h1 em { font-style: normal; color: var(--blue); text-shadow: 0 0 26px rgba(60,158,231,.5); }
.soon-stats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; font: 600 17px var(--f-body); color: var(--ink); }
.soon-stats b { font: 800 20px var(--f-display); color: var(--blue-deep); margin-right: 2px; }
.soon-stats i { width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
.soon-count { display: flex; gap: 12px; margin-top: 6px; }
.soon-count div { min-width: 86px; padding: 14px 10px 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 2px rgba(60,158,231,.35), 0 0 30px -8px rgba(60,158,231,.6); display: grid; gap: 2px; }
.soon-count b { font: 800 38px/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.soon-count span { font: 700 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.soon-only { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 18px; box-shadow: 0 0 0 2px rgba(196,86,58,.45), 0 14px 30px -14px rgba(196,86,58,.5); margin-top: 8px; }
.soon-only span { font: 800 13px var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.soon-only img { height: 30px; width: auto; }
.soon-only b { font: 800 14px var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #D2603F, #9E3E22); padding: 5px 10px; border-radius: 8px; }
.soon-lead { font: 400 20px/1.5 var(--f-read); color: var(--ink); max-width: 36em; }
.soon-member { font: 600 15px var(--f-body); color: var(--ink-soft); }
.soon-tools { font: 700 13px var(--f-body); letter-spacing: .1em; color: var(--blue-deep); }
.soon-shot { margin-top: 18px; width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -36px rgba(27,42,74,.6), 0 0 0 1px rgba(139,58,42,.15), 0 0 60px -16px rgba(60,158,231,.6); transform: rotate(-1.2deg); }
.soon-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .soon-count div { min-width: 68px; padding: 12px 6px 8px; } .soon-count b { font-size: 28px; } .soon-only span { letter-spacing: .14em; } }
.app[hidden], .soon[hidden] { display: none !important; }
.soon-circ { display: none; }
.soon-only span { white-space: nowrap; }
@media (max-width: 560px) { .soon-only { gap: 8px; padding: 9px 12px; } .soon-only span { font-size: 11px; letter-spacing: .12em; } .soon-only img { height: 24px; } .soon-only b { font-size: 12px; letter-spacing: .16em; } }
