/*
Theme Name: Spin Legend
Theme URI: https://spinlegend.it.com/
Author: Spin Legend
Description: A bright, modern social games theme.
Version: 1.0.0
Text Domain: spinlegend
*/

:root {
  --ink: #302910;
  --muted: #746b45;
  --cream: #fffdf4;
  --sun: #f6c845;
  --sun-deep: #dda51f;
  --line: #eadca8;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(95, 73, 8, 0.14);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(218, 188, 83, 0.36);
  background: rgba(255, 253, 244, 0.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: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e3bd3a;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff8c8, #f3c43b);
  box-shadow: 0 8px 20px rgba(162, 122, 12, 0.18);
  font-size: 17px;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.age-pill {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink) !important;
}

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -18px;
  z-index: -3;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  filter: blur(8px) saturate(.72) brightness(.72);
  transform: scale(1.035);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(35, 29, 8, .86), rgba(47, 37, 5, .38) 55%, rgba(33, 27, 7, .64)),
    linear-gradient(0deg, var(--cream), transparent 32%);
}
.hero-copy { max-width: 720px; padding: 120px 0 105px; color: var(--white); }
.eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 650px;
  margin: 20px 0 16px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero p { max-width: 560px; margin: 0 0 30px; color: #fff9db; font-size: 18px; }
.primary-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #e2b83c;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1a3, #f6c844);
  box-shadow: 0 12px 28px rgba(25, 19, 0, .26);
  color: #362b06;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover,
.play-button:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(25, 19, 0, .32); }

.games-section { padding: 70px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: -.055em; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e4c95f;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(28, 22, 3, .86), transparent 58%);
}
.game-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform .45s ease;
}
.game-card:hover img { transform: scale(1.035); }
.game-card-content {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.game-card h3 { margin: 0; color: var(--white); font-size: 23px; line-height: 1.1; letter-spacing: -.035em; text-shadow: 0 2px 12px rgba(0,0,0,.48); }
.play-button { min-height: 44px; padding: 0 17px; white-space: nowrap; }

.game-main { min-height: calc(100vh - 76px); padding: 34px 0 70px; background: #f8f2d7; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.game-bar h1 { margin: 0; font-size: clamp(27px, 5vw, 44px); letter-spacing: -.05em; }
.back-link { color: var(--muted); font-weight: 800; text-decoration: none; }
.game-frame-wrap {
  overflow: hidden;
  border: 1px solid #dec568;
  border-radius: 24px;
  background: #17140b;
  box-shadow: var(--shadow);
}
.game-frame { display: block; width: 100%; height: min(78vh, 850px); min-height: 620px; border: 0; background: #17140b; }

.policy-main { padding: 70px 0 100px; }
.policy-card { max-width: 840px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.policy-card h1 { margin-top: 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.055em; }
.policy-card h2 { margin-top: 34px; }
.policy-card p, .policy-card li { color: var(--muted); }

.site-footer { padding: 54px 0 30px; border-top: 1px solid var(--line); background: #f4e9ba; }
.footer-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; }
.footer-title { margin: 0 0 12px; font-size: 18px; }
.site-footer p { margin: 0 0 14px; color: #625a39; font-size: 13px; }
.support-links, .legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: #4a421f; font-size: 13px; font-weight: 800; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(105, 88, 26, .18); color: #766b43; font-size: 12px; }

@media (max-width: 900px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-card, .game-card img { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 640px) {
  .site-nav a:not(.age-pill) { display: none; }
  .hero { min-height: 540px; }
  .hero-copy { padding: 100px 0 75px; }
  .section-heading { align-items: start; flex-direction: column; }
  .game-card-content { align-items: flex-start; flex-direction: column; }
  .game-bar { align-items: flex-start; flex-direction: column-reverse; }
  .game-frame { min-height: 72vh; }
  .policy-card { padding: 24px; }
}
