/* Oasis Arcade — desert oasis palette */
:root {
  --sand: #F3E5C4;
  --sand-deep: #E8D5A8;
  --sand-dune: #D4B896;
  --palm: #2D6A4F;
  --palm-dark: #1B4332;
  --palm-light: #40916C;
  --terracotta: #C45C26;
  --terracotta-soft: #D97B4A;
  --terracotta-dim: rgba(196, 92, 38, 0.2);
  --text-primary: #2C2416;
  --text-muted: #6B5A42;
  --text-light: #F3E5C4;
  --card-bg: rgba(255, 252, 245, 0.88);
  --header-h: 68px;
  --radius-card: 20px;
  --radius-card-lg: 24px;
  --radius-organic-a: 26px 18px 22px 20px;
  --radius-organic-b: 18px 26px 20px 22px;
  --radius-img: 14px;
  --font-display: "Cairo", "Segoe UI", sans-serif;
  --font-ui: "Tajawal", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background: var(--sand);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(45, 106, 79, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 15% 75%, rgba(196, 92, 38, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 30% at 88% 60%, rgba(212, 184, 150, 0.5) 0%, transparent 50%),
    linear-gradient(175deg, #F8F0D8 0%, var(--sand) 35%, var(--sand-deep) 100%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, rgba(196, 92, 38, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 15%, rgba(45, 106, 79, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 88%, rgba(196, 92, 38, 0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--palm); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(860px, 92vw);
  margin-inline: auto;
}

.container--wide {
  width: min(1040px, 94vw);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(243, 229, 196, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(45, 106, 79, 0.15);
  box-shadow: 0 2px 16px rgba(44, 36, 22, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1040px, 94vw);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(45, 106, 79, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--palm-dark);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.geo-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--palm);
  color: var(--text-light);
  white-space: nowrap;
}

/* ── Hero (centered oasis) ── */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--palm-dark);
  margin-bottom: 1rem;
  max-width: 28ch;
  margin-inline: auto;
}

.hero-title em {
  font-style: normal;
  color: var(--terracotta);
  position: relative;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero-featured-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.featured-blob {
  position: relative;
  width: min(380px, 90vw);
  background: var(--card-bg);
  border-radius: var(--radius-card-lg);
  padding: 1rem;
  box-shadow:
    0 8px 32px rgba(45, 106, 79, 0.12),
    0 2px 8px rgba(196, 92, 38, 0.08);
  border: 2px solid rgba(45, 106, 79, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-blob:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 40px rgba(45, 106, 79, 0.18),
    0 4px 12px rgba(196, 92, 38, 0.1);
}

.featured-blob__img {
  border-radius: var(--radius-img);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.featured-blob__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-blob__img:hover img {
  transform: scale(1.04);
}

.featured-blob__body {
  padding: 1.1rem 0.5rem 0.25rem;
  text-align: center;
}

.featured-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--terracotta-dim);
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.featured-blob__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--palm-dark);
  margin-bottom: 0.25rem;
}

.featured-blob__genre {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.featured-blob__play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--palm) 0%, var(--palm-light) 100%);
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.featured-blob__play:hover {
  background: linear-gradient(135deg, var(--palm-dark) 0%, var(--palm) 100%);
  transform: scale(1.03);
}

/* ── Palm frond divider ── */
.palm-divider {
  display: block;
  width: 100%;
  height: 56px;
  color: var(--palm);
  opacity: 0.55;
  margin: 1.5rem 0;
}

/* ── Sections ── */
.section {
  padding: 2.5rem 0 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--palm-dark);
  margin-bottom: 0.4rem;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── Well list (vertical) ── */
.well-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.well-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1.25rem;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(45, 106, 79, 0.1);
  box-shadow: 0 4px 20px rgba(44, 36, 22, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.well-card:nth-child(even) {
  border-radius: var(--radius-organic-b);
}

.well-card:nth-child(odd) {
  border-radius: var(--radius-organic-a);
}

.well-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 106, 79, 0.12);
}

.well-card__thumb {
  flex: 0 0 148px;
  width: 148px;
  border-radius: var(--radius-img);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  align-self: center;
}

.well-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.well-card__thumb:hover img {
  transform: scale(1.06);
}

.well-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: start;
}

.well-card__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--terracotta);
  opacity: 0.8;
  margin-bottom: 0.15rem;
}

.well-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--palm-dark);
  margin-bottom: 0.2rem;
}

