/*
Theme Name: SpinPulse
Theme URI: https://spinpulse.it.com/
Author: SpinPulse
Description: A clean social games theme for SpinPulse.
Version: 1.0.0
Text Domain: spinpulse
*/

:root {
  --ink: #10233f;
  --muted: #52677e;
  --blue: #1677d2;
  --blue-dark: #0b569f;
  --blue-pale: #eaf7ff;
  --yellow: #ffd85a;
  --yellow-dark: #eab522;
  --white: #fff;
  --line: rgba(19, 104, 172, .14);
  --shadow: 0 18px 55px rgba(20, 84, 139, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fdff 0%, #eef9ff 50%, #fffdf5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { min-height: 100vh; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 253, 255, .9);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.04em;
  font-size: 1.35rem;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 7px 18px rgba(234, 181, 34, .25);
}
.brand em { color: var(--blue); font-style: normal; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}
.nav a:hover { color: var(--blue-dark); }
.age-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: .76rem;
  font-weight: 850;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 610px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -2;
  background: url("assets/Hero.png") center / cover no-repeat;
  filter: blur(8px) saturate(.75);
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(244, 251, 255, .98) 0%, rgba(244, 251, 255, .91) 44%, rgba(244, 251, 255, .36) 100%);
}
.hero-content { padding: 100px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(22, 119, 210, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.075em;
}
.hero h1 span { color: var(--blue); }
.hero-copy {
  max-width: 610px;
  margin: 24px 0 32px;
  color: #38536f;
  font-size: clamp(1rem, 2vw, 1.16rem);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(234, 181, 34, .28);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #ffe17b; box-shadow: 0 16px 32px rgba(234, 181, 34, .36); }
.games { padding: 86px 0 105px; }
.section-head { max-width: 650px; margin-bottom: 30px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.055em; }
.section-head p { margin: 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(5, 25, 48, .82) 100%);
}
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover img { transform: scale(1.035); }
.game-overlay {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}
.game-overlay h3 { margin: 0; color: var(--white); font-size: 1.35rem; line-height: 1.1; letter-spacing: -.03em; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.game-overlay .button { min-height: 44px; padding: 0 16px; white-space: nowrap; font-size: .88rem; }
.game-page { padding: 45px 0 75px; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.game-top h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.05em; }
.back-link { color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.iframe-shell {
  overflow: hidden;
  width: 100%;
  min-height: min(76vh, 850px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #08182c;
  box-shadow: var(--shadow);
}
.iframe-shell iframe { display: block; width: 100%; min-height: min(76vh, 850px); border: 0; }
.legal-page { max-width: 820px; padding: 80px 0 100px; }
.legal-page h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.06em; }
.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.66); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.site-footer h2 { margin: 0 0 10px; font-size: 1rem; }
.site-footer p { margin: 0 0 12px; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 16px; align-content: start; justify-content: end; }
.footer-links a { color: var(--blue-dark); font-size: .82rem; font-weight: 750; text-decoration: none; }
.copyright { margin-top: 26px !important; opacity: .72; }

@media (max-width: 900px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 26px, 1160px); }
  .header-inner { min-height: 66px; }
  .nav a:not(.age-pill) { display: none; }
  .hero { min-height: 530px; }
  .hero-content { padding: 78px 0; }
  .hero::after { background: rgba(244, 251, 255, .82); }
  .games { padding: 62px 0 75px; }
  .game-card { min-height: 290px; }
  .game-overlay { inset: auto 14px 14px; }
  .game-overlay h3 { font-size: 1.05rem; }
  .game-top { align-items: start; flex-direction: column-reverse; }
  .iframe-shell, .iframe-shell iframe { min-height: 68vh; border-radius: 15px; }
}
