/* OkayTopup — dark (default) + light themes. Brand colours come from the logos; admins can change them in settings
   (core.js derives a deeper shade for light mode so text on the brand colour stays readable). */
:root {
  --radius: 16px;
  --font: "Leelawadee UI", "Segoe UI", "Noto Sans Thai", "Sukhumvit Set", Tahoma, system-ui, sans-serif;
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
}
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --primary: var(--brand-d, #6ce864); --accent: var(--accent-d, #00b060); --on-primary: var(--on-brand-d, #062a12); --on-accent: var(--on-accent-d, #02180b);
  --bg: #070b09; --bg2: #0c120f; --card: #111915; --card2: #17211c; --line: #1f2c25; --line2: #2b3b32;
  --text: #e9f4ed; --text-strong: #ffffff; --muted: #94a99c; --dim: #66796d;
  --ssr: #fbbf24; --sr: #a855f7; --r: #38bdf8; --salt: #94a3b8; --on-tier: #0b0f0c;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 80px -20px #000;
  --inset: #050806; --overlay: rgba(2, 5, 3, .74); --glow: 16%;
  --stage-a: #08100b; --stage-b: #0d1711; --tile-a: #111a14; --tile-b: #0b120e;
  --ok-fg: #86efac; --ok-bg: #052e16; --ok-bd: #14532d; --warn-fg: #fcd34d; --warn-bg: #2a1a05; --warn-bd: #78350f;
  --bad-fg: #fca5a5; --bad-bg: #2a0909; --bad-bd: #7f1d1d; --info-fg: #93c5fd; --info-bg: #0b1533; --info-bd: #1e3a8a;
  --note-fg: #fde68a; --note-info-fg: #a7f3d0; --pos: #86efac; --neg: #fca5a5;
  --grid-line: rgba(255, 255, 255, .07); --axis-line: rgba(255, 255, 255, .22); --cross-line: rgba(255, 255, 255, .35); --tip-bg: #17231c;
  --series-1: #338ced; --series-2: #e76624; --series-3: #00a888;
}
:root[data-theme="light"] {
  color-scheme: light;
  --primary: var(--brand-l, #15803d); --accent: var(--accent-l, #047857); --on-primary: var(--on-brand-l, #ffffff); --on-accent: var(--on-accent-l, #ffffff);
  --bg: #f3f7f4; --bg2: #ffffff; --card: #ffffff; --card2: #f1f6f2; --line: #dbe5de; --line2: #c6d4cb;
  --text: #0f1b14; --text-strong: #06100a; --muted: #4c5f54; --dim: #77897e;
  --ssr: #b37700; --sr: #9333ea; --r: #0284c7; --salt: #64748b; --on-tier: #ffffff;
  --shadow: 0 1px 2px rgba(15, 27, 20, .06), 0 10px 26px -14px rgba(15, 27, 20, .28); --shadow-lg: 0 30px 70px -24px rgba(15, 27, 20, .45);
  --inset: #f1f5f2; --overlay: rgba(15, 27, 20, .42); --glow: 9%;
  --stage-a: #f4f8f5; --stage-b: #e7efe9; --tile-a: #ffffff; --tile-b: #f2f6f3;
  --ok-fg: #166534; --ok-bg: #dcfce7; --ok-bd: #86efac; --warn-fg: #92400e; --warn-bg: #fef3c7; --warn-bd: #fcd34d;
  --bad-fg: #991b1b; --bad-bg: #fee2e2; --bad-bd: #fca5a5; --info-fg: #1e40af; --info-bg: #dbeafe; --info-bd: #93c5fd;
  --note-fg: #7c2d12; --note-info-fg: #065f46; --pos: #15803d; --neg: #b91c1c;
  --grid-line: #e7e7e7; --axis-line: #c2c2c2; --cross-line: #a3b0a8; --tip-bg: #ffffff;
  --series-1: #257de0; --series-2: #f47230; --series-3: #00b894;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; min-height: 100vh;
  background-image: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) var(--glow), transparent), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at top, #000 0%, transparent 70%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap-it { flex-wrap: wrap; } .spread { justify-content: space-between; }
.grow { flex: 1; } .center { text-align: center; } .right { text-align: right; }
.stack > * + * { margin-top: 12px; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .3px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 24px -4px var(--primary); font-size: 16px; color: #fff; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--card); }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.balance-chip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); font-weight: 700; }
.balance-chip .plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line2); font-weight: 800; text-transform: uppercase; }
.burger { display: none; background: none; border: 1px solid var(--line2); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--primary); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); border-color: transparent; color: var(--on-primary); box-shadow: 0 8px 24px -10px var(--primary); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px var(--primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { background: color-mix(in srgb, var(--bad) 18%, var(--card)); border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad-fg); }
.btn-ok { background: color-mix(in srgb, var(--ok) 18%, var(--card)); border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok-fg); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
textarea.input { min-height: 110px; resize: vertical; font-family: Consolas, monospace; font-size: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.chip.active, .chip:hover { color: var(--text-strong); border-color: var(--primary); background: color-mix(in srgb, var(--primary) 20%, var(--card)); }

/* ---------- Cards / sections ---------- */
.card { background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 85%, var(--bg))); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.section { margin: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 6px; height: 22px; border-radius: 4px; background: linear-gradient(var(--primary), var(--accent)); }
.page-title { font-size: 28px; margin: 28px 0 6px; }
.badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line2); background: var(--card2); }
.badge.ok { color: var(--ok-fg); border-color: var(--ok-bd); background: var(--ok-bg); } .badge.warn { color: var(--warn-fg); border-color: var(--warn-bd); background: var(--warn-bg); }
.badge.bad { color: var(--bad-fg); border-color: var(--bad-bd); background: var(--bad-bg); } .badge.info { color: var(--info-fg); border-color: var(--info-bd); background: var(--info-bg); }
.badge.p { color: var(--on-primary); border-color: transparent; background: var(--primary); }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); }

