/* Homepage first paint — full rules deferred via main-v2.css (media swap) */

:root {
  --playroom-blue: #1e88e5;
  --puzzle-green: #43a047;
  --battle-red: #e53935;
  --arcade-yellow: #f9a825;
  --mystery-purple: #6a1b9a;
  --playroom-night: #12182a;
  --hex-surface: #1e2640;
  --light-room: #f4f7ff;
  --smart-gray: #5a5a72;
  --neon-teal: #00bcd4;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-section: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --radius-btn: 6px;
  --hex-opacity-dark: 0.07;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #e8ecf4;
  background: var(--playroom-night);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--playroom-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.bg-hex {
  position: relative;
  background-color: var(--playroom-night);
}

.bg-hex > * {
  position: relative;
  z-index: 1;
}

.bg-hex-blue-tint::before {
  opacity: 0.08;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

h3,
.h3 {
  font-family: var(--font-section);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  margin: 0 0 0.5em;
}

.text-muted {
  color: var(--smart-gray);
}

.text-white {
  color: #fff;
}

.text-blue {
  color: var(--playroom-blue);
}

.small-disclaimer {
  font-size: 11px;
  color: var(--smart-gray);
}

.font-mono-coins {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--arcade-yellow);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 24, 42, 0.94);
  border-bottom: 1px solid rgba(30, 136, 229, 0.25);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.logo__domain {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--smart-gray);
  font-weight: 400;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #c5cee0;
  text-decoration: none;
}
.nav-main a:hover,
.nav-main a.is-active {
  color: var(--playroom-blue);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  margin: -6px -6px -6px 0;
  cursor: pointer;
  border-radius: var(--radius-btn);
  flex-shrink: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--playroom-blue);
  outline-offset: 2px;
}
.nav-toggle__box {
  width: 26px;
  height: 18px;
  position: relative;
  display: block;
}
.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e8ecf4;
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.22s ease;
}
.nav-toggle__bar:nth-child(1) {
  top: 1px;
}
.nav-toggle__bar:nth-child(2) {
  top: 8px;
}
.nav-toggle__bar:nth-child(3) {
  top: 15px;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-wrap {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px 28px;
    flex: 1;
    width: auto;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .nav-main {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    gap: 10px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0;
    transition:
      max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      visibility 0s linear 0.45s,
      padding 0.35s ease;
  }
  .nav-wrap.is-open {
    max-height: min(100vh, 720px);
    opacity: 1;
    visibility: visible;
    padding: 8px 0 16px;
    transition:
      max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.32s ease 0.34s,
      visibility 0s linear 0s,
      padding 0.35s ease 0.34s;
  }
  .nav-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px 0;
  }
}

.public-disclaimer-bar {
  background: rgba(18, 24, 40, 0.95);
  color: #fff;
  text-align: center;
  font-size: 11px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--playroom-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}
.btn:hover {
  filter: brightness(1.12);
  transform: scale(1.02);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--playroom-blue);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--playroom-blue);
  border: 2px solid var(--playroom-blue);
}

.btn--green {
  background: var(--puzzle-green);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--smart-gray);
  border: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero {
  padding: 56px 0 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 42%);
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__art {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--arcade-yellow);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}
@media (max-width: 900px) {
  .hero__art {
    max-height: 360px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--hex-surface);
  border-top: 2px solid var(--playroom-blue);
  padding: 20px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}
.cookie-banner p {
  margin: 0 0 12px;
  font-size: 14px;
  max-width: 900px;
}
.cookie-banner.is-hidden {
  display: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 24, 42, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate.is-hidden {
  display: none;
}
.age-gate__box {
  max-width: 440px;
  background: var(--hex-surface);
  border: 1px solid var(--playroom-blue);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
