/*
Theme Name: Spin Reel Zone
Theme URI: https://spinreelzone.it.com/
Author: Spin Reel Zone
Author URI: https://spinreelzone.it.com/
Description: Bright social games landing theme with embedded play pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: spinreelzone
*/

:root {
  --bg: #080b17;
  --bg-soft: #11172b;
  --panel: rgba(15, 22, 41, 0.82);
  --panel-strong: rgba(8, 12, 25, 0.94);
  --text: #f8fbff;
  --muted: #afbdd3;
  --cyan: #2fceff;
  --blue: #256cff;
  --gold: #ffd552;
  --rose: #ff4da5;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 206, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 77, 165, 0.15), transparent 28%),
    linear-gradient(135deg, #070914 0%, #10152b 52%, #061326 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 18, 0.74);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background-image: var(--brand-icon);
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 34px rgba(47, 206, 255, 0.24);
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text span:first-child {
  color: #fff;
  font-size: 1.02rem;
}

.brand-text span:last-child {
  color: var(--gold);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-pill,
.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hero {
  position: relative;
  min-height: clamp(610px, 84vh, 780px);
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(7px) saturate(1.08);
  transform: scale(1.035);
  opacity: 0.68;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 6, 16, 0.95) 0%, rgba(4, 6, 16, 0.68) 45%, rgba(4, 6, 16, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 11, 23, 0.12) 0%, rgba(8, 11, 23, 0.94) 100%);
}

.hero-content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 118px;
}

.age-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 213, 82, 0.48);
  border-radius: 999px;
  background: rgba(255, 213, 82, 0.1);
  color: #ffe8a1;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(3.25rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #69ddff 42%, #ffd552 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: #d9e3f2;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #ff8f2c 48%, var(--rose) 100%);
  color: #10101a;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(255, 139, 44, 0.25);
  transition: transform 180ms ease, filter 180ms ease;
}

.primary-button {
  padding: 0 24px;
}

.play-button {
  min-width: 142px;
  padding: 0 20px;
}

.primary-button:hover,
.play-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.games-section {
  position: relative;
  margin-top: -74px;
  padding: 0 0 72px;
  z-index: 4;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

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

.game-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.game-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 260ms ease, filter 260ms ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 20%, rgba(6, 8, 18, 0.32) 55%, rgba(6, 8, 18, 0.9) 100%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.55), transparent 55%);
}

.game-card:hover img {
  transform: scale(1.055);
  filter: saturate(1.12);
}

.game-card-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.game-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.05;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.info-band {
  padding: 52px 0 82px;
}

.info-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(47, 206, 255, 0.11), rgba(255, 77, 165, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.info-panel h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.info-panel p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.65;
}

.game-page {
  min-height: calc(100vh - 74px);
  padding: 30px 0 66px;
}

.game-frame-wrap {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.game-topbar h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2.4rem);
}

.iframe-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #050815;
  box-shadow: var(--shadow);
}

.iframe-shell iframe {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 620px;
  border: 0;
  background: #050815;
}

.policy-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 86px;
  color: #dce6f6;
  line-height: 1.72;
}

.policy-page h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.policy-page h2 {
  margin-top: 34px;
  color: #fff;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 7, 16, 0.88);
}

.footer-inner {
  display: grid;
  gap: 18px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.footer-inner h2 {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: #dce8ff;
  font-weight: 700;
}

@media (max-width: 860px) {
  .main-nav {
    gap: 10px;
    font-size: 0.84rem;
  }

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

  .game-card {
    min-height: 250px;
  }

  .game-card img {
    min-height: 250px;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1160px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-text span:first-child {
    font-size: 0.9rem;
  }

  .brand-text span:last-child {
    font-size: 0.74rem;
  }

  .main-nav a:not(.nav-pill) {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 64px 0 112px;
  }

  .hero h1 {
    font-size: clamp(2.62rem, 17vw, 4.2rem);
  }

  .game-card-content {
    align-items: stretch;
    flex-direction: column;
  }

  .play-button {
    width: 100%;
  }

  .iframe-shell iframe {
    height: 74vh;
    min-height: 520px;
  }
}
