/* COINZ STORE - base: reset, typography, layout, animated background */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 16px; line-height: 1.65;
  background: var(--bg); color: var(--text); overflow-x: hidden;
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
h2 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, Consolas, monospace; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 999; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 14px; }
.view { padding-block: 16px 40px; min-height: 60vh; outline: none; }
.view-in { animation: viewIn .28s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(124, 92, 255, .4); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* animated grid + orbs + particles (pure CSS) */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx::before {
  content: ''; position: absolute; inset: -60px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; animation: gridMove 14s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes gridMove { to { transform: translateY(48px); } }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: orb 18s ease-in-out infinite alternate; }
.o1 { width: 420px; height: 420px; background: var(--primary); top: -120px; inset-inline-start: -100px; }
.o2 { width: 360px; height: 360px; background: var(--accent); bottom: -120px; inset-inline-end: -80px; opacity: .28; animation-delay: -6s; }
.o3 { width: 260px; height: 260px; background: var(--pink); top: 45%; inset-inline-start: 55%; opacity: .16; animation-delay: -11s; }
[data-theme="light"] .orb { opacity: .18; }
@keyframes orb { to { transform: translate(40px, 50px) scale(1.15); } }
.dot { position: absolute; bottom: -10px; left: var(--x); width: var(--z); height: var(--z); border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: 0; animation: rise var(--d) linear var(--s) infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } 90% { opacity: .5; } 100% { transform: translateY(-105vh); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dot { display: none; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}
