/* =========================================================================
   Duck Duck Clicker — Premium dark UI
   Design tokens, type scale (Poppins), glass panels, refined motion.
   ========================================================================= */

:root {
  /* Palette */
  --bg: #07080e;
  --ink: #f5f6fc;
  --muted: #a6abc9;
  --faint: #7b809f;

  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(28, 30, 48, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --gold: #ffd75e;
  --gold-strong: #f5b301;
  --violet: #8b6dff;
  --violet-deep: #6d4dff;
  --cyan: #4fd6e6;
  --coral: #ff7a59;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Elevation */
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.52);
  --glow-gold: 0 16px 40px rgba(245, 183, 1, 0.28);
  --glow-violet: 0 16px 44px rgba(109, 77, 255, 0.34);

  /* Type scale (Poppins) */
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --fs-eyebrow: 0.76rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.02rem, 1.4vw, 1.16rem);
  --fs-h3: clamp(1.05rem, 1.6vw, 1.2rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.15rem);
  --fs-h1: clamp(1.9rem, 3.4vw, 2.75rem);

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

  --header-height: 72px;
  --max-width: 1340px;
}

/* ------------------------------------------------------------------ Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 12% -8%, rgba(109, 77, 255, 0.16), transparent 60%),
    radial-gradient(46rem 34rem at 96% 4%, rgba(79, 214, 230, 0.1), transparent 58%),
    radial-gradient(52rem 40rem at 50% 118%, rgba(245, 183, 1, 0.08), transparent 60%),
    linear-gradient(180deg, #06070d 0%, #0a0b16 48%, #06070d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(139, 109, 255, 0.34);
  color: #fff;
}

/* Shared kicker / eyebrow */
.breadcrumbs,
.panel-kicker {
  margin: 0 0 12px;
  color: #b3a4ff;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 5vw, 56px);
  background: rgba(9, 10, 20, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition:
    background 240ms var(--ease),
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(9, 10, 20, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark,
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(139, 109, 255, 0.28), rgba(79, 214, 230, 0.16));
  box-shadow: inset 0 0 0 1px var(--line);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  transition:
    color 200ms var(--ease),
    background 200ms var(--ease);
}

.primary-nav a svg {
  height: 16px;
  width: auto;
  flex: 0 0 auto;
  fill: var(--gold);
  transition: fill 200ms var(--ease), transform 200ms var(--ease);
}

.primary-nav a:hover svg,
.primary-nav a:focus-visible svg {
  transform: translateY(-1px);
}

/* Play CTA sits on a yellow background, so its icon stays dark for contrast. */
.primary-nav .nav-cta svg {
  fill: #14110a;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
  background: rgba(139, 109, 255, 0.16);
  outline: none;
}

.primary-nav .nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  color: #14110a;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: var(--glow-gold);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  color: #14110a;
  background: linear-gradient(135deg, #ffe27a, var(--gold-strong));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background 200ms var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 220ms var(--ease),
    opacity 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------- Hero / game */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: clamp(18px, 3vw, 40px) clamp(14px, 4vw, 48px);
}

.game-shell {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(8, 9, 17, 0.8);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

/* Gradient rim light around the game */
.game-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 109, 255, 0.6), rgba(79, 214, 230, 0.28) 40%, transparent 70%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.game-frame {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #05050b;
}

.game-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 1;
}

.game-actions {
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
}

.game-fullscreen-button {
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #14110a;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: var(--glow-gold);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms var(--ease), filter 200ms var(--ease);
}

.game-fullscreen-button:hover,
.game-fullscreen-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.game-fullscreen-close {
  display: none;
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 20;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 8, 14, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.game-fullscreen-close span {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

body.game-fullscreen-open {
  overflow: hidden;
}

.game-shell.is-app-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #05050b;
  box-shadow: none;
}

.game-shell.is-app-fullscreen::before {
  display: none;
}

.game-shell.is-app-fullscreen .game-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.game-shell.is-app-fullscreen .game-actions {
  display: none;
}

.game-shell.is-app-fullscreen .game-fullscreen-close {
  position: fixed;
  display: inline-flex;
}

.game-shell:fullscreen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #05050b;
  box-shadow: none;
}

.game-shell:fullscreen::before {
  display: none;
}

.game-shell:fullscreen .game-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.game-shell:fullscreen .game-actions {
  display: none;
}

