/* fawra.io — a night souq: deep violet-black, Fawra's violet for anything you press, maroon gift
   ribbons, gold for coins. One family (Readex Pro) covers Arabic and Latin. */
:root {
  --night: #0d0a19;
  --night-2: #120e22;
  --card: #1a1430;
  --card-2: #221a3d;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f5f2ff;
  --ink-soft: #b8afd4;
  --ink-faint: #8a81a8;
  --violet: #7c5cff;
  --violet-hi: #9a80ff;
  --violet-glow: rgba(124, 92, 255, .35);
  --maroon: #9e2a4f;
  --maroon-hi: #c2386a;
  --gold: #f3c552;
  --good: #3ccf91;
  /* Item classes, as in the game's store: grey, blue, violet, gold, red. */
  --cls-common: #a3abb9;
  --cls-rare: #4f9bf5;
  --cls-epic: #9a80ff;
  --cls-legendary: #f0b84a;
  --cls-mythic: #ff5f78;
  --bad: #ff6b81;
  /* The little table drawing on the custom design page. */
  --felt: #2f8a5b;
  --felt-deep: #143f2a;
  --wood: #6b4423;
  /* Store badges: white, as the App Store and Google Play badges are, with the Play colours. */
  --badge-bg: #ffffff;
  --badge-ink: #0b0b0f;
  --play-1: #00a0ff;
  --play-2: #00e676;
  --play-3: #ff3a44;
  --play-4: #ffd400;
  --radius: 16px;
  --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--night); color: var(--ink);
  font-family: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.65;
}
a { color: var(--violet-hi); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--violet-hi); outline-offset: 2px; border-radius: 8px; }
.num, .price, .coins-n { font-variant-numeric: tabular-nums; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--violet); color: #fff; transition: background-color .2s ease, box-shadow .25s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--violet-hi); box-shadow: 0 8px 24px var(--violet-glow); }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: #3a3358; color: #8f88aa; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--violet-hi); background: rgba(124, 92, 255, .08); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 42px; padding: 0 18px; border-radius: 10px; font-size: .95rem; }
.btn.lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }

/* The souq banner: the one memorable thing on every page that has it. */
.souq { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.souq::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/img/souq.webp") center 40% / cover no-repeat; }
.souq::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 10, 25, .35) 0%, rgba(13, 10, 25, .82) 70%, var(--night) 100%); }
.souq .wrap { padding-block: 44px 36px; }

/* Game card in the store banner */
.game { display: flex; gap: 18px; align-items: center; }
.game img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2); }
.game h1 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; }
.game p { margin: 4px 0 0; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; }
.chip svg { width: 16px; height: 16px; color: var(--good); }

