* {
  box-sizing: border-box;
}

:root {
  --bg: #04070d;
  --bg2: #0a1526;
  --panel: rgba(9, 18, 33, 0.88);
  --panel2: rgba(13, 26, 46, 0.94);
  --line: rgba(96, 180, 255, 0.18);
  --line2: rgba(96, 180, 255, 0.36);
  --cyan: #38e1ff;
  --text: #d9e9f7;
  --dim: #7f95ad;
  --gold: #ffd166;
  --max-game-width: 1120px;
  --ad-width: 180px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(14, 106, 134, .28), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(180,230,255,.022) 0 1px, transparent 1px 3px);
  z-index: 100;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 13, .82);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(56,225,255,.72);
}

.brand strong {
  display: block;
  letter-spacing: .24em;
  font-size: 13px;
  color: var(--cyan);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a,
.small-button {
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(40,72,110,.35), rgba(16,30,52,.55));
}

.site-nav a:hover,
.small-button:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(56,225,255,.24);
}

.game-page {
  width: 100%;
  display: grid;
  grid-template-columns: var(--ad-width) minmax(320px, var(--max-game-width)) var(--ad-width);
  gap: 16px;
  justify-content: center;
  align-items: start;
  padding: 16px;
}

.game-column {
  min-width: 0;
}

.game-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: .14em;
  color: #eafbff;
  text-shadow: 0 0 22px rgba(56,225,255,.45);
}

.game-frame-shell {
  width: 100%;
  height: min(78vh, 860px);
  min-height: 640px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  overflow: hidden;
  background: #04070d;
  box-shadow: 0 18px 60px rgba(0,0,0,.55), 0 0 30px rgba(56,225,255,.12);
}

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #04070d;
}

.ad-rail {
  position: sticky;
  top: 82px;
  min-height: 620px;
}

.ad-slot {
  width: 100%;
  min-height: 620px;
}

.ad-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 620px;
  padding: 12px;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  color: var(--dim);
  text-align: center;
  background: rgba(9, 18, 33, .52);
}

.ad-placeholder strong {
  display: block;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
}

.ad-placeholder span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.mobile-ad {
  display: none;
  margin: 0 0 12px;
}

.mobile-ad .ad-slot,
.mobile-ad .ad-placeholder {
  min-height: 100px;
}

.content-card,
.page-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px;
  line-height: 1.6;
  color: #c6d9ea;
}

.content-card h2,
.page-card h1,
.page-card h2 {
  color: var(--cyan);
  letter-spacing: .1em;
}

.page-main {
  width: min(920px, calc(100vw - 32px));
  margin: 24px auto 42px;
}

.site-footer {
  padding: 22px 16px 34px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  :root {
    --ad-width: 150px;
  }

  .game-page {
    gap: 10px;
  }
}

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

  .game-page {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .ad-rail {
    display: none;
  }

  .mobile-ad {
    display: block;
  }

  .game-heading {
    align-items: start;
    flex-direction: column;
  }

  .game-frame-shell {
    height: 76vh;
    min-height: 560px;
    border-radius: 12px;
  }
}
