/* سمّار — الهوية «صحرا مرحة»: رمل فاتح، أخضر، سماوي، أصفر، وردي، وبني (نفس متجر سلة) */
@font-face {
  font-family: "Sammar Logo";
  src: url("/brand/fonts/sammar-logo.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0627, U+0631, U+0633, U+0645, U+0651;
}
:root {
  --night: #fbefd9;   /* خلفية الصفحة */
  --night2: #fff8ec;  /* لوحات داخلية */
  --card: #ffffff;
  --card2: #f6e8cf;
  --line: #e8dcc4;
  --line2: #d6c29e;
  --sand: #2e1d14;    /* لون النص */
  --muted: #6b5444;
  --ember: #0f7b5f;   /* الأخضر الأساسي */
  --ember2: #0b6a51;
  --coral: #f38ba0;   /* الوردي */
  --teal: #3ba4e8;    /* السماوي */
  --sun: #ffcf3f;     /* الأصفر */
  --good: #0f7b5f;
  --bad: #d2453d;
  --on-acc: #ffffff;
  --shadow: 0 1px 2px rgba(46,29,20,.05), 0 6px 18px rgba(46,29,20,.06);
  --r: 18px;
  --display: "Rubik", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --logo: "Sammar Logo", "Rubik", "IBM Plex Sans Arabic", sans-serif;
  color-scheme: light;
}
/* لون اللعبة للنصوص: أغمق شوي عشان يتقرا على الرملي */
* { box-sizing: border-box; --acc-ink: color-mix(in srgb, var(--acc, var(--ember)) 58%, #2e1d14); }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 520px at 50% 118%, rgba(255,207,63,.22), transparent 70%),
    radial-gradient(900px 420px at 0% -12%, rgba(59,164,232,.08), transparent 70%),
    var(--night);
  background-attachment: fixed;
  color: var(--sand);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--ember); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide, [hidden] { display: none !important; }

/* شعار سمّار: رمز السدو + الاسم */
.logo { font-family: var(--logo); font-weight: 700; font-size: 1.6rem; line-height: 1.25; color: var(--sand); text-decoration: none; display: inline-flex; align-items: center; gap: .38em; }
.logo::before { content: ""; flex: none; width: 1.12em; height: 1.12em; background: url("/brand/sammar-mark.svg") center / contain no-repeat; }
/* شريط السدو */
.sadu { height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 9'%3E%3Cpath d='M0 9 6 1l6 8z' fill='%230f7b5f'/%3E%3Cpath d='M12 9l6-8 6 8z' fill='%233ba4e8'/%3E%3Cpath d='M24 9l6-8 6 8z' fill='%23ffcf3f'/%3E%3Cpath d='M36 9l6-8 6 8z' fill='%23f38ba0'/%3E%3C/svg%3E") 0 0 / 48px 9px repeat-x; }

/* أزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 22px; min-height: 52px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--sand);
  font: 600 1.05rem var(--body); cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(46,29,20,.05);
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn:hover { border-color: var(--line2); }
.btn.primary { background: var(--ember); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(15,123,95,.22); }
.btn.primary:hover { background: var(--ember2); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 11px; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
input[type=text], textarea {
  width: 100%; padding: 14px 16px; font: 500 1.1rem var(--body);
  color: var(--sand); background: var(--card); border: 1px solid var(--line2); border-radius: 13px; outline: none;
}
input[type=text]:focus, textarea:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(15,123,95,.15); }
input::placeholder, textarea::placeholder { color: #a08a74; }
textarea { resize: none; min-height: 110px; }
label.f { display: block; font-size: .92rem; color: var(--muted); margin: 14px 0 6px; }

.pill { display: inline-flex; align-items: center; gap: .45em; padding: 6px 12px; border-radius: 99px; background: var(--card2); font-size: .95rem; }
.dot { width: .7em; height: .7em; border-radius: 50%; display: inline-block; flex: none; }
.off { opacity: .4; }

/* ============ صفحة اللعب ============ */
.play { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); min-height: 100vh; display: flex; flex-direction: column; }
.play.tv { max-width: none; padding: 2.2vw 3vw; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.topbar .ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.screen { flex: 1; display: flex; flex-direction: column; }
.stack > * + * { margin-top: 12px; }

.conn { position: fixed; inset-inline: 0; top: calc(10px + env(safe-area-inset-top)); margin: auto; width: max-content; z-index: 50; background: var(--bad); color: #fff; padding: 6px 14px; border-radius: 99px; font-size: .9rem; }

/* شاشة العرض: اللوبي */
.lobby { display: grid; grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: 2vw; align-items: start; }
@media (max-width: 860px) { .lobby { grid-template-columns: 1fr; } }
.joinbox { text-align: center; }
.roomcode { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 8vw, 7rem); letter-spacing: .18em; color: var(--ember); direction: ltr; line-height: 1.1; margin: .1em 0 .2em; }
.qr { display: inline-block; background: #fff; padding: 12px; border-radius: 16px; margin: 6px 0 10px; border: 1px solid var(--line); }
.qr img { display: block; width: clamp(160px, 15vw, 240px); height: auto; image-rendering: pixelated; }
.qr { padding: 4px; }
.joinurl { direction: ltr; font-size: clamp(.9rem, 1.2vw, 1.15rem); color: var(--muted); word-break: break-all; }
.players { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.gcard::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--acc, var(--ember)); }
.gcard .ic { font-size: 2.1rem; line-height: 1; }
.gcard h3 { margin: 4px 0 0; font-size: 1.45rem; }
.gcard .meta { font-size: .88rem; color: var(--muted); }
.gcard .btn { margin-top: auto; }
.passbox { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.passbox input { flex: 1; min-width: 180px; direction: ltr; text-align: center; letter-spacing: .1em; }
.badge { display: inline-flex; align-items: center; gap: .4em; padding: 6px 12px; border-radius: 99px; font-size: .92rem; font-weight: 600; }
.badge.pro { background: rgba(15,123,95,.12); color: var(--good); }
.badge.free { background: rgba(15,123,95,.12); color: var(--ember); }

/* عناوين اللعب */
.gtitle { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 5.5rem); margin: 0; color: var(--acc-ink); }
.rd { color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.3rem); }
.prompt { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4.2vw, 4rem); line-height: 1.35; text-align: center; margin: 2vh auto; max-width: 22ch; }
.tv .prompt { max-width: 26ch; }
.play:not(.tv) .prompt { font-size: 1.45rem; }
.how { list-style: none; padding: 0; margin: 2vh 0; display: grid; gap: 12px; counter-reset: s; }
.how li { counter-increment: s; display: flex; gap: 14px; align-items: center; font-size: clamp(1.05rem, 1.9vw, 1.7rem); }
.how li::before { content: counter(s, arabic-indic); flex: none; width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--acc, var(--ember)); color: var(--on-acc); font-weight: 700; }