/* Sections */
section.band { padding-block: 52px; }
section.band + section.band { border-top: 1px solid var(--line); }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 16px; }
.lead { color: var(--ink-soft); max-width: 60ch; margin: 0 0 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fact h3 { margin: 0 0 6px; font-size: 1.08rem; }
.fact p { margin: 0; color: var(--ink-soft); }
.note { font-size: .9rem; color: var(--ink-faint); }

/* Store layout */
.store { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-block: 28px 56px; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step[aria-disabled="true"] .step-body { opacity: .4; pointer-events: none; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-head .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 700; font-size: .95rem; flex: none; }
.step[aria-disabled="true"] .step-head .n { background: var(--card-2); color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line-2); }
.step-head h2 { margin: 0; font-size: 1.15rem; }

/* Player number */
.idrow { display: flex; gap: 10px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; color: var(--ink-soft); font-size: .92rem; }
input.in { font: inherit; font-size: 1.05rem; padding: 12px 14px; min-height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--night-2); color: var(--ink); width: 100%; }
input.in::placeholder { color: #5f5880; }
input.in:focus { border-color: var(--violet-hi); outline: none; box-shadow: 0 0 0 3px var(--violet-glow); }
input.code { letter-spacing: .14em; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.hint { font-size: .88rem; color: var(--ink-faint); }
.msg { margin: 8px 0 0; font-size: .92rem; min-height: 0; }
/* Said where the money is paid: SADAD payments are one way. */
.final-sale { margin: 0; padding: 10px 12px; font-size: .9rem; color: var(--ink); background: rgba(158, 42, 79, .18); border: 1px solid var(--maroon-hi); border-radius: 10px; text-wrap: pretty; }
.msg:empty { display: none; }
.msg.bad { color: var(--bad); }
.who { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(60, 207, 145, .08); border: 1px solid rgba(60, 207, 145, .3); }
.who .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-weight: 700; color: var(--violet-hi); flex: none; }
.who .meta { display: grid; line-height: 1.35; }
.who .meta small { color: var(--ink-soft); direction: ltr; text-align: start; }
.who svg { width: 22px; height: 22px; color: var(--good); margin-inline-start: auto; }

/* Pack tiles: native radios, drawn as cards. */
.packs { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.pack { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:hover { border-color: var(--line-2); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.pack img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 6px; }
.pack .coins-n { font-size: 1.35rem; font-weight: 700; color: var(--gold); line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; }
.pack .coins-n img { width: 20px; height: 20px; margin: 0; }
.pack .gift { font-size: .85rem; color: var(--ink-soft); min-height: 1.4em; }
.pack .price { margin-top: 8px; font-weight: 700; font-size: 1.05rem; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.pack .ribbon { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 9px; border-radius: 7px; background: var(--maroon); color: #fff; font-size: .78rem; font-weight: 700; }
.pack:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 10px 28px var(--violet-glow); }
.pack:has(input:checked) .price { background: var(--violet); }
.pack:has(input:focus-visible) { outline: 3px solid var(--violet-hi); outline-offset: 2px; }
.pack .tick { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); color: #fff; display: none; place-items: center; }
.pack .tick svg { width: 14px; height: 14px; }

/* Coin and gem marks. */
.ic { display: inline-block; flex: none; width: 18px; height: 18px; background: center / contain no-repeat; }
.ic.coin { background-image: url("/assets/img/coin.webp"); }
.ic.gem { background-image: url("/assets/img/gem.webp"); }
.pack .coins-n .ic { width: 20px; height: 20px; }

/* Store categories: coins, offers, VIP. */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { -webkit-tap-highlight-color: transparent; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button img, .tabs button svg { width: 22px; height: 22px; color: var(--gold); }
.tabs button:hover { color: var(--ink); border-color: var(--violet-hi); }
.tabs button[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.tabs button[aria-selected="true"] svg { color: #fff; }

/* Offer and VIP tiles: wider, art on the side. */
.packs.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pack.offer { grid-template-columns: 96px 1fr; justify-items: start; text-align: start; column-gap: 14px; align-items: center; }
.pack.offer > img { grid-row: span 4; width: 96px; height: 96px; margin: 0; }
.pack.offer .title { font-weight: 700; font-size: 1.08rem; }
.pack.offer .gets { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.pack.offer .gets span { display: inline-flex; align-items: center; gap: 5px; }
.pack.offer .gets img { width: 18px; height: 18px; margin: 0; }
.pack.offer .perks { list-style: none; margin: 2px 0 0; padding: 0; color: var(--ink-soft); font-size: .9rem; }
.pack.offer .perks li::before { content: "✓ "; color: var(--good); }
.pack.offer .price { margin-top: 6px; }
.pack .limit { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 9px; border-radius: 7px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-soft); font-size: .78rem; }
.pack.offer.has-limit { padding-top: 38px; }
.pack[data-cls="common"] { --cls: var(--cls-common); }
.pack[data-cls="rare"] { --cls: var(--cls-rare); }
.pack[data-cls="epic"] { --cls: var(--cls-epic); }
.pack[data-cls="legendary"] { --cls: var(--cls-legendary); }
.pack[data-cls="mythic"] { --cls: var(--cls-mythic); }
.pack[data-cls] { border-color: color-mix(in srgb, var(--cls) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--cls) 12%, var(--card-2)), var(--card-2) 55%); }
.pack[data-cls]:hover { border-color: color-mix(in srgb, var(--cls) 65%, transparent); }
.pack[data-cls] .limit.cls { color: var(--cls); background: color-mix(in srgb, var(--cls) 14%, var(--card)); border-color: color-mix(in srgb, var(--cls) 55%, transparent); font-weight: 700; }
.pack[data-cls]:has(input:checked) { border-color: var(--violet); }
.pack.used { opacity: .45; cursor: not-allowed; }
.pack.used:hover { border-color: var(--line); box-shadow: none; }
.pack.used .price { background: transparent; }

/* Items: filters by type, and one tile per item. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.chips button { -webkit-tap-highlight-color: transparent; flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink-soft); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chips button:hover { color: var(--ink); border-color: var(--line-2); }
.chips button[aria-pressed="true"] { color: var(--ink); border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.chips button .n { color: var(--ink-soft); font-weight: 500; margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.pack.item { padding-top: 14px; }
.pack.item > img { width: 100%; max-width: 132px; height: 112px; }
.pack.item .name { max-width: 100%; font-weight: 700; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack.item .ingame { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pack.item .ingame .ic { width: 16px; height: 16px; }
.pack.item.has-limit { padding-top: 38px; }
.pack .ring { width: 84px; height: 84px; margin: 14px auto 14px; border-radius: 50%; border: 7px solid var(--ring); box-shadow: 0 0 18px var(--ring), inset 0 0 12px var(--ring); }
.pack .voice-art { width: 84px; height: 84px; margin: 14px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--violet-hi); }
.pack .voice-art svg { width: 40px; height: 40px; }
.pack.item.owned .price { color: var(--good); background: transparent; }
.pack.item.free .price, .pack.item.off .price { color: var(--ink-soft); background: transparent; font-weight: 600; font-size: .9rem; }

/* Payment method */
.method { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--violet); box-shadow: 0 0 0 1px var(--violet); margin-bottom: 16px; }
.method .mark { padding: 0 10px; height: 38px; border-radius: 8px; background: #fff; color: #1a1430; display: grid; place-items: center; font-weight: 700; font-size: .82rem; letter-spacing: .04em; flex: none; direction: ltr; }
.method strong { display: block; }
.method small { color: var(--ink-soft); }
.method .ways { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.method .ways span { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); font-size: .78rem; color: var(--ink-soft); direction: ltr; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Order summary */
.summary { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.summary h2 { font-size: 1.1rem; margin: 0; }
.line { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.line img { width: 48px; height: 48px; object-fit: contain; }
.line .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-weight: 700; color: var(--violet-hi); flex: none; }
.line .meta { display: grid; line-height: 1.35; min-width: 0; }
.line .meta small { color: var(--ink-soft); }
.line .empty { color: var(--ink-faint); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { color: var(--ink-soft); }
.total strong { font-size: 1.6rem; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--ink-soft); }
.trust li { display: flex; gap: 8px; align-items: center; }
.trust svg { width: 16px; height: 16px; color: var(--good); flex: none; }

/* Mobile pay bar */
.paybar { display: none; }

/* Result after SADAD */
.result { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line-2); background: var(--card); }
.result.good { background: rgba(60, 207, 145, .1); border-color: rgba(60, 207, 145, .4); }
.result.bad { background: rgba(255, 107, 129, .08); border-color: rgba(255, 107, 129, .35); }
.result h2 { margin: 0 0 4px; font-size: 1.15rem; }
.result p { margin: 0; color: var(--ink-soft); }

/* Leaderboard */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; }
table.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 13px 8px; text-align: start; border-bottom: 1px solid var(--line); }
.board tr:last-child td { border-bottom: 0; }
.board th { font-size: .88rem; color: var(--ink-faint); font-weight: 500; }
.board td.pos { width: 3.5em; font-weight: 700; color: var(--ink-soft); }
.board tr.top td.pos { color: var(--gold); }
.board td.name { font-weight: 600; }

/* Support */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.04rem; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 70ch; }

/* ---------------------------------------------------------------- page shell */
main { flex: 1 0 auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--violet); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header: logo, sections, language, and the one call to action. */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(13, 10, 25, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; border-radius: 12px; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); transition: filter .25s ease; }
.brand:hover img { filter: drop-shadow(0 6px 18px rgba(124, 92, 255, .45)); }
.beta-tag { margin-inline-start: 8px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.site-nav { display: flex; align-items: center; flex: 1; min-width: 0; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; color: var(--ink-soft); text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { display: none; }
.head-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { min-height: 42px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); border-radius: 10px; padding: 0 14px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.lang:hover { border-color: var(--violet-hi); background: rgba(124, 92, 255, .08); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn path { transition: transform .2s, opacity .2s; transform-origin: center; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.region { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-soft); font-size: .86rem; }
.region b { color: var(--ink); font-weight: 600; }

/* Mascot: the same character across the site, one pose per place. */
.mascot { height: auto; flex: none; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .5)); user-select: none; pointer-events: none; }

/* Home hero: the majlis scene on the souq. */
.hero-band .wrap { padding-block: 40px 28px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
.hero-copy > p { margin: 0 0 26px; color: var(--ink-soft); max-width: 40ch; font-size: 1.1rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.hero-facts li { display: grid; line-height: 1.3; }
.hero-facts b { font-size: 1.35rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-facts span { color: var(--ink-soft); font-size: .9rem; }
.hero-art { margin: 0; position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 12% 6% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(194, 56, 106, .45), rgba(124, 92, 255, .18) 60%, transparent); filter: blur(10px); }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .55)); animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { transform: translateY(22px) scale(.97); opacity: 0; } }

/* Home: top up in three steps, with the mascot pointing at it. */
.topup { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; background: linear-gradient(120deg, var(--card-2), var(--card) 60%); border: 1px solid var(--line-2); border-radius: 24px; padding: 34px; position: relative; overflow: hidden; }
.topup::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 197, 82, .22), transparent); pointer-events: none; }
.topup h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.topup-copy > p { margin: 0 0 18px; color: var(--ink-soft); max-width: 48ch; }
.topup-art { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 260px; }
.topup-art .coins { width: min(220px, 70%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.topup-art .mascot { position: absolute; bottom: -34px; inset-inline-end: 0; width: 150px; }
[dir="ltr"] .topup-art .mascot { transform: scaleX(-1); }

/* Section heads with a mascot. */
.section-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.section-head .mascot { width: auto; height: 140px; margin-bottom: -6px; }
.section-head h2 { margin-bottom: 4px; }
.section-head .lead { margin: 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row-head h2 { margin: 0; }

/* Inner pages: a short head on the souq with the page's mascot. */
.page-head { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 85% 0%, rgba(124, 92, 255, .18), transparent 60%), radial-gradient(90% 120% at 0% 100%, rgba(158, 42, 79, .2), transparent 60%), var(--night-2); }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-top: 34px; max-width: 760px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.2; margin: 0 0 8px; }
.page-head .lead { margin: 0 0 30px; }
.page-head .mascot { width: auto; height: 156px; margin-bottom: -1px; }
section.band.tight { padding-block: 32px 56px; }
.wrap.narrow { max-width: 760px; }
.contact-title { margin-top: 40px; }

/* Store banner mascot and the result after paying. */
.souq .wrap:has(.store-mascot) { position: relative; padding-inline-end: 150px; }
.store-mascot { position: absolute; inset-inline-end: 0; bottom: -2px; width: 120px; }
[dir="ltr"] .store-mascot { transform: scaleX(-1); }
.result { display: flex; align-items: center; gap: 16px; }
.result-mascot { width: 64px; height: auto; flex: none; }
.board-empty { display: grid; justify-items: center; gap: 8px; padding: 24px 8px; text-align: center; color: var(--ink-soft); }
.board-empty img { width: 92px; height: auto; }

/* Footer: a closing call, four columns, then the fine print. */
.site-foot { margin-top: 56px; padding-top: 40px; background: linear-gradient(180deg, var(--night) 0%, #0a0815 100%); border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .94rem; }
.foot-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 30px; border-radius: 24px; background: linear-gradient(100deg, rgba(124, 92, 255, .22), rgba(158, 42, 79, .2)); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.foot-mascot { width: 112px; height: auto; align-self: end; margin-top: -46px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45)); }
.foot-cta-text { padding-block: 26px; }
.foot-cta h2 { margin: 0 0 4px; font-size: 1.4rem; color: var(--ink); }
.foot-cta p { margin: 0; color: var(--ink-soft); }
.foot-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 26px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px 30px; }
.foot-brand { display: grid; gap: 12px; justify-items: start; align-content: start; }
.foot-brand img { height: 64px; width: auto; }
.foot-brand p { margin: 0; color: var(--ink-soft); max-width: 34ch; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h3 { margin: 0 0 4px; color: var(--ink); font-size: 1rem; }
.foot-col a { color: var(--ink-soft); text-decoration: none; width: fit-content; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 18px 26px; border-top: 1px solid var(--line); }
.foot-base p { margin: 0; }
.foot-base .fine { flex: 1; min-width: 240px; }
.foot-base .paid b { color: var(--ink-soft); letter-spacing: .06em; }

/* ---------------------------------------------------------------- motion: calm, and only once */
html { scroll-behavior: smooth; }
/* Page changes cross-fade (browsers that support it; the others simply load the page). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }
.site-head { transition: background-color .25s ease, box-shadow .25s ease; }
.site-head.scrolled { background: rgba(13, 10, 25, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
/* The active section's underline grows in. */
.nav-links a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--maroon-hi)); transform: scaleX(0); transition: transform .25s ease; }
.nav-links a:hover::after { transform: scaleX(.5); opacity: .6; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
/* Images below the first screen fade in once loaded. */
.js img[loading="lazy"] { opacity: 0; transition: opacity .45s ease; }
.js img[loading="lazy"].loaded { opacity: 1; }
/* Sections rise in softly the first time they come into view; children follow one after another. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* Choices answer the tap. */
.pack .tick { transform: scale(.4); opacity: 0; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), opacity .15s ease; display: grid; }
.pack:has(input:checked) .tick { transform: none; opacity: 1; }
.tabs button, .chips button, .lang, .menu-btn, .foot-col a, .nav-links a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
/* FAQ answers open smoothly. */
.faq details p { animation: none; }
.faq details[open] p { animation: open .3s ease both; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--violet-hi); }
/* The mascot breathes: a slow 4px float, never a shake. */
@keyframes float { 50% { translate: 0 -4px; } }
.mascot, .foot-mascot { animation: float 5.5s ease-in-out infinite; }
.topup-art .coins { animation: float 6.5s ease-in-out infinite .8s; }

