:root {
  --ink: #15120e;
  --muted: #6f655b;
  --paper: #fdf7ec;
  --paper-2: #f4eee1;
  --line: rgba(21, 18, 14, 0.12);
  --felt: #0c3a30;
  --felt-2: #0a2e26;
  --felt-deep: #06231d;
  --green: #128a68;
  --green-dark: #073d34;
  --red: #c73636;
  --gold: #f2c14e;
  --gold-deep: #d7a63f;
  --blue: #2a4f93;
  --plum: #5b3b6f;
  --shadow: 0 30px 80px rgba(7, 32, 27, 0.28);
  --shadow-card: 0 18px 46px rgba(21, 18, 14, 0.12);
  --radius: 16px;
  --display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; }

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 30;
  width: auto; height: auto;
  clip: auto;
  top: 16px; left: 16px;
  padding: 12px 16px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 32px;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-solid {
  background: rgba(8, 35, 29, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--felt-deep);
  background: var(--gold);
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 18px; font-family: var(--display); }
.brand small { color: rgba(255, 255, 255, 0.74); font-size: 12px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-cta {
  margin-left: 8px;
  color: var(--felt-deep) !important;
  background: var(--gold);
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(242, 193, 78, 0.35);
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: #f7cf6a !important;
  color: var(--felt-deep) !important;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Buttons & store badges ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }

.button-primary {
  color: var(--felt-deep);
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(242, 193, 78, 0.32);
}
.button-primary:hover, .button-primary:focus-visible { background: #f7cf6a; }

.button-secondary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(18, 138, 104, 0.3);
}
.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.section-contact .button-ghost {
  color: var(--ink);
  background: rgba(21, 18, 14, 0.05);
  border: 1px solid var(--line);
}

.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  border-radius: 12px;
  background: #0b0b0d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.store-badge:hover, .store-badge:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.36);
}
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge span { display: grid; line-height: 1; text-align: left; }
.store-badge small { font-size: 11px; letter-spacing: 0.06em; opacity: 0.82; }
.store-badge strong { font-family: var(--display); font-size: 19px; font-weight: 700; margin-top: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 132px 32px 72px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(18, 138, 104, 0.5), transparent 60%),
    linear-gradient(160deg, var(--felt) 0%, var(--felt-2) 48%, var(--felt-deep) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(242, 193, 78, 0.14), transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(199, 54, 54, 0.12), transparent 42%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.hero-content { max-width: 620px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-copy {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.hero-trust span {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

/* Hero phones */
.hero-media {
  position: relative;
  height: 520px;
}
.phone {
  position: absolute;
  width: 248px;
  aspect-ratio: 9 / 19.5;
  padding: 8px;
  background: linear-gradient(160deg, #2a2a2e, #131316);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.phone::after {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 26px;
}
.phone-front { left: 28%; top: 30px; z-index: 3; transform: rotate(-3deg); }
.phone-back { right: 2%; top: 6px; z-index: 2; transform: rotate(6deg) scale(0.94); opacity: 0.96; }
.phone-side { left: 0; bottom: 0; z-index: 1; transform: rotate(-8deg) scale(0.82); opacity: 0.8; }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 30px 32px 36px;
  text-align: center;
  background: var(--felt-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.logo-strip p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo-row a {
  display: inline-flex;
  border-radius: 14px;
  transition: transform 200ms ease;
}
.logo-row a:hover,
.logo-row a:focus-visible {
  transform: translateY(-4px) scale(1.04);
  outline: none;
}
.logo-row a:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.logo-row img {
  width: 60px; height: 60px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- Sections ---------- */
.section { padding: 92px 32px; }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.section-light { background: var(--paper); }
.section-dark {
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(18, 138, 104, 0.4), transparent 60%),
    var(--felt-2);
}
.section-contact { background: var(--paper-2); }

.section-heading { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-heading h2,
.split-layout h2,
.contact-panel h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-heading .eyebrow { text-align: center; }
.section-heading p:not(.eyebrow),
.split-layout p,
.contact-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.section-dark p { color: rgba(255, 255, 255, 0.76); }

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(21, 18, 14, 0.18);
}
.game-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 4;
  background: var(--accent, var(--green));
}

.game-shot {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--felt-2);
  border-bottom: 1px solid var(--line);
}
.game-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.soon-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(91, 59, 111, 0.92);
  border-radius: 999px;
}

.game-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.game-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(21, 18, 14, 0.18);
}
.game-type {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.game-card h3 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.15;
}
.game-card p:not(.game-type) {
  margin: 14px 0 0;
  color: #544d46;
  font-size: 15px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
.tag-list li {
  padding: 6px 10px;
  color: #4a4038;
  background: rgba(242, 193, 78, 0.16);
  border: 1px solid rgba(242, 193, 78, 0.34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--green);
  transition: transform 160ms ease, background-color 160ms ease;
}
.game-copy .card-cta { margin-top: auto; }
.game-copy p + .tag-list + .card-cta,
.game-copy .tag-list { /* keep spacing tidy */ }
.card-cta span { transition: transform 200ms ease; }
.card-cta:hover, .card-cta:focus-visible {
  background: var(--green-dark);
  outline: none;
}
.card-cta:hover span { transform: translateX(4px); }
.card-cta.is-disabled {
  color: var(--muted);
  background: rgba(21, 18, 14, 0.06);
  border: 1px dashed var(--line);
  cursor: default;
}

/* per-game accent */
.theme-hearts { --accent: var(--red); }
.theme-spades { --accent: var(--blue); }
.theme-callbreak { --accent: #1c1c1c; }
.theme-bray { --accent: #df4a44; }
.theme-whist { --accent: var(--green); }
.theme-twentynine { --accent: var(--gold-deep); }
.theme-tarneeb { --accent: var(--plum); }
.theme-hokm { --accent: #b0413c; }
.theme-hokm .card-cta { background: #b0413c; }
.theme-hokm .card-cta:hover { background: #8f322e; }
.theme-hearts .card-cta,
.theme-bray .card-cta { background: var(--red); }
.theme-hearts .card-cta:hover,
.theme-bray .card-cta:hover { background: #a82a2a; }
.theme-spades .card-cta { background: var(--blue); }
.theme-spades .card-cta:hover { background: #1f3c72; }

/* ---------- Studio split ---------- */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.split-layout .button { margin-top: 28px; }
.split-layout .eyebrow { text-align: left; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.values-grid div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}
.values-grid strong, .values-grid span { display: block; }
.values-grid strong { font-family: var(--display); font-size: 19px; font-weight: 700; }
.values-grid span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.section-cta {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(242, 193, 78, 0.16), transparent 60%),
    linear-gradient(160deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: #fff;
}
.cta-panel { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-panel .eyebrow { text-align: center; }
.cta-panel p { color: rgba(255, 255, 255, 0.82); }
.cta-panel .hero-actions { justify-content: center; }
.cta-note {
  margin-top: 20px !important;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 40px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.contact-panel .eyebrow { color: var(--gold-deep); }
.contact-panel .contact-actions { justify-content: flex-end; margin-top: 0; }
.contact-panel p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  color: #fff;
  background: var(--felt-deep);
}
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { font-family: var(--display); }
.site-footer span { margin-top: 4px; color: rgba(255, 255, 255, 0.66); font-size: 14px; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-decoration: none;
}
.site-footer a:hover, .site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

/* ---------- Privacy policy page ---------- */
.policy-page {
  min-height: 100vh;
  padding-top: 70px;
  background: var(--paper);
}
.policy-hero {
  padding: 74px 32px 44px;
  color: #fff;
  background: linear-gradient(160deg, var(--felt) 0%, var(--felt-deep) 100%);
}
.policy-hero div, .policy-content {
  width: min(900px, 100%);
  margin: 0 auto;
}
.policy-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.policy-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}
.policy-content { padding: 54px 32px 80px; }
.policy-content h2 { margin: 36px 0 0; font-size: 24px; line-height: 1.2; }
.policy-content p, .policy-content li {
  color: #4d4740;
  font-size: 16px;
  line-height: 1.75;
}
.policy-content ul { padding-left: 22px; }
.policy-content a { color: var(--green); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { height: 440px; max-width: 520px; margin: 0 auto; width: 100%; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-panel .contact-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .site-header { min-height: 60px; padding: 10px 16px; background: rgba(8, 35, 29, 0.92); backdrop-filter: blur(14px); }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 60px; left: 12px; right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(8, 35, 29, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 4px; }

  .hero { padding: 104px 18px 56px; }
  .hero-media { height: 380px; }
  .phone { width: 188px; }
  .phone-front { left: 22%; }
  .store-badge { flex: 1 1 auto; justify-content: center; }

  .logo-row { gap: 12px; }
  .logo-row img { width: 50px; height: 50px; }

  .section { padding: 60px 18px; }
  .games-grid, .values-grid { grid-template-columns: 1fr; }
  .game-shot { aspect-ratio: 16 / 10; }

  .contact-panel { padding: 26px; }
  .site-footer { display: block; padding: 28px 18px; }
  .site-footer nav { justify-content: flex-start; margin-top: 18px; }

  .policy-hero { padding: 54px 18px 34px; }
  .policy-content { padding: 40px 18px 64px; }
}

@media (max-width: 420px) {
  .hero-media { height: 320px; }
  .phone { width: 160px; }
  .hero-trust { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
