:root { --radius: 12px; --border: 1px solid #e5e7eb; --bg: #0b0b0c; }

/* Base */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; overflow-x: hidden; }

/* Shared */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.embed-section { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.embed-title { font: 600 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0 0 12px; color: #111827; }

/* 1) Simple responsive iframe with aspect-ratio */
.iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;           /* Modern browsers */
  background: var(--bg);
  border-radius: var(--radius);
  border: var(--border);
  overflow: hidden;
}
/* Fallback for browsers without aspect-ratio */
.iframe-container::before {
  content: "";
  display: block;
  padding-top: 56.25%;          /* 16:9 fallback */
}
.iframe-container > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0;
}

/* 2) Advanced: height auto-adjust via postMessage (initially 62vh) */
.iframe-advanced {
  --iframe-height: 62vh;
  width: 100%;
  background: var(--bg);
  border-radius: var(--radius);
  border: var(--border);
  overflow: hidden;
}
.iframe-advanced > iframe {
  display: block;
  width: 100%;
  height: var(--iframe-height);
  border: 0;
}

/* Fallback link styling */
.fallback {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; border: 1px dashed #d1d5db;
  color: #065f46; background: #ecfdf5; text-decoration: none; font: 500 14px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Header */
.site-header { background: #0f172a; color: #f8fafc; border-bottom: 1px solid #0b1220; }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.site-header__logo { height: clamp(40px, 6vw, 72px); width: auto; display: block; }
.header-cta { margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; }
.btn--green { background: #10b981; color: #062a23; border-color: #0ea5a0; box-shadow: 0 4px 14px rgba(16,185,129,.35) inset, 0 6px 18px rgba(0,0,0,.12); color: #052e2b; }
.btn--green:hover { background: #0ea5a0; }
.btn--green:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; }
.site-header__banner { display: block; width: 100%; height: auto; object-fit: cover; object-position: center 35%; border-radius: var(--radius); margin: 0; }

/* Hero banner wrapper and CTA overlay */
.hero-banner { position: relative; max-width: 1200px; margin: 8px auto; padding: 0 16px; }
.hero-banner__cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.cta-panel { pointer-events: auto; text-align: center; padding: 14px 16px; border-radius: 14px; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,.18); backdrop-filter: saturate(120%) blur(4px); box-shadow: 0 8px 24px rgba(0,0,0,.28); max-width: 90vw; }
.cta-text { margin: 0 0 10px; color: #f8fafc; font: 700 clamp(14px, 3.5vw, 22px)/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.cta-button {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px;
  color: #f8fafc; text-decoration: none; font: 600 16px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: rgba(15, 23, 42, .72); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.cta-button:hover { background: rgba(15, 23, 42, .82); }
.cta-button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 24px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 16px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; align-items: center; }
.pay-item { display: flex; align-items: center; justify-content: center; padding: 8px; background: rgba(255,255,255,.02); border: 1px solid rgba(148,163,184,.25); border-radius: 10px; }
.pay-item img { max-height: 28px; width: auto; display: block; filter: grayscale(0) contrast(1.05); }

@media (max-width: 640px) {
  .pay-grid { grid-template-columns: repeat(3, 1fr); }
  .pay-item img { max-height: 24px; }
}

/* Content */
.content-section { max-width: 1200px; margin: 24px auto; padding: 0 16px; color: #111827; font: 400 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.content-section h1, .content-section h2, .content-section h3 { color: #0b0b0c; line-height: 1.25; margin: 1.25em 0 .5em; }
.content-section p { margin: .75em 0; }
.content-spacer { height: 16px; }
.phones-inline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 10px 0 18px; }
.phones-inline img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; padding: 6px; }
.content-section ol, .content-section ul { padding-left: 1.2em; }
.content-section table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.content-section td, .content-section th { border: 1px solid #e5e7eb; padding: 8px; text-align: left; vertical-align: top; }
.content-section a { color: #1d4ed8; }

/* Mobile table responsiveness: allow horizontal scroll within container while body is locked */
.content-section table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content-section table thead, .content-section table tbody, .content-section table tr { display: table; width: 100%; table-layout: fixed; }

/* Media gallery */
.media-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0; }
.media-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.media-card__img { display: block; width: 100%; height: auto; }
.media-card__cap { margin: 8px 12px 12px; color: #4b5563; font: 500 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

@media (min-width: 768px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
}

/* Smartphone carousel */
/* (carousel styles retained unused) */

/* Phones row */
.phones-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.phone-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.phone-card img { display: block; width: 100%; height: auto; }

@media (max-width: 768px) {
  .phones-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .phone-card { padding: 10px; border-radius: 14px; }
}

/* Laptop float with text wrap */
.figure-float { float: right; width: min(46%, 440px); margin: 8px 0 12px 16px; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.figure-float img { display: block; width: 100%; height: auto; }
.figure-float figcaption { margin: 8px 12px 12px; color: #4b5563; font: 500 13px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

@media (max-width: 768px) {
  .figure-float { float: none; width: 100%; margin: 12px 0; }
}

@media (max-width: 640px) {
  .embed-section, .content-section { padding: 0 12px; }
}

@media (max-width: 640px) {
  #game-iframe { min-height: 520px; }
}

/* Offers list (above footer) */
.offers { max-width: 1200px; margin: 28px auto; padding: 0 16px; }
.offer-card { display: grid; grid-template-columns: 260px 1fr 280px; align-items: center; gap: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.offer-logo { display: grid; place-items: center; background: #f3f4f6; border-radius: 10px; height: 160px; border: 1px solid #e5e7eb; }
.offer-logo img { max-width: 90%; max-height: 120px; object-fit: contain; display: block; }
.offer-logo .placeholder { font: 700 28px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #111827; }
.offer-info { color: #111827; }
.offer-info .stars { color: #f59e0b; letter-spacing: 1px; font-size: 16px; }
.offer-info .review { color: #1d4ed8; text-decoration: none; margin-left: 8px; font-weight: 600; }
.offer-info .subtitle { margin-top: 8px; font: 600 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #0f172a; }
.offer-cta { display: grid; justify-items: end; }
.btn--cta { display: inline-grid; place-items: center; width: 100%; min-height: 64px; border-radius: 12px; background: #22c3ff; color: #fff; text-decoration: none; font: 800 18px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; box-shadow: 0 6px 18px rgba(34,195,255,.35); }
.btn--cta:hover { background: #0ea5e9; }
.btn--sub { margin-top: 6px; color: #0ea5e9; font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

@media (max-width: 980px) {
  .offer-card { grid-template-columns: 1fr; justify-items: stretch; text-align: left; }
  .offer-cta { justify-items: stretch; }
}

