/* ============================================================
   YAKSART — shared theme (tokens + components)
   Cyberpunk CS2 network · emerald/cyan neon on green-black
   Display: Chakra Petch · Body: Manrope · Data: JetBrains Mono
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #070b09;
  --bg-2:      #0a0f0d;
  --bg-3:      #0d1411;
  --panel:     rgba(13, 21, 17, 0.72);
  --panel-2:   rgba(16, 26, 21, 0.9);
  --glass:     rgba(18, 30, 24, 0.55);

  /* ink */
  --ink:       #eafff4;
  --ink-2:     #b8d4c8;
  --muted:     rgba(180, 210, 198, 0.62);
  --faint:     rgba(180, 210, 198, 0.34);

  /* accents */
  --emerald:   #34d399;
  --emerald-d: #1c8f66;
  --cyan:      #22d3ee;
  --cyan-d:    #0e8aa3;
  --enemy:     #ff5266;
  --gold:      #f5c451;

  /* lines */
  --line:      rgba(52, 211, 153, 0.16);
  --line-2:    rgba(52, 211, 153, 0.30);
  --line-cy:   rgba(34, 211, 238, 0.28);

  /* glow */
  --glow-em:   0 0 18px rgba(52,211,153,0.45), 0 0 48px rgba(52,211,153,0.18);
  --glow-cy:   0 0 18px rgba(34,211,238,0.45), 0 0 48px rgba(34,211,238,0.18);
  --glow-soft: 0 0 0 1px var(--line), 0 18px 50px -20px rgba(0,0,0,0.8);

  /* type */
  --f-display: 'Chakra Petch', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* metrics */
  --header-h:  74px;
  --maxw:      1320px;
  --r-sm:      6px;
  --r-md:      10px;
  --r-lg:      16px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── ambient page background ───────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 60% at 50% -8%, rgba(34,211,238,0.07), transparent 60%),
    radial-gradient(80% 70% at 90% 10%, rgba(52,211,153,0.06), transparent 55%),
    var(--bg);
}
/* faint ornament lattice */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 38px, var(--emerald) 38px 39px, transparent 39px 77px),
    repeating-linear-gradient(-45deg, transparent 0 38px, var(--emerald) 38px 39px, transparent 39px 77px);
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}

/* ── layout ────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: 84px; }
.section-tight { padding-block: 48px; }
main { min-height: calc(100vh - var(--header-h)); }

/* ── type helpers ──────────────────────────────────────── */
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.01em; line-height: 0.98; text-transform: uppercase; }
.mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--cyan);
  padding-left: 0.4em; white-space: nowrap;
}
.eyebrow-em { color: var(--emerald); }
.muted { color: var(--muted); }
.h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 6vw, 88px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.96; }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); text-transform: uppercase; letter-spacing: 0.02em; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.text-em { color: var(--emerald); }
.text-cy { color: var(--cyan); }
.glow-em { text-shadow: var(--glow-em); }
.glow-cy { text-shadow: var(--glow-cy); }

/* ── ornament bits ─────────────────────────────────────── */
.rule { display: flex; align-items: center; gap: 14px; color: var(--line-cy); }
.rule::before, .rule::after { content: ''; height: 1px; flex: 1; background: linear-gradient(to right, transparent, var(--cyan-d)); }
.rule::after { background: linear-gradient(to left, transparent, var(--cyan-d)); }
.diamond { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--cyan); box-shadow: var(--glow-cy); flex: none; }

.corner-card { position: relative; }
.corner-card::before, .corner-card::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--line-2); border-style: solid; border-width: 0;
}
.corner-card::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.corner-card::after  { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 15px;
  padding: 13px 24px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; position: relative;
  transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--emerald); color: #042016; border-color: var(--emerald); box-shadow: var(--glow-em); }
.btn-primary:hover { background: #46e6ab; box-shadow: 0 0 26px rgba(52,211,153,0.6), 0 0 64px rgba(52,211,153,0.25); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(52,211,153,0.04); }
.btn-ghost:hover { border-color: var(--emerald); box-shadow: var(--glow-em); color: var(--emerald); }
.btn-cyan { border-color: var(--cyan); color: var(--cyan); background: rgba(34,211,238,0.06); }
.btn-cyan:hover { background: var(--cyan); color: #03212a; box-shadow: var(--glow-cy); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* steam mark (geometric, original) */
.steam-mark { width: 20px; height: 20px; position: relative; flex: none; }
.steam-mark i { position: absolute; border-radius: 50%; border: 2px solid currentColor; }
.steam-mark i:nth-child(1) { width: 13px; height: 13px; left: 0; bottom: 0; }
.steam-mark i:nth-child(2) { width: 8px; height: 8px; right: 0; top: 0; }
.steam-mark i:nth-child(3) { width: 3px; height: 3px; right: 2.5px; top: 2.5px; background: currentColor; border: 0; }

/* ── panels / cards ────────────────────────────────────── */
.glass {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glow-soft);
}
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 0 30px -8px rgba(52,211,153,0.4); }

