/* KYH · paper, ink and gold. No layout or data changes to standalone games. */
:root,:root body:not(.vt-game-page):not(.ba-game-page){--sans:'DM Sans',Arial,sans-serif;--ink:#1e293b;--paper:#fcfcfa;--gold:#91691f;--emerald-deep:#1e293b;--emerald:#91691f;--pale:#f1eee6;--muted:#526071;--line:#d9dce0;--polish-radius:12px;--polish-shadow:0 8px 24px -12px #1e293b32;--card-shadow:var(--polish-shadow);--card-shadow-hover:var(--polish-shadow);--section-space:clamp(96px,8vw,120px)}
html:root body:not(.vt-game-page):not(.ba-game-page){font-family:var(--sans);font-size:1rem;line-height:1.7}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(h1,h2,h3,h4){font-family:'Playfair Display',Georgia,serif;line-height:1.15;text-wrap:balance}
html:root body:not(.vt-game-page):not(.ba-game-page) em{color:var(--gold)}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.eyebrow,.edition-kicker){color:var(--gold);font-size:.875rem;line-height:1.5;letter-spacing:.1em}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.button,.edition-primary,.studio-primary,.edition-all-studies){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:14px 22px;border:1px solid var(--ink);border-radius:var(--polish-radius);font:600 .9375rem/1.35 var(--sans);letter-spacing:0;text-decoration:none;background:var(--ink);color:var(--paper);box-shadow:none;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;transform:none;translate:none}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.polish-secondary,.button.outline,.button.light){background:transparent;color:var(--ink);border-color:var(--ink);box-shadow:none}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.polish-primary,.button,.edition-primary,.studio-primary,.edition-all-studies):not(:disabled):not([aria-disabled=true]):hover{transform:translateY(-2px);translate:none;box-shadow:var(--polish-shadow)}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.button,.edition-primary,.studio-primary,.edition-all-studies):active{transform:scale(.98);translate:none}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.text-link,.polish-tertiary,.edition-body-map){display:inline-flex;align-items:center;min-height:44px;font-size:.9375rem;font-weight:600;line-height:1.5;color:var(--ink);border:0;text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1px;text-underline-offset:6px;padding-block:8px}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #91691f;outline-offset:4px}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(button,.search-open,.menu-toggle,.saved-nav,.save,.close,.authority-actions a){min-width:44px;min-height:44px;font-size:.9375rem}
html:root body :is(button,.button):is(:disabled,[aria-disabled=true]){opacity:.55;cursor:not-allowed;transform:none;translate:none;box-shadow:none}
html:root body :is(button,.button)[aria-busy=true]{cursor:progress;opacity:.75}
html:root body :is(button,.button)[aria-busy=true]::after{content:'';width:14px;height:14px;margin-inline-start:8px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:polish-spin .8s linear infinite}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(input,select,textarea){font-family:var(--sans);font-size:1rem;border-radius:var(--polish-radius)}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.article-card,.path-card,.topic,.world-card,.routine-form,.routine-empty,.routine-summary,.routine-day,.guide-photo img,.card-image,.video-embed-card,.rev-newsletter,.rev-ad-slot,.sheet-card,.kit-template,.kit-paper,.edition-plate,.atlas-study-card){border-radius:var(--polish-radius);box-shadow:var(--polish-shadow)}
html:root body:not(.vt-game-page):not(.ba-game-page) :is(.section,.home-focus-tools,.home-focus-library,.home-focus-topics,.home-focus-videos,.home-focus-standards,.kyh-atlas-spotlight,.studio-feature,.polish-study){padding-block:var(--section-space)}
html:root body .header{background:#fcfcfaf5;backdrop-filter:none;box-shadow:none}
html:root body .header nav{font-size:.875rem}
html:root body .topline{background:var(--ink);color:var(--paper)}
html:root body :is(.header nav a:hover,.header nav a:focus-visible,.header nav a[aria-current=page]){color:var(--gold)}
html:root body .polish-hero{position:relative;isolation:isolate;overflow:hidden;min-height:660px;background:#f8f1e4;border-bottom:1px solid #d9c9ac}
html:root body .polish-hero-art{position:absolute;inset:0;z-index:-2}
html:root body .polish-hero-art img{width:100%;height:100%;object-fit:cover;object-position:50% 45%}
html:root body .polish-hero::after{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#fcfcfaf2 0%,#fcfcfacc 30%,#fcfcfa22 62%,transparent)}
html:root body .polish-hero-inner{display:flex;align-items:center;min-height:660px;padding-block:80px}
html:root body .polish-hero-copy{max-width:590px}
html:root body .polish-hero h1{font-size:clamp(3.5rem,6.8vw,6.5rem);letter-spacing:-.055em;line-height:1.02;margin:24px 0}
html:root body .polish-hero-deck{max-width:43ch;color:var(--ink);font-size:1.125rem;line-height:1.65}
html:root body .polish-hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:32px}
html:root body .polish-trust{font-size:.875rem;line-height:1.65;color:#38475a;max-width:50ch;margin-top:24px}
html:root body .polish-hero .polish-tertiary{font-size:.875rem;margin-top:8px}
html:root body .polish-study{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:64px}
html:root body .polish-study-copy h2{font-size:clamp(2.75rem,4.2vw,4.25rem);margin:24px 0}
html:root body .polish-study-copy>p:not(.eyebrow){max-width:38ch}
html:root body .polish-small{font-size:.875rem;margin-top:24px}
html:root body .polish-study .shoulder-study{width:100%;min-width:0;margin:0}
html:root body .kyh-atlas-spotlight{border-top:1px solid var(--line);gap:64px}
html:root body .edition-region-list a{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:16px;padding:16px 0;min-height:88px}
html:root body .edition-region-list a>span[aria-hidden]{display:none}
html:root body .polish-region-thumb{width:72px;height:64px;object-fit:cover;background:#e9edef;border-radius:var(--polish-radius)}
html:root body .polish-region-neighbour{display:flex;align-items:center;gap:16px}
html:root body .polish-region-neighbour img{width:88px;height:72px;object-fit:cover;border-radius:var(--polish-radius)}
html:root body .edition-region-list small{font-size:.875rem;line-height:1.5;color:var(--muted)}
html:root body .topic .kyh-topic-emblem{width:48px!important;height:48px!important}
html:root body .topic .kyh-jewel{--jewel-size:48px;color:var(--ink);background:none;transform:none;perspective:none}
html:root body .topic .kyh-jewel-core{inset:0;background:none;border:0;box-shadow:none;transform:none!important;animation:none!important;color:var(--ink)}
html:root body .topic .kyh-jewel-core svg{width:40px;height:40px;filter:none}
html:root body .topic :is(.kyh-jewel-orbit,.kyh-jewel-spark){display:none}
html:root body .topic.kyh-interactive:is(:hover,:focus-within,.kyh-touch-active){background:#f1eee6;color:var(--ink);transform:translateY(-2px);box-shadow:var(--polish-shadow)}
html:root body .topic.kyh-interactive:is(:hover,:focus-within,.kyh-touch-active) :is(h3,p,.topic-arrow){color:var(--ink)}
html:root body .polish-video-player{position:relative;overflow:hidden;aspect-ratio:9/16;max-height:440px;background:var(--ink);border-radius:var(--polish-radius)}
html:root body .polish-video-player iframe{width:100%;height:100%;border:0}
html:root body .polish-video-poster{position:relative;display:block;padding:0;border:0;border-radius:var(--polish-radius);width:100%;height:100%;overflow:hidden;background:var(--ink);color:white;cursor:pointer}
html:root body .polish-video-poster img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
html:root body .polish-video-poster:hover img{transform:scale(1.025)}
html:root body .polish-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;background:#fcfcfaf2;color:var(--ink);border:1px solid #fff8;border-radius:50%;box-shadow:var(--polish-shadow)}
html:root body .polish-video-duration{position:absolute;right:16px;bottom:16px;background:#1e293bf2;color:white;padding:4px 8px;border-radius:4px;font-size:.875rem;font-variant-numeric:tabular-nums}
html:root body .polish-kit-cover{width:100%;height:auto;max-height:400px;object-fit:contain;filter:none}
html:root body .polish-kit-cover-figure{margin:0;max-width:280px;align-self:center}
html:root body .studio-feature-preview{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap}
html:root body .studio-feature-preview .polish-kit-cover{width:220px}
html:root body .kit-stage{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:32px}
html:root body .rev-newsletter{background:#f2f0e9;border:1px solid #ddd7c9;margin-block:48px;padding:48px;display:grid;grid-template-columns:1fr 1fr;gap:48px}
html:root body .rev-newsletter h2{font-size:clamp(2rem,3vw,2.75rem);margin-block:16px}
html:root body .rev-inline-signup label{display:block;margin-bottom:8px;font-size:.875rem;color:var(--ink)}
html:root body .rev-inline-field{display:flex;align-items:stretch;gap:8px}
html:root body .rev-inline-field input{min-width:0;flex:1;width:100%;border:1px solid #aab1ba;background:var(--paper);padding:14px 16px;min-height:48px}
html:root body .rev-inline-field .button{white-space:nowrap}
html:root body .rev-newsletter :is([role=status],.rev-newsletter-privacy){font-size:.875rem;line-height:1.6;margin-block:16px;color:#526071}
html:root body .authority-utility{background:transparent;border:0;border-block:1px solid var(--line);border-radius:0;box-shadow:none;padding:24px 0;margin-block:40px}
html:root body .authority-utility-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
html:root body .authority-utility h2{font-family:var(--sans);font-size:1rem;line-height:1.5;margin:0}
html:root body .authority-utility .authority-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
html:root body .authority-utility :is(button,.authority-actions a){border:1px solid var(--line);border-radius:var(--polish-radius);padding:8px 12px;min-height:44px;background:transparent;color:var(--ink);font-size:.875rem;box-shadow:none}
html:root body .authority-sharing-privacy{margin-top:8px;font-size:.875rem}
html:root body .authority-sharing-privacy summary{min-height:44px;display:list-item;cursor:pointer;padding-block:8px}
html:root body .authority-utility [data-share-status]:empty{display:none}
/* Static skeletons reserve scene geometry without ongoing animation. */
#atlas-loading:not([hidden])::before,.mc-scene[data-art-state=loading]::after,.bc-scene:not(.bc-loaded)::after{content:'';position:absolute;inset:28% 14%;border-radius:12px;background:linear-gradient(110deg,#a3aaa322 25%,#faf8e944 45%,#a3aaa322 65%);background-size:220% 100%;animation:none;pointer-events:none}
#atlas-loading:not([hidden])::before{inset:18% 20%;border:1px solid #aa916233;clip-path:polygon(15% 0,85% 0,100% 16%,100% 84%,85% 100%,15% 100%,0 84%,0 16%)}
@keyframes polish-skeleton{from{background-position:100% 0}to{background-position:-100% 0}}
@keyframes polish-spin{to{transform:rotate(1turn)}}
@media(max-width:760px){
 html:root body .wrap{padding-inline:24px}
 html:root body .polish-hero,html:root body .polish-hero-inner{min-height:650px}
 html:root body .polish-hero-inner{padding-block:64px;align-items:flex-start}
 html:root body .polish-hero-copy{max-width:480px}
 html:root body .polish-hero-art img{object-position:62% center}
 html:root body .polish-hero::after{background:linear-gradient(90deg,#fcfcfaf5,#fcfcfad9 62%,#fcfcfa66)}
 html:root body .polish-hero h1{font-size:clamp(3.25rem,12vw,5rem)}
 html:root body .polish-hero-deck{font-size:1rem}
 html:root body .polish-hero-actions{gap:12px}
 html:root body .polish-study{grid-template-columns:1fr;gap:40px}
 html:root body .polish-study-copy h2 br{display:none}
 html:root body .kyh-atlas-spotlight{gap:40px}
 html:root body .rev-newsletter{padding:24px;grid-template-columns:1fr;gap:24px}
 html:root body .rev-inline-field{flex-wrap:wrap}
 html:root body .rev-inline-field input{min-width:150px}
 html:root body .polish-video-player{max-height:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}html:root body :is(a,button,.button,.polish-video-poster img,.kyh-interactive){transition:none!important;animation:none!important;transform:none!important;translate:none!important}html:root body .polish-play{transform:translate(-50%,-50%)!important}#atlas-loading::before,.mc-scene::after,.bc-scene::after{animation:none!important}html:root body [aria-busy=true]::after{animation:none!important}}
@media print{.polish-hero-art,.authority-utility,.rev-newsletter{display:none}html:root body .polish-hero{min-height:0;background:white}html:root body .polish-hero-inner{min-height:0;padding-block:24px}}

html:root body .studio-feature-art{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center;padding:24px;min-height:0}
html:root body .studio-feature-art>.studio-art-label,html:root body .studio-feature-art>.studio-art-caption{grid-column:1/-1;position:static;margin:0;width:100%}
html:root body .studio-feature-art .studio-feature-paper{position:static;transform:none;width:100%;margin:0}
html:root body .studio-feature-art>.polish-kit-cover{max-height:340px}
html:root body .kit-product-stage{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}
html:root body .kit-product-stage>.kit-stage-heading,html:root body .kit-product-stage>.kit-stage-footer{grid-column:1/-1}
html:root body .kit-product-stage .kit-paper{transform:none;padding:12px}
@media(max-width:760px){html:root body .studio-feature-art{padding:16px;gap:16px}html:root body .kit-product-stage{gap:16px}}

html:root body .member-join-link{border-radius:var(--polish-radius);min-height:44px}
html:root body .button:not([aria-busy=true])::after{content:none}
html:root body .polish-primary>span[aria-hidden=true],html:root body .polish-secondary>span[aria-hidden=true]{display:none}

html:root body:not(.vt-game-page):not(.ba-game-page) button{border-radius:var(--polish-radius)}
html:root body .topic .kyh-jewel-core{background:none!important;box-shadow:none!important;color:var(--ink)!important}
html:root body .topic-arrow{display:none}
html:root body .studio-feature .polish-primary{border-color:#fcfcfa}
html:root body .studio-feature-copy h2 em{color:#e3c696}
html:root body .studio-feature .polish-secondary{color:#fcfcfa;border-color:#fcfcfa}
html:root body .studio-feature.wrap{border-radius:var(--polish-radius);box-shadow:var(--polish-shadow)}
html:root body .member-join{border-radius:var(--polish-radius)}
