﻿:root {
  --bg-0: #0f0b0a;
  --bg-1: #1b1112;
  --bg-2: #2a1418;
  --bg-3: #3a1b20;
  --ink: #f5e7d5;
  --ink-soft: #d7c3ab;
  --ink-muted: #b59c86;
  --gold: #f0c76b;
  --gold-soft: #e3b45b;
  --wine: #6a1823;
  --wine-2: #8b2230;
  --earth: #3a241f;
  --card: rgba(26, 16, 18, 0.92);
  --card-2: rgba(38, 22, 24, 0.94);
  --line: rgba(240, 199, 107, 0.35);
  --shadow: 0 22px 48px rgba(9, 6, 6, 0.55);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  background: radial-gradient(1400px 700px at 10% 0%, #2d181d 0%, #130b0b 55%, #0b0808 100%);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  hyphens: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 90% 15%, rgba(240, 199, 107, 0.18), transparent 62%),
    radial-gradient(700px 480px at 15% 80%, rgba(128, 26, 36, 0.35), transparent 70%),
    repeating-linear-gradient(120deg, rgba(255, 236, 200, 0.04) 0, rgba(255, 236, 200, 0.04) 2px, transparent 2px, transparent 36px);
  animation: glowShift 16s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  background: url("../img/background.jpg") center / cover no-repeat;
  mix-blend-mode: soft-light;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.dnx-shell { width: min(1240px, 92vw); margin: 0 auto; }

.dnx-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 199, 107, 0.22);
}

.dnx-topbar-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.dnx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.dnx-brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(240, 199, 107, 0.4);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.dnx-brand span {
  display: grid;
  line-height: 1.05;
}

.dnx-brand strong {
  font-family: "Cinzel", "Georgia", serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.02rem;
}

.dnx-brand small {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

.dnx-nav {
  justify-self: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dnx-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dnx-nav a:hover,
.dnx-nav a.dnx-active {
  color: var(--ink);
  border-color: rgba(240, 199, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(240, 199, 107, 0.2) inset;
}

.dnx-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(240, 199, 107, 0.4);
  background: rgba(30, 18, 20, 0.8);
}

.dnx-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold);
}

.dnx-header-chip {
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(106, 24, 35, 0.4);
  border: 1px solid rgba(240, 199, 107, 0.35);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dnx-main { position: relative; }

.dnx-section { padding: 64px 0; }

.dnx-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  min-height: 62vh;
  min-width: 0;
}

.dnx-hero-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(240, 199, 107, 0.24);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.dnx-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(240, 199, 107, 0.08), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.dnx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.dnx-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: "Cinzel", "Georgia", serif;
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  word-break: break-word;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }

p { margin: 0 0 12px; color: var(--ink-soft); }
 
.dnx-card p,
.dnx-game-body p,
.dnx-review-card p,
.dnx-card h3,
.dnx-game-body h3,
.dnx-metric strong {
  overflow-wrap: anywhere;
}

.dnx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.dnx-btn {
  border: 1px solid rgba(240, 199, 107, 0.45);
  background: rgba(22, 14, 15, 0.9);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dnx-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(240, 199, 107, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.dnx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.dnx-btn:hover::after { transform: translateX(120%); }

.dnx-btn-primary {
  background: linear-gradient(140deg, var(--gold), #d7952f);
  color: #2a1714;
  border-color: transparent;
}

.dnx-btn-ghost {
  background: transparent;
}

.dnx-hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(240, 199, 107, 0.2);
  background: rgba(20, 12, 13, 0.75);
  min-height: 360px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.dnx-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dnx-hero-media .dnx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(18, 10, 12, 0.85), rgba(52, 25, 30, 0.35));
}

.dnx-hero-facts {
  position: absolute;
  inset: auto 20px 20px 20px;
  display: grid;
  gap: 10px;
}

.dnx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(240, 199, 107, 0.4);
  padding: 6px 12px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: rgba(10, 7, 7, 0.6);
}