.game-shell:fullscreen .game-fullscreen-close {
  position: fixed;
  display: inline-flex;
}

.game-shell:-webkit-full-screen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #05050b;
  box-shadow: none;
}

.game-shell:-webkit-full-screen::before {
  display: none;
}

.game-shell:-webkit-full-screen .game-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.game-shell:-webkit-full-screen .game-actions {
  display: none;
}

.game-shell:-webkit-full-screen .game-fullscreen-close {
  position: fixed;
  display: inline-flex;
}

/* Game loading overlay */
.game-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(30rem 20rem at 50% 40%, rgba(109, 77, 255, 0.16), transparent 70%),
    #06070d;
  transition: opacity 500ms var(--ease), visibility 500ms var(--ease);
}

.game-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-loader-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold);
  border-right-color: var(--violet);
  animation: spin 900ms linear infinite;
}

.game-loader p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.game-loader strong {
  color: var(--ink);
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------- Details section */

.details-section {
  padding: 26px clamp(14px, 4vw, 48px) clamp(64px, 8vw, 104px);
}

.details-shell {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 18px;
}

/* Glass panel base */
.details-panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface-strong);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Subtle top highlight line on panels */
.details-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

/* Overview */
.overview-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.overview-title h1 {
  margin: 0;
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.overview-title p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-lead);
}

.details-panel h2 {
  margin: 0;
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.details-panel p {
  color: var(--muted);
}

.share-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff;
  background: rgba(139, 109, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 200ms var(--ease),
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.share-button:hover,
.share-button:focus-visible {
  background: rgba(139, 109, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: var(--glow-violet);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-grid div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
}

.meta-grid dt {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 500;
}

.meta-grid dd {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(139, 109, 255, 0.28);
  color: #ddd8ff;
  background: rgba(139, 109, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 200ms var(--ease);
}

.tag-row span:hover {
  background: rgba(139, 109, 255, 0.24);
}

.overview-copy {
  max-width: 960px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--fs-lead);
}

.info-block {
  margin-top: 22px;
}

.info-block h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

.feature-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #cdd1e8;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 0 0 4px rgba(245, 183, 1, 0.1);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.55em + 3px);
  width: 4px;
  height: 8px;
  border: solid #14110a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#controls p {
  margin-top: 12px;
  font-size: 0.98rem;
}

/* Quick summary aside */
.quick-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  background:
    linear-gradient(180deg, rgba(139, 109, 255, 0.1), rgba(255, 255, 255, 0.012)),
    var(--surface-strong);
}

.quick-panel img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(139, 109, 255, 0.3), rgba(79, 214, 230, 0.18));
  box-shadow: inset 0 0 0 1px var(--line);
}

.quick-panel h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.quick-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-panel li {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quick-panel strong {
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-panel span {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 500;
}

/* Split panel (mission) */
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.split-panel h2 {
  margin-top: 4px;
}

.text-columns {
  display: grid;
  gap: 16px;
}

.text-columns p {
  margin: 0;
  font-size: var(--fs-lead);
}

/* Uses / compact grid */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.compact-grid div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition:
    transform 240ms var(--ease),
    border-color 240ms var(--ease),
    background 240ms var(--ease);
}

.compact-grid div:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 109, 255, 0.4);
  background: var(--surface-2);
}

.compact-grid h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 600;
}

.compact-grid p {
  margin: 0;
  color: var(--muted);
}

/* Comparison table */
.dark-table {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.dark-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.dark-table th,
.dark-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: #cdd1e8;
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}

.dark-table thead th {
  color: #fff;
  background: rgba(139, 109, 255, 0.14);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark-table tbody th {
  width: 190px;
  color: #b3a4ff;
  font-weight: 600;
}

.dark-table tbody tr {
  transition: background 200ms var(--ease);
}

.dark-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dark-table tr:last-child th,
.dark-table tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------------------------------------ Slider */

.details-panel .slider {
  position: relative;
  margin-top: 24px;
  padding: 0 58px 44px;
}

.slider-window {
  overflow: hidden;
  border-radius: var(--r-md);
}

.slider-track {
  display: flex;
  gap: 18px;
  transition: transform 460ms var(--ease);
  will-change: transform;
}

.screenshot-card {
  flex: 0 0 calc((100% - 36px) / 3);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #14152340;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: #10131f;
}

.screenshot-card h3 {
  margin: 18px 0 8px;
  padding: 0 18px;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 600;
}

.screenshot-card p {
  margin: 0;
  padding: 0 18px 20px;
  color: var(--muted);
}

.slider-button {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 39, 65, 0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 1.1rem;
  transition:
    transform 200ms var(--ease),
    background 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.slider-button:hover,
.slider-button:focus-visible {
  transform: translateY(-50%) scale(1.06);
  top: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: var(--glow-violet);
}

.slider-button-prev {
  left: 0;
}

.slider-button-next {
  right: 0;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 240ms var(--ease), background 240ms var(--ease);
}

.slider-dots button.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--gold), var(--violet));
}

