/*
Theme Name: 22 Play
Theme URI: https://22play.it.com/
Author: 22 Play
Description: A focused social games theme for 22 Play.
Version: 1.0.0
Text Domain: twenty-two-play
*/

:root {
  --ink: #17352b;
  --muted: #557066;
  --cream: #fbfdf4;
  --surface: #ffffff;
  --green: #7dbd53;
  --green-dark: #315f43;
  --lime: #dff2a8;
  --yellow: #f5d968;
  --line: rgba(49, 95, 67, 0.16);
  --shadow: 0 24px 70px rgba(38, 83, 58, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 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: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 95, 67, 0.18);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--lime), var(--yellow));
  box-shadow: 0 9px 25px rgba(125, 189, 83, 0.25);
}
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}
.age-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 900;
}
.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  position: absolute;
  inset: -22px;
  z-index: -3;
  background: var(--hero-image) center 42% / cover no-repeat;
  filter: blur(7px) saturate(0.75);
  transform: scale(1.05);
  content: "";
}
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(19, 54, 42, 0.92), rgba(27, 73, 52, 0.58) 52%, rgba(21, 58, 44, 0.2)),
    linear-gradient(0deg, var(--cream) 0%, transparent 32%);
  content: "";
}
.hero-content { padding: 92px 0 116px; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 19px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.6rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}
.hero p {
  max-width: 560px;
  margin: 25px 0 31px;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow), var(--lime));
  box-shadow: 0 15px 35px rgba(223, 242, 168, 0.22);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 19px 38px rgba(223, 242, 168, 0.34); }
.games-section { padding: 88px 0 112px; }
.section-heading { margin-bottom: 34px; }
.section-heading span { color: var(--green-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.065em; }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.game-card img { width: 100%; height: 100%; min-height: 370px; object-fit: cover; transition: transform 500ms ease; }
.game-card:hover img { transform: scale(1.035); }
.game-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 45, 34, 0.86));
  content: "";
}
.game-card-content {
  position: absolute;
  inset: auto 25px 24px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.game-card h3 { margin: 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -0.05em; }
.game-card .button { min-height: 46px; padding: 0 19px; flex: none; }
.game-stage { padding: 42px 0 72px; }
.game-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.game-stage h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.06em; }
.back-link { color: var(--green-dark); font-weight: 900; text-decoration: none; }
.iframe-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #10291f;
  box-shadow: var(--shadow);
}
.iframe-wrap iframe { width: 100%; height: min(78vh, 820px); min-height: 620px; display: block; border: 0; }
.content-page { max-width: 830px; min-height: 55vh; padding: 72px 0 100px; }
.content-page h1 { margin: 0 0 24px; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.07em; }
.content-page h2 { margin-top: 32px; }
.site-footer {
  padding: 62px 0 34px;
  border-top: 1px solid var(--line);
  background: #edf5dc;
}
.footer-grid { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 42px; }
.footer-title { margin: 0; font-size: 1.35rem; letter-spacing: -0.035em; }
.footer-copy { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.footer-links a { color: var(--green-dark); font-size: 0.85rem; font-weight: 900; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 26px, 1160px); }
  .header-inner { min-height: 68px; }
  .top-nav a { display: none; }
  .hero { min-height: 540px; }
  .hero-content { padding: 74px 0 92px; }
  .hero h1 { font-size: clamp(3.4rem, 21vw, 5.6rem); }
  .games-grid, .footer-grid { grid-template-columns: 1fr; }
  .games-section { padding: 64px 0 78px; }
  .game-card, .game-card img { min-height: 300px; }
  .game-card-content { inset: auto 17px 17px; align-items: start; flex-direction: column; }
  .game-stage-head { align-items: start; flex-direction: column-reverse; }
  .iframe-wrap { border-radius: 18px; }
  .iframe-wrap iframe { min-height: 70vh; }
}
