@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800&family=Rajdhani:wght@500;700&display=swap');

:root {
  --bg: #0b0f15;
  --bg-alt: #111926;
  --panel: rgba(11, 17, 27, 0.78);
  --line: rgba(143, 198, 255, 0.3);
  --line-strong: rgba(83, 209, 255, 0.68);
  --text: #eef5ff;
  --muted: #a6bfd8;
  --cyan: #49d4ff;
  --orange: #ff7b3d;
  --lime: #98ff45;
  --gold: #ffd95a;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 8% -5%, rgba(73, 212, 255, 0.25), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(255, 123, 61, 0.2), transparent 35%),
    linear-gradient(145deg, #090d13 0%, #0f1622 52%, #10151d 100%);
  color: var(--text);
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  position: relative;
  overflow-x: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-wrap,
.bg-radial,
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.9;
}

.bg-radial {
  border-radius: 999px;
  width: 400px;
  height: 400px;
  filter: blur(85px);
  opacity: 0.26;
}

.bg-radial.a {
  background: var(--cyan);
  transform: translate(5vw, 24vh);
}

.bg-radial.b {
  background: var(--orange);
  transform: translate(76vw, 2vh);
}

.bg-mesh {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 92%);
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(14, 21, 34, 0.85), rgba(17, 17, 16, 0.8));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  animation: rise 520ms ease;
}

.site-header.slim {
  padding: 10px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  font-size: 23px;
  line-height: 1;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 11, 17, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(73, 212, 255, 0.16);
}

.search img {
  width: 16px;
  height: 16px;
}

.search input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.section-head {
  margin: 26px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
}

.section-head p {
  color: var(--muted);
  margin: 6px 0 0;
}

.home-ad-zone {
  margin-top: 18px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(10, 16, 26, 0.9), rgba(12, 11, 10, 0.7));
}

.ad-caption {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  margin-bottom: 8px;
}

.home-ad-zone .adsbygoogle {
  min-height: 110px;
}

.detail-ad-zone {
  padding: 12px;
  background: linear-gradient(145deg, rgba(10, 16, 26, 0.9), rgba(12, 11, 10, 0.7));
}

.detail-ad-zone .adsbygoogle {
  min-height: 120px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.game-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(13, 20, 34, 0.9), rgba(10, 12, 16, 0.84));
  padding: 11px;
  transition: transform 180ms ease, border-color 180ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.game-card:focus-visible {
  outline: 2px solid rgba(73, 212, 255, 0.9);
  outline-offset: 2px;
}

.ad-card {
  cursor: default;
  background: linear-gradient(145deg, rgba(12, 18, 29, 0.95), rgba(12, 14, 19, 0.85));
  border-style: dashed;
}

.ad-card:hover {
  transform: none;
  border-color: var(--line);
}

.ad-card .adsbygoogle {
  min-height: 140px;
}

.game-row {
  display: flex;
  gap: 9px;
  align-items: center;
}

.game-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  flex: 0 0 auto;
}

.game-card h3 {
  margin: 0;
  font-size: 17px;
}

.badge {
  border: 1px solid rgba(136, 187, 237, 0.38);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 12px;
  width: fit-content;
}

.game-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
  min-height: 38px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.cta,
.ghost-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(151, 201, 248, 0.4);
  padding: 8px 11px;
  font-size: 13px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.cta {
  background: linear-gradient(110deg, #1f6a89, #2d4e7d);
}

.ghost-link {
  background: rgba(255, 255, 255, 0.04);
}

.cta:hover,
.ghost-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 24, 0.78);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.site-footer h3 {
  margin: 0;
  font-size: 16px;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 10px;
}

.site-footer nav a {
  border: 1px solid rgba(151, 201, 248, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
}

.site-footer nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(151, 201, 248, 0.4);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(8, 13, 20, 0.56);
}