/* ------------------------------------------------------------ Reviews */

.reviews-panel {
  overflow: hidden;
}

.review-marquee {
  margin-top: 22px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.review-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee 40s linear infinite;
}

.review-marquee:hover .review-track {
  animation-play-state: paused;
}

.review-card {
  width: min(340px, 80vw);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.review-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.review-card p {
  margin: 12px 0;
  color: var(--muted);
}

.review-card span {
  color: #b3a4ff;
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

/* --------------------------------------------------------------- FAQ */

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}

.faq-item.is-open {
  border-color: rgba(139, 109, 255, 0.42);
  background: var(--surface-2);
}

.faq-item button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-item button::after {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, var(--violet), var(--violet-deep));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 2px, 2px 12px, 100% 100%;
  transition: background-size 260ms var(--ease);
}

/* Open state turns the plus into a minus (vertical bar collapses). */
.faq-item.is-open button::after {
  background-size: 12px 2px, 0 12px, 100% 100%;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}

.faq-answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
  padding-bottom: 20px;
}

/* ------------------------------------------------------------ Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
  padding: clamp(48px, 6vw, 74px) clamp(18px, 5vw, 64px) 30px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
}

.footer-brand {
  color: var(--ink);
}

.footer-about p {
  max-width: 420px;
  margin: 16px 0 20px;
  color: var(--muted);
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}

.footer-email:hover {
  background: rgba(139, 109, 255, 0.2);
  transform: translateY(-1px);
}

.footer-email svg {
  height: 15px;
  width: auto;
  flex: 0 0 auto;
  fill: var(--gold);
}

.footer-col h4 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.footer-col ul a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.footer-col ul a svg {
  height: 14px;
  width: auto;
  flex: 0 0 auto;
  fill: var(--gold);
}

.footer-legal ul a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(34px, 4vw, 50px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.copyright {
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.copyright a {
  color: var(--gold);
  font-weight: 600;
}

.copyright a:hover {
  text-decoration: underline;
}

.footer-tagline {
  margin: 0;
  color: var(--faint);
  font-size: 0.86rem;
}

/* --------------------------------------------------- Scroll-to-top button */

.scroll-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 60;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  color: #14110a;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: var(--glow-gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease),
    visibility 260ms var(--ease);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  fill: #14110a;
}

/* --------------------------------------------------- Legal / content pages */

.legal {
  padding: clamp(28px, 5vw, 60px) clamp(14px, 4vw, 48px) clamp(48px, 7vw, 88px);
}

.legal-shell {
  width: min(880px, 100%);
  margin: 0 auto;
}

.legal-panel h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.legal-updated {
  margin: 0 0 6px;
  color: var(--faint);
  font-size: 0.88rem;
}

.legal-panel h2 {
  margin: 34px 0 10px;
  color: #fff;
  font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

.legal-panel p {
  margin: 0 0 14px;
}

.legal-panel ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.legal-panel a {
  color: var(--gold);
  font-weight: 500;
}

.legal-panel a:hover {
  text-decoration: underline;
}

.legal-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 15px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}

.legal-contact-email:hover {
  background: rgba(139, 109, 255, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
}

.legal-contact-email svg {
  height: 18px;
  width: auto;
  fill: var(--gold);
  flex: 0 0 auto;
}

/* Standalone gold pill (legal header back link) */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #14110a;
  font-size: 0.92rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: var(--glow-gold);
  transition: transform 200ms var(--ease);
}

.legal-back:hover {
  transform: translateY(-1px);
}

.legal-back svg {
  height: 14px;
  width: auto;
  fill: #14110a;
}

/* --------------------------------------------------------- Guides (blog) */