@media (max-width: 1080px) {
  .head-row { gap: 16px; }
  .head-cta { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-art { order: -1; max-width: 560px; justify-self: center; width: 100%; }
  .hero-copy { text-align: center; display: grid; justify-items: center; }
  .hero-copy > p { max-width: 44ch; }
  .hero .actions, .hero-facts { justify-content: center; }
  .topup { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .topup-art { min-height: 200px; order: -1; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .head-row { min-height: 64px; gap: 10px; }
  .brand img { height: 44px; }
  .menu-btn { display: grid; }
  .head-tools { margin-inline-start: auto; }
  /* Phones: the sections open as a panel under the header. */
  .site-nav { position: fixed; inset-inline: 0; top: 64px; z-index: 39; display: grid; gap: 12px; padding: 14px var(--gutter) 20px; background: rgba(13, 10, 25, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility 0s .18s; }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .18s, transform .18s; box-shadow: 0 24px 40px rgba(0, 0, 0, .5), 0 0 0 100vmax rgba(5, 4, 12, .55); }
  .nav-links { display: grid; gap: 2px; }
  .nav-links a { padding: 14px 12px; font-size: 1.08rem; border-radius: 12px; }
  .nav-links a[aria-current="page"] { background: rgba(124, 92, 255, .14); }
  .nav-links a[aria-current="page"]::after { inset-inline: auto 12px; inset-block: 14px; width: 3px; height: auto; }
  [dir="ltr"] .nav-links a[aria-current="page"]::after { inset-inline: auto 12px; }
  .nav-cta { display: inline-flex; }
  .hero-band .wrap { padding-block: 18px 26px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .section-head .mascot { height: 104px; }
  .page-head-row { padding-top: 24px; }
  .page-head .mascot { height: 118px; }
  .page-head .lead { margin-bottom: 22px; }
  .souq .wrap:has(.store-mascot) { padding-inline-end: 0; }
  .store-mascot { display: none; }
  .site-foot { margin-top: 40px; padding-top: 34px; }
  .foot-cta { grid-template-columns: auto minmax(0, 1fr); padding: 0 16px; gap: 0 14px; border-radius: 20px; }
  .foot-mascot { width: 80px; grid-row: span 2; margin-top: -30px; }
  .foot-cta-text { padding-block: 18px 12px; }
  .foot-cta h2 { font-size: 1.2rem; }
  .foot-cta-actions { padding-block: 0 18px; }
  .foot-cta-actions .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; padding-block: 32px 22px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .lang { padding: 0 10px; }
  .foot-cta-actions .btn.ghost { display: none; }
}

@media (max-width: 960px) {
  .store { grid-template-columns: minmax(0, 1fr); }
  body[data-page="store"] .site-foot { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .summary { position: static; }
  .summary .btn { display: none; }
  .paybar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(18, 14, 34, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); }
  .paybar .sum { display: grid; line-height: 1.3; margin-inline-end: auto; }
  .paybar .sum small { color: var(--ink-soft); }
  .paybar .sum strong { font-size: 1.25rem; }
  .paybar .btn { min-width: 46%; }
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .packs.wide { grid-template-columns: 1fr; }
  /* Phones: the six categories in two rows of three, icon over label, like an app's tab bar. */
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tabs button { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 2px; border-radius: 14px; font-size: .8rem; }
  .pack.item > img { height: 96px; }
  .chips { gap: 6px; }
  .chips button { min-height: 36px; padding: 0 11px; font-size: .82rem; }
  .tabs button img, .tabs button svg { width: 22px; height: 22px; }
  .pack img { width: 84px; height: 84px; }
  .two { grid-template-columns: 1fr; }
  .board .hide-sm { display: none; }
  .game img { width: 64px; height: 64px; border-radius: 16px; }
}
/* Short names: an ad for the rare 2 and 3 letter names, and a bar that turns green or red. */
.names-shop { display: grid; gap: 14px; }
.names-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); }
.names-hero h3 { margin: 0 0 4px; font-size: 1.15rem; }
.names-hero p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.names-badge { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(243, 197, 82, .12); border: 1px solid rgba(243, 197, 82, .35); }
.names-badge svg { width: 30px; height: 30px; color: var(--gold); }
.names-prices { display: flex; gap: 10px; flex-wrap: wrap; }
.name-price { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.name-price b { font-weight: 600; color: var(--ink-soft); }
.name-price .price { color: var(--gold); font-weight: 700; }
.name-bar { position: relative; }
.name-bar .in { font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; text-align: center; padding-inline: 52px; }
.name-mark { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transition: opacity .2s ease, background-color .2s ease; }
.name-mark svg { width: 18px; height: 18px; color: #fff; display: none; }
.name-bar[data-state="good"] .in { border-color: var(--good); box-shadow: 0 0 0 3px rgba(60, 207, 145, .22); }
.name-bar[data-state="bad"] .in { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 107, 129, .2); }
.name-bar[data-state="good"] .name-mark { opacity: 1; background: var(--good); }
.name-bar[data-state="bad"] .name-mark { opacity: 1; background: var(--bad); }
.name-bar[data-state="good"] .ok, .name-bar[data-state="bad"] .no { display: block; }
.name-bar[data-state="ask"] .in { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 197, 82, .2); }
.name-status.ask { color: var(--gold); }
.name-price.ask .price { color: var(--ink-soft); font-weight: 600; }
.name-ask { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(243, 197, 82, .07); border: 1px solid rgba(243, 197, 82, .3); }
.name-ask p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.name-ask .btn { justify-self: start; }
.msg.good { color: var(--good); }
.name-status { margin: 0; min-height: 1.6em; font-weight: 600; color: var(--ink-soft); }
.name-status.good { color: var(--good); }
.name-status.bad { color: var(--bad); }
/* Custom designs: how it works, the two kinds, the picture drop, and the player's requests. */
.how-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.how-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.how-chips .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 700; font-size: .8rem; }
/* The home page's top-up steps: the same chips, one under another, with room before the button. */
.how-chips.stacked { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 24px; }
.how-chips .n { flex: none; }
.custom { display: grid; gap: 18px; max-width: 860px; padding-block: 28px 56px; }
.custom .design { display: grid; gap: 18px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kind { position: relative; display: grid; justify-items: center; gap: 6px; padding: 18px 12px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; text-align: center; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind small { color: var(--ink-soft); font-size: .85rem; }
.kind:has(input:checked) { border-color: var(--violet-hi); box-shadow: 0 0 0 3px var(--violet-glow); }
.kind:has(input:focus-visible) { outline: 2px solid var(--violet-hi); outline-offset: 2px; }
.kind-art { width: 120px; height: 80px; border-radius: 14px; }
.kind-art.felt { background: radial-gradient(ellipse at center, var(--felt) 0%, var(--felt-deep) 100%); box-shadow: inset 0 0 0 5px var(--wood); }
.kind-art.back { width: 58px; height: 84px; border-radius: 8px; background: repeating-linear-gradient(45deg, var(--maroon) 0 6px, var(--maroon-hi) 6px 12px); box-shadow: inset 0 0 0 4px #fff; }
.kind-art.frame { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold), var(--violet-hi), var(--maroon-hi), var(--gold)); }
.kind-art.frame span { width: 62px; height: 62px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-2); }
.label { font-weight: 500; color: var(--ink-soft); font-size: .92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drop { display: grid; place-items: center; min-height: 180px; border-radius: var(--radius); border: 2px dashed var(--line-2); background: var(--night-2); cursor: pointer; overflow: hidden; }
.drop:hover, #pic:focus-visible + .hint, .drop:focus-within { border-color: var(--violet-hi); }
.drop img { width: 100%; max-height: 320px; object-fit: contain; }
.drop-empty { display: grid; justify-items: center; gap: 8px; color: var(--ink-soft); padding: 20px; }
.drop-empty svg { width: 40px; height: 40px; color: var(--gold); }
textarea.in { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--night-2); color: var(--ink); width: 100%; resize: vertical; min-height: 110px; }
textarea.in:focus { border-color: var(--violet-hi); outline: none; box-shadow: 0 0 0 3px var(--violet-glow); }
.note-free { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: rgba(60, 207, 145, .08); border: 1px solid rgba(60, 207, 145, .3); color: var(--ink); font-size: .92rem; }
.mine { margin-top: 18px; }
.mine h3 { margin: 0 0 10px; font-size: 1.05rem; }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mine-none { color: var(--ink-soft); }
.mine-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.mine-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; }
.mine-body { min-width: 0; flex: 1; display: grid; gap: 4px; }
.mine-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mine-top .status { font-size: .82rem; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ink-soft); }
.st-ready .status, .st-paid .status, .st-delivered .status { background: rgba(60, 207, 145, .14); color: var(--good); }
.st-declined .status { background: rgba(255, 107, 129, .12); color: var(--bad); }
.mine-desc { margin: 0; color: var(--ink-soft); font-size: .9rem; overflow-wrap: anywhere; }
.mine-note { margin: 0; font-size: .9rem; color: var(--gold); }
.mine-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.mine-pay .price { color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .kinds { gap: 8px; } .kind { padding: 14px 6px; } .kind-art { width: 72px; height: 50px; } .kind-art.back { width: 40px; height: 58px; } .kind-art.frame { width: 58px; height: 58px; } .kind-art.frame span { width: 42px; height: 42px; } .mine-item img { width: 72px; height: 72px; } }
/* App Store / Google Play badges. */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 18px 6px 14px; border-radius: 12px; background: var(--badge-bg); color: var(--badge-ink); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s ease, box-shadow .2s ease; }
.store-badge[href]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .32); }
.store-badge:focus-visible { outline: 3px solid var(--violet-hi); outline-offset: 3px; }
.sb-logo { width: 28px; height: 28px; flex: none; }
.sb-apple { fill: var(--badge-ink); }
.sb-p1 { fill: var(--play-1); } .sb-p2 { fill: var(--play-2); } .sb-p3 { fill: var(--play-3); } .sb-p4 { fill: var(--play-4); }
.sb-text { display: grid; line-height: 1.1; text-align: start; }
.sb-text small { font-size: .72rem; font-weight: 500; }
.sb-text b { font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.sb-soon { display: none; position: absolute; top: -9px; inset-inline-end: -6px; padding: 1px 9px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: .72rem; font-weight: 600; }
.store-badge.soon { cursor: default; }
.store-badge.soon .sb-soon { display: block; }
@media (max-width: 760px) { .foot-cta-actions .badges { width: 100%; } .badges .store-badge { flex: 1 1 0; justify-content: center; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js img[loading="lazy"] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