/* المؤقت */
.timer { height: 10px; background: var(--card2); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.timer i { display: block; height: 100%; width: 100%; background: var(--acc, var(--ember)); border-radius: 99px; transform-origin: right; }
.secs { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--acc-ink); font-size: clamp(1.2rem, 2.4vw, 2.4rem); }

/* زوم */
.stage { position: relative; width: min(62vh, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #ffffff, #f3e2c4); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 24px 60px rgba(46,29,20,.14); }
.play:not(.tv) .stage { width: min(78vw, 360px); }
.stage .g { font-size: min(40vh, 300px); line-height: 1; will-change: transform; user-select: none; }
.stage img.g { width: 100%; height: 100%; object-fit: cover; font-size: 0; }
.answer { font-family: var(--display); font-size: clamp(2rem, 5vw, 4.4rem); color: var(--good); text-align: center; margin: 1vh 0 0; }

/* أزرار الإجابة في الجوال */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { min-height: 92px; padding: 14px 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--sand); font: 700 1.2rem var(--body); cursor: pointer; transition: transform .08s; box-shadow: 0 1px 0 rgba(46,29,20,.05); }
.opt:active { transform: scale(.97); }
.opt.sel { background: var(--sand); color: #fbefd9; border-color: transparent; }
.opt.right { background: var(--good); color: #fff; border-color: transparent; }
.opt.wrong { background: var(--bad); color: #fff; border-color: transparent; }
.opt:disabled { cursor: default; }
.opt:disabled:not(.sel):not(.right):not(.wrong) { opacity: .5; }
.list { display: grid; gap: 10px; }
.list .opt { min-height: 64px; text-align: right; padding: 14px 18px; font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.list .opt small { color: inherit; opacity: .7; font-weight: 500; margin-inline-start: auto; }

/* لوحة النقاط */
.board { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: clamp(1rem, 1.6vw, 1.5rem); }
.row .n { flex: 1; font-weight: 600; }
.row .s { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ember); direction: ltr; }
.row .rk { width: 2em; text-align: center; color: var(--muted); font-weight: 700; }
.row .gain { color: var(--good); font-size: .85em; font-weight: 700; direction: ltr; }
.row.me { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.tvgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5vw; align-items: start; flex: 1; }
@media (max-width: 860px) { .tvgrid { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: 6px 12px; border-radius: 99px; background: var(--card2); font-size: clamp(.9rem, 1.3vw, 1.2rem); opacity: .45; }
.chip.ok { opacity: 1; }
.chip.ok::after { content: "✓"; color: var(--good); font-weight: 700; }

/* نتائج هياط */
.answers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ans { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: clamp(1.05rem, 1.7vw, 1.6rem); position: relative; box-shadow: var(--shadow); }
.ans .num { position: absolute; top: -10px; inset-inline-start: 14px; background: var(--coral); color: var(--sand); width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; font-size: .75em; font-weight: 700; }
.ans .by { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .8em; color: var(--muted); }
.ans .votes { margin-inline-start: auto; color: var(--ember); font-weight: 700; }
.ans.win { border-color: var(--ember); box-shadow: 0 0 0 2px rgba(15,123,95,.22); }

/* مين فينا */
.bars { display: grid; gap: 10px; max-width: 900px; margin: 0 auto; width: 100%; }
.bar { display: grid; grid-template-columns: 9em 1fr 2.5em; gap: 12px; align-items: center; font-size: clamp(1rem, 1.6vw, 1.5rem); }
.bar .track { height: 18px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; }
.bar b { text-align: center; }
.crown { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 4.6rem); text-align: center; color: var(--ember); margin: 1vh 0 2vh; }

.big { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.2rem); }
.waiting { text-align: center; margin: auto 0; padding: 30px 0; }
.waiting .ic { font-size: 3.4rem; }
.avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-family: var(--display); font-size: 2.3rem; color: var(--sand); font-weight: 700; }
.upsell { border-color: rgba(15,123,95,.35); background: linear-gradient(160deg, rgba(255,207,63,.22), var(--card)); }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }

/* ============ الصفحة الرئيسية ============ */
.site { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.nav .links { display: flex; gap: 18px; align-items: center; }
.nav .links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav .links a.btn { color: var(--sand); }
@media (max-width: 640px) { .nav .links { gap: 12px; } .nav .links a.hm { display: none; } }
.hero { text-align: center; padding: 8vh 0 6vh; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; margin: 0 0 .25em; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 40ch; margin: 0 auto 1.6em; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sec { padding: 7vh 0; }
.sec > h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-align: center; margin-bottom: .3em; }
.sec > .sub { text-align: center; color: var(--muted); margin-bottom: 2.2em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.step .k { font-family: var(--display); font-weight: 800; font-size: 1.5rem; width: 2em; height: 2em; border-radius: 14px; display: grid; place-items: center; background: var(--acc, var(--ember)); color: var(--on-acc); line-height: 1; }
.step h3 { margin-top: 12px; font-size: 1.3rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.hot { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 24px 60px rgba(15,123,95,.12); }
.plan .price { font-family: var(--display); font-size: 2.8rem; line-height: 1; }
.plan .price small { font-size: 1rem; color: var(--muted); font-family: var(--body); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; color: var(--muted); }
.plan ul li::before { content: "✦ "; color: var(--ember); }
.plan .btn { margin-top: auto; }
.tagline { display: inline-block; font-size: .8rem; font-weight: 700; color: #fff; background: var(--ember); padding: 3px 10px; border-radius: 99px; width: max-content; }
.redeem { max-width: 560px; margin: 26px auto 0; display: flex; gap: 10px; flex-wrap: wrap; }
.redeem input { flex: 1; min-width: 200px; direction: ltr; text-align: center; letter-spacing: .08em; }
.msg { text-align: center; margin-top: 10px; min-height: 1.6em; }
.msg.ok { color: var(--good); }
.msg.err { color: var(--bad); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq summary::marker { color: var(--ember); }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* ============ الألعاب الموحّدة ============ */
.genbody { display: flex; flex-direction: column; gap: 12px; }
.gsub { text-align: center; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.6rem); margin: 0; }
.play:not(.tv) .gsub { font-size: 1rem; }
.wheel { color: var(--acc-ink); }
.drawwrap { display: flex; justify-content: center; }
.drawtv { width: min(100%, calc(56vh * 1.333)); aspect-ratio: 4 / 3; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pad { width: 100%; aspect-ratio: 4 / 3; background: #fff; border-radius: 16px; border: 1px solid var(--line); touch-action: none; display: block; }
.drawhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 1.15rem; }
.drawhead b { color: var(--acc-ink); font-family: var(--display); font-size: 1.5rem; }
.drawhead .btn { margin-inline-start: auto; }
.bigword { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 10vw, 3.4rem); text-align: center; color: var(--acc-ink); line-height: 1.25; margin: 10px 0; transition: filter .2s; }
.secret { margin: 10px 0; }
.secret.hidden .bigword { filter: blur(16px); user-select: none; }
.taboo { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 14px; }
.taboo span { background: rgba(210,69,61,.1); color: #a8322b; padding: 6px 12px; border-radius: 99px; font-weight: 600; }
.letter { width: 96px; height: 96px; margin: 6px auto 4px; border-radius: 24px; background: var(--acc, var(--ember)); color: var(--on-acc); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 3.2rem; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.stepper .btn { width: 72px; height: 72px; font-size: 2rem; border-radius: 50%; padding: 0; }
.stepval { font-family: var(--display); font-weight: 800; font-size: 4rem; min-width: 2ch; text-align: center; color: var(--acc-ink); }
.bigbtn { display: block; width: min(78vw, 300px); aspect-ratio: 1; margin: 18px auto; border-radius: 50%; border: 0; background: var(--acc, var(--ember)); color: var(--on-acc); font: 700 2rem var(--display); cursor: pointer; box-shadow: 0 16px 40px rgba(46,29,20,.18); }
.bigbtn.stop { background: var(--bad); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.bigbtn:disabled { opacity: .5; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.cup { font-size: 9rem; text-align: center; margin: 10px 0 20px; transition: transform .1s linear; }
.opt.warn { background: rgba(210,69,61,.1); border-color: rgba(210,69,61,.45); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tcol { padding: 12px 14px; }
.tcol h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--acc-ink); }
.trow { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: clamp(.95rem, 1.3vw, 1.2rem); }
.trow .n { flex: 1; }
.trow b { color: var(--good); direction: ltr; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { text-align: center; }
.tname { font-weight: 700; font-size: 1.15rem; }
.ans .by + .by { margin-top: 2px; }

/* ============ الفئات والألعاب المميزة ============ */
.cats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 660px; margin: 34px auto 0; }
.c3 { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-decoration: none; color: var(--sand); display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.c3::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--acc, var(--ember)); }
.c3 b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.c3 span { color: var(--muted); font-size: .85rem; }
.c3.hot { border-color: var(--ember); }
.c3.hot span { color: var(--ember); font-weight: 600; }
@media (max-width: 480px) { .cats3 { gap: 8px; } .c3 { padding: 12px 6px; } .c3 b { font-size: .92rem; } .c3 span { font-size: .8rem; } }
.tagfree { display: inline-block; vertical-align: middle; font: 700 .9rem var(--body); color: var(--good); background: rgba(15,123,95,.12); padding: 4px 12px; border-radius: 99px; margin-inline-start: 6px; }
.paidgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.pcover { position: relative; margin: 0 0 6px; }
.pcover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #fbefd9; }
.pcover .offer { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--sand); color: #fbefd9; font: 700 .8rem var(--body); padding: 5px 10px; border-radius: 99px; }
.phead { display: flex; align-items: center; gap: 10px; }
.pic { font-size: 2.2rem; line-height: 1; }
.pcard h3 { margin: 0; font-size: 1.4rem; }
.pcard .meta { font-size: .88rem; color: var(--acc-ink); font-weight: 600; }
.pcard p { margin: 4px 0 14px; }
.pfoot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pfoot .btn { flex: 1 1 100%; min-height: 46px; padding: 10px 14px; }
.ptag { font-family: var(--display); font-weight: 800; font-size: 1.35rem; width: 100%; display: flex; align-items: baseline; gap: .4em; }
.was { font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.owned { width: 100%; color: var(--good); font-weight: 600; font-size: .95rem; }
.btn.disabled { opacity: .5; pointer-events: none; cursor: default; }
@media (max-width: 640px) {
  .paidgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard { padding: 8px 8px 12px; border-radius: 16px; gap: 4px; }
  .pcover img { border-radius: 11px; }
  .pcover .offer { top: 6px; inset-inline-end: 6px; font-size: .68rem; padding: 3px 8px; }
  .pcard h3 { font-size: 1.05rem; }
  .pcard .meta { font-size: .76rem; }
  .pcard p { display: none; }
  .ptag { font-size: 1.15rem; flex-wrap: wrap; }
  .was { font-size: .8rem; }
  .pfoot { gap: 6px; }
  .pfoot .btn { flex: 1 1 100%; min-height: 42px; padding: 8px 10px; font-size: .9rem; }
}
.soon { max-width: 640px; margin: 0 auto; border-style: dashed; border-color: var(--line2); padding: 30px 24px; }

/* صفحة قفل اللعبة المميزة */
.lockcard { text-align: center; border-top: 3px solid var(--acc, var(--ember)); padding: 28px 22px; margin-top: 3vh; }
.lockicon { font-size: 3.6rem; line-height: 1; margin-bottom: 10px; }
.lockcover { width: min(220px, 60vw); height: auto; aspect-ratio: 1; border-radius: 18px; margin: 0 auto 14px; display: block; object-fit: cover; box-shadow: var(--shadow); border: 1px solid var(--line); }
.lockcard h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); color: var(--acc-ink); margin-bottom: .3em; }
.lockmeta { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.lockcard .price { margin: 4px 0 16px; }
.lockcard .price b { font-family: var(--display); font-weight: 800; font-size: 2.4rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 22px 0 12px; font-size: .95rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lockcard .redeem { flex-direction: column; }
.lockcard .redeem input { min-width: 0; }
.games.lite .gcard { text-decoration: none; color: var(--sand); }
.games.lite .gcard:hover { border-color: var(--line2); }
.games.lite .gcard p { margin: 6px 0 10px; }
.games.lite .gcard .go { margin-top: auto; color: var(--acc-ink); font-weight: 600; font-size: .95rem; }
/* مربع أيقونة اللعبة بنفس ألوان صور المتجر */
.games.lite .gcard .ic, .gcard.tile .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--acc, var(--ember)); color: var(--on-acc); margin-bottom: 4px; font-size: 1rem; }
.games.lite .gcard .ic .si, .gcard.tile .ic .si { width: 28px; height: 28px; stroke-width: 1.9; }
.games.lite .gcard::after, .gcard.tile::after { display: none; }
@media (max-width: 640px) {
  .games.lite { grid-template-columns: 1fr 1fr; gap: 10px; }
  .games.lite .gcard { padding: 14px 12px; gap: 2px; }
  .games.lite .gcard .ic { width: 44px; height: 44px; border-radius: 12px; }
  .games.lite .gcard .ic .si { width: 24px; height: 24px; }
  .games.lite .gcard h3 { font-size: 1.15rem; }
  .games.lite .gcard .meta { font-size: .78rem; }
  .games.lite .gcard p { display: none; }
  .games.lite .gcard .go { margin-top: 8px; font-size: .88rem; }
}

/* ============ رسومات بدل الإيموجي ============ */
.si { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; flex: none; }
.btn .si { width: 1.2em; height: 1.2em; }
.gcard .ic, .pcard .pic, .lockicon, .waiting .ic, .gico { color: var(--acc-ink); line-height: 1; }
.gcard .ic .si, .pcard .pic .si, .lockicon .si, .waiting .ic .si, .gico .si, .cup .si { width: 1em; height: 1em; vertical-align: 0; }
.gcard .ic .si { stroke-width: 1.75; }
.waiting .ic .si, .lockicon .si, .gico .si { stroke-width: 1.6; }
.cup .si { color: #b0763f; stroke-width: 1.4; }
.soonic { line-height: 1; }
.soonic .si { width: 2.8rem; height: 2.8rem; color: var(--ember); stroke-width: 1.6; }
.owned .si { margin-inline-end: .3em; }
.foot a + a { margin-inline-start: 0; }

/* ============ بداية السمرة ولوحة التحكم ============ */
.sharerow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.sharerow .btn { flex: 1 1 140px; white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.tvcard h3 .si { color: var(--ember); }
.sheet { position: fixed; inset: 0; background: rgba(46,29,20,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet .in { background: var(--card); border: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); width: min(640px, 100%); max-height: 88vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; font-size: 1rem; box-shadow: 0 -10px 40px rgba(46,29,20,.15); }
.sheet h3 { margin: 0 0 6px; }
.sheet .qr { background: #fff; border-radius: 12px; padding: 6px; }
.sheet .qr img { width: 100%; display: block; }
.sheet .pill .si { width: 15px; height: 15px; opacity: .7; }
.toast2 { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--sand); color: #fbefd9; border: 1px solid transparent; padding: 10px 16px; border-radius: 12px; z-index: 60; font-weight: 600; box-shadow: 0 10px 30px rgba(46,29,20,.25); }
/* شاشة العرض فقط: تعرض اللعب بدون أزرار تحكم */
.watch .screen .btn:not(.keep) { display: none !important; }
.buzzcard { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-color: rgba(15,123,95,.3); background: linear-gradient(135deg, rgba(15,123,95,.09), var(--card) 55%); }
.buzzcard .bzi { width: 76px; height: 76px; border-radius: 20px; background: var(--ember); display: grid; place-items: center; flex: none; }
.buzzcard .bzi .si { width: 42px; height: 42px; color: #fff; stroke-width: 1.7; }
.buzzcard .bzt { flex: 1 1 280px; }
.buzzcard .btn { flex: 0 0 auto; }