/* ---------- Hero slider ---------- */
.hero { position: relative; margin-top: 22px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 1; min-height: 220px; background: var(--card2); isolation: isolate; }
/* Crossfade: the incoming slide fades in ON TOP of the outgoing one, whose text is hidden at once — two captions never overlap. */
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(22px, 5vw, 60px); opacity: 0; visibility: hidden; z-index: 0; transition: opacity .7s ease, visibility 0s linear .7s; background-size: cover; background-position: center; color: #fff; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; transition: opacity .7s ease; }
.slide.prev { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.slide.prev .slide-body { opacity: 0; transition: none; }
.slide.active .slide-body { animation: slideText .6s ease .12s both; }
@keyframes slideText { from { opacity: 0; transform: translateY(10px); } }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-img::after { background: linear-gradient(90deg, rgba(3, 8, 5, .72) 0%, rgba(3, 8, 5, .38) 48%, rgba(3, 8, 5, 0) 78%); }
.slide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 50%, rgba(255,255,255,.18), transparent 40%), repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.035) 40px 80px); pointer-events: none; }
.slide-body { position: relative; z-index: 1; max-width: 560px; }
.slide h1 { font-size: clamp(24px, 4.2vw, 46px); line-height: 1.12; margin: 0 0 10px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.slide p { margin: 0 0 18px; color: rgba(255, 255, 255, .9); font-size: clamp(14px, 1.6vw, 17px); text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.slide .orb { position: absolute; right: 6%; top: 50%; width: clamp(120px, 24vw, 280px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff8, transparent 30%), conic-gradient(from 0deg, var(--c1), var(--c2), var(--c1)); filter: blur(.3px); box-shadow: 0 0 80px var(--c1); animation: spin 14s linear infinite; opacity: .9; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: #fff6; cursor: pointer; padding: 0; transition: width .3s; }
.dots button.active { width: 28px; background: #fff; }

/* ---------- Quick menu ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: .2s; position: relative; overflow: hidden; }
.quick a:hover { border-color: var(--primary); transform: translateY(-2px); }
.quick a::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--q); opacity: .18; filter: blur(10px); }
.quick .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--q) 22%, transparent); border: 1px solid color-mix(in srgb, var(--q) 40%, transparent); }
.quick b { display: block; font-size: 15px; } .quick small { color: var(--muted); font-size: 12px; }

/* ---------- Live ticker ---------- */
.ticker { margin-top: 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 10px 14px; overflow: hidden; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .live { flex: none; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--bad-fg); }
.ticker .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 var(--bad); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ticker-track { display: flex; gap: 34px; white-space: nowrap; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: 14px; color: var(--muted); } .ticker-item b { color: var(--text); }

/* ---------- Game grid ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 220px; } .search .input { padding-left: 40px; } .search::before { content: "🔍"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .7; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
.game { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform .2s, border-color .2s, box-shadow .2s; }
.game:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gc, var(--primary)) 70%, transparent); box-shadow: 0 14px 40px -14px var(--gc, var(--primary)); }
.game .cover { position: relative; aspect-ratio: 16 / 10; background: var(--card2); overflow: hidden; }
.game .cover img { width: 100%; height: 100%; object-fit: cover; }
.game .meta { padding: 10px 12px 12px; } .game .meta b { display: block; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .meta small { color: var(--muted); font-size: 12px; }
.ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 4px 14px -4px #ef4444; }
.ribbon.alt { left: auto; right: 8px; top: 10px; bottom: auto; font-size: 10.5px; padding: 3px 7px; background: rgba(0,0,0,.55); box-shadow: none; backdrop-filter: blur(4px); }

/* ---------- Gacha box cards ---------- */
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.box-card { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: .25s; }
.box-card:hover { transform: translateY(-4px); border-color: var(--bc); box-shadow: 0 18px 50px -18px var(--bc); }
.box-art { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--bc) 55%, transparent), transparent 65%), linear-gradient(160deg, color-mix(in srgb, var(--bc) 25%, var(--bg)), var(--bg)); overflow: hidden; }
.box-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cube { width: 96px; height: 96px; position: relative; transform-style: preserve-3d; animation: float 3.5s ease-in-out infinite; }
.cube::before, .cube::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.cube::before { background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 80%, #fff), var(--bc) 50%, color-mix(in srgb, var(--bc) 50%, #000)); box-shadow: 0 0 50px var(--bc), inset 0 0 0 3px rgba(255,255,255,.25); transform: rotate(45deg); }
.cube::after { content: "?"; display: grid; place-items: center; font-size: 46px; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
@keyframes float { 50% { transform: translateY(-10px); } }
.box-body { padding: 16px; } .box-body h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.35; }
.price-tag { font-size: 22px; font-weight: 800; } .price-tag small { font-size: 13px; color: var(--muted); font-weight: 600; }
.soldout-veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 10, 8, .72); color: #fff; font-weight: 800; font-size: 18px; z-index: 3; }

/* ---------- Game detail ---------- */
.detail-head { display: flex; gap: 20px; align-items: center; margin: 26px 0 20px; }
.detail-head .cover { width: 144px; height: 90px; border-radius: 18px; overflow: hidden; flex: none; border: 1px solid var(--line2); box-shadow: 0 10px 40px -10px var(--gc); background: var(--card2); }
.detail-head .cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-head h1 { margin: 0; font-size: 26px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.step { counter-increment: step; } .step h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; font-size: 17px; }
.step h3::before { content: counter(step); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--on-primary); font-size: 14px; }
.steps { counter-reset: step; display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pack { position: relative; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--bg2); cursor: pointer; transition: .15s; }
.pack:hover { border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.pack.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--bg2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.pack.selected::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.pack[disabled] { opacity: .45; cursor: not-allowed; }
.pack .ico { width: 34px; height: 34px; margin-bottom: 8px; }
.pack .nm { font-weight: 700; font-size: 14px; line-height: 1.3; min-height: 36px; }
.pack .old { color: var(--dim); text-decoration: line-through; font-size: 13px; }
.pack .now { font-size: 19px; font-weight: 800; color: var(--text-strong); }
.pack .save { position: absolute; top: -9px; left: 10px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }
.paybox { position: sticky; top: 86px; }
.sum-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); } .sum-line b { color: var(--text); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line2); font-weight: 800; font-size: 20px; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line2); cursor: pointer; background: var(--bg2); }
.pay-opt.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--bg2)); }
.pay-opt input { accent-color: var(--primary); }

