:root {
  --majorelle: #5557D3;
  --majorelle-deep: #3F41B0;
  --saffron: #F1A537;
  --terracotta: #C3563F;
  --mint: #49A48A;
  --cream: #FAEDDA;
  --ink: #1E1B2E;
  --page: #FAEDDA;
  --text: #1E1B2E;
  --muted: #5E5670;
  --panel: #FFF7EC;
  --line: #E6D6BC;
  --link: #3F41B0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #17152A;
    --text: #F6ECDD;
    --muted: #C3B9D6;
    --panel: #221F38;
    --line: #34304F;
    --link: #B9BBFF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.05; margin: 0; }

/* Header */
.site-header { background: var(--majorelle); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.01em; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 700; }
.site-nav a:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--majorelle); color: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding-block: 56px 88px; }
.hero h1 { font-size: clamp(56px, 9vw, 112px); font-weight: 800; letter-spacing: 0.005em; }
.hero .arabic { text-align: left; font-family: "Baloo Bhaijaan 2", "Baloo 2", sans-serif; font-weight: 700; font-size: clamp(30px, 4.4vw, 48px); color: var(--saffron); margin: 6px 0 0; line-height: 1.3; }
.hero p.lead { font-size: clamp(19px, 2.1vw, 23px); max-width: 32ch; margin: 22px 0 32px; color: #FFF4E3; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 18px; text-decoration: none; }
.button.primary { background: var(--saffron); color: var(--ink); }
.button.primary:hover { background: #F7B95A; }
.button.ghost { color: var(--cream); box-shadow: inset 0 0 0 2px rgba(250, 237, 218, 0.7); }
.button.ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.hero-mark { position: relative; display: flex; justify-content: center; }
.hero-mark::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; top: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(241, 165, 55, 0.45), rgba(241, 165, 55, 0) 68%); animation: glow 4.5s ease-in-out infinite; }
.hero-mark img { position: relative; width: min(100%, 440px); height: auto; }
@keyframes glow { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-mark::before { animation: none; opacity: 0.8; } }

/* Games */
.section { padding-block: 80px; }
.section h2 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; }
.section .intro { color: var(--muted); max-width: 52ch; margin: 10px 0 40px; }

