/*
Theme Name: 22 World
Theme URI: https://22world.it.com/
Author: 22 World
Description: A modern blue entertainment theme for 22 World.
Version: 1.0.0
Text Domain: twenty-two-world
*/

:root {
  --ink: #07152c;
  --muted: #60718a;
  --line: rgba(24, 104, 190, 0.15);
  --blue: #1678e8;
  --blue-dark: #0957b8;
  --cyan: #42d7ee;
  --paper: #f4f9ff;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(10, 62, 120, 0.14);
}

* { 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.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 0;
  color: var(--white);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: -0.04em; font-size: 24px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; background: rgba(255,255,255,.12); box-shadow: inset 0 1px rgba(255,255,255,.35); }
.header-note { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.hero {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
  padding: 130px 0 90px;
  color: var(--white);
  background: #082b62;
  isolation: isolate;
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: -18px;
  content: "";
  background: var(--hero-image) center / cover no-repeat;
  filter: blur(6px) saturate(.8);
  transform: scale(1.04);
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, rgba(4,21,51,.93) 4%, rgba(6,48,104,.78) 48%, rgba(5,31,72,.66)), linear-gradient(to top, #f4f9ff 0, transparent 23%);
}
.hero-content { max-width: 700px; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); color: #cdefff; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(48px, 8vw, 92px); line-height: .98; letter-spacing: -.065em; }
.hero p { max-width: 560px; margin: 26px 0 32px; color: rgba(255,255,255,.8); font-size: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 12px 26px rgba(5,80,175,.28); font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(5,80,175,.38); }
.button-light { color: #0754a8; background: var(--white); box-shadow: 0 12px 30px rgba(1,35,78,.2); }

.games-section { padding: 86px 0 104px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -.055em; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card { position: relative; min-height: 330px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: #082b62; box-shadow: var(--shadow); isolation: isolate; }
.game-card img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(to top, rgba(2,18,45,.95), rgba(2,18,45,.06) 65%); }
.game-card:hover img { transform: scale(1.035); }
.game-card-content { position: absolute; inset: auto 22px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-card h3 { margin: 0; color: var(--white); font-size: 21px; line-height: 1.15; letter-spacing: -.035em; }
.game-card .button { flex: 0 0 auto; min-height: 42px; padding: 0 17px; font-size: 13px; }

.game-page { min-height: 100vh; padding: 112px 0 54px; color: var(--white); background: radial-gradient(circle at 70% 0%, #0d5eb1 0, transparent 35%), #061a36; }
.game-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.game-topline h1 { margin: 0; font-size: clamp(28px, 5vw, 46px); letter-spacing: -.05em; }
.back-link { color: #b8dafb; font-weight: 800; text-decoration: none; }
.game-frame-wrap { overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: #020b17; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.game-frame { display: block; width: 100%; height: min(76vh, 820px); min-height: 560px; border: 0; background: #020b17; }

.legal-page { padding: 140px 0 80px; background: var(--white); }
.legal-card { max-width: 820px; margin: 0 auto; padding: 38px; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.legal-card h1 { margin-top: 0; font-size: clamp(36px, 6vw, 58px); letter-spacing: -.055em; }
.legal-card h2 { margin-top: 32px; }
.legal-card p, .legal-card li { color: var(--muted); }

.site-footer { padding: 54px 0 32px; color: #bdcce0; background: #06162d; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; }
.footer-title { margin: 0 0 14px; color: var(--white); font-size: 20px; }
.site-footer p { max-width: 760px; margin: 0 0 14px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #d9eaff; font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #7f96b3; font-size: 13px; }

@media (max-width: 900px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 360px; }
  .section-heading, .footer-grid { display: block; }
  .section-heading p { margin-top: 16px; }
  .footer-grid > div + div { margin-top: 28px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-note { display: none; }
  .hero { min-height: 610px; padding-top: 120px; }
  .hero p { font-size: 16px; }
  .games-section { padding: 66px 0 78px; }
  .game-card { min-height: 270px; }
  .game-card-content { inset: auto 16px 16px; }
  .game-card h3 { font-size: 17px; }
  .game-topline { align-items: flex-start; flex-direction: column-reverse; }
  .game-frame { height: 70vh; min-height: 480px; }
  .legal-card { padding: 24px; }
}