.well-card__genre {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.well-card__play {
  align-self: flex-start;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}

.well-card__play:hover {
  background: var(--terracotta-soft);
}

/* ── Gems scroll (horizontal) ── */
.gems-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--palm) var(--sand-deep);
}

.gems-scroll::-webkit-scrollbar {
  height: 6px;
}

.gems-scroll::-webkit-scrollbar-track {
  background: var(--sand-deep);
  border-radius: 999px;
}

.gems-scroll::-webkit-scrollbar-thumb {
  background: var(--palm);
  border-radius: 999px;
}

.gem-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid rgba(196, 92, 38, 0.15);
  box-shadow: 0 6px 24px rgba(196, 92, 38, 0.1);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gem-card:hover {
  transform: translateY(-3px);
}

.gem-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
}

.gem-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gem-card__img:hover img {
  transform: scale(1.05);
}

.gem-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gem-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
}

.gem-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--palm-dark);
  margin-bottom: 0.35rem;
}

.gem-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.gem-card__btn {
  align-self: flex-start;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--palm);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
  margin-top: auto;
}

.gem-card__btn:hover {
  background: var(--palm-dark);
}

/* ── Steps (ابدأ الآن) ── */
.steps-well {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.25rem;
  border-inline-start: 4px solid var(--palm);
  box-shadow: 0 3px 16px rgba(44, 36, 22, 0.05);
}

.step-row:nth-child(2) {
  border-inline-start-color: var(--terracotta);
}

.step-row:nth-child(3) {
  border-inline-start-color: var(--palm-light);
}

.step-row__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand-deep) 0%, var(--sand) 100%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--palm-dark);
  border: 2px solid rgba(45, 106, 79, 0.2);
}

.step-row h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--palm-dark);
  margin-bottom: 0.2rem;
}

.step-row p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  background: var(--palm-dark);
  color: var(--text-light);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--sand);
}

.site-footer a:hover {
  color: var(--terracotta-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .brand-name {
  color: var(--text-light);
}

.footer-brand .brand-tagline {
  color: rgba(243, 229, 196, 0.65);
}

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: rgba(243, 229, 196, 0.75);
  line-height: 1.7;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--sand);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(243, 229, 196, 0.8);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 229, 196, 0.15);
  font-size: 0.78rem;
  color: rgba(243, 229, 196, 0.6);
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 200;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  background: var(--palm-dark);
  color: var(--text-light);
  border-radius: 16px;
  box-shadow: 0 -4px 24px rgba(27, 67, 50, 0.3);
  border: 1px solid rgba(243, 229, 196, 0.12);
}

.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(243, 229, 196, 0.9);
}

.cookie-text a {
  color: var(--sand);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.cookie-btn--accept {
  background: var(--palm-light);
  color: var(--text-light);
}

.cookie-btn--accept:hover {
  background: var(--palm);
}

.cookie-btn--decline {
  background: transparent;
  color: var(--sand);
  border: 1.5px solid rgba(243, 229, 196, 0.35);
}

.cookie-btn--decline:hover {
  border-color: var(--sand);
}

/* ── Game modal ── */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 67, 50, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.game-modal__dialog {
  width: min(960px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.4);
  border: 2px solid rgba(45, 106, 79, 0.2);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.game-modal.is-open .game-modal__dialog {
  transform: scale(1);
}

.game-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--palm-dark);
  color: var(--text-light);
}

.game-modal__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.game-modal__close {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(243, 229, 196, 0.12);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: background 0.2s;
}

.game-modal__close:hover {
  background: var(--terracotta);
}

.game-modal__frame-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
}

.game-modal__frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Legal pages ── */
.legal-page {
  padding: 2.5rem 0 3rem;
}

.legal-back {
  display: inline-block;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  color: var(--palm);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--palm-dark);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--palm);
  margin: 1.75rem 0 0.6rem;
}

.legal-page p {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.8;
}

.legal-page ul {
  margin: 0.5rem 0 1rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.8;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-page code {
  font-size: 0.82rem;
  background: var(--sand-deep);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--terracotta);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .geo-pill { display: none; }

  .well-card {
    flex-direction: column;
    padding: 1rem;
    border-radius: var(--radius-card);
  }

  .well-card__thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 2rem; }
  .brand-tagline { display: none; }
  .game-modal__frame-wrap { aspect-ratio: 4 / 3; }
}
