:root{--soft-ease:cubic-bezier(.22,.61,.36,1);--theme-duration:350ms}
html{scroll-behavior:smooth;scroll-padding-top:126px}section[id],article[id]{scroll-margin-top:126px}
body,header,article,.button,.contact,.about-section,.game-visual,.cover-slot,.screenshot-placeholder,dialog,nav,.preference-controls button{transition:background-color var(--theme-duration) ease,color var(--theme-duration) ease,border-color var(--theme-duration) ease,box-shadow 300ms var(--soft-ease),transform 300ms var(--soft-ease)}
h1,h2,h3,p,.eyebrow,.brand-name,.footer-bottom,.cover-title,.hero-note,.email-placeholder{transition:color var(--theme-duration) ease}
.motion-pending{opacity:0;transform:translateY(18px)}.motion-shown{opacity:1;transform:translateY(0)}
.motion-pending,.motion-shown{transition:opacity 460ms var(--soft-ease),transform 460ms var(--soft-ease),background-color var(--theme-duration) ease,color var(--theme-duration) ease,border-color var(--theme-duration) ease,box-shadow 300ms ease}
.back-to-top{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));z-index:19;width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--line-hover);border-radius:17px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(8px) scale(.94);pointer-events:none;transition:opacity .28s var(--soft-ease),transform .28s var(--soft-ease),visibility .28s,background-color .35s,color .35s,box-shadow .28s}
.back-to-top svg{width:22px;height:22px}.back-to-top.visible{opacity:1;visibility:visible;transform:none;pointer-events:auto}.back-to-top.visible:hover{transform:translateY(-3px) scale(1.025);color:var(--accent-text);box-shadow:var(--hover-shadow)}.back-to-top:focus-visible{outline:2px solid var(--accent-text);outline-offset:4px}.back-to-top:active{transform:scale(.97)}
@media(max-width:760px){.back-to-top{right:16px;right:max(16px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));width:46px;height:46px;border-radius:16px}footer{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}.footer-bottom{padding-right:42px}html{scroll-padding-top:116px}section[id],article[id]{scroll-margin-top:116px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.motion-pending,.motion-shown{opacity:1;transform:none}.back-to-top,.back-to-top.visible:hover{transform:none}*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{.back-to-top{display:none}.motion-pending{opacity:1;transform:none}}
