:root{
  --space-label:16px; --space-section:32px; --space-card:24px;
  --pink:#f3c3d9;
  --mauve:#9a4f86;
  --plum:#2c1c47;
  --navy:#1b1c46;
  --ink:#f7eaf3;
  --muted:#cdb8d6;
  --rose1:#ffe7dc; --rose2:#e3a595; --rose3:#9c5a66;
  --glass:rgba(255,255,255,.06);
  --line:rgba(243,195,217,.22);
  --lock-w:clamp(104px,12vw,180px);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--navy);color:var(--ink);font-family:'Nunito Sans',system-ui,sans-serif;overflow:hidden;-webkit-font-smoothing:antialiased}
body.entered{overflow:auto}
button{font:inherit;color:inherit}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ic{width:1em;height:1em;display:inline-block;vertical-align:-.12em}

/* ---------- App world ---------- */
#app{position:relative;min-height:100vh;isolation:isolate;
  background:
    radial-gradient(900px 520px at 50% 18%,rgba(238,170,205,.26),transparent 70%),
    radial-gradient(700px 500px at 0% 100%,rgba(122,90,166,.32),transparent 70%),
    radial-gradient(700px 500px at 100% 90%,rgba(80,70,160,.3),transparent 70%),
    linear-gradient(180deg,#2e1d4a 0%,#1b1c46 55%,#15163a 100%);
  filter:blur(10px) brightness(.8);transform:scale(1.06);transform-origin:50% 40%}