.detail-layout {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.detail-wiki {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.wiki-content {
  display: grid;
  gap: 12px;
}

.wiki-section {
  scroll-margin-top: 96px;
}

.wiki-nav {
  position: sticky;
  top: 14px;
}

.wiki-nav h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-family: 'Rajdhani', sans-serif;
}

.wiki-nav a {
  display: block;
  border: 1px solid rgba(149, 198, 245, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(10, 16, 24, 0.45);
  margin-bottom: 8px;
  transition: all 170ms ease;
}

.wiki-nav a:hover,
.wiki-nav a.active {
  color: var(--text);
  border-color: rgba(73, 212, 255, 0.8);
  transform: translateX(3px);
  background: rgba(16, 28, 43, 0.76);
}

.detail-top {
  display: flex;
  gap: 15px;
  align-items: center;
}

.detail-logo {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid rgba(154, 201, 244, 0.38);
}

.detail-top h1 {
  margin: 0 0 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 8px;
}

.stars img {
  width: 18px;
  height: 18px;
}

.detail-top p {
  margin: 0;
  color: var(--muted);
}

.detail-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-block {
  border: 1px solid rgba(149, 198, 245, 0.24);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(155deg, rgba(8, 13, 20, 0.68), rgba(10, 16, 26, 0.54));
}

.detail-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-block ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #d2e8ff;
  display: grid;
  gap: 6px;
}

.accordion-toggle {
  width: 100%;
  border: 1px solid rgba(149, 198, 245, 0.24);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(10, 16, 26, 0.8), rgba(8, 13, 20, 0.65));
  color: var(--text);
  font-size: 18px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}

.accordion-toggle b {
  font-size: 24px;
  line-height: 1;
  color: var(--cyan);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 260ms ease, opacity 220ms ease;
}

.accordion-panel.open {
  opacity: 1;
  margin-top: 10px;
}

.accordion-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-picks {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #d4eaff;
  display: grid;
  gap: 6px;
}

.detail-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.howto-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.howto-list li {
  margin-bottom: 0;
  border: 1px solid rgba(147, 196, 240, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 12, 18, 0.46);
  line-height: 1.55;
}

.comments {
  display: grid;
  gap: 8px;
}

.comment {
  border: 1px solid rgba(150, 198, 241, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 12, 18, 0.55);
}

.comment.comment-ad {
  border-style: dashed;
  background: linear-gradient(140deg, rgba(10, 17, 28, 0.82), rgba(11, 12, 15, 0.74));
}

.comment.comment-ad .adsbygoogle {
  min-height: 120px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.comment p {
  margin: 0;
  color: #dce9f7;
  line-height: 1.45;
  font-size: 14px;
}

.legal-content {
  margin-top: 8px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(30px, 4vw, 50px);
}

.legal-content h2 {
  margin-top: 18px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.6;
}

.play-body {
  margin: 0;
}

.play-shell {
  position: fixed;
  inset: 0;
  background: #05080d;
}

#play-dynamic-ads {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

.play-ad-zone {
  position: absolute;
  z-index: 7;
  border: 1px solid rgba(147, 196, 240, 0.35);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.8);
  backdrop-filter: blur(4px);
  padding: 8px;
  pointer-events: auto;
}

.play-ad-zone .ad-caption {
  margin-bottom: 6px;
}

.play-ad-zone .adsbygoogle {
  min-height: 80px;
}

.play-ad-top {
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 160px));
}

.play-ad-bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 40px));
}

.play-ad-side {
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  pointer-events: auto;
}

.play-ad-side .adsbygoogle {
  min-height: 260px;
}

.play-ad-side.left {
  left: 10px;
}

.play-ad-side.right {
  right: 10px;
}

.play-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #02060a;
}

.play-back {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(147, 196, 240, 0.52);
  background: rgba(7, 11, 18, 0.72);
  display: grid;
  place-items: center;
  z-index: 5;
}

.play-back:hover {
  border-color: var(--line-strong);
}

.play-back img {
  width: 20px;
  height: 20px;
}

.play-title {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  border: 1px solid rgba(147, 196, 240, 0.35);
  border-radius: 10px;
  background: rgba(7, 11, 18, 0.72);
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.play-title strong {
  font-size: 14px;
}

.play-title span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .play-ad-top {
    width: min(520px, calc(100vw - 80px));
  }
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    width: 100%;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-top {
    align-items: flex-start;
  }

  .detail-blocks {
    grid-template-columns: 1fr;
  }

  .detail-wiki {
    grid-template-columns: 1fr;
  }

  .wiki-nav {
    position: static;
  }

  .play-ad-top {
    width: calc(100vw - 28px);
    top: 66px;
  }

  .play-ad-bottom {
    width: calc(100vw - 28px);
  }
}

@media (max-width: 560px) {
  .container,
  .site-header,
  .site-footer {
    width: calc(100% - 18px);
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .detail-top {
    flex-direction: column;
  }

  .play-ad-bottom {
    display: none;
  }
}