/* ---------- Gacha page ---------- */
.reel-wrap { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line2); background: linear-gradient(180deg, var(--stage-a), var(--stage-b)); padding: 26px 0; }
.reel-wrap::before, .reel-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.reel-wrap::before { left: 0; background: linear-gradient(90deg, var(--stage-a), transparent); } .reel-wrap::after { right: 0; background: linear-gradient(270deg, var(--stage-a), transparent); }
.marker { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; transform: translateX(-50%); z-index: 3; background: linear-gradient(var(--accent), var(--primary)); box-shadow: 0 0 18px var(--accent); border-radius: 3px; }
.marker::before, .marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 9px solid transparent; }
.marker::before { top: -6px; border-top-color: var(--accent); } .marker::after { bottom: -6px; border-bottom-color: var(--primary); }
.reel { display: flex; gap: 12px; will-change: transform; padding-left: 50%; }
.tile { flex: none; width: 140px; height: 160px; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 26%, var(--tile-a)), var(--tile-b)); border: 1.5px solid color-mix(in srgb, var(--tc) 60%, transparent); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tc) 50%, transparent), transparent 60%); }
.tile .gem { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 54px; height: 54px; }
.tile .t { position: relative; font-size: 11px; font-weight: 900; color: var(--tc); letter-spacing: 1px; }
.tile .n { position: relative; font-size: 13px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile.win { box-shadow: 0 0 0 3px var(--tc), 0 0 40px var(--tc); animation: winpulse 1s ease-in-out 2; }
@keyframes winpulse { 50% { transform: scale(1.06); } }
.spin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.spin-actions .demo { grid-column: 1 / -1; }
.tier-SSR { --tc: var(--ssr); } .tier-SR { --tc: var(--sr); } .tier-R { --tc: var(--r); } .tier-SALT { --tc: var(--salt); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.results .tile { width: auto; animation: pop .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }

/* ---------- Tables, tabs, lists ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 16px; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs .active { color: var(--text); border-bottom-color: var(--primary); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; font-size: 12.5px; background: var(--bg2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; } tbody tr:hover { background: color-mix(in srgb, var(--card2) 60%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inbox-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); }
.secret { margin-top: 10px; display: grid; gap: 8px; }
.secret .line { display: flex; gap: 8px; align-items: center; background: var(--inset); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; }
.secret .line code { flex: 1; word-break: break-all; font-size: 14px; }

/* ---------- Wallet ---------- */
.wallet-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.method-list { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--card); cursor: pointer; text-align: left; }
.method.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--card)); }
.method .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--card2); }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.qr-box { width: 260px; max-width: 100%; margin: 0 auto; padding: 14px; background: #fff; border-radius: 16px; }
.qr-box svg { width: 100%; height: auto; display: block; }
.pp-head { background: #0e3a5c; color: #fff; padding: 10px; border-radius: 12px 12px 0 0; font-weight: 800; text-align: center; letter-spacing: .5px; }
.countdown { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.drop { border: 2px dashed var(--line2); border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; color: var(--muted); }
.drop:hover, .drop.drag { border-color: var(--primary); color: var(--text); }
.drop img { max-height: 220px; margin: 10px auto 0; border-radius: 10px; }
.note { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--note-fg); font-size: 13.5px; }
.note.info { background: color-mix(in srgb, var(--accent) 8%, var(--bg2)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--note-info-fg); }

/* ---------- Profile ---------- */
.profile-head { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; margin-top: 26px; }
.stat { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); min-width: 170px; }
.stat small { color: var(--muted); font-weight: 600; } .stat b { display: block; font-size: 24px; }

/* ---------- Modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: var(--overlay); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); animation: rise .25s cubic-bezier(.2,1.2,.4,1); position: relative; }
.modal.wide { width: min(760px, 100%); }
.modal h3 { margin: 0 0 14px; font-size: 20px; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; }
@keyframes rise { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 10px; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--primary); box-shadow: var(--shadow); animation: rise .25s; font-weight: 600; }
.toast.ok { border-left-color: var(--ok); } .toast.bad { border-left-color: var(--bad); }

/* ---------- Auth ---------- */
.auth { max-width: 420px; margin: 50px auto; }
.auth h1 { margin: 0 0 4px; }
footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.demo-bar { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 25%, transparent), transparent); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: 13px; color: var(--note-fg); text-align: center; padding: 6px 10px; }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .detail-grid, .wallet-grid { grid-template-columns: minmax(0, 1fr); }
  .paybox { position: static; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .profile-head { grid-template-columns: 1fr 1fr; } .profile-head > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .burger { display: grid; place-items: center; }
  .brand span.nm { display: none; }
  .games { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .hero { aspect-ratio: auto; min-height: 240px; }
  .slide .orb { opacity: .35; right: -40px; }
  .tile { width: 116px; height: 140px; }
  .quick a { padding: 12px; gap: 10px; } .quick .ic { width: 38px; height: 38px; font-size: 18px; }
  .balance-chip { padding-left: 10px; font-size: 14px; }
}

/* ================= v2: OkayTopup additions ================= */
.brand-mark { background: none; box-shadow: none; overflow: visible; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary) 40%, transparent)); }
.announce { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 18%, var(--bg2)), var(--bg2)); font-size: 14px; }
.announce .wrap { display: flex; align-items: center; gap: 10px; height: 38px; }
.announce-ic { flex: none; }
.announce-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.announce-track { display: flex; gap: 80px; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.announce:hover .announce-track { animation-play-state: paused; }
.pack-detail { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pw-line { color: var(--warn-fg); font-size: 12.5px; }

/* --- multi-open gacha --- */
.stage { display: grid; gap: 10px; padding: 12px; border-radius: 18px; border: 1px solid var(--line2); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%), linear-gradient(180deg, var(--stage-a), var(--stage-b)); }
.stage-single { grid-template-columns: 1fr; }
.stage-rows { grid-template-columns: 1fr; }
.stage-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; min-width: 0; }
.slot-reel { position: relative; overflow: hidden; border-radius: 14px; background: var(--stage-a); border: 1px solid var(--line); }
.slot-reel::before, .slot-reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; pointer-events: none; }
.slot-reel::before { left: 0; background: linear-gradient(90deg, var(--stage-a), transparent); } .slot-reel::after { right: 0; background: linear-gradient(270deg, var(--stage-a), transparent); }
.stage .reel { display: flex; gap: 10px; padding-left: 50%; will-change: transform; }
.stage-single .slot-reel { padding: 22px 0; } .stage-rows .slot-reel { padding: 10px 0; } .stage-grid .slot-reel { padding: 7px 0; }
.stage-rows .tile { width: 104px; height: 110px; padding: 9px; } .stage-rows .tile .gem { top: 12px; width: 40px; height: 40px; } .stage-rows .tile .n { font-size: 12px; }
.stage-grid .reel { gap: 6px; }
.stage-grid .tile { width: 62px; height: 70px; padding: 6px; border-radius: 10px; } .stage-grid .tile .gem { top: 8px; width: 30px; height: 30px; }
.stage-grid .tile .n { display: none; } .stage-grid .tile .t { font-size: 10px; text-align: center; }
.slot.done .slot-reel { display: none; }
.res { position: relative; height: 100%; min-height: 96px; border-radius: 14px; padding: 12px 10px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 28%, var(--tile-a)), var(--tile-b)); border: 1.5px solid color-mix(in srgb, var(--tc) 75%, transparent); animation: pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.res::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--tc) 45%, transparent), transparent 65%); pointer-events: none; }
.res .gem { position: relative; width: 44px; height: 44px; margin-bottom: 4px; filter: drop-shadow(0 0 10px var(--tc)); }
.res-tier { position: absolute; top: 7px; left: 8px; font-size: 10.5px; font-weight: 900; color: var(--on-tier); background: var(--tc); padding: 1px 7px; border-radius: 6px; }
.res-name { position: relative; font-weight: 800; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-meta { position: relative; font-size: 11px; color: var(--muted); line-height: 1.3; }
.res.tier-SSR { box-shadow: 0 0 0 1px var(--ssr), 0 0 28px -4px var(--ssr); animation: pop .45s cubic-bezier(.2,1.4,.4,1) both, ssrglow 1.6s ease-in-out .5s infinite alternate; }
@keyframes ssrglow { to { box-shadow: 0 0 0 2px var(--ssr), 0 0 42px 2px var(--ssr); } }
.res.tier-SR { box-shadow: 0 0 22px -6px var(--sr); }
.stage-single .res { min-height: 160px; } .stage-single .res .gem { width: 70px; height: 70px; } .stage-single .res-name { font-size: 18px; } .stage-single .res-meta { font-size: 13px; }
.stage-rows .res { min-height: 110px; flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; padding: 12px 16px; }
.stage-rows .res .gem { margin: 0; flex: none; } .stage-rows .res-tier { position: static; }
.stage-grid .res { min-height: 84px; padding: 22px 6px 6px; } .stage-grid .res .gem { width: 28px; height: 28px; } .stage-grid .res-name { font-size: 11.5px; } .stage-grid .res-meta { font-size: 10px; }
.open-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.mult-bar { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2); }
.mult { min-width: 46px; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; transition: .15s; }
.mult:hover { color: var(--text-strong); background: var(--card2); }
.mult.active { color: var(--on-primary); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); box-shadow: 0 6px 18px -8px var(--primary); }
.mult:disabled { opacity: .5; cursor: not-allowed; }
.open-btn { margin-top: 12px; padding: 16px 20px; font-size: 19px; border-radius: 16px; }
.open-btn b { margin-left: 4px; }
.after { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); animation: rise .25s; }
.after-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.after-actions .btn { flex: 1 1 200px; white-space: normal; }