.games { display: flex; flex-direction: column; gap: 28px; }
.game { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; background: var(--panel); border-radius: 32px; padding: 28px; border: 1px solid var(--line); }
.game:nth-child(even) { grid-template-columns: 1fr 300px; }
.game:nth-child(even) .art { order: 2; }
.art { border-radius: 24px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.art svg { width: 82%; height: auto; }
.art.target { background: #F3D7E8; }
.art.shelf { background: #E9D2B4; }
.art.lantern { background: #26245A; }
.game h3 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.game p { margin: 10px 0 20px; max-width: 54ch; }
.status { display: inline-block; font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: rgba(73, 164, 138, 0.16); color: #1F6B55; margin-top: 8px; }
@media (prefers-color-scheme: dark) { .status { color: #8FE0C6; } }
.store-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 800; text-decoration: none; }
@media (prefers-color-scheme: dark) { .store-link { background: var(--cream); color: var(--ink); } }
.store-link:hover { opacity: 0.9; }

.game p.policy-link { margin: 14px 0 0; font-size: 15px; }

/* About */
.about { background: var(--panel); border-block: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about p { margin: 0 0 16px; max-width: 54ch; }

/* Footer */
.site-footer { padding-block: 40px 56px; color: var(--muted); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Document pages (privacy, 404) */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; margin-bottom: 8px; }
.doc h2 { font-size: 28px; font-weight: 800; margin: 40px 0 10px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: "Baloo 2", sans-serif; font-size: 17px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 64px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 220px; }
  .game, .game:nth-child(even) { grid-template-columns: 1fr; }
  .game:nth-child(even) .art { order: 0; }
  .about .wrap { grid-template-columns: 1fr; gap: 8px; }
  body { font-size: 17px; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 4px; }
  .site-nav { gap: 18px; font-size: 16px; flex-wrap: nowrap; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
}

/* Game page: Target Drop (/target-drop/) */
.button.ghost-ink { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(30, 27, 46, 0.55); }
.button.ghost-ink:hover { box-shadow: inset 0 0 0 2px var(--ink); }

.td-hero { background: linear-gradient(160deg, #BFE6FF 0%, #E9D6F5 50%, #F8C5DF 100%); color: var(--ink); overflow: hidden; }
.td-hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; padding-block: 48px 64px; }
.td-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 14px 30px -14px rgba(62, 26, 78, 0.6); display: block; margin-bottom: 18px; }
.td-hero h1 { font-size: clamp(52px, 8vw, 96px); font-weight: 800; color: #3E1A4E; }
.td-tagline { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); color: #C2347E; margin: 4px 0 0; line-height: 1.2; }
.td-hero p.lead { font-size: clamp(18px, 2vw, 21px); max-width: 36ch; margin: 18px 0 28px; color: #3A2F4F; }
.td-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.td-facts li { font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: #3E1A4E; }
.td-hero-phone { display: flex; justify-content: center; }

.phone { width: min(100%, 300px); aspect-ratio: 9 / 16; padding: 9px; border-radius: 40px; background: #1E1B2E; box-shadow: 0 26px 60px -26px rgba(30, 27, 46, 0.7); }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: #F3D7E8; }
.phone.small { width: 100%; padding: 6px; border-radius: 26px; }
.phone.small video { border-radius: 20px; }

.td-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.td-steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.td-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--saffron); color: var(--ink); font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; }
.td-steps h3, .td-cards h3, .td-feature h3, .td-clips h3 { font-size: 24px; font-weight: 800; margin-top: 12px; }
.td-steps p, .td-cards p, .td-clips p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

.td-band { background: var(--panel); border-block: 1px solid var(--line); }

.td-shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.td-shots a { display: block; border-radius: 18px; }
.td-shots img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 12px 28px -18px rgba(30, 27, 46, 0.7); }

.td-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.td-cards li { background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--terracotta); border-radius: 22px; padding: 18px 22px 22px; }
.td-cards li:nth-child(2) { border-top-color: var(--saffron); }
.td-cards li:nth-child(3) { border-top-color: var(--mint); }
.td-cards li:nth-child(4) { border-top-color: var(--majorelle); }
.td-cards li:nth-child(5) { border-top-color: #C2347E; }
.td-cards li:nth-child(6) { border-top-color: var(--saffron); }
.td-cards h3 { margin-top: 4px; }

.td-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.td-feature { background: var(--page); border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px; }
.td-feature h3 { margin: 0 0 8px; }
.td-feature ul { margin: 0; padding-left: 20px; }
.td-feature li { margin-bottom: 6px; }
.td-feature p { margin: 0; }

.td-clips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.td-clips h3 { font-size: 21px; }
.td-more { margin: 28px 0 0; font-weight: 700; }

.td-cta { background: var(--majorelle); color: var(--cream); }
.td-cta .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-block: 44px; }
.td-cta img { width: 96px; height: 96px; border-radius: 22px; }
.td-cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.td-cta p { margin: 8px 0 0; color: #FFF4E3; max-width: 52ch; }

.td-small { padding-block: 40px 8px; color: var(--muted); font-size: 16px; }
.td-small p { margin: 0 0 8px; }

/* Home page: the Target Drop card shows the real app icon */
.art.target img { width: 50%; max-width: 150px; height: auto; border-radius: 22%; box-shadow: 0 14px 28px -14px rgba(62, 26, 78, 0.6); }
.game h3 a { color: inherit; text-decoration: none; }
.game h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.more-link { display: inline-block; margin-left: 14px; font-weight: 800; }

@media (max-width: 1000px) {
  .td-steps { grid-template-columns: 1fr 1fr; }
  .td-cards { grid-template-columns: 1fr 1fr; }
  .td-clips { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .td-hero .wrap { grid-template-columns: 1fr; padding-block: 32px 48px; gap: 32px; }
  .td-hero-phone .phone { width: min(78%, 280px); }
  .td-icon { width: 88px; height: 88px; border-radius: 21px; }
  .td-steps, .td-cards, .td-features { grid-template-columns: 1fr; }
  .td-shots, .td-clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 250px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; }
  .td-shots li, .td-clips li { scroll-snap-align: start; }
  .td-cta .wrap { grid-template-columns: 1fr; justify-items: start; }
  .more-link { display: block; margin: 12px 0 0; }
}

/* Game page: Shelf Life (/shelf-life/); reuses the Target Drop page layout */
.sl-hero { background: linear-gradient(160deg, #FFF1D6 0%, #F9D9A8 52%, #F1B26B 100%); }
.sl-hero h1 { color: #4A2716; }
.sl-hero .td-tagline { color: #B4532A; }
.sl-hero p.lead { color: #4B3A2C; }
.sl-hero .td-facts li { color: #4A2716; }
.sl-hero .td-icon { box-shadow: 0 14px 30px -14px rgba(90, 50, 20, 0.6); }
.sl-hero .phone video { background: #E9D2B4; }
.sl-soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: #1F6B55; font-weight: 800; font-size: 17px; }
.td-cta .sl-soon { background: var(--cream); color: var(--ink); }
.td-shots.sl-eight { grid-template-columns: repeat(4, 1fr); }
.art.shelf img { width: 50%; max-width: 150px; height: auto; border-radius: 22%; box-shadow: 0 14px 28px -14px rgba(90, 50, 20, 0.6); }
@media (max-width: 820px) {
  .td-shots.sl-eight { grid-template-columns: none; }
}

/* Game page: Lantern Chain (/lantern-chain/); reuses the Target Drop page layout on a night sky */
.lc-hero { background: radial-gradient(circle at 78% 34%, rgba(241, 165, 55, 0.28), rgba(241, 165, 55, 0) 42%), linear-gradient(165deg, #17143A 0%, #2B2552 55%, #3B2E66 100%); color: var(--cream); }
.lc-hero h1 { color: #FFE2A6; text-shadow: 0 0 28px rgba(241, 165, 55, 0.35); }
.lc-hero .td-tagline { color: var(--saffron); }
.lc-hero p.lead { color: #E9E1F4; }
.lc-hero .td-facts li { background: rgba(250, 237, 218, 0.12); color: var(--cream); }
.lc-hero .td-icon { box-shadow: 0 14px 34px -12px rgba(241, 165, 55, 0.55); }
.lc-hero .phone { box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(250, 237, 218, 0.12); }
.lc-hero .phone video, .td-clips.lc-clips .phone video { background: #2B2552; }
.lc-soon { background: rgba(241, 165, 55, 0.16); color: #FFD38A; box-shadow: inset 0 0 0 1px rgba(241, 165, 55, 0.45); }
.lc-note { color: var(--muted); font-weight: 700; max-width: 62ch; }
.art.lantern img { width: 50%; max-width: 150px; height: auto; border-radius: 22%; box-shadow: 0 14px 28px -12px rgba(241, 165, 55, 0.5); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.email-card { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 24px; margin-top: 8px; }
.email-label { margin: 0; color: var(--muted); font-weight: 700; }
.email-big { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: clamp(18px, 5vw, 30px); margin: 4px 0 16px; overflow-wrap: break-word; white-space: nowrap; }
.button.small { min-height: 46px; padding: 0 20px; font-size: 16px; border: none; cursor: pointer; font-family: inherit; }
.button.outline { color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.button.outline:hover { box-shadow: inset 0 0 0 2px var(--text); }
button.button { border: none; cursor: pointer; font-family: inherit; }
button.button:disabled { opacity: 0.6; cursor: wait; }
.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 800; font-size: 16px; }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--text); background: var(--page); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--majorelle); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 700; }
.form-status.success { color: #1F6B55; }
.form-status.error { color: #A3412E; }
@media (prefers-color-scheme: dark) { .form-status.success { color: #8FE0C6; } .form-status.error { color: #FFB4A3; } }
.form-note { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } .field-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }
