/*
Theme Name: Royal Spin Club
Theme URI: https://royalspinclub.it.com/
Author: Royal Spin Club
Description: Custom entertainment games theme for Royal Spin Club.
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: royalspinclub
*/

:root {
  --bg: #f6fbef;
  --surface: #ffffff;
  --surface-soft: #eff8df;
  --ink: #172016;
  --muted: #60705a;
  --green: #5f8f2f;
  --green-dark: #355d22;
  --lime: #cfe985;
  --yellow: #f3c94d;
  --line: rgba(53, 93, 34, 0.18);
  --shadow: 0 24px 60px rgba(44, 78, 27, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(207, 233, 133, 0.52), transparent 28rem),
    linear-gradient(180deg, #fbfff4 0%, var(--bg) 48%, #eef7de 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(53, 93, 34, 0.14);
  background: rgba(246, 251, 239, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(95, 143, 47, 0.24);
}

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

.nav-links a,
.age-pill {
  padding: 9px 12px;
  border-radius: 999px;
}

.age-pill {
  color: var(--green-dark);
  background: rgba(207, 233, 133, 0.5);
  border: 1px solid var(--line);
}

.main {
  flex: 1;
}

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

.hero {
  min-height: calc(100vh - 72px);
  padding: clamp(36px, 6vw, 74px) 0 40px;
  display: grid;
  align-items: end;
}

.hero-frame {
  position: relative;
  min-height: min(660px, calc(100vh - 132px));
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #223016;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: var(--hero-image) center / cover no-repeat;
  filter: blur(7px) saturate(0.92) brightness(0.86);
  transform: scale(1.04);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 26, 12, 0.78), rgba(30, 45, 18, 0.38) 48%, rgba(246, 251, 239, 0.08)),
    linear-gradient(180deg, transparent 55%, rgba(16, 26, 12, 0.82));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  padding: clamp(28px, 5vw, 64px);
  color: #fffdf2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(246, 251, 239, 0.35);
  border-radius: 999px;
  background: rgba(246, 251, 239, 0.13);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 253, 242, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), #f6de76);
  color: #172016;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(243, 201, 77, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(243, 201, 77, 0.32);
}

.button.secondary {
  color: #fffdf2;
  border-color: rgba(255, 253, 242, 0.32);
  background: rgba(255, 253, 242, 0.13);
  box-shadow: none;
}

.intro-band {
  padding: clamp(36px, 6vw, 72px) 0 22px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0 clamp(54px, 8vw, 92px);
}

.game-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(44, 78, 27, 0.13);
  isolation: isolate;
}

.game-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 12, 5, 0.02) 35%, rgba(7, 12, 5, 0.78) 100%);
}

.game-card:hover img {
  transform: scale(1.035);
}

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

.game-title {
  margin: 0;
  color: #fffdf2;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.05;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.38);
}

.game-page {
  padding: clamp(26px, 5vw, 54px) 0 clamp(48px, 7vw, 84px);
}

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

.game-top h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.game-top .button.secondary {
  color: var(--green-dark);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.iframe-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d130b;
  box-shadow: var(--shadow);
}

.iframe-wrap iframe {
  display: block;
  width: 100%;
  height: min(78vh, 780px);
  min-height: 620px;
  border: 0;
}

.legal-page {
  padding: clamp(40px, 7vw, 86px) 0;
}

.legal-card {
  max-width: 880px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(44, 78, 27, 0.1);
}

.legal-card h1 {
  margin: 0 0 18px;
  color: var(--green-dark);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #182313;
  color: rgba(255, 253, 242, 0.86);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  gap: 18px;
}

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

.footer-inner p {
  max-width: 900px;
  margin: 0;
}

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

.footer-links a {
  color: #f5d86e;
  font-weight: 800;
}

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

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

@media (max-width: 640px) {
  .nav {
    min-height: 64px;
  }

  .nav-links a {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .hero-frame {
    min-height: 610px;
  }

  .hero-content {
    padding: 24px;
  }

  .game-overlay,
  .game-top {
    align-items: stretch;
    flex-direction: column;
  }

  .game-overlay .button {
    width: 100%;
  }

  .iframe-wrap iframe {
    min-height: 560px;
  }
}