/* --- receipts --- */
.receipt { color: var(--text); }
.rc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.rc-head img { width: 42px; height: 42px; border-radius: 11px; }
.rc-title { font-weight: 800; font-size: 17px; margin: 4px 0 10px; }
.rc-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 14px; }
.rc-row > span:first-child { color: var(--muted); flex: none; } .rc-row b { text-align: right; word-break: break-word; }
.rc-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 800; padding: 10px 0; margin: 6px 0; border-top: 1px dashed var(--line2); border-bottom: 1px dashed var(--line2); }
.receipt hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.rc-tl { margin-top: 10px; display: grid; gap: 6px; font-size: 12.5px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
@media print {
  body * { visibility: hidden !important; }
  .receipt, .receipt * { visibility: visible !important; color: #000 !important; }
  .receipt { position: absolute; left: 0; top: 0; width: 100%; padding: 16px; background: #fff; }
  .receipt .badge { border: 1px solid #999 !important; background: #fff !important; }
  .modal-bg { background: #fff !important; backdrop-filter: none !important; }
  .no-print { display: none !important; }
}

@media (max-width: 760px) {
  .stage { padding: 8px; gap: 6px; } .stage-grid { gap: 5px; }
  .stage-grid .tile { width: 48px; height: 56px; } .stage-grid .tile .gem { width: 24px; height: 24px; top: 6px; } .stage-grid .tile .t { font-size: 9px; }
  .stage-grid .res { min-height: 70px; padding: 18px 3px 4px; } .stage-grid .res-name { font-size: 10px; -webkit-line-clamp: 2; } .stage-grid .res-meta { display: none; } .stage-grid .res-tier { font-size: 9px; padding: 0 4px; left: 4px; top: 4px; }
  .mult-bar { width: 100%; flex-wrap: nowrap; gap: 2px; } .mult { flex: 1 1 0; min-width: 0; padding: 8px 0; font-size: 13px; } .open-btn { font-size: 17px; }
  .announce .wrap { height: 34px; } .announce { font-size: 13px; }
}

/* toggle switch (shared by storefront + admin) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 40px; height: 22px; border-radius: 999px; background: var(--line2); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { left: 21px; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.fast-sw { color: var(--text); white-space: nowrap; }

/* ================= v3: themes, brand lockup, images, giveaways, leaderboard, chat ================= */
/* --- header lockup: wordmark artwork per theme --- */
.brand-word { height: 34px; width: auto; max-width: none; }
.word-light { display: none; }
:root[data-theme="light"] .word-dark { display: none; }
:root[data-theme="light"] .word-light { display: block; }
:root[data-theme="light"] .topbar { background: color-mix(in srgb, var(--bg2) 88%, transparent); box-shadow: 0 1px 0 var(--line), 0 6px 20px -18px rgba(15, 27, 20, .5); }
#themeSlot { margin-left: auto; display: flex; }
#themeSlot + .top-actions { margin-left: 0; }

/* --- 🌙 / ☀️ switch --- */
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; flex: none; }
.theme-toggle span { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 999px; font-size: 15px; line-height: 1; opacity: .5; filter: grayscale(.6); transition: opacity .2s, background .2s; }
.theme-toggle span.on { opacity: 1; filter: none; background: color-mix(in srgb, var(--primary) 22%, var(--card2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent); }
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* --- light mode: clean, sharp cards (dark mode keeps the glow) --- */
:root[data-theme="light"] body { background-image: none; }
:root[data-theme="light"] body::before { opacity: .55; }
:root[data-theme="light"] .card { background: var(--card); }
:root[data-theme="light"] .game, :root[data-theme="light"] .box-card, :root[data-theme="light"] .quick a, :root[data-theme="light"] .stat, :root[data-theme="light"] .gv-card { box-shadow: var(--shadow); }
:root[data-theme="light"] .soldout-veil { background: rgba(15, 27, 20, .62); }
:root[data-theme="light"] .ribbon.alt { background: rgba(15, 27, 20, .72); }

/* --- fixed picture frames (object-fit) — no upload can stretch a layout --- */
.pack-img { display: block; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 11px; overflow: hidden; background: var(--inset); border: 1px solid var(--line); }
.pack-img img { width: 100%; height: 100%; object-fit: contain; }
.tile .tile-img { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--inset); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 70%, transparent), 0 0 18px -4px var(--tc); }
.tile-img img, .res-img img, .pz-img img { width: 100%; height: 100%; object-fit: cover; }
.stage-rows .tile .tile-img { top: 10px; width: 46px; height: 46px; border-radius: 10px; }
.stage-grid .tile .tile-img { top: 7px; width: 32px; height: 32px; border-radius: 7px; }
.res .res-img { position: relative; flex: none; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 12px; overflow: hidden; background: var(--inset); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 75%, transparent), 0 0 16px -2px var(--tc); }
.stage-single .res .res-img { width: 84px; height: 84px; border-radius: 16px; }
.stage-rows .res .res-img { width: 58px; height: 58px; margin: 0; }
.stage-grid .res .res-img { width: 30px; height: 30px; border-radius: 7px; }

/* --- 💰 sell-this-round bar (right under the results) --- */

/* --- home: giveaways + leaderboard side by side --- */
.home-duo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-duo.single { grid-template-columns: minmax(0, 1fr); }

/* --- 🎁 giveaways --- */
.gv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.gv-grid.home { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 0; }
.gv-grid > .empty, .gv-grid > .skeleton { grid-column: 1 / -1; }
.gv-card { display: flex; flex-direction: column; min-width: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform .2s, border-color .2s, box-shadow .2s; }
.gv-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.gv-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 62%), linear-gradient(160deg, var(--card2), var(--stage-b)); }
.gv-card.compact .gv-art { aspect-ratio: 2 / 1; }
.gv-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px 12px 10px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.gv-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; }
.gv-ph span { filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--primary) 60%, transparent)); animation: float 3.5s ease-in-out infinite; }
.gv-kind, .gv-count { position: absolute; top: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(5, 10, 7, .62); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); }
.gv-kind { left: 10px; } .gv-count { right: 10px; }
.gv-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.gv-body h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.gv-body > p { margin: 0; }
.gv-prize { font-weight: 800; color: var(--primary); }
.gv-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.gv-meta b { color: var(--text); }
.gv-cond { font-size: 13px; padding: 8px 10px; border-radius: 10px; color: var(--text); background: var(--bg2); border: 1px dashed var(--line2); }
.gv-cond.free { color: var(--ok-fg); background: var(--ok-bg); border: 1px solid var(--ok-bd); }
.gv-progress { padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.gv-progress .bar { height: 8px; margin: 6px 0 5px; border-radius: 999px; overflow: hidden; background: var(--inset); border: 1px solid var(--line); }
.gv-progress .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .5s ease; }
.gv-action { margin-top: auto; }
.gv-action .btn { white-space: normal; }
.gv-card.phase-upcoming .gv-art { filter: saturate(.75); }
.cd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.cd small { color: var(--muted); font-weight: 700; font-size: 12px; }
.cd-units { display: flex; gap: 5px; }
.cd-units span { min-width: 44px; padding: 3px 6px; text-align: center; border-radius: 9px; background: var(--card2); border: 1px solid var(--line2); }
.cd-units b { display: block; font-size: 18px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.cd-units i { display: block; font-style: normal; font-size: 10px; color: var(--muted); }
.gv-card.compact .cd-units span { min-width: 38px; } .gv-card.compact .cd-units b { font-size: 16px; }
.cd.zero { opacity: .6; }
.gv-results { display: grid; gap: 12px; }
.gv-result { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.winner { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--ssr) 14%, var(--card2)); border: 1px solid color-mix(in srgb, var(--ssr) 45%, transparent); }

