/* A-Coins shared base: self-hosted fonts (SIL Open Font License), reset and utilities used by both directions. */
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.ttf") format("truetype"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root { --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.large-text { font-size: 118.75%; }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #1b0a3d; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.no-scroll { overflow: hidden; }
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(14, 4, 34, .62); backdrop-filter: blur(3px); }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; overflow: hidden; }
.fx-confetti { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; will-change: transform, opacity; }
.fx-coin { position: fixed; width: 34px; height: 34px; z-index: 2147483001; pointer-events: none; will-change: transform, opacity; }
.qr { background: #fff; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