.guide-index,
.guide-single {
  padding: clamp(26px, 4vw, 56px) clamp(14px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

.guide-index-shell,
.guide-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* Archive header */
.guide-index-head {
  max-width: 720px;
  margin: 0 auto clamp(30px, 4vw, 46px);
  text-align: center;
}

.guide-index-head h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.guide-index-head p {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: var(--fs-lead);
}

/* Archive grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-strong);
  overflow: hidden;
  transition:
    transform 280ms var(--ease),
    border-color 280ms var(--ease),
    box-shadow 280ms var(--ease);
}

.guide-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 109, 255, 0.42);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.guide-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #10131f;
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease);
}

.guide-card:hover .guide-card-media img {
  transform: scale(1.07);
}

.guide-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 8, 14, 0.72);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px 22px 22px;
}

.guide-card-body h2 {
  margin: 0;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.guide-card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  transition: gap 220ms var(--ease);
}

.guide-card-more svg {
  height: 12px;
  width: auto;
  fill: var(--gold);
}

.guide-card:hover .guide-card-more {
  gap: 13px;
}

/* Single guide layout */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.guide-breadcrumbs {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 0.85rem;
}

.guide-breadcrumbs a {
  color: var(--muted);
}

.guide-breadcrumbs a:hover {
  color: var(--ink);
}

.guide-hero-media {
  margin: 0 0 22px;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #10131f;
}

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

.guide-article h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

.guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.guide-meta svg {
  height: 14px;
  width: auto;
  fill: var(--gold);
}

/* Article typography */
.guide-content {
  margin-top: 26px;
}

.guide-content > p:first-child {
  color: #c7cbe4;
  font-size: 1.08rem;
}

.guide-content h2 {
  margin: 36px 0 12px;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.guide-content h3 {
  margin: 26px 0 10px;
  color: #fff;
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  font-weight: 600;
}

.guide-content p {
  margin: 0 0 15px;
  color: var(--muted);
}

.guide-content strong {
  color: #e7e9f6;
  font-weight: 600;
}

.guide-content ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.guide-content li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.guide-content li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
}

/* Sticky sidebar */
.guide-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-strong);
}

.sidebar-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g;
}

.sidebar-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.sidebar-list a::before {
  counter-increment: g;
  content: counter(g, decimal-leading-zero);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}

.sidebar-list a:hover {
  background: rgba(139, 109, 255, 0.14);
  color: #fff;
}

.sidebar-list li.is-current a {
  background: rgba(139, 109, 255, 0.18);
  color: #fff;
}

.sidebar-play {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(139, 109, 255, 0.2), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.sidebar-play h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sidebar-play p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-play .play-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  color: #14110a;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: var(--glow-gold);
  transition: transform 200ms var(--ease);
}

.sidebar-play .play-now:hover {
  transform: translateY(-2px);
}

.sidebar-play .play-now svg {
  height: 15px;
  width: auto;
  fill: #14110a;
}

@media (max-width: 980px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

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

@media (max-width: 620px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------- Scroll reveal (JS) */

[data-reveal-ready] .details-panel {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

[data-reveal-ready] .details-panel.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1040px) {
  .primary-nav {
    gap: 0;
    font-size: 0.9rem;
  }

  .primary-nav a {
    padding-inline: 10px;
  }

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

  .details-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

@media (max-width: 980px) {
  .details-layout,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .quick-panel ul {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: calc(var(--header-height) + 6px) 12px auto;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: rgba(14, 15, 27, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 220ms var(--ease),
      transform 220ms var(--ease),
      visibility 220ms var(--ease);
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 13px 14px;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-block: 16px;
  }

  .game-frame {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .details-section {
    padding-inline: 12px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand span {
    max-width: 180px;
    line-height: 1.15;
  }

  .overview-title {
    display: grid;
  }

  .share-button {
    width: max-content;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .quick-panel {
    grid-template-columns: 1fr;
  }

  .game-shell {
    padding: 6px;
    border-radius: var(--r-lg);
  }

  .game-frame {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .details-panel .slider {
    padding-inline: 0;
  }

  .slider-button {
    top: auto;
    bottom: -2px;
  }

  .slider-button:hover,
  .slider-button:focus-visible {
    top: auto;
    transform: scale(1.06);
  }

  .slider-button-prev {
    left: calc(50% - 86px);
  }

  .slider-button-next {
    right: calc(50% - 86px);
  }

  .screenshot-card {
    flex-basis: min(84vw, 430px);
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal-ready] .details-panel {
    opacity: 1;
    transform: none;
  }
}