/* --- 🏆 monthly leaderboard --- */
.lb { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.lb li.top { border-color: color-mix(in srgb, var(--ssr) 45%, var(--line)); background: color-mix(in srgb, var(--ssr) 8%, var(--bg2)); }
.lb li.me { box-shadow: inset 3px 0 0 var(--primary); }
.lb .rk { flex: none; width: 30px; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb li.top .rk { font-size: 20px; }
.lb .nm { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .amt { font-variant-numeric: tabular-nums; }

/* --- 💬 support chat (bubbles are shared with the admin console) --- */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 14.5px; color: var(--on-primary); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); box-shadow: 0 12px 30px -10px var(--primary), var(--shadow); transition: transform .15s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab span { font-size: 20px; line-height: 1; }
.chat-dot { position: absolute; top: 3px; right: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 95; width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100vh - 96px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); animation: rise .25s; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; color: var(--on-primary); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); }
.chat-head .tiny { opacity: .9; }
.chat-head .btn { color: inherit; border-color: transparent; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg2); }
.chat-login { margin: auto; display: grid; justify-items: center; gap: 6px; padding: 20px; text-align: center; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; }
.msg.me .bubble { border-radius: 16px 16px 5px 16px; background: color-mix(in srgb, var(--primary) 16%, var(--card)); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.msg.system .bubble, .msg.auto .bubble { background: color-mix(in srgb, var(--accent) 9%, var(--card)); border-style: dashed; }
.msg.preview { opacity: .85; }
.msg .txt { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.msg .meta { margin-top: 3px; font-size: 11px; color: var(--muted); }
.msg .rd { white-space: nowrap; }
.chat-img { display: block; margin: 2px 0 4px; }
.chat-img img { width: auto; height: auto; max-width: min(220px, 100%); max-height: 220px; object-fit: contain; border-radius: 10px; background: var(--inset); }
.ref-chip { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--inset); border: 1px solid var(--line2); }
.ref-chip a { text-decoration: underline; }
.chat-refs { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; overflow-x: auto; background: var(--card); }
.chat-refs:empty { display: none; }
.chat-refs .chip { flex: none; padding: 4px 10px; font-size: 12px; }
.chat-refs > span { flex: none; white-space: nowrap; }
.chat-attach { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; background: var(--card); }
.chat-attach img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-compose textarea.input { min-height: 40px; max-height: 120px; padding: 9px 12px; resize: none; font-family: inherit; font-size: 14px; }
.chat-clip { flex: none; padding: 8px 10px; }
body:has(#chatFab:not(.hidden)) .toasts { bottom: 86px; }
body:has(#chatPanel:not(.hidden)) .toasts { right: auto; left: 16px; } /* never on top of the open chat */

@media (max-width: 1100px) { .nav a { padding: 8px 8px; font-size: 13.5px; } }
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .burger { display: grid; place-items: center; }
  .home-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .brand-word { height: 28px; }
  .detail-head .cover { width: 112px; height: 70px; border-radius: 14px; }
  .stage-grid .tile .tile-img { width: 26px; height: 26px; top: 6px; }
  .stage-grid .res .res-img { width: 24px; height: 24px; }
  .gv-grid { grid-template-columns: minmax(0, 1fr); }
}
.nav-admin { display: none; }
@media (max-width: 560px) {
  .chat-fab { padding: 14px; } .chat-fab b { display: none; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  /* phone header: logo · one-tap theme icon · balance · avatar · ☰ (everything else lives in the menu) */
  .topbar .wrap { gap: 8px; }
  .top-actions { gap: 6px; }
  .theme-toggle { padding: 2px; }
  .theme-toggle span { width: 30px; height: 30px; font-size: 15px; }
  .theme-toggle span:not(.on) { display: none; }
  .theme-toggle span.on { background: transparent; box-shadow: none; }
  .balance-chip { gap: 6px; padding: 4px 4px 4px 10px; font-size: 13.5px; }
  .balance-chip .plus { width: 26px; height: 26px; }
  .top-admin, .top-register { display: none; }
  .nav-admin { display: block; }
  .burger { width: 38px; height: 38px; flex: none; }
}
@media (max-width: 400px) { .brand-word { height: 24px; } .avatar { width: 32px; height: 32px; } }

/* ================= v4: shared by storefront + admin (moved from admin.css) ================= */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile-stat { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.tile-stat small { color: var(--muted); font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.tile-stat b { display: block; font-size: 26px; margin-top: 4px; line-height: 1.2; }
.tile-stat .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card.soft { background: var(--bg2); box-shadow: none; }
.month-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.month-nav select.input { width: auto; min-width: 200px; padding: 6px 10px; font-size: 13.5px; border-radius: 10px; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend b { color: var(--text); font-weight: 700; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid line { stroke: var(--grid-line); stroke-width: 1; }
.chart-svg .axis text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-svg .base { stroke: var(--axis-line); }
.chart-svg .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .end-label { fill: var(--text); font-size: 11.5px; font-weight: 700; }
.chart-svg .cross { stroke: var(--cross-line); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; pointer-events: none; z-index: 4; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: var(--tip-bg); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; }
.chart-tip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; } .chart-tip .r span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.chart-tip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px var(--tip-bg); }
@media (max-width: 560px) { .month-nav select.input { min-width: 0; flex: 1; } }

/* ================= v4: OK Point · Point Shop · gacha prize cards · avatars · partner · Google ================= */
:root { --pt: #34d399; --pt-fg: #6ee7b7; --pt-bg: color-mix(in srgb, #10b981 13%, var(--bg2)); --pt-bd: color-mix(in srgb, #10b981 45%, transparent); --pt-glow: color-mix(in srgb, #10b981 55%, transparent); }
:root[data-theme="light"] { --pt: #059669; --pt-fg: #047857; --pt-bg: #ecfdf5; --pt-bd: #86d9b8; --pt-glow: color-mix(in srgb, #10b981 35%, transparent); }
.ok-coin { flex: none; display: inline-block; vertical-align: middle; filter: drop-shadow(0 0 6px var(--pt-glow)); }
.btn-point { background: linear-gradient(135deg, #34d399, #059669); color: #03140d; border-color: transparent; box-shadow: 0 8px 22px -12px #10b981; }
.btn-point:hover { box-shadow: 0 10px 26px -10px #10b981; }
.btn-point:disabled { background: var(--card2); color: var(--muted); border-color: var(--line2); box-shadow: none; }
.nav a { white-space: nowrap; }
.nav a.nav-pt { color: var(--pt-fg); }
/* 7 menu items + the credit/OK Point chip: switch to the ☰ menu a little earlier than before */
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .burger { display: grid; place-items: center; }
}
.nav a.nav-pt.active, .nav a.nav-pt:hover { color: var(--pt-fg); background: var(--pt-bg); }

/* header: credit + OK Point chip and its popover */
.bal-wrap { position: relative; }
.balance-chip { padding: 4px; gap: 6px; }
.bal-btn { display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px 2px 10px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.bal-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-mini { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 999px; background: var(--pt-bg); border: 1px solid var(--pt-bd); color: var(--pt-fg); font-size: 12.5px; font-weight: 800; }
.bal-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: min(350px, calc(100vw - 24px)); padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); display: none; }
.bal-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.bal-wrap.open .bal-pop { display: block; animation: rise .18s; }
@media (hover: hover) { .bal-wrap:hover .bal-pop { display: block; } }
.bp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.bp-row b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.bp-pts { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--pt-bg); border: 1px solid var(--pt-bd); }
.bp-line { font-weight: 800; color: var(--pt-fg); font-variant-numeric: tabular-nums; }
.bp-acts { display: flex; gap: 8px; margin-top: 12px; } .bp-acts .btn { flex: 1; padding: 8px 10px; }
.avatar { overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .pt-mini { padding: 1px; } .pt-mini #ptTxt { display: none; }
  .bal-btn { padding-left: 6px; gap: 6px; }
  .bal-pop { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; }
}

/* welcome popup: hide for 24 hours */
.check-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.check-line input { width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.popup-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 400px) { .popup-acts { grid-template-columns: 1fr; } }

/* home: bigger game / box pictures, point shop block, no half-empty giveaway row */
.games { grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); gap: 18px; }
.game .cover { aspect-ratio: 4 / 3; }
.game .meta b { font-size: 15px; }
.boxes { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.box-art { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .games { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } }
.h-sub { font-size: 14px; font-weight: 600; color: var(--muted); }
.home-duo.single .gv-grid.home { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.home-duo.single .lb { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 14px; }
.gv-grid.home > .gv-card:only-child { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.gv-grid.home > .gv-card:only-child .gv-art { aspect-ratio: auto; height: 100%; min-height: 230px; }
@media (max-width: 760px) {
  .home-duo.single .lb { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .gv-grid.home > .gv-card:only-child { display: flex; }
  .gv-grid.home > .gv-card:only-child .gv-art { aspect-ratio: 2 / 1; height: auto; min-height: 0; }
}

/* 🟢 point shop */
.pt-strip { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--pt-bg); border: 1px solid var(--pt-bd); }
.pt-strip b { color: var(--pt-fg); font-size: 18px; font-variant-numeric: tabular-nums; }
.pt-strip .btn { margin-left: auto; }
.pt-strip.big { padding: 16px 18px; } .pt-strip .pt-big { font-size: 30px; line-height: 1.1; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pt-grid > .empty, .pt-grid > .skeleton { grid-column: 1 / -1; }
.pt-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform .2s, border-color .2s, box-shadow .2s; }
.pt-card:hover { transform: translateY(-3px); border-color: var(--pt-bd); box-shadow: 0 18px 44px -22px #10b981; }
.pt-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card2); }
.pt-art img { width: 100%; height: 100%; object-fit: cover; }
.pt-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.pt-body h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.pt-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-price { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.pt-price b { font-size: 23px; color: var(--pt-fg); font-variant-numeric: tabular-nums; }
.pt-price span { color: var(--muted); font-size: 13px; font-weight: 700; }
.pt-body .btn { margin-top: 8px; white-space: normal; }
.pt-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; padding: 20px 24px; border-radius: 22px; border: 1px solid var(--pt-bd); background: radial-gradient(circle at 7% 50%, color-mix(in srgb, #10b981 24%, transparent), transparent 40%), linear-gradient(135deg, color-mix(in srgb, #10b981 10%, var(--card)), var(--card)); }
.pt-hero .grow { flex: 1 1 300px; min-width: 0; }
.pt-hero-coin { width: 120px; height: 120px; flex: none; filter: drop-shadow(0 0 22px var(--pt-glow)); animation: coinfloat 3.4s ease-in-out infinite; }
@keyframes coinfloat { 50% { transform: translateY(-6px) rotate(-5deg); } }
.pt-balance { display: grid; gap: 2px; justify-items: end; padding: 12px 18px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.pt-balance small { color: var(--muted); font-weight: 600; }
.pt-balance b { font-size: 32px; line-height: 1.15; color: var(--pt-fg); font-variant-numeric: tabular-nums; }
.pt-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.pt-rules span { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 560px) { .pt-art { aspect-ratio: 16 / 9; } .pt-hero { padding: 16px; gap: 12px; } .pt-hero-coin { width: 76px; height: 76px; } .pt-balance { justify-items: start; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .pt-hero-coin { animation: none; } }

/* 🎲 gacha: full-width stage, bigger reel pictures, prize cards under it */
.gacha-main { margin-top: 20px; }
.stage-single .tile { width: 176px; height: 206px; } .stage-single .tile .tile-img { top: 18px; width: 104px; height: 104px; border-radius: 16px; } .stage-single .tile .gem { top: 28px; width: 82px; height: 82px; } .stage-single .tile .n { font-size: 14px; }
.stage-rows .tile { width: 132px; height: 150px; } .stage-rows .tile .tile-img { top: 12px; width: 76px; height: 76px; border-radius: 12px; } .stage-rows .tile .gem { top: 18px; width: 58px; height: 58px; }
.stage-grid .tile { width: 92px; height: 104px; } .stage-grid .tile .tile-img { top: 8px; width: 60px; height: 60px; border-radius: 10px; } .stage-grid .tile .gem { top: 12px; width: 46px; height: 46px; } .stage-grid .tile .t { font-size: 11px; }
.stage-single .res { min-height: 236px; } .stage-single .res .res-img { width: 132px; height: 132px; border-radius: 20px; } .stage-single .res .gem { width: 100px; height: 100px; }
.stage-rows .res { min-height: 150px; } .stage-rows .res .res-img { width: 92px; height: 92px; border-radius: 14px; } .stage-rows .res .gem { width: 64px; height: 64px; } .stage-rows .res-name { font-size: 15px; }
.stage-grid .res { min-height: 140px; } .stage-grid .res .res-img { width: 64px; height: 64px; border-radius: 12px; } .stage-grid .res .gem { width: 44px; height: 44px; } .stage-grid .res-name { font-size: 12.5px; }
.tile .tile-img.coin, .res .res-img.coin { background: transparent; box-shadow: none; }
.tile-img.coin img, .res-img.coin img, .pz-img.coin img { object-fit: contain; filter: drop-shadow(0 0 10px var(--pt-glow)); }
.res.is-pts .res-meta { color: var(--pt-fg); font-weight: 700; }
@media (max-width: 760px) {
  .stage-single .tile { width: 132px; height: 162px; } .stage-single .tile .tile-img { width: 80px; height: 80px; top: 14px; }
  .stage-rows .tile { width: 100px; height: 118px; } .stage-rows .tile .tile-img { width: 58px; height: 58px; top: 10px; } .stage-rows .tile .gem { width: 44px; height: 44px; }
  .stage-grid .tile { width: 56px; height: 66px; padding: 5px; } .stage-grid .tile .tile-img { width: 38px; height: 38px; top: 6px; border-radius: 8px; } .stage-grid .tile .gem { width: 30px; height: 30px; top: 8px; } .stage-grid .tile .t { font-size: 9px; }
  .stage-single .res { min-height: 196px; } .stage-single .res .res-img { width: 104px; height: 104px; }
  .stage-rows .res { min-height: 112px; padding: 10px 12px; } .stage-rows .res .res-img { width: 70px; height: 70px; }
  .stage-grid .res { min-height: 96px; padding: 18px 3px 4px; } .stage-grid .res .res-img { width: 40px; height: 40px; border-radius: 8px; } .stage-grid .res .gem { width: 30px; height: 30px; }
}
.pts-earned { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--pt-bg); border: 1px solid var(--pt-bd); }
.pts-earned b { color: var(--pt-fg); font-size: 16px; } .pts-earned .btn { margin-left: auto; }
.pts-earned > div { flex: 1 1 180px; min-width: 0; }
.prize-section { margin-top: 30px; }
.prize-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.prize-grid > .empty { grid-column: 1 / -1; }
.pz-card { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid color-mix(in srgb, var(--tc) 40%, var(--line)); transition: transform .2s, box-shadow .2s; }
.pz-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -22px var(--tc); }
.pz-card.tier-SSR { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ssr) 35%, transparent), 0 14px 40px -24px var(--ssr); }
.pz-card.out { opacity: .5; filter: grayscale(.6); }
.pz-art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%; padding: 0; border: 0; cursor: zoom-in; color: inherit; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tc) 30%, transparent), transparent 66%), linear-gradient(180deg, var(--tile-a), var(--tile-b)); }
.pz-art .pz-img { position: absolute; inset: 0; } .pz-art .pz-img img { width: 100%; height: 100%; object-fit: cover; }
.pz-art .pz-img.coin { inset: 16%; }
.pz-art .gem { width: 54%; height: 54%; filter: drop-shadow(0 0 16px var(--tc)); }
.pz-art:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.pz-tier { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 2px 10px; border-radius: 8px; font-size: 12px; font-weight: 900; letter-spacing: .5px; color: var(--on-tier); background: var(--tc); box-shadow: 0 4px 12px -4px var(--tc); }
.pz-main { position: absolute; top: 8px; right: 10px; z-index: 2; font-size: 18px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.pz-out { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 6px; text-align: center; font-size: 12px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .66); }
.pz-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px; }
.pz-name { font-size: 14.5px; line-height: 1.35; }
.pz-det { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pz-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.pz-rate { font-weight: 900; font-size: 15px; color: var(--text-strong); font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: 8px; background: color-mix(in srgb, var(--tc) 18%, var(--bg2)); }
@media (max-width: 1100px) { .prize-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .prize-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pz-body { padding: 10px; } .pz-name { font-size: 13.5px; } }
.lightbox .lb-art { position: relative; display: grid; place-items: center; width: min(100%, 520px); aspect-ratio: 1 / 1; margin: 0 auto 16px; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tc) 32%, transparent), transparent 66%), linear-gradient(180deg, var(--tile-a), var(--tile-b)); border: 1px solid color-mix(in srgb, var(--tc) 45%, var(--line)); }
.lightbox .lb-art img { width: 100%; height: 100%; object-fit: contain; }
.lightbox .lb-art .gem { width: 50%; height: 50%; filter: drop-shadow(0 0 20px var(--tc)); }

/* 📦 my vault: search + filters · profile */
.me-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.me-av { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--text-strong); background: color-mix(in srgb, var(--primary) 22%, var(--card2)); border: 2px solid var(--line2); }
.me-av img { width: 100%; height: 100%; object-fit: cover; }
.tiny-badge { margin-top: 4px; font-size: 11px; }
.stat-pts { display: block; border-color: var(--pt-bd); background: linear-gradient(180deg, var(--pt-bg), var(--card)); }
.stat-pts b { display: flex; align-items: center; gap: 6px; color: var(--pt-fg); font-variant-numeric: tabular-nums; }
.vault-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.vault-tools select.input { width: auto; min-width: 170px; max-width: 100%; }
.vault-tools .chip[data-tier]:not([data-tier=""]) { color: var(--tc); font-weight: 800; }
.ib-ic { flex: none; font-size: 28px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.av-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.av-big { width: 112px; height: 112px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 44px; font-weight: 800; text-transform: uppercase; color: var(--text-strong); background: color-mix(in srgb, var(--primary) 22%, var(--card2)); border: 3px solid var(--line2); }
.av-big img { width: 100%; height: 100%; object-fit: cover; } .av-big.busy { opacity: .5; }
.note.bad-note { background: var(--bad-bg); border-color: var(--bad-bd); color: var(--bad-fg); font-weight: 700; line-height: 1.5; }

/* 🤝 partner dashboard */
.partner-code .code-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.code-row .input { flex: 1 1 220px; max-width: 360px; font-size: 18px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.partner-kpis .tile-stat b { font-size: 24px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .partner-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .partner-kpis .tile-stat { padding: 12px 14px; } .partner-kpis .tile-stat b { font-size: 20px; } .partner-kpis .tile-stat:first-child { grid-column: 1 / -1; } }
.nowrap { white-space: nowrap; }
.chart-svg .bars .bar { fill: var(--series-1); }
.chart-svg .hits rect { cursor: pointer; } .chart-svg .hits rect.on { fill: color-mix(in srgb, var(--series-1) 12%, transparent); }

/* Google sign-in */
.google-btn { gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #c8ccd0; font-weight: 700; white-space: normal; }
.google-btn:hover { background: #f3f6f4; }
.google-btn small { font-size: 12.5px; font-weight: 600; color: #5f6368; }
.gb-txt { text-align: left; line-height: 1.3; } .gb-txt small { display: block; }
.g-ic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 14px; color: #3c4043; background: #fff; border: 1.5px solid #c4c7c5; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.g-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 40px; }
.g-head .g-ic { width: 38px; height: 38px; font-size: 18px; }
.g-list { display: grid; gap: 8px; }
.g-acc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.g-acc:hover, .g-acc:focus-visible { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--bg2)); }
.g-acc img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.g-acc span { display: grid; min-width: 0; } .g-acc small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.g-other { display: flex; gap: 8px; margin-top: 10px; }

/* 👥 giveaway participants board: more entries → bigger picture + gold aura */
.gv-board-btn { font-size: 13px; white-space: normal; }
.board-legend { margin: 8px 0 14px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; align-items: end; }
.bd-item { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 12px 8px 10px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); text-align: center; }
.bd-av { --s: 56px; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: calc(var(--s) * .4); font-weight: 800; text-transform: uppercase; color: var(--text-strong); background: color-mix(in srgb, var(--primary) 20%, var(--card2)); border: 2px solid var(--line2); }
.bd-av img { width: 100%; height: 100%; object-fit: cover; } .bd-av i { font-style: normal; }
.bd-item.md .bd-av { --s: 68px; border-color: #cbd5e1; box-shadow: 0 0 0 3px color-mix(in srgb, #cbd5e1 30%, transparent); }
.bd-item.lg .bd-av { --s: 84px; border: 3px solid var(--ssr); box-shadow: 0 0 18px -2px color-mix(in srgb, var(--ssr) 70%, transparent); }
.bd-item.xl { grid-column: span 2; padding-top: 16px; border-color: color-mix(in srgb, var(--ssr) 45%, var(--line)); background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--ssr) 22%, transparent), transparent 62%), var(--bg2); }
.bd-item.xl .bd-av { --s: 104px; border: 3px solid var(--ssr); animation: aura 2.2s ease-in-out infinite; }
@keyframes aura { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ssr) 30%, transparent), 0 0 26px 4px color-mix(in srgb, var(--ssr) 55%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ssr) 18%, transparent), 0 0 42px 10px color-mix(in srgb, var(--ssr) 70%, transparent); } }
@media (prefers-reduced-motion: reduce) { .bd-item.xl .bd-av { animation: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ssr) 25%, transparent), 0 0 30px 6px color-mix(in srgb, var(--ssr) 60%, transparent); } }
.bd-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.bd-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-item.lg .bd-meta, .bd-item.xl .bd-meta { color: var(--warn-fg); font-weight: 700; }
.bd-item.me { box-shadow: inset 0 0 0 2px var(--primary); }
.bd-won { font-size: 11.5px; font-weight: 800; color: var(--ok-fg); }

