/* ============================================================
   Base / reset  (mirrors the source's global rules)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; outline: none; }
* { margin: 0; padding: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--background-500);
  color: var(--text-default);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
svg, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; appearance: none; }
input, select, textarea { font-family: inherit; color: inherit; appearance: none; background: transparent; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; color: var(--text-primary); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); border-radius: 3px; transition: background .2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .45); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

/* Boot splash (before Vue mounts) */
.boot-splash { position: fixed; inset: 0; display: grid; place-content: center; gap: 20px; background: var(--background-500); z-index: 999; }
.boot-logo { font-weight: 800; font-size: 34px; letter-spacing: -1px; color: #fff; text-align: center; }
.boot-logo span { color: #fff; }
.boot-bar { width: 180px; height: 4px; border-radius: 4px; background: var(--background-300); overflow: hidden; margin: 0 auto; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--primary-main); border-radius: 4px; animation: bootslide 1s var(--ease) infinite; }
@keyframes bootslide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-win { color: var(--success-main); }
.text-gold { color: var(--warning-main); }
.text-muted { color: var(--text-secondary); }
