#hybrid-root{width:100%;color:#e9eefb;font-family:system-ui,sans-serif}#hybrid-root [hidden]{display:none!important}#hybrid-root button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}#hybrid-root button:disabled{opacity:.45;cursor:default}#hybrid-root button:focus-visible{outline:2px solid #9bd8ff;outline-offset:2px}
#hhome{max-width:1040px;margin:auto;padding:28px 12px 18px}.hh-heading{text-align:center}.hh-heading>small{color:#8cabe8;letter-spacing:4px;font-size:11px}.hh-heading h1{font-size:34px;margin:12px 0}.hh-heading p{color:#a6b3cb;font-size:14px}.hh-actions{display:flex;justify-content:center;gap:8px;margin-bottom:22px}.hh-actions button{padding:10px 14px;background:#273758;border:1px solid #52688f;border-radius:10px}#hh-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hh-level{display:flex;align-items:center;text-align:left;gap:12px;background:#1d2943;border:1px solid #394e70;border-radius:16px;padding:18px 14px;min-height:132px}.hh-level.complete{border-color:#66b3a1}.hh-icon{font-size:30px}.hh-level>span:nth-child(2){flex:1;min-width:0}.hh-level strong,.hh-level small{display:block}.hh-level strong{font-size:15px;margin:5px 0}.hh-level small{font-size:11px;line-height:1.7;color:#9daccc}.hh-stars{font-size:13px;color:#ffdd78}#hhome footer{text-align:center;color:#8d9dbb;font-size:12px;margin:28px 0 6px;line-height:1.8}
body.hybrid-playing{overflow:hidden;overscroll-behavior:none}body.hybrid-playing #gw{padding:0!important;margin:0 auto!important;max-width:none!important;border:0!important;min-height:0!important}body.hybrid-playing #prototype-panel{display:none!important}#hgame{height:100dvh;max-height:1100px;max-width:650px;margin:auto;padding:14px 16px max(12px,env(safe-area-inset-bottom));box-sizing:border-box;display:flex;flex-direction:column;gap:10px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.hg-heading{display:grid;grid-template-columns:44px 1fr 44px;gap:12px;align-items:center}.hg-heading strong{text-align:center;font-size:17px}.hg-heading button{height:42px;border:1px solid #52698d;background:#243755;border-radius:12px}.hg-stats{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:8px}.hg-stats>div{text-align:center;padding:9px 4px;background:#202c47;border:1px solid #354568;border-radius:12px}.hg-stats small{display:block;color:#9bafd0;font-size:11px}.hg-stats b{font-size:24px;line-height:1.4}.hg-stats .hg-goal b{color:#ffdd81}#hg-progress{width:100%;height:5px;appearance:none;border:0;background:#2a3450;border-radius:5px}#hg-progress::-webkit-progress-bar{background:#2a3450;border-radius:5px}#hg-progress::-webkit-progress-value{background:#8edcc1;border-radius:5px}.hg-tools{display:flex;gap:7px}.hg-tools button{flex:1;border:1px solid #465d82;background:#22324e;border-radius:10px;height:40px;white-space:nowrap;font-size:14px}.hg-tools button span{font-size:11px}.hg-tools button:nth-last-child(-n+2){flex:0 0 38px}.hg-tools .armed{background:#875c28;border-color:#ffe097}#hg-notice{font-size:12px;color:#afc1dd;text-align:center;min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hg-stage{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;padding:10px;overflow:visible}#hg-board{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(8,1fr);gap:5px;width:min(100%,calc((100dvh - 255px)*.75));aspect-ratio:6/8;max-height:100%;position:relative}.hg-tile{position:relative;min-width:0;min-height:0;border:1px solid #a9b6c9;border-radius:10px;padding:0;background:linear-gradient(145deg,#f3f3ed,#dfe8f4);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #52617d;overflow:hidden}.hg-tile img{width:82%;height:82%;object-fit:contain;pointer-events:none}.hg-tile.picked{outline:3px solid #72cfff;outline-offset:0;box-shadow:0 0 18px #4b9ef7}.hg-tile.locked{background:#77859d}.hg-tile.locked img{opacity:.65}.hg-tile.locked span{position:absolute;bottom:1px;right:2px;font-size:12px;background:#16233bdf;border-radius:5px;padding:1px 3px}.hg-tile.empty{visibility:hidden}.hg-tile.hint{outline:3px solid #ffdd76}.hg-tile.vanish{animation:h-pop .3s ease-in forwards}.hg-tile.burst{animation:h-burst .3s ease-in forwards}#hg-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}#hg-lines polyline{fill:none;stroke:#ffd36a;stroke-width:4;stroke-linejoin:round;filter:drop-shadow(0 0 3px #f29d3d)}#hg-feedback{height:20px;font-size:14px;font-weight:700;color:#ffdc80;text-align:center}
@keyframes h-pop{35%{transform:scale(1.12);filter:brightness(1.3)}100%{transform:scale(.55);opacity:0}}@keyframes h-burst{40%{transform:scale(1.18) rotate(3deg);box-shadow:0 0 24px #ffd36a}100%{transform:scale(.2) rotate(-12deg);opacity:0}}
#hmodal{background:#1c2944;color:#edf2fd;border:1px solid #63799c;border-radius:22px;width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 48px);padding:26px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;font-family:system-ui,sans-serif;text-align:center}#hmodal::backdrop{background:#050919cf}#hmodal h2{font-size:25px;margin:10px 0 18px}#hmodal p{color:#afbed5;font-size:13px;line-height:1.8}#hmodal ol{text-align:left;padding-left:24px;color:#c4d1e5;font-size:14px;line-height:1.7}#hmodal li{margin:9px 0}.hm-score{font-size:54px;font-weight:800;color:#ffdc80}.hm-score small{font-size:16px}.hm-summary{display:flex;gap:12px;justify-content:center;margin:18px 0}.hm-summary span{background:#142039;padding:12px;border-radius:10px;font-size:13px}#hm-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px;justify-content:center}#hm-actions button{background:#2e466e;border:1px solid #6686b2;color:#eff6ff;padding:12px 16px;border-radius:12px;font:inherit;cursor:pointer}#hm-actions button:first-child{background:#edce82;color:#16233b;border-color:transparent}
@media(max-width:650px){#hhome{padding:18px 0 8px}.hh-heading h1{font-size:28px}#hh-levels{grid-template-columns:1fr}.hh-level{min-height:94px;padding:14px 18px}.hh-level strong{font-size:15px}#hgame{padding:10px 9px max(6px,env(safe-area-inset-bottom));gap:7px}.hg-heading strong{font-size:15px}.hg-stats>div{padding:6px}.hg-stats b{font-size:22px}.hg-tools button span{font-size:10px}.hg-stage{padding:9px}#hg-board{gap:4px;width:min(100%,calc((100dvh - 231px)*.75))}.hg-tile{border-radius:7px}#hg-feedback{font-size:12px}}
@media(max-height:600px){#hgame{gap:4px;padding-top:5px}.hg-heading button{height:32px}.hg-stats b{font-size:18px}.hg-stats>div{padding:3px}.hg-tools button{height:32px}#hg-board{width:min(100%,calc((100dvh - 192px)*.75))}#hg-feedback{height:16px}}
@media(prefers-reduced-motion:reduce){.hg-tile.vanish,.hg-tile.burst{animation:none;opacity:.25}}
.hg-stage{overflow:hidden}#hg-board{width:100%;height:100%;max-width:540px;max-height:650px;aspect-ratio:auto}.hybrid-preview{margin:18px 0;color:#a7bddf;font-size:12px}.hybrid-preview>div{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}.hybrid-preview button{padding:8px;border:1px solid #536c92;border-radius:8px;background:#273754}
body.hybrid-playing{padding:0!important;height:100dvh;min-height:0!important}body.hybrid-playing #gw{width:100%!important}

.hg-tile.picked{outline:3px solid #419eff;outline-offset:-3px;background:#c8e4ff;box-shadow:inset 0 0 0 5px #e3f3ff,0 0 12px #419eff55}
#hmodal.result-modal #hm-actions{display:grid;grid-template-columns:1fr 1.7fr;gap:12px}
#hmodal.result-modal #hm-actions button:first-child{grid-column:2;grid-row:1;min-height:50px;background:#edd48b;color:#182239;font-weight:750}
#hmodal.result-modal #hm-actions button:nth-child(2){grid-column:1;grid-row:1;background:transparent;color:#b8c7df}
#hmodal.result-modal #hm-actions button:nth-child(3){grid-column:1/-1;background:transparent;border-color:transparent;color:#9babc6;font-size:13px;padding:6px;min-height:30px}
.hm-next-note{font-size:13px;color:#aebfd9;margin:14px 0 0}

#hh-levels{grid-template-columns:repeat(4,minmax(0,1fr))}
.hh-unit{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;border-left:4px solid var(--unit-color);padding:10px 16px;margin-top:20px;background:linear-gradient(90deg,#26334b,transparent);border-radius:0 12px 12px 0}
.hh-unit small,.hh-unit p{color:#aebbd1;font-size:12px;margin:0}.hh-unit h2{color:var(--unit-color);font-size:18px;margin:6px 0}.hh-unit>span{color:var(--unit-color);font-size:18px;font-weight:700}.hh-level{border-top:3px solid var(--unit-color);min-width:0;gap:8px;padding:14px 10px}.hh-level .hh-icon{font-size:24px}
@media(max-width:900px){#hh-levels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#hh-levels{grid-template-columns:1fr}.hh-level{padding:14px 18px}.hh-unit{margin-top:14px}}

.hg-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
.hg-tools button span{font:11px/14px system-ui,sans-serif;white-space:nowrap}

/* Restore native dialog centering after the global margin reset. */
#hmodal{position:fixed;inset:0;margin:auto;touch-action:pan-y}


.hg-stats .hg-goal{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hg-goal>div{min-width:0}#hg-goal-help{flex:0 0 38px;width:38px;height:44px;padding:2px;border:1px solid #8db9ce;border-radius:8px;background:#e4ecf5}#hg-goal-image{width:100%;height:100%;object-fit:contain;pointer-events:none}.hm-target-portrait{width:120px;height:140px;object-fit:contain;margin:4px auto 12px}@media(max-width:360px){#hg-goal-help{flex-basis:30px;width:30px;height:38px}.hg-goal #hg-goal-value{font-size:18px}.hg-goal #hg-goal-label{font-size:10px}}


#hhome #inf-entry{margin-top:24px!important}#hhome #inf-entry-btn{min-height:124px}#hhome #inf-entry-btn>div:first-child{color:#f1c40f}#hhome #inf-entry-btn>div:nth-child(2){font-size:18px!important}@media(max-width:650px){#hhome.endless-ready{padding-bottom:110px}#hhome.endless-ready:has(#endless-dock.entry-visible){padding-bottom:8px}}


/* Complete outlines distinguish available, pending and locked levels. */
.hh-level{border:1px solid #53647e;border-radius:16px;box-shadow:inset 0 3px 0 var(--unit-color)}
.hh-level:disabled{border:1px solid #354158;box-shadow:none;background:#192236;opacity:.7}
.hh-level:not(:disabled):not(.complete){border-color:var(--unit-color);background:linear-gradient(135deg,#2a3951,#202b42)}
#hmodal.result-modal #hm-content>small{display:inline-block;padding:6px 14px;border:1px solid #85754a;border-radius:999px;background:#ecd38a14;color:#efd993;letter-spacing:2px}
#hmodal.result-modal h2{margin:16px 0 8px;font-size:29px;color:#fff2cb}
#hmodal.result-modal .hm-score{padding:12px 0;background:radial-gradient(ellipse,#edd48b16,transparent 72%)}
#hg-feedback{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}

#hg-feedback[data-combo="medium"]{color:#ffe3a1;text-shadow:0 0 8px #ffcf6866}#hg-feedback[data-combo="strong"]{color:#fff2cb;background:radial-gradient(ellipse,#dba83a33,transparent 75%);text-shadow:0 0 12px #ffd36a}#hg-vibration{font-size:11px}.hg-tools{grid-template-columns:repeat(6,minmax(0,1fr))}

#personality-entry{width:100%;padding:18px;margin:14px 0;border:1px solid #83cda6;border-radius:16px;background:#243b3c;color:#d9f4e6;text-align:left;font:600 16px system-ui;cursor:pointer}
#personality-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;background:#1c2944;color:#eef2fd;border:1px solid #63799c;border-radius:22px;padding:24px;font-family:system-ui;line-height:1.8}#personality-dialog::backdrop{background:#080d19dd}#personality-dialog img{display:block;width:110px;height:140px;object-fit:contain;margin:12px auto}#personality-dialog button{cursor:pointer;padding:13px;border-radius:12px;border:1px solid #536789;background:#273953;color:#e9efff;font:600 14px system-ui}.personality-actions{display:grid;gap:10px;margin:20px 0}.personality-actions button:first-child{background:#efd690;color:#18243c}.personality-actions button:nth-child(2){background:#f5e8c4;color:#34415b}#personality-dialog small{color:#a8b6ce}

.personality-scene{display:flex;align-items:center;justify-content:center;gap:12px}.personality-scene img{max-width:80px}.personality-dimensions{padding:12px;border-radius:12px;background:#243b3c}
#hg-board{position:relative}#hg-board[data-celebrate="medium"]::after,#hg-board[data-celebrate="strong"]::after{content:'✦　✧　✦';position:absolute;inset:0;pointer-events:none;text-align:center;color:#ffe3a1;font-size:25px;border-radius:18px;animation:combo-glow .5s ease-out forwards}#hg-board[data-celebrate="strong"]::after{border:2px solid #ffe3a1;box-shadow:inset 0 0 24px #ffd36a88,0 0 20px #ffd36a55;animation-duration:.7s}@keyframes combo-glow{from{opacity:1;transform:scale(.98)}to{opacity:0;transform:scale(1.02)}}@media(prefers-reduced-motion:reduce){#hg-board[data-celebrate]::after{display:none}}

/* Invitation hierarchy: one primary action, a quiet close and plain footnote. */
#personality-dialog{padding-top:48px}
#personality-dialog .personality-close{position:absolute;top:10px;right:10px;width:36px;height:36px;padding:0;border:0;background:transparent;color:#9baac0;font:26px/36px system-ui;border-radius:50%}
#personality-dialog .personality-close:hover{background:#ffffff0c;color:#eef2fd}
#personality-dialog .personality-close:focus-visible{outline:2px solid #efd690;outline-offset:2px}
#personality-dialog>h2{font-size:23px;line-height:1.4;margin:0 0 10px}
#personality-dialog>p{font-size:14px;line-height:1.8;color:#b8c5d9}
#personality-dialog>small{display:block;text-align:center;color:#8190a7;font-size:11px;line-height:1.6;background:none;border:0;padding:0;cursor:default}
#personality-dialog.personality-intro .personality-actions button:first-child{background:#efd690;color:#18243c;border-color:#efd690;font-weight:750}
#personality-dialog.personality-intro .personality-actions button:nth-child(2){background:#273953;color:#e9efff;border-color:#536789}
#personality-dialog .personality-ensemble{display:flex;justify-content:center;align-items:flex-end;gap:4px;margin:22px 0 26px;padding:12px 0;background:radial-gradient(ellipse,#62758c20,transparent 70%)}
#personality-dialog .personality-ensemble img{width:23%;height:125px;min-width:0;object-fit:contain;margin:0}
#personality-dialog .personality-ensemble img:nth-child(2),#personality-dialog .personality-ensemble img:nth-child(3){height:142px}
@media(max-width:360px){#personality-dialog>h2{font-size:21px}#personality-dialog .personality-ensemble img{height:105px}#personality-dialog .personality-ensemble img:nth-child(2),#personality-dialog .personality-ensemble img:nth-child(3){height:120px}}

/* Confirmed prototype layout, scoped to the personality journey. */
#personality-dialog{width:min(420px,calc(100vw - 24px));background:#191f35;padding:42px 22px 24px;line-height:1.65}
#personality-dialog>h2{font-size:25px;line-height:1.4;margin:8px 0 18px}#personality-dialog h3{font-size:16px;margin:0 0 6px}
#personality-dialog .pq-info{display:flex;gap:14px;align-items:center;margin:18px 0}#personality-dialog .pq-info p{margin:0;font-size:12px;color:#b5c2d8}
#personality-dialog .pq-mini{width:66px;height:66px;flex:none;display:flex;align-items:center;justify-content:center;background:#304151;border-radius:14px;font-size:26px}#personality-dialog .pq-mini img{width:60px;height:60px;margin:0}
#personality-dialog .pq-card{padding:16px;background:#222d47;border:1px solid #3c4e6b;border-radius:16px;margin:16px 0}.pq-axes{font-size:13px;line-height:2.2}
#personality-dialog .personality-actions>button:first-child{background:#efd690;border-color:#efd690;color:#18243c}#personality-dialog .personality-actions>button:disabled{opacity:.45;cursor:default}
#personality-dialog .pq-art{display:flex;align-items:center;justify-content:center;height:126px;gap:8px;background:radial-gradient(ellipse,rgba(72,210,153,.30) 0%,rgba(110,229,181,.15) 38%,rgba(110,229,181,0) 72%);margin:10px 0}#personality-dialog .pq-art img{width:80px;height:118px;margin:0}.pq-art>span{font-size:24px}
#personality-dialog .pq-options{display:grid;gap:10px}#personality-dialog .pq-options button{width:100%;text-align:left;padding:13px;background:#242f48;border:1px solid #53617c;font-size:14px}#personality-dialog .pq-options small{display:block;font-size:11px;color:#a8bad3;margin-top:5px}#personality-dialog .pq-options button[aria-pressed=true]{border-color:#8dd6bc;background:#294844;box-shadow:inset 0 0 0 1px #8dd6bc}
.pq-kicker{color:#edd48b;font-size:12px;letter-spacing:2px}.pq-count{font-size:12px;color:#a8b6ce}#personality-dialog progress{display:block;width:100%;height:5px;accent-color:#8bd1b8;margin:14px 0}
.pq-result{text-align:center}.pq-tag{font-size:11px;border-radius:20px;background:#334a57;color:#a7e4ca;padding:5px 9px}.pq-type{font-size:48px;letter-spacing:4px;font-weight:800;color:#b4e7cb}.pq-result p{font-size:13px;color:#a8b6ce}.pq-scale{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#9eafc9;margin:12px 0}.pq-scale .active{color:#b4e7cb;font-weight:700}.pq-note{padding:12px;background:#171e30;border-radius:10px;font-size:12px;color:#aabbcf}
#personality-entry{display:flex;align-items:center;gap:14px}#personality-entry img{width:52px;height:68px;object-fit:contain}#personality-entry strong,#personality-entry small{display:block}#personality-entry small{font-size:12px;color:#a8b6ce}#personality-entry strong{font-size:22px;margin:4px 0}

.hg-stage{position:relative}#combo-overlay{position:absolute;inset:0;pointer-events:none;z-index:5;display:grid;place-items:center;--combo-color:#78ddff;--combo-scale:1}#combo-overlay.combo-tier-mid{--combo-color:#ffda69;--combo-scale:1.18}#combo-overlay.combo-tier-high{--combo-color:#ead0ff;--combo-scale:1.42}
.combo-badge{position:absolute;display:grid;text-align:center;justify-items:center;color:var(--combo-color);filter:drop-shadow(0 3px 2px #101726);animation:combo-arrive .8s ease-out both;transform:scale(var(--combo-scale))}.combo-badge b{font:900 62px/.95 system-ui;-webkit-text-stroke:1px #fff8;text-shadow:0 0 22px var(--combo-color)}.combo-badge span{font:800 16px system-ui;letter-spacing:5px}.combo-badge small{font:700 12px system-ui;margin-top:7px;padding:4px 12px;border-radius:20px;background:#17243be8;color:#fff}
.combo-tier-low .combo-badge{top:12%;}.combo-tier-mid .combo-badge,.combo-tier-high .combo-badge{top:30%}.combo-halo{position:absolute;width:150px;height:150px;border:3px solid var(--combo-color);border-radius:50%;box-shadow:0 0 25px var(--combo-color),inset 0 0 16px var(--combo-color);animation:combo-ring .95s ease-out both}.combo-tier-low .combo-halo{display:none}.combo-tier-high .combo-halo{width:210px;height:210px;border:6px double #ecc27e;animation-duration:1.2s;outline:2px solid #bf8bff;outline-offset:12px}
#combo-overlay i{position:absolute;color:var(--combo-color);font:24px system-ui;animation:combo-spark .9s ease-out both}.combo-tier-high i{font-size:32px}
@keyframes combo-arrive{0%{opacity:0;transform:scale(.45) rotate(-8deg)}20%{opacity:1;transform:scale(calc(var(--combo-scale)*1.12)) rotate(2deg)}65%{opacity:1}100%{opacity:0;transform:translateY(-24px) scale(var(--combo-scale))}}
@keyframes combo-ring{0%{opacity:0;transform:scale(.4)}20%{opacity:.9}100%{opacity:0;transform:scale(1.35)}}@keyframes combo-spark{0%{opacity:0;transform:rotate(var(--angle)) translateX(15px)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) rotate(90deg)}}
@media(prefers-reduced-motion:reduce){#combo-overlay i,#combo-overlay .combo-halo{display:none}#combo-overlay .combo-badge{animation:none;transform:none;top:12%;opacity:1}}

.hh-actions:not(:has(button:not([hidden]))){display:none}
.personality-discovery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0}.personality-discovery #personality-entry{width:100%;margin:0;box-sizing:border-box;min-width:0}.personality-discovery #personality-atlas{display:flex;align-items:center;gap:14px;text-align:left;padding:18px;border:1px solid #9484b8;border-radius:16px;background:linear-gradient(125deg,#302d49,#242d43);color:#eee9ff;min-width:0}.atlas-symbol{font-size:44px;color:#d3baff}#personality-atlas small,#personality-atlas strong{display:block}#personality-atlas small{font-size:12px;color:#b3b8d2}#personality-atlas strong{font-size:20px;margin:5px 0}
#personality-atlas-dialog{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;padding:24px;background:#191f35;color:#e9eefb;border:1px solid #63799c;border-radius:22px;font-family:system-ui}#personality-atlas-dialog::backdrop{background:#080d19dd}#personality-atlas-dialog header{display:flex;justify-content:space-between;align-items:center}#personality-atlas-dialog header small{font-size:10px;color:#aaa2cb;letter-spacing:2px}#personality-atlas-dialog h2{margin:5px 0}#personality-atlas-dialog header button{width:40px;height:40px;border:0;background:transparent;color:#b7c6df;font-size:28px;cursor:pointer}#personality-atlas-dialog>p{color:#a8b6ce;font-size:13px}.atlas-groups h3{color:var(--atlas-color);font-size:16px;margin:24px 0 12px}.atlas-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.atlas-grid article{background:#222d47;border:3px solid #40516c;border-radius:14px;padding:14px;text-align:center;min-width:0}.atlas-grid img{width:100%;height:118px;object-fit:contain}.atlas-grid strong,.atlas-grid span{display:block}.atlas-grid strong{font-size:17px;margin:8px 0 4px}.atlas-grid span{color:var(--atlas-color);font-size:13px;letter-spacing:1px}.atlas-grid p{font-size:12px;color:#a8b6ce;line-height:1.7;margin:10px 0 0}
@media(max-width:650px){.personality-discovery{gap:8px}.personality-discovery #personality-entry,.personality-discovery #personality-atlas{padding:12px;gap:8px}#personality-entry img{width:34px;height:52px}#personality-atlas strong{font-size:15px}#personality-atlas small,#personality-entry small{font-size:10px}.atlas-symbol{font-size:26px}.atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#personality-atlas-dialog{padding:18px}.atlas-grid article{padding:10px}}

#qb .quiz-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-8px 0 20px;padding-bottom:12px;border-bottom:1px solid #a9bbd51a;text-align:left}#qb .quiz-actions{display:grid;justify-items:stretch;gap:8px;margin-top:12px}
#qb #qcont{min-height:48px;border:0;border-radius:12px;background:#edd48b;color:#182239;font:750 16px/1.4 system-ui;cursor:pointer}
#qb #qr.ok{color:#206143}
#qb #quiz-home{justify-self:stretch;min-height:44px;padding:10px 16px;border:1px solid #526582;border-radius:12px;background:#293550;color:#dce5f5;font:500 14px/1.4 system-ui;cursor:pointer}
#qb .quiz-actions button:focus-visible{outline:2px solid #efd690;outline-offset:2px}
.quiz-navigation-label{font-size:11px;letter-spacing:2px;color:#7486a6}#qb #qq{line-height:1.6;margin-bottom:18px}

#hhome #achievement-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:12px 0 16px;flex-wrap:wrap}#hhome #achievement-actions[hidden]{display:none}#hhome #share-level-choice{flex:1;min-width:0;max-width:340px;padding:12px;border:1px solid #52688f;border-radius:10px;background:#202d46;color:#d9e5f6}#hhome #share-level-home{padding:12px 16px;border:1px solid #8b805f;border-radius:10px;background:#2d3549;color:#efd690}#hh-poster:disabled{opacity:.65}

#hhome .hh-actions{justify-content:stretch;flex-wrap:wrap;margin:14px 0 22px}#hhome #hh-endless-shortcut{flex:1;min-height:48px;background:linear-gradient(110deg,#eed48b,#d7b76a);color:#1b2540;border-color:#eed48b;font-weight:750}#hhome #hh-endless-shortcut:disabled{background:#273758;color:#aebbd1;border-color:#52688f;opacity:1}#hhome #hh-poster{flex:1;min-height:48px}

/* Shared rhythm for invitation, introduction, questions and results. */
#personality-dialog{padding:44px 24px 22px;width:min(440px,calc(100vw - 24px))}
#personality-dialog>h2{font-size:25px;line-height:1.4;margin:0 0 20px;text-align:left;letter-spacing:-.4px}
#personality-dialog .personality-actions{margin:24px 0 16px;gap:10px}
#personality-dialog .personality-actions>button{min-height:48px;padding:13px 16px;line-height:1.4;width:100%;box-sizing:border-box}
#personality-dialog>small{margin:0;font-size:11px;line-height:1.7}
#personality-dialog .pq-info{gap:14px;margin:16px 0}#personality-dialog .pq-info h3{line-height:1.5}
#personality-dialog .pq-axes{display:block;padding:16px 20px;margin:20px 0;line-height:2.2}
#personality-dialog .pq-info-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;margin-top:18px}
#personality-dialog .pq-info-columns .pq-info{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0;padding:14px 12px;background:#202a40;border:1px solid #35435c;border-radius:14px;min-width:0}
#personality-dialog .pq-info-columns .pq-mini{width:44px;height:44px;font-size:22px;border-radius:12px}
#personality-dialog .pq-info-columns h3{font-size:13px;line-height:1.6;margin:0 0 8px;min-height:42px}
#personality-dialog .pq-info-columns p{font-size:12px;line-height:1.8}
#personality-dialog[data-page=question] .pq-kicker{margin:0 0 12px}#personality-dialog[data-page=question] progress{margin:0 0 10px;height:5px}
#personality-dialog[data-page=question] .pq-count{margin:0 0 12px;font-size:12px}
#personality-dialog[data-page=question]>h2{font-size:24px;margin:0 0 10px;line-height:1.5}
#personality-dialog[data-page=question] .pq-art{height:130px;margin:8px 0 20px}#personality-dialog .pq-options{gap:12px}
#personality-dialog .pq-options button{min-height:58px;padding:16px;line-height:1.65;font-weight:500}
#personality-dialog[data-page=result] .pq-result{margin:8px 0 20px}#personality-dialog[data-page=result] .pq-art{height:128px;margin:8px 0 0}#personality-dialog[data-page=result] .pq-art img{height:146px;width:110px;flex:none}#personality-dialog[data-page=result] .pq-type{line-height:1.1}
#personality-dialog .pq-scale{align-items:center;margin:0;padding:10px 0;line-height:1.6}#personality-dialog .pq-scale+.pq-scale{border-top:1px solid #ffffff08}
#personality-dialog[data-page=retest]>p{line-height:1.9}
@media(max-width:360px){#personality-dialog{padding:42px 18px 20px}#personality-dialog>h2,#personality-dialog[data-page=question]>h2{font-size:22px}#personality-dialog .pq-info-columns{gap:8px}#personality-dialog .pq-info-columns .pq-info{padding:12px 10px}#personality-dialog .pq-info-columns h3{font-size:12px}#personality-dialog .pq-info-columns p{font-size:11px}}

#personality-dialog[data-page=result]>h2,#personality-dialog[data-page=result] .pq-note{text-align:center}
#personality-dialog[data-page=tie] .personality-actions>button{background:#273953;color:#e9efff;border:1px solid #536789;font-weight:600;box-shadow:none}
#personality-dialog[data-page=tie] .personality-actions>button:hover{background:#344761;border-color:#8199bc}
#personality-dialog[data-page=tie] .personality-actions>button:focus-visible{outline:2px solid #9bd8ff;outline-offset:3px}

/* Matching discovery cards before and after the personality test. */
.personality-discovery #personality-entry,.personality-discovery #personality-atlas{display:flex;align-items:center;gap:14px;padding:18px;min-height:112px;border-radius:16px;text-align:left;font-family:system-ui,sans-serif;box-sizing:border-box}
.personality-discovery #personality-entry{background:linear-gradient(125deg,#263d3e,#24323d);border-color:#638c7d}
.personality-discovery .discovery-copy{display:block;flex:1;min-width:0}.personality-discovery .discovery-copy strong{font:700 20px/1.4 system-ui,sans-serif;margin:4px 0;color:#edf2fd}.personality-discovery .discovery-copy small{font:400 12px/1.6 system-ui,sans-serif;color:#aebed0;display:block}
.personality-discovery .discovery-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:#ffffff09;color:#a8dfc6;font-size:32px}.personality-discovery #personality-atlas .discovery-icon{color:#d3baff}
.personality-discovery .discovery-arrow{flex:none;color:#b4c9d6;font-size:22px;line-height:1}.personality-discovery button:hover .discovery-arrow{color:#fff}.personality-discovery #personality-entry img{width:64px;height:80px;flex:none;object-fit:contain}
@media(max-width:650px){.personality-discovery #personality-entry,.personality-discovery #personality-atlas{padding:14px 12px;gap:8px;min-height:126px;position:relative;align-items:flex-start}.personality-discovery .discovery-icon{display:none}.personality-discovery #personality-entry img{display:block;width:clamp(38px,12vw,56px);height:64px;align-self:center}.personality-discovery .discovery-copy strong{font-size:17px;margin:6px 0}.personality-discovery .discovery-copy small{font-size:10px}.personality-discovery .discovery-arrow{position:absolute;bottom:10px;right:12px;font-size:20px}}

#combo-overlay,#combo-overlay *,#combo-overlay::before,#combo-overlay::after,#hg-board::before,#hg-board::after{pointer-events:none!important}.hg-tile.queued{outline:3px solid #9bd8ff;outline-offset:-3px}

#qb #qn{text-align:center;width:100%;margin:8px 0 4px}#qb #qi{display:block;margin:0 auto 10px}

.hh-level .hh-level-copy{flex:1;min-width:0}.hh-level>.hh-stars{flex:0 0 auto;min-width:24px;text-align:right}

#hg-goal-help{background:transparent;border:0;box-shadow:none}#hg-goal-help:focus-visible{outline:2px solid #9bd8ff;outline-offset:2px}

#hhome>.home-endless-entry{display:block!important;width:100%;box-sizing:border-box;margin:14px 0 0;padding:14px 18px;border:1px solid #eed48b;border-radius:14px;text-align:left;font:700 16px system-ui;min-height:52px}
/* Keep native select behavior, but draw a consistently inset indicator. */
body select:not([multiple]):not([size]),#hhome #share-level-choice{appearance:none;-webkit-appearance:none;padding-right:42px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23becce1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:14px 9px}
body details>summary{padding-right:20px;box-sizing:border-box}

/* Share controls align to the same full-width content grid as the stats. */
#hhome #achievement-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.32fr);gap:12px;width:100%;margin:16px 0;box-sizing:border-box;align-items:stretch}
#hhome #achievement-actions[hidden]{display:none}
#hhome #achievement-actions #share-level-choice,#hhome #achievement-actions #share-level-home{width:100%;max-width:none;min-width:0;height:48px;min-height:48px;box-sizing:border-box;margin:0;font:14px system-ui}
#hhome #achievement-actions #share-level-choice{padding-left:16px}
#hhome #achievement-actions #share-level-home{padding:10px 16px;white-space:nowrap}
@media(max-width:650px){#hhome #achievement-actions{grid-template-columns:minmax(0,1fr) 112px;gap:8px}#hhome #achievement-actions #share-level-choice,#hhome #achievement-actions #share-level-home{font-size:12px}#hhome #achievement-actions #share-level-home{padding:10px 8px}}

/* Intro: neutral four-preference mark and readable full-width comparisons. */
#personality-dialog .pq-mbti-mark{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;flex:0 0 66px;width:66px;height:66px;align-self:center}
#personality-dialog .pq-mbti-mark span{display:grid;place-items:center;border-radius:8px;font:700 12px/1 system-ui;letter-spacing:2px;background:#35314d;color:#d8c4fa}
#personality-dialog .pq-mbti-mark span:nth-child(2){background:#293e3b;color:#b7dfcc}
#personality-dialog .pq-mbti-mark span:nth-child(3){background:#293a50;color:#b6d4f6}
#personality-dialog .pq-mbti-mark span:nth-child(4){background:#403d30;color:#eedb9e}
#personality-dialog[data-page=explain] .pq-axes{padding:4px 16px;line-height:1.6}
#personality-dialog .pq-axis{padding:12px 0}
#personality-dialog .pq-axis+.pq-axis{border-top:1px solid #ffffff12}
#personality-dialog .pq-axis dt{font-size:12px;color:#aebdd3;margin:0 0 6px}
#personality-dialog .pq-axis dd{display:grid;grid-template-columns:1fr 24px 1fr;gap:8px;align-items:center;margin:0;font-size:14px;color:#e7edfa}
#personality-dialog .pq-axis dd>span{display:flex;align-items:center;gap:8px}

#personality-dialog .pq-axis dd .pq-axis-or{justify-content:center;color:#92a3bc}
#personality-dialog .pq-axis b{font-size:16px;font-weight:700;color:#e7edfa}
@media(max-width:360px){#personality-dialog[data-page=explain] .pq-axes{padding:4px 12px}#personality-dialog .pq-axis dd{font-size:13px;gap:4px;grid-template-columns:1fr 18px 1fr}#personality-dialog .pq-axis dd>span{gap:5px}}

/* Compact mobile atlas: portrait beside identity, description below. */
@media(max-width:650px){
#personality-atlas-dialog{padding:16px 12px}
#personality-atlas-dialog h2{font-size:22px}
#personality-atlas-dialog>p{margin:8px 0 12px;line-height:1.6}
#personality-atlas-dialog .atlas-groups h3{margin:16px 0 8px;font-size:14px}
#personality-atlas-dialog .atlas-grid{gap:8px;align-items:stretch}
#personality-atlas-dialog .atlas-grid article{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:6px;padding:10px 8px;border-radius:12px;text-align:left}
#personality-atlas-dialog .atlas-grid img{grid-column:1;grid-row:1/3;width:44px;height:60px;align-self:center}
#personality-atlas-dialog .atlas-grid strong{grid-column:2;grid-row:1;font-size:14px;line-height:1.5;margin:6px 0 2px;align-self:end}
#personality-atlas-dialog .atlas-grid span{grid-column:2;grid-row:2;font-size:12px;line-height:1.5;letter-spacing:.5px}
#personality-atlas-dialog .atlas-grid p{grid-column:1/-1;grid-row:3;font-size:12px;line-height:1.65;margin:8px 0 0}
}

/* Keep discovery arrows on the title line with compact, equal card spacing. */
@media(max-width:650px){
.personality-discovery #personality-entry,.personality-discovery #personality-atlas{min-height:96px;padding:12px 10px;align-items:center}
.personality-discovery #personality-entry .discovery-copy strong,.personality-discovery #personality-atlas .discovery-copy strong{font:700 16px/24px system-ui,sans-serif;margin:4px 0;padding-right:20px}
.personality-discovery #personality-entry .discovery-copy small,.personality-discovery #personality-atlas .discovery-copy small{font:400 10px/16px system-ui,sans-serif}
.personality-discovery .discovery-arrow{top:50%;bottom:auto;right:10px;transform:translateY(-50%);font-size:20px}
}

.hh-level-wrap { position: relative; display: grid; min-width: 0; }
.hh-level-share {
  position: absolute; right: 7px; top: calc(var(--card-top) + 1px + 10px - 16px);
}
.hh-level-share, #hmodal .result-share-top .icon-share {
  min-height: 32px;
  display: grid; place-items: center; width: 32px; height: 32px;
  padding: 0; background: transparent; color: #bdcbe2; border: 0; border-radius: 8px;
}
.hh-level-share svg, #hmodal .icon-share svg { width: 16px; height: 16px; }
.hh-level-wrap .hh-level-copy > small:first-child { padding-right: 12px; }
.hh-level-share:disabled { opacity: .32; pointer-events: none; }
.hh-level-share:enabled:hover, #hmodal .result-share-top .icon-share:hover { background: #34405a; }
@media (max-width: 650px) { .hh-level-share { right: 15px; } }

#personality-dialog[data-page="explain"] {
  width: min(480px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  padding: 36px clamp(12px, 4vw, 22px) 16px;
}
#personality-dialog[data-page="explain"] .pq-axis { padding-block: 8px; }
#personality-dialog[data-page="explain"] .pq-axes { margin-block: 12px; }
#personality-dialog[data-page="explain"] .pq-info-columns { gap: 8px; margin-top: 12px; }
#personality-dialog[data-page="explain"] .pq-info-columns .pq-info { gap: 6px; padding: 9px 7px; }
#personality-dialog[data-page="explain"] .pq-info-columns .pq-mini { width: 26px; height: 26px; font-size: 16px; border-radius: 7px; }
#personality-dialog[data-page="explain"] .pq-info-columns h3 { min-height: 0; margin: 0 0 4px; font-size: clamp(12px, 3.3vw, 14px); }
#personality-dialog[data-page="explain"] .pq-info-columns p { font-size: 12px; line-height: 1.55; }
#personality-dialog[data-page="explain"] .personality-actions { margin-block: 14px 8px; }
@media (max-width: 350px) { #personality-dialog[data-page="explain"] { max-width: calc(100vw - 16px); padding-inline: 10px; } }
#personality-dialog[data-page="explain"] .pq-info-columns h3 { white-space: nowrap; }

.atlas-grid .atlas-locked { filter: grayscale(1); background: #202333; border-color: #464b5a; }
.atlas-grid .atlas-locked img { opacity: .55; }

#personality-atlas-dialog .atlas-title { display:flex; flex:1; align-items:center; justify-content:space-between; gap:8px; margin-right:10px; }
#personality-atlas-dialog .atlas-title h2 { margin: 0; }
@media (max-width: 360px) { #personality-atlas-dialog .atlas-title h2 { font-size: 18px; } }
#personality-atlas-dialog .atlas-grid article { text-align: left; padding-inline: clamp(10px, 3vw, 16px); }
.atlas-portrait { display: block; width: 100%; height: 118px; }
.atlas-locked .atlas-portrait { opacity: .55; }
@media (max-width: 650px) {
  .atlas-portrait { grid-column: 1; grid-row: 1/3; align-self: center; width: 44px; height: 56px; }
}

@media (min-width: 651px) {
  #personality-atlas-dialog .atlas-grid article { text-align: center; }
  .atlas-portrait { width: auto; max-width: 100%; margin-inline: auto; }
}

.hh-level .hh-objective span, .hh-level .hh-record span { display: inline-block; }
.hh-level .hh-objective span + span, .hh-level .hh-record span + span { margin-left: .65em; }
@media (min-width: 651px) {
  #hh-levels .hh-level { display: block; position: relative; padding: 16px; text-align: left; align-content: start; }
  #hh-levels .hh-level-copy { display: grid; width: 100%; gap: 5px; }
  #hh-levels .hh-level-copy > small:first-child { padding-right: 24px; }
  #hh-levels .hh-level strong { margin: 0; font-size: 15px; line-height: 1.5; }
  #hh-levels .hh-objective { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
  #hh-levels .hh-objective span:last-child { white-space: nowrap; margin: 0; }
  #hh-levels .hh-record { display: grid; gap: 2px; border-top: 1px solid #ffffff16; margin-top: 3px; padding-top: 6px; }
  #hh-levels .hh-record span { margin: 0; }
  #hh-levels .hh-stars { position: absolute; bottom: 16px; right: 16px; }
}
@media (min-width: 651px) and (max-width: 900px) {
  #hh-levels { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

#personality-atlas-dialog .atlas-progress { display:flex; align-items:center; gap:7px; color:#aabbd0; font:11px/1.3 system-ui; }
.atlas-progress b { display:block; color:#e1f2e9; font:650 14px/1.3 system-ui; font-variant-numeric:tabular-nums; }
.atlas-ring { width:24px; height:24px; border-radius:50%; background:conic-gradient(#99d8bb var(--atlas-complete,0%),#424c62 0); mask:radial-gradient(circle,transparent 49%,black 53%); }
#personality-atlas-dialog .atlas-grid article:not(.atlas-locked) {
  position: relative; isolation: isolate;
  border-color: color-mix(in srgb, var(--atlas-color) 50%, #273046);
  background: color-mix(in srgb, var(--atlas-color) 9%, #20283d);
}
.atlas-grid article:not(.atlas-locked)::after {
  content: ""; position: absolute; inset-block-start: 13px; inset-inline-end: 14px;
  width: 12px; height: 6px; border: solid var(--atlas-color); border-width: 0 0 2px 2px;
  transform: rotate(-45deg); pointer-events: none;
}

#personality-atlas-dialog .atlas-grid article > p {
  inline-size: 100%;
  box-sizing: border-box;
  margin-inline: 0;
  padding-inline: 0;
  letter-spacing: normal;
  text-align: inherit;
  text-wrap: wrap;
  line-break: strict;
}

#personality-dialog[data-page="retest"] { text-align: center; }
#personality-dialog[data-page="retest"] > h2 { text-align: center; }
.retest-guidance { margin: 14px 0 18px; text-align: center; }
#personality-dialog .retest-guidance p { margin: 0; font-size: 14px; line-height: 1.65; text-wrap: balance; }
#personality-dialog .retest-guidance p + p { margin-top: 5px; font-size: 12px; color: #a9b7ce; }

/* Equal outer gutters, with the two preference labels aligned inside each column. */
#personality-dialog .pq-axis dd { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); }
#personality-dialog .pq-axis dd > span:last-child { justify-content: flex-end; text-align: right; }
#personality-dialog .pq-axis dd > span:not(.pq-axis-or) b { flex: 0 0 .85em; }

#hh-levels .hh-level-wrap { --card-top: 16px; }
#hh-levels .hh-level { padding-top: var(--card-top); align-items: flex-start; align-content: start; }
#hh-levels .hh-level-copy > small:first-child { line-height: 20px; }
#hh-levels .hh-clear-score { display: block; color: #e6ecf9; }
#hh-levels .hh-clear-score b { color: #f4d989; }
#hh-levels .hh-record span { margin-inline-start: 0; }
@media (max-width: 650px) {
  #hh-levels .hh-stars { align-self: center; }
  #hh-levels .hh-record { display: grid; }
}

#hmodal .hm-stars { color: #f4cf59; font-size: 25px; line-height: 1.15; }
#hmodal .result-extras { margin-top: 12px; }
#hmodal .reward b { overflow-wrap: anywhere; }

#hh-back-top, #hhome #endless-dock { display: none; }
#hhome.past-entry #hh-back-top {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  position:fixed; z-index:251; right:max(18px,env(safe-area-inset-right)); bottom:calc(22px + env(safe-area-inset-bottom));
  min-height:44px; padding:0 15px; border:1px solid #687695; border-radius:14px;
  background:#263149; color:#e8edf8; box-shadow:0 4px 14px #080c194d; font:600 13px/1.3 system-ui;
}
#hh-back-top svg { color:#f2d48c; }
@media (hover:hover) { #hhome.past-entry #hh-back-top:hover { background:#34425e; border-color:#d6bd83; } }
@media (max-width:650px) {
  #hhome.past-entry #hh-back-top { width:44px; padding:0; right:max(12px,env(safe-area-inset-right)); bottom:calc(16px + env(safe-area-inset-bottom)); }
  #hh-back-top span { display:none; }
  #hhome.past-entry.endless-ready #hh-back-top { bottom:calc(98px + env(safe-area-inset-bottom)); }
  #hhome.past-entry #endless-dock:not([hidden]) { display:flex; }
  #hhome.past-entry.endless-ready { padding-bottom:110px; }
}
body:has(#qs.show,#ps.show,#fs.show,#inf.show,#ov.show,dialog[open]) #hhome.past-entry :is(#hh-back-top,#endless-dock) { display:none; }

#hh-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; margin:16px 0; }
#hh-stats .home-score { min-width:0; }

#personality-atlas-dialog .atlas-grid p .atlas-phrase {
  display: inline-block; max-width: 100%; vertical-align: top;
  font: inherit; color: inherit; letter-spacing: inherit;
}
@media (min-width: 651px) {
  #personality-atlas-dialog { width: min(1160px, calc(100vw - 32px)); }
}

@media (min-width: 960px) {
  body:has(#hybrid-root) #gw { max-width: min(96vw, 1560px); }
  #hhome { max-width: none; padding-inline: clamp(16px, 2vw, 32px); }
  #ps { padding: 28px clamp(24px, 4vw, 72px); }
  #pw2 { max-width: 1440px; }
  #poster-form { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 3fr); gap:20px; align-items:start; }
  #poster-form > .psec { margin:0; box-sizing:border-box; }
  #pw2 #pgb { width:calc((100% - 20px) * .6); margin:16px 0 0 auto; }
  #pcw { max-width:620px; margin-inline:auto; }
}

@media (max-width:650px) {
  #hh-levels { grid-template-columns: repeat(2,minmax(0,1fr)); gap:8px; }
  #hh-levels .hh-unit { grid-column:1/-1; margin-top:12px; padding:8px 12px; }
  #hh-levels .hh-level-wrap { --card-top:8px; }
  #hh-levels .hh-level { display:block; position:relative; min-height:0; padding:8px 10px 10px; border-radius:12px; }
  #hh-levels .hh-level-copy { display:grid; gap:2px; }
  #hh-levels .hh-level-copy > small:first-child { padding-right:24px; }
  #hh-levels .hh-level strong { margin:0; font-size:14px; line-height:20px; }
  #hh-levels .hh-objective { display:flex; flex-wrap:wrap; gap:0 6px; line-height:17px; }
  #hh-levels .hh-objective span { margin:0; }
  #hh-levels .hh-level-share { right:3px; }
  #hh-levels .hh-record { border-top:1px solid #ffffff18; margin-top:3px; padding-top:4px; line-height:16px; }
  #hh-levels .hh-stars { position:absolute; top:31px; right:9px; font:11px/15px system-ui; }
}

#hh-levels .hh-unit { position:relative; padding-inline-end:38px; }
#hh-levels .hh-unit-toggle { position:absolute; inset:0; width:100%; border:0; background:transparent; color:inherit; }
.hh-unit-toggle::after { content:''; position:absolute; top:50%; right:16px; width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-65%) rotate(45deg); }
.hh-unit-toggle[aria-expanded=true]::after { transform:translateY(-25%) rotate(225deg); }

.pq-frequency { margin:8px auto 0; font:12px/1.6 system-ui; color:#b9cadc; }
.pq-frequency summary { cursor:pointer; }
.pq-frequency strong { color:#b4e7cb; }
.pq-frequency a { color:#b5d6ff; }

@media (max-width:650px) {
  #personality-atlas-dialog .atlas-grid p .atlas-phrase { display:inline; }
}

.hg-tile[data-cascade]{position:relative;--wave-color:#59ead7}
.hg-tile[data-cascade="2"]{--wave-color:#b39aff}
.hg-tile[data-cascade="3"]{--wave-color:#ffcf68}
.hg-tile[data-cascade]::after{content:'';position:absolute;inset:2px;border:3px solid var(--wave-color);border-radius:inherit;box-shadow:inset 0 0 12px var(--wave-color);pointer-events:none;animation:cascade-ring .28s ease-out both}
@keyframes cascade-ring{from{transform:scale(.68)}to{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.hg-tile[data-cascade]{opacity:.85}.hg-tile[data-cascade]::after{animation:none}}

#hmodal.result-modal #hm-content{position:relative}
#hmodal.result-modal .result-share-top{position:absolute;top:0;right:0;margin:0}
#hmodal.result-modal #hm-content>h2{margin:0 0 4px;padding:0 40px;text-align:center;text-wrap:balance}
#hmodal.result-modal .hm-stars+p{margin:4px 0}
#personality-atlas-dialog .atlas-groups h3{padding-inline-start:0}

/* Shared button typography, including buttons in dynamically opened dialogs. */
:root :is(button, [role="button"], input[type="button"], input[type="submit"]) {
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif !important;
  font-weight: 600 !important;
}

:root {
  --cream:#f5f3ed; --paper:#fcfbf8; --blue:#294ba4; --ink:#233453;
  --muted:#566579; --rule:#bdc5d1; --sun:#ffcf51;
}
body {color:var(--ink);background-color:var(--cream);background-image:radial-gradient(#a9a69d2b .85px,transparent .85px);background-size:14px 14px}
#gw,#hybrid-root,#hhome,#hgame {color:var(--ink);background:transparent}
body :where(#hmodal,#qb,#ob,#pw2,#infb,dialog,.psec,#mbti-menu,#prototype-panel,#endless-dock,#fall-tools,#fres) {
  background:var(--paper);color:var(--ink);border-color:var(--rule);box-shadow:0 4px 0 #253f7718
}
#ps,#fs,#gs {background:var(--cream);color:var(--ink)}
#qs,#ov,#inf,dialog::backdrop {background:rgb(30 43 67 / .52)}
body :where(#hhome,#hgame,#hmodal,#qb,#pw2,dialog,#infb,#fs) :is(h1,h2,h3,strong,b) {color:var(--blue)}
body :where(#hhome,#hgame,#hmodal,#qb,#pw2,dialog,#infb,#fs) :is(p,small,label,li,.discovery-arrow,.quiz-navigation-label,.extra-label,.extra-note) {color:var(--muted)}
body :where(#hhome,#hgame,#hmodal,#qb,#pw2,dialog,#infb,#fs) button:where(:not(.hg-tile):not(.hh-level):not(.hh-level-share):not(.icon-share):not(.personality-close):not(.hh-unit-toggle)) {
  background-color:var(--paper);color:var(--blue);border-color:#9dacc2
}
body :where(#hhome,#hgame,#hmodal,#pw2,dialog) :is(.home-score>*,.hg-stats>div,.pq-axes,.pq-info,.pq-card,.pq-note,.reward,.result-extras,.result-extra,.pq-frequency,.retest-guidance,.personality-dimensions,.hh-level,.hg-heading strong) {
  background:var(--paper);color:var(--ink);border-color:var(--rule)
}
#hhome .hh-unit {background:linear-gradient(90deg,#ece6d6,transparent);color:var(--ink)}
#hhome .hh-unit-toggle {background:transparent}
#hhome .hh-level {background:var(--paper);color:var(--ink);box-shadow:inset 0 3px var(--unit-color,var(--rule))}
#hhome .hh-level-share,#hmodal .icon-share {background:transparent;color:var(--blue)}
#hhome .hh-stars,#hmodal .hm-stars {color:#be8300}
#hhome .personality-discovery button {background:var(--paper);border-color:#889ab9}
#hhome .personality-discovery .discovery-copy strong {color:var(--blue)}
#hhome #hh-endless-shortcut:enabled,#endless-dock-play,#hmodal #hm-actions button:first-child,#qb #qcont,#qb #qcont:hover,#pw2 #pgb,#pw2 #avatar-generate:enabled,#inf #inf-play,#personality-dialog .personality-actions button:first-child {
  background:var(--blue);color:white;border-color:var(--blue)
}
#hhome #hh-endless-shortcut:disabled {background:#ede8dc;color:#586171;opacity:1}
#hgame .hg-stage {background:#d9e2f3;border:2px solid var(--blue)}
#hgame .hg-tile {background:var(--paper);border-color:#a0b1d0}
#hgame .hg-tile.picked,#hgame .hg-tile.hint {background:#fff0b7}
#hgame :is(#hg-feedback,#hg-notice),#hmodal .score-comparison {color:var(--blue)}
#hgame #hg-progress::-webkit-progress-value {background:var(--blue)}
#hgame .combo-badge :is(b,small) {color:white}
#personality-atlas-dialog .atlas-grid article {background:color-mix(in srgb,var(--atlas-color) 18%,var(--paper));color:var(--ink)}
#personality-atlas-dialog .atlas-grid .atlas-locked {background:#e7e5de;color:#545861}
#personality-atlas-dialog .atlas-grid article span,#personality-dialog .pq-type {color:var(--blue)}
#personality-atlas-dialog .atlas-groups h3 {color:color-mix(in srgb,var(--atlas-color) 48%,#202e46)}
#pw2 :is(input,select,textarea,#av-wrap,#px-canvas),#share-dialog textarea {background-color:var(--paper)!important;color:var(--ink)!important;border-color:var(--rule)!important}
#pw2 .px-style {background:var(--paper)!important;color:var(--ink)!important;border-color:var(--rule)!important}
#pw2 .px-style.on {background:#e5ecfa!important;border-color:var(--blue)!important}
#pw2 #pvh.ok {color:#256849}
#qb #qopts .correct,#qb #qopts .right {background:#d6ead6;color:#205739}
#qb #qopts .wrong {background:#f4d7d3;color:#812d28}
#hhome #hh-stats .home-score {background:var(--paper);color:var(--ink);border:1px solid var(--rule)}
#hhome .hh-heading {border-bottom:0}
#hhome .hh-unit h2,#hhome .hh-unit>span {color:color-mix(in srgb,var(--unit-color) 50%,#1c3152)}
#personality-dialog[data-page="tie"] .personality-actions button {background:var(--paper);color:var(--blue);border:1px solid #9dacc2}
#qb #qopts button.qc {background:#d3ead7;color:#194c29;border-color:#488459}
#qb #qopts button.qw {background:#f8dbd5;color:#842f25;border-color:#ac665b}
#hhome #hh-stats .home-score>progress {accent-color:var(--blue)}
#personality-dialog :is(.pq-axis,.pq-scale,.pq-card,.pq-info,.pq-count,.pq-kicker),#pw2 :is(.plab,#pt),#qb :is(#qq,#qn,#qh) {color:var(--ink)}
#pw2 .psec {background:var(--paper);color:var(--ink);border-color:var(--rule)}
#hhome .hh-level-wrap {background:transparent}
#hgame #hg-goal-help {background:transparent}


#hhome #hh-stats .home-score {--accent:#284da0;--tint:#edf3ff;background:var(--tint);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 35%,white)}
#hhome #hh-stats .home-score:last-child {--accent:#885509;--tint:#fff4d5}
#hhome #hh-stats .home-score :is(strong,span){color:var(--accent);background:transparent}
#hhome #hh-stats .home-score p {background:transparent}
#hhome #hh-stats .home-score progress{appearance:none;width:100%;height:5px;border:0;border-radius:6px;overflow:hidden;background:#d9d9d0}
#hh-stats progress::-webkit-progress-bar{background:#d9d9d0}
#hh-stats progress::-webkit-progress-value{background:var(--accent)}
#hh-stats progress::-moz-progress-bar{background:var(--accent)}
#hh-stats .hh-stat-heading{display:flex;align-items:center;justify-content:space-between;gap:3px;background:transparent;color:inherit}
#hhome #hh-stats #hh-poster{flex:none;width:auto;min-height:0;margin:0;padding:1px 4px;border:1px solid #a78243;border-radius:5px;background:#faf8f3;color:#714808;font:600 11px/1.35 system-ui;opacity:1}
#hhome #hh-stats #hh-poster:enabled{background:#294ba4;color:white;border-color:#294ba4}

/* Settlement colors use darker inks on the light paper surfaces. */
#hmodal #hm-content h2 {color:#20345a}
#hmodal .result-total>span,#hmodal .reward>span,#hmodal .reward>small {color:#42526a}
#hmodal .result-total strong {color:#234595;text-shadow:none}
#hmodal .hm-stars {color:#966000}
#hmodal .reward-grid .reward {--ink-score:#25489b;background:#edf2ff;border-color:#acbde3}
#hmodal .reward-grid .reward-time {--ink-score:#116254;background:#e7f5ee;border-color:#9dc8bb}
#hmodal .reward-grid .reward-perfect {--ink-score:#815109;background:#fff2cd;border-color:#d6bb72}
#hmodal .reward-grid .reward b {color:var(--ink-score)}
#hmodal .result-share-top .icon-share {color:#465a79}
#hmodal.result-modal #hm-actions button:first-child {background:#294ba4;color:#fff}
#hmodal.result-modal #hm-actions button:nth-child(2) {background:#edf2ff;color:#284689;border-color:#9dacc2}
#hmodal.result-modal #hm-actions button:nth-child(3) {color:#46566c}

/* Light-theme audit: surfaces, state colors and complete outlines. */
#hhome .hh-level-wrap {background:transparent;box-shadow:none;border:0}
#hhome .hh-level {border:2px solid color-mix(in srgb,var(--unit-color) 65%,#52617b);box-shadow:none;background:var(--paper)}
#hhome .hh-level:disabled {border:2px solid #bcc2cc;background:#eeeae0;opacity:1}
#hhome .hh-level:disabled :is(strong,small,span) {color:#626b79}
#hhome #hh-levels .hh-level:not(:disabled) {background:var(--paper)}
#hhome .hh-unit {background:linear-gradient(90deg,color-mix(in srgb,var(--unit-color) 22%,var(--paper)),transparent)}
#hhome .hh-unit :is(small,p) {color:#4d5c70}
#hgame .hg-stats>div {background:#edf2fc}
#hgame .hg-stats>.hg-goal {background:#fff0c8;border-color:#c9a659}
#hgame .hg-stats>.hg-goal b {color:#79500c}
#hgame .hg-tools .armed {background:#fff0bc;color:#764509;border-color:#ad7e21}
#hgame .hg-tile.locked {background:#c9ced7;border-color:#7f8999}
#hgame #hg-progress::-webkit-progress-bar {background:#d5ddea}
#personality-dialog .pq-scale {color:#526075;border-color:#d7dce3}
#personality-dialog .pq-scale .active {color:#21604d;font-weight:750}
#personality-dialog .pq-tag {color:#245c4c;background:#dcece3}
#personality-dialog .pq-frequency,#personality-dialog .pq-frequency a {color:#34548e}
#personality-dialog .pq-frequency strong {color:#21604d}
#personality-dialog .pq-note {color:#526075;background:#edf1f6}
#personality-atlas-dialog .atlas-progress {color:#465975}
#personality-atlas-dialog .atlas-grid article::after {border-color:#267054}
#qb #qr.ok {color:#206143}
#qb #qr.bad {color:#9a352a}
#qb #qopts button small {color:#586579}
#pw2 :is(.pdesc,.phint,.av-note),#pw2 #pvh {color:#3f6655}
#hmodal .hm-summary span {background:#e7edf7;color:#30496d}
#hmodal.result-modal #hm-content>small {background:#fff0ce;color:#78530f;border-color:#c8ad72}
#hmodal .hm-score {color:#294ba4}
#hmodal .result-extras {background:#edf1f7}
#hhome footer {color:#566579}

#hmodal.result-modal #hm-content>h2 {padding:0 26px;font-size:clamp(22px,6vw,29px);text-wrap:wrap}
#hhome .hh-level-share,#hmodal .result-share-top .icon-share {color:#395887}
#hhome .hh-level-share:enabled:hover,#hmodal .result-share-top .icon-share:hover {background:#e1e9f7}

#pw2 .avatar-workbench {background:#edf2fa;border-color:#bbc9df}
#pw2 #avatar-preview-label,#pw2 #ai-gen-hint {color:#345a91!important}
#pw2 #avatar-generate:disabled {background:#e6eaf0;color:#667286;border:1px solid #c1cad7;opacity:1}
#pw2 #pgb:disabled {background:#dce3ef;color:#596b88;opacity:1}
#personality-dialog .personality-close {color:#526680}

#personality-dialog.personality-intro .personality-actions button:first-child{background:#294ba4;color:#fff;border-color:#294ba4}
#personality-dialog.personality-intro .personality-actions button:nth-child(2){background:#edf2fa;color:#294777;border-color:#acbad1}

/* Same information slots for every progression state. */
#hhome #hh-levels .hh-level {display:block;position:relative;height:100%;padding:14px;min-height:0;box-sizing:border-box;text-align:left}
#hhome #hh-levels .hh-level-copy {display:grid;grid-template-rows:20px 24px minmax(20px,auto) auto;gap:4px;width:100%;margin:0}
#hhome #hh-levels .hh-level-copy>strong {margin:0;line-height:24px;padding-right:40px}
#hhome #hh-levels .hh-level-copy>small:first-child {padding-right:28px;line-height:20px}
#hhome #hh-levels .hh-objective {display:flex;justify-content:space-between;flex-wrap:wrap;gap:0 6px;line-height:20px}
#hhome #hh-levels .hh-objective span {margin:0}
#hhome #hh-levels .hh-record {display:grid;grid-template-rows:20px 20px;grid-auto-rows:18px;gap:0;margin:4px 0 0;padding:6px 0 0;border-top:1px solid #cbd2db;line-height:20px}
#hhome #hh-levels .hh-record span {margin:0}
#hhome #hh-levels .hh-best {font-size:10px;line-height:18px}
#hhome #hh-levels .hh-stars {position:absolute;top:42px;right:14px;bottom:auto;font-size:11px;line-height:20px}
#hhome #hh-levels .hh-level-share {top:8px;right:8px}
#hhome #hh-levels .hh-level:disabled {background:#e9e6de;border-color:#b9b8b1;opacity:1;box-shadow:none}
#hhome #hh-levels .hh-level:disabled :is(strong,small,span) {color:#62666b}
#hhome #hh-levels .hh-level:disabled .hh-record {border-color:#cecdc6}
#hhome #hh-levels .hh-level-wrap {background:transparent;box-shadow:none}
@media(max-width:650px){
#hhome #hh-levels .hh-level {padding:10px}
#hhome #hh-levels .hh-level-copy {gap:2px}
#hhome #hh-levels .hh-level-copy>strong {font-size:13px;padding-right:34px}
#hhome #hh-levels .hh-level-copy>small:first-child {font-size:10px}
#hhome #hh-levels .hh-stars {top:34px;right:10px;font-size:10px}
#hhome #hh-levels .hh-level-share {top:4px;right:4px}
}

#hhome #hh-levels .hh-clear-score {color:#465772}
#hhome #hh-levels .hh-clear-score b {color:#294ba4}
#hhome #hh-levels .hh-status,#hhome #hh-levels .hh-best {color:#526075}


/* Normalize preview artwork without modifying the generated originals. */
#poster-form .style-preview-frame {display:block;position:relative;aspect-ratio:1;overflow:hidden;border:6px solid #edf1f8;border-radius:7px;margin-bottom:7px;box-sizing:border-box}
#poster-form .style-preview-frame[hidden]{display:none}
#poster-form .style-preview-frame .style-example {position:absolute;max-width:none;max-height:none;border:0;padding:0;margin:0;border-radius:0;object-fit:fill}
body #pw2 .avatar-workbench {background:#eef1f7;border:1px solid #bbc7d9;box-shadow:none}
body #pw2 #avatar-generate {background:#294ba4;color:#fff;border:1px solid #294ba4;min-height:46px;border-radius:10px;opacity:1}
body #pw2 #avatar-generate:disabled {background:#d5deee;color:#53657e;border-color:#a5b6d2;opacity:1}
body #pw2 #avatar-upload {background:#e2eafa;color:#294ba4;border:1px solid #8da4ce;box-shadow:none}
body #pw2 :is(.pch,.mbti-option,.mbti-tabs button) {background:#edf2fa;color:#294777;border-color:#adbbd0}
body #pw2 :is(.pch.on,.mbti-tabs button.on) {background:#294ba4;color:#fff}
body #pw2 :is(.avatar-heading>span,.mbti-heading>span,.avatar-source-label) {color:#52657f}
body #pw2 #av-clear {background:#e2eafa;color:#294777;border-color:#8da4ce}
body #prototype-panel,body .hybrid-preview {background:#faf8f3;color:#304b7b;border-color:#aab9d0}
body #endless-dock {background:#edf2fa;color:#294777;border-color:#aab9d0}
body #endless-dock :is(strong,small) {color:#294777}
body #share-dialog {background:#faf8f3;color:#233453;border-color:#aab9d0}
body #share-dialog :is(p,label) {color:#526075}

body #pw2 #pcls,body #pw2 .pab:not(.pri) {background:#e6edf8;color:#294777;border:1px solid #a3b5d1}
body #pw2 .poster-eyebrow {color:#536a8e}

/* One page surface; the exported poster has its own composition. */
body #ps {background:#f5f3ed}
body #ps #pw2,body #ps .poster-heading,body #ps #pcw {background:transparent;border:0;box-shadow:none}
body #ps #pw2:has(#pcw[style*="block"]) {max-width:620px}
body #ps #pw2:has(#pcw[style*="block"]) .poster-heading {padding-bottom:14px}
body #ps #pw2:has(#pcw[style*="block"]) .poster-heading>p,body #ps #pw2:has(#pcw[style*="block"]) .poster-eyebrow {display:none}
body #ps #pc2 {display:block;width:100%;height:auto;border:0;border-radius:16px;box-shadow:0 8px 30px #34456a16}
body #ps #invite-game {display:none!important}
body #ps #psave {background:#294ba4;color:#fff;border:1px solid #294ba4}

/* Book-cover landing and a separate unit journey. */
#hhome #home-cover {display:none}
#hhome.show-cover {max-width:740px}
#hhome.show-cover>#home-cover {display:block}
#hhome.show-cover>:not(#home-cover):not(.hybrid-preview) {display:none!important}
#home-cover {position:relative;background:#f8f6ef;border:1px solid #d4c5a6;border-left:12px solid #345c8a;border-radius:24px;padding:30px clamp(18px,5vw,50px);box-shadow:0 5px 0 #ded0b3,inset 4px 0 #e3d8be;text-align:center}
.cover-title>span {font:900 clamp(42px,9vw,64px)/1.1 system-ui;color:#32628d;letter-spacing:4px;text-shadow:0 3px #e2d7bd}
#home-cover .cover-title h1 {font:900 clamp(36px,8vw,54px)/1.1 system-ui;color:#233f67;margin:8px 0 26px}
.cover-collection {position:relative;margin:0 8px 28px;border:14px solid #356794;border-radius:24px;background:#e7e3d8;box-shadow:inset 0 0 0 7px #214767,0 5px 0 #d5c7aa;padding:18px 18px 26px}
.cover-portraits {display:grid;grid-template-columns:1fr 1fr;gap:0;max-width:350px;margin:auto}
.cover-portraits img {width:100%;height:clamp(100px,26vw,155px);object-fit:contain;filter:drop-shadow(0 4px 1px #23345318)}
.cover-tabs {position:absolute;left:-34px;top:20px;display:grid;gap:8px}
.cover-tabs span {padding:9px 7px;border-radius:8px;background:#ac85c9;color:#fff;font:700 14px system-ui;border:2px solid #e5d3ef;box-shadow:0 2px 0 #22345333}
.cover-tabs span:nth-child(2){background:#70a88c}.cover-tabs span:nth-child(3){background:#689ccc}.cover-tabs span:nth-child(4){background:#c9a23c}
#home-cover .cover-question {position:absolute;right:-20px;top:37%;max-width:96px;padding:16px 10px;background:#ece2c9;color:#624c2b;font:650 16px/1.5 system-ui;transform:rotate(6deg);box-shadow:1px 3px 5px #40332225}
#home-cover .cover-caption {position:absolute;left:-18px;bottom:-24px;margin:0;padding:10px 14px;background:#ece2cc;color:#4f422d;font:700 16px/1.4 system-ui;transform:rotate(-5deg);box-shadow:1px 3px 5px #40332225}
#home-cover .cover-caption small {color:#665637;font-size:12px}
#hhome #cover-start {display:block;width:100%;min-height:56px;border:2px solid #d3ac51;border-radius:18px;background:linear-gradient(#3c719f,#294f80);color:white;font-size:23px;font-weight:750;box-shadow:0 4px #c9b99a;margin:28px 0 16px}
#cover-shortcuts .personality-discovery {margin:0;gap:12px}
#hhome #cover-shortcuts .personality-discovery button {min-height:86px;padding:12px;background:#faf8f2;border:1px solid #cdbb96;border-radius:12px;box-shadow:0 3px #e6d9bd}
#cover-shortcuts .discovery-icon {display:none}
#hhome #cover-shortcuts .discovery-copy strong {font-size:19px}
#cover-shortcuts .discovery-copy small {font-size:11px}
#hhome .hh-heading {position:relative;padding:4px 42px 12px}
#hhome #campaign-back {position:absolute;left:0;top:8px;width:40px;height:40px;border:1px solid #c6b797;border-radius:10px;background:#fff8e6;color:#294777;font-size:30px}
#hhome #hh-stats .collected-star {color:#be8b18;font-size:.65em;margin-left:5px;text-shadow:0 1px #f7db80}
#hhome #hh-levels {gap:10px}
#hhome #hh-levels .hh-unit {border:1px solid #d5c6a9;border-left:8px solid var(--unit-color);border-radius:13px;background:#f8f7f2;padding:14px 38px 14px 18px;margin-top:20px;box-shadow:0 3px #e5dac3}
#hhome #hh-levels .hh-unit h2 {margin:4px 0}
#hhome #hh-levels .hh-level {border-radius:12px;box-shadow:0 3px #e4dac5}
@media(min-width:900px){#home-cover {padding-top:28px;padding-bottom:24px}.cover-collection{max-width:380px;margin-left:auto;margin-right:auto}#hhome.show-cover{max-width:640px}}

#hhome #cover-shortcuts .discovery-copy small,#hhome #cover-shortcuts .discovery-copy>span {color:#58667a}
#hhome #cover-shortcuts .discovery-arrow {color:#345b85}
#hhome #hh-levels .hh-unit {position:relative;padding-left:66px}
#hhome #hh-levels .hh-unit::before {content:attr(data-unit-number);position:absolute;left:14px;top:50%;transform:translateY(-50%);width:38px;height:44px;display:grid;place-items:center;background:var(--unit-color);color:#24364b;border:1px solid #ffffffa0;border-radius:9px;font:800 23px system-ui;box-shadow:0 3px #24364b20}

/* Poster personality picker: complete light-theme states. */
body #pw2 #mbti-trigger {background:var(--paper);color:#233453;border-color:#9aabc5}
body #pw2 #mbti-menu {background:#faf9f5;border-color:#adb9ca;box-shadow:0 12px 28px #23345324}
body #pw2 .mbti-tabs {background:#e5eaf2}
body #pw2 .mbti-tabs button {background:transparent;color:#465a79}
body #pw2 .mbti-tabs button.active {background:#294ba4;color:#fff;box-shadow:0 2px 5px #23345318}
body #pw2 #mbti-options button {background:#fffefa;color:#294ba4;border-color:#c3ccda}
body #pw2 #mbti-options button.selected {background:#e6edff;border:2px solid #294ba4}
body #pw2 #mbti-options strong {color:#294ba4}
body #pw2 #mbti-options span,body #pw2 #mbti-menu p {color:#526178}
body #pw2 #avatar-generate:enabled {background:#294ba4;color:#fff;border:1px solid #203e8b;box-shadow:0 3px 0 #1d3572;font-weight:700;cursor:pointer;opacity:1}
body #pw2 #avatar-generate:enabled:active {box-shadow:none;transform:translateY(2px)}
body #pw2 #avatar-generate:disabled {background:#e4e7ed;color:#697487;border-color:#bdc6d2;box-shadow:none;cursor:not-allowed;opacity:1}

/* Cover: compact book-style action row matching the approved reference. */
#hhome #cover-shortcuts .discovery-copy>small:first-child{display:none}
#hhome #cover-shortcuts .discovery-arrow{display:none}
#hhome #cover-shortcuts .personality-discovery button{justify-content:center;min-height:68px;text-align:center;border:2px solid #d1c5ae;background:#f8f5ed;box-shadow:0 3px #dbd2c2}
#hhome #cover-shortcuts .discovery-copy strong{font-size:22px;color:#29496a}
#hhome #cover-shortcuts .discovery-copy small{color:#526178;font-size:11px}
#hhome #cover-shortcuts .discovery-icon{display:block;font-size:24px;color:#426890;background:none;width:28px;height:auto}
#hhome #cover-shortcuts .discovery-portrait{display:none}
#home-cover .cover-title h1{margin-bottom:24px}
#home-cover .cover-collection{margin-bottom:32px}
#hhome #cover-start{min-height:62px;border-radius:26px;font-size:26px;letter-spacing:1px}

body #ps #pcls {display:none!important}

#hhome.past-entry #hh-back-top,#hhome.past-entry #hh-back-top:hover {background:#294ba4;color:#fffdf6;border:1px solid #23418d;box-shadow:0 3px 10px #23345326}
#hhome #hh-back-top svg {color:#fffdf6}
#hhome #hh-back-top:focus-visible {outline:3px solid #cfad5b;outline-offset:3px}

.game-star{display:inline-block;width:20px;height:20px;vertical-align:middle;overflow:visible;filter:drop-shadow(0 1px 1px #9a6c2840)}
.game-star path{fill:#efd074;stroke:#caa44f;stroke-width:1.1;stroke-linejoin:round}
.game-star .star-shine{fill:none;stroke:#fff1b8;stroke-width:1.6;stroke-linecap:round;opacity:.85}
.game-star.is-empty path{fill:#e6e3db;stroke:#bbb8ad}.game-star.is-empty .star-shine{fill:none;stroke:#f7f5ed}
#hhome #hh-levels .hh-stars{display:flex;align-items:center;gap:2px}
#hhome #hh-stats .collected-star .game-star{width:25px;height:25px}
#hmodal .hm-stars .game-star{width:32px;height:32px;margin:0 2px}
#hhome #hh-levels .hh-unit::before{width:40px;height:44px;border:2px solid color-mix(in srgb,var(--unit-color) 78%,#846c48);border-radius:12px;background:linear-gradient(145deg,#ffffff50,transparent 65%),var(--unit-color);color:#fffdf2;font:700 25px/1 system-ui;text-shadow:0 1px 2px #594c4355;box-shadow:inset 0 0 0 2px #fff7dfb3,inset 0 -3px 4px #57482b20,0 3px 3px #5d51312b}

body #share-dialog #download-poster{background:#294ba4;color:#fffdf6;border:1px solid #203e8b;font-weight:700;opacity:1}
body #share-dialog #download-poster:disabled{background:#e2e6ed;color:#657187;border-color:#bcc5d2}

#hhome #hh-levels .hh-best:empty{display:none}
#hhome #hh-levels .hh-level{padding-bottom:10px}
@media(max-width:650px){#hhome #hh-levels .hh-level{padding-bottom:8px}}

#hhome #cover-shortcuts .personality-discovery button{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;justify-content:initial;text-align:left;padding:12px;min-height:92px}
#hhome #cover-shortcuts .discovery-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;gap:4px}
#hhome #cover-shortcuts .discovery-copy>small:first-child{display:block;font-size:11px;line-height:1.3;color:#526178}
#hhome #cover-shortcuts .discovery-copy strong{font-size:18px;line-height:1.3;margin:0;white-space:nowrap}
#hhome #cover-shortcuts .discovery-copy small:last-child{font-size:10px;line-height:1.4;margin:0}
#hhome #cover-shortcuts .personality-discovery button>img,#hhome #cover-shortcuts .discovery-icon{display:block;width:42px;height:58px;margin:0;object-fit:contain;align-self:center}
#hhome #cover-shortcuts .discovery-icon{display:grid;place-items:center;font-size:26px}
@media(max-width:420px){#hhome #cover-shortcuts .personality-discovery button{grid-template-columns:28px minmax(0,1fr);gap:5px;padding:9px 7px}#hhome #cover-shortcuts .personality-discovery button>img,#hhome #cover-shortcuts .discovery-icon{width:28px;height:48px}#hhome #cover-shortcuts .discovery-copy strong{font-size:15px}#hhome #cover-shortcuts .discovery-copy small:last-child{font-size:9px}}

/* One shared three-part challenge header on desktop and mobile. */
body #fs #fall-tools{display:flex;align-items:stretch;height:68px;gap:10px;background:transparent;border:0;box-shadow:none;padding:0;margin-bottom:8px}
body #fs #fall-tools>button{height:68px;width:48px;min-width:48px;border-radius:12px;background:#25324c;color:#edf2ff;border:1px solid #687b9b}
body #fs #fall-tools #fhd{height:68px;flex:1;min-width:0;margin:0;padding:6px 4px;background:#1c253d;border-radius:12px;display:flex;flex-direction:column;justify-content:center;gap:5px}
body #fs #fall-tools #ftl{color:#f5d675;font-size:11px;line-height:15px;text-align:center}
body #fs #fall-tools #fsc{color:#82b5ff;font-size:22px;line-height:27px;text-align:center}

/* Quiz owns the screen, including when returning from the penalty game. */
body:has(#qs.show) #hybrid-root{display:none!important}
body #qs{background:#f5f3ed}
body #qs #qb{background:#fcfbf8;color:#233453;border:1px solid #b6c1d1;box-shadow:0 5px 20px #23345318}
body #qs #qb :is(#qn,.quiz-navigation-label){color:#294466}
body #qs #qb #qopts .qo{background:#f5f7fc;border:1px solid #aab9cf;color:#294ba4}
body #qs #qb #qopts .qom{color:#294ba4}
body #qs #qb #qopts .qod{color:#56647a}
body #qs #qb #qopts .qo.qc{background:#dceede;border-color:#4e875f}
body #qs #qb #qopts .qo.qc :is(.qom,.qod){color:#245936}
body #qs #qb #qopts .qo.qw{background:#f7dfd8;border-color:#ad6455}
body #qs #qb #qr.ok{color:#245f3b}
body #qs #qb #qr.ng{color:#903e32}
body #qs #qb #quiz-home{background:#e8edf6;color:#294777;border:1px solid #acbcd3}
body #qs #qb #qcont,body #qs #qb #qcont:hover{background:#294ba4;color:white;border:1px solid #294ba4}

#cover-shortcuts .cover-entry-card{border:1px solid #cdbfA5;border-radius:14px;background:#faf8f2;box-shadow:0 3px #ded5c4;overflow:hidden;display:flex;flex-direction:column}
#hhome #cover-shortcuts .cover-entry-card>button{border:0;box-shadow:none;background:transparent;border-radius:0;min-height:96px;grid-template-columns:42px minmax(0,1fr);padding:12px;gap:8px}
#hhome #cover-shortcuts .discovery-arrow{display:none!important}
#hhome #cover-shortcuts #personality-entry .discovery-copy small:last-child{display:none}
#hhome #cover-shortcuts .discovery-copy{text-align:left;align-items:flex-start}
#hhome #cover-shortcuts .discovery-icon svg{width:40px;height:52px}
#cover-shortcuts .cover-entry-actions{display:flex;gap:6px;padding:0 10px 12px;margin-top:auto}
#hhome #cover-shortcuts .cover-entry-actions button{display:block;min-height:34px;flex:1;padding:6px 3px;border:1px solid #aab7cf;border-radius:8px;background:#e8edf7;color:#294777;font-size:11px;box-shadow:none;text-align:center}
#hhome #cover-shortcuts #cover-test-actions button:last-child:not(:first-child){background:#faf8f2;color:#5c526d;border-color:#c8bed4}
@media(max-width:420px){#hhome #cover-shortcuts .cover-entry-card>button{grid-template-columns:30px minmax(0,1fr);padding:9px 7px;gap:5px}#hhome #cover-shortcuts .discovery-icon svg{width:30px;height:44px}#hhome #cover-shortcuts .discovery-copy strong{font-size:14px}}

/* Full-bleed landing page; campaign and dialogs keep their own spacing. */
body:has(#hhome.show-cover):not(:has(#hybrid-root[hidden])){padding:0;background:#f5f3ed}
body:has(#hhome.show-cover):not(:has(#hybrid-root[hidden])) #gw{max-width:none;width:100%}
#hhome.show-cover{max-width:none;width:100%;padding:0;margin:0}
#hhome.show-cover #home-cover{box-sizing:border-box;width:100%;min-height:100svh;border:0;border-radius:0;box-shadow:none;background:#f5f3ed;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px max(20px,env(safe-area-inset-bottom))}
#home-cover .cover-title{flex:none}
#home-cover .cover-title h1{margin:5px 0 0}
#home-cover .cover-collection{box-sizing:border-box;width:calc(100% - 26px);max-width:440px;margin:8px auto 14px;padding:14px 16px 22px}
#home-cover .cover-portraits img{height:clamp(94px,18svh,160px)}
#hhome #cover-start{width:100%;max-width:520px;min-height:56px;margin:0;flex:none}
#cover-shortcuts{width:100%;max-width:520px}
@media(min-width:900px){#hhome.show-cover #home-cover{display:grid;grid-template-columns:minmax(260px,440px) minmax(340px,520px);grid-template-rows:1fr auto auto 1fr;column-gap:70px;row-gap:22px;justify-content:center;align-content:center;padding:48px;min-height:100svh}#home-cover .cover-title{grid-column:1;grid-row:2}#home-cover .cover-collection{grid-column:2;grid-row:1/5;width:100%;margin:auto}#hhome #cover-start{grid-column:1;grid-row:3}#cover-shortcuts{grid-column:1;grid-row:4;align-self:start}#home-cover .cover-portraits img{height:180px}}

/* Explicit surfaces override legacy ID-specific dark rules. */
body #hmodal,body #personality-dialog,body #personality-atlas-dialog,body #rules-dialog{background:#fcfbf8;color:#233453;border-color:#b5c2d4}
body #hmodal p,body #hmodal #hm-content,body #personality-atlas-dialog>p{color:#526178}
body #hgame .hg-tools button,body #hgame .hg-heading button{background:#e5ecf8;color:#294777;border:1px solid #a4b5d0;box-shadow:0 2px #c7d2e5}
body #hgame .hg-tools button span{color:#294777}
body #hgame .hg-tools button:disabled{background:#e4e6e9;color:#6c7480;opacity:1}
body #hmodal #hm-actions button{background:#e7edf7;color:#294777;border:1px solid #a8b8d1}
body #hmodal #hm-actions button:first-child{background:#294ba4;color:white}
body #personality-atlas-dialog .atlas-grid article{background:color-mix(in srgb,var(--atlas-color) 13%,#fcfbf8);color:#233453}
body #personality-atlas-dialog .atlas-grid article p{color:#4e5e73}
body #personality-atlas-dialog .atlas-grid article strong{color:#294777}
body #personality-atlas-dialog .atlas-grid article>span{color:#58687e}
body #personality-atlas-dialog .atlas-progress{color:#425671}
body #personality-atlas-dialog .atlas-progress b{color:#294777}
body #personality-atlas-dialog header button{color:#465c7d;background:#e8edf6}

body #personality-atlas-dialog .atlas-grid article.atlas-locked{background:#e8e7e2;border-color:#b5b7b6}body #personality-atlas-dialog .atlas-grid article.atlas-locked strong,body #personality-atlas-dialog .atlas-grid article.atlas-locked p{color:#626973}

#hhome #hh-stats .home-score{display:grid;grid-template-rows:24px auto 6px auto;align-content:start;gap:10px;padding:14px;min-width:0}
#hhome #hh-stats .hh-stat-heading{min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:14px}
#hhome #hh-stats .home-score>strong{display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px;margin:0;min-height:38px;font-size:30px;line-height:1.2}
#hhome #hh-stats .home-score>strong small{font-size:12px;line-height:1.4;white-space:nowrap;margin:0}
#hhome #hh-stats .home-score>progress{width:100%;height:6px;margin:0}
#hhome #hh-stats .home-score>p{margin:0;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
#hhome #hh-stats .collected-star{display:inline-flex;align-items:center;margin:0;line-height:1;transform:translateY(-2px)}
@media(max-width:420px){#hhome #hh-stats .home-score{padding:10px;gap:8px}#hhome #hh-stats .hh-stat-heading{font-size:12px}#hhome #hh-stats .home-score>strong{font-size:26px;min-height:52px;align-content:center}#hhome #hh-stats .home-score>strong small{font-size:10px}#hhome #hh-stats .home-score>p{font-size:10px}}

/* Compact unit heading and clear campaign completion state. */
#hhome #hh-levels .hh-unit{min-height:86px;display:flex;align-items:center;padding-top:14px;padding-bottom:14px}
#hhome #hh-levels .hh-unit>div{display:flex;flex-direction:column;justify-content:center;gap:4px}
#hhome #hh-levels .hh-unit h2,#hhome #hh-levels .hh-unit p{margin:0;line-height:1.4}
#hhome #hh-levels .hh-level.cleared:not(:disabled){background:color-mix(in srgb,var(--unit-color) 18%,#fcfbf8);border-color:color-mix(in srgb,var(--unit-color) 65%,#52617b)}
#hhome #hh-levels .hh-level.cleared .hh-status{color:#345a4a;font-weight:700}
#hhome.past-entry #hh-back-top,#hhome.past-entry #hh-back-top:hover{height:48px;min-height:48px;border-radius:50%;width:48px;padding:0;background:#fcfbf8;color:#294ba4;border:2px solid #92a7cb;box-shadow:0 3px 0 #d1d9e7,0 5px 14px #23345319}
#hhome #hh-back-top svg{color:#294ba4;width:22px;height:22px}
#hhome #hh-back-top span{display:none}
#hhome.past-entry #hh-back-top:active{transform:translateY(2px);box-shadow:0 1px 0 #d1d9e7}

#hhome .hh-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;column-gap:10px;row-gap:8px;padding:4px 0 12px}
#hhome .hh-heading h1{grid-column:2;grid-row:1;margin:0;line-height:1.25;text-align:center}
#hhome .hh-heading p{grid-column:1/-1;grid-row:2;margin:0;text-align:center}
#hhome #campaign-back{position:static;grid-column:1;grid-row:1;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;background:#faf8f1;border:1px solid #b7c3d4;border-radius:12px;color:#526f9c;line-height:1}
#hhome #campaign-back svg{display:block;width:22px;height:22px}

/* Avatar creation is secondary to creating the final poster. */
body #pw2 .avatar-source-frame #av-clear {width:28px;height:28px;min-height:28px;top:-9px;right:-9px;border-radius:8px;background:#fffdf7;color:#405779!important;border:1px solid #9cacbf!important;box-shadow:0 2px 5px #263c571a;padding:0!important;display:flex;align-items:center;justify-content:center}
body #pw2 .avatar-source-frame #av-clear:hover {background:#edf2f8}
body #pw2 #av-clear svg {display:block;flex-shrink:0}
body #pw2 #px-canvas {background-color:#e7edf6!important;border-color:#bac9dc!important}
body #pw2 #av-hint {color:#61738c!important}
body #pw2 .avatar-main-action {height:auto;margin-top:12px;justify-content:center}
body #pw2 #avatar-generate:enabled,body #pw2 #avatar-generate:enabled:hover {width:auto;min-width:160px;min-height:40px;padding:8px 24px;background:#f5f7fc;color:#34519b;border:1px solid #8fa4ce;border-radius:10px;box-shadow:none;font-size:15px;font-weight:600;transform:none}
body #pw2 #avatar-generate:disabled {width:auto;min-width:160px;min-height:40px;padding:8px 24px;background:#edf0f4;color:#718096;border:1px solid #c5ceda;box-shadow:none;font-size:15px}
body #pw2 #ai-gen-hint {color:#425c80!important}
body #pw2 #ai-gen-hint.avatar-loading {background:#edf2fc;border:1px solid #bccbe4;color:#344e79!important;padding:12px 14px;line-height:1.8;border-radius:12px}
body #pw2 #ai-gen-hint.avatar-loading::after {background:linear-gradient(90deg,#d6e0f1 0%,#6482bf 45%,#9db5dc 55%,#d6e0f1 100%);background-size:220% 100%;height:5px}

/* A playful return-to-top tile, with a clear text label. */
#hhome.past-entry #hh-back-top,#hhome.past-entry #hh-back-top:hover {width:58px;height:68px;min-height:68px;flex-direction:column;gap:2px;border-radius:18px;background:#fffaf0;border:2px solid #91a8d1;box-shadow:0 4px 0 #cfdaec,0 6px 16px #2334531a;padding:5px 2px}
#hhome #hh-back-top svg {width:30px;height:34px;overflow:visible}
#hhome #hh-back-top span {display:block;font:600 11px/1.2 system-ui;color:#36558c;white-space:nowrap}
#hhome #hh-back-top.launching .top-rocket {animation:top-rocket-launch .5s ease-in both;transform-origin:center}
@keyframes top-rocket-launch {0%{transform:translateY(0)}25%{transform:translateY(2px)}100%{transform:translateY(-14px);opacity:0}}
@media(hover:hover){#hhome.past-entry #hh-back-top:hover{border-color:#4167b3;background:#f0f5ff}}
@media(prefers-reduced-motion:reduce){#hhome #hh-back-top.launching .top-rocket{animation:none}}

/* Match metric hierarchy and reserve the poster action in the star card. */
#hhome #hh-stats .home-score {grid-template-rows:48px 88px 10px auto;gap:12px;padding:14px}
#hhome #hh-stats .hh-stat-heading {align-items:flex-start;flex-wrap:wrap;align-content:flex-start;font-size:14px;line-height:1.4;gap:4px 6px}
#hhome #hh-stats .hh-stat-heading>span {flex:1;min-width:0}
#hhome #hh-stats #hh-poster {margin-left:auto;font-size:11px;padding:3px 6px;min-height:24px;border-radius:7px}
#hhome #hh-stats .home-score>strong {display:flex;align-content:start;align-items:center;gap:4px 6px;min-height:0;font-size:36px;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
#hhome #hh-stats .home-score>strong small {flex-basis:100%;font-size:20px;line-height:1.25;font-weight:650;letter-spacing:0;margin-top:5px}
#hhome #hh-stats .collected-star {transform:translateY(-1px)}
#hhome #hh-stats .collected-star .game-star {width:29px;height:29px}
#hhome #hh-stats .home-score>progress {height:10px;border-radius:8px;background:#dbe3f1}
#hh-stats progress::-webkit-progress-bar {background:#dbe3f1;border-radius:8px}
#hh-stats progress::-webkit-progress-value {background:#4165b3;border-radius:8px}
#hh-stats .home-score:last-child progress::-webkit-progress-bar {background:#e8dfc3}
#hh-stats .home-score:last-child progress::-webkit-progress-value {background:#c18b25}
#hhome #hh-stats .home-score>p {font-size:11px;line-height:1.5}
@media(min-width:700px){#hhome #hh-stats .home-score {grid-template-rows:30px 88px 10px auto;padding:18px}#hhome #hh-stats .home-score>strong{font-size:40px}#hhome #hh-stats .hh-stat-heading{font-size:16px}}

/* Result navigation and high-contrast combo records. */
#hmodal #hm-content {position:relative}
#hmodal #hm-content:has(.result-back)>h2 {padding-left:40px;padding-right:40px}
#hmodal .result-back {position:absolute;left:0;top:0;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #b7c5dc;border-radius:11px;background:#edf2fa;color:#355595;cursor:pointer}
#hmodal .result-back:focus-visible {outline:3px solid #7b98d2;outline-offset:2px}
body #hmodal .result-extras {background:transparent;border:1px solid #b8c6dd;border-radius:14px;padding:14px 10px}
body #hmodal .result-extras .result-extra {background:transparent;min-width:0}
body #hmodal .result-extra .extra-label {color:#52617b;font-size:13px}
body #hmodal .result-extra strong {color:#3156ad;font-size:34px;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums}
body #hmodal .result-extra:last-child strong {color:#7952a5}
body #hmodal .result-extra strong small {color:#53627b;font-size:13px;font-weight:500}

/* Light challenge chrome: tightly centered heading and tactile controls. */
body #fs #fall-tools #fhd {box-sizing:border-box;background:#eaf0fb;border:1px solid #b9c9e3;padding:8px 6px;align-items:center;justify-content:center;gap:2px;box-shadow:inset 0 1px #ffffff}
body #fs #fall-tools #ftl {display:block;margin:0;padding:0;color:#516482;font:600 11px/16px system-ui;text-align:center;width:100%}
body #fs #fall-tools #fsc {display:block;margin:0;padding:0;color:#2d50a4;font:800 24px/30px system-ui;text-align:center;width:100%;font-variant-numeric:tabular-nums;text-shadow:none}
body #fs #fall-tools>button {background:#f9f7ef;border:1px solid #b6c6df;color:#365a9c;box-shadow:0 2px 0 #d3ddec}
body #fs #fctrl>button {background:#e8effb;color:#31549d;border:1px solid #acbfdf;box-shadow:0 3px 0 #c5d2e8}
body #fs #fctrl>#tilt-toggle {background:#fff5d9;color:#72561b;border-color:#d6c28c;box-shadow:0 3px 0 #e1d3ad}
body #fs #fctrl>#tilt-toggle[aria-pressed="true"] {background:#dcefe8;color:#276451;border-color:#83b6a3;box-shadow:0 3px 0 #b5d6c9}
body #fs #fctrl>button:active {transform:translateY(2px);box-shadow:none}
body #fs #tilt-status {color:#5a6c86}
body #fs #fall-tools>button:focus-visible,body #fs #fctrl>button:focus-visible {outline:3px solid #6688c3;outline-offset:2px}

/* Compact shortcut cards with readable actions and larger illustrations. */
#hhome #cover-shortcuts .cover-entry-card>button {min-height:78px;grid-template-columns:48px minmax(0,1fr);gap:7px;padding:8px 10px}
#hhome #cover-shortcuts .personality-discovery button>img,#hhome #cover-shortcuts .discovery-icon {width:48px;height:62px;object-fit:contain}
#hhome #cover-shortcuts .discovery-icon svg {width:46px;height:54px}
#hhome #cover-shortcuts .discovery-copy strong {font-size:17px;white-space:nowrap}
#hhome #cover-shortcuts .discovery-copy>small:first-child {font-size:11px;white-space:nowrap}
#hhome #cover-shortcuts .cover-entry-actions {padding:0 8px 8px;gap:5px}
#hhome #cover-shortcuts .cover-entry-actions button {min-height:32px;padding:6px 2px;font-size:11px;white-space:nowrap;flex:1 1 0;min-width:0}
@media(max-width:420px){#hhome #cover-shortcuts .cover-entry-card>button{grid-template-columns:40px minmax(0,1fr);padding:6px;gap:4px;min-height:74px}#hhome #cover-shortcuts .personality-discovery button>img,#hhome #cover-shortcuts .discovery-icon{width:40px;height:60px}#hhome #cover-shortcuts .discovery-icon svg{width:38px;height:48px}#hhome #cover-shortcuts .discovery-copy strong{font-size:14px}#hhome #cover-shortcuts .discovery-copy>small:first-child{font-size:10px}}

/* Atlas: light, legible unlocked cards and a quiet close control. */
body #personality-atlas-dialog .atlas-grid article:not(.atlas-locked){background:color-mix(in srgb,var(--atlas-color) 18%,#fffdf8);border:3px solid color-mix(in srgb,var(--atlas-color) 72%,#526581);box-shadow:none}
body #personality-atlas-dialog .atlas-grid article:not(.atlas-locked) strong{color:#273e65}
body #personality-atlas-dialog .atlas-grid article:not(.atlas-locked)>span{color:color-mix(in srgb,var(--atlas-color) 30%,#29405d);font-weight:600}
body #personality-atlas-dialog .atlas-grid article:not(.atlas-locked)>p{color:#43546b}
body #personality-atlas-dialog .atlas-grid article:not(.atlas-locked)::after{border-color:color-mix(in srgb,var(--atlas-color) 42%,#294c50);top:15px;right:15px}
body #personality-atlas-dialog .atlas-grid article.atlas-locked{background:#ecece8;border:3px solid #c4c7c7;box-shadow:none}
body #personality-atlas-dialog header>button{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid #c4cfdf;border-radius:11px;background:#edf2f9;color:#405c8b;box-shadow:none;outline:none}
body #personality-atlas-dialog header>button:hover{background:#e1e9f6}
body #personality-atlas-dialog button:focus{outline:none}
body #personality-atlas-dialog button:focus-visible{outline:2px solid #6687bd;outline-offset:3px}
body #personality-atlas-dialog .atlas-ring{background:conic-gradient(#538a76 var(--atlas-complete,0%),#dce3e9 0)}

body #hgame .hg-tools {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
body #hgame .hg-tools>button {min-width:0;width:100%;height:44px;padding:4px 2px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1;font-size:18px;border-radius:10px}
body #hgame .hg-tools>button>svg {display:block;flex:none;width:19px;height:19px;color:inherit}
body #hgame .hg-tools>button>span {display:block;font:600 10px/12px system-ui;white-space:nowrap;margin:0}

/* Softer primary color for the pause dialog's Continue action. */
body #hmodal:not(.result-modal) #hm-actions button:first-child {background:#526fa8;color:#fff;border-color:#486499;box-shadow:0 2px 0 #3e5886}
body #hmodal:not(.result-modal) #hm-actions button:first-child:hover {background:#526fa8}

/* Match the result's primary action to the softer Continue button. */
body #hmodal.result-modal #hm-actions button:first-child,body #hmodal.result-modal #hm-actions button:first-child:hover {background:#526fa8;color:#fff;border-color:#486499;box-shadow:0 2px 0 #3e5886}

#hhome #cover-shortcuts #personality-atlas .discovery-copy small:last-child {display:none}
#hhome #cover-shortcuts #cover-atlas-open {display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;height:32px;min-height:32px}
#hhome #cover-shortcuts #cover-atlas-open span {font:600 11px/16px system-ui;white-space:nowrap}
#hhome #cover-shortcuts #cover-atlas-open small {font:600 10px/16px system-ui;color:#52678d;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:899px){#hhome.show-cover #home-cover{justify-content:center;gap:14px}#hhome #cover-shortcuts{margin-top:0}}
@media(min-width:900px){#hhome.show-cover #home-cover{row-gap:14px}}
/* Inline avatar generation status and matching icon actions */
body #pw2 .avatar-effect-frame {position:relative;display:inline-block}
body #pw2 .avatar-source-frame #av-clear,body #pw2 #avatar-retry {position:absolute;top:-12px;right:-12px;width:28px;height:28px;min-height:28px;padding:4px!important;border:0!important;border-radius:0;background:transparent!important;color:#405779!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;cursor:pointer;transform:none}
body #pw2 #av-clear svg,body #pw2 #avatar-retry svg {width:20px;height:20px;display:block}
body #pw2 #avatar-effect-loading {position:absolute;inset:2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:12px;background:#edf2f8;color:#405779;text-align:center;font-size:10px;line-height:1.4}
body #pw2 #avatar-effect-loading strong {font-size:12px;font-weight:600}
body #pw2 .avatar-spinner {width:22px;height:22px;border:3px solid #ced9ea;border-top-color:#4a65a4;border-radius:50%;animation:avatar-spin .9s linear infinite;margin-bottom:2px}
@keyframes avatar-spin {to {transform:rotate(360deg)}}
body #pw2 #avatar-effect-loading[hidden],body #pw2 #avatar-retry[hidden],body #pw2 #avatar-generate[hidden],body #pw2 .avatar-main-action:has(#avatar-generate[hidden]),body #pw2 #ai-gen-hint:empty {display:none!important}
/* Campaign breathing room, kept separate from the full-bleed cover. */
#hhome:not(.show-cover) {box-sizing:border-box;padding-inline:clamp(16px,3vw,36px)}
#hhome:not(.show-cover) #hh-levels {column-gap:14px;row-gap:12px}
#hhome #hh-levels .hh-unit {margin-top:24px;margin-bottom:2px}
@media(max-width:650px){
 #hhome:not(.show-cover){padding-inline:16px}
 #hhome:not(.show-cover) #hh-levels{column-gap:12px;row-gap:12px}
 #hhome #hh-levels .hh-unit{padding-top:12px;padding-bottom:12px;min-height:82px;margin-top:20px}
}
@media(max-width:360px){
 #hhome:not(.show-cover){padding-inline:12px}
 #hhome:not(.show-cover) #hh-levels{column-gap:10px}
}
/* Light result actions and unboxed back chevron. */
body #hmodal .result-back,body #hmodal .result-back:hover {background:transparent!important;border:0!important;box-shadow:none!important;color:#426391;padding:0;border-radius:0}
body #hmodal .result-back svg {display:block;width:24px;height:24px}
body #hmodal.result-modal #hm-actions button:first-child,body #hmodal.result-modal #hm-actions button:first-child:hover {background:#e2ebfa;color:#294777;border:1px solid #a8bbdc;box-shadow:none}
/* More air around the atlas without narrowing card copy excessively. */
body #personality-atlas-dialog {box-sizing:border-box;width:min(1160px,calc(100vw - 40px));max-height:calc(100dvh - 48px);padding:24px}
body #personality-atlas-dialog .atlas-grid {gap:14px}
body #personality-atlas-dialog .atlas-groups h3 {margin-top:26px;margin-bottom:12px}
body #personality-atlas-dialog header {margin-bottom:18px;gap:10px}
body #personality-atlas-dialog header>button:focus,body #personality-atlas-dialog header>button:focus-visible {outline:none!important;box-shadow:none!important}
body #personality-atlas-dialog header>button:focus-visible {background:#dbe5f5}
@media(max-width:650px){
 body #personality-atlas-dialog {width:calc(100vw - 28px);padding:18px;max-height:calc(100dvh - 40px)}
 body #personality-atlas-dialog .atlas-grid {gap:12px}
}
@media(max-width:360px){body #personality-atlas-dialog{padding:14px}body #personality-atlas-dialog .atlas-grid{gap:10px}}
/* Pause resume: warm cream accent without the muted blue shadow. */
body #hmodal:not(.result-modal) #hm-actions button:first-child,
body #hmodal:not(.result-modal) #hm-actions button:first-child:hover {background:#f5e3a6;color:#293e64;border:1px solid #ddc77f;box-shadow:none}
body #hgame .hg-heading #hg-name {background:transparent!important;box-shadow:none;border:0;align-self:center}
body #hgame #hg-back {display:grid;place-items:center;padding:0;color:#426391}
body #hgame #hg-back svg {display:block}
/* Cobalt quiz action with high-contrast white text. */
body #hmodal.result-modal #hm-actions button:first-child,
body #hmodal.result-modal #hm-actions button:first-child:hover,
body #b-quiz,body #b-quiz:hover {background:#354fba!important;color:#ffffff!important;border:1px solid #354fba!important;box-shadow:none!important}
body #hmodal .result-back,body #hmodal .result-back:hover {background:transparent!important;border:0!important;box-shadow:none!important}
body #qs #qh .quiz-next-highlight {color:#287749;font-weight:600}
body #qs #qh .quiz-fall-highlight {color:#bf3e3e;font-weight:600}
/* Keep prototype controls from adding a blank footer to the landing screen. */
#hhome.show-cover>.hybrid-preview {display:none!important}
body:has(#hhome.show-cover):not(:has(#hybrid-root[hidden])) #gw {padding-bottom:0!important;margin-bottom:0!important}
#hhome.show-cover #home-cover {padding-bottom:max(14px,env(safe-area-inset-bottom))}
body #pw2 .avatar-source-frame #av-clear,body #pw2 .avatar-source-frame #av-clear:hover {width:24px;height:24px;min-height:24px;top:-8px;right:-8px;padding:0!important;border:1px solid #91a3bf!important;border-radius:50%;background:#fffdf8!important;color:#405779!important;box-shadow:none!important;display:grid!important;place-items:center}
body #pw2 .avatar-source-frame #av-clear[style*="display: none"],body #pw2 .avatar-source-frame #av-clear[style*="display:none"]{display:none!important}
body #pw2 .avatar-source-frame #av-clear svg{width:14px;height:14px;margin:0}
body #pw2 #av-wrap{touch-action:none;cursor:grab}
body #pw2 #avatar-retry {width:24px;height:24px;min-height:24px;top:-8px;right:-8px;padding:0!important;border:1px solid #91a3bf!important;border-radius:50%;background:#fffdf8!important;color:#405779!important;box-shadow:none!important;display:grid;place-items:center;z-index:2}
body #pw2 #avatar-retry svg {width:14px;height:14px;margin:0}
body #pw2 .avatar-effect-frame {overflow:visible}
body #pw2 #avatar-retry:not([hidden]) {display:grid!important}

/* Keep shared card rows anchored to the top when optional records differ. */
#hhome #hh-levels .hh-level {
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:stretch;
}
#hhome #hh-levels .hh-level-copy {
  flex:0 0 auto;
}


/* Approved C: unified cream header, cobalt controls; lower controls unchanged. */
body #fs #fall-tools {background:#fffdf5;border:1px solid #e4ddca;border-radius:18px;padding:8px;box-shadow:0 3px 8px #304c7514;align-items:center}
body #fs #fall-tools #fhd {background:transparent!important;border:0;box-shadow:none}
body #fs #fall-tools #ftl {color:#42648a}
body #fs #fall-tools #fsc {color:#165caa}
body #fs #fall-tools button {background:#fffdf5!important;color:#165caa!important;border:1px solid #e4ddca!important;box-shadow:0 2px 4px #304c7520}
body #fs #fall-tools #fall-pause svg rect {fill:transparent}
body #fs #fall-tools #fall-pause svg path {fill:#165caa}
#fall-rules {color:#365776;font:12px/1.7 system-ui;margin:12px 8px}
#fall-rules summary {text-align:center;cursor:pointer;font-weight:600}
#fall-rules p {margin:8px 0}

/* Compact atlas rhythm; unlock state uses color and portrait, not a check mark. */
body #personality-atlas-dialog header {margin-bottom:8px}
body #personality-atlas-dialog>p {margin:0 0 10px;padding:0;text-align:left;line-height:1.6}
body #personality-atlas-dialog .atlas-groups h3 {margin-top:18px;margin-bottom:8px}
body #personality-atlas-dialog .atlas-groups section:first-child h3 {margin-top:0}
body #personality-atlas-dialog .atlas-grid article:not(.atlas-locked)::after {content:none;display:none}
body #personality-atlas-dialog .atlas-grid article:not(.atlas-locked) {
 background:color-mix(in srgb,var(--atlas-color) 14%,#fffdf8);
 border-color:color-mix(in srgb,var(--atlas-color) 70%,#526581);
}
body #personality-atlas-dialog .atlas-grid article>p {text-align:left}

/* Result is a true modal: preserve controls behind one full-screen scrim. */
body #fs.fall-ended #fall-tools,
body #fs.fall-ended #fall-tools>button,
body #fs.fall-ended #fctrl,
body #fs.fall-ended #fall-motion {visibility:visible}
body #fs #fres {position:fixed;inset:0;margin:auto;transform:none;width:min(340px,calc(100vw - 40px));height:fit-content;box-sizing:border-box;padding:26px 22px;background:#fffdf7;color:#294268;border:1px solid #c3cee0;border-radius:20px;box-shadow:0 16px 56px #17233b40}
body #fs #fres::backdrop {background:rgba(19,29,48,.58)}
body #fs #fres>div:first-child {color:#294fa6!important;font-size:23px!important;font-weight:750!important;text-indent:0}
body #fs #fres>div:nth-child(2) {color:#52647c!important;font-size:14px!important;line-height:1.7}
body #fs #fres button {background:#e8eef9!important;color:#294777!important;border:1px solid #b5c5de!important;box-shadow:none;padding:11px 18px!important;font-weight:650}
body #fs #fres button:first-of-type {background:#354fba!important;color:white!important;border-color:#354fba!important}

/* Symmetric gameplay navigation controls. */
body #hgame .hg-heading {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px}
body #hgame .hg-heading #hg-name {text-align:center}
body #hgame .hg-heading :is(#hg-back,#hg-pause) {display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;box-sizing:border-box;border:1px solid #adbfdd!important;border-radius:13px;background:#e7edf8!important;color:#426391!important;box-shadow:0 2px 0 #c7d2e5;line-height:1}
body #hgame .hg-heading :is(#hg-back,#hg-pause) svg {display:block;width:22px;height:22px;margin:0}

/* Shorter, readable introduction to the personality test. */
body #personality-dialog.personality-intro>p {color:#4b5d76;font-size:14px;line-height:1.7;margin:10px 0 0}
body #personality-dialog.personality-intro .personality-ensemble {margin:10px 0 12px;padding:0}
body #personality-dialog.personality-intro .personality-actions {margin-top:0}

/* Avatar generation confirmation replaces the bottom action. */
body #avatar-generate{display:none!important}
.avatar-confirm-dialog{width:min(360px,calc(100vw - 40px));box-sizing:border-box;padding:24px;border:1px solid #bdcbe0;border-radius:20px;background:#fffdf7;color:#304563;box-shadow:0 18px 60px #14244433}
.avatar-confirm-dialog::backdrop{background:#17263b80}
.avatar-confirm-dialog h3{margin:0 0 12px;color:#304eaa;font-size:21px}
.avatar-confirm-dialog p{line-height:1.7;margin:0 0 20px}
.avatar-confirm-dialog>div{display:flex;gap:10px}
.avatar-confirm-dialog button{flex:1;padding:12px 8px;border:1px solid #b6c5df;border-radius:12px;background:#edf1fa;color:#304563;font:inherit;cursor:pointer}
.avatar-confirm-dialog [data-confirm]{background:#354fba;color:white;border-color:#354fba}

/* Yellow quiz action with coordinated rose lettering and centered content. */
body #hmodal.result-modal #hm-actions button.quiz-entry-button,
body #hmodal.result-modal #hm-actions button.quiz-entry-button:hover,
body #b-quiz,body #b-quiz:hover{
 background:#f6e3a3!important;color:#293e64!important;border:1px solid #ead38d!important;box-shadow:none!important;
 display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;line-height:1.2;
}
body .quiz-entry-button>span,body #b-quiz>span{display:block;margin:0;line-height:1.2}

/* Complete the light palette throughout the personality test flow. */
body #personality-dialog .pq-card{background:#eef3f9;border-color:#c5d2e2;color:#344f70}
body #personality-dialog .pq-scale{color:#526780;border-color:#d3dce6}
body #personality-dialog .pq-scale .active{color:#256653;font-weight:750}
body #personality-dialog .personality-actions>button{background:#eaf0fa;color:#304b79;border:1px solid #b8c7df;box-shadow:none}
body #personality-dialog .personality-actions>button:first-child{background:#354fba;color:#fff;border-color:#354fba}
body #personality-dialog[data-page=tie] .personality-actions>button{background:#eaf0fa;color:#304b79;border-color:#b8c7df}
body #personality-dialog .pq-options button{background:#eef3fa;color:#304b70;border-color:#bdcce1}
body #personality-dialog .pq-options button[aria-pressed=true]{background:#deeee3;color:#255d48;border-color:#78a68e;box-shadow:none}
body #personality-dialog .pq-mini{background:#e7edf6}
body #personality-dialog .pq-axis b{color:#304b70}
body #personality-dialog .pq-axis dt,body #personality-dialog .pq-axis-or{color:#60748d}
body #personality-dialog .pq-info p,body #personality-dialog .retest-guidance p+p,body #personality-dialog>small{color:#62748a}

/* Result and pause controls do not draw an outer focus ring. */
body :is(#fres button,#fall-pause,#hg-pause,#pause,#hmodal:not(.result-modal) #hm-actions button):is(:focus,:focus-visible){outline:none!important;outline-offset:0!important}

/* Explicit palette for all quiz steps, including hover and focus states. */
body #personality-dialog .pq-card,body #personality-dialog .pq-info-columns .pq-info{background:#eef3f9!important;border-color:#c5d2e2!important;color:#344f70!important}
body #personality-dialog p,body #personality-dialog .pq-info p,body #personality-dialog .retest-guidance p,body #personality-dialog .pq-note{color:#4b5d76!important}
body #personality-dialog .pq-axis dd,body #personality-dialog .pq-axis b{color:#344f70!important}
body #personality-dialog .pq-mbti-mark span:nth-child(1){background:#e9e0f4;color:#6b4f93}
body #personality-dialog .pq-mbti-mark span:nth-child(2){background:#deeee5;color:#316a52}
body #personality-dialog .pq-mbti-mark span:nth-child(3){background:#e0eaf7;color:#3d618c}
body #personality-dialog .pq-mbti-mark span:nth-child(4){background:#f7edc9;color:#80651d}
body #personality-dialog .personality-actions>button:nth-child(n+2),
body #personality-dialog .personality-actions>button:nth-child(n+2):hover{background:#eaf0fa!important;color:#304b79!important;border-color:#b8c7df!important}
body #personality-dialog[data-page=tie] .personality-actions>button{background:#eef3fa!important;color:#304b79!important;border-color:#b8c7df!important}
body #personality-dialog[data-page=tie] .personality-actions>button:is(:hover,:focus-visible,:active){background:#dcebe5!important;color:#255d48!important;border-color:#78a68e!important;box-shadow:none}

/* Compact, aligned campaign summary cards. */
#hhome #hh-stats .home-score{container-type:inline-size;grid-template-rows:30px 42px 6px 18px;gap:8px;padding:12px;min-height:0}
#hhome #hh-stats .hh-stat-heading{font-size:12px;align-items:center;flex-wrap:nowrap;line-height:1.2;gap:4px}
#hhome #hh-stats .hh-stat-heading>span{white-space:nowrap}
#hhome #hh-stats #hh-poster{font-size:10px;padding:3px 4px;min-height:22px;white-space:nowrap}
#hhome #hh-stats .home-score>strong{flex-wrap:nowrap;align-items:center;align-content:center;gap:3px;font-size:clamp(20px,15cqw,30px);letter-spacing:-.4px;min-height:0;white-space:nowrap}
#hhome #hh-stats .home-score>strong small{flex-basis:auto;font-size:clamp(10px,7cqw,15px);font-weight:600;margin:0;line-height:1.2}
#hhome #hh-stats .collected-star .game-star{width:20px;height:20px}
#hhome #hh-stats .home-score>progress{height:6px}
#hhome #hh-stats .home-score>p{font-size:clamp(8px,5.8cqw,12px);line-height:18px;white-space:nowrap;letter-spacing:-.2px}
@media(min-width:700px){#hhome #hh-stats .home-score{padding:14px 16px;grid-template-rows:26px 44px 6px 18px}#hhome #hh-stats .hh-stat-heading{font-size:14px}}
@media(max-width:360px){#hhome #hh-stats .home-score{padding:9px}#hhome #hh-stats .hh-stat-heading{font-size:10px}#hhome #hh-stats #hh-poster{font-size:9px;padding:2px}}

/* Approved illustrated title and gold play-button accents. */
#hhome.show-cover #home-cover{padding-top:10px}
#home-cover .cover-title{margin-top:-4px}
#home-cover .cover-title h1{margin:0;line-height:0}
#home-cover .cover-title-art{display:block;width:clamp(194px,52vw,270px);height:auto;mix-blend-mode:multiply}
#hhome #cover-start{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;color:#fff6dc;background:linear-gradient(180deg,#4f83b0,#30618f);border-color:#d8bc68;box-shadow:inset 0 2px 2px #ffffff36,0 3px 0 #c7bb96}
#cover-start .start-spark{width:17px;height:21px;flex:0 0 17px;background:linear-gradient(135deg,#fff4b5,#e4bd56);clip-path:polygon(8% 0,100% 50%,8% 100%,22% 50%);filter:drop-shadow(0 2px 1px #173f65)}
#cover-start .start-spark-right{transform:rotate(180deg)}
#cover-start::before,#cover-start::after{content:'';position:absolute;width:9px;height:13px;background:#e8ca78;clip-path:polygon(0 0,100% 50%,0 100%);top:50%;transform:translateY(-50%);pointer-events:none}
#cover-start::before{left:-15px}#cover-start::after{right:-15px;transform:translateY(-50%) rotate(180deg)}
@media(min-width:900px){#hhome.show-cover #home-cover{padding-top:32px}#home-cover .cover-title{transform:translateY(-14px)}#home-cover .cover-title-art{width:270px;margin:auto}}

body .avatar-confirm-dialog{position:fixed;inset:auto 0 auto;margin:0 auto;max-height:calc(100dvh - 32px);overflow:auto}
body #pw2 .avatar-workbench{position:relative}
body #pw2 .avatar-convert-mark{position:absolute;left:50%;top:calc(50% - 12px);transform:translate(-50%,-50%);color:#7389b0;font:28px/1 system-ui;pointer-events:none}
body #pw2 #avatar-retry:not([hidden]){display:grid!important;pointer-events:auto!important;z-index:5}
body #pw2 .avatar-source-label{display:block;color:#4b6186;font-size:11px;line-height:1.5}

/* Square fall controls, with centered icons. */
body #fs #fall-tools>button {box-sizing:border-box;flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;display:grid;place-items:center;border-radius:10px}
body #fs #fall-tools>button svg {width:24px;height:24px;margin:0;display:block}

/* Center the atlas hierarchy and give collection progress its own compact row. */
body #personality-atlas-dialog header {position:relative;display:block;padding:8px 44px;min-height:40px;box-sizing:border-box}
body #personality-atlas-dialog .atlas-title {display:block;margin:0;text-align:center}
body #personality-atlas-dialog header button {position:absolute;right:0;top:50%;transform:translateY(-50%)}
body #personality-atlas-dialog > p {text-align:center;margin:8px 0 12px;line-height:1.6}
body #personality-atlas-dialog .atlas-progress {display:flex;flex-direction:column-reverse;gap:7px;width:min(210px,75%);margin:0 auto 18px;color:#526581}
body #personality-atlas-dialog .atlas-progress span {display:flex;align-items:baseline;justify-content:center;gap:8px;font-size:12px}
body #personality-atlas-dialog .atlas-progress b {font-size:16px;line-height:1.2;color:#3455a0}
body #personality-atlas-dialog .atlas-ring {display:block;width:100%;height:6px;border-radius:9px;mask:none;background:linear-gradient(to right,#739bca var(--atlas-complete,0%),#e2e8ee 0)}
body #personality-atlas-dialog .atlas-groups h3 {padding:0;text-align:center}

/* B: linked route and star, rendered as crisp live typography and vector details. */
#hhome .hh-heading {row-gap:6px;padding-top:4px;padding-bottom:16px}
#hhome .hh-heading .campaign-linked-title {position:relative;isolation:isolate;width:100%;max-width:340px;justify-self:center;padding:16px 0 19px;box-sizing:border-box;line-height:1.15}
#hhome .campaign-linked-title span {position:relative;z-index:1;display:block;color:#2462b7;font-family:"Arial Rounded MT Bold","Microsoft YaHei",system-ui,sans-serif;font-weight:900;font-size:clamp(24px,6.5vw,40px);letter-spacing:2px;text-shadow:0 1px 0 #fff; -webkit-text-stroke:.35px currentColor}
#hhome .campaign-title-route {position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#hhome .hh-heading p {color:#355677;font-size:14px;line-height:1.6}
@media(max-width:360px){#hhome .hh-heading{column-gap:5px}#hhome .campaign-linked-title span{font-size:23px;letter-spacing:1px}}

body #pw2 #avatar-start {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:9px 12px;border:1px solid #a9bbdc;border-radius:10px;background:#fffdf7;color:#31558f;font:650 12px/1.3 system-ui;white-space:nowrap;box-shadow:0 2px 5px #34507912;cursor:pointer;z-index:2}
body #pw2 #avatar-start[hidden],body #pw2 #avatar-retry[hidden]{display:none!important}

/* Selected C group portrait; keep all three labels above the artwork. */
#home-cover .cover-collection {padding:0;border:0;background:transparent;box-shadow:none;isolation:isolate}
#home-cover .cover-portraits {display:block;max-width:none;width:100%;aspect-ratio:1}
#home-cover .cover-portraits .cover-group-art {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:none;border-radius:24px}
#home-cover .cover-tabs,#home-cover .cover-question,#home-cover .cover-caption {z-index:2}
#home-cover .cover-tabs {left:-12px;top:8%}
#home-cover .cover-question {right:-12px;top:37%;max-width:78px;padding:10px 8px;font-size:13px}
#home-cover .cover-caption {left:-8px;bottom:-12px;padding:8px 10px;font-size:14px}

/* Brighter cleared cards: clean white mixed with more of each unit hue. */
#hhome #hh-levels .hh-level.cleared:not(:disabled) {
  background:color-mix(in srgb,var(--unit-color) 34%,#ffffff);
  border-color:color-mix(in srgb,var(--unit-color) 85%,#3b6597);
  box-shadow:0 3px 0 color-mix(in srgb,var(--unit-color) 38%,#ffffff);
}
/* B's substantial rounded blue frame around the selected C group portrait. */
#home-cover .cover-collection::after {
  content:"";position:absolute;inset:3.8%;border:clamp(7px,2vw,12px) solid #2868bb;border-radius:9%;
  box-shadow:inset 0 0 0 3px #163f79,0 2px 0 #c9d7e7;
  pointer-events:none;z-index:1;
}

/* Four dimensional character tiles, matching the approved title reference. */
#hhome .hh-heading .campaign-tile-title {display:flex;justify-content:center;gap:6px;width:100%;max-width:340px;justify-self:center;padding:8px 5px 10px;box-sizing:border-box}
#hhome .campaign-tile-title span {position:relative;isolation:isolate;display:grid;place-items:center;flex:1;min-width:0;aspect-ratio:1;border:2px solid #fffef9;border-radius:18%;background:linear-gradient(145deg,#fffef9,#edf1f5);color:#315eb0;font:900 clamp(25px,7vw,46px)/1 "Microsoft YaHei",system-ui,sans-serif;box-shadow:4px -3px 0 #3465b9,5px 1px 0 #28529e,0 7px 10px #294e8a19,inset -2px -2px 0 #e4e9f0;}
#hhome .campaign-tile-title span::before {content:"";position:absolute;width:19%;height:27%;left:0;top:0;background:linear-gradient(135deg,#f5d774,#d5a03c);border-radius:65% 0 80% 0;z-index:-1}
#hhome .campaign-tile-title span:nth-child(2)::before {left:auto;top:auto;right:0;bottom:0;transform:rotate(180deg)}
#hhome .campaign-tile-title span:nth-child(3)::before {width:16%;height:5%;left:44%;border-radius:0 0 60% 60%}
#hhome .campaign-tile-title span:nth-child(4)::before {left:auto;right:0;transform:rotate(90deg)}
#hhome .hh-heading:has(.campaign-tile-title) {row-gap:10px;padding-bottom:18px}
@media(max-width:360px){#hhome .hh-heading .campaign-tile-title{gap:5px}#hhome .campaign-tile-title span{font-size:24px}}

/* Compact atlas controls and a sixteen-piece collection meter. */
body #personality-atlas-dialog,body #personality-atlas-dialog:focus,body #personality-atlas-dialog:focus-visible {outline:none!important;outline-offset:0!important}
body #personality-atlas-dialog header>button {width:30px;height:30px;min-width:30px;min-height:30px;border-radius:9px;padding:0}
body #personality-atlas-dialog header>button svg {width:16px;height:16px}
body #personality-atlas-dialog .atlas-progress {width:min(252px,88%);gap:9px;margin-bottom:18px}
body #personality-atlas-dialog .atlas-progress span {font-size:12px;color:#526581;gap:7px}
body #personality-atlas-dialog .atlas-progress b {font-size:17px;color:#3155a0}
body #personality-atlas-dialog .atlas-ring {display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;height:auto;background:none;mask:none;overflow:visible;border-radius:0}
body #personality-atlas-dialog .atlas-progress-cell {display:block;aspect-ratio:1;border:1px solid #d7dee7;border-radius:3px;background:#edf0f4;box-sizing:border-box}
body #personality-atlas-dialog .atlas-progress-cell.is-known {background:var(--cell-color);border-color:color-mix(in srgb,var(--cell-color) 80%,#65768a);box-shadow:inset 0 1px 0 #ffffff70}

/* Compact campaign rhythm and quieter title lettering. */
#hhome .campaign-tile-title span {font-size:clamp(22px,5.6vw,36px);color:#354ba2}
#hhome .hh-heading:has(.campaign-tile-title) {row-gap:6px;padding-bottom:6px}
#hhome .hh-heading>p {display:flex;align-items:center;justify-content:center;gap:12px}
#hhome .hh-heading>p::before,#hhome .hh-heading>p::after {content:"";width:clamp(20px,6vw,48px);height:1px;background:#c3ae72;flex:none}
#hhome:not(.show-cover) .hh-actions {margin:6px 0 12px}
#hhome:not(.show-cover) #hh-stats {margin:12px 0 8px}
#hhome:not(.show-cover) #hh-levels {row-gap:10px}
#hhome #hh-levels .hh-unit {margin-top:10px;margin-bottom:0}
#hhome #hh-levels .hh-unit:first-child {margin-top:2px}
@media(max-width:360px){#hhome .campaign-tile-title span{font-size:22px}#hhome .hh-heading>p{gap:8px}}

/* Readable matched statistics: aligned figures and two deliberate caption lines. */
#hhome #hh-stats .home-score {grid-template-rows:30px 42px 6px 36px;gap:8px}
#hhome #hh-stats .home-score>strong {align-items:baseline;line-height:1;gap:4px}
#hhome #hh-stats .home-score>strong .stat-main {line-height:1}
#hhome #hh-stats .home-score>strong small {line-height:1;font-size:clamp(11px,7cqw,15px)}
#hhome #hh-stats .collected-star {align-self:center;display:flex;align-items:center;margin-left:0}
#hhome #hh-stats .home-score>p {font-size:12px;line-height:18px;letter-spacing:0;white-space:normal;margin:0}
#hhome #hh-stats .home-score>p>span {display:block;white-space:nowrap}
#hhome #hh-stats #hh-poster,#hhome #hh-stats #hh-poster:disabled {background:#f7d873;color:#70450a;border:1px solid #d7a43a;border-radius:8px;padding:4px 6px;font-size:11px;font-weight:750;box-shadow:0 2px 0 #e3bd60;opacity:1}
#hhome #hh-stats #hh-poster:enabled {background:#f6ce58;color:#633e08;border-color:#c9972f}
@media(max-width:360px){#hhome #hh-stats .home-score>p{font-size:11px}#hhome #hh-stats #hh-poster{font-size:10px;padding:4px}}

#hhome #hh-stats .hh-score-divider {height:1px;align-self:center;background:#c9d5ea;width:100%}
#hhome #hh-stats .home-score-record .hh-total-detail {align-self:center;font-size:13px}

/* A cream title plaque sharing the campaign cards' palette and soft depth. */
#hhome .hh-heading:has(.campaign-board-title){row-gap:12px;padding-top:4px;padding-bottom:4px}
#hhome .hh-heading .campaign-board-title {justify-self:center;display:flex;align-items:center;justify-content:center;gap:11px;width:max-content;max-width:100%;box-sizing:border-box;padding:11px 18px;background:#faf8f1;border:1px solid #d5c6a9;border-radius:15px;box-shadow:0 3px 0 #e5dac3;color:#45648b;font:750 clamp(23px,5.6vw,30px)/1.25 system-ui;letter-spacing:1px;margin:0}
#hhome .campaign-title-marks{display:grid;grid-template-columns:repeat(2,7px);gap:3px;flex:none;transform:rotate(-8deg)}
#hhome .campaign-title-marks i{display:block;width:7px;height:7px;border-radius:2px;background:#a78ac9}
#hhome .campaign-title-marks i:nth-child(2){background:#8fbea2}
#hhome .campaign-title-marks i:nth-child(3){background:#8eafd5}
#hhome .campaign-title-marks i:nth-child(4){background:#dec674}
#hhome .hh-heading:has(.campaign-board-title)>p {font-size:13px;color:#64778f;gap:10px}
#hhome .hh-heading:has(.campaign-board-title)>p::before,#hhome .hh-heading:has(.campaign-board-title)>p::after {width:24px;background:#d5c6a9}
@media(max-width:360px){#hhome .hh-heading .campaign-board-title{font-size:22px;padding:10px 12px;gap:8px}}

/* Safe-area-aware poster spacing, without the retired action's empty row. */
body #ps {padding-top:calc(env(safe-area-inset-top,0px) + 14px)}
body #ps .poster-heading {text-align:center;padding:0 0 12px}
body #ps .poster-title-row {justify-content:center}
body #ps #pt {width:100%;text-align:center;margin:0;line-height:1.4}
body #pw2 .avatar-main-action {display:none!important}
body #pw2 #av-hint {margin:6px 0 0!important;height:auto;min-height:0;line-height:16px}
body #pw2 #av-hint[style*="display:none"],body #pw2 #av-hint[style*="display: none"] {display:none!important}
body #pw2 .psec:has(.avatar-workbench) {padding-bottom:12px}
body #pw2 #ai-gen-hint:empty {display:none!important;margin:0;min-height:0}

/* Balanced score/star summaries, shared baseline and identical supporting rows. */
#hhome #hh-stats .home-score {grid-template-rows:30px 42px 1px 24px;gap:10px;padding:14px;align-content:start}
#hhome #hh-stats .home-score>strong {display:flex;align-items:baseline;gap:5px;line-height:1;font-size:30px}
#hhome #hh-stats .home-score>strong small {font-size:13px;line-height:1}
#hhome #hh-stats .collected-star {display:inline-flex;align-self:baseline;align-items:center;position:relative;top:2px;line-height:1;margin:0}
#hhome #hh-stats .collected-star .game-star {display:block;width:21px;height:21px;transform:none;margin:0}
#hhome #hh-stats .home-score:last-child .hh-score-divider {background:#e0cfa1}
#hhome #hh-stats .home-score>p,#hhome #hh-stats .home-score-record .hh-total-detail {align-self:center;font-size:13px;line-height:20px}
@media(max-width:360px){#hhome #hh-stats .home-score{padding:10px;gap:9px}#hhome #hh-stats .home-score>strong{font-size:27px}#hhome #hh-stats .home-score>p{font-size:12px}}

/* Tighter star cluster, with enough reserved space for long level names. */
#hhome #hh-levels .hh-stars {gap:0;right:8px}
#hhome #hh-levels .hh-stars .game-star {width:18px;height:18px}
#hhome #hh-levels .hh-level-copy>strong {padding-right:56px}

/* Place group tabs around all four edges rather than in a left rail. */
#home-cover .cover-tabs {position:absolute;inset:0;display:block;pointer-events:none;z-index:3}
#home-cover .cover-tabs span {position:absolute;padding:7px 8px;font-size:13px;line-height:1.15;min-width:24px;text-align:center}
#home-cover .cover-tabs span:nth-child(1){left:27%;top:0;transform:translate(-50%,-15%)}
#home-cover .cover-tabs span:nth-child(2){right:0;top:22%;transform:translate(15%,-50%)}
#home-cover .cover-tabs span:nth-child(3){left:0;top:66%;transform:translate(-15%,-50%)}
#home-cover .cover-tabs span:nth-child(4){left:70%;bottom:0;transform:translate(-50%,15%)}
#home-cover .cover-question {right:-24px;top:44%;max-width:65px;padding:8px 7px;font-size:12px;transform:translateX(8px) rotate(6deg)}
#hhome #cover-start::before,#hhome #cover-start::after {content:none;display:none}

#home-cover .cover-title-art {width:clamp(220px,62vw,310px);mix-blend-mode:normal;margin:auto}
#home-cover .cover-title {margin-top:0}
@media(max-width:899px){#hhome.show-cover #home-cover{justify-content:flex-start;padding-top:calc(env(safe-area-inset-top,0px) + 4px);gap:10px}#hhome.show-cover{padding-top:0}}
@media(min-width:900px){#hhome.show-cover #home-cover{padding-top:16px}#home-cover .cover-title-art{width:310px}}

/* Book-title hierarchy: warm edition badge, strong ink title, quiet collection count. */
body #personality-atlas-dialog .atlas-book-title {display:flex;align-items:center;justify-content:center;gap:9px;color:#293f64;font-family:"Microsoft YaHei",system-ui,sans-serif;font-size:clamp(24px,5.5vw,32px);font-weight:850;letter-spacing:1px;line-height:1.25}
body #personality-atlas-dialog .atlas-title-number {display:grid;place-items:center;flex:none;width:37px;height:41px;border-radius:9px;background:#f6e8b7;border:1px solid #dfc984;color:#806024;font:800 25px/1 system-ui;letter-spacing:-1px;box-shadow:0 2px 0 #e8d8a1;transform:rotate(-4deg)}
body #personality-atlas-dialog>p {color:#64738a;font-size:12px;margin-top:12px;margin-bottom:12px}
body #personality-atlas-dialog .atlas-progress span {color:#7a858e;font-size:11px;gap:6px}
body #personality-atlas-dialog .atlas-progress b {color:#55766e;font-size:14px;font-weight:600;letter-spacing:.3px}
@media(max-width:360px){body #personality-atlas-dialog .atlas-book-title{font-size:22px;gap:6px}body #personality-atlas-dialog .atlas-title-number{width:31px;height:35px;font-size:22px}}

/* Three distinct endless-entry states, using clean blue and warm paper. */
#hhome #hh-endless-shortcut {position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 16px;border-radius:16px;min-height:64px;box-shadow:none}
#hhome #hh-endless-shortcut .endless-entry-icon{font-size:25px;line-height:1;flex:none}
#hhome #hh-endless-shortcut .endless-entry-copy{display:flex;flex-direction:column;gap:3px;position:relative;z-index:1}
#hhome #hh-endless-shortcut b{font-size:16px;line-height:1.2}
#hhome #hh-endless-shortcut small{font-size:12px;line-height:1.4;font-weight:500}
#hhome #hh-endless-shortcut .endless-entry-decoration{margin-left:auto;font-size:25px}
#hhome #hh-endless-shortcut[data-state=locked]{background:#edf3fc;color:#526b8d;border:1px solid #bdcde4;opacity:1}
#hhome #hh-endless-shortcut[data-state=poster]{background:#fff4d6;color:#805c25;border:1px solid #e2ca8c}
#hhome #hh-endless-shortcut[data-state=ready]{background:linear-gradient(115deg,#375bb3,#407bc0);color:#fff;border:1px solid #496fba;box-shadow:0 3px 0 #c5d5ed}
#hhome #hh-endless-shortcut[data-state=ready] small{color:#e2efff}
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-decoration{color:#ffe5a3;animation:endless-twinkle 3s ease-in-out infinite}
#hhome #hh-endless-shortcut[data-state=ready]::after{content:"";position:absolute;inset:-50% auto -50% -45%;width:25%;background:linear-gradient(90deg,transparent,#ffffff20,transparent);transform:skewX(-20deg);animation:endless-shine 6s ease-in-out infinite;pointer-events:none}
@keyframes endless-shine{0%,65%{left:-45%}100%{left:130%}}
@keyframes endless-twinkle{0%,100%{opacity:.6;transform:scale(.9)}50%{opacity:1;transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){#hhome #hh-endless-shortcut::after,#hhome #hh-endless-shortcut .endless-entry-decoration{animation:none!important}}

/* Match fall controls' shape and soft shadow, preserving match-game colors/type. */
body #hgame .hg-heading :is(#hg-back,#hg-pause) {border-radius:10px;box-shadow:0 2px 4px #304c7520}

/* Consistent poster module hierarchy and a little more top breathing room. */
body #ps {padding-top:calc(env(safe-area-inset-top,0px) + 28px)}
body #ps .poster-heading {padding-bottom:20px}
body #pw2 #poster-form>.psec {border:1px solid #bdc9da;border-radius:14px;box-shadow:0 4px 0 #dce1e8;background:#fcfcfa}
body #pw2 .mbti-heading .plab,body #pw2 .avatar-heading>strong {font-size:17px;font-weight:650;line-height:1.4;color:var(--ink);margin:0}
@media(max-width:600px){body #pw2 .mbti-heading .plab,body #pw2 .avatar-heading>strong {font-size:15px}}

/* Center the endless entry as one group; lavender separates it from score blue. */
#hhome #hh-endless-shortcut {display:flex!important;flex-direction:row!important;justify-content:center;align-items:center;gap:12px;text-align:left;padding:14px 18px}
#hhome #hh-endless-shortcut[data-state=locked] {background:#f1ebf8;color:#685580;border-color:#cdbddd}
#hhome #hh-endless-shortcut[data-state=locked] .endless-entry-copy b {color:#63507e}
#hhome #hh-endless-shortcut[data-state=locked] .endless-entry-copy small {color:#776889}
#hhome #hh-endless-shortcut .endless-entry-icon {display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;font-size:27px;margin:0}
#hhome #hh-endless-shortcut .endless-entry-copy {flex:0 1 auto;display:flex;flex-direction:column;gap:4px}
#hhome #hh-endless-shortcut .endless-entry-copy b {margin:0;font-size:16px;line-height:1.25}
#hhome #hh-endless-shortcut .endless-entry-copy small {margin:0;font-size:12px;line-height:1.4}
#hhome #hh-endless-shortcut .endless-entry-decoration {margin-left:0;flex:none}
#hhome #hh-endless-shortcut .endless-entry-decoration:empty {display:none}

/* Give the cover title and primary action more breathing room. */
#home-cover .cover-question {right:-12px;top:50%;transform:rotate(6deg)}
#hhome #cover-start {margin-top:12px;margin-bottom:12px}
@media(max-width:899px){#hhome.show-cover #home-cover{padding-top:calc(env(safe-area-inset-top,0px) + 18px)}#hhome #cover-shortcuts{margin-top:4px}}

/* Approved B: centered title with symmetrical stars and no plaque. */
#hhome .hh-heading .campaign-star-title {display:flex;align-items:center;justify-content:center;gap:10px;justify-self:center;width:100%;margin:0;padding:10px 0;background:none;border:0;box-shadow:none;color:#45648b;font:800 clamp(23px,5.6vw,32px)/1.3 system-ui;letter-spacing:1px;white-space:nowrap}
#hhome .campaign-star-title>span:first-child,#hhome .campaign-star-title>span:last-child {color:#dfbd65;font-size:17px;line-height:1;flex:none;text-shadow:0 1px 0 #f5e3ad}
#hhome .hh-heading:has(.campaign-star-title){row-gap:6px;padding-bottom:6px}
@media(max-width:360px){#hhome .hh-heading .campaign-star-title{font-size:22px;gap:7px}#hhome .campaign-star-title>span:first-child,#hhome .campaign-star-title>span:last-child{font-size:14px}}

/* Fresh aqua for the final unit, without tinting text or portraits. */
#hhome #hh-levels .hh-unit[data-unit-number="5"] {--unit-color:#39c4b7!important}
#hhome #hh-levels .hh-level-wrap[data-list-unit="4"] .hh-level.cleared:not(:disabled) {background:#cef5eb;border-color:#4ab9ab;box-shadow:0 3px 0 #b5e7dd}

/* Restore a visible back action and align both form modules. */
body #ps .poster-title-row {position:relative;min-height:40px;padding:0 44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
body #ps #pcls {display:grid!important;place-items:center;position:absolute;left:0;right:auto;top:50%;transform:translateY(-50%);width:36px;height:36px;min-height:36px;padding:0;border:1px solid #bdc9da;border-radius:10px;background:#faf8f1;color:#526f9c;box-shadow:none}
body #ps #pcls svg {display:block;width:20px;height:20px}
body #pw2 #poster-form>.psec {padding:16px}
body #pw2 #poster-form>.psec:first-child {padding:16px}
body #pw2 #mbti-picker,body #pw2 #mbti-trigger {width:100%;box-sizing:border-box}

/* Generate action mirrors the upload action's bottom anchor and button size. */
body #pw2 #avatar-start {top:auto;bottom:6px;left:50%;transform:translateX(-50%);width:64px;height:30px;min-height:30px;padding:0 4px;display:flex;align-items:center;justify-content:center;gap:3px;border:1px solid #8da4ce;border-radius:8px;background:#e2eafa;color:#294ba4;font:650 11px/1 system-ui;box-shadow:none}
body #pw2 #avatar-start::before {content:"✦";font-size:13px;line-height:1}

/* Enlarge shortcut summaries while retaining the action row geometry. */
#hhome #cover-shortcuts .cover-entry-card>button {grid-template-columns:50px minmax(0,1fr)}
#hhome #cover-shortcuts .personality-discovery button>img,#hhome #cover-shortcuts .discovery-icon {width:50px;height:64px}
#hhome #cover-shortcuts .discovery-icon svg {width:48px;height:56px}
#hhome #cover-shortcuts .discovery-copy strong {font-size:18px}
#hhome #cover-shortcuts .discovery-copy>small:first-child {font-size:12px}
#hhome #cover-shortcuts #personality-atlas {padding-left:14px;padding-right:6px}
@media(max-width:420px){
 #hhome #cover-shortcuts .cover-entry-card>button {grid-template-columns:42px minmax(0,1fr)}
 #hhome #cover-shortcuts .personality-discovery button>img,#hhome #cover-shortcuts .discovery-icon {width:42px;height:62px}
 #hhome #cover-shortcuts .discovery-icon svg {width:40px;height:50px}
 #hhome #cover-shortcuts .discovery-copy strong {font-size:15px}
 #hhome #cover-shortcuts .discovery-copy>small:first-child {font-size:11px}
 #hhome #cover-shortcuts #personality-atlas {padding-left:9px;padding-right:3px}
}

/* Keep the smaller question note between the green and yellow portraits. */
#home-cover .cover-question {top:39%;right:-10px;max-width:58px;padding:6px;font-size:11px;line-height:1.45;transform:rotate(5deg)}

/* Distinguish collected personalities from the fixed total. */
body #personality-atlas-dialog .atlas-progress b em {font-style:normal}
body #personality-atlas-dialog .atlas-progress .atlas-known-count {color:#26806a;font-weight:800}
body #personality-atlas-dialog .atlas-progress .atlas-count-total {color:#7b8798;font-weight:500}

/* Campaign: one soft, raised-paper treatment across entries, stats and units. */
#hhome {--campaign-card-shadow:0 2px 0 #dce2e8,0 4px 10px #304c7509}
#hhome #hh-endless-shortcut,
#hhome #hh-stats .home-score,
#hhome #hh-levels .hh-unit {border-radius:16px;box-shadow:var(--campaign-card-shadow)}
#hhome #hh-endless-shortcut[data-state=locked] {background:#f3eefb;border-color:#cec0e2;box-shadow:var(--campaign-card-shadow)}
#hhome #hh-stats .home-score {border-width:1px;border-style:solid;border-color:#bfcee5;background:#eef4ff}
#hhome #hh-stats .home-score:last-child {background:#fff5d9;border-color:#e3d1a3}
#hhome #hh-levels .hh-unit {background:#fcfbf7;border-color:#d4dce3;border-left:6px solid var(--unit-color);box-shadow:var(--campaign-card-shadow)}
#hhome #hh-levels .hh-unit::before {border:1px solid color-mix(in srgb,var(--unit-color) 80%,#61778b);border-radius:11px;background:linear-gradient(145deg,#ffffff35,transparent 75%),var(--unit-color);box-shadow:inset 0 1px 0 #ffffff90,0 2px 2px #304c7518;text-shadow:0 1px 1px #304c7525}
#hhome #hh-levels .hh-level,
#hhome #hh-levels .hh-level-wrap[data-list-unit="4"] .hh-level.cleared:not(:disabled) {border-width:1px;border-radius:14px;box-shadow:var(--campaign-card-shadow)}
#hhome #hh-levels .hh-level:disabled {background:#efeee9;border-color:#d0d0c9;box-shadow:0 1px 0 #e0e2e2}
#hhome #hh-stats #hh-poster {border-radius:9px;box-shadow:0 2px 0 #e4cc83}

/* Readable endless entry and a paper dialog over the prepared board. */
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-copy b {color:#fff;font-weight:800}
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-copy small {color:#f0f6ff}
body #inf {background:rgba(29,42,63,.42)}
body #infb {background:#fffdf6;border:1px solid #c4cddd;border-radius:20px;box-shadow:0 12px 36px #18294026;color:#30466a}
body #infb>div:first-child {color:#34539e!important;font-weight:800!important}
body #infb>div:nth-child(2) {color:#526580!important;line-height:1.65}
body #infb .scr {background:#edf2fb;border:1px solid #d8e1ef;border-radius:12px}
body #infb .scr span {color:#526580!important}
body #infb .scr span:last-child {color:#34539e!important;font-weight:750!important}
body #infb .scr:nth-child(4) {background:#fff3d4;border-color:#e7d8ae}
body #infb .scr:nth-child(4) span {color:#856023!important}
body #inf-play {background:#3e59b0;color:white;border:1px solid #3e59b0;border-radius:12px}
body #inf-back {background:#edf2fb;color:#354f79;border:1px solid #bdcbe0;border-radius:12px}

/* Normalize the shuffle emoji optical size to adjacent tool icons. */
body #hgame .hg-tools #hg-shuffle .shuffle-tool-icon {display:flex;align-items:center;justify-content:center;flex:0 0 19px;width:19px;height:19px;font:normal 16px/19px system-ui;transform:translateY(1px)}

#hhome #hh-endless-shortcut[data-played=true] .endless-entry-decoration {font-size:12px;font-weight:700;white-space:nowrap;color:#fff4cd;padding:6px 8px;border:1px solid #ffffff60;border-radius:9px;background:#ffffff12;animation:none}
#hhome #hh-endless-shortcut[data-played=true] .endless-entry-copy small {font-variant-numeric:tabular-nums}
@media(max-width:380px){#hhome #hh-endless-shortcut[data-played=true]{gap:7px;padding:12px 10px}#hhome #hh-endless-shortcut[data-played=true] .endless-entry-icon{flex-basis:28px;width:28px;font-size:24px}#hhome #hh-endless-shortcut[data-played=true] .endless-entry-decoration{font-size:11px;padding:5px}}

/* Shared header panel encloses both controls and the match title. */
body #hgame .hg-heading {box-sizing:border-box;flex-shrink:0;padding:8px;background:#fffdf5;border:1px solid #e4ddca;border-radius:18px;box-shadow:0 3px 8px #304c7514}
@media(max-height:600px){body #hgame .hg-heading{padding:5px}}

/* Match upload with a standalone, clearly drawn generation action. */
body #pw2 #avatar-start {width:54px;height:30px;padding:3px;border-radius:8px}
body #pw2 #avatar-start::before {content:none}
body #pw2 #avatar-start svg {display:block;width:22px;height:22px}

/* Readable personality description below the poster selector. */
body #pw2 #pvh {color:#285442;font-size:14px;line-height:1.65;font-weight:500;margin-top:10px}

/* Match the fall header palette: warm paper controls within a warm paper bar. */
body #hgame .hg-heading :is(#hg-back,#hg-pause) {background:#fffdf5!important;color:#165caa!important;border:1px solid #e4ddca!important;box-shadow:0 2px 4px #304c7520}

/* Tilt the question note outward, away from the portraits. */
#home-cover .cover-question {right:-15px;transform:rotate(12deg);transform-origin:top left}

/* Subtle raised lettering, matching the cover action's shallow depth. */
#home-cover .cover-title-art {filter:drop-shadow(0 1px 0 #fdfbf1) drop-shadow(0 2px 0 #b6b6a6) drop-shadow(0 3px 2px #283f5e24)}

/* Four personality colors and gently playful lettering echo the cover logo. */
#hhome .campaign-star-title .campaign-title-letters {display:inline-flex;align-items:center;gap:3px;font-family:"Arial Rounded MT Bold","Microsoft YaHei",system-ui,sans-serif;font-weight:900;letter-spacing:0;font-size:1.08em}
#hhome .campaign-title-letters i {display:inline-block;font-style:normal;text-shadow:0 1px 0 #fffdf4,0 2px 0 #d6d2c3,0 3px 2px #304c7518}
#hhome .campaign-title-letters i:nth-child(1) {color:#9270af;transform:rotate(-5deg)}
#hhome .campaign-title-letters i:nth-child(2) {color:#619b79;transform:translateY(-1px) rotate(3deg)}
#hhome .campaign-title-letters i:nth-child(3) {color:#5f89bd;transform:rotate(-3deg)}
#hhome .campaign-title-letters i:nth-child(4) {color:#b59130;transform:translateY(1px) rotate(4deg)}

/* Approved folded ticket, with B's cream, blue, sage and lilac artwork. */
#hhome .hh-heading:has(#hh-poster) {position:relative;padding-right:78px;min-height:92px;box-sizing:border-box}
#hhome .hh-heading #hh-poster {position:absolute;right:0;top:5px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;width:72px;height:74px;padding:0 0 14px;border:0;border-radius:0;background:none;box-shadow:none;color:#304e76;transform:rotate(9deg);transform-origin:50% 10%;isolation:isolate;opacity:1;cursor:pointer}
#hhome .hh-heading #hh-poster .poster-ticket-art {position:absolute;inset:0;width:100%;height:100%;z-index:-1;filter:drop-shadow(0 2px 2px #304c7520)}
#hhome .hh-heading #hh-poster .poster-ticket-label {font:800 13px/1.2 system-ui;white-space:nowrap}
#hhome .hh-heading #hh-poster small {font:500 9px/1.2 system-ui;white-space:nowrap;color:#60758b}
#hhome .hh-heading #hh-poster:disabled {cursor:default;color:#6f7987;filter:saturate(.35)}
#hhome .hh-heading #hh-poster[data-unlocked=true] {animation:poster-ticket-sway 4s ease-in-out infinite}
#hhome .hh-heading #hh-poster:not(:disabled):hover {animation:none;transform:rotate(3deg) translateY(-2px)}
#hhome .hh-heading #hh-poster:not(:disabled):active {transform:rotate(3deg) translateY(1px)}
#hhome .hh-heading:has(#hh-poster) .campaign-star-title {font-size:clamp(20px,5vw,30px);gap:6px}
#hhome .hh-heading:has(#hh-poster)>p {font-size:12px;gap:5px}
#hhome .hh-heading:has(#hh-poster)>p::before,#hhome .hh-heading:has(#hh-poster)>p::after {width:14px}
@keyframes poster-ticket-sway {0%,70%,100%{transform:rotate(9deg)}80%{transform:rotate(5deg)}90%{transform:rotate(11deg)}}
@media(prefers-reduced-motion:reduce){#hhome .hh-heading #hh-poster[data-unlocked=true]{animation:none}}
#hhome .hh-heading:has(#hh-poster) {grid-template-columns:44px minmax(0,1fr);column-gap:7px}
@media(max-width:360px){#hhome .hh-heading:has(#hh-poster){padding-right:65px}#hhome .hh-heading #hh-poster{width:61px;height:69px}#hhome .hh-heading:has(#hh-poster) .campaign-star-title{font-size:19px;gap:3px}#hhome .hh-heading:has(#hh-poster) .campaign-star-title>span:first-child,#hhome .hh-heading:has(#hh-poster) .campaign-star-title>span:last-child{font-size:11px}}

/* Locked levels remain subdued but distinct from the warm page surface. */
#hhome #hh-levels .hh-level:disabled {background:#dfe5ed;border-color:#aebbc9;box-shadow:0 2px 0 #cbd4df;color:#506075;opacity:1}
#hhome #hh-levels .hh-level:disabled .hh-level-copy>strong {color:#506075}

#hhome #hh-levels .hh-unit .unit-completion {display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
#hhome #hh-levels .hh-unit .unit-completion b {font-weight:800;color:#366a78}
#hhome #hh-levels .hh-unit .unit-completion small {font-size:.78em;font-weight:500;color:#8793a1}

/* Center the heading independently of the floating souvenir ticket. */
#hhome .hh-heading:has(#hh-poster) {display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 0 9px;min-height:116px;gap:8px}
#hhome .hh-heading:has(#hh-poster) #campaign-back {position:absolute;left:0;top:27px}
#hhome .hh-heading:has(#hh-poster) .campaign-star-title {width:100%;font-size:clamp(20px,5vw,30px);gap:6px;padding:8px 0 0}
#hhome .hh-heading:has(#hh-poster)>p {width:100%;margin:0;font-size:12px;gap:8px}
#hhome .campaign-mbti-arc {position:absolute;top:0;left:50%;transform:translateX(-50%);display:flex;gap:5px;font:850 13px/18px system-ui;color:#49638c}
#hhome .campaign-mbti-arc span:nth-child(1){transform:translateY(5px) rotate(-18deg);color:#9270af}
#hhome .campaign-mbti-arc span:nth-child(2){transform:rotate(-6deg);color:#619b79}
#hhome .campaign-mbti-arc span:nth-child(3){transform:rotate(6deg);color:#5f89bd}
#hhome .campaign-mbti-arc span:nth-child(4){transform:translateY(5px) rotate(18deg);color:#b59130}
#hhome .hh-heading #hh-poster {width:55px;height:65px;top:16px;right:0;padding-bottom:10px;gap:1px}
#hhome .hh-heading #hh-poster .poster-ticket-label {font-size:10px}
#hhome .hh-heading #hh-poster small {font-size:7px}
#hhome #hh-endless-shortcut[data-state=ready] {background:linear-gradient(115deg,#3a56ae,#316fba);border:1px solid #789bda;box-shadow:0 3px 0 #c1d1ed,inset 0 1px 0 #ffffff55;padding:16px 13px;gap:10px}
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-copy b {color:#fff;font-size:18px;letter-spacing:.5px}
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-decoration {font:750 12px/1.3 system-ui;white-space:nowrap;color:#5c4517;background:#ffe6a1;border:1px solid #f6d578;border-radius:20px;padding:8px 10px;animation:none;box-shadow:0 2px 0 #244c8b}
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-icon {font-size:30px}
@media(max-width:360px){#hhome .hh-heading:has(#hh-poster) .campaign-star-title{font-size:20px;gap:4px}#hhome .hh-heading #hh-poster{width:48px;height:60px}#hhome #hh-endless-shortcut[data-state=ready]{gap:6px;padding:14px 9px}#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-decoration{font-size:11px;padding:7px}}

/* Painted depth is in the artwork; avoid stacking the old embossed filters. */
#home-cover .cover-title-art {filter:none}

/* A single warm-paper control palette matching the fall header. */
body #fs #fctrl>button,body #fs #fctrl>#tilt-toggle {background:#fffdf5;color:#2d60a8;border:1px solid #e0d9c6;border-radius:14px;box-shadow:0 2px 4px #304c7518}
body #fs #fctrl>#tilt-toggle .tilt-label {color:inherit}
body #fs #fctrl>#tilt-toggle[aria-pressed="true"] {background:#e7effb;color:#27569b;border-color:#92acd1;box-shadow:inset 0 0 0 1px #b8cbe8}
body #fs #fctrl>button:active {background:#e7effb;border-color:#9db4d5;transform:translateY(1px);box-shadow:inset 0 1px 3px #304c7518}

/* Equal-sized progress figures, differentiated only by weight and color. */
#hhome #hh-levels .hh-unit .unit-completion {align-items:center;gap:4px;font-variant-numeric:tabular-nums;line-height:1}
#hhome #hh-levels .hh-unit .unit-completion b,#hhome #hh-levels .hh-unit .unit-completion small {font-size:1em;line-height:1}
#hhome #hh-levels .hh-unit .unit-completion b {font-weight:800;color:#366a78}
#hhome #hh-levels .hh-unit .unit-completion small {font-weight:500;color:#8793a1}

#hhome .hh-heading:has(#hh-poster) {padding-top:0;min-height:150px;gap:5px}
#hhome .hh-heading:has(#hh-poster) .campaign-star-title {padding:0;line-height:1}
#hhome .campaign-painted-title {display:block;width:clamp(200px,58vw,290px);height:auto;margin:0 auto;filter:none}
#hhome .hh-heading #hh-poster {top:29px;transform:rotate(9deg)}
#hhome .hh-heading #hh-poster[data-unlocked=true] {animation:poster-ticket-sway 3s ease-in-out infinite}
#hhome .hh-heading:has(#hh-poster) #campaign-back {top:40px}
@media(prefers-reduced-motion:reduce){#hhome .hh-heading #hh-poster[data-unlocked=true]{animation:none}}

#hhome #hh-endless-shortcut[data-state=ready] {justify-content:flex-start}
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-copy {flex:1;min-width:0}
#hhome #hh-endless-shortcut[data-state=ready] .endless-entry-decoration {margin-left:auto;flex:0 0 auto;min-width:64px;text-align:center;box-sizing:border-box}
#hhome #hh-endless-shortcut .endless-best-score {color:#ffe28b;font-style:normal;font-weight:800}
#hg-mbti-eliminated {position:absolute;top:10px;left:8px;right:8px;z-index:5;display:flex;flex-wrap:wrap;justify-content:center;gap:5px;pointer-events:none}
#hg-mbti-eliminated span {padding:3px 9px;border:1px solid #e8bf60;border-radius:12px;background:#fff7dfed;color:#3556a2;font:850 17px/1.3 system-ui;letter-spacing:.8px;text-shadow:0 1px #fff;box-shadow:0 2px 0 #cfad5e55;animation:mbti-pop .32s ease-out both}
@keyframes mbti-pop {from{opacity:0;transform:translateY(7px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){#hg-mbti-eliminated span{animation:none}}

/* Soft rounded board tray instead of the heavy cobalt frame. */
body #hgame .hg-stage {border:1px solid #b8c7d9;border-radius:18px;background:#e6ecf5;box-shadow:inset 0 1px 0 #ffffffb3,0 2px 4px #304c7510}

/* Compact campaign statistics without reducing text size. */
#hhome #hh-stats .home-score {grid-template-rows:24px 36px 1px 24px;gap:7px;padding:11px 14px}
@media(max-width:360px){#hhome #hh-stats .home-score{padding:10px;gap:6px}}

/* Illustrated rules: short cards, then separate scoring and tool references. */
#hmodal:has(.rules-guide) {width:min(540px,calc(100vw - 28px));max-height:88dvh;padding:22px 18px;box-sizing:border-box;overflow-y:auto}
#hmodal .rules-guide {text-align:left;color:#415571;font-size:14px;line-height:1.65}
#hmodal .rules-guide h2 {font-size:25px;text-align:center;margin:0 0 5px;color:#293f65}
#hmodal .rules-guide .rules-intro {text-align:center;margin:0 0 18px;font-size:13px;color:#61728a}
#hmodal .rules-guide h3 {margin:0 0 5px;font-size:16px;color:#304e7d}
#hmodal .rules-guide p {font-size:14px;line-height:1.65;text-align:left;margin:0;color:#415571}
#hmodal .rule-card {display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;padding:13px 10px;margin-bottom:9px;border:1px solid #dce3ed;border-radius:13px;background:#f2f6fb}
#hmodal .rule-picture {align-self:center;text-align:center;font:700 16px/1.5 system-ui;color:#527cb5;white-space:nowrap}
#hmodal .rules-section {margin-top:18px;padding-top:15px;border-top:1px solid #d8e0eb}
#hmodal .rules-guide strong {color:#2e5596;font-weight:750}
#hmodal .rules-scores {margin:8px 0;background:#fff5da;border-radius:10px;padding:8px 11px}
#hmodal .rules-scores>div {display:flex;justify-content:space-between;gap:10px;padding:4px 0}
#hmodal .rules-scores dd {margin:0;font-weight:700;color:#805e24}
#hmodal .rules-guide ul {padding-left:20px;margin:7px 0}
#hmodal .rules-guide li {margin:7px 0}
#hmodal .rules-tool {margin:8px 0;padding:10px 12px;background:#f1f5fa;border-radius:10px}
#hmodal .rules-tool b {color:#304e7d}
#hmodal .rules-mode {padding:12px;background:#fff5da;border-radius:12px;margin-bottom:12px}
#hmodal:has(.rules-guide) #hm-actions {margin-top:20px}

/* More playful outward angles for the two cover paper notes. */
#home-cover .cover-question {right:-28px;transform:rotate(32deg)}
#home-cover .cover-caption {transform:rotate(-20deg)}

/* Clean locked cards: outline and lock communicate state, not muddy fills. */
#hhome #hh-levels .hh-level:disabled {background:#f8fafc;border:1px dashed #a8b6c8;box-shadow:none;color:#647187;opacity:1}
#hhome #hh-levels .hh-level:disabled .hh-level-copy>strong {color:#596a83}
#hhome #hh-levels .hh-level:disabled .hh-record {border-color:#dce3eb}
#hhome #hh-levels .hh-level:disabled .hh-status {color:#6c7c93}
#hhome #hh-levels .hh-level:disabled::after {content:'🔒';position:absolute;top:10px;right:11px;font-size:15px;line-height:1;filter:grayscale(1);opacity:.75}
#hhome #hh-levels .hh-level-wrap:has(.hh-level:disabled) .hh-level-share {visibility:hidden}

/* Align the smaller campaign back control with the MBTI line. */
#hhome .hh-heading:has(#hh-poster) #campaign-back {top:12px;width:36px;height:36px;min-height:36px;border-radius:10px}
#hhome .hh-heading:has(#hh-poster) #campaign-back svg {width:18px;height:18px}

/* Warm total contrasts with the teal completed count at equal type size. */
#hhome #hh-levels .hh-unit .unit-completion small {color:#99682e}

/* Clear royal blue echoes the illustrated title and window frame. */
#hhome #cover-start {background:linear-gradient(180deg,#5689dd 0%,#3d6dc5 50%,#325bb0 100%);color:#fffaf0;border-color:#e3c878;box-shadow:inset 0 2px 2px #ffffff55,0 3px 0 #bdcae0}
#hhome #cover-start .start-spark {background:linear-gradient(135deg,#fff2bb,#edce79);filter:drop-shadow(0 1px 1px #274c8726)}

/* Approved A: colored corner arcs sit just outside the paper card. */
#hhome #hh-levels .hh-unit {border:1px solid #d4dce3;overflow:visible}
#hhome #hh-levels .hh-unit .unit-corner-decor {position:absolute;inset:0;pointer-events:none;display:block;margin:0;padding:0}
#hhome #hh-levels .unit-corner-decor i {position:absolute;width:48px;height:40px;border:0;filter:drop-shadow(0 1px 1px #34445922);box-sizing:border-box}
#hhome #hh-levels .unit-corner-decor i::before {content:'';position:absolute;inset:0;background:linear-gradient(135deg,#ffffff 0%,var(--unit-color) 32%,var(--unit-color) 65%,#ffffff 100%);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M2 39C1 16 3 2 29 2H45Q48 3 44 4C20 5 7 16 2 39Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
#hhome #hh-levels .unit-corner-decor i:first-child {left:-4px;top:-4px}
#hhome #hh-levels .unit-corner-decor i:last-child {right:-4px;bottom:-4px;transform:rotate(180deg)}
#hhome #hh-levels .unit-corner-decor i::after {content:'✦';position:absolute;left:15px;top:12px;font:11px/1 system-ui;color:#d9b456;text-shadow:0 1px 0 #fff}

/* Completed levels use clean paper; unfinished levels receive a neutral veil. */
#hhome #hh-levels .hh-level.cleared:not(:disabled),
#hhome #hh-levels .hh-level-wrap[data-list-unit="4"] .hh-level.cleared:not(:disabled) {background:#fcfcfa;border-color:#8fa9ca;box-shadow:var(--campaign-card-shadow)}
#hhome #hh-levels .hh-level:not(.complete) {position:relative;isolation:isolate;overflow:hidden;background:#fcfcfa}
#hhome #hh-levels .hh-level:disabled::before {content:'';position:absolute;inset:0;border-radius:inherit;background:rgba(57,64,76,.17);z-index:2;pointer-events:none}
#hhome #hh-levels .hh-level:disabled {border:1px solid #aeb6c1;background:#fcfcfa;box-shadow:none}
#hhome #hh-levels .hh-level:disabled::after {z-index:3}

/* Keep a breathing margin above the scrollable rules, even after scrolling. */
#hmodal:has(.rules-guide) {padding:16px 18px 22px;overflow:hidden}
#hmodal[open]:has(.rules-guide) {display:flex;flex-direction:column}
#hmodal:has(.rules-guide) #hm-content {min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 0 6px}
#hmodal:has(.rules-guide) #hm-actions {flex-shrink:0;margin-top:16px}
#hmodal .rules-scores {display:grid;gap:8px;margin:8px 0;background:none;padding:0;border-radius:0}
#hmodal .rules-scores>div {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 10px;padding:11px 12px;background:#fff5da;border-radius:10px}
#hmodal .rules-scores dt {font-weight:700;color:#805e24}
#hmodal .rules-scores p {grid-column:1/-1;font-size:13px}

/* White paper tool buttons, with the armed state still distinguishable. */
body #hgame .hg-tools button {background:#ffffff}
body #hgame .hg-tools button.armed {background:#fff3c9;border-color:#d6ad45}

/* Gold earned scores on the level cards. */
#hhome #hh-levels .hh-clear-score b {color:#ad7808}

/* Approved B: floating star lettering, recolored teal and gold. */
#hg-mbti-eliminated {gap:8px 16px}
#hg-mbti-eliminated span {position:relative;padding:3px 16px;border:0;border-radius:0;background:transparent;color:#216e68;font:italic 850 21px/1.3 system-ui;letter-spacing:1px;text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff,0 2px 3px #ffffffcc;box-shadow:none}
#hg-mbti-eliminated span::before,#hg-mbti-eliminated span::after {content:'✦';position:absolute;color:#e7b942;font-style:normal;text-shadow:0 1px #fff;line-height:1}
#hg-mbti-eliminated span::before {left:0;top:0;font-size:15px}
#hg-mbti-eliminated span::after {right:0;bottom:2px;font-size:11px}

/* The miniature mirrors the avatar maker; locked tickets still gently sway. */
#hhome .hh-heading #hh-poster {animation:poster-ticket-sway 3s ease-in-out infinite}
#hhome .hh-heading #hh-poster:disabled {filter:saturate(.8)}
@media(prefers-reduced-motion:reduce){#hhome .hh-heading #hh-poster{animation:none}}

/* Center share headings independently of the close control. */
body #share-dialog .share-top {position:relative;display:flex;justify-content:center;min-height:44px;padding:0 44px}
body #share-dialog #share-heading {text-align:center;margin:0}
body #share-dialog #share-close {position:absolute;right:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0;font-size:19px;line-height:1;color:#526581;background:transparent;border:0;box-shadow:none}
body #share-dialog #share-close:hover,body #share-dialog #share-close:focus-visible {background:#e9eef5;border-radius:10px}

#hmodal .endless-result-goal {padding:16px;background:#edf4ef;border:1px solid #ccdfd3;border-radius:14px;color:#286853;text-align:center}
#hmodal .endless-result-goal strong {display:block;font-size:20px}
#hmodal .endless-result-goal span {display:block;margin-top:6px;font-size:13px}

#hhome .hh-heading #hh-poster[data-unlocked=true] .poster-ticket-label {color:#25864c}

#hhome #hh-levels .unit-corner-stars {position:absolute;inset:0;pointer-events:none}
#hhome #hh-levels .unit-corner-stars i {position:absolute;color:#d9b456;font:12px/1 system-ui;text-shadow:0 1px #fff}
#hhome #hh-levels .unit-corner-stars i:first-child {left:8px;top:5px}
#hhome #hh-levels .unit-corner-stars i:last-child {right:8px;top:5px}

#hhome .hh-heading #hh-poster[data-unlocked=false] {color:#6f7987;filter:saturate(.8);cursor:pointer}

body #hmodal #hm-content:has(.result-back)>h2 {display:block;width:100%;box-sizing:border-box;margin:0 0 8px;padding:0 38px;text-align:center}
body #hmodal .result-total strong {color:#2eaa62;text-shadow:none}

#hhome #cover-shortcuts #personality-entry.personality-untested .discovery-icon svg {transform:scale(.95);transform-origin:center}

/* Personality question: compact navigation matching the game header. */
body #qs #qb .quiz-navigation{margin:-8px 0 20px;min-height:44px}
body #qs #qb #quiz-home{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:10px;background:#fffdf5;color:#165caa;border:1px solid #e4ddca;box-shadow:0 2px 4px #304c7520}
body #qs #qb #quiz-home svg{display:block;width:22px;height:22px}
body #qs #qb .quiz-navigation-label{margin-left:auto;text-align:right}
body #qs #qb .quiz-actions:not(:has(button:not([style*="display:none"]):not([style*="display: none"]))){margin-top:0}

/* Compact, unboxed quiz back control. */
body #qs #qb #quiz-home{flex-basis:34px;width:34px;height:34px;min-height:34px;background:transparent;border:0;box-shadow:none}
body #qs #qb #quiz-home svg{width:19px;height:19px}

body #hmodal .endless-result-number{color:#25864c;font-weight:800;font-size:1.2em;line-height:1;vertical-align:baseline}

/* A: warm gold burst; crisp lettering with brief peripheral sparks. */
#hg-mbti-eliminated span{padding:3px 16px;color:#f6a523;font:900 23px/1.3 system-ui;letter-spacing:1px;animation:mbti-gold-pop 1.1s ease-out both;text-shadow:none}
#hg-mbti-eliminated span b{position:relative;z-index:1;color:#ffbc38;font:inherit;-webkit-text-stroke:.6px #985016;paint-order:stroke fill;text-shadow:0 -1px #fff3b7,0 1px #d88719,0 2px #af5b12,0 3px #884511,1px 4px 0 #fff8e0}
#hg-mbti-eliminated span::before,#hg-mbti-eliminated span::after{content:none}
#hg-mbti-eliminated .mbti-gold-spark{position:absolute;left:50%;top:50%;font:700 13px/1 system-ui;color:#ffc83e;text-shadow:0 0 3px #fff0a6;animation:mbti-gold-spark .85s ease-out both;animation-delay:var(--spark-delay);pointer-events:none}
@keyframes mbti-gold-pop{0%{opacity:0;transform:translateY(5px) scale(.75)}18%{opacity:1;transform:translateY(0) scale(1.12)}32%,72%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translateY(-9px) scale(.97)}}
@keyframes mbti-gold-spark{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}22%{opacity:1}65%{opacity:.85}100%{opacity:0;transform:translate(calc(-50% + var(--spark-x)),calc(-50% + var(--spark-y))) scale(.5)}}
@media(prefers-reduced-motion:reduce){#hg-mbti-eliminated span{animation:none}#hg-mbti-eliminated .mbti-gold-spark{animation:none;display:none}}

body #hmodal:has(.endless-result-goal) #hm-actions button{border-color:transparent;box-shadow:none}

/* Unlocked poster ticket: B, yellow twinkling stars. */
#hhome .hh-heading #hh-poster .poster-gold-stars{position:absolute;inset:0;pointer-events:none;overflow:visible}
#hh-poster .poster-gold-stars i{position:absolute;font:normal 18px/1 system-ui;color:#ffcd3c;text-shadow:0 0 4px #ffe894;animation:poster-star-twinkle 2.6s ease-in-out infinite}
#hh-poster .poster-gold-stars i:nth-child(1){left:-5px;top:7px}
#hh-poster .poster-gold-stars i:nth-child(2){right:7px;top:-6px;font-size:12px;animation-delay:.8s}
#hh-poster .poster-gold-stars i:nth-child(3){right:-3px;bottom:0;font-size:16px;animation-delay:1.4s}
#hh-poster .poster-gold-stars i:nth-child(4){left:-2px;bottom:18px;font-size:10px;animation-delay:1.9s}
@keyframes poster-star-twinkle{0%,100%{opacity:.3;transform:scale(.65) rotate(-8deg)}45%{opacity:1;transform:scale(1.12) rotate(8deg)}70%{opacity:.55;transform:scale(.85)}}
@media(prefers-reduced-motion:reduce){#hh-poster .poster-gold-stars i{animation:none;opacity:.8}}

/* Ice-blue lettering from concept B, retaining the approved burst motion. */
#hg-mbti-eliminated span{color:#47b9ff}
#hg-mbti-eliminated span b{color:#68cfff;-webkit-text-stroke:1px #245591;text-shadow:0 -1px #ffffff,0 1px #348dd0,0 2px #2669ab,0 3px #194b85,1px 4px 0 #ffffff}
#hg-mbti-eliminated .mbti-gold-spark{color:#61c8ff;text-shadow:0 0 2px #fff}

/* Shared borderless buttons across native and legacy dialogs. */
body :is(dialog,[role="dialog"],#ov,#qb,#infb) button,
body :is(dialog,[role="dialog"],#ov,#qb,#infb) button:is(:hover,:active,:disabled){border-color:transparent!important}

/* Give the endless result panel and surrounding copy breathing room. */
body #hmodal .endless-result-goal{margin:16px 0 20px;padding:22px 20px}
body #hmodal .endless-result-goal span{margin-top:12px}
body #hmodal #hm-content:has(.endless-result-goal)>p{margin:12px 0;line-height:1.65}
body #hmodal:has(.endless-result-goal) #hm-actions{margin-top:26px}

body #hmodal.endless-victory .endless-victory-mark{color:#e9c85b;font-size:42px;line-height:1.1;text-align:center;margin:8px 0;text-shadow:0 2px #bf983c}
body #hmodal.endless-victory .result-extras .endless-result-number{font-size:34px;color:#25864c}
body #hmodal.endless-victory .result-extras small{font-size:14px;color:#586781;font-weight:500}
body #hmodal.endless-victory #hm-actions{margin-top:20px}

/* A + B: ice-blue faces, warm-gold dimensional edges and sparks. */
#hg-mbti-eliminated span b{color:#80d8ff;-webkit-text-stroke:1px #2d6096;text-shadow:0 -1px #ffffff,0 1px #ffdd7b,0 2px #efb447,0 3px #bd7c24,1px 4px 0 #fff4d8}
#hg-mbti-eliminated .mbti-gold-spark{color:#ffc947;text-shadow:0 0 2px #fff1bb}
#hg-mbti-eliminated .mbti-gold-spark:nth-child(3n){color:#70d1ff;text-shadow:0 0 2px #ffffff}

/* Shared modal title alignment: reserve equal space for either side's controls. */
body #hmodal #hm-content>h2,
body #hmodal #hm-content:has(.result-back)>h2,
body #hmodal .rules-guide>h2,
body #personality-dialog>h2,
body #fres>h2,
body #share-dialog .share-top>h2,
body #journey-intro>h2{
  display:block;box-sizing:border-box;width:100%;max-width:none;
  margin-left:0;margin-right:0;float:none;position:relative;left:auto;right:auto;
  transform:none;text-align:center;text-indent:0;text-wrap:balance;
}
body #hmodal #hm-content>h2{padding-left:38px;padding-right:38px}
body #hmodal #hm-content{box-sizing:border-box;width:100%}
body #hmodal{scrollbar-width:none}
body #hmodal::-webkit-scrollbar{width:0}

/* Reverse blue/gold: solid golden faces and crisp blue depth. */
#hg-mbti-eliminated span b{color:#ffc34a;-webkit-text-stroke:1px #244d80;paint-order:stroke fill;text-shadow:0 2px #376caa,0 3px #244d80,0 4px #193b66}
#hg-mbti-eliminated .mbti-gold-spark{color:#69c9ff;text-shadow:none}
#hg-mbti-eliminated .mbti-gold-spark:nth-child(3n){color:#ffc34a;text-shadow:none}

/* All completion cards share centered copy, without punctuation offsets. */
body #hmodal #hm-content:has(.result-total),body #ov #ob{ text-align:center }
body #hmodal #hm-content:has(.result-total)>:is(h2,p,.score-comparison,.result-total,.hm-next-note),
body #ov #ob :is(#ot,#os,#os2){text-align:center;text-indent:0;margin-left:0;margin-right:0;box-sizing:border-box;width:100%;transform:none}
body #hmodal #hm-content:has(.result-total) :is(.reward,.result-extra){text-align:center}
body #fres .fall-result-title{text-align:center;text-indent:0}

/* Restore original concept A: warm gold burst. */
#hg-mbti-eliminated span{color:#f6a523}
#hg-mbti-eliminated span b{color:#ffbc38;-webkit-text-stroke:.6px #985016;paint-order:stroke fill;text-shadow:0 -1px #fff3b7,0 1px #d88719,0 2px #af5b12,0 3px #884511,1px 4px 0 #fff8e0}
#hg-mbti-eliminated .mbti-gold-spark,#hg-mbti-eliminated .mbti-gold-spark:nth-child(3n){color:#ffc83e;text-shadow:0 0 3px #fff0a6}

body #hmodal.endless-victory #hm-actions button:only-child{box-sizing:border-box;width:100%;min-height:48px;padding:12px 24px}

/* Concept C: peach pink lettering with berry-purple depth. */
#hg-mbti-eliminated span b{color:#ff9dba;-webkit-text-stroke:.8px #854573;paint-order:stroke fill;text-shadow:0 -1px #ffe8f0,0 1px #cc7ab2,0 2px #ab63a1,0 3px #784777,1px 4px 0 #fff0f7}
#hg-mbti-eliminated .mbti-gold-spark{color:#f5a0c5;text-shadow:0 0 2px #ffe8f1}
#hg-mbti-eliminated .mbti-gold-spark:nth-child(3n){color:#c3a0ef;text-shadow:0 0 2px #f5eaff}

/* Keep header controls above the centered title hit area. */
body #hmodal .result-back,body #hmodal .result-share-top{z-index:3}
body #hmodal #hm-content>h2{pointer-events:none}

@media(min-width:900px){
 #hhome.show-cover #home-cover{grid-template-rows:auto auto auto;align-content:center}
 #home-cover .cover-title{grid-column:1;grid-row:1;align-self:start;transform:none;margin-top:0}
 #home-cover .cover-collection{grid-column:2;grid-row:1/4;align-self:start;margin:0 auto}
 #hhome #cover-start{grid-column:1;grid-row:2}
 #hhome #cover-shortcuts{grid-column:1;grid-row:3;align-self:start}
}

/* Scale the complete desktop cover together; keep small screens unchanged. */
@media(min-width:1400px) and (min-height:800px){
 #hhome.show-cover #home-cover{zoom:1.15;min-height:calc(100svh / 1.15)}
}
@media(min-width:1800px) and (min-height:1000px){
 #hhome.show-cover #home-cover{zoom:1.35;min-height:calc(100svh / 1.35)}
}

/* Desktop poster ticket scales as one unit, including its artwork and effects. */
@media(min-width:900px){
 #hhome .hh-heading #hh-poster{scale:1.25;transform-origin:100% 10%}
}
@media(min-width:1800px) and (min-height:1000px){
 #hhome .hh-heading #hh-poster{scale:1.4}
}





/* Approved B: quiet arcs and gold stars on the two home views only. */
body:has(#hybrid-root:not([hidden]) #hhome:not([hidden])) {
 background-color:#faf8f2;
 background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221600%22%20height%3D%221000%22%20viewBox%3D%220%200%201600%201000%22%20fill%3D%22none%22%3E%3Cg%20stroke-width%3D%221.3%22%3E%3Cpath%20d%3D%22M-130%20420C130%20405%20300%20190%20340-90%22%20stroke%3D%22%2391a9c5%22%20opacity%3D%22.32%22%2F%3E%3Cpath%20d%3D%22M1070-80C1100%20100%201390%20210%201690%20160%22%20stroke%3D%22%23d5bb77%22%20opacity%3D%22.34%22%2F%3E%3Cpath%20d%3D%22M1270%201080C1240%20810%201420%20655%201680%20690%22%20stroke%3D%22%239aafc8%22%20opacity%3D%22.26%22%2F%3E%3Cpath%20d%3D%22M-100%20860C80%20735%20215%20790%20280%201050%22%20stroke%3D%22%23d5bb77%22%20opacity%3D%22.3%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23d8bb6c%22%20opacity%3D%22.65%22%3E%3Cpath%20d%3D%22M140%20335Q143%20347%20155%20350Q143%20353%20140%20365Q137%20353%20125%20350Q137%20347%20140%20335Z%22%2F%3E%3Cpath%20d%3D%22M1470%20738Q1473%20750%201485%20753Q1473%20756%201470%20768Q1467%20756%201455%20753Q1467%20750%201470%20738Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
 background-size:100% 100vh;
 background-position:center top;
 background-repeat:no-repeat;
 background-attachment:fixed;
}
body #hhome #home-cover {background:transparent!important}
@media(max-width:899px){
 body:has(#hybrid-root:not([hidden]) #hhome:not([hidden])) {
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22400%22%20height%3D%22900%22%20viewBox%3D%220%200%20400%20900%22%20fill%3D%22none%22%3E%3Cg%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M-95%20165C-2%20163%2049%2091%2055-40%22%20stroke%3D%22%2392abc6%22%20opacity%3D%22.32%22%2F%3E%3Cpath%20d%3D%22M305-55C307%2038%20370%2072%20465%2065%22%20stroke%3D%22%23d5bb77%22%20opacity%3D%22.35%22%2F%3E%3Cpath%20d%3D%22M360%20950C323%20827%20381%20752%20468%20759%22%20stroke%3D%22%2393acc7%22%20opacity%3D%22.28%22%2F%3E%3Cpath%20d%3D%22M-68%20710C-7%20707%2029%20785%2024%20925%22%20stroke%3D%22%23d5bb77%22%20opacity%3D%22.3%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23d5b767%22%20opacity%3D%22.65%22%3E%3Cpath%20d%3D%22M13%20157Q15%20164%2022%20166Q15%20168%2013%20175Q11%20168%204%20166Q11%20164%2013%20157Z%22%2F%3E%3Cpath%20d%3D%22M385%20742Q387%20749%20394%20751Q387%20753%20385%20760Q383%20753%20376%20751Q383%20749%20385%20742Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size:100% 100svh;
 }
}
/* Keep the personality dialog close control legible in every interaction state. */
body #personality-dialog .personality-close,
body #personality-dialog .personality-close:is(:hover,:focus,:focus-visible,:active) {
  color:#405c8b;
  background:transparent;
  outline:none;
  box-shadow:none;
  opacity:1;
}
/* Keep the fall canvas centered inside its measured stage at every size. */
body #fs #fall-stage {display:flex;justify-content:center;align-items:center;flex-shrink:0;margin-inline:auto}
body #fs #fca {display:block;max-width:100%;margin-inline:auto}
body #fs #fall-rules {box-sizing:border-box;width:min(540px,100%);margin:12px auto 20px;flex-shrink:0;line-height:1.65;touch-action:pan-y}
body #fs #fall-rules summary {padding:8px;font-size:13px;color:#405c8b}
.fall-guide-grid {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px;text-align:left}
.fall-guide-grid section {padding:14px;border:1px solid #dce2e8;border-radius:14px;background:#fcfbf8}
body #fs .fall-guide-grid h3 {font:700 14px/1.5 system-ui;margin:0 0 8px;color:#344f77}
body #fs .fall-guide-grid p {font:13px/1.7 system-ui;margin:0 0 6px;color:#52647c}
.fall-shield-guide {grid-column:1/-1}
.fall-platform-list {list-style:none;margin:0;padding:0;font:13px/1.8 system-ui;color:#52647c}
.fall-platform-list i {display:inline-block;width:18px;height:7px;border-radius:3px;margin-right:8px;vertical-align:middle}
.platform-green{background:#61ac78}.platform-orange{background:#dea14a}.platform-blue{background:#6098cf}.platform-red{background:#c9685e}
@media(min-width:900px){
 body #fs {--fall-width:min(420px,calc((100dvh - 245px)*360/560));box-sizing:border-box;justify-content:flex-start;padding:24px 24px 16px;overflow-y:auto}
 body #fs #fall-stage,body #fs #fall-tools,body #fs #fctrl,body #fs #fall-motion {box-sizing:border-box;width:var(--fall-width);max-width:100%;margin-inline:auto}
 body #fs #fca {width:100%;height:auto}
 body #fs #fall-motion {height:auto;min-height:30px;margin-top:8px}
}
@media(max-width:400px){.fall-guide-grid{grid-template-columns:1fr}.fall-shield-guide{grid-column:auto}}
/* Desktop poster editor: bounded workspace and balanced selection columns. */
@media(min-width:960px){
 body #ps {padding:32px 32px 40px}
 body #ps #pw2 {width:100%;max-width:1080px;margin-inline:auto}
 body #pw2 .poster-heading {margin-bottom:24px}
 body #pw2 #pt {font-size:28px;line-height:1.35}
 body #pw2 #poster-form {grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:24px;align-items:start}
 body #pw2 #poster-form>.psec {padding:22px}
 body #pw2 #pchips {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 body #pw2 #pchips button {min-width:0;margin:0;padding:12px 6px;font-size:14px}
 body #pw2 .poster-style-options {gap:10px;margin-top:18px}
 body #pw2 .avatar-workbench {grid-template-columns:120px 120px;justify-content:center;column-gap:80px;padding:18px;margin-top:20px}
 body #pw2 #pgb {width:calc((100% - 24px)*.6);margin:20px 0 0 auto;min-height:48px;font-size:17px}
}
@media(min-width:960px){body #pw2 #poster-form>.psec:first-child{padding:22px}}
/* Desktop rules share the same column as the canvas and controls. */
@media(min-width:900px){
 body #fs #fall-rules {width:var(--fall-width);max-width:100%;margin-inline:auto}
 body #fs .fall-guide-grid {grid-template-columns:minmax(0,1fr)}
 body #fs .fall-shield-guide {grid-column:auto}
 body #fs .fall-platform-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
}
/* Fit the mobile cover to short in-app browser viewports. */
@media(max-width:899px){
 #hhome.show-cover #home-cover{min-height:0;gap:8px;padding-top:calc(env(safe-area-inset-top,0px) + 8px);padding-bottom:8px}
 #home-cover .cover-title-art{width:auto;height:clamp(70px,16svh,125px);max-width:70vw;object-fit:contain}
 #home-cover .cover-collection{width:min(78vw,calc(100svh - 290px));margin:8px auto 12px}
 #home-cover #cover-start{min-height:40px;padding:8px 16px;margin-block:16px 6px;font-size:24px}
 #hhome #cover-shortcuts{margin-top:0;gap:10px}
 #hhome #cover-shortcuts .personality-discovery{padding:8px}
 #hhome #cover-shortcuts .personality-discovery button>img,#hhome #cover-shortcuts .discovery-icon{height:42px;width:34px}
 #hhome #cover-shortcuts .discovery-icon svg{height:40px;width:34px}
}
@media(max-width:899px) and (max-height:660px){#hhome.show-cover #home-cover{zoom:.84;margin-inline:auto}}
/* The main endless card is the only visible entry. */
body #endless-dock {display:none!important}

/* Tighten the mobile personality result heading whitespace. */
@media(max-width:899px){body #personality-dialog[data-page=result]{padding-top:24px}}

/* Keep campaign footer copy close to the unit list. */
#hhome:not(.show-cover)>footer{margin-top:16px}

/* Move the result badge and following content closer to the heading. */
#personality-dialog[data-page=result]>h2{margin-bottom:8px}
#personality-dialog[data-page=result] .pq-result{margin-top:0}

/* Compact history link followed by the campaign credit. */
#hhome:not(.show-cover)>footer{margin-top:8px;display:flex;flex-direction:column;align-items:center;gap:6px}
body #hhome #legacy-history{display:inline-block;background:transparent;border:0;box-shadow:none;color:#355f9d;font:inherit;font-size:13px;line-height:1.6;padding:4px 8px;margin:0;min-height:0;cursor:pointer}
body #hhome #legacy-history:hover{text-decoration:underline;color:#254b88}
#hhome .campaign-credit{margin:0;line-height:1.65}

/* Nudge mobile discovery captions left without moving their titles. */
@media(max-width:899px){#hhome #cover-shortcuts .discovery-copy>small:first-child{position:relative;left:-4px}}

/* Unit toggles stay clear after touch expansion. */
#hhome #hh-levels .hh-unit-toggle{-webkit-tap-highlight-color:transparent;appearance:none;border-radius:inherit}
#hhome #hh-levels .hh-unit-toggle:is(:hover,:active,:focus){background:transparent;box-shadow:none}
#hhome #hh-levels .hh-unit-toggle:focus:not(:focus-visible){outline:none}

/* Keep the legacy record link inline with its explanatory text. */
body #hhome .campaign-credit small #legacy-history{display:inline;padding:0;margin:0 0 0 6px;font-size:inherit;line-height:inherit;vertical-align:baseline}

/* Keep nickname input focus clear without the yellow ring. */
body #analytics-profile input:focus,body #analytics-profile input:focus-visible{outline:none!important;box-shadow:none!important;border-color:#829cc5}

#qopts .qo.quiz-mbti-only{display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700}

/* Available levels use the same surface as completed levels. */
#hhome #hh-levels .hh-level:enabled{background:#fcfcfa;border-color:#8fa9ca;box-shadow:var(--campaign-card-shadow)}

/* Expanded instructions must not push the fall header outside the scroll area. */
body #fs{justify-content:flex-start;overflow-y:auto}body #fs>*{flex-shrink:0}