/* 💬 chat: compact round icon with an unread badge */
.chat-fab { width: 60px; height: 60px; padding: 0; justify-content: center; border-radius: 50%; }
.chat-fab .cf-ic { width: 30px; height: 30px; fill: currentColor; }
.chat-fab .cf-ic circle { fill: var(--primary); }
.chat-dot { top: -3px; right: -3px; min-width: 22px; width: auto; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; font-size: 11.5px; font-weight: 900; font-style: normal; color: #fff; box-shadow: 0 0 0 3px var(--bg); }
.chat-dot:empty { min-width: 14px; width: 14px; height: 14px; padding: 0; }
.chat-fab.has-new { animation: fabpulse 1.8s ease-in-out infinite; }
@keyframes fabpulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 16%, transparent), 0 12px 30px -10px var(--primary); } }
@media (prefers-reduced-motion: reduce) { .chat-fab.has-new { animation: none; } }
@media (max-width: 560px) { .chat-fab { width: 54px; height: 54px; padding: 0; } }
.chat-attach img { width: 72px; height: 72px; }

/* ================= v4.1 ================= */
/* 🧭 navbar: a glowing emerald frame on the item you are on / pointing at, crisp text in both themes.
   Every item keeps a transparent 1.5px border so nothing moves when the frame appears, and an invisible bold copy of its
   label (data-label, set by store.js) reserves the 700-weight width — no jitter when the text turns bold. */
