.gallery-skip{position:fixed;top:-80px;left:12px;background:var(--gold-lite);color:var(--bg);padding:12px;z-index:999}.gallery-skip:focus{top:10px}
.language-profiles-page .nav-links a[aria-current=page]{color:var(--gold-lite)}
.language-profiles-page .hero{padding-bottom:24px}.language-profiles-page .hero-grid{padding-top:35px}.language-profiles-page .hero-art{margin-top:48px}
.native-gallery{max-width:1500px;margin:0 auto;padding:70px 32px 45px;scroll-margin-top:110px}
.gallery-intro{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:25px}.gallery-intro h2{font-size:clamp(30px,3.5vw,47px);margin-bottom:12px}.gallery-intro p{max-width:740px}.gallery-intro .btn{flex-shrink:0}
.profile-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;max-height:266px;overflow:auto;padding:15px;background:#17131c;border:1px solid var(--line);border-radius:15px;scrollbar-color:var(--gold-dark) #17131c;scrollbar-width:thin}
.profile-buttons button{min-height:40px;padding:9px 12px;border:1px solid #423849;border-radius:7px;background:#211b28;color:var(--ink-dim);font:500 13px/1.25 var(--sans);cursor:pointer;text-align:left;transition:background .15s,border-color .15s}
.profile-buttons button:hover{border-color:var(--gold);color:var(--ink)}.profile-buttons button[aria-pressed=true]{background:var(--gold-lite);border-color:var(--gold-lite);color:#241a06;font-weight:700}.profile-buttons button:focus-visible,.native-frame a:focus-visible{outline:3px solid #bb8df5;outline-offset:3px}
.capture-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px 3px 14px}.capture-heading h3{font-size:30px;margin:0}.capture-heading p{font-size:13px;margin:4px 0 0}.capture-heading>p{color:var(--gold-lite)}
.native-frame{margin:0;background:#17131c;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 24px 80px #0004}.native-frame a{display:block;cursor:zoom-in}.native-frame img{width:100%;height:auto}.native-frame figcaption{padding:14px 20px;font-size:12px;color:var(--ink-dim)}
.capture-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding:30px 5px}.capture-facts h4{font:600 14px var(--sans);color:var(--gold-lite)}.capture-facts p{font-size:13px;line-height:1.75}.gallery-cta{text-align:center;padding:35px 20px 90px}.gallery-cta h2{font-size:clamp(26px,3vw,38px);margin-bottom:25px}
#capture-viewer{border:1px solid var(--line);border-radius:12px;background:#15121b;color:var(--ink);width:min(96vw,2960px);max-width:96vw;max-height:96vh;padding:48px 12px 12px;overflow:auto}#capture-viewer::backdrop{background:#050308e8}#capture-viewer img{width:100%;height:auto}#capture-viewer p{font-size:13px;padding:8px 0;margin:0}.viewer-close{position:fixed;right:4vw;top:4vh;background:#251d2c;border:1px solid #a28bb6;color:white;padding:9px 15px;border-radius:6px;cursor:pointer;font:600 13px var(--sans)}
@media(max-width:850px){.gallery-intro{align-items:flex-start;flex-direction:column}.capture-facts{grid-template-columns:1fr;gap:12px}.native-gallery{padding:40px 18px}.language-profiles-page .hero-grid{padding-top:5px}.profile-buttons{grid-template-columns:repeat(auto-fit,minmax(115px,1fr));max-height:222px}.capture-heading h3{font-size:25px}}
@media(prefers-reduced-motion:reduce){.profile-buttons button{transition:none}}
.viewer-zoom{position:fixed;left:4vw;top:4vh;z-index:1;background:#251d2c;border:1px solid #a28bb6;color:white;padding:9px 15px;border-radius:6px;cursor:pointer;font:600 13px var(--sans)}#capture-viewer.actual-size img{width:auto;max-width:none;height:auto}

#capture-heading{scroll-margin-top:100px}

/* The pixie and paper share one transform, so her perch stays put. */
.language-profiles-page .paper-scene{position:relative;width:min(420px,92%);animation:float 7s ease-in-out infinite}
.language-profiles-page .paper-scene .script-page{width:100%;min-height:350px;animation:none;transform:none;box-sizing:border-box}
.language-profiles-page .paper-scene .script-page.vert{width:100%;height:400px;overflow:hidden}
.language-profiles-page .paper-scene .seal{top:-91px;left:50%;transform:translateX(-50%) rotate(4deg);animation:none;pointer-events:none}
.language-profiles-page .script-page .caret{width:2px;height:1em;min-width:0;max-width:2px;overflow:hidden}
.language-profiles-page .script-page.vert .caret{width:.9em;height:2px;max-width:.9em;max-height:2px;min-width:0;margin:3px 0 0;line-height:0;vertical-align:baseline}
.native-frame{position:relative}
.capture-page-button{position:absolute;right:22px;bottom:70px;display:flex;align-items:center;gap:10px;border:1px solid #e8c98a;border-radius:999px;padding:13px 21px;color:#20190e;background:#f3d99e;box-shadow:0 5px 24px #0005;font:600 13px/1.2 var(--sans);cursor:pointer;transition:transform .15s,background .15s}
.capture-page-button:hover{background:#ffe9ba;transform:translateY(-2px)}
.capture-page-button:focus-visible{outline:3px solid #bb8df5;outline-offset:4px}
#capture-viewer{padding:0;width:min(96vw,2960px);max-height:94vh;overflow:auto}
#capture-viewer .viewer-toolbar{position:sticky;top:0;z-index:2;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;background:#15121bf5;border-bottom:1px solid var(--line)}
#capture-viewer .viewer-toolbar button{position:static;border:1px solid #776581;border-radius:7px;color:#eee5f4;background:#251d2c;padding:10px 14px;font:600 13px/1.2 var(--sans);cursor:pointer}
#capture-viewer .viewer-toolbar button[aria-pressed=true]{background:#f3d99e;border-color:#f3d99e;color:#20190e}
#capture-viewer .viewer-toolbar .viewer-close{margin-left:auto}
#capture-viewer .viewer-media{padding:18px;overflow:auto;text-align:center}
#capture-viewer .viewer-media img{display:block;width:100%;max-width:none;height:auto;margin:auto}
#capture-viewer .viewer-media canvas{display:block;width:auto;max-width:100%;height:auto;max-height:calc(84vh - 100px);margin:auto;box-shadow:0 8px 30px #0006}
#capture-viewer .viewer-media [hidden]{display:none}
#capture-viewer.actual-size .viewer-media img,#capture-viewer.actual-size .viewer-media canvas{width:auto;max-width:none;height:auto;max-height:none}
#capture-viewer .viewer-caption{padding:0 18px 15px;text-align:center;font-size:13px}
@media(max-width:640px){.language-profiles-page .paper-scene .seal{top:-64px}.capture-page-button{right:12px;bottom:54px;padding:10px 13px;font-size:11px}.native-frame figcaption{padding:12px;font-size:11px}#capture-viewer .viewer-toolbar{gap:6px;padding:8px}#capture-viewer .viewer-toolbar button{padding:9px 10px;font-size:11px}#capture-viewer .viewer-media{padding:10px}}
@media(prefers-reduced-motion:reduce){.language-profiles-page .paper-scene{animation:none}.capture-page-button{transition:none}}

#capture-viewer .viewer-media canvas{width:min(100%,900px);max-height:none}
#capture-viewer.fit-page .viewer-media canvas{width:auto;max-width:100%;max-height:calc(84vh - 100px)}
