/*
Theme Name: Golden Spin World
Theme URI: https://goldenspinworld.it.com/
Author: Golden Spin World
Description: A modern social games theme for Golden Spin World.
Version: 1.0.0
Text Domain: golden-spin-world
*/

:root {
  --ink: #17130f;
  --muted: #6f6257;
  --paper: #fffaf4;
  --cream: #fff1df;
  --orange: #e86f16;
  --orange-dark: #b84808;
  --line: rgba(105, 55, 18, .15);
  --shadow: 0 18px 55px rgba(87, 43, 12, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 244, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; border-radius: 13px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--orange-dark); }
.age-badge {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(184, 72, 8, .22);
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fff;
  font-weight: 900;
}

.hero { padding: 28px 0 68px; }
.hero-panel {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-panel::before {
  position: absolute;
  inset: -18px;
  z-index: -2;
  background: url("assets/hero.png") center/cover no-repeat;
  content: "";
  filter: blur(5px);
  transform: scale(1.03);
}
.hero-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(28, 13, 4, .9) 0%, rgba(47, 19, 3, .62) 48%, rgba(38, 14, 2, .2) 100%);
  content: "";
}
.hero-copy {
  width: min(610px, 100%);
  padding: clamp(50px, 8vw, 100px);
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffd5b5;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.075em;
}
.hero p { max-width: 480px; margin: 24px 0 30px; color: #fff0e4; font-size: 1.05rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(137, 52, 0, .26);
  font-size: .92rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--orange-dark); transform: translateY(-2px); }
.button-light { color: var(--orange-dark); background: #fff; box-shadow: none; }

.games-section { padding: 12px 0 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.06em; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.game-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 24px;
  background: #2b160b;
  box-shadow: 0 12px 32px rgba(61, 31, 9, .13);
}
.game-card:first-child { grid-column: span 2; min-height: 430px; }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(22, 9, 2, .82) 100%);
  content: "";
}
.game-card:hover img { transform: scale(1.025); }
.game-card-content {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.game-card h3 { margin: 0; color: #fff; font-size: clamp(1.25rem, 3vw, 1.8rem); letter-spacing: -.04em; }

.responsible-strip { padding: 34px 0; border-top: 1px solid var(--line); background: var(--cream); }
.responsible-strip .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.responsible-strip h2 { margin: 0 0 4px; font-size: 1.25rem; }
.responsible-strip p { max-width: 710px; margin: 0; color: var(--muted); font-size: .92rem; }

.site-footer { padding: 52px 0 30px; color: #d7c9be; background: #21150e; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 42px; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 1.2rem; }
.site-footer p { max-width: 760px; margin: 0 0 15px; font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 11px 18px; }
.footer-links a { color: #ffd0ad; font-size: .86rem; font-weight: 750; text-decoration: none; }
.copyright { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }

.game-page { min-height: calc(100vh - 74px); padding: 26px 0 42px; background: #21150e; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; color: #fff; }
.game-toolbar h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.3rem); letter-spacing: -.05em; }
.game-frame {
  width: 100%;
  height: min(76vh, 860px);
  min-height: 620px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: #0b0907;
}
.legal-page { padding: 70px 0 100px; }
.legal-card { max-width: 820px; padding: clamp(28px, 6vw, 60px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.legal-card h1 { margin-top: 0; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.06em; }
.legal-card h2 { margin-top: 34px; }
.legal-card p, .legal-card li { color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1160px); }
  .nav a { display: none; }
  .hero { padding-top: 12px; padding-bottom: 48px; }
  .hero-panel { min-height: 520px; border-radius: 22px; }
  .hero-copy { padding: 42px 24px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-card, .game-card:first-child { grid-column: auto; min-height: 250px; border-radius: 18px; }
  .game-card-content { right: 14px; bottom: 14px; left: 14px; }
  .button { min-height: 44px; padding: 0 17px; }
  .section-heading, .responsible-strip .shell, .game-toolbar { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-frame { min-height: 520px; height: 72vh; border-radius: 14px; }
}