.nav a { display: inline-flex; flex-direction: column; align-items: center; border: 1.5px solid transparent; transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.nav a::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 700; pointer-events: none; user-select: none; speak: never; }
.nav a:hover, .nav a.active, .nav a.nav-pt:hover, .nav a.nav-pt.active {
  border: 1.5px solid #10B981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.08));
  font-weight: 700;
}
/* dark mode (default): bright mint-white for the page you are on, emerald for the one under the pointer */
.nav a.active, .nav a.nav-pt.active { color: #ECFDF5; }
.nav a:hover:not(.active), .nav a.nav-pt:hover:not(.active) { color: #34D399; }
/* light mode: deep green on a light green ground */
:root[data-theme="light"] .nav a:hover, :root[data-theme="light"] .nav a.active,
:root[data-theme="light"] .nav a.nav-pt:hover, :root[data-theme="light"] .nav a.nav-pt.active {
  color: #065F46; background: linear-gradient(180deg, #ECFDF5, #D1FAE5);
}
.nav a:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; }
:root[data-theme="light"] .nav a:focus-visible { outline-color: #047857; }
/* the back-office link stays a phone-menu-only item */
.nav a.nav-admin { display: none; }
@media (max-width: 560px) { .nav a.nav-admin { display: inline-flex; } }
@media (max-width: 1080px) { .nav a { align-items: flex-start; } .nav a + a { margin-top: 2px; } }
@media (prefers-reduced-motion: reduce) { .nav a { transition: none; } }

/* 🤝 partner code: one self-change */
.code-warn { margin: 8px 0 6px; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--note-fg); background: color-mix(in srgb, var(--warn) 10%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.code-lock { margin: 8px 0 6px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--text); background: var(--card2); border: 1px dashed var(--line2); }
.partner-code input[readonly] { opacity: 1; cursor: not-allowed; background: var(--card2); color: var(--text-strong); border-style: dashed; }
.code-confirm { margin: 0; line-height: 1.7; color: var(--text); }
.code-confirm b { font-size: 1.08em; color: var(--text-strong); }

/* 💬 chat: a picture removed by the 30-day cleanup */
.img-gone { padding: 8px 10px; margin-bottom: 4px; border-radius: 10px; font-size: 12.5px; color: var(--muted); background: color-mix(in srgb, var(--card2) 70%, transparent); border: 1px dashed var(--line2); }

/* 🟢 v4.2 point shop: category tabs, search and sort */
.chip .cnt { margin-left: 4px; font-size: 11.5px; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.pt-tools { margin: 0 0 12px; }
.pt-sort { display: flex; align-items: center; gap: 8px; flex: none; }
.pt-sort .input { width: auto; min-width: 170px; padding-top: 9px; padding-bottom: 9px; }
.pt-tabs { margin: 0 0 14px; }
.pt-tabs[hidden] { display: none; }
.pt-count { margin: -4px 2px 10px; }
.pt-count:empty { display: none; }
@media (max-width: 560px) { .pt-sort { width: 100%; } .pt-sort .input { flex: 1; min-width: 0; } .pt-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; } .pt-tabs .chip { flex: none; } }
/* action cells written as <td class="row">: keep them real table cells so the row line, hover and centring line up */
td.row { display: table-cell; white-space: nowrap; }
td.row > * + * { margin-left: 6px; }

/* ===== v4.4 rarity: Secret (ruby crimson glow) and UR (rainbow holographic) above SSR ===== */
:root, :root[data-theme="dark"] { --secret: #ff1e56; --secret-2: #e11d48; --ur: #22d3ee; }
:root[data-theme="light"] { --secret: #e11d48; --secret-2: #be123c; --ur: #0891b2; }
:root { --ur-grad: linear-gradient(115deg, #ff4d6d, #ff9f43, #ffe66d, #4ade80, #22d3ee, #818cf8, #e879f9, #ff4d6d); --secret-grad: linear-gradient(135deg, #ff1e56, #e11d48 55%, #9f1239); }
.tier-SECRET { --tc: var(--secret); } .tier-UR { --tc: var(--ur); }
@keyframes holo { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes rubyglow { from { box-shadow: 0 0 0 1px var(--secret), 0 0 20px -4px var(--secret); } to { box-shadow: 0 0 0 2px var(--secret), 0 0 46px 2px var(--secret); } }
/* tier label chips on cards / reels / results */
.tier-SECRET .pz-tier, .tier-SECRET .res-tier, .lightbox.tier-SECRET .pz-tier { color: #fff; background: var(--secret-grad); box-shadow: 0 0 16px -2px var(--secret); }
.tier-UR .pz-tier, .tier-UR .res-tier, .lightbox.tier-UR .pz-tier { color: #0b0f0c; background: var(--ur-grad); background-size: 300% 100%; animation: holo 6s linear infinite; box-shadow: 0 0 16px -4px #818cf8; }
.tile.tier-SECRET .t { color: var(--secret); text-shadow: 0 0 10px color-mix(in srgb, var(--secret) 60%, transparent); }
.tile.tier-UR .t { color: transparent; background: var(--ur-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: holo 6s linear infinite; }
/* frames: reel tiles, result cards, prize cards, the big picture */
.tile.tier-SECRET { border-color: var(--secret); box-shadow: 0 0 0 1px var(--secret), inset 0 0 22px -8px var(--secret), 0 0 20px -6px var(--secret); }
.tile.tier-UR { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--ur) 22%, var(--tile-a)), var(--tile-b)) padding-box, var(--ur-grad) border-box; background-size: 100% 100%, 300% 100%; animation: holo 6s linear infinite; box-shadow: 0 0 20px -8px #818cf8; }
.tile.win.tier-UR { animation: winpulse 1s ease-in-out 2, holo 6s linear infinite; }
.res.tier-SECRET { border-color: var(--secret); animation: pop .45s cubic-bezier(.2,1.4,.4,1) both, rubyglow 1.3s ease-in-out .5s infinite alternate; }
.res.tier-UR { border: 2px solid transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--ur) 22%, var(--tile-a)), var(--tile-b)) padding-box, var(--ur-grad) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 0 34px -8px #818cf8; animation: pop .45s cubic-bezier(.2,1.4,.4,1) both, holo 5s linear infinite; }
.pz-card.tier-SECRET { border-color: var(--secret); box-shadow: 0 0 0 1px var(--secret), 0 14px 40px -18px var(--secret); }
.pz-card.tier-UR { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--ur-grad) border-box; background-size: 100% 100%, 300% 100%; animation: holo 8s linear infinite; box-shadow: 0 14px 40px -22px #818cf8; }
.lightbox.tier-SECRET .lb-art { border-color: var(--secret); box-shadow: 0 0 0 1px var(--secret), 0 0 46px -10px var(--secret); }
.lightbox.tier-UR .lb-art { border: 2px solid transparent; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--ur) 30%, transparent), transparent 66%) padding-box, linear-gradient(180deg, var(--tile-a), var(--tile-b)) padding-box, var(--ur-grad) border-box; background-size: 100% 100%, 100% 100%, 300% 100%; animation: holo 8s linear infinite; }
.inbox-item.tier-SECRET { border-color: color-mix(in srgb, var(--secret) 50%, var(--line)); box-shadow: inset 3px 0 0 var(--secret); }
.inbox-item.tier-UR { border-color: color-mix(in srgb, #818cf8 45%, var(--line)); box-shadow: inset 3px 0 0 #818cf8; }
/* tier badges (.tb) and tier-coloured words (.tt) used in lists, feeds, history and the admin */
.tb { border-color: currentColor; background: transparent; }
.tb-SSR { color: var(--ssr); } .tb-SR { color: var(--sr); } .tb-R { color: var(--r); } .tb-SALT { color: var(--salt); }
.tb-SECRET { color: #fff; background: var(--secret-grad); border-color: transparent; box-shadow: 0 0 12px -3px var(--secret); }
.tb-UR { color: #0b0f0c; background: var(--ur-grad); background-size: 300% 100%; border-color: transparent; animation: holo 6s linear infinite; }
.tt-SSR { color: var(--ssr); } .tt-SR { color: var(--sr); } .tt-R { color: var(--r); } .tt-SALT { color: var(--salt); }
.tt-SECRET { color: var(--secret); text-shadow: 0 0 10px color-mix(in srgb, var(--secret) 45%, transparent); }
.tt-UR { color: transparent; background: var(--ur-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: holo 6s linear infinite; }
.pz-rate[title] { cursor: help; }
@media (prefers-reduced-motion: reduce) {
  .tier-UR .pz-tier, .tier-UR .res-tier, .tile.tier-UR, .tile.tier-UR .t, .res.tier-UR, .res.tier-SECRET, .pz-card.tier-UR, .lightbox.tier-UR .lb-art, .tb-UR, .tt-UR { animation: none; }
}