.dnx-grid-3,
.dnx-grid-2,
.dnx-grid-4 {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.dnx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dnx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dnx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dnx-card {
  background: var(--card-2);
  border: 1px solid rgba(240, 199, 107, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.dnx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 140px at 100% 0%, rgba(240, 199, 107, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dnx-card:hover::after { opacity: 1; }

.dnx-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 199, 107, 0.4);
  display: grid;
  place-items: center;
  background: rgba(240, 199, 107, 0.12);
  color: var(--gold);
  margin-bottom: 10px;
}

.dnx-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.dnx-metric {
  background: rgba(16, 10, 10, 0.8);
  border: 1px solid rgba(240, 199, 107, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  min-width: 0;
}

.dnx-metric span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.dnx-metric strong {
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-top: 6px;
}

.dnx-band {
  background: linear-gradient(120deg, rgba(50, 16, 20, 0.9), rgba(90, 22, 32, 0.75));
  border-top: 1px solid rgba(240, 199, 107, 0.3);
  border-bottom: 1px solid rgba(240, 199, 107, 0.3);
  padding: 18px 0;
}

.dnx-band-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.dnx-band-row span { color: var(--gold-soft); }

.dnx-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.dnx-game-card {
  background: rgba(18, 11, 12, 0.94);
  border: 1px solid rgba(240, 199, 107, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.dnx-game-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px rgba(0,0,0,0.55); }

.dnx-game-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.dnx-game-media img { width: 100%; height: 100%; object-fit: cover; }

.dnx-game-tag {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dnx-tag {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(240, 199, 107, 0.4);
  background: rgba(12, 8, 9, 0.7);
  color: var(--gold);
}

.dnx-game-body { padding: 14px; display: grid; gap: 10px; }

.dnx-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dnx-filter {
  border-radius: 10px;
  border: 1px solid rgba(240, 199, 107, 0.35);
  background: rgba(20, 12, 13, 0.8);
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dnx-filter.dnx-active {
  color: #231312;
  background: var(--gold);
  border-color: transparent;
}

.dnx-review-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dnx-review-stage {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240, 199, 107, 0.2);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.dnx-review-card {
  display: none;
  gap: 10px;
}

.dnx-review-card.is-active { display: grid; }

.dnx-review-card strong { font-size: 1rem; color: var(--gold); }

.dnx-review-meta { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }

.dnx-review-nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.dnx-marquee {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240, 199, 107, 0.2);
  background: rgba(18, 10, 12, 0.8);
  padding: 14px;
}

.dnx-marquee-track {
  display: flex;
  gap: 18px;
  animation: marquee 22s linear infinite;
}

.dnx-mini-card {
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(240, 199, 107, 0.2);
  padding: 12px;
  background: rgba(30, 17, 19, 0.9);
  overflow-wrap: anywhere;
}

.dnx-form-grid {
  display: grid;
  gap: 10px;
}

input, textarea, select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 199, 107, 0.25);
  background: rgba(12, 8, 9, 0.9);
  color: var(--ink);
  padding: 12px;
  font: inherit;
}

textarea { min-height: 140px; resize: vertical; }

.dnx-faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 199, 107, 0.2);
  background: rgba(20, 12, 13, 0.85);
}

.dnx-faq-item button {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.dnx-faq-answer { display: none; padding: 0 16px 14px; color: var(--ink-soft); }
.dnx-faq-item.open .dnx-faq-answer { display: block; }

.dnx-footer {
  border-top: 1px solid rgba(240, 199, 107, 0.2);
  background: rgba(12, 8, 9, 0.9);
  padding: 36px 0 26px;
}

.dnx-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
}

.dnx-footer-grid h4 { margin: 0 0 10px; }

.dnx-footer-links {
  display: grid;
  gap: 6px;
}

.dnx-footer-bottom {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dnx-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 7, 7, 0.85);
}

.dnx-overlay.show { display: flex; }

.dnx-overlay-card {
  width: min(480px, 92vw);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240, 199, 107, 0.25);
  background: rgba(20, 12, 13, 0.95);
  padding: 20px;
  box-shadow: var(--shadow);
}

.dnx-cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 190;
  width: min(420px, 92vw);
  display: none;
}

.dnx-cookie.show { display: block; }

.dnx-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  background: rgba(10, 7, 7, 0.86);
  padding: 18px;
}

.dnx-modal.open { display: block; }

.dnx-modal-card {
  width: min(1200px, 96vw);
  height: min(92vh, 900px);
  margin: 0 auto;
  background: rgba(10, 7, 7, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240, 199, 107, 0.25);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.dnx-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(240, 199, 107, 0.2);
}

.dnx-modal-frame {
  position: relative;
  height: 100%;
}

.dnx-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050404;
}

.dnx-frame-status {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(10, 7, 7, 0.9);
}

.dnx-frame-status.visible { display: flex; }

@keyframes glowShift {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.95; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .dnx-hero { grid-template-columns: 1fr; }
  .dnx-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dnx-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dnx-review-wrap { grid-template-columns: 1fr; }
  .dnx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dnx-topbar-row { grid-template-columns: auto 1fr auto auto; }
  .dnx-menu-toggle { display: block; }
  .dnx-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 4vw;
    right: 4vw;
    background: rgba(12, 8, 9, 0.97);
    border: 1px solid rgba(240, 199, 107, 0.2);
    border-radius: 16px;
    padding: 12px;
    justify-content: center;
  }
  .dnx-nav.show { display: flex; }
  .dnx-game-grid { grid-template-columns: 1fr; }
  .dnx-grid-3, .dnx-grid-4, .dnx-grid-2 { grid-template-columns: 1fr; }
}

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

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