body.entered #app{filter:none;transform:none}
#app::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%,#fff 50%,transparent 51%),
    radial-gradient(1px 1px at 28% 72%,#ffe1f1 50%,transparent 51%),
    radial-gradient(1.4px 1.4px at 44% 12%,#fff 50%,transparent 51%),
    radial-gradient(1px 1px at 63% 64%,#fff 50%,transparent 51%),
    radial-gradient(1.3px 1.3px at 78% 22%,#ffe1f1 50%,transparent 51%),
    radial-gradient(1px 1px at 88% 78%,#fff 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 58%,#fff 50%,transparent 51%),
    radial-gradient(1px 1px at 52% 88%,#ffe1f1 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 94% 44%,#fff 50%,transparent 51%);
  background-size:520px 520px;animation:starsDrift 120s linear infinite}
@keyframes starsDrift{to{background-position:520px -520px}}

.screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:clamp(16px,4vh,40px) 16px 48px}
.screen.leaving{position:absolute;inset:0;pointer-events:none}
.panel{margin:auto;width:min(560px,100%);text-align:center;padding:clamp(28px,5vw,48px) clamp(20px,4vw,44px);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1px solid var(--line);border-radius:28px;
  box-shadow:0 30px 80px rgba(8,4,24,.45),inset 0 1px 0 rgba(255,255,255,.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.panel.wide{width:min(720px,100%)}
.title{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(32px,5vw,50px);line-height:1.08;color:#fbe3ee;outline:none}
.lead{margin-top:14px;font-size:clamp(15px,1.5vw,17px);line-height:1.6;color:var(--muted)}
.proto-note{margin-top:16px;font-size:12px;color:rgba(255,236,246,.55)}

.btn-primary,.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 28px;border-radius:999px;font-weight:700;font-size:16px;cursor:pointer;border:0;position:relative;overflow:hidden}
.btn-primary{margin-top:26px;color:#3a1d45;background:linear-gradient(135deg,#ffe3ec 0%,#f3b6cf 40%,#d59ad6 100%);box-shadow:0 10px 30px rgba(230,150,200,.35),inset 0 1px 0 rgba(255,255,255,.7);transition:transform .15s,box-shadow .15s,opacity .2s}
.btn-primary::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);transform:skewX(-20deg);animation:shine 3.4s ease-in-out infinite}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(230,150,200,.5)}
.btn-primary:disabled{opacity:.4;cursor:default;transform:none}
.btn-primary:disabled::after{display:none}
.btn-ghost{background:rgba(255,255,255,.05);border:1.5px solid rgba(243,195,217,.45);color:var(--ink)}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-ghost.small{min-height:40px;padding:8px 18px;font-size:14px}
:is(.btn-primary,.btn-ghost,.opt,.chip,.heart,.bigcard,.tree-node):focus-visible{outline:2px solid #fff;outline-offset:3px}
@keyframes shine{0%,60%{left:-60%}100%{left:130%}}

/* ---------- Age check ---------- */
.shield{width:92px;margin:0 auto 18px;filter:drop-shadow(0 10px 24px rgba(240,150,200,.35))}
.shield svg{width:100%;display:block}
.modal{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:16px;background:rgba(10,6,28,.6);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.modal-card{width:min(440px,100%);background:#fff;color:#2c1c47;border-radius:20px;padding:28px 24px;text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.modal-card h2{font-size:20px}
.modal-card p{margin-top:10px;line-height:1.55;font-size:15px;color:#4d3d5e}
.modal-actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.modal-actions .btn-primary{margin-top:0}
.modal-card .btn-ghost{color:#2c1c47;border-color:#c9b6d6}

/* ---------- Quiz ---------- */
.quiz-screen{padding-top:max(14px,env(safe-area-inset-top))}
.hud{width:min(860px,100%);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
.hud-name{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:22px;color:var(--pink);min-height:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hn-label span{display:inline-block;white-space:pre}
.gems{display:flex;gap:8px;list-style:none}
.gem{width:14px;height:14px;transform:rotate(45deg);border:1.5px solid rgba(243,195,217,.55);border-radius:3px;transition:background .3s,box-shadow .3s,transform .3s}
.gem.done{background:linear-gradient(135deg,#fff,#f3b6cf 50%,#c98adb);border-color:#fff;box-shadow:0 0 10px rgba(255,190,230,.8)}
.gem.now{transform:rotate(45deg) scale(1.3);border-color:#fff}
.hud-total{justify-self:end;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(20,12,40,.55);border:1px solid var(--line);font-variant-numeric:tabular-nums}
.hud-star{color:#f5cf8e;font-size:18px;filter:drop-shadow(0 0 6px rgba(245,207,142,.8))}
.hud-total .count{font-size:20px;min-width:2.6ch;text-align:right;display:inline-block}
.hud-lvl{font-size:12px;font-weight:700;color:#3a1d45;background:linear-gradient(135deg,#ffe3ec,#f3b6cf);border-radius:999px;padding:3px 8px}
.hud-lvl b{display:inline-block}

.orbs{display:grid;grid-template-columns:repeat(6,minmax(0,88px));gap:clamp(4px,1.8vw,20px);justify-content:center;margin-top:18px}
.orb{display:flex;flex-direction:column;align-items:center;gap:16px;min-width:0}
.orb-disc{position:relative;width:54px;height:54px;display:grid;place-items:center;color:var(--c);font-size:20px;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.18),rgba(20,12,40,.6));box-shadow:0 0 18px color-mix(in srgb,var(--c) 35%,transparent)}
.orb-ring{position:absolute;inset:-1px;transform:rotate(-90deg)}
.orb-ring circle,.big-ring circle{fill:none;stroke-width:3.5}
.orb-ring .trk,.big-ring .trk{stroke:rgba(255,255,255,.12)}
.orb-ring .val{stroke:var(--c);stroke-linecap:round;filter:drop-shadow(0 0 4px var(--c))}
/* the level sits on the bottom of the ring, centred, like a medal */
.orb-lvl{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);min-width:24px;height:19px;padding:0 6px;border-radius:999px;background:var(--c);color:#241433;font-size:11px;font-weight:800;line-height:1;display:grid;place-items:center;box-shadow:0 0 0 2.5px var(--navy)}
/* the name in two lines of similar length, tinted with the skill's colour */
.orb-name{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.15;text-align:center;color:color-mix(in srgb,var(--c) 62%,#fff)}
.orb-name span{white-space:nowrap}

.stage{flex:1;width:min(720px,100%);display:flex;align-items:center;justify-content:center;perspective:1200px;margin:18px 0 8px}
.card-slot{position:relative;width:100%;display:grid}
.qcard{grid-area:1/1;width:100%;padding:clamp(24px,4vw,40px);text-align:center;border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03));border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(8,4,24,.45),inset 0 1px 0 rgba(255,255,255,.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transform-style:preserve-3d}
.qcard.out{pointer-events:none}
.q-title{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(26px,3.8vw,40px);line-height:1.12;color:#fbe3ee;outline:none}
.q-sub{margin-top:10px;color:var(--muted);font-size:15px;line-height:1.5}
.q-body{margin-top:26px}

.name-field{position:relative;display:block;max-width:420px;margin:0 auto}
.name-field input{width:100%;background:transparent;border:0;border-bottom:2px solid rgba(243,195,217,.35);color:#fff;text-align:center;
  font-family:'Cormorant Garamond',serif;font-size:clamp(30px,4.4vw,44px);font-weight:600;padding:8px 4px;outline:none}
.name-field input::placeholder{color:rgba(243,195,217,.7)}
.name-field .underline{position:absolute;left:50%;bottom:0;height:2px;width:0;background:linear-gradient(90deg,#f5cf8e,#f3b6cf,#c7a6f2);box-shadow:0 0 12px #f3b6cf;transition:width .4s,left .4s}
.name-field input:focus + .underline{width:100%;left:0}

.opts{display:grid;gap:12px;max-width:520px;margin:0 auto}
.opt{display:flex;align-items:center;gap:14px;text-align:left;padding:16px 20px;border-radius:18px;background:rgba(255,255,255,.05);border:1.5px solid var(--line);cursor:pointer;font-size:16px;font-weight:600;transition:background .2s,border-color .2s,transform .15s}
.opt:hover{background:rgba(255,255,255,.1);transform:translateY(-1px)}
.opt-gem{flex:none;width:16px;height:16px;transform:rotate(45deg);border:2px solid rgba(243,195,217,.6);border-radius:3px;transition:all .25s}
.opt[aria-pressed="true"]{border-color:#f3b6cf;background:linear-gradient(135deg,rgba(243,182,207,.28),rgba(199,166,242,.2));box-shadow:0 0 24px rgba(243,182,207,.3)}
.opt[aria-pressed="true"] .opt-gem{background:linear-gradient(135deg,#fff,#f3b6cf);border-color:#fff;box-shadow:0 0 10px #f3b6cf}

.chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.chip{position:relative;display:flex;align-items:center;gap:12px;text-align:left;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.05);border:1.5px solid var(--line);cursor:pointer;font-size:15px;font-weight:600;line-height:1.3;transition:background .2s,border-color .2s,opacity .2s}
.chip:hover{background:rgba(255,255,255,.1)}
.chip-check{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:2px solid rgba(243,195,217,.55);color:transparent;font-size:15px}
.chip-label{flex:1}
.chip-pts{flex:none;font-size:12px;font-weight:800;color:#f5cf8e}
.chip[aria-pressed="true"]{border-color:#f5cf8e;background:linear-gradient(135deg,rgba(245,207,142,.18),rgba(243,182,207,.18));box-shadow:0 0 22px rgba(245,207,142,.22)}
.chip[aria-pressed="true"] .chip-check{background:linear-gradient(135deg,#fff3d6,#f5cf8e);border-color:#fff;color:#4a2a14}
.chip.capped{opacity:.45}

.hearts{display:flex;justify-content:center;gap:clamp(6px,2vw,16px)}
.heart{background:none;border:0;cursor:pointer;font-size:clamp(40px,8vw,56px);color:rgba(243,195,217,.6);padding:4px;line-height:0;transition:color .2s,filter .2s}
.heart:hover{color:rgba(243,195,217,.8)}
.heart.on{color:#f59aba;filter:drop-shadow(0 0 10px rgba(245,154,186,.8))}
.scale-labels{display:flex;justify-content:space-between;max-width:380px;margin:10px auto 0;font-size:13px;color:var(--muted)}

.bigcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.bigcard{display:flex;flex-direction:column;align-items:center;gap:14px;padding:22px 14px;border-radius:22px;cursor:pointer;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));border:1.5px solid var(--line);transition:border-color .2s,box-shadow .2s,transform .2s;transform-style:preserve-3d}
.bigcard:hover{transform:translateY(-4px)}
.bc-frame{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;font-size:44px;color:#ffd9e8;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.25),rgba(120,70,150,.35));border:2px solid rgba(243,195,217,.6);box-shadow:inset 0 0 20px rgba(255,190,230,.25),0 0 0 6px rgba(243,195,217,.08)}
.bc-label{font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:600}
.bigcard[aria-pressed="true"]{border-color:#f5cf8e;box-shadow:0 0 30px rgba(245,207,142,.35)}
.bigcard[aria-pressed="true"] .bc-frame{color:#fff3d6;border-color:#f5cf8e}

.quiz-nav{width:min(720px,100%);display:flex;justify-content:space-between;gap:12px}
.quiz-nav .btn-primary{margin-top:0;min-width:160px}

/* ---------- Points and level-up ---------- */
.pop{position:fixed;left:0;top:0;z-index:65;pointer-events:none;white-space:nowrap;font-weight:800;font-size:18px;color:#fff;
  padding:4px 12px;border-radius:999px;background:color-mix(in srgb,var(--c,#f3b6cf) 40%,rgba(30,15,50,.7));border:1.5px solid var(--c,#f3b6cf);
  box-shadow:0 0 18px var(--c,#f3b6cf);text-shadow:0 1px 2px rgba(0,0,0,.4)}
.pop.minus{--c:#8f86a8;font-size:14px;opacity:.9}
.levelup{position:fixed;left:50%;top:42%;z-index:66;transform:translate(-50%,-50%);pointer-events:none;text-align:center;width:min(90vw,460px);padding:28px 24px 26px;border-radius:26px;
  background:linear-gradient(180deg,rgba(46,26,74,.92),rgba(27,28,70,.92));border:2px solid var(--c);box-shadow:0 0 60px color-mix(in srgb,var(--c) 55%,transparent),inset 0 1px 0 rgba(255,255,255,.2)}
.levelup{translate:-50% -50%;transform:none}
.levelup.compact{translate:-50% 0;width:min(92vw,360px);padding:10px 16px;display:grid;grid-template-columns:52px 1fr;align-items:center;gap:0 12px;text-align:left;border-radius:18px}
.levelup.compact .lu-badge{width:52px;height:52px;margin:0;grid-row:1/4;font-size:20px}
.levelup.compact .lu-badge .ic{top:5px;font-size:14px}
.levelup.compact .lu-badge b{font-size:22px;margin-top:8px}
.levelup.compact .lu-kicker{font-size:10px}
.levelup.compact .lu-title{font-size:22px;margin-top:0}
.lu-also{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:10px}
.levelup.compact .lu-also{justify-content:flex-start;margin-top:4px}
.lu-also span{font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2)}
.lu-glow{position:absolute;inset:-40%;z-index:-1;background:radial-gradient(closest-side,color-mix(in srgb,var(--c) 45%,transparent),transparent);pointer-events:none}
.lu-badge{position:relative;width:84px;height:84px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;color:#241433;font-size:30px;
  background:radial-gradient(circle at 35% 30%,#fff,var(--c) 60%);box-shadow:0 0 30px var(--c)}
.lu-badge .ic{position:absolute;top:10px;font-size:22px;opacity:.75}
.lu-badge b{font-size:34px;margin-top:14px}
.lu-kicker{text-transform:uppercase;letter-spacing:.28em;font-size:12px;font-weight:800;color:var(--c)}
.lu-title{font-family:'Cormorant Garamond',serif;font-size:clamp(28px,5vw,38px);font-weight:600;color:#fff;margin-top:6px}
.lu-sub{margin-top:4px;color:var(--muted);font-size:15px}

/* ---------- Results ---------- */
.res-rows{display:grid;gap:12px;margin-top:28px;text-align:left}
.res-row{display:grid;grid-template-columns:36px 110px 1fr auto 56px;align-items:center;gap:12px;padding:10px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.res-ic{color:var(--c);font-size:22px;display:grid;place-items:center}
.res-name{font-weight:700}
.res-lvl{font-size:12px;font-weight:800;color:#241433;background:var(--c);border-radius:999px;padding:3px 9px}
.res-lvl b{display:inline-block}
.res-pts{text-align:right;font-variant-numeric:tabular-nums;display:inline-block}
.bar{position:relative;display:block;height:8px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}
.bar i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--c,#f5cf8e) 70%,#fff),var(--c,#f5cf8e));box-shadow:0 0 10px var(--c,#f5cf8e)}
.bar.gold{--c:#f5cf8e}
.res-total{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:28px;flex-wrap:wrap}
.big-ring{position:relative;width:126px;height:126px}
.big-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.big-ring circle{stroke-width:6}
.big-ring .val{stroke:#f5cf8e;stroke-linecap:round;filter:drop-shadow(0 0 6px #f5cf8e)}
.br-in{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.br-in small{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.br-in b{display:inline-block;font-family:'Cormorant Garamond',serif;font-size:48px;line-height:1;color:#fff3d6}
.res-total-txt{text-align:left;font-size:16px;color:var(--muted)}
.res-title{font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:600;color:#fbe3ee;min-height:40px}
.res-sum{font-size:24px;color:#fff;font-variant-numeric:tabular-nums;display:inline-block}

/* ---------- Sign-up ---------- */
.su-avatar{width:84px;height:84px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:44px;color:#3a1d45;
  background:radial-gradient(circle at 35% 30%,#fff,#f3b6cf 55%,#c98adb);box-shadow:0 0 0 3px rgba(255,231,220,.6),0 0 30px rgba(243,182,207,.5)}
.fields{display:grid;gap:16px;margin-top:24px;text-align:left}
.field{display:grid;gap:6px}
.field label{font-weight:700;font-size:14px}
.field input{min-height:48px;padding:10px 14px;border-radius:14px;border:1.5px solid rgba(243,195,217,.35);background:rgba(20,12,40,.45);color:#fff;font-size:16px;outline:none;transition:border-color .2s,box-shadow .2s}
.field input:focus{border-color:#f3b6cf;box-shadow:0 0 0 3px rgba(243,182,207,.25)}
.field input[aria-invalid="true"]{border-color:#ff9db0}
.f-hint{font-size:12.5px;line-height:1.45;color:var(--muted)}
.err{font-size:13px;font-weight:700;color:#ffb3c2;min-height:0}
.err:empty{display:none}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;cursor:pointer}
.check input{width:20px;height:20px;margin-top:2px;accent-color:#f3b6cf;flex:none}

/* ---------- Profile ---------- */
.profile-screen{align-items:stretch;max-width:1440px;margin:0 auto;gap:22px}
.p-sticky{position:sticky;top:12px;z-index:5;align-self:flex-end;margin-bottom:-58px;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(20,12,40,.8);border:1px solid var(--line);font-variant-numeric:tabular-nums;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.p-sticky.show{opacity:1;visibility:visible}
.p-sticky .count{font-size:18px;display:inline-block}
.av-lvl{position:absolute;right:-6px;bottom:-6px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#fff,#f5cf8e 60%);color:#241433;font:700 22px "Cormorant Garamond",serif;box-shadow:0 0 18px #f5cf8e;border:2px solid #241433}
.av-lvl b{display:inline-block}
.p-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:clamp(14px,3vw,28px);padding:clamp(18px,3vw,28px);border-radius:28px;
  background:linear-gradient(135deg,rgba(243,182,207,.14),rgba(199,166,242,.08));border:1px solid var(--line);box-shadow:0 30px 80px rgba(8,4,24,.35)}
.avatar{position:relative;width:clamp(84px,12vw,112px);aspect-ratio:1}
.av-ring{position:absolute;inset:0;width:100%;height:100%}
.av-spin{transform-origin:60px 60px;animation:spin 30s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.av-letter{position:absolute;inset:14%;border-radius:50%;display:grid;place-items:center;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(38px,5vw,52px);color:#3a1d45;
  background:radial-gradient(circle at 35% 30%,#fff,#f3b6cf 55%,#c98adb)}
.p-name{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(30px,4.4vw,46px);line-height:1.05;color:#fbe3ee;outline:none;overflow-wrap:anywhere}
.p-title{margin-top:4px;color:var(--muted);font-family:"Cormorant Garamond",serif;font-size:24px;font-weight:600}
.p-title b{color:#f5cf8e;display:inline-block;font-size:30px}
.p-ttl{color:#f6cfe1}
.p-bar{margin-top:10px;max-width:460px}
.p-bar .bar{height:10px}
.p-bar small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
.p-total{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 18px;border-radius:20px;background:rgba(20,12,40,.5);border:1px solid var(--line);font-variant-numeric:tabular-nums}
.p-total .hud-star{font-size:22px}
.p-total .count{font-size:26px;display:inline-block}
.p-total small{font-size:12px;color:var(--muted)}

.dgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.dcard{position:relative;padding:18px;border-radius:22px;background:rgba(255,255,255,.05);border:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.dcard.focus{border-color:color-mix(in srgb,var(--c) 70%,transparent);box-shadow:0 0 26px color-mix(in srgb,var(--c) 22%,transparent)}
.d-focus{position:absolute;top:-10px;right:14px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#241433;background:var(--c);padding:3px 9px;border-radius:999px}
.d-top{display:flex;gap:12px;align-items:flex-start}
.d-top h2{font-size:17px}
.d-top small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;color:var(--muted);font-size:12.5px;line-height:1.4;margin-top:2px}
.d-ic{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--c);font-size:20px;background:rgba(20,12,40,.5);box-shadow:0 0 14px color-mix(in srgb,var(--c) 30%,transparent)}
.d-lvl{margin-top:auto;font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:600}
.d-lvl b{display:inline-block;color:var(--c)}
.d-foot{display:flex;justify-content:space-between;align-items:baseline}
.d-foot small{font-size:12px;color:var(--muted)}
.d-pts{font-variant-numeric:tabular-nums;display:inline-block}

.sec-title{font-family:'Cormorant Garamond',serif;font-size:32px;font-weight:600;color:#fbe3ee}
.chip[aria-disabled="true"]{cursor:not-allowed}

.p-foot{display:flex;gap:10px;justify-content:center;margin-top:16px;opacity:.8}

/* ---------- Verified tasks ---------- */
.verified{display:grid;gap:14px;padding:20px;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.verified-intro,.verified-note,.subscription p{color:var(--muted);line-height:1.5}
.verified-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:14px 0}
.verified-skill{display:grid;gap:4px;padding:12px;border-radius:14px;border:1px solid color-mix(in srgb,var(--c) 48%,transparent);background:rgba(20,12,40,.35)}
.verified-skill h3{font-size:14px;color:var(--c)}.verified-skill b{font-size:15px}.verified-skill small{color:var(--muted)}
.subscription,.verified-catalogue{display:grid;gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.subscription h3,.verified-catalogue>h3{font-family:'Cormorant Garamond',serif;font-size:24px;color:#fbe3ee}
.verified-tasks{display:grid;gap:10px}.verified-task{display:grid;gap:10px;padding:14px;border-radius:16px;background:rgba(20,12,40,.35);border:1px solid var(--line)}
.verified-task h4{font-size:16px;line-height:1.4}.verified-task p{font-size:13px;color:var(--muted)}.verified-warn{color:#ffbdca!important}.verified-state{color:#f5cf8e!important;font-weight:700}
.verified-task input[type=file]{max-width:100%;color:var(--muted)}
.proof-overlay{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:#171840f2}
.proof-card{width:min(680px,100%);display:grid;gap:18px;text-align:center;padding:clamp(24px,6vw,56px);border-radius:28px;background:#fff8fb;color:#251531;box-shadow:0 30px 100px #000}
.proof-card h2{font:600 clamp(30px,6vw,48px) 'Cormorant Garamond',serif}.proof-card strong{font-size:clamp(38px,9vw,76px);letter-spacing:.08em;overflow-wrap:anywhere}.proof-card p{line-height:1.5}.proof-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.proof-card .form-err.ok{color:#17653d}
@media print{body>*:not(.proof-overlay){display:none!important}.proof-overlay{position:static;padding:0;background:#fff}.proof-card{box-shadow:none;border:2px solid #251531}.proof-actions,.proof-card .form-err{display:none!important}}

/* ---------- Link to the legal page at the foot of every screen ---------- */
.screen-legal{width:100%;margin-top:18px;text-align:center}
.screen-legal a{display:inline-block;min-height:32px;padding:6px 10px;border-radius:8px;font-size:12.5px;font-weight:700;color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(205,184,214,.45)}
.screen-legal a:hover{color:#fff;text-decoration-color:#fff}
.screen-legal a:focus-visible{outline:2px solid #fff;outline-offset:2px}

@media (max-width:640px){
  .hud{grid-template-columns:1fr auto;grid-template-areas:"name total" "gems gems"}
  .hud-name{grid-area:name}.hud-total{grid-area:total}.gems{grid-area:gems;justify-content:center}
  .orbs{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;width:100%;margin-top:14px}
  .orb{gap:14px}.orb-disc{width:42px;height:42px;font-size:16px}
  .orb-lvl{bottom:-8px;min-width:20px;height:17px;font-size:10px;padding:0 5px}
  .orb-name{font-size:10px;letter-spacing:.01em;text-transform:none}
  .res-row{grid-template-columns:28px 1fr auto 44px;row-gap:6px}
  .res-row .bar{grid-column:1/-1;grid-row:2}
  .p-head{grid-template-columns:auto 1fr}
  .p-total{grid-column:1/-1;flex-direction:row;justify-content:center;gap:10px}
}
@media (prefers-reduced-motion:reduce){
  #app::before,.btn-primary::after,.av-spin{animation:none}
}

/* ---------- Prototype location switcher ---------- */
.geo-preview{position:fixed;left:12px;top:max(12px,env(safe-area-inset-top));z-index:80;display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:calc(100vw - 24px);padding:6px 10px;border-radius:12px;
  background:rgba(255,255,255,.92);color:#2c1c47;font-size:12px;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.geo-preview select{font:inherit;padding:4px 6px;border-radius:8px;border:1px solid #c9b6d6;background:#fff;color:#2c1c47}
.geo-preview small{font-weight:700}
@media (max-width:640px){
  .geo-preview{max-width:calc(100vw - 160px)}      /* leaves the intro's Skip button (top right) free */
}

/* ---------- Your tree ---------- */
.profile-screen:not(.hub)>:not(.tree):not(.p-sticky){width:min(1008px,100%);margin-inline:auto}
.tree{width:100%;padding:24px 0;border-top:1px solid var(--line)}
.tree-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.tree-heading p{color:var(--muted);font-size:14px;margin-top:6px}
.tree-heading .btn-primary{margin:0;flex-shrink:0}
.tree-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}
.tree-chip{display:flex;align-items:center;gap:7px;min-width:0;padding:10px 8px;background:rgba(20,12,40,.65);color:var(--c);border:1px solid color-mix(in srgb,var(--c) 35%,transparent);border-radius:12px;text-align:left;font-size:12px;line-height:1.3;cursor:pointer}
.tree-chip>.ic{flex-shrink:0;font-size:20px}
.tree-chip span{min-width:0;overflow-wrap:anywhere}
.tree-chip small{display:block;margin-top:4px;font-size:10px}
.tree-chip[aria-pressed="true"]{border-color:var(--c);background:color-mix(in srgb,var(--c) 16%,#201636);box-shadow:0 0 12px color-mix(in srgb,var(--c) 25%,transparent)}
.tree-chip:focus-visible,.tree-node:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
.tree-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.tree-column{min-width:0;display:none}
.tree-column.selected{display:block}
.tree-column h3{position:sticky;top:10px;z-index:2;display:flex;gap:8px;align-items:center;background:#261b43;border:1px solid var(--c);color:var(--c);border-radius:12px;padding:12px;font-size:15px;box-shadow:0 8px 20px rgba(8,4,24,.5)}
.tree-column h3 .ic{flex-shrink:0;font-size:20px}
.tree-column h3 small{margin-left:auto;white-space:nowrap;font-size:11px}
.tree-tier{position:relative;display:grid;gap:10px;padding:22px 0 0 20px}
.tree-tier-number{position:absolute;left:0;top:24px;background:#261b43;color:var(--c);border:1px solid var(--c);border-radius:50%;width:17px;height:17px;text-align:center;font-size:10px;line-height:15px}
.tree-node{position:relative;display:flex;flex-direction:column;gap:8px;width:100%;min-width:0;padding:13px 12px;text-align:left;border-radius:12px;border:1px solid color-mix(in srgb,var(--c) 30%,transparent);background:rgba(20,12,40,.65);font-size:13px;line-height:1.45;cursor:pointer;overflow-wrap:anywhere;transition:box-shadow .2s,border-color .2s}
.tree-node.lit{border-color:var(--c);background:color-mix(in srgb,var(--c) 12%,#201636);box-shadow:0 0 15px color-mix(in srgb,var(--c) 18%,transparent),inset 0 0 16px color-mix(in srgb,var(--c) 8%,transparent)}
.tree-node.open{border-color:color-mix(in srgb,var(--c) 65%,transparent)}
.tree-node.open:hover,.tree-node.lit:hover{box-shadow:0 0 20px color-mix(in srgb,var(--c) 30%,transparent)}
.tree-node.locked{color:#ac9bbb;cursor:default;background:rgba(15,10,32,.5)}
.tree-state{display:flex;gap:6px;align-items:center;color:var(--c);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.tree-node.locked .tree-state{color:#ac9bbb}
.tree-points{color:var(--c);font-size:11px}
.tree-after{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px}
.tree-folded{margin:10px 0;color:var(--muted);font-size:12px;line-height:1.4}
.tree-question .hud{grid-template-columns:1fr auto}
.tree-banner.levelup.compact{position:relative;left:auto;top:auto;translate:none;transform:none;width:100%;margin-top:12px;pointer-events:none;overflow:hidden}
.tree-banner.levelup.compact .lu-title{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.tree-question [hidden]{display:none!important}
.res-keep{margin-right:12px}
@media(min-width:1320px){
  .tree-columns{grid-template-columns:repeat(6,minmax(0,1fr))}
  .tree-column{display:block}
  .tree-switch{display:none}
  .tree-column h3{flex-wrap:wrap;font-size:13px;min-height:72px}
  .tree-column h3 small{width:100%;margin-left:28px}
  .tree-node{font-size:12px}
}
@media(max-width:640px){
  .tree-heading{align-items:flex-start;flex-direction:column}
  .res-keep,.res-go{width:100%;margin-right:0}
}
@media(prefers-reduced-motion:reduce){.tree-node{transition:none}}

/* Game hub: stable cards, member tabs and native sheets. */
[hidden]{display:none!important}
body.quiet-screens #app::before,body.quiet-screens .btn-primary::after{animation:none}
body.quiet-screens .btn-primary::after{display:none}
.quiet-screens .qcard,.quiet-screens .panel,.hub-sheet{backdrop-filter:none;-webkit-backdrop-filter:none}
.segmented{position:absolute;inset:0;width:100%;height:100%;transform:none;overflow:visible}
.segmented path,.segmented circle{fill:none;stroke-width:6;stroke-linecap:round}
.segmented .rt{stroke:rgba(255,255,255,.13)}
.segmented .rv,.segmented .full{stroke:var(--c,#f5cf8e)}
.segmented .ex{stroke:#f5cf8e;stroke-width:2}
.ring-crown{position:absolute;top:-14px;left:50%;transform:translateX(-50%);color:#f5cf8e;font-size:18px}
.quiz-screen{height:auto;min-height:100svh;padding-bottom:0;overflow-x:clip}
.quiz-screen .stage{flex:0 0 auto;margin:24px 0 0;perspective:none}
.quiz-screen .card-slot{isolation:isolate}
.quiz-screen .qcard{height:auto;overflow:visible;transform-style:flat;display:flex;flex-direction:column;justify-content:center;padding:24px}
.quiz-screen .q-title{font-size:clamp(25px,3vw,36px);line-height:1.16}
.quiz-screen .q-body{margin-top:18px}
.quiz-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(760px,100%);padding:12px 18px max(16px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;background:#1b183c;z-index:20;margin:0}
.answer-bar{display:flex;gap:12px;width:100%;justify-content:center}
.answer-bar .ans-btn{width:50%;min-height:54px;margin:0;padding:14px 20px}
.quiz-nav .btn-primary{margin:0}
/* Banners stay below the question and reserve their space before any answer. */
.quiz-screen .stage{display:flex;flex-direction:column;align-items:stretch;position:relative;padding-bottom:154px}
.quiz-screen .card-slot{height:auto}
.levelup-notices{position:absolute;bottom:0;left:0;right:0;height:142px;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;z-index:66}
.levelup-notices .levelup.compact.notice{display:grid;position:relative;left:auto;top:auto;translate:none;transform:none;width:min(100%,420px);padding:8px 14px;grid-template-columns:44px 1fr;gap:0 12px;box-shadow:none;border-width:1px}
.levelup-notices .notice .lu-badge{width:44px;height:44px;grid-row:1/3}
.levelup-notices .notice .lu-badge b{margin:0;font-size:24px}
.levelup-notices .notice .lu-kicker{font-size:9px}
.levelup-notices .notice .lu-title{font-size:20px;line-height:1.15}
.profile-screen.hub{display:block;width:100%;padding:22px 16px 100px}
.profile-screen.hub>.hub-main{width:100%}
.member-tabs{position:fixed;z-index:30;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#191632;border-top:1px solid var(--line);padding:8px 8px max(8px,env(safe-area-inset-bottom));gap:4px}
.member-tabs button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;border-radius:12px;background:transparent;color:var(--muted);padding:10px 4px;cursor:pointer;font-size:12px;font-weight:800;min-height:56px}
.member-tabs button .ic{font-size:20px}
.member-tabs button[aria-selected=true]{background:#f3c3d914;color:var(--pink)}
.hub-brand{display:none}
.hub-main{max-width:880px;margin:auto;min-width:0}
.hub-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding:0 2px}
.hub-heading h1{font-size:28px}.hub-heading span{font-weight:800;color:var(--muted);font-size:13px}
.hub .p-head{display:flex;flex-direction:column;gap:5px;border:0;background:none;padding:0;text-align:center;max-width:100%;margin:0}
.hub-total-ring{position:relative;width:158px;height:158px;--c:#f5cf8e;margin:auto}
.hub-total-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.hub-total-ring small{font-size:12px;color:var(--muted)}.hub-total-ring b{font-size:58px;line-height:1.2;font-family:'Cormorant Garamond',serif}
.hub .p-ttl{font-family:'Cormorant Garamond',serif;font-size:32px;color:#f5cf8e}
.hub .p-next{font-size:13px;color:var(--muted);min-height:18px}.hub .p-total{font-size:14px}.hub .p-total .count{font-size:18px}
.home-skills{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px;margin:22px 0}
.home-skill{border:0;background:none;cursor:pointer;min-width:0;padding:0}
.home-skills .orb-disc{width:66px;height:66px;font-size:24px}.home-skills .orb-name{font-size:10px;letter-spacing:.02em;min-height:24px}.home-skills .orb{gap:13px}
.skill-points{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.home-card-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px;font-size:12px}
.home-card-line .btn-ghost{font-size:12px;padding:8px 12px;white-space:nowrap}
.home-play{display:flex;justify-content:center;margin:18px 0}.home-play .btn-primary{margin:0;min-width:240px}
.hub .share-nudge{margin:12px 0}.hub .share-nudge .btn-primary{margin:0}
.hub .screen-legal{margin:24px auto 0}
.hub .tree{width:100%;margin:0;max-width:none}.hub .tree-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hub .tree-heading .btn-primary{margin:0;font-size:13px;padding:10px 16px;white-space:nowrap}
.hub .tree-switch{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:20px 0}
.hub .tree-chip{display:flex;flex-direction:column;gap:12px;padding:4px 0;border:0;background:none;font-size:9px;text-align:center;letter-spacing:0;min-height:80px}
.hub .tree-chip .orb-disc{width:43px;height:43px;font-size:17px}.hub .tree-chip .orb-lvl{font-size:10px}
.hub .tree-chip[aria-pressed=true]{background:#ffffff0b;border-radius:10px}.hub .tree-chip>.ic{display:none}
.hub .tree-columns{position:relative;display:block}.hub .tree-column{display:none;position:relative;min-width:0}.hub .tree-column.selected{display:block}
.hub .tree-column h3{position:static;min-height:0;display:flex;padding:10px;font-size:14px;margin-bottom:12px}
.hub .tree-tier{position:relative;border-left:0;padding:18px 0 10px 22px;display:flex;flex-direction:column;gap:14px;margin:0}
.hub .tree-tier::before,.hub .tree-node::before,.hub .tree-tier::after{display:none}
.hub .tree-tier-number{position:absolute;left:0;top:20px;font-size:11px;width:18px;height:18px;background:#302345;border-radius:50%;display:grid;place-items:center}
.hub .tree-node{position:relative;width:100%;z-index:1;text-align:left;margin:0;display:flex;flex-direction:column;gap:6px;background:#292141;padding:14px;border-radius:14px}
.hub .tree-node.locked{opacity:.55;cursor:pointer}.hub .tree-node.lit{background:#272d3f}
.hub .tree-label{font-size:14px;line-height:1.45}.hub .tree-points{font-size:11px}.hub .tree-state{font-size:10px}
.hub .tree-folded{position:relative;z-index:1;margin:0;width:100%;min-width:0;font-size:12px;background:#28203c}



.hub-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(680px,100%);max-height:92svh;overflow:auto;border:1px solid var(--line);border-radius:24px 24px 0 0;background:#241d3b;color:var(--ink);padding:20px 18px max(24px,env(safe-area-inset-bottom));box-shadow:0 -20px 80px #08041680;z-index:50}
.hub-sheet::backdrop{background:#090613a6;backdrop-filter:none}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.sheet-head h2{font-size:20px}.sheet-head button{flex-shrink:0}
.skill-levels{list-style:none;display:grid;gap:8px;margin:18px 0}.skill-levels li{display:flex;justify-content:space-between;padding:12px 14px;border:1px solid var(--line);border-radius:12px;color:var(--muted)}.skill-levels li.reached{color:var(--pink);background:#f3c3d90b}
.sheet-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.sheet-actions .btn-primary{margin:0}
.tree-step-sheet .card-slot{height:auto;overflow:visible}.tree-step-sheet .qcard{height:auto;overflow:visible;box-shadow:none;background:none;border:0;padding:10px 0;display:flex;flex-direction:column;justify-content:flex-start}
.tree-step-sheet .q-title{font-size:26px;line-height:1.2}.tree-step-sheet .answer-bar{margin-top:12px}.tree-relations{display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:left;margin-top:24px;font-size:12px;line-height:1.5}.tree-relations h3{font-size:11px;text-transform:uppercase;color:var(--muted);margin-bottom:8px}.tree-relations ul{padding-left:18px}.tree-relations li{margin-bottom:6px}
.hub .pub,.hub .priv{width:100%;max-width:none;margin:0;padding:0;border:0;background:none;box-shadow:none}.hub .pub .sec-title{font-size:24px}.member-card-preview{margin:16px auto;width:min(400px,100%)}
.hub .pub-actions{justify-content:center;gap:8px}.hub .pub-actions .btn-primary{margin:0}.hub .pub-status{font-size:13px;overflow-wrap:anywhere}
.kit-tabs{display:flex;gap:6px;margin:14px 0}.kit-tabs button{border:1px solid var(--line);background:none;border-radius:999px;min-height:40px;padding:8px 20px;font-weight:800;cursor:pointer}.kit-tabs button[aria-pressed=true]{background:#f3c3d917;color:var(--pink)}
.hub .share{padding:0;border:0}.hub .share-image{max-width:100%;grid-template-columns:1fr}.hub .share-canvas{max-width:100%}
.card-setup-sheet .sec-title{font-size:24px}.setup-progress{display:flex;gap:6px;margin:12px 0 20px;font-size:11px}.setup-progress span{flex:1;border-bottom:2px solid var(--line);padding:8px 0;color:var(--muted)}.setup-progress .on{border-color:var(--pink);color:var(--pink)}
.card-setup-sheet .pub-buttons{display:flex;flex-wrap:wrap;gap:8px}.card-setup-sheet .pub-buttons .btn-primary{margin:0}.card-setup-sheet .pub-preview{margin:14px 0;padding:14px;max-width:100%}.card-setup-sheet .pub-og{max-width:100%}.pub-og small{overflow-wrap:anywhere}
.hub .priv-actions{display:flex;flex-direction:column;gap:0}.hub .priv-actions button,.hub .recovery-summary button{width:100%;justify-content:space-between;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px 8px;background:none;min-height:58px}
.hub .recovery-summary{border:0;background:none;padding:0}.hub .recovery-summary h3{display:block;font-size:13px;padding:8px;color:var(--muted)}.hub .recovery-summary p{font-size:12px;padding:8px;color:var(--muted)}
.me-sheet .priv-buttons .btn-primary{margin:0}.me-sheet .sec-title{font-size:22px;margin-bottom:16px}.me-sheet .priv-box{border:0;padding:0;background:none}.hub .p-foot{margin:24px 0;display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
@media(min-width:1000px){
  .profile-screen.hub{padding:30px 36px 48px 216px}.member-tabs{top:0;bottom:0;left:0;right:auto;width:180px;display:flex;flex-direction:column;justify-content:flex-start;border-top:0;border-right:1px solid var(--line);padding:28px 16px;gap:10px}
  .member-tabs button{flex-direction:row;justify-content:flex-start;padding:16px;gap:14px;font-size:14px;min-height:58px}.hub-brand{display:block;font-family:'Cormorant Garamond',serif;font-size:25px;margin:0 0 34px;white-space:nowrap}.hub-brand em{color:var(--pink)}
  .hub-main{max-width:1160px}.hub-heading{margin-bottom:26px}.hub [data-member-panel=home]{max-width:780px;margin:auto}.hub-total-ring{width:200px;height:200px}.home-skills{grid-template-columns:repeat(6,minmax(0,1fr));margin:34px 0}.home-skills .orb-disc{width:76px;height:76px}
  .home-card-line{font-size:14px;padding:18px}.home-play{margin-top:26px}

  .hub-sheet{inset:0;margin:auto;max-height:88vh;height:fit-content;border-radius:24px;padding:24px;max-width:760px}.card-setup-sheet{width:min(960px,95vw);max-width:960px}.card-setup-sheet .pub-form{position:relative;min-height:460px;padding-right:48%}.card-setup-sheet .pub-preview{position:absolute;right:0;top:0;width:44%;margin:0}.card-setup-sheet .pub-pv-full{font-size:12px}.hub [data-member-panel=card]{max-width:850px;margin:auto}.hub [data-member-panel=me]{max-width:600px;margin:auto}.hub .share-image{grid-template-columns:1fr 1fr}.hub .share-canvas{max-height:480px;object-fit:contain}
}
@media(max-height:740px){.quiz-screen .stage{margin-top:14px}.quiz-screen .orbs{margin-top:10px}.quiz-screen .q-title{font-size:25px}}
@media(prefers-reduced-motion:reduce){.segmented *{transition:none!important}.hub *{scroll-behavior:auto}}

.hub .p-total{display:block;background:none;border:0;padding:0;border-radius:0}
.hub .p-head{box-shadow:none;background:none}

.hub .tree-column h3 button{border:0;background:none;color:inherit;cursor:pointer;display:flex;align-items:center;gap:8px;font-weight:800;font-size:inherit;text-align:left}
.hub [data-member-panel=home]{padding-bottom:85px}
.home-play{position:fixed;bottom:94px;left:16px;right:16px;margin:0;z-index:25;pointer-events:none}.home-play button{pointer-events:auto}
@media(min-width:1000px){.home-play{bottom:36px;left:216px;right:36px}}
.quiz-screen .qcard,.tree-step-sheet .qcard{min-height:0}
.answer-bar .ans-btn:hover{transform:none}

.quiz-screen .quiz-nav .screen-legal{width:100%;margin:0;text-align:center;font-size:10px;min-height:16px}

.member-card-preview{padding:20px;margin:16px auto}
.member-card-preview .pc-medal{width:102px;height:102px;margin-bottom:14px}
.member-card-preview .pc-name{font-size:30px;margin-bottom:6px}
.member-card-preview .pc-title{font-size:20px;margin-bottom:8px}
.member-card-preview .pc-points{font-size:13px;margin-bottom:14px}
.member-card-preview .pc-adult{margin:12px 0}
.member-card-skills{margin-top:10px;font-size:12px;text-align:left}
.member-card-skills summary{cursor:pointer;padding:8px;text-align:center;color:var(--muted)}
.member-card-skills .pc-skills{margin-top:10px}

/* Questions move with their opaque card, across the whole screen; .quiz-screen clips at its edges. */
.quiz-screen .qcard,.tree-step-sheet .qcard{background:linear-gradient(145deg,#3a3054,#2b2447);border:1px solid var(--line);justify-content:safe center}
.tree-step-sheet .qcard{justify-content:flex-start;padding:18px}
.big-ring .segmented{transform:none;--c:#f5cf8e}
.keep-stop{position:absolute;top:0;left:0;margin:0;padding:8px 12px;font-size:13px}
.tree-question .hud{padding-top:44px;position:relative}
.headline-levels{list-style:none;display:grid;gap:8px;margin:18px 0}
.headline-levels li{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-size:13px;color:var(--muted)}
.headline-levels li small{grid-column:2;text-align:right}
.headline-levels li.reached{color:var(--pink);background:#f3c3d90b}
.hub-total-ring{background:none;border:0;color:inherit;cursor:pointer;padding:0}
.focus-tag{position:absolute;bottom:0;left:0;right:0;display:block;font-size:9px;line-height:16px;color:var(--pink);font-weight:800}
.home-skill{position:relative;padding-bottom:16px}
.focus-goal{display:block;font-size:10px;line-height:1.4;margin-top:3px;font-weight:600}
.hub .share-nudge{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;margin:0;border:1px solid var(--line);padding:10px 12px;border-radius:14px;font-size:12px}
.hub .share-nudge p{font:600 13px/1.4 'Nunito Sans',sans-serif;min-width:0}
.hub .share-nudge-btns{display:flex;flex-wrap:nowrap;gap:6px;flex-shrink:0}
.hub .share-nudge button{font-size:11px;padding:8px 10px;min-width:0;min-height:36px}
.hub .tree-after{font-size:10px;line-height:1.4;color:var(--muted)}
@media(max-width:999px){
  .home-skills{gap:14px 10px;margin:16px 0}
  .home-skills .orb{gap:9px}
  .home-skills .orb-disc{width:60px;height:60px}
  .hub .tree-tier{padding-left:42px}
}

/* The local location picker must not cover member controls. */
body.quiet-screens .geo-preview{display:none}
.home-play .btn-primary{flex-direction:column;gap:0;width:min(360px,100%);min-height:62px}

.hub .tree-node.open{border:1px solid var(--c);background:color-mix(in srgb,var(--c) 13%,#211a35);box-shadow:0 0 16px color-mix(in srgb,var(--c) 18%,transparent);color:var(--ink)}
.hub .tree-node.lit{border:1px solid #ffffff13;background:#242332;color:#96939e;box-shadow:none}.hub .tree-node.lit .tree-state,.hub .tree-node.lit .tree-points{color:#96939e}
.hub .tree-node.locked{border:1px solid #ffffff0d;background:#1c182b;opacity:.55;box-shadow:none}.hub .tree-after{font-size:10px;color:var(--muted)}
.hub .tree-folded{border:0;background:none;box-shadow:none;padding:10px 0;color:var(--muted);text-align:left}
.member-tabs button{min-width:0}.member-tabs button span{white-space:normal;line-height:1.2;text-align:center}
.settings-public{margin-bottom:28px}.settings-public h2{font-size:24px;margin-bottom:12px}.settings-visibility{display:flex;align-items:center;justify-content:space-between;padding:16px 8px;border-bottom:1px solid var(--line)}.settings-visibility button{min-width:52px;border:1px solid var(--line);border-radius:999px;padding:5px;background:#191625;cursor:pointer}.settings-visibility button::before{content:'';display:block;width:22px;height:22px;border-radius:50%;background:var(--muted)}.settings-visibility button[aria-checked=true]{background:#f3c3d930}.settings-visibility button[aria-checked=true]::before{margin-left:22px;background:var(--pink)}.settings-public [data-change-profile]{margin-top:10px}.settings-public .form-err{font-size:12px}

@media(min-width:1000px){
  .hub .tree-switch{display:none}.hub .tree-columns{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.hub .tree-column,.hub .tree-column.selected{display:block}.hub .tree-column h3{font-size:12px;padding:10px 4px;min-height:54px}.hub .tree-tier{padding:26px 0 10px;gap:10px}.hub .tree-tier-number{top:3px;left:0}.hub .tree-node{padding:10px;min-height:88px}.hub .tree-label{font-size:12px;line-height:1.4}.hub .tree-points{font-size:10px}.hub .tree-folded{font-size:11px;padding:10px 0}
}



@media(min-width:1000px){.member-tabs button span{text-align:left}}

/* Public profile form: live preview first on phones, alongside the fields on laptops. */
.card-setup-sheet.hub-sheet{width:min(880px,100%);max-width:880px;max-height:96svh;padding:22px 20px}
.card-setup-sheet .sec-title{font-size:28px;margin:0 0 18px}
.card-setup-sheet .pub-form{display:grid;gap:14px;padding:0;min-height:0;grid-template-columns:minmax(0,1fr)}
.card-setup-sheet .pub-form>.pub-preview{display:grid;position:static;grid-row:1;width:100%;margin:0 0 4px;padding:16px;border-style:solid;gap:10px}
.card-setup-sheet .pub-linkset{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.card-setup-sheet .pub-linkset legend{margin-bottom:4px}
.card-setup-sheet .pub-handle{grid-column:1/-1;grid-row:2;margin:0}
.card-setup-sheet .pub-linkset .f-hint,.card-setup-sheet .pub-linkset .err,.card-setup-sheet .pub-new{grid-column:1/-1;margin:0}
.card-setup-sheet .pub-linkset .radio{font-size:12px;min-height:24px}
.card-setup-sheet .pub-linkset .f-hint,.card-setup-sheet .f-hint{font-size:11px;line-height:1.35}
.card-setup-sheet .field{gap:5px}
.card-setup-sheet .field label{font-size:13px}
.card-setup-sheet .field input{min-height:44px;padding:9px 12px}
.card-setup-sheet .check{font-size:13px;line-height:1.4}
.card-setup-sheet .pub-consent{display:flex;font-size:12px;line-height:1.5;margin:4px 0 0}
.signup-profile.card-setup-sheet .pub-consent{display:block}
.card-setup-sheet .pub-consent a{color:var(--pink);text-decoration:underline}
.card-setup-sheet .pub-buttons{position:static;display:flex;gap:12px;padding:0;background:none;grid-column:1/-1}
.card-setup-sheet .pub-buttons .btn-primary{flex:1;min-height:48px;margin:0;padding:12px}
.card-setup-sheet .pub-buttons .btn-ghost{min-height:48px}
.card-setup-sheet .err:empty,.card-setup-sheet .f-hint:empty{display:none}
.card-setup-sheet .pub-preview .pc-mini{padding:0;border:0;background:none;display:grid;grid-template-columns:64px 1fr;text-align:left;gap:2px 14px;box-shadow:none}
.card-setup-sheet .pub-preview .pc-medal{grid-column:1;grid-row:1/5;width:64px;height:64px;margin:0}
.card-setup-sheet .pub-preview .pc-medal .br-in b{font-size:27px}
.card-setup-sheet .pub-preview .pc-name{font-size:28px;grid-column:2}
.card-setup-sheet .pub-preview .pc-title{font-size:17px;grid-column:2}
.card-setup-sheet .pub-preview .pc-points{font-size:11px;grid-column:2}
.card-setup-sheet .pub-preview .pc-adult{font-size:9px;margin:0;grid-column:2}
.card-setup-sheet .pub-pv-full .pc-skills{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0}
.card-setup-sheet .pub-pv-full .pc-skills li{display:flex;justify-content:center;gap:6px;padding:7px 2px;border-radius:10px}
.card-setup-sheet .pub-pv-full .pc-sk,.card-setup-sheet .pub-pv-full .pc-pips{display:none}
.card-setup-sheet .pub-pv-full .pc-ic{font-size:16px}
.card-setup-sheet .pub-og{display:block;padding:0;border:0;background:none;font-size:11px}
.card-setup-sheet .pub-og img{display:none}
.card-setup-sheet .pub-og b{display:none}
.card-setup-sheet .pub-og small{display:block;text-align:center;color:var(--muted)}
@media(min-width:1000px){
 .card-setup-sheet.hub-sheet{padding:30px;max-height:92svh}
 .card-setup-sheet .sec-title{margin-bottom:24px}
 .card-setup-sheet .pub-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:32px;row-gap:18px}
 .card-setup-sheet .pub-form>.pub-preview{grid-column:1;grid-row:1/5;align-self:stretch;align-content:center;padding:24px;gap:24px;margin:0}
 .card-setup-sheet .pub-form>.pub-linkset,.card-setup-sheet .pub-form>.field,.card-setup-sheet .pub-form>.check{grid-column:2}
 .card-setup-sheet .pub-form>.pub-consent{grid-column:1/-1;margin-top:8px}
 .card-setup-sheet .pub-preview .pc-mini{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
 .card-setup-sheet .pub-preview .pc-medal{width:100px;height:100px}
 .card-setup-sheet .pub-preview .pc-medal .br-in b{font-size:40px}
 .card-setup-sheet .pub-preview .pc-name{font-size:36px}
 .card-setup-sheet .pub-preview .pc-title{font-size:22px}
}



.tree-step-sheet .sheet-body{position:relative}
.tree-step-sheet .card-slot,.tree-step-sheet .qcard{height:auto}
.tree-step-sheet .answer-bar{margin-top:166px}
.tree-step-sheet .levelup-notices{position:absolute;top:auto;bottom:66px;margin:0}
.hud-total .count{width:4ch;flex:none}

/* Shared spacing and content-sized cards. */
.quiz-screen .hud,.quiz-screen .orbs{flex-shrink:0}
.quiz-screen .stage{margin-top:24px}
.quiz-screen .qcard{min-height:240px;padding:var(--space-card)}
.quiz-screen .q-body{margin-top:16px}
.quiz-screen .step-multi{min-height:0;padding:16px}
.quiz-screen .step-multi .chips{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.quiz-screen .step-multi .chip{min-height:52px;padding:10px 12px;gap:8px;font-size:14px;border-radius:16px}
.quiz-screen .step-multi .chip-check{width:20px;height:20px}
.tree-step-sheet .qcard{padding:var(--space-card);gap:16px}
.tree-step-sheet .tree-relations{margin-top:16px;gap:16px}
.tree-relations h3{margin-bottom:var(--space-label)}
.tree-step-sheet.hub-sheet{max-height:96svh}
.res-rows{grid-auto-rows:1fr;gap:12px;margin-top:24px}
.res-row{grid-template-columns:32px 16ch minmax(32px,1fr) auto 48px;min-height:52px;padding:12px;gap:12px}
.res-name{white-space:nowrap}
.res-lvl,.res-pts{white-space:nowrap}
.home-card-line{display:block;margin-bottom:var(--space-section);padding:16px}
.home-card-line>p{font-size:12px;color:var(--muted);margin-bottom:12px}
.publication-confirmation{margin-bottom:16px;color:#9ff0c4}
.hub .tree-heading{margin-bottom:24px}
.hub .tree-heading p{margin-top:var(--space-label)}
.hub .tree-node{padding:16px;gap:8px;flex-shrink:0}
.hub .tree-points{margin-top:auto}
.hub .tree-column h3{margin-bottom:16px}
.hub .tree-tier{gap:12px;padding-bottom:16px}
.hub .tree-tier-number{top:16px}
.hub .pub>.sec-title,.me-sheet .sec-title,.card-setup-sheet .sec-title{margin-bottom:var(--space-label)}
.settings-public{margin-bottom:var(--space-section)}
.settings-public h2{margin-bottom:var(--space-label)}
.settings-visibility{padding:16px 0}
.settings-public [data-change-profile]{margin-top:16px}
.hub .priv{gap:16px}
.hub .recovery-summary{gap:16px;margin-top:16px}
.hub .recovery-summary h3,.hub .recovery-summary p{padding:0}
.hub .priv-actions button,.hub .recovery-summary button{height:64px;padding:16px 0;line-height:1.4}
.hub .priv-actions{gap:0}
.me-sheet .priv-box{gap:16px}
.me-sheet .priv-buttons{gap:12px}
.me-sheet .priv-buttons button{min-height:48px}
@media(max-width:640px){
 .quiz-screen .step-multi .chips{grid-template-columns:repeat(2,minmax(0,1fr))}
 .quiz-screen .step-multi .chip{font-size:13px;padding:8px;min-height:52px}
 .quiz-screen .step-multi .q-title{font-size:25px}
 .quiz-screen .step-multi .q-sub{font-size:14px;line-height:1.5}
 .res-row{grid-template-columns:24px minmax(0,1fr) auto 40px;gap:8px;font-size:14px}
 .res-row .bar{grid-column:1/-1;grid-row:2}
 .res-lvl{font-size:11px;padding:3px 8px}
 .results-screen .panel{padding:24px 16px}
}
@media(min-width:1000px){
 .hub .tree-node{padding:12px}
 .hub .tree-tier{padding-top:32px}
 .hub .tree-tier-number{top:8px}
}
@media(max-height:740px){
 .quiz-screen .stage{margin-top:16px}
 .quiz-screen .qcard{min-height:200px}
 .quiz-screen .step-multi{min-height:0}
 .quiz-screen .q-title{font-size:25px}
}
.quiz-screen .step-single .opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quiz-screen .step-single .opt{min-height:52px;padding:12px;gap:8px;font-size:14px}
@media(max-height:740px){.quiz-screen .ask-card{min-height:160px}}
/* A sheet keeps its answer row still while its question changes. */
.tree-step-sheet[open]{display:flex;flex-direction:column;height:96svh}
.tree-step-sheet .sheet-head{flex:none}
.tree-step-sheet .sheet-body{display:flex;flex-direction:column;flex:1;min-height:0}
.tree-step-sheet .card-slot{flex:none;margin-bottom:154px}
.tree-step-sheet .answer-bar{flex:none;margin-top:auto}
.tree-step-sheet .tree-relations{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.headline-levels,.skill-levels{grid-auto-rows:1fr}
@media(min-width:1000px){.tree-step-sheet[open]{height:min(720px,96svh)}}
/* Sheets share their padding; field labels stay closer than section labels. */
.hub-sheet,.card-setup-sheet.hub-sheet{padding:24px}
.field,.card-setup-sheet .field{gap:8px}
@media(max-width:999px){.hub-sheet,.card-setup-sheet.hub-sheet{padding:16px}}
/* Related steps belong to the sheet, so a long list never stretches a question card. */
.tree-step-sheet .qcard{min-height:240px;justify-content:center}
.tree-step-sheet .card-slot{margin-bottom:0}
.tree-notice-slot{position:relative;flex:none}
.tree-notice-slot:not(:empty){height:142px;margin-top:12px}
.tree-step-sheet .levelup-notices{top:0;bottom:auto}
.tree-relations-container{flex:none;margin:24px 0}
.tree-step-sheet .tree-relations{margin-top:0}
.tree-step-sheet .answer-bar{position:sticky;bottom:0;background:#241d3b;z-index:10;box-shadow:0 -12px 0 #241d3b}
.tree-column-head{display:flow-root}

/* Keep the Home action after the complete row of orbs and labels. */
.home-play{position:static;margin:18px 0 0;pointer-events:auto}
@media(min-width:1000px) and (max-height:760px){
 .hub-total-ring{width:140px;height:140px}
 .hub .home-skills{margin:20px 0}
 .home-card-line{margin-bottom:20px}
}

/* Home keeps its action in the heading, clear of the complete orb row. */
.hub-heading .home-play{margin:0;position:static;flex-shrink:0}
.hub-heading .home-play .btn-primary{width:auto;min-width:0;min-height:44px;padding:8px 16px;font-size:14px}
.hub .p-head>.focus-goal{font-size:10px;line-height:1.4;color:var(--muted)}
@media(max-width:999px){.home-skills{margin:12px 0}.hub-total-ring{width:144px;height:144px}}
