/* Jawak Play public site. Brand: plum velvet + champagne gold. One family (Noto Sans Arabic, OFL). */
@font-face { font-family: "Jawak"; src: url("fonts/jawak-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jawak"; src: url("fonts/jawak-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jawak"; src: url("fonts/jawak-800.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --velvet: #160B22;
  --plum: #241238;
  --plum-2: #2E1848;
  --gold: #E9C27B;
  --gold-hi: #FBDC62;
  --gold-deep: #B8812F;
  --ivory: #FFF4DE;
  --lilac: #C2B2D9;
  --lilac-2: #8F7CAB;
  --live: #3DDC84;
  --line: rgba(233, 194, 123, 0.18);
  --wrap: 1120px;
  --r-lg: 28px;
  --r-md: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--velvet);
  color: var(--ivory);
  font-family: "Jawak", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--gold-hi); color: #241238; padding: 10px 16px; border-radius: 12px; font-weight: 800; z-index: 20; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(22, 11, 34, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--lilac); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ivory); }
.lang { text-decoration: none; color: var(--lilac); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.lang:hover { color: var(--ivory); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; }
.btn-gold { background: linear-gradient(180deg, #FFEFA8 0%, var(--gold-hi) 45%, #E3A93A 100%); color: #2A1405; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 24px rgba(0,0,0,0.35); }
.btn-ghost { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.btn[aria-disabled="true"] { cursor: default; }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; line-height: 1.2; }
.btn span.two { display: flex; flex-direction: column; line-height: 1.25; }
.store-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Hero: the majlis table */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(50% 45% at 30% 45%, rgba(154, 106, 214, 0.32), transparent 70%), radial-gradient(40% 35% at 80% 20%, rgba(251, 220, 98, 0.10), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .gold { background: linear-gradient(180deg, #FFF0B8, var(--gold) 55%, #C98A1E); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.hero p.lead { margin: 22px 0 0; max-width: 34em; font-size: 19px; color: var(--lilac); }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--lilac); font-size: 15px; font-weight: 600; }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.table { position: relative; aspect-ratio: 1 / 0.86; }
.table .top-oval { position: absolute; inset: 14% 4% 10%; border-radius: 50%; background: radial-gradient(60% 60% at 50% 40%, #4A2470 0%, #2E1848 55%, #1C0E2C 100%); box-shadow: inset 0 0 0 3px rgba(233,194,123,0.55), inset 0 0 0 9px rgba(36,18,56,0.9), inset 0 0 0 10px rgba(233,194,123,0.25), inset 0 -30px 60px rgba(0,0,0,0.45), 0 40px 80px rgba(0,0,0,0.55); transform: perspective(900px) rotateX(48deg); }
.table img { position: absolute; width: 25%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 16px 20px rgba(0,0,0,0.55)); }
.table .g-ludo { top: 20%; left: 29%; width: 42%; z-index: 3; filter: drop-shadow(0 26px 30px rgba(0,0,0,0.6)); }
.table .g-carrom { top: 9%; left: 5%; z-index: 2; }
.table .g-jackaroo { top: 9%; right: 5%; z-index: 2; }
.table .g-domino { bottom: 3%; left: 9%; z-index: 4; }
.table .g-baloot { bottom: 3%; right: 9%; z-index: 4; }
.table .live { position: absolute; top: 2%; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(22,11,34,0.85); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(61,220,132,0.18); }

@media (prefers-reduced-motion: no-preference) {
  .table img { animation: settle 700ms cubic-bezier(.2,.8,.2,1) both; }
  .table .g-jackaroo { animation-delay: 80ms; } .table .g-carrom { animation-delay: 160ms; }
  .table .g-baloot { animation-delay: 240ms; } .table .g-domino { animation-delay: 320ms; }
  @keyframes settle { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
}

/* Sections */
section.block { padding: 96px 0; border-top: 1px solid var(--line); }
.block h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; font-weight: 800; }
.block .sub { margin: 14px 0 0; max-width: 38em; color: var(--lilac); font-size: 18px; }

/* Rooms */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stage { padding: 28px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--plum-2), var(--plum)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 60px rgba(0,0,0,0.4); }
.stage .room-name { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 18px; }
.stage .room-name span:last-child { font-size: 14px; color: var(--lilac); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.host { margin: 26px auto 22px; width: 92px; text-align: center; }
.seat { position: relative; width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #241238; }
.host .seat { width: 84px; height: 84px; font-size: 28px; background: linear-gradient(160deg, #FFEBA6, #D9A441); box-shadow: 0 0 0 3px var(--plum-2), 0 0 0 5px var(--gold); }
.seat-name { margin-top: 8px; font-size: 13px; color: var(--lilac); font-weight: 600; white-space: nowrap; }
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
.seats .s { text-align: center; }
.seats .seat { background: rgba(255,255,255,0.08); color: var(--lilac); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10); }
.seats .on .seat { background: linear-gradient(160deg, #C9B4F0, #7E55BE); color: #1C0E2C; }
.seats .talk .seat { box-shadow: 0 0 0 3px var(--plum), 0 0 0 5px var(--live); }
.seats .free .seat svg { width: 22px; height: 22px; }
.points { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(233,194,123,0.12); color: var(--gold); }
.points .ic svg { width: 20px; height: 20px; }
.points b { display: block; font-size: 17px; }
.points span { color: var(--lilac); font-size: 16px; }

/* Games */
.games-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.free-note { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(61,220,132,0.10); color: #9AF2C4; font-weight: 700; font-size: 15px; }
.free-note svg { width: 18px; height: 18px; }
.games { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game { position: relative; padding: 18px 16px 20px; border-radius: var(--r-md); background: radial-gradient(90% 70% at 50% 30%, rgba(154,106,214,0.22), transparent 70%), var(--plum); text-align: center; }
.game img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,0.5)); }
.game h3 { margin: 8px 0 4px; font-size: 22px; font-weight: 800; }
.game .modes { font-size: 14px; color: var(--lilac); font-weight: 600; }

/* Gifts + diamonds */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ledger { border-radius: var(--r-lg); padding: 8px 24px; background: var(--plum); }
.ledger .row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ledger .row:last-child { border-bottom: 0; }
.ledger .gem { width: 44px; height: 44px; display: grid; place-items: center; }
.ledger b { display: block; font-size: 18px; }
.ledger span { color: var(--lilac); font-size: 16px; }

/* Safety */
.safety { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.safety h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 800; }
.safety p { margin: 0; color: var(--lilac); font-size: 16px; }
.safety .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(233,194,123,0.12); color: var(--gold); }
.safety .ic svg { width: 24px; height: 24px; }

/* FAQ */
.faq { margin-top: 32px; max-width: 820px; }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--lilac); max-width: 44em; }

/* Closing band */
.closing { padding: 96px 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(50% 80% at 50% 100%, rgba(154,106,214,0.25), transparent 70%); }
.closing img { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 24px; }
.closing h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.closing p { margin: 12px auto 30px; color: var(--lilac); max-width: 30em; }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--lilac-2); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { color: var(--lilac); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--ivory); }

/* Document pages (privacy, terms, delete account) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { margin: 0; font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.2; }
.doc .updated { margin: 10px 0 0; color: var(--lilac-2); font-size: 15px; }
.doc .intro { margin: 22px 0 0; font-size: 19px; color: var(--lilac); }
.doc h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 800; }
.doc h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 700; }
.doc p, .doc li { color: #E6DAF2; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.doc .toc { margin: 32px 0 0; padding: 20px 24px; border-radius: var(--r-md); background: var(--plum); }
.doc .toc ol { margin: 0; columns: 2; column-gap: 32px; }
.doc .toc a { text-decoration: none; color: var(--lilac); font-weight: 600; }
.doc .toc a:hover { color: var(--ivory); }
.doc a { color: var(--gold); }
.doc .steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.doc .steps li { counter-increment: s; position: relative; display: block; min-height: 76px; padding: 20px 18px; padding-inline-start: 78px; border-radius: var(--r-md); background: var(--plum); margin: 0; }
.doc .steps li::before { content: counter(s); position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(233,194,123,0.14); color: var(--gold-hi); font-weight: 800; font-size: 18px; }
.note { margin: 28px 0 0; padding: 18px 20px; border-radius: var(--r-md); background: rgba(233,194,123,0.08); box-shadow: inset 0 0 0 1px var(--line); }
.note p { margin: 0; }

/* Small pages (payment return, 404) */
.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.center img { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 26px; }
.center h1 { margin: 0; font-size: 32px; font-weight: 800; }
.center p { color: var(--lilac); margin: 10px 0 26px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .rooms, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .table { max-width: 560px; margin: 0 auto; width: 100%; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .safety { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section.block, .closing { padding: 64px 0; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .games .game:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
  .safety { grid-template-columns: 1fr; gap: 26px; }
  .doc .toc ol { columns: 1; }
  .top .btn { display: none; }
  .stage { padding: 20px 14px; }
  .seat { width: 52px; height: 52px; }
}
