/* danykha.shop — original dark gaming theme */
:root {
  --bg: #0d0f14;
  --bg-2: #141821;
  --card: #1a1f2b;
  --card-2: #212838;
  --line: #2a3243;
  --text: #e7ebf3;
  --muted: #9aa4b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --so2: #ff8a3d;      /* Standoff 2 accent */
  --rbx: #3ddc84;      /* Roblox accent */
  --pubg: #f5c542;     /* PUBG accent */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: .3px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.logo span b { color: var(--accent); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--card); text-decoration: none; }
.menu-btn {
  display: none; background: var(--card); border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.5px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700;
  background: var(--accent); color: #fff; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--card); }

/* Page hero for game pages */
.page-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-hero .tag { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 12px; line-height: 1.15; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 720px; margin: 0; }
.theme-so2 .tag { background: rgba(255, 138, 61, .15); color: var(--so2); }
.theme-rbx .tag { background: rgba(61, 220, 132, .15); color: var(--rbx); }
.theme-pubg .tag { background: rgba(245, 197, 66, .15); color: var(--pubg); }
.theme-so2 { --game: var(--so2); }
.theme-rbx { --game: var(--rbx); }
.theme-pubg { --game: var(--pubg); }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.section-title p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Game cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.game-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--text); box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--game); text-decoration: none; }
.game-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--game);
}
.game-card .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--game) 18%, transparent); color: var(--game); }
.game-card .icon svg { width: 30px; height: 30px; }
.game-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.game-card .genre { color: var(--game); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.game-card p { color: var(--muted); margin: 10px 0 16px; }
.game-card .more { font-weight: 700; color: var(--game); }

/* ---------- Tip cards ---------- */
.tip {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; border-left: 4px solid var(--game, var(--accent));
}
.tip h3 { margin: 0 0 8px; font-size: 1.08rem; display: flex; gap: 10px; align-items: baseline; }
.tip h3 .n { color: var(--game, var(--accent)); font-variant-numeric: tabular-nums; font-weight: 800; }
.tip p { margin: 0; color: var(--muted); }
.tip .label { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; }
.label.beginner { background: rgba(34, 211, 238, .14); color: var(--accent-2); }
.label.pro { background: rgba(124, 92, 255, .18); color: #a996ff; }
.label.safety { background: rgba(255, 99, 99, .15); color: #ff8080; }

/* Filter tabs */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button {
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .9rem;
}
.filters button[aria-pressed="true"] { color: #fff; background: var(--game, var(--accent)); border-color: transparent; }
.filters button[aria-pressed="true"] { color: #0d0f14; }

/* Facts table */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact .k { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; }
.fact .v { font-weight: 700; margin-top: 2px; }

/* Content blocks */
.prose { max-width: 780px; }
.prose p, .prose li { color: #cfd5e2; }
.prose h3 { margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .92rem; }

.callout {
  background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .08));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.callout h3 { margin-top: 0; }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--game, var(--accent)); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Breadcrumbs / TOC */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 6px 12px; border-radius: 8px; font-size: .9rem; }
.toc a:hover { border-color: var(--game, var(--accent)); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-grid nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-grid nav a { color: var(--muted); }
.disclaimer { font-size: .82rem; margin-top: 18px; opacity: .8; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff; border: 0; font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
