/* =========================================================================
   NEON PREMIUM 2.0 — FONDASI
   Dimuat di semua halaman publik SETELAH tokens.css / theme-layer.css.
   Berisi: token tambahan (emas untuk uang, garis rambut, elevasi, skala
   tipe & spasi) dan aturan dasar aksesibilitas.
   Prinsip: glow dijatah, permukaan tenang, hierarki lewat ukuran & kontras.
   ========================================================================= */

:root{
  /* --- Aksen uang/hadiah (dipakai HANYA untuk nominal, jackpot, hadiah) --- */
  --gold:#f5c76a;
  --gold-soft:#ffe6b0;
  --gold-rgb:245,199,106;

  /* --- Permukaan baru: lebih tenang dari gradient lama --- */
  --ui-surface:rgba(26,16,48,.72);
  --ui-surface-2:rgba(17,10,34,.90);
  --ui-surface-3:rgba(40,24,74,.88);
  --ui-line:rgba(255,255,255,.07);
  --ui-line-2:rgba(var(--brand-rgb),.22);

  /* --- Elevasi: hanya 3 tingkat --- */
  --ui-sh-1:0 2px 8px rgba(0,0,0,.30);
  --ui-sh-2:0 12px 30px rgba(0,0,0,.42);
  --ui-sh-3:0 24px 60px rgba(0,0,0,.55);

  /* --- Radius --- */
  --ui-r-xs:10px;
  --ui-r-sm:14px;
  --ui-r-md:18px;
  --ui-r-lg:24px;

  /* --- Spasi --- */
  --ui-1:4px;  --ui-2:8px;  --ui-3:12px;
  --ui-4:16px; --ui-5:20px; --ui-6:28px; --ui-7:36px;

  /* --- Skala tipe (minimum 10px untuk label) --- */
  --ui-fs-label:10px;
  --ui-fs-meta:11px;
  --ui-fs-body:12px;
  --ui-fs-base:13px;
  --ui-fs-lg:15px;
  --ui-fs-title:17px;
  --ui-fs-h2:22px;
  --ui-fs-h1:28px;

  /* --- Cincin fokus --- */
  --ui-focus:0 0 0 3px rgba(var(--brand-rgb),.30);
}

/* ------------------------------------------------------------------ Dasar --- */
html{
  -webkit-tap-highlight-color:transparent;
  scroll-behavior:smooth;
}

html:root body{
  font-size:var(--ui-fs-base);
  line-height:1.5;
  text-rendering:optimizeLegibility;
}

/* Semua label kecil di situs minimal 10px supaya terbaca di ponsel. */
html:root .eyebrow,
html:root .game-meta,
html:root .togel-status,
html:root .home-stat span,
html:root .bottom a span,
html:root .bottom .center label,
html:root .provider-item,
html:root .more,
html:root .live-pill{
  font-size:max(10px, 1em);
}

/* Angka uang selalu rata kolom. */
.ui-num,
html:root .game-win,
html:root .togel-card strong,
html:root .home-stat strong,
html:root .member-balance-info strong{
  font-variant-numeric:tabular-nums;
  font-feature-settings:'tnum' 1;
}

/* Fokus keyboard selalu terlihat, termasuk di dalam komponen gelap. */
html:root a:focus-visible,
html:root button:focus-visible,
html:root summary:focus-visible,
html:root input:focus-visible,
html:root select:focus-visible,
html:root textarea:focus-visible{
  outline:2px solid rgba(var(--brand-2-rgb),.85);
  outline-offset:2px;
  border-radius:6px;
}

/* Target sentuh minimal 44px untuk kontrol utama di layar kecil. */
@media (pointer:coarse){
  html:root .ui-tap,
  html:root .bottom a,
  html:root .ui-btn{
    min-height:44px;
  }
}

/* Hormati preferensi gerakan minimal. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html:root *,
  html:root *::before,
  html:root *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* Utilitas kecil. */
.ui-sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.ui-hide{display:none !important}