/* ── chips / tabs / badges ─────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(52,211,153,0.05);
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--emerald); color: var(--emerald); }
.chip.active { background: var(--emerald); color: #042016; border-color: var(--emerald); box-shadow: var(--glow-em); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 14px; padding: 11px 20px; border-radius: var(--r-sm);
  color: var(--muted); border: 1px solid transparent; transition: all 0.2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--emerald); border-color: var(--line-2); background: rgba(52,211,153,0.06); box-shadow: inset 0 -2px 0 var(--emerald); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 4px; white-space: nowrap;
}
.badge-em { color: var(--emerald); background: rgba(52,211,153,0.12); border: 1px solid var(--line-2); }
.badge-cy { color: var(--cyan); background: rgba(34,211,238,0.12); border: 1px solid var(--line-cy); }
.badge-enemy { color: var(--enemy); background: rgba(255,82,102,0.12); border: 1px solid rgba(255,82,102,0.3); }
.badge-gold { color: var(--gold); background: rgba(245,196,81,0.12); border: 1px solid rgba(245,196,81,0.3); }

/* live dot */
.live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── progress / xp bar ─────────────────────────────────── */
.bar { height: 8px; border-radius: 999px; background: rgba(52,211,153,0.1); overflow: hidden; position: relative; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--emerald-d), var(--emerald)); box-shadow: 0 0 12px rgba(52,211,153,0.5); transition: width 1s var(--ease); }

/* ping meter */
.ping { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ping i { width: 3px; background: var(--faint); border-radius: 1px; }
.ping i:nth-child(1){height:35%} .ping i:nth-child(2){height:60%} .ping i:nth-child(3){height:85%} .ping i:nth-child(4){height:110%}
.ping.good i:nth-child(-n+4){ background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.ping.ok i:nth-child(-n+3){ background: var(--gold); }
.ping.bad i:nth-child(-n+2){ background: var(--enemy); }

/* ── inputs ────────────────────────────────────────────── */
.field {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; transition: border-color 0.2s var(--ease);
}
.field:focus-within { border-color: var(--emerald); box-shadow: var(--glow-em); }
.field input { background: none; border: none; color: var(--ink); width: 100%; font-size: 15px; outline: none; }
.field input::placeholder { color: var(--faint); }
.field svg, .field .ic { color: var(--muted); flex: none; }
select.field { color: var(--ink-2); font-size: 14px; cursor: pointer; }

/* ── header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(7,11,9,0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 2px; flex: none; }
.brand b { color: var(--ink); }
.brand .gg { color: var(--cyan); font-size: 14px; padding: 2px 6px; border: 1.5px solid var(--cyan); border-radius: 4px; margin-left: 6px; box-shadow: var(--glow-cy); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 13.5px; color: var(--muted); padding: 9px 13px; border-radius: var(--r-sm);
  transition: all 0.2s var(--ease); position: relative;
}
.nav a:hover { color: var(--ink); background: rgba(52,211,153,0.06); }
.nav a.active { color: var(--emerald); }
.nav a.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--emerald); box-shadow: var(--glow-em); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.stat-pill { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.stat-pill .coin { color: var(--gold); font-weight: 700; }
.lang-toggle { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.lang-toggle button { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 6px 10px; color: var(--muted); transition: all 0.2s var(--ease); }
.lang-toggle button.active { background: var(--emerald); color: #042016; }
.avatar { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); object-fit: cover; background: var(--bg-3); flex: none; overflow: hidden; }
.avatar:hover { border-color: var(--emerald); box-shadow: var(--glow-em); }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--enemy); color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px rgba(255,82,102,0.6); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: 0.2s; }

/* ── footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 56px 36px; margin-top: 80px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.site-footer a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.site-footer a:hover { color: var(--emerald); }
.site-footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--faint); }

/* ── modal ─────────────────────────────────────────────── */
.modal-root { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-root.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,5,4,0.78); backdrop-filter: blur(6px); animation: fade 0.25s var(--ease); }
.modal {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px #000, 0 0 60px -20px rgba(52,211,153,0.4);
  padding: 32px; animation: pop 0.3s var(--ease);
}
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.2s; }
.modal-close:hover { border-color: var(--enemy); color: var(--enemy); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

/* ── toast ─────────────────────────────────────────────── */
.toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 13px 20px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  box-shadow: 0 0 30px -8px rgba(52,211,153,0.5); font-size: 14px; font-weight: 600;
  animation: toastIn 0.35s var(--ease); backdrop-filter: blur(12px);
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } }

/* ── reveal on load ────────────────────────────────────── */
/* Self-animating: content fades in via CSS regardless of JS timing.
   The JS `.in` toggle remains a harmless enhancement. Dynamically
   inserted .reveal nodes animate the moment they are added. */
.reveal { opacity: 0; transform: translateY(22px); animation: revealIn 0.6s var(--ease) 0.05s both; }
.reveal.in { opacity: 1; transform: none; }
@keyframes revealIn { to { opacity: 1; transform: none; } }

/* ── scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(52,211,153,0.25); border-radius: 6px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: rgba(52,211,153,0.45); }

/* striped image placeholder */
.ph {
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
  background-image: repeating-linear-gradient(125deg, #0e1714 0 14px, #0b1310 14px 28px);
  color: var(--faint); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.ph::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(34,211,238,0.06), transparent 60%); }

/* utility */
.flex { display: flex; } .col { flex-direction: column; } .center { align-items: center; }
.between { justify-content: space-between; } .gap-8{gap:8px} .gap-12{gap:12px} .gap-16{gap:16px} .gap-24{gap:24px}
.grid { display: grid; }
.mono-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav, .header-right .stat-pill { display: none; }
  .burger { display: flex; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .section { padding-block: 56px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .modal { padding: 22px; }
}

/* mobile slide-nav */
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(7,11,9,0.97); backdrop-filter: blur(14px); padding: 24px; display: none; flex-direction: column; gap: 6px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 18px; color: var(--ink-2); padding: 14px 12px; border-bottom: 1px solid var(--line); }
.mobile-nav a.active { color: var(--emerald); }
