/* تريبلا: ألواح زجاجية فوق خلفية بوهج مرجاني وبحري. الوضع الليلي هو الافتراضي، والنهاري في :root[data-theme=light]. */
:root {
  color-scheme: dark;
  --bg: #0B1422; --bg-2: #12203A; --bg-3: #070E19;
  --orange: #FF6B6F; --orange-text: #FF6B6F; --orange-deep: #FF6B6F; --orange-glow: rgb(255 107 111 / .5); --sea: #38A8BA; --on-sea: #1B2A41; /* براند 2.1: --orange و--sea للتعبئة بس (نفس القيمة بالوضعين)، والنص الصغير --orange-text و--mint */ --flame: #FF9A4D; --flame-2: #FFB25B; /* 3.38: لون السلسلة والجولات التعريفية كمتغير له قيمة نهارية */
  --mint: #7FD6E5; --cream: #FFF8F0; --ink: #0B1422; --on-ac: #1B2A41; --chip-tx: #FFD3D4;
  --text: #FFF8F0; --muted: rgb(255 248 240 / .7); --faint: rgb(255 248 240 / .45);
  --ov: 255 255 255; --ac: 255 107 111; --se: 56 168 186; --tx: 255 248 240; --deep: 7 14 25; --solid: 21 35 58;
  --glass: rgb(255 255 255 / .07); --glass-2: rgb(255 255 255 / .12); --glass-3: rgb(255 255 255 / .18);
  --stroke: rgb(255 255 255 / .15); --stroke-2: rgb(255 255 255 / .3);
  --bad: #FF9A8A; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --blur: blur(22px) saturate(150%);
  --display: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --wrap: 1180px; --r: 22px; --r-sm: 14px;
  --gap: clamp(14px, 2vw, 22px); --pad: clamp(18px, 2.4vw, 28px);
}
/* الوضع النهاري: نفس الزجاج فوق خلفية كريمية. يتبدل بتغيير data-theme على html */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFF8F0; --bg-2: #FFF1E4; --bg-3: #F3F7F6;
  --orange: #FF6B6F; --orange-text: #B3262C; --orange-deep: #FF6B6F; --orange-glow: rgb(255 107 111 / .32); --flame: #C9561C; --flame-2: #B5541A;
  --mint: #1F7A8C; --cream: #1B2A41; --ink: #FFF8F0; --chip-tx: #A32229;
  --text: #1B2A41; --muted: rgb(27 42 65 / .74); --faint: rgb(27 42 65 / .5);
  --ov: 27 42 65; --tx: 27 42 65; --deep: 255 248 240; --solid: 255 255 255;
  --glass: rgb(255 255 255 / .62); --glass-2: rgb(255 255 255 / .8); --glass-3: rgb(255 255 255 / .94);
  --stroke: rgb(27 42 65 / .12); --stroke-2: rgb(27 42 65 / .26);
  --bad: #B3262C; --shadow: 0 24px 50px -28px rgba(27, 42, 65, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(15px, .35vw + 14px, 17px); line-height: 1.7; min-height: 100vh; overflow-x: hidden; }
/* الخلفية ثابتة خلف كل الصفحات: وهج برتقالي أعلى اليمين، وهج نعناعي يسار، وخطوط ملعب خافتة */
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(900px 520px at 88% -8%, var(--orange-glow), transparent 62%),
  radial-gradient(760px 560px at -6% 28%, rgb(var(--se) / .17), transparent 62%),
  radial-gradient(900px 600px at 60% 112%, rgb(var(--ac) / .2), transparent 60%),
  linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 58%, var(--bg-3) 100%); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background:
  repeating-linear-gradient(90deg, rgb(var(--ov) / .022) 0 1px, transparent 1px 120px),
  repeating-linear-gradient(0deg, rgb(var(--ov) / .018) 0 1px, transparent 1px 120px); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.22; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw + .6rem, 3.7rem); }
h2 { font-size: clamp(1.4rem, 1.8vw + .9rem, 2.1rem); }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
a { color: var(--orange-text); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--on-ac); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow-wrap { max-width: 860px; }
.muted { color: var(--muted); } .small { font-size: .86em; } .center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; } input.ltr, textarea.ltr { text-align: left; }
.mono { font-family: var(--body); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ---------- surfaces ---------- */
.card, .side, .board, .sheet, .top .wrap, .drop, .tabs, .cta, .demo {
  background: linear-gradient(140deg, var(--glass-2), var(--glass) 55%);
  border: 1px solid var(--stroke); box-shadow: var(--shadow), inset 0 1px 0 rgb(var(--ov) / .2);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .side, .board, .top .wrap, .tabs, .cta, .demo { background: rgb(var(--solid) / .92); } .sheet, .drop { background: rgb(var(--solid)); }
}
.card { border-radius: var(--r); padding: var(--pad); min-width: 0; }
.card.warn { background: linear-gradient(140deg, rgb(var(--ac) / .3), rgb(var(--ac) / .12)); border-color: rgb(var(--ac) / .55); }
.card.stat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.big-num, .kpi b, .pack .n { font-family: var(--display); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #FF9FA1, var(--orange) 55%, var(--orange-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-num { font-size: clamp(2rem, 3vw, 2.7rem); }
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; min-width: 0; }
.row.between { justify-content: space-between; } .row.mid { justify-content: center; } .row.end { align-items: flex-end; }
.grid { display: grid; gap: var(--gap); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.grid.topup { grid-template-columns: 2fr 1fr 2fr; }
.empty { border: 1.5px dashed var(--stroke-2); border-radius: var(--r); padding: 26px; text-align: center; color: var(--muted); background: rgb(var(--ov) / .03); }
.chip { display: inline-flex; align-items: center; background: rgb(var(--ac) / .2); color: var(--chip-tx); border: 1px solid rgb(var(--ac) / .45); border-radius: 99px; padding: 2px 12px; font-size: .8rem; line-height: 1.7; white-space: nowrap; }
.chip.soft { background: var(--glass-2); color: var(--text); border-color: var(--stroke); }
.chip.hot { background: linear-gradient(135deg, #FF8A8D, #FF6B6F); color: var(--on-ac); border-color: transparent; font-weight: 700; }
.chip.good { background: rgb(var(--se) / .18); color: var(--mint); border-color: rgb(var(--se) / .45); }
.note-good { color: var(--mint); font-weight: 600; }
.note-warn { color: var(--orange-text); font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-text); font-weight: 600; font-size: .88rem; letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.head p { max-width: 46em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 11px 22px; font-weight: 700; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; line-height: 1.5; }
.btn.primary, .btn.orange { background: linear-gradient(135deg, #FF8A8D, var(--orange) 45%, var(--orange-deep)); color: var(--on-ac); box-shadow: 0 12px 30px -10px var(--orange-glow), inset 0 1px 0 rgb(var(--ov) / .45); }
.btn.primary:hover:not(:disabled), .btn.orange:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 36px -10px var(--orange-glow), inset 0 1px 0 rgb(var(--ov) / .5); }
.btn.light { background: var(--cream); color: var(--ink); }
.btn.ghost { background: var(--glass-2); color: var(--text); border-color: var(--stroke); font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover:not(:disabled) { background: var(--glass-3); border-color: var(--stroke-2); }
.btn.sm { padding: 5px 15px; border-radius: 99px; font-size: .86rem; }
.btn.lg { padding: 14px 30px; font-size: 1.06rem; border-radius: 16px; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--bad); border-color: rgb(var(--ac) / .5); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }

/* ---------- header ---------- */
.top-slot { position: sticky; top: 0; z-index: 20; padding-top: 12px; }
.top { padding-inline: clamp(10px, 3vw, 24px); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; border-radius: 20px; padding-inline: 18px; position: relative; background: linear-gradient(140deg, rgb(var(--ac) / .34), rgb(var(--ov) / .08) 70%); }
.logo img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 7px 15px; border-radius: 99px; transition: background .15s; }
.nav a:hover { background: var(--glass-2); }
.nav a[aria-current="page"] { background: var(--glass-3); box-shadow: inset 0 0 0 1px var(--stroke); }
.top-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.credit { background: rgb(var(--deep) / .55); color: var(--cream); border: 1px solid var(--stroke); border-radius: 99px; padding: 5px 14px; font-weight: 700; text-decoration: none; font-size: .88rem; white-space: nowrap; }
.menu-btn { background: var(--cream); color: var(--ink); border-radius: 99px; padding: 6px 16px; font-weight: 700; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; background: var(--glass-3); border: 1px solid var(--stroke); border-radius: 12px; width: 42px; height: 42px; font-size: 1.3rem; line-height: 1; }
.rel { position: relative; }
.drop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; border-radius: 16px; padding: 6px; min-width: 200px; display: flex; flex-direction: column; background: rgb(var(--solid) / .92); }
.drop a, .drop button { text-align: start; padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--text); }
.drop a:hover, .drop button:hover { background: var(--glass-2); }
.only-sm { display: none; }
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(90deg, rgb(var(--ac) / .55), rgb(var(--ac) / .32)); border-bottom: 1px solid rgb(var(--ac) / .5); text-align: center; padding: 7px 44px; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; position: relative; }
.ann-x { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 99px; font-size: 1.2rem; line-height: 1; color: var(--text); background: transparent; }
.ann-x:hover { background: var(--glass-2); }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; padding: 8px; border-radius: 18px; background: rgb(var(--solid) / .96); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 12px; }
  .logo img { height: 40px; }
  .top .wrap { padding-inline: 12px; gap: 8px; min-height: 60px; }
  .top-end .hide-sm { display: none; }
  .only-sm { display: block; }
  .menu-btn { max-width: 160px; }
}

/* ---------- pages ---------- */
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.foot-slot { margin-top: auto; }
.page { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }
.page.narrow { max-width: 540px; } .page.mid { max-width: 820px; }
.hero { padding-block: clamp(36px, 7vw, 92px) clamp(28px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #FF9FA1, var(--orange) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.12em; color: var(--muted); max-width: 33em; }
 
.demo { border-radius: 28px; padding: clamp(12px, 2vw, 18px); max-width: 430px; width: 100%; margin-inline: auto; transform: rotate(-2deg); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 80px -20px var(--orange-glow), inset 0 1px 0 rgb(var(--ov) / .25); }
.demo .board { background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.section { padding-block: clamp(34px, 5vw, 64px); }
.section > .wrap { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.steps { counter-reset: s; padding-top: 18px; }
.step { position: relative; padding-top: 38px; display: flex; flex-direction: column; gap: 6px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -20px; inset-inline-start: 22px; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #FF8A8D, var(--orange-deep)); color: var(--on-ac); font-family: var(--display); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; box-shadow: 0 10px 24px -8px var(--orange-glow); }
.mode { gap: 8px; transition: transform .2s ease, border-color .2s ease; }
.mode:hover { transform: translateY(-4px); border-color: var(--stroke-2); }

.faq details { background: var(--glass); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px 20px; transition: background .15s; }
.faq details[open] { background: var(--glass-2); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--muted); }
.cta { border-radius: 32px; padding: clamp(32px, 6vw, 64px) 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; background: linear-gradient(140deg, rgb(var(--ac) / .38), rgb(var(--ov) / .07) 65%); }
footer { border-top: 1px solid var(--stroke); padding-block: 28px; margin-top: 24px; color: var(--muted); background: rgb(var(--deep) / .35); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
footer b { color: var(--text); font-family: var(--display); font-size: 1.15rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); text-decoration: none; } footer a:hover { color: var(--text); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .demo { transform: none; max-width: 400px; } }

/* ---------- forms ---------- */
label.f, div.f, fieldset.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; min-width: 0; }
input[type=search], input[type=date], input[type=tel], input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { font: inherit; font-weight: 400; color: var(--text); background: rgb(var(--deep) / .45); border: 1px solid var(--stroke); border-radius: var(--r-sm); padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgb(var(--ac) / .22); outline: none; background: rgb(var(--deep) / .65); }
select option { background: rgb(var(--solid)); color: var(--text); }
textarea { resize: vertical; min-height: 120px; }
input[type=checkbox] { accent-color: var(--orange); width: 16px; height: 16px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; font-size: .92em; font-weight: 400; }
.checks label { display: flex; gap: 8px; align-items: center; min-width: 0; }
.err { color: var(--bad); font-weight: 600; min-height: 1.5em; }
.code { font-size: 1.4rem; letter-spacing: .32em; text-align: center !important; font-variant-numeric: tabular-nums; }

/* ---------- play ---------- */
.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: var(--gap); align-items: start; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.opt { background: rgb(var(--ov) / .05); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px 16px; text-align: start; display: flex; flex-direction: column; gap: 2px; transition: all .15s ease; }
.opt:hover { background: var(--glass-2); }
.opt b { font-weight: 700; } .opt span { font-size: .86em; color: var(--muted); }
.opt[aria-pressed="true"] { background: linear-gradient(140deg, rgb(var(--ac) / .32), rgb(var(--ac) / .1)); border-color: var(--orange); box-shadow: 0 10px 30px -14px var(--orange-glow), inset 0 1px 0 rgb(var(--ov) / .2); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 99px; background: rgb(var(--deep) / .4); border: 1px solid var(--stroke); align-self: flex-start; max-width: 100%; }
.seg button { border-radius: 99px; padding: 6px 18px; font-weight: 600; color: var(--muted); transition: all .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.game { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); grid-template-areas: 'top' 'board' 'bottom'; max-width: 620px; }
.game-top { grid-area: top; } .game-board { grid-area: board; min-width: 0; } .game-bottom { grid-area: bottom; }
@media (min-width: 1000px) {
  .game { max-width: 1040px; grid-template-columns: minmax(0, 580px) minmax(300px, 1fr); grid-template-areas: 'board top' 'board bottom'; grid-template-rows: auto 1fr; align-items: start; column-gap: clamp(24px, 3vw, 40px); }
  .game .score { grid-template-columns: 1fr; }
}
@media (max-width: 999px) { .setup { grid-template-columns: 1fr; } }
.score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side { border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; min-width: 0; transition: all .2s; }
.side.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 16px 40px -16px var(--orange-glow), inset 0 1px 0 rgb(var(--ov) / .2); background: linear-gradient(140deg, rgb(var(--ac) / .28), var(--glass)); }
.side .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side small { display: block; color: var(--muted); font-size: .78rem; }
.mk { font-family: var(--display); font-weight: 700; line-height: 1; }
.side .mk { font-size: 1.8rem; width: 1.2em; text-align: center; }
.cx { color: var(--orange); filter: drop-shadow(0 0 10px rgb(var(--ac) / .7)); }
.co { color: var(--sea); filter: drop-shadow(0 0 10px rgb(var(--se) / .55)); }
.status { min-height: 1.7em; font-weight: 700; text-align: center; font-size: 1.05em; } .status.start { text-align: start; }
.timer-bar { text-align: center; font-weight: 600; background: rgb(var(--deep) / .45); border: 1px solid var(--stroke); border-radius: 99px; padding: 6px 16px; }
.timer { font-family: var(--display); font-weight: 700; color: var(--orange-text); font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.7em; text-align: center; font-size: 1.25em; }
.board { display: grid; grid-template-columns: minmax(62px, .78fr) repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 10px); border-radius: 26px; padding: clamp(10px, 1.8vw, 16px); }
.crit { background: linear-gradient(160deg, rgb(var(--ov) / .2), rgb(var(--ov) / .08)); border: 1px solid var(--stroke); border-radius: 14px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: clamp(58px, 9vw, 72px); min-width: 0; }
.crit small { font-size: .66rem; color: var(--orange-text); font-weight: 600; }
:root:not([data-theme="light"]) .crit { background: rgb(var(--deep) / .42); }
:root[data-theme="light"] .crit { background: linear-gradient(160deg, rgb(var(--ov) / .12), rgb(var(--ov) / .05)); } /* والنهاري أفتح شوي لنص #B3262C */
:root[data-theme="light"] .hw-hit { background: rgb(255 255 255 / .85); } /* 2.1: المربع أغمق شوي في الليلي عشان التسمية المرجانية الصغيرة تعدّي 4.5 */
.crit b { font-weight: 700; font-size: clamp(.74rem, 1.6vw + .3rem, .95rem); line-height: 1.3; overflow-wrap: anywhere; }
.corner { display: grid; place-items: center; color: var(--faint); font-size: .72rem; text-align: center; }
.cell { aspect-ratio: 1; background: rgb(var(--deep) / .38); border: 1px solid var(--stroke); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px; min-width: 0; position: relative; transition: all .15s ease; box-shadow: inset 0 1px 0 rgb(var(--ov) / .06); }
button.cell:hover:not(:disabled) { background: var(--glass-2); border-color: var(--stroke-2); transform: translateY(-2px); }
.cell:disabled { opacity: 1; }
.cell .mk { font-size: clamp(1.5rem, 7vw, 2.9rem); }
.cell .pn { font-size: clamp(.62rem, 1.2vw + .32rem, .8rem); line-height: 1.25; text-align: center; overflow-wrap: anywhere; color: var(--text); font-weight: 500; }
.cell.x { background: linear-gradient(160deg, rgb(var(--ac) / .36), rgb(var(--ac) / .12)); border-color: rgb(var(--ac) / .8); }
.cell.o { background: linear-gradient(160deg, rgb(var(--se) / .28), rgb(var(--se) / .08)); border-color: rgb(var(--se) / .7); }
.cell.win { box-shadow: 0 0 0 2px var(--cream), 0 0 34px -4px var(--orange-glow); }
.cell.miss { background: repeating-linear-gradient(135deg, rgb(var(--ov) / .05) 0 8px, transparent 8px 16px); }
.cell .steal { position: absolute; top: 5px; inset-inline-start: 8px; font-size: .62rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .cell .mk { animation: pop .22s cubic-bezier(.2, 1.4, .4, 1); } @keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
.room-code { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 8vw, 3.2rem); letter-spacing: .2em; text-align: center; color: var(--orange-text); text-shadow: 0 0 30px var(--orange-glow); }

/* ---------- sheets + toast ---------- */
.veil { position: fixed; inset: 0; background: rgb(var(--deep) / .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding: 16px; z-index: 40; overflow: auto; }
.sheet { background: linear-gradient(150deg, rgb(var(--solid) / .9), rgb(var(--deep) / .94)); border-color: var(--stroke-2); border-radius: 26px; padding: clamp(20px, 3vw, 28px); width: min(100%, 540px); display: flex; flex-direction: column; gap: 14px; margin-block: 7vh 24px; }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: rise .22s ease-out; } @keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } } }
.pair { display: flex; gap: 8px; flex-wrap: wrap; }
.hits { display: flex; flex-direction: column; gap: 6px; min-height: 52px; }
.hits button { background: rgb(var(--ov) / .06); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 14px; text-align: start; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; transition: all .12s; }
.hits button small { color: var(--muted); direction: ltr; font-size: .78rem; }
.hits button:hover { background: var(--glass-3); border-color: var(--orange); }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: .78rem; }
.answers div { background: rgb(var(--ov) / .06); border: 1px solid var(--stroke); border-radius: 12px; padding: 8px; min-width: 0; overflow-wrap: anywhere; }
.answers b { display: block; font-size: .7rem; color: var(--orange-text); font-weight: 600; }
.answers .zero { border-color: var(--bad); color: var(--bad); }
.toast { position: fixed; inset-inline: 16px; bottom: 20px; margin-inline: auto; max-width: 460px; background: rgb(var(--tx) / .96); color: var(--ink); border-radius: 16px; padding: 12px 18px; text-align: center; z-index: 60; font-weight: 700; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7); }
.toast.bad { background: #FFD9CF; color: #6B1608; }

/* ---------- packages ---------- */
.pack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; position: relative; transition: transform .2s ease, border-color .2s ease; }
.pack:hover { transform: translateY(-4px); border-color: rgb(var(--ac) / .6); }
.pack .n { font-size: clamp(2.8rem, 5vw, 3.6rem); }
.pack .price { font-size: 1.35rem; font-weight: 700; margin-block: 4px 8px; }
.pack .chip.hot { position: absolute; top: -13px; inset-inline-end: 18px; }

/* ---------- admin + lists ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px; border-radius: 18px; scrollbar-width: thin; }
.tabs button { white-space: nowrap; border-radius: 12px; padding: 7px 15px; color: var(--muted); font-weight: 600; transition: all .15s; }
.tabs button:hover { color: var(--text); background: var(--glass); }
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 12px; }
.kpi { background: rgb(var(--ov) / .06); border: 1px solid var(--stroke); border-radius: 18px; padding: 14px 18px; text-align: start; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: all .15s; }
button.kpi:hover { background: var(--glass-2); border-color: var(--stroke-2); transform: translateY(-2px); }
.kpi b { font-size: clamp(1.5rem, 2vw + .8rem, 2rem); overflow-wrap: anywhere; }
.kpi span { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: rgb(var(--ov) / .055); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.item.row { flex-direction: row; }
.item .top-line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.item b, .item p { overflow-wrap: anywhere; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; font-size: .78rem; }
.mini span { background: var(--glass-2); border-radius: 8px; padding: 3px 6px; text-align: center; overflow-wrap: anywhere; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; font-size: .92em; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .grid.topup { grid-template-columns: 1fr 1fr; } .grid.topup > :first-child, .grid.topup > :last-child { grid-column: 1 / -1; }
  .item.row { flex-direction: column; align-items: flex-start; }
  .btn.lg { padding: 13px 22px; }
  .hero .row .btn { flex: 1 1 auto; }
}

/* ---------- إضافات تريبلا ---------- */
.logo { flex: none; } .logo img { filter: none; height: 34px; width: auto; display: none; }
/* شعار واحد يظهر في كل حالة: الأفقي على الشاشات الواسعة والعربي وحده على الجوال حتى لا ينضغط بجانب الرصيد والاسم */
:root:not([data-theme="light"]) .logo .for-dark, :root[data-theme="light"] .logo .for-light { display: block; }
@media (max-width: 640px) { .logo img { height: 30px; } .menu-btn { max-width: 104px; } }
.theme-btn, .lang-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--stroke); display: grid; place-items: center; flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
/* رسالة الدور ونتيجة الإجابة فوق الشبكة: تُقرأ قبل اللعب وما يغطيها الكيبورد */
.notice { padding-block: 12px; gap: 6px; } .notice.miss { border-color: rgb(var(--ac) / .6); }
.notice .report { align-self: center; color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; font-size: .92em; padding: 6px 10px; }
.game-bottom { display: flex; justify-content: center; }
@media (max-width: 640px) { .sheet { margin-block: 8px 24px; } .veil { padding: 10px; } }

.side.on.p0 { background: linear-gradient(150deg, #FF8A8D, #FF6B6F); border-color: rgb(255 255 255 / .35); box-shadow: 0 16px 36px -14px rgb(var(--ac) / .7), inset 0 1px 0 rgb(255 255 255 / .4); color: var(--on-ac); }
.side.on.p1 { background: linear-gradient(150deg, #5CC0D0, #38A8BA); border-color: rgb(255 255 255 / .35); box-shadow: 0 16px 36px -14px rgb(var(--se) / .7), inset 0 1px 0 rgb(255 255 255 / .4); color: var(--on-ac); }
.side.on .mk { color: var(--on-ac); filter: none; } .side.on small { color: var(--on-ac); opacity: .8; }
.steals { display: flex !important; align-items: center; gap: 5px; } .steals i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; } .steals i.off { opacity: .28; }
/* ترويسة الجوال: خمسة عناصر في صف واحد حتى على شاشة 320 بدون قص */
@media (max-width: 640px) {
  .top { padding-inline: 8px; } .top .wrap { gap: 6px; padding-inline: 10px; }
  .top-end { gap: 6px; min-width: 0; flex: 1; justify-content: flex-end; }
  .theme-btn, .lang-btn, .burger { width: 36px; height: 36px; flex: none; }
  .credit { padding-inline: 10px; white-space: nowrap; font-size: .82rem; flex: none; }
  .menu-btn { max-width: 88px; padding-inline: 10px; font-size: .86rem; min-width: 0; }
}
@media (max-width: 360px) { .menu-btn { max-width: 64px; } .logo img { height: 26px; } }
.mw0{min-width:0}
.demo-box{align-items:center;min-width:0}.demo-box .seg{max-width:100%;flex-wrap:wrap;justify-content:center}

/* ---------- أيقونات المجالات وألوانها ---------- */
.tint-coral { --t: var(--ac); } .tint-sea { --t: var(--se); } .tint-deep { --t: 31 122 140; } .tint-plain { --t: var(--tx); }
.tico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgb(var(--t) / .18); border: 1px solid rgb(var(--t) / .5); color: rgb(var(--t)); }
:root[data-theme="light"] .tico.tint-sea, :root[data-theme="light"] .tico.tint-coral { color: var(--text); }
.tico svg { width: 24px; height: 24px; }
.opt.topic { flex-direction: row; align-items: center; gap: 12px; }
.opt.topic .tt { display: flex; flex-direction: column; min-width: 0; color: inherit; font-size: 1em; } .opt.topic .tt b { overflow-wrap: anywhere; } .opt.topic .tt span { font-size: .86em; color: var(--muted); }
.seg button.with-ico { display: inline-flex; align-items: center; gap: 6px; } .seg button.with-ico svg { width: 16px; height: 16px; }






/* ---------- لوحة المشرف: قائمة جانبية + محتوى ---------- */
.page.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.ad-side { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 14px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ad-side { background: rgb(var(--solid) / .92); } }
.ad-toggle { display: none; }
.ad-nav { display: flex; flex-direction: column; gap: 14px; }
.ad-group { display: flex; flex-direction: column; gap: 2px; }
.ad-group h3 { margin: 0 0 4px; padding-inline: 12px; font-size: .74rem; font-weight: 700; color: var(--faint); letter-spacing: .02em; }
.ad-group > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: start; border-radius: 12px; padding: 8px 12px; font-weight: 600; color: var(--muted); transition: all .15s; }
.ad-group > button:hover { color: var(--text); background: var(--glass-2); }
.ad-group > button[aria-current="page"] { background: var(--cream); color: var(--ink); }
.badge { min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--orange); color: var(--on-ac); font-size: .74rem; font-weight: 700; line-height: 1.7; text-align: center; }

  
.ad-main { min-width: 0; }
.ad-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .ad-head h1 { margin: 0; font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem); }
.list.two { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.flow li > * { width: 100%; display: flex; align-items: center; gap: 10px; text-align: start; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: rgb(var(--ov) / .04); color: var(--muted); font-weight: 600; font-size: .9rem; }
.flow i { flex: none; font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); font-size: .8rem; font-weight: 700; }
.flow li.now > * { color: var(--text); border-color: var(--orange); background: rgb(var(--ac) / .12); } .flow li.now i { background: var(--orange); color: var(--on-ac); }
.flow li.done > * { color: var(--text); } .flow li.done i { background: rgb(var(--se) / .25); color: var(--mint); }
.flow button:hover { background: var(--glass-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
label.file { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; text-align: center; cursor: pointer; border: 1.5px dashed var(--stroke-2); border-radius: 16px; background: rgb(var(--ov) / .03); transition: all .15s; position: relative; }
label.file:hover, label.file:focus-within { border-color: var(--orange); background: rgb(var(--ac) / .08); } label.file span { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .page.admin { grid-template-columns: minmax(0, 1fr); }
  .ad-side { position: static; max-height: none; padding: 8px; }
  .ad-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; text-align: start; }
  .ad-toggle small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; } .ad-toggle b { font-size: 1.05rem; }
  .ad-toggle .chev { border: 1px solid var(--stroke); border-radius: 99px; padding: 3px 14px; font-weight: 600; font-size: .84rem; }
  .ad-nav { display: none; padding: 10px 2px 6px; } .ad-side.open .ad-nav { display: flex; }
}
/* ---------- صفحة غير موجودة + انقطاع الاتصال ---------- */
.lost { text-align: center; align-items: center; padding-block: clamp(48px, 12vh, 120px); }
.lost-marks { display: flex; gap: 10px; justify-content: center; } .lost-marks .mk { width: 64px; height: 64px; display: grid; place-items: center; font-size: 1.7rem; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); }
.row.center { justify-content: center; }
.offline { position: fixed; top: 0; inset-inline: 0; z-index: 80; padding: 8px 16px; text-align: center; font-weight: 600; font-size: .9rem; background: #FFD9CF; color: #6B1608; }
[hidden] { display: none !important; }
/* ---------- الأعمدة والقيم ---------- */
.explain { background: rgb(var(--se) / .08); border-color: rgb(var(--se) / .35); } .explain p { margin: 0; }
.preview { padding: 14px; border-radius: 16px; border: 1px dashed var(--stroke-2); background: rgb(var(--ov) / .04); gap: 10px; } .preview p { margin: 0; }
 
code.xl { font: inherit; font-size: .9rem; padding: 4px 12px; border-radius: 6px; background: rgb(var(--deep) / .5); border: 1px solid var(--stroke-2); overflow-wrap: anywhere; }
 
input.fresh { font-size: .88rem; }
.opt:disabled { opacity: .45; cursor: not-allowed; }
/* ---------- شاشة النتيجة: بطاقة للتصوير والنشر ---------- */
.sheet.res-sheet { width: min(100%, 460px); padding: 12px; gap: 12px; }
.res-card { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(16px, 4vw, 22px); display: flex; flex-direction: column; gap: 14px; --g: var(--ac);
  background: radial-gradient(120% 70% at 100% 0%, rgb(var(--g) / .42), transparent 62%), radial-gradient(90% 60% at 0% 100%, rgb(var(--se) / .22), transparent 65%), rgb(var(--solid)); border: 1px solid rgb(var(--g) / .5); }
.res-card.lose { --g: var(--se); } .res-card.draw { --g: var(--tx); }
.res-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .res-top img { height: 26px; width: auto; }
.chip.with-ico { gap: 6px; } .chip.with-ico svg { width: 14px; height: 14px; }
.res-head { text-align: center; } .res-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1.25; overflow-wrap: anywhere; }
.res-card.win .res-head h3 { background: linear-gradient(135deg, #FF9FA1, var(--orange) 55%, var(--orange-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-card.lose .res-head h3 { color: var(--mint); }
.res-head p { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.res-card .board { background: rgb(var(--deep) / .28); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 8px; }
.res-score { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.res-score span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 99px; background: rgb(var(--ov) / .08); border: 1px solid var(--stroke); font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.res-score span.won { border-color: var(--orange); background: rgb(var(--ac) / .16); font-weight: 700; } .res-score .mk { font-size: 1rem; filter: none; }
.res-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--stroke); font-size: .9rem; } .res-foot span { color: var(--muted); font-weight: 600; }
.res-actions { justify-content: center; } .res-actions .btn { flex: 1 1 auto; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 3px; opacity: 0; }
.confetti .c0 { background: var(--orange); } .confetti .c1 { background: var(--sea); } .confetti .c2 { background: var(--cream); border-radius: 50%; height: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .confetti i { animation: fall 2.6s ease-in forwards; }
  @keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(560px) rotate(540deg); opacity: 0; } }
  .res-head h3 { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both .15s; } @keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
}
.confetti .p0{inset-inline-start:11%;animation-delay:0.00s}.confetti .p1{inset-inline-start:48%;animation-delay:0.13s}.confetti .p2{inset-inline-start:85%;animation-delay:0.26s}.confetti .p3{inset-inline-start:26%;animation-delay:0.39s}.confetti .p4{inset-inline-start:63%;animation-delay:0.52s}.confetti .p5{inset-inline-start:4%;animation-delay:0.65s}.confetti .p6{inset-inline-start:41%;animation-delay:0.78s}.confetti .p7{inset-inline-start:78%;animation-delay:0.91s}.confetti .p8{inset-inline-start:19%;animation-delay:1.04s}.confetti .p9{inset-inline-start:56%;animation-delay:1.17s}.confetti .p10{inset-inline-start:93%;animation-delay:0.10s}.confetti .p11{inset-inline-start:34%;animation-delay:0.23s}.confetti .p12{inset-inline-start:71%;animation-delay:0.36s}.confetti .p13{inset-inline-start:12%;animation-delay:0.49s}.confetti .p14{inset-inline-start:49%;animation-delay:0.62s}.confetti .p15{inset-inline-start:86%;animation-delay:0.75s}.confetti .p16{inset-inline-start:27%;animation-delay:0.88s}.confetti .p17{inset-inline-start:64%;animation-delay:1.01s}
.res-top img { display: none; } :root:not([data-theme="light"]) .res-top .for-dark, :root[data-theme="light"] .res-top .for-light { display: block; }
.res-card .cell .mk { font-size: clamp(1.4rem, 6vw, 2rem); }
.notice .report.quiet { color: var(--muted); } .kept-line { margin: 0; font-weight: 600; }
/* ---------- إصلاحات المراجعة: لمس، تكبير الآيفون، النوافذ، التباين ---------- */
input, select, textarea { font-size: max(16px, 1em); } /* أقل من 16px يخلّي الآيفون يكبّر الصفحة عند الكتابة */
.btn.sm, .seg button, .theme-btn, .burger, .credit, .menu-btn { min-height: 40px; }
.theme-btn, .burger { min-width: 40px; }
input[type=checkbox] { width: 20px; height: 20px; }
.checks label { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
body.locked { overflow: hidden; }
body.locked .toast { top: 16px; bottom: auto; } /* التنبيه فوق، ما يغطي أزرار الحفظ في النافذة */
.res-card.daily .pn { display: none; }
@media (prefers-reduced-motion: no-preference) { .res-head h3 { animation-name: popTitle; } @keyframes popTitle { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } } }
:root[data-theme="light"] .big-num, :root[data-theme="light"] .kpi b, :root[data-theme="light"] .pack .n, :root[data-theme="light"] .hero h1 em, :root[data-theme="light"] .res-card.win .res-head h3 { background: linear-gradient(135deg, #B3262C, #B3262C); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .crit small { color: #B3262C; }
.card.warn { border-color: var(--orange); }
input[type=search], input[type=date], input[type=tel], input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { font-size: max(16px, 1em); }
/* ---------- الملفات المرفوعة ---------- */
.imp-filters { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px; }
@media (max-width: 640px) { .imp-filters { grid-template-columns: minmax(0, 1fr); } }
details.imp > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
details.imp > summary::-webkit-details-marker { display: none; }
details.imp > summary::after { content: 'التفاصيل ▾'; align-self: flex-start; font-size: .8rem; color: var(--orange-text); font-weight: 600; }
details.imp[open] > summary::after { content: 'إخفاء التفاصيل ▴'; }
details.imp > summary p { margin: 0; }
details.imp .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
details.imp[open] { gap: 12px; }
.ltr-iso { unicode-bidi: isolate; overflow-wrap: anywhere; }

/* ---------- الرصيد: نافذة نفاد الرصيد + نافذة الرصيد المصغرة ---------- */
.veil.center { align-items: center; }
.veil.center .sheet { margin-block: 24px; }
.sheet.nc-sheet { width: min(100%, 560px); text-align: center; background: radial-gradient(120% 80% at 50% 0%, rgb(var(--ac) / .28), transparent 60%), linear-gradient(150deg, rgb(var(--solid) / .94), rgb(var(--deep) / .96)); }
.nocredit { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.nocredit h3 { margin: 0; font-family: var(--display); font-size: clamp(1.35rem, 2.4vw + .6rem, 1.75rem); line-height: 1.35; }
.nocredit > p { margin: 0; }
.nc-marks { display: flex; justify-content: center; gap: 10px; }
.nc-marks .mk { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.4rem; font-weight: 700; background: var(--glass-2); border: 1px solid var(--stroke); }
.nc-marks .mk:nth-child(2) { transform: translateY(-6px); }
.nc-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 6px; }
.nc-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px 10px 14px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); transition: transform .15s, border-color .15s; min-height: 44px; }
.nc-pack:hover { transform: translateY(-2px); border-color: rgb(var(--ac) / .7); }
.nc-pack .n { font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.nc-pack.best { border-color: rgb(var(--ac) / .8); background: linear-gradient(160deg, rgb(var(--ac) / .3), var(--glass-2)); box-shadow: 0 8px 26px rgb(var(--ac) / .25); }
.nc-pack .chip.hot { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); }
.row.center { justify-content: center; }
.pricebox { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.35; }
.pricebox small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.price .pricebox { align-items: flex-start; }
.drop.credit-pop { width: min(280px, calc(100vw - 24px)); padding: 16px; gap: 8px; z-index: 30; background: rgb(var(--solid)); }
.credit-pop b { font-family: var(--display); font-size: 1.1rem; }
.credit-pop p { margin: 0; }
.credit-pop .btn { text-align: center; padding: 9px 14px; color: var(--on-ac); }
.credit-pop a:not(.btn) { padding: 6px 4px; font-size: .9rem; color: var(--muted); }
button.credit { cursor: pointer; }
button.credit[aria-expanded="true"] { border-color: rgb(var(--ac) / .8); }
@media (max-width: 640px) { .drop.credit-pop { position: fixed; top: 84px; inset-inline: 12px; width: auto; } .nc-packs { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } .nc-pack .n { font-size: 1.6rem; } }

/* ---------- البلاغات والمحادثات ---------- */
.menu-btn { position: relative; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; background: var(--orange); box-shadow: 0 0 0 2px rgb(var(--solid)); margin-inline-start: 6px; vertical-align: middle; }
.menu-btn .dot { position: absolute; top: -2px; inset-inline-end: -2px; margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: var(--on-ac); font-size: .72rem; font-weight: 700; margin-inline-start: 6px; line-height: 1; }
.rp-ctx { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 14px; }
.rp-ctx b { overflow-wrap: anywhere; }
.item.rep { gap: 10px; }
.item.unread, .inbox-item.unread { border-color: rgb(var(--ac) / .7); box-shadow: inset 3px 0 0 var(--orange); }
.rep-name { font-size: 1.1rem; }
.rep-q { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rep-note { margin: 0; padding: 10px 14px; border-inline-start: 3px solid rgb(var(--ac) / .7); background: var(--glass); border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-item { width: 100%; text-align: start; color: var(--text); cursor: pointer; font: inherit; }
.inbox-item:hover, a.item.linkish:hover { border-color: var(--stroke-2); }
a.item.linkish { text-decoration: none; color: var(--text); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.thread-scroll { max-height: 46vh; overflow: auto; padding: 2px; }
.bubble { max-width: 86%; align-self: flex-start; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 16px; border-end-start-radius: 4px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.bubble.mine { align-self: flex-end; background: rgb(var(--ac) / .2); border-color: rgb(var(--ac) / .45); border-end-start-radius: 16px; border-end-end-radius: 4px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .who { font-size: .78rem; font-weight: 700; color: var(--muted); }
.bubble .at { font-size: .72rem; color: var(--faint); align-self: flex-end; }
.reply-box { border-top: 1px solid var(--stroke); padding-top: 14px; }
.seg .count { margin-inline-start: 6px; }

/* ---------- الدخول والتسجيل: زجاج أوضح ---------- */
.auth { position: relative; display: grid; place-items: center; padding-block: clamp(8px, 4vh, 40px); }
.auth-card { position: relative; z-index: 1; width: min(100%, 480px); padding: clamp(22px, 4vw, 34px); border-radius: 28px; gap: 16px;
  background: linear-gradient(150deg, rgb(var(--ov) / .16), rgb(var(--ov) / .05) 60%), radial-gradient(120% 70% at 50% 0%, rgb(var(--ac) / .22), transparent 60%);
  border: 1px solid rgb(var(--ov) / .24); box-shadow: 0 30px 80px rgb(0 0 0 / .35), inset 0 1px 0 rgb(var(--ov) / .35);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .auth-card { background: rgb(var(--solid)); } }
.auth-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.auth-head img { height: 34px; width: auto; }
.auth-head h1 { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw + .8rem, 2.2rem); }
.auth-head p { margin: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.auth-tabs a { text-align: center; text-decoration: none; color: var(--text); }
.auth-marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-marks .mk { position: absolute; font-size: clamp(60px, 10vw, 120px); font-weight: 800; opacity: .16; filter: blur(1px); }
.auth-marks .mk:nth-child(1) { top: 4%; inset-inline-start: 6%; transform: rotate(-12deg); }
.auth-marks .mk:nth-child(2) { top: 12%; inset-inline-end: 8%; }
.auth-marks .mk:nth-child(3) { bottom: 6%; inset-inline-end: 12%; transform: rotate(10deg); }
.auth-marks .mk:nth-child(4) { bottom: 14%; inset-inline-start: 10%; }
.auth-later { border-top: 1px solid var(--stroke); padding-top: 14px; }
.row.end { justify-content: flex-end; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-inline-end: 72px; }
.eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; min-height: 32px; border-radius: 10px; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--glass-2); }
.pass-rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .82rem; color: var(--muted); }
.pass-rules li { display: flex; gap: 6px; align-items: center; }
.pass-rules li i { font-style: normal; width: 16px; text-align: center; }
.pass-rules li.ok { color: var(--mint); }
.phone-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; }
.phone-row select { min-width: 0; }
.danger-zone { border-color: rgb(var(--ac) / .35); }
.count.soft { background: var(--glass-3); color: var(--text); }
@media (max-width: 420px) { .pass-rules { grid-template-columns: 1fr; } .phone-row { grid-template-columns: 1fr; } }
.auth-head img { display: none; } :root:not([data-theme="light"]) .auth-head .for-dark, :root[data-theme="light"] .auth-head .for-light { display: block; }
.auth-tabs a { border-radius: 99px; padding: 8px 18px; font-weight: 700; color: var(--muted); transition: all .15s; }
.auth-tabs a[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.auth .err:empty { display: none; }
.pass-wrap input { padding-inline-end: 14px; padding-left: 76px; }
.eye { inset-inline-end: auto; left: 6px; }
.auth .row.end { justify-content: flex-start; }

/* ---------- المبيعات ---------- */
.range-bar { display: flex; flex-direction: column; gap: 10px; }
.seg.wrap-seg { flex-wrap: wrap; border-radius: 18px; }
.range-custom { align-items: flex-end; } .range-custom label.f { min-width: 150px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke); min-width: 0; }
.stat.hero { grid-column: span 2; background: linear-gradient(150deg, rgb(var(--ac) / .26), var(--glass-2)); border-color: rgb(var(--ac) / .45); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 12px 14px; } .stat-v { font-size: 1.3rem; } }
.stat-l { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat-v { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat.hero .stat-v { font-size: 2.2rem; }
.stat-d { font-size: .8rem; font-weight: 600; } .stat-d.up { color: var(--mint); } .stat-d.down { color: var(--bad); }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--stroke); stroke-width: 1; } .chart .grid.zero { stroke: var(--stroke-2); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .bar { fill: var(--orange); } .chart .bar.neg { fill: var(--muted); }
.chart .hit { fill: transparent; } .chart .bar-g { cursor: pointer; outline: none; }
.chart .bar-g.on .hit { fill: rgb(var(--ov) / .06); } .chart .bar-g.on .bar { filter: brightness(1.12); }
.chart-tip { position: absolute; width: 150px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: rgb(var(--solid)); border: 1px solid var(--stroke-2); box-shadow: var(--shadow); font-size: .82rem; z-index: 2; }
.bd { display: flex; flex-direction: column; gap: 12px; }
.bd-row { display: flex; flex-direction: column; gap: 4px; }
.bd-top { display: flex; justify-content: space-between; gap: 10px; } .bd-top b { white-space: nowrap; } .bd-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-track { height: 8px; border-radius: 99px; background: var(--glass); overflow: hidden; } .bd-track i { display: block; height: 100%; border-radius: 99px; background: var(--orange); }
.tbl, .tx { display: flex; flex-direction: column; gap: 6px; }
.tbl-h, .tbl-r { display: grid; grid-template-columns: 28px minmax(0, 2.4fr) minmax(0, 1fr) 70px minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 8px 12px; text-align: start; }
.tbl-h { font-size: .78rem; color: var(--muted); font-weight: 700; }
.tbl-r, .tx-row:not(.tx-head) { border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); color: var(--text); font: inherit; cursor: pointer; width: 100%; }
.tbl-r:hover, .tx-row:not(.tx-head):hover { border-color: var(--stroke-2); }
.tx-row { display: grid; grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1.3fr) 92px minmax(0, 1fr) 96px minmax(0, 1.1fr); gap: 10px; align-items: center; padding: 10px 12px; text-align: start; }
.tx-head { font-size: .78rem; color: var(--muted); font-weight: 700; }
.tx-row.pending { border-color: rgb(var(--ac) / .6); box-shadow: inset 3px 0 0 var(--orange); }
.tx-who, .tx-pk, .tx-amt { display: flex; flex-direction: column; min-width: 0; } .tx-who > *, .tx-pk > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-ref { font-size: .82rem; }
.tx-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: center; }
@media (max-width: 860px) {
  .tx-head { display: none !important; }
  .tx-row { grid-template-columns: 1fr auto; grid-template-areas: "who amt" "pk st" "ref at"; row-gap: 4px; }
  /* مناطق الصف للعمليات بس: .tx-who تنستخدم كمان في جداول ثانية (أكثر المشترين، اللاعبين النشطين) وكانت تخرب ترتيبها */
  .tx-row .tx-who { grid-area: who; } .tx-row .tx-amt { grid-area: amt; align-items: flex-end; } .tx-row .tx-pk { grid-area: pk; } .tx-row .tx-st { grid-area: st; justify-self: end; } .tx-row .tx-ref { grid-area: ref; } .tx-row .tx-at { grid-area: at; justify-self: end; } .tx-row .tx-m { display: none; }
  .tx-filters { grid-template-columns: 1fr 1fr; } .tx-filters input { grid-column: 1 / -1; }
  /* الجدول العام (أكثر المشترين) بس؛ الجداول الثانية لها قواعدها تحت ولا نخفي أعمدتها */
  .tbl-h:not(.ret):not(.heavy):not(.gifts):not(.codes):not(.audit):not(.cpu):not(.users) { display: none; } .tbl-r:not(.ret):not(.heavy):not(.gifts):not(.codes):not(.audit):not(.cpu):not(.users) { grid-template-columns: 24px minmax(0, 1fr) auto; } .tbl-r:not(.ret):not(.heavy):not(.gifts):not(.codes):not(.audit):not(.cpu):not(.users) > :nth-child(4), .tbl-r:not(.ret):not(.heavy):not(.gifts):not(.codes):not(.audit):not(.cpu):not(.users) > :nth-child(5) { display: none; }
}
.os-act { border-top: 1px solid var(--stroke); padding-top: 12px; }
.os-act summary { cursor: pointer; font-weight: 700; color: var(--bad); }
.os-act h4, .sheet h4 { margin: 0; }
button.linkish { color: var(--orange-text); font-weight: 700; padding: 0; text-decoration: underline; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: .9rem; }
.tx-m, .tx-at { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tx-amt b { white-space: nowrap; }

/* ---------- السلسلة في الهيدر ---------- */
.streak { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px; font-weight: 800; font-variant-numeric: tabular-nums; border: 1px solid var(--stroke); background: rgb(var(--deep) / .55); color: var(--muted); cursor: pointer; position: relative; }
.streak svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.streak.lit { color: var(--flame-2); border-color: rgb(255 140 60 / .55); background: linear-gradient(135deg, rgb(255 120 50 / .35), rgb(255 107 111 / .25)); box-shadow: 0 0 18px rgb(255 120 50 / .35); }
.streak.lit b { color: var(--cream); }
.streak.risk { color: var(--flame); border-color: rgb(255 140 60 / .45); }
.streak.risk::after { content: ''; position: absolute; top: -2px; inset-inline-end: -2px; width: 9px; height: 9px; border-radius: 99px; background: var(--orange); box-shadow: 0 0 0 2px rgb(var(--solid)); }
:root[data-theme="light"] .streak.lit b { color: #7A2E05; } :root[data-theme="light"] .streak { background: rgb(255 255 255 / .6); }
@media (prefers-reduced-motion: no-preference) {
  .streak.lit svg { animation: flicker 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
  .streak.risk svg { animation: ember 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
  .streak.bump { animation: bump .9s cubic-bezier(.3, 1.6, .5, 1) 2; }
  @keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 30% { transform: scale(1.08, 1.14) rotate(2deg); } 60% { transform: scale(.96, 1.04) rotate(-1deg); } }
  @keyframes ember { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
  @keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); box-shadow: 0 0 30px rgb(255 120 50 / .7); } 100% { transform: scale(1); } }
}
.drop.streak-pop { width: min(300px, calc(100vw - 24px)); padding: 16px; gap: 12px; z-index: 30; background: rgb(var(--solid)); }
.sp-head { display: flex; gap: 12px; align-items: center; } .sp-head b { display: block; font-family: var(--display); font-size: 1.15rem; }
.sp-flame { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--glass-2); color: var(--muted); }
.sp-flame svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.streak-pop.lit .sp-flame, .streak-pop.risk .sp-flame { color: var(--flame); background: linear-gradient(135deg, rgb(255 120 50 / .3), rgb(255 107 111 / .2)); }
.sp-msg { margin: 0; font-size: .92rem; } .streak-pop.risk .sp-msg b { color: var(--flame); }
.sp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sp-day { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .72rem; color: var(--muted); }
.sp-day i { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--stroke); }
.sp-day.ok i { background: linear-gradient(135deg, var(--flame), var(--orange)); border-color: transparent; color: #fff; }
.sp-day i svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.sp-day.today i { box-shadow: 0 0 0 2px var(--cream); } .sp-day.today { color: var(--text); font-weight: 700; }
.sp-goal { display: flex; flex-direction: column; gap: 6px; } .sp-goal .bd-track i { background: linear-gradient(90deg, var(--flame), var(--orange)); }
.streak-pop .btn { text-align: center; color: var(--on-ac); }

@media (max-width: 640px) {
  .streak { height: 32px; padding: 0 9px 0 8px; } .credit .lbl { display: none; } 
  .drop.streak-pop { position: fixed; top: 84px; inset-inline: 12px; width: auto; }
}
 
.bd-track.funnel i { background: linear-gradient(90deg, var(--orange), var(--flame)); }
.tbl-h.codes, .tbl-r.codes { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } .tbl-r.static { cursor: default; }
.code-name { font-size: 1.15rem; letter-spacing: .04em; } .code-val { margin: 0; font-family: var(--display); font-size: 1.4rem; color: var(--orange-text); }
.buy-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 1.2rem; } .buy-price s { font-size: 1rem; }
.dc summary { cursor: pointer; font-weight: 700; color: var(--orange-text); } .dc-row { margin-top: 8px; flex-wrap: nowrap; } .dc-row input { flex: 1; text-transform: uppercase; }

/* ---------- تحسين الكثافة والتخطيط (v3.11) ---------- */
/* اللوحة تاخذ عرض أوسع على الشاشات الكبيرة، وصفحات الزوار تبقى بعرض مريح للقراءة */
body[data-page="admin"] { --wrap: 1560px; }
@media (min-width: 901px) { .page.admin { grid-template-columns: 236px minmax(0, 1fr); } }
.empty { padding: 16px 18px; font-size: .92rem; }
.empty-line { margin: 0; color: var(--muted); font-size: .92rem; }
.opts.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 900px) { .opts.two { grid-template-columns: 1fr 1fr; } }
/* المجموعات: عنوان صغير فوق كل مجموعة أرقام */
.ov-group { display: flex; flex-direction: column; gap: 10px; }
.ov-group > h3 { margin: 0; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .ov-grid { grid-template-columns: 1fr; } }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.num { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); text-align: start; color: var(--text); font: inherit; min-width: 0; }
button.num { cursor: pointer; position: relative; } button.num:hover { border-color: var(--stroke-2); }
button.num::after { content: "‹"; position: absolute; inset-inline-end: 12px; top: 10px; color: var(--muted); font-size: 1.1rem; line-height: 1; } /* 3.38: يبيّن أن البطاقة تفتح قسمًا */
[dir="ltr"] button.num::after { content: "›"; }
.num b { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.num span { font-size: .8rem; color: var(--muted); }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.act { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); text-align: start; color: var(--text); font: inherit; cursor: pointer; }
.act b { grid-row: span 2; font-family: var(--display); font-size: 1.6rem; color: var(--muted); min-width: 1.4em; text-align: center; }
.act span { font-size: .88rem; font-weight: 600; } .act small { font-size: .75rem; color: var(--muted); }
.act.on { border-color: rgb(var(--ac) / .6); background: linear-gradient(140deg, rgb(var(--ac) / .2), var(--glass)); } .act.on b { color: var(--orange-text); }
.act:not(.on) span { color: var(--muted); }
.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert { padding: 10px 14px; border-radius: 12px; background: rgb(var(--ac) / .12); border: 1px solid rgb(var(--ac) / .4); font-size: .88rem; }
.alert .linkish { margin-inline-start: 6px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rej { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; } .rej span { color: var(--muted); } .rej:disabled { cursor: default; }
/* بطاقات الأرقام: مدمجة، بارتفاع واحد، والشرح في علامة ؟ بدل نص طويل داخل البطاقة */
.stats { grid-auto-rows: 1fr; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.stat { padding: 12px 14px; gap: 2px; border-radius: 14px; }
.stat.hero { grid-column: span 2; }
.stat-l { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.stat-v { font-size: 1.4rem; } .stat.hero .stat-v { font-size: 1.9rem; }
.stat-d { font-size: .76rem; } .stat-s { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 99px; background: var(--glass-3); color: var(--muted); font-size: .66rem; font-weight: 800; cursor: help; flex: none; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); inset-inline-start: -8px; width: max-content; max-width: 230px; padding: 8px 10px; border-radius: 10px; background: rgb(var(--solid)); border: 1px solid var(--stroke-2); color: var(--text); font-size: .78rem; font-weight: 500; line-height: 1.6; box-shadow: var(--shadow); z-index: 5; white-space: normal; }
/* مسار التحويل أفقي: أربع مراحل جنب بعض */
.funnel-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fn-step { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); min-width: 0; }
.fn-step b { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; } .fn-t { font-size: .85rem; font-weight: 600; }
@media (max-width: 760px) { .funnel-row { grid-template-columns: 1fr 1fr; } }
.few { display: flex; flex-direction: column; gap: 6px; } .few-r { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--glass); }
.chart .axis { font-size: 13px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } .stat.hero { grid-column: span 2; } }
@media (max-width: 640px) {
  .acts { grid-template-columns: 1fr 1fr; } .act { grid-template-columns: 1fr; text-align: center; } .act b { grid-row: auto; }
  .seg.wrap-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; } .seg.wrap-seg::-webkit-scrollbar { display: none; } .seg.wrap-seg button { flex: none; }
}

/* ---------- v3.11: باقي أقسام اللوحة ---------- */
/* القوائم في اللوحة تصير شبكة بطاقات على الشاشات العريضة بدل صفوف طويلة فاضية */
@media (min-width: 1100px) {
  .ad-main .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px; align-items: start; }
  .ad-main .list > .item { height: 100%; }
}
.ad-main h2 { font-size: clamp(1.05rem, .6vw + .8rem, 1.3rem); margin: 0; }
.ad-main section.stack { gap: 10px; }
.ad-main .kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ad-main .kpi { padding: 12px 14px; border-radius: 14px; } .ad-main .kpi b { font-size: 1.35rem; } .ad-main .kpi span { font-size: .78rem; }
/* الإعدادات: أعمدة متدفقة بدل شبكة تترك فراغات تحت البطاقات القصيرة */
.settings-cols { columns: 3 340px; column-gap: 14px; }
.settings-cols > section { break-inside: avoid; margin-bottom: 14px; display: flex; }
.settings-cols > section.card { display: flex; }
/* صفحات الزوار القصيرة: المحتوى ما يلتصق فوق ويترك الصفحة فاضية */
.page.mid, .page.narrow { min-height: 50vh; }

/* ---------- الإحصائيات ولوحة المطور ---------- */
.tbl-h.ret, .tbl-r.ret { grid-template-columns: minmax(0, 1.2fr) 70px repeat(3, minmax(0, 1fr)); }
.tbl-h.cpu, .tbl-r.cpu { grid-template-columns: 80px 70px repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); }
.tbl-h.heavy, .tbl-r.heavy { grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)); }
.heat { display: grid; grid-template-columns: 64px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; direction: ltr; }
.heat .hd { font-size: .74rem; color: var(--muted); text-align: right; direction: rtl; padding-right: 6px; }
.heat .hh { font-size: .66rem; color: var(--faint); text-align: center; }
.heat i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--orange); min-height: 10px; }
.alert.ok { background: rgb(var(--se) / .12); border-color: rgb(var(--se) / .4); }
.ov-grid.dev { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 1100px) { .ov-grid.dev { grid-template-columns: 1fr; } }
.err-list { display: flex; flex-direction: column; gap: 6px; }
.err-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.err-row:hover { border-color: var(--stroke-2); }
.err-m, .err-n { display: flex; flex-direction: column; min-width: 0; } .err-m b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .err-n { align-items: flex-end; text-align: end; }
.err-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: .78rem; background: rgb(var(--deep) / .5); padding: 10px 12px; border-radius: 10px; max-height: 260px; overflow: auto; margin: 0; text-align: left; }
.env { display: flex; flex-direction: column; gap: 6px; } .env-r { display: grid; grid-template-columns: auto minmax(0, auto) minmax(0, 1fr); gap: 10px; align-items: center; } .env-r .chip { justify-self: start; }
@media (max-width: 760px) { .tbl-h.cpu { display: none; } .tbl-r.cpu { grid-template-columns: repeat(4, minmax(0, 1fr)); } .err-row { grid-template-columns: 1fr; } .err-n { align-items: flex-start; } .heat { grid-template-columns: 44px repeat(24, minmax(0, 1fr)); gap: 1px; } .heat .hd { font-size: .62rem; } .tbl-h.ret { display: none; } .tbl-r.ret { grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: .78rem; } }

/* القائمة الجانبية ما تنقص من تحت: كانت ثابتة بارتفاع الشاشة وتتمرر من داخلها، فآخر الأقسام (الإعدادات ولوحة المطور) تختفي على شاشات اللابتوب */
@media (min-width: 901px) { .ad-side { position: static; max-height: none; overflow: visible; } }
.ad-nav button { padding-block: 7px; } .ad-group h3 { margin-block: 8px 2px; }
.ad-ver { margin: 10px 4px 0; font-size: .72rem; color: var(--faint); }

/* ---------- الأمان والمشرفين وسجل التعديلات ---------- */
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gate { max-width: 620px; margin: 40px auto 0; }
.tfa-steps { margin: 0; padding: 0; list-style: none; counter-reset: t; display: flex; flex-direction: column; gap: 14px; }
.tfa-steps > li { counter-increment: t; display: flex; flex-direction: column; gap: 6px; padding-inline-start: 34px; position: relative; }
.tfa-steps > li::before { content: counter(t); position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--glass); border: 1px solid var(--stroke-2); }
.qr-box { background: #fff; border-radius: 12px; padding: 6px; width: 188px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.tfa-key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tfa-key code, .bk-codes code { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: .92rem; letter-spacing: .06em; background: rgb(var(--deep) / .5); border: 1px solid var(--stroke); padding: 6px 10px; border-radius: 8px; }
.bk-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bk-codes code { text-align: center; }
.sec-block { padding-bottom: 14px; border-bottom: 1px solid var(--stroke); }
.perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass); cursor: pointer; }
.perm input { margin-top: 3px; flex: none; }
.perm span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .perm small { font-size: .74rem; line-height: 1.5; }
.perm:has(input:checked) { border-color: var(--stroke-2); }
.adm.is-off .perms { opacity: .5; } .adm.is-off .perm { cursor: default; }
.adm .top-line { align-items: flex-start; gap: 10px; }
.al-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.tbl-h.audit, .tbl-r.audit { grid-template-columns: 130px minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1fr); }
.audit-d dd { overflow-wrap: anywhere; }
@media (max-width: 760px) { .al-f { grid-template-columns: 1fr 1fr; } .al-f > :last-child { grid-column: 1 / -1; } .tbl-h.audit { display: none; } .tbl-r.audit { grid-template-columns: minmax(0, 1fr) auto; } .tbl-r.audit > :nth-child(2) { grid-row: 2; } .tbl-r.audit > :nth-child(4) { grid-row: 2; } .bk-codes { grid-template-columns: 1fr 1fr; } }

/* ---------- أونلاين بخصم عشوائي ---------- */
.grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.c5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } }
.q-card { align-items: center; text-align: center; }
.q-dots { display: flex; gap: 8px; justify-content: center; padding: 6px 0; }
.q-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); animation: qd 1.2s infinite ease-in-out; }
.q-dots i:nth-child(2) { animation-delay: .2s; } .q-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes qd { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .q-dots i { animation: none; opacity: .7; } }
.opp-off { text-align: center; }

/* ---------- الهدايا ---------- */
.gift-toggle { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); cursor: pointer; transition: border-color .15s, background .15s; }
.gift-toggle span.mw0 { display: flex; flex-direction: column; gap: 2px; } .gift-toggle small { font-size: .8rem; }
.gift-toggle:has(input:checked) { border-color: rgb(var(--ac) / .6); background: rgb(var(--ac) / .1); }
.gt-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--ac) / .14); color: var(--orange-text); flex: none; }
.gt-ico svg { width: 22px; height: 22px; }
.gift-body { padding: 4px 2px 0; }
.gift-how { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.gift-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px dashed var(--stroke-2); margin-top: 10px; }
.gift-box > svg { width: 20px; height: 20px; flex: none; color: var(--orange-text); margin-top: 2px; }
.gift-box.ready { flex-direction: column; align-items: stretch; border-style: solid; border-color: rgb(var(--ac) / .45); background: rgb(var(--ac) / .07); }
.gift-box.done > svg { color: var(--mint); } .gift-box.off { opacity: .7; } .gift-box p { margin: 0; }
.gift-code { display: block; text-align: center; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 1.35rem; letter-spacing: .12em; padding: 10px; border-radius: 10px; background: rgb(var(--deep) / .45); border: 1px solid var(--stroke); user-select: all; }
.gift-cta { gap: 14px; flex-wrap: wrap; } .gift-cta p { margin: 0; }
.gift-page { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 520px; margin-inline: auto; }
.gift-page > .card, .gift-page > .gift-card { width: 100%; }
.gift-hero { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgb(var(--ac) / .14); color: var(--orange-text); }
.gift-hero svg { width: 34px; height: 34px; }
.gift-input { text-transform: uppercase; letter-spacing: .14em; font-size: 1.2rem; }
.gift-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 20px 22px; border-radius: 22px; border: 1px solid var(--stroke); background: linear-gradient(160deg, rgb(var(--ac) / .16), rgb(var(--se) / .1)), var(--glass); box-shadow: 0 18px 50px rgb(0 0 0 / .18); }
.gift-card.muted-card { background: var(--glass); }
.gift-card .gc-who { margin: 0; font-weight: 700; } .gift-card .gc-code { margin: 0; font-family: var(--body); font-variant-numeric: tabular-nums; letter-spacing: .1em; color: var(--muted); font-size: .85rem; }
.gc-n { display: flex; align-items: baseline; gap: 8px; } .gc-n b { font-size: 3.4rem; line-height: 1; color: var(--orange-text); font-family: var(--display); } .gc-n span { font-weight: 700; }
.gc-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgb(var(--deep) / .3); font-style: normal; max-width: 100%; overflow-wrap: anywhere; }
.gc-why { margin: 0; font-weight: 600; }
.gift-card > .stack, .gift-card > .btn { width: 100%; }
/* صندوق الهدية: يهتز شوي وهو ينتظر، والغطاء يطير لما تستلمها */
.gc-box { position: relative; width: 84px; height: 76px; margin-bottom: 4px; }
.gc-box .base { position: absolute; inset: 26px 6px 0; border-radius: 8px; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); }
.gc-box .lid { position: absolute; inset: 14px 0 auto; height: 16px; border-radius: 6px; background: var(--orange); box-shadow: 0 3px 0 rgb(0 0 0 / .15); transform-origin: 20% 100%; z-index: 2; }
.gc-box .ribbon { position: absolute; inset: 14px 36px 0; background: var(--sea); border-radius: 3px; z-index: 3; }
.gc-box .lid::before, .gc-box .lid::after { content: ''; position: absolute; bottom: 14px; width: 22px; height: 16px; border: 4px solid var(--sea); border-radius: 50% 50% 0 50%; }
.gc-box .lid::before { inset-inline-end: 42px; transform: rotate(-20deg); } .gc-box .lid::after { inset-inline-start: 42px; transform: rotate(20deg) scaleX(-1); }
.gift-card.ready .gc-box { animation: gwiggle 2.4s ease-in-out infinite; }
.gift-card.open .gc-box .lid { animation: glid .7s cubic-bezier(.2, .8, .3, 1.2) forwards; }
.gift-card.open .gc-box .ribbon { inset-block-start: 26px; }
@keyframes gwiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-6deg); } 88% { transform: rotate(5deg); } 92% { transform: rotate(-3deg); } 96% { transform: rotate(2deg); } }
@keyframes glid { to { transform: translateY(-26px) rotate(-24deg); opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .gift-card.ready .gc-box { animation: none; } .gift-card.open .gc-box .lid { animation: none; transform: translateY(-20px) rotate(-18deg); } }
.gift-card.mini { padding: 14px; box-shadow: none; gap: 4px; } .gift-card.mini .gc-n b { font-size: 2.2rem; }
.gift-meter { display: flex; flex-direction: column; gap: 6px; }
.tbl-h.gifts, .tbl-r.gifts { grid-template-columns: 100px minmax(0, 1.2fr) 70px 110px minmax(0, 1.6fr); }
@media (max-width: 760px) { .tbl-h.gifts { display: none; } .tbl-r.gifts { grid-template-columns: minmax(0, 1fr) auto; } }


/* ---------- السلسلة والمكافآت (3.20) ---------- */
.shields { display: inline-flex; gap: 3px; margin-inline-start: auto; flex: none; }
.shields i { width: 24px; height: 26px; display: grid; place-items: center; color: var(--faint); }
.shields i svg { width: 22px; height: 22px; fill: rgb(var(--ov) / .06); }
.shields i.on { color: var(--mint); } .shields i.on svg { fill: rgb(var(--se) / .28); }
.sp-day.sh i { background: rgb(var(--se) / .2); border-color: rgb(var(--se) / .5); color: var(--mint); } .sp-day.sh i svg { fill: none; stroke: currentColor; }
.streak-pop .btn.ghost { color: var(--text); }
.stack-sm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rewards .head { margin-bottom: var(--gap); }
.rw-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; margin-bottom: var(--gap); }
.rw-hero .rw-week { grid-column: 1 / -1; max-width: 380px; }
.rw-flame { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--glass-2); color: var(--faint); }
.rw-flame svg { width: 38px; height: 38px; fill: currentColor; stroke: none; }
.rw-flame.lit, .rw-flame.risk { color: var(--flame); background: linear-gradient(135deg, rgb(255 120 50 / .3), rgb(255 107 111 / .2)); }
.rw-n { font-family: var(--display); font-size: 1.4rem; line-height: 1.3; }
.rw-shields { align-items: flex-end; text-align: end; max-width: 190px; } .rw-shields .shields { margin: 0; }
.rw-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); align-items: start; margin-bottom: calc(var(--gap) * 1.5); }
.stage-seg { align-self: stretch; justify-content: space-between; } .stage-seg button { flex: 1; justify-content: center; padding-inline: 10px; }
.stage-lock { padding: 8px 12px; border-radius: 12px; background: var(--glass); }
/* الطريق: خط متعرج تحته، المحطات فوقه. الخط يتعبى بلون الشعلة لين مكانك */
.path { position: relative; margin: 6px 0; }
.path-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path-line path { fill: none; stroke-linecap: round; }
.pl-base { stroke: rgb(var(--ov) / .14); stroke-width: 10px; }
.pl-fill { stroke: var(--flame); stroke-width: 10px; filter: drop-shadow(0 0 6px rgb(255 120 50 / .45)); }
.path.locked .pl-fill { opacity: .4; }
.st { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; width: 112px; text-align: center; line-height: 1.35; }
.st-ico { position: relative; width: 52px; height: 52px; border-radius: 99px; display: grid; place-items: center; background: rgb(var(--solid)); border: 2px solid var(--stroke-2); color: var(--faint); margin-bottom: 3px; transition: transform .15s; }
.st-ico svg { width: 24px; height: 24px; }
.st-ico em { position: absolute; top: -6px; inset-inline-end: -10px; font-style: normal; font-size: .7rem; font-weight: 800; padding: 0 6px; border-radius: 99px; background: var(--cream); color: var(--ink); }
.st b { font-size: .9rem; } .st small { font-size: .72rem; color: var(--muted); }
.st .st-rw { color: var(--text); font-weight: 600; }
button.st:hover .st-ico { transform: scale(1.06); }
.st-done .st-ico { background: linear-gradient(135deg, var(--flame), var(--orange)); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -8px rgb(255 120 50 / .8); }
.st-done .st-ico svg { stroke-width: 3; }




.st-locked { opacity: .78; } .path.locked .st { opacity: .6; }
.st.start { width: 80px; } .st-dot { width: 16px; height: 16px; border-radius: 99px; background: var(--flame); box-shadow: 0 0 0 5px rgb(255 154 77 / .25); margin-bottom: 4px; }
@media (prefers-reduced-motion: no-preference) {
  
  @keyframes stpulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 154 77 / .5); } 50% { box-shadow: 0 0 0 10px rgb(255 154 77 / 0); } }
}
.mission { display: flex; flex-direction: column; gap: 6px; }
.mission .bd-track i { background: linear-gradient(90deg, var(--sea), #3FB8CC); }
.mission.done .bd-track i { background: linear-gradient(90deg, var(--flame), var(--orange)); }
.month-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); }
.month-dots { display: flex; gap: 8px; } .month-dots i { flex: 1; height: 10px; border-radius: 99px; background: rgb(var(--ov) / .12); } .month-dots i.on { background: linear-gradient(90deg, var(--flame), var(--orange)); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge-c { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); text-align: center; line-height: 1.4; }
.badge-c:disabled { opacity: 1; cursor: default; }
.badge-c b { font-size: .92rem; } .badge-c small { font-size: .75rem; color: var(--muted); }
.bc-ico { position: relative; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgb(var(--ov) / .07); color: var(--faint); }
.bc-ico svg { width: 26px; height: 26px; }
.bc-ico em { position: absolute; top: -6px; inset-inline-end: -8px; font-style: normal; font-size: .68rem; font-weight: 800; padding: 0 6px; border-radius: 99px; background: var(--cream); color: var(--ink); }
.badge-c:not(.got) b { color: var(--muted); }
.badge-c.got .bc-ico { background: linear-gradient(135deg, var(--flame), var(--orange)); color: #fff; }
.badge-c.got:hover { border-color: var(--stroke-2); }
.badge-c.cur { border-color: var(--flame); box-shadow: 0 0 0 2px rgb(255 154 77 / .35); } .badge-c.cur small { color: var(--flame); font-weight: 700; }
.mile-sheet, .rw-pop { align-items: center; } .ms-facts { text-align: start; width: 100%; }
.ms-ico { width: 64px; height: 64px; border-radius: 99px; display: grid; place-items: center; background: var(--glass-2); color: var(--faint); border: 2px solid var(--stroke-2); }
.ms-ico svg { width: 30px; height: 30px; } .ms-ico.big { width: 84px; height: 84px; } .ms-ico.big svg { width: 40px; height: 40px; }
.ms-ico.st-done { background: linear-gradient(135deg, var(--flame), var(--orange)); color: #fff; border-color: transparent; box-shadow: 0 14px 34px -12px rgb(255 120 50 / .8); }
.ms-ico.st-done svg { fill: rgb(255 255 255 / .25); }
 
.rw-sheet { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .rw-pop .ms-ico { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both .1s; } }
.side .ttl { display: block; font-size: .7rem; color: var(--flame); font-weight: 700; line-height: 1.2; }
.res-streak { display: inline-flex; align-items: center; gap: 6px; } .res-streak svg { width: 16px; height: 16px; fill: var(--flame); stroke: none; }
@media (max-width: 860px) { .rw-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .rw-hero { grid-template-columns: auto minmax(0, 1fr); } .rw-shields { grid-column: 1 / -1; align-items: flex-start; text-align: start; max-width: none; flex-direction: row; gap: 10px; align-items: center; }
  .st { width: 92px; } .st-ico { width: 46px; height: 46px; } .st small { font-size: .68rem; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- الدليل ---------- */
.tour { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.tour-ring { position: fixed; border-radius: 16px; box-shadow: 0 0 0 200vmax rgb(4 9 17 / .62), 0 0 0 3px var(--flame), 0 0 24px 4px rgb(255 154 77 / .55); transition: top .25s, left .25s, width .25s, height .25s; pointer-events: none; }
:root[data-theme="light"] .tour-ring { box-shadow: 0 0 0 200vmax rgb(27 42 65 / .55), 0 0 0 3px #FF6B6F, 0 0 24px 4px rgb(255 107 111 / .4); }
.tour-bub { position: fixed; width: min(330px, calc(100vw - 24px)); pointer-events: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; background: rgb(var(--solid)); border: 1px solid var(--stroke-2); box-shadow: var(--shadow); line-height: 1.65; }
.tour-bub b { font-family: var(--display); font-size: 1.05rem; } .tour-bub p { font-size: .95rem; }
.tb-top { margin-bottom: -2px; } .tb-skip { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tb-hint { color: var(--flame); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .tour-bub.in { animation: rise .22s ease-out; } }
.help-fab { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 35; width: 46px; height: 46px; border-radius: 99px; display: grid; place-items: center; font-family: var(--display); font-size: 1.35rem; font-weight: 800; background: rgb(var(--solid)); color: var(--text); border: 1px solid var(--stroke-2); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); }
.help-fab:hover { border-color: var(--flame); color: var(--flame); }
.help-fab.new { background: linear-gradient(135deg, #FF9A4D, var(--orange)); color: var(--on-ac); border-color: transparent; } /* 2.1: كحلي فوق التعبئة (الأبيض 2.1–2.8) */
@media (prefers-reduced-motion: no-preference) { .help-fab.new { animation: fabglow 2.2s ease-in-out infinite; } @keyframes fabglow { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 120 70 / .55), 0 12px 28px -12px rgba(0, 0, 0, .7); } 50% { box-shadow: 0 0 0 12px rgb(255 120 70 / 0), 0 12px 28px -12px rgba(0, 0, 0, .7); } } }
body[data-page="admin"] .help-fab { display: none; }
.welcome .nc-marks { margin-bottom: 4px; }
a.card.stat.linkish { text-decoration: none; color: var(--text); } a.card.stat.linkish:hover { border-color: var(--stroke-2); }
.tour-inline { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: rgb(255 154 77 / .14); border: 1px solid rgb(255 154 77 / .55); }
.tour-inline b { color: var(--flame); font-size: .95rem; } .tour-inline p { line-height: 1.55; }
:root[data-theme="light"] .tour-inline b { color: #B4520F; }
.mission .bd-track, .sp-goal .bd-track { background: rgb(var(--ov) / .1); }
.stack.center > .ms-ico, .stack.center > .nc-marks { align-self: center; }
/* ---------- الكورة: رؤوس الخانات بأيقونة نوعها، شرح الخانة، المقفل، اختيار القسم ---------- */
.crit.fbc small { display: inline-flex; align-items: center; justify-content: center; gap: 3px; line-height: 1.3; max-width: 100%; }
.crit.fbc small svg { width: 11px; height: 11px; flex: none; }
.crit.fbc small span { overflow-wrap: anywhere; }
.crit.t-num b { font-size: clamp(1rem, 2vw + .4rem, 1.35rem); }
.fb-explain { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgb(var(--se) / .08); border: 1px solid rgb(var(--se) / .3); }
.fb-explain p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; line-height: 1.55; }
.fx-ico { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgb(var(--ac) / .16); color: var(--orange-text); margin-top: 1px; }
.fx-ico svg { width: 14px; height: 14px; }
.hits button.hit.locked { opacity: .62; cursor: not-allowed; background: transparent; border-style: dashed; }
.hits button.hit.locked:hover { border-color: var(--stroke); background: transparent; }
.lock-why { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.lock-why svg { width: 12px; height: 12px; }
.fb-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.fb-sec { display: flex; align-items: center; gap: 12px; text-align: start; padding: 12px 14px; border-radius: 16px; background: rgb(var(--ov) / .05); border: 1px solid var(--stroke); color: var(--text); font: inherit; cursor: pointer; transition: all .15s ease; min-width: 0; }
.fb-sec:hover { background: var(--glass-2); }
.fb-sec[aria-pressed="true"] { background: linear-gradient(140deg, rgb(var(--ac) / .32), rgb(var(--ac) / .1)); border-color: var(--orange); box-shadow: 0 10px 30px -14px var(--orange-glow); }
.fb-sec.spent { opacity: .55; filter: saturate(.4); border-style: dashed; }
.fb-sec.spent:hover { opacity: .8; }
.fs-badge { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--stroke); font-weight: 700; font-size: .78rem; letter-spacing: .5px; }
.fs-badge.g { background: rgb(var(--se) / .18); color: var(--mint); border-color: rgb(var(--se) / .4); } .fs-badge svg { width: 22px; height: 22px; }
.fs-badge.sm { width: 34px; height: 26px; border-radius: 8px; font-size: .7rem; }
.fs-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; } .fs-txt b { font-weight: 700; } .fs-txt span { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.fs-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--stroke-2); }
.fb-sec[aria-pressed="true"] .fs-check { background: var(--orange); border-color: var(--orange); color: var(--on-ac); } .fs-check svg { width: 14px; height: 14px; }
.fb-own { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); } .fb-own svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--mint); }
.spent-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--glass-2); color: var(--faint); margin-inline: auto; } .spent-ico svg { width: 30px; height: 30px; }
.btn.with-ico, h3.with-ico { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .btn.with-ico svg, h3.with-ico svg { width: 18px; height: 18px; flex: none; }
.fb-done { display: flex; gap: 8px; align-items: flex-start; margin: 0; } .fb-done svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
/* لوحة الكورة */
.sw { position: relative; flex: none; width: 42px; height: 24px; border-radius: 99px; border: 1px solid var(--stroke-2); background: var(--glass-2); cursor: pointer; padding: 0; transition: background .15s, border-color .15s; }
.sw i { position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); opacity: .75; transition: inset-inline-start .15s ease, background .15s; }
.sw[aria-checked="true"] { background: var(--orange); border-color: var(--orange); } .sw[aria-checked="true"] i { inset-inline-start: 20px; background: var(--on-ac); opacity: 1; }
.sw:disabled { opacity: .5; cursor: wait; } .sw:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.fb-sws { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fb-sw { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; cursor: pointer; }
.fb-why { margin: 0; color: var(--bad); }
.fb-legend { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
.fb-banner { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--stroke); }
.fb-banner span { font-size: .86rem; color: var(--muted); }
.fb-banner.good { background: rgb(var(--se) / .12); border-color: rgb(var(--se) / .45); } .fb-banner.good b, .fb-banner.good h3 { color: var(--mint); }
.fb-banner.warn { background: rgb(255 190 90 / .12); border-color: rgb(255 190 90 / .45); }
.fb-banner.bad { background: rgb(var(--ac) / .12); border-color: rgb(var(--ac) / .5); } .fb-banner.bad b { color: var(--bad); }
.fbt-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--stroke); }
.fbt { width: 100%; border-collapse: collapse; font-size: .85rem; }
.fbt th, .fbt td { padding: 8px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--stroke); }
.fbt th { font-size: .76rem; color: var(--muted); font-weight: 700; background: var(--glass); white-space: nowrap; }
.fbt tr:last-child td { border-bottom: 0; }
.fb-errs td:first-child { white-space: nowrap; width: 1%; } .fb-errs td:nth-child(2) { white-space: nowrap; width: 1%; }
.up-hist td { vertical-align: middle; } .up-hist td:nth-child(n+2) { white-space: nowrap; width: 1%; } .up-hist td:first-child b { white-space: nowrap; } /* سجل الرفع (3.57.1) */
.uh-chips { flex-wrap: nowrap; } .uh-when, .uh-who { display: block; } .uh-who { font-size: .76rem; margin-top: 2px; }
@media (max-width: 760px) {
  .up-hist thead { display: none; }
  .up-hist tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--stroke); align-items: center; }
  .up-hist tr:last-child { border-bottom: 0; } .up-hist td { border: 0; padding: 0; width: auto !important; white-space: normal !important; }
  .up-hist td:first-child b { white-space: normal; overflow-wrap: anywhere; }
  .up-hist td:nth-child(1) { grid-column: 1; grid-row: 1; } .up-hist td:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
  .up-hist td:nth-child(2), .up-hist td:nth-child(3), .up-hist td:nth-child(5) { grid-column: 1 / -1; font-size: .82rem; }
  .up-hist td:nth-child(5):empty { display: none; } .uh-when, .uh-who { display: inline; } .uh-who::before { content: ' · رفعه '; }
}
.note-t td:first-child { white-space: nowrap; width: 1%; } .note-group + .note-group { border-top: 1px solid var(--stroke); padding-top: 12px; } /* تنبيهات الرفع المجمّعة (3.57.1) */
.fd-errs td:nth-child(-n+3) { white-space: nowrap; width: 1%; } /* أخطاء القاموس: التبويب والصف والعمود ثم المشكلة */
.fb-cols td:first-child { white-space: nowrap; }
.fb-rules summary { cursor: pointer; font-weight: 600; font-size: .9rem; } .fb-rules ul { margin: 8px 0 12px; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
.fb-dec.ok { border-color: rgb(var(--se) / .5); background: rgb(var(--se) / .07); }
.fb-dec select { width: 100%; }
.fb-dec .seg { align-self: flex-start; }
.fb-actions { position: sticky; bottom: 12px; z-index: 3; }
.fb-empty { border-style: dashed; }
.fb-country .top-line { align-items: center; }
details.card > summary { cursor: pointer; }
@media (max-width: 640px) { .fb-sws { flex-direction: column; } .fb-actions { flex-direction: column; align-items: stretch; } }
@media (max-width: 640px) {
  .fb-errs thead { display: none; }
  .fb-errs tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--stroke); align-items: center; }
  .fb-errs tr:last-child { border-bottom: 0; } .fb-errs td { border: 0; padding: 0; width: auto !important; } .fb-errs td:nth-child(3) { grid-column: 1 / -1; }
  .fb-errs td:first-child::before { content: 'صف '; color: var(--muted); font-size: .76rem; }
  .fd-errs thead { display: none; }
  .fd-errs tr { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--stroke); align-items: center; justify-items: start; }
  .fd-errs tr:last-child { border-bottom: 0; } .fd-errs td { border: 0; padding: 0; width: auto !important; } .fd-errs td:nth-child(4) { grid-column: 1 / -1; }
  .fd-errs td:nth-child(2)::before { content: 'صف '; color: var(--muted); font-size: .76rem; }
}
 
/* الموافقة على الشروط، الصفحات القانونية، الأسئلة الشائعة */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--orange); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; order: 3; justify-content: center; border-top: 1px solid var(--stroke); padding-top: 14px; }
.legal-body h2 { font-size: 1.15rem; margin: 10px 0 0; } .legal-body h3 { font-size: 1rem; margin: 6px 0 0; } .legal-body p, .legal-body ul { margin: 0; } .legal-body ul { padding-inline-start: 20px; }
.faq-group { font-size: 1.1rem; margin: 8px 0 0; color: var(--orange-text); }
/* ---------- صفحة «العب»: خطوات تنطوي ---------- */
.play-menu .pm-top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; } .play-menu .pm-top p { margin: 0; }
.play-menu .pm-top h1 { margin: 0; }
.pm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: var(--gap); align-items: start; }
@media (max-width: 899px) { .pm-cols { grid-template-columns: 1fr; } }
.pm-flow { display: flex; flex-direction: column; gap: 0; padding: 8px 0; }
.pm-h { font-size: 1.05rem; margin: 10px 20px 6px; }














.go-steal { gap: 10px; }
.go-btn { margin-top: 4px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pick-grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.pick { display: flex; align-items: center; gap: 12px; text-align: start; padding: 12px 14px; border-radius: 16px; background: rgb(var(--ov) / .05); border: 1px solid var(--stroke); color: var(--text); font: inherit; cursor: pointer; transition: all .15s ease; min-width: 0; min-height: 64px; }
.pick:hover { background: var(--glass-2); }
.pick[aria-pressed="true"] { background: linear-gradient(140deg, rgb(var(--ac) / .32), rgb(var(--ac) / .1)); border-color: var(--orange); box-shadow: 0 10px 30px -14px var(--orange-glow); }
.pick[aria-pressed="true"] .fs-check { background: var(--orange); border-color: var(--orange); color: var(--on-ac); }
.pick-t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .pick-t b { font-weight: 700; } .pick-t span { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.pick-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--orange-text); }
.pick-ico svg { width: 20px; height: 20px; }
.pick.soon { opacity: .6; border-style: dashed; filter: saturate(.5); }
.pick.soon:hover { opacity: .85; }
.chip.soon-chip { background: rgb(var(--se) / .16); color: var(--mint); border-color: rgb(var(--se) / .45); font-weight: 700; }
.spent-ico.soon { color: var(--mint); }
.daily-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } /* 3.38: في العمود الجانبي الضيق ينزل الزر تحت النص بدل ما ينضغط النص كلمة بكل سطر */
.daily-card .mw0 { flex: 1 1 180px; } .daily-card p { margin: 0; }
.daily-card.done { opacity: .85; }
.join-row { display: flex; gap: 8px; } .join-row input { flex: 1; min-width: 0; }
.game-ctx { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.game-ctx span { padding: 2px 10px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); display: inline-flex; align-items: center; gap: 5px; }
.game-ctx svg { width: 13px; height: 13px; }
/* 3.23: مؤقت اللعب المحلي وأسماء الفريقين */
.timer-bar.local.p0 { border-color: rgb(var(--ac) / .55); }
.timer-bar.local.p1 { border-color: rgb(var(--se) / .55); }
.timer.low { color: var(--orange-text); animation: tick-low 1s steps(2) infinite; }
@keyframes tick-low { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .timer.low { animation: none; } }

.team-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-in { position: relative; display: block; }
.team-in i { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--display); font-weight: 800; pointer-events: none; }
.team-in.x i { color: var(--orange); } .team-in.o i { color: var(--sea); }
.team-in input { padding-inline-start: 34px; }
@media (max-width: 380px) { .team-row { grid-template-columns: 1fr; } }

.team-card { text-align: start; }
.team-card.compact { padding: 12px 14px; gap: 8px; }
.team-card .team-in { max-width: 340px; }
/* 3.24: زر اللغة والاتجاه الإنجليزي */
.lang-btn { font-weight: 700; font-size: .82rem; letter-spacing: .02em; color: var(--text); cursor: pointer; }
.lang-btn[lang="ar"] { font-size: 1rem; }
[dir="ltr"] .pass-wrap input { padding-left: 14px; padding-right: 76px; }
[dir="ltr"] .eye { left: auto; right: 6px; }
@media (max-width: 640px) { .top-end .lang-btn { display: none; } }
/* الإنجليزي: الكلمات أطول، فنصغّر عناوين الشبكة شوي ونقسم الكلمة بشرطة بدل كسرها عشوائيًا */
[dir="ltr"] .crit b { font-size: clamp(.66rem, 1.5vw + .27rem, .92rem); overflow-wrap: break-word; hyphens: auto; letter-spacing: -.01em; }
[dir="ltr"] .crit small { font-size: .62rem; }
@media (max-width: 420px) { .logo img[src*="logo-en"] { height: 22px; } }
/* صفحة «العب» 3.25: كل الخيارات ظاهرة، وزر البدء يتفعّل لما تكتمل */
.pblock { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--stroke); }
.pm-h + .pblock { border-top: 0; padding-top: 6px; }
.pblock-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pblock-h i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .82rem; background: var(--glass-2); border: 1px solid var(--stroke); }
.pblock-h i svg { width: 14px; height: 14px; }
.pblock.done .pblock-h i { background: rgb(var(--se) / .2); color: var(--mint); border-color: rgb(var(--se) / .4); }
.pblock-h b { font-weight: 700; }
.timer-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tpick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; min-height: 60px; border-radius: 14px; background: rgb(var(--ov) / .05); border: 1px solid var(--stroke); color: var(--text); font: inherit; cursor: pointer; transition: all .15s ease; text-align: center; }
.tpick:hover { background: var(--glass-2); }
.tpick b { font-weight: 700; font-size: .95rem; } .tpick span { font-size: .75rem; color: var(--muted); }
.tpick[aria-pressed="true"] { background: linear-gradient(140deg, rgb(var(--ac) / .32), rgb(var(--ac) / .1)); border-color: var(--orange); box-shadow: 0 10px 30px -14px var(--orange-glow); }
@media (max-width: 420px) { .timer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-flow .go-steal { padding: 14px 20px; border-top: 1px solid var(--stroke); gap: 10px; }
.pm-go { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 8px; border-top: 1px solid var(--stroke); }
.go-btn:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.6); box-shadow: none; }
.row.between.sec-head { justify-content: space-between; align-items: flex-end; }

/* ======================================================================
   3.25: صقل التجربة كاملة (الهيدر، الرئيسية، الباقات، العب، الجولة، النتائج)
   مقياس المسافات: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64
   ====================================================================== */
:root { --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --sec: clamp(48px, 7vw, 88px); --muted: rgb(255 248 240 / .76); }
:root[data-theme="light"] { --muted: rgb(27 42 65 / .78); }
.section { padding-block: calc(var(--sec) / 2); }
.section > .wrap { gap: clamp(20px, 2.6vw, 32px); }
ol.steps, ul.perks, ul.pack-perks { list-style: none; margin: 0; padding: 0; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn.primary:disabled { opacity: .45; box-shadow: none; filter: saturate(.6); cursor: not-allowed; }

/* ---------- الهيدر ---------- */
.credit { display: inline-flex; align-items: center; gap: 6px; }
.credit svg { width: 17px; height: 17px; flex: none; color: var(--orange-text); }
.credit b { font-weight: 800; font-variant-numeric: tabular-nums; }
.credit .lbl-md { font-weight: 600; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; }
.mb-av { display: none; }
.only-xs { display: none !important; }
@media (max-width: 640px) {
  .credit .lbl, .credit .lbl-md { display: none; }
  .credit { padding-inline: 10px 12px; height: 36px; min-height: 36px; }
  .streak { height: 36px; }
  .menu-btn { width: 38px; height: 38px; min-height: 38px; padding: 0; max-width: none; justify-content: center; border-radius: 50%; }
  .mb-name { display: none; }
  .mb-av { display: grid; place-items: center; font-weight: 800; font-size: 1rem; line-height: 1; }
  .top-end > .theme-btn { display: none; }
  .nav .only-xs { display: block !important; }
}

/* ---------- زر المساعدة العائم ---------- */
.help-fab { width: 42px; height: 42px; font-size: 1.15rem; bottom: max(16px, env(safe-area-inset-bottom)); transition: transform .25s ease, opacity .25s ease, bottom .25s ease; }
body.has-dock .help-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.in-game .help-fab { bottom: max(12px, env(safe-area-inset-bottom)); }
@media (max-width: 640px) { main { padding-bottom: 56px; } body.in-game main { padding-bottom: 0; } }

/* ---------- الرئيسية ---------- */
.hero { padding-block: clamp(28px, 6vw, 84px) clamp(24px, 4vw, 56px); }
.hero-copy { gap: var(--s4); }
.hero-ctas { gap: var(--s3); margin-top: var(--s2); }
.hero-note { font-size: .92rem !important; color: var(--muted); margin-top: calc(-1 * var(--s1)); }
.perks { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s2); }
.perks li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--text); }


.demo-box { display: flex; flex-direction: column; align-items: center; gap: var(--s3); min-width: 0; }
.demo-cap { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .88rem; background: var(--glass-2); border: 1px solid var(--stroke); transition: background .3s, color .3s; min-height: 34px; }
.demo-cap::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.demo-cap.o::before { background: var(--sea); }
.demo-cap.win { background: linear-gradient(135deg, #FF8A8D, var(--orange-deep)); color: var(--on-ac); border-color: transparent; }
.demo-cap.win::before { background: var(--on-ac); }
.cell.dm-off > * { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .demo .cell.win { animation: winPulse 1.2s ease-in-out infinite; }
  @keyframes winPulse { 0%, 100% { box-shadow: 0 0 0 2px var(--cream), 0 0 18px -6px var(--orange-glow); } 50% { box-shadow: 0 0 0 2px var(--cream), 0 0 40px 0 var(--orange-glow); } }
  .cell .pn { animation: fadeUp .3s ease both .08s; } @keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.steps { padding-top: 22px; gap: var(--gap); }


.cta { position: relative; overflow: hidden; }



.home-dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .3s ease; pointer-events: none; }
.home-dock.on { transform: none; pointer-events: auto; }
.hd-in { max-width: 560px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px; background: rgb(var(--solid) / .94); border: 1px solid var(--stroke-2); box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, .55); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
[dir="rtl"] .hd-in { padding: 10px 16px 10px 10px; }
.hd-in .mw0 { display: flex; flex-direction: column; line-height: 1.35; }
@media (min-width: 861px) { .home-dock { display: none; } }

/* ---------- الباقات ---------- */
.pack-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pack-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.pack-perks svg { width: 16px; height: 16px; color: var(--mint); flex: none; }
.packs-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; padding-top: 12px; }
.pack { gap: var(--s3); justify-content: space-between; }
.pack-main { display: flex; flex-direction: column; gap: 2px; }
.pack-main h3 { font-size: 1.02rem; color: var(--muted); font-weight: 700; }
.pack-n { display: flex; align-items: baseline; gap: 8px; }
.pack .n { font-size: clamp(2.6rem, 4.6vw, 3.4rem); }
.pack-buy { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pack .price { margin: 0; font-size: 1.4rem; }
.pack-per { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 28px; }
.pack.best { border-color: rgb(var(--ac) / .85); background: linear-gradient(150deg, rgb(var(--ac) / .3), var(--glass) 70%); box-shadow: 0 0 0 1px rgb(var(--ac) / .5), 0 24px 60px -24px var(--orange-glow), inset 0 1px 0 rgb(var(--ov) / .25); }
@media (min-width: 900px) { .pack.best { transform: translateY(-8px); } .pack.best:hover { transform: translateY(-12px); } }
.pack:not(.best) .btn.primary { background: var(--glass-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke-2); }
.pack:not(.best) .btn.primary:hover { background: linear-gradient(135deg, #FF8A8D, var(--orange) 45%, var(--orange-deep)); color: var(--on-ac); }
/* الجوال: الباقة صف أفقي (العدد يمين، السعر والزر يسار) بدل بطاقات طويلة فاضية */
@media (max-width: 640px) {
  .packs-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .pack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: var(--s3); padding: 18px 16px; }
  .pack .n { font-size: 2.3rem; }
  .pack-buy { gap: 6px; }
  .pack .price { font-size: 1.2rem; }
  .pack .btn { padding: 9px 12px; }
  .pack .chip.hot { top: -11px; }
}

/* ---------- العب ---------- */
.pick-grid.modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick-grid.modes.n4 .pick, .pick-grid.modes.n3 .pick { min-height: 72px; }
@media (max-width: 560px) {
  .pick-grid.modes { gap: 8px; }
  .pick-grid.modes .pick { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; position: relative; }
  .pick-grid.modes .pick .fs-check { position: absolute; top: 10px; inset-inline-end: 10px; }
  .pick-grid.modes .pick-ico { width: 34px; height: 34px; }
  .pick-grid.modes .pick-t span { font-size: .76rem; }
  .pblock { padding: 16px; } .pm-flow .go-steal { padding: 14px 16px; } .pm-go { padding: 14px 16px 8px; }
}
/* زر البدء يلزق أسفل الشاشة وأنت تختار (الجوال)، فما تحتاج تنزل لآخر الصفحة */
@media (max-width: 860px) {
  .pm-go { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(180deg, transparent, rgb(var(--solid) / .97) 18px); border-radius: 0 0 var(--r) var(--r); padding-top: 22px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); border-top: 0; margin-top: -8px; } /* الخلفية تصير ثابتة من أول 18px، فسطر الملاحظة فوق الزر ما يركب على البطاقات تحته */
}
.fb-secs { gap: 8px; }
.fb-own { margin: 0; }

/* ---------- الجولة ---------- */
body.in-game .foot-slot { display: none; }
.game { padding-block: clamp(16px, 3vw, 40px) clamp(24px, 4vw, 48px); gap: var(--s4); }
.timer-bar { position: relative; overflow: hidden; isolation: isolate; }
.tb-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 1) * 100%); background: linear-gradient(90deg, rgb(var(--ac) / .28), rgb(var(--ac) / .14)); z-index: -1; transition: width 1s linear; }
.timer-bar.local.p1 .tb-fill { background: linear-gradient(90deg, rgb(var(--se) / .3), rgb(var(--se) / .14)); }
.timer-bar.low .tb-fill { background: linear-gradient(90deg, rgb(var(--ac) / .55), rgb(var(--ac) / .3)); }
@media (prefers-reduced-motion: no-preference) { .timer-bar.low { animation: tbPulse 1s ease-in-out infinite; } @keyframes tbPulse { 50% { box-shadow: 0 0 0 4px rgb(var(--ac) / .18); } } }
@media (max-width: 640px) {
  .game .side { padding: 10px 12px; gap: 10px; } .game .side .mk { font-size: 1.5rem; }
  .game .notice { padding: 10px 14px; } .game-ctx { font-size: .74rem; }
  .board { gap: 6px; padding: 8px; border-radius: 20px; grid-template-columns: minmax(56px, .74fr) repeat(3, minmax(0, 1fr)); }
  .cell { border-radius: 12px; }
}
@media (min-width: 1000px) { .game { grid-template-columns: minmax(0, 600px) minmax(300px, 1fr); } }

/* ---------- النتيجة ---------- */
.res-upsell { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(140deg, rgb(var(--ac) / .22), rgb(var(--ac) / .08)); border: 1px solid rgb(var(--ac) / .45); }
.res-upsell .mw0 { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.ru-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--ac) / .2); color: var(--orange-text); flex: none; }
.ru-ico svg { width: 20px; height: 20px; }

/* ---------- القوائم الطويلة ---------- */
.more-wrap { gap: var(--s3); } .more-btn { align-self: center; }
.hero h1 em { display: block; }
@media (max-width: 380px) { .hero h1 { font-size: 1.85rem; } .game .side { padding: 8px 10px; gap: 8px; } .game .side .mk { font-size: 1.3rem; } .game .side .nm { font-size: .9rem; } .game .score { gap: 8px; } }
/* شاشات الجوال القصيرة (مثل 375×667): نضغط رأس الجولة حتى تبان الشبكة وأزرارها بدون تمرير */
@media (max-width: 640px) and (max-height: 760px) {
  .game { padding-top: 10px; gap: 10px; } .game-top { gap: 8px; }
  .game-ctx { display: none; }
  .game .side small.steals { display: inline-flex !important; } .game .side { padding-block: 6px; }
  .game .notice { padding: 8px 12px; } .game .notice .status { font-size: .95rem; }
  .timer-bar { padding: 3px 14px; font-size: .9rem; }
  .crit { min-height: 50px; padding: 4px 3px; }
}
.crit small, .crit.fbc small span { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
[dir="ltr"] .res-card .crit small { font-size: .56rem; letter-spacing: -.01em; }
[dir="ltr"] .res-card .crit b { font-size: .64rem; }
.go-btn.busy { position: relative; color: transparent !important; }
.go-btn.busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--on-ac); border-inline-end-color: transparent; inset: 0; margin: auto; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { body.has-sticky .help-fab { bottom: calc(96px + env(safe-area-inset-bottom)); } }
/* --- مراجعة 3.25 (الجولة الثانية) --- */
.link-btn { background: none; border: 0; color: var(--orange-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 8px 6px; min-height: 40px; }
.link-btn.muted { color: var(--muted); text-decoration: none; }
.nc-ico { width: 56px; height: 56px; margin-inline: auto; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #FF8A8D, var(--orange-deep)); color: var(--on-ac); box-shadow: 0 14px 30px -12px var(--orange-glow); }
.nc-ico svg { width: 28px; height: 28px; }
.nc-pack { gap: 4px; cursor: pointer; }
.nc-get { margin-top: 6px; padding: 4px 14px; border-radius: 99px; font-weight: 700; font-size: .82rem; background: var(--glass-3); border: 1px solid var(--stroke-2); }
.nc-pack.best .nc-get { background: linear-gradient(135deg, #FF8A8D, var(--orange-deep)); color: var(--on-ac); border-color: transparent; }
.nc-alt { gap: 4px 14px; }
.nocredit { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.acct-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .acct-actions { grid-template-columns: 1fr 1fr; } .acct-actions > .btn.primary { grid-column: 1 / -1; } }
.bal-chip { align-self: flex-start; gap: 6px; } .bal-chip svg { width: 15px; height: 15px; color: var(--orange-text); }
.team-save { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.team-save .btn { min-height: 46px; }

.notice.quiet { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-block: 2px; }
.notice.quiet .status { font-size: 1rem; color: var(--muted); }
/* التابلت والجوال: اللغة والثيم داخل القائمة، والهيدر يبقى نظيف */
@media (max-width: 860px) {
  .top-end > .lang-btn, .top-end > .theme-btn { display: none; }
  .nav .only-xs { display: block !important; }
  .nav.open { box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45), var(--shadow); background: rgb(var(--solid)); }
  :root[data-theme="light"] .nav.open { box-shadow: 0 0 0 100vmax rgb(27 42 65 / .3), var(--shadow); }
  .pm-go { background: linear-gradient(180deg, transparent, rgb(var(--solid)) 18px); }
}
.only-help { display: none !important; }
@media (max-width: 640px) { .help-fab { display: none !important; } .nav .only-help { display: block !important; } }
.top .wrap { background-color: rgb(var(--solid) / .55); }
@media (max-width: 640px) { .board { grid-template-columns: minmax(66px, .86fr) repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) { .packs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 899px) { .pack { padding: 18px; } .pack .n { font-size: 2.4rem; } }
.fb-secs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (max-height: 860px) { .res-card .board { max-width: 300px; margin-inline: auto; } .res-head h3 { font-size: 1.5rem; } }
.sheet { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
/* --- جرّب خانة --- */
.try-btn { background: var(--glass-2); border: 1px solid rgb(var(--ac) / .55); color: var(--text); border-radius: 99px; padding: 9px 18px; font-weight: 700; gap: 10px; box-shadow: 0 10px 26px -14px var(--orange-glow); }
.try-btn:hover { background: rgb(var(--ac) / .18); }
.tb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgb(var(--ac) / .6); }
@media (prefers-reduced-motion: no-preference) { .tb-dot { animation: tbd 1.8s ease-out infinite; } @keyframes tbd { 0% { box-shadow: 0 0 0 0 rgb(var(--ac) / .6); } 80%, 100% { box-shadow: 0 0 0 10px rgb(var(--ac) / 0); } } }
.try-sheet { display: flex; flex-direction: column; gap: 14px; }
.try-board { display: grid; grid-template-columns: minmax(84px, 1fr) minmax(0, 1.4fr); gap: 8px; max-width: 320px; width: 100%; margin-inline: auto; }
.try-board .crit { min-height: 64px; }
.try-cell { position: relative; aspect-ratio: 1; border-radius: 18px; border: 2px dashed rgb(var(--ac) / .6); background: rgb(var(--deep) / .4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; overflow: visible; }
.try-cell .tc-q { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--orange-text); opacity: .8; }
.try-cell.x { border-style: solid; border-color: rgb(var(--ac) / .9); background: linear-gradient(160deg, rgb(var(--ac) / .4), rgb(var(--ac) / .14)); box-shadow: 0 0 0 2px var(--cream), 0 0 40px -6px var(--orange-glow); }
.try-cell .mk { font-size: 2.8rem; line-height: 1; }
.try-cell .pn { font-weight: 700; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) { .try-cell.shake { animation: shake .4s ease; } @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } } .try-cell.x .mk { animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); } }
.try-msg { text-align: center; margin: 0; } .try-msg.ok b { color: var(--mint); } .try-msg.bad { color: var(--bad); font-weight: 600; }
.try-cta[hidden] { display: none; }
.try-sheet { position: relative; }
/* 3.56: «جرّب سؤالًا» (فوتهانت): نفس خانات اللعبة داخل النافذة */
.fh-try .fh-q .qtext { margin: 0 0 8px; font-weight: 700; line-height: 1.6; } .fh-try .fh-q .row { gap: 6px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) { .fh-try .shake { animation: shake .4s ease; } }
/* آيفون SE وأمثاله (ارتفاع ≤ 600): الجولة كاملة بدون تمرير */
@media (max-width: 640px) and (max-height: 600px) {
  .top .wrap { min-height: 52px; } .logo img { height: 26px; }
  .game { padding-top: 6px; gap: 6px; padding-bottom: 8px; } .game-top { gap: 6px; }
  .game .side { padding: 4px 10px; border-radius: 14px; } .game .side .mk { font-size: 1.15rem; } .game .side .nm { font-size: .85rem; } .game .side small { font-size: .68rem; }
  .timer-bar { padding: 2px 12px; font-size: .82rem; }
  .game .notice { padding: 6px 10px; } .game .notice .status { font-size: .88rem; }
  .board { gap: 4px; padding: 6px; } .crit { min-height: 42px; border-radius: 10px; } .crit b { font-size: .68rem; } .crit small { font-size: .56rem; }
  .cell .pn { font-size: .58rem; } .cell .mk { font-size: 1.4rem; }
  .game-bottom .btn { padding: 6px 14px; font-size: .86rem; min-height: 36px; }
}
.try-board .crit b { font-size: .95rem; } .try-board .crit small { font-size: .72rem; }
.daily-next { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(140deg, rgb(var(--ac) / .26), rgb(var(--ac) / .08)); border: 1px solid rgb(var(--ac) / .55); }
.daily-next .mw0 { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
@media (max-width: 420px) { .daily-next { flex-direction: column; align-items: stretch; text-align: center; } }
/* --- ادعُ أصدقاءك --- */
.invite-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 16px; background: linear-gradient(140deg, rgb(var(--se) / .2), rgb(var(--se) / .06)); border: 1px solid rgb(var(--se) / .45); font-size: .9rem; line-height: 1.5; align-self: flex-start; }
[dir="rtl"] .invite-chip { padding: 8px 10px 8px 14px; }
.invite-chip b { font-weight: 700; }
.ic-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgb(var(--se) / .25); color: var(--mint); flex: none; }
.ic-ico svg { width: 16px; height: 16px; }
.auth-card .invite-chip { align-self: stretch; }
.invite-page { gap: var(--s5); }
.inv-card { gap: 10px; }
.inv-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.inv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.inv-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--stroke); text-align: center; }
.inv-stat b { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; color: var(--orange-text); font-variant-numeric: tabular-nums; }
.inv-h { font-size: 1.2rem; }
.inv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inv-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--stroke); }
.inv-step .mw0 { display: flex; flex-direction: column; line-height: 1.5; }
.inv-n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; background: linear-gradient(135deg, #FF8A8D, var(--orange-deep)); color: var(--on-ac); }
.item.warn { border-color: rgb(var(--ac) / .6); }
/* الفوتر: حساباتنا */
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; }
.soc-links { display: flex; flex-wrap: wrap; gap: 8px; }
footer .soc-links a { padding: 6px 14px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); font-weight: 600; font-size: .85rem; min-height: 36px; display: inline-flex; align-items: center; transition: border-color .15s, background .15s; }
footer .soc-links a:hover { border-color: rgb(var(--ac) / .6); background: rgb(var(--ac) / .14); }

/* ثلاث طرق لعب (مع الغرفة): صف واحد على الشاشات الواسعة، وفي الجوال الثالثة بعرض كامل */
@media (min-width: 700px) { .pick-grid.modes.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pick-grid.modes.n3 > :last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; } .pick-grid.modes.n3 > :last-child .fs-check { position: static; } }
/* 3.26 صيانة: سجل التعديلات — النص الطويل ينكسر بدل ما يدفع التاريخ للعمود */
.tbl-r.audit > b { overflow-wrap: anywhere; min-width: 0; }
.tbl-r.audit > span:first-child { white-space: nowrap; }

/* 3.26.1: اسم الحساب في الهيدر — الاسم الأول بس، ولو طويل ينقص بثلاث نقاط من نهايته (حتى الأسماء الإنجليزية في الصفحة العربية) بدل ما ينقص حرف من أوله */
.menu-btn { min-width: 0; }
.mb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }

/* 3.26.3: أنماط اللعب في الرئيسية مختصرة — أيقونة واسم وسطر. عمودين على الجوال، وصف واحد على الشاشات الكبيرة */
.modes-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.modes-mini .mm { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); min-width: 0; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.modes-mini .mm-mark { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--glass-2); color: var(--orange); font-weight: 800; font-size: .95rem; letter-spacing: .04em; }
.modes-mini .mm-mark svg { width: 20px; height: 20px; }
.modes-mini .mm b { display: block; font-size: .98rem; }
.modes-mini .mm .small { display: block; }
@media (max-width: 640px) { .modes-mini { grid-template-columns: 1fr 1fr; gap: 8px; } .modes-mini .mm { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; } .modes-mini .mm-mark { width: 34px; height: 34px; } }

/* 3.26.5: تنبيه «لا يوجد اتصال» تحت الشاشة بدل فوق، عشان ما يغطي الهيدر والقائمة */
.offline { top: auto; bottom: 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4); }
/* تباين أوضح في الوضع الفاتح (كان أقل من 4.5:1) */
:root[data-theme="light"] .eyebrow { color: #B3262C; }
:root[data-theme="light"] .chip.good { color: #0E5A68; }

/* سهم الرجوع في الصفحات الفرعية (مكافآتي، مشترياتي، رسائلي، الأسئلة الشائعة...) */
.back-link { display: flex; align-items: center; gap: 6px; width: fit-content; margin-inline-end: auto; margin-bottom: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; background: var(--glass); border: 1px solid var(--stroke); }
.back-link:hover, .back-link:focus-visible { color: var(--tx); border-color: rgb(var(--ac) / .45); }
.back-link span { font-size: 1rem; line-height: 1; }

/* ---------- شاشة التحميل ----------
   شبكة 3×3 تنرسم، وبعدها X و O بالتناوب، وخط الفوز يتوهج بالمرجاني (بدون شعار، قرار بيتار).
   الحركة كلها نحو 1.7 ثانية. الموقع يشيلها لما تجهز الصفحة وتكتمل الحركة، ولو تأخر التحميل يبقى خط الفوز ينبض */
.splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--bg); transition: opacity .45s ease, visibility .45s; animation: sp-fail .4s 9s forwards; }
.splash::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 360px at 50% 50%, var(--orange-glow), transparent 70%), radial-gradient(700px 500px at 15% 110%, rgb(var(--se) / .14), transparent 65%); opacity: .55; }
.splash.out { opacity: 0; visibility: hidden; }
.sp-in { position: relative; display: grid; justify-items: center; gap: 18px; }
/* الشعار الكامل: الحروف تُرسم مرة وحدة، وبعدها النقاط الثلاث المرجانية تنبض بالتتابع لين تجهز الصفحة */
.sp-logo { width: min(62vw, 250px); height: auto; overflow: visible; }
.sp-ink { fill: none; stroke: var(--cream); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.sp-ink > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .7s cubic-bezier(.6, 0, .3, 1) forwards; }
.sp-ink > :nth-child(2) { animation-delay: .08s; } .sp-ink > :nth-child(3) { animation-delay: .16s; } .sp-ink > :nth-child(4) { animation-delay: .24s; } .sp-ink > :nth-child(n+5) { animation-delay: .3s; }
.sp-top { fill: var(--cream); opacity: 0; animation: sp-pop .3s .7s ease-out forwards; }
/* براند 2.0 (المؤشر): النقاط الثلاث تتعبّى بالتتابع على خط واحد، ثم تبدأ من جديد. المرجاني #FF6B6F بالوضعين (براند 2.1) */
.sp-d { fill: #FF6B6F; background: #FF6B6F; transform-box: fill-box; transform-origin: center; opacity: .22; animation: sp-fill 1.8s .9s ease-in-out infinite; }
:root[data-theme="light"] .sp-d { fill: #FF6B6F; background: #FF6B6F; }
.sp-d2 { animation-delay: 1.2s; } .sp-d3 { animation-delay: 1.5s; }
.sp-dots { display: flex; gap: 12px; direction: ltr; }
.sp-dots .sp-d { width: 12px; height: 12px; border-radius: 50%; }
.sp-d0 { animation: none; opacity: 1; fill: #FF6B6F; } :root[data-theme="light"] .sp-d0 { fill: #FF6B6F; }
.sp-en { display: none; }
:root[lang="en"] .sp-ar { display: none; }
:root[lang="en"] svg.sp-en { display: block; }
:root[lang="en"] .sp-dots.sp-en { display: flex; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-pop { to { opacity: 1; } }
@keyframes sp-fill { 0% { opacity: .22; transform: scale(.8); } 16% { opacity: 1; transform: scale(1.14); } 26%, 74% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: .22; transform: scale(.8); } }
@keyframes sp-fail { to { opacity: 0; visibility: hidden; } } /* احتياط: لو الموقع ما اشتغل، ما تبقى الشاشة مغطية للأبد */
@media (prefers-reduced-motion: reduce) {
  .sp-ink > * { animation: none; stroke-dashoffset: 0; } .sp-top { animation: none; opacity: 1; } .sp-d { animation: none; opacity: 1; transform: none; }
}
/* مؤشر التحميل داخل الصفحات: النقاط الثلاث من شعار تريبلا تنبض بالتتابع */
.page-load { display: grid; place-items: center; min-height: 50vh; }
.page-load .sp-dots { display: flex; }
.page-load .sp-dots .sp-d { animation-delay: 0s; } .page-load .sp-dots .sp-d2 { animation-delay: .3s; } .page-load .sp-dots .sp-d3 { animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .page-load .sp-d { animation: none; opacity: 1; transform: none; } }

/* زر شغال على طلب (فحص ملف، رفع، تصدير): مؤشر صغير يدور بجانب النص */
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
.btn[aria-busy="true"]::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-inline-start: 8px; vertical-align: -2px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .btn[aria-busy="true"]::after { animation: btnspin .7s linear infinite; } @keyframes btnspin { to { transform: rotate(1turn); } } }
fieldset.f { border: 0; margin: 0; padding: 0; } fieldset.f > legend { padding: 0; margin-bottom: 6px; }

/* الجوال: النافذة على قد الشاشة الظاهرة (فوق الكيبورد)، ونافذة اختيار اللاعب نتائجها تتمرر والحقل ثابت */
/* ارتفاع الشاشة الظاهرة يُستخدم بس والكيبورد طالع. غير كذا النافذة تغطي الشاشة كاملة (آيفون كان يحتفظ بارتفاع قديم بعد ما ينزل الكيبورد، فتطلع النتيجة مقصوصة) */
.kb .veil { inset: auto 0 auto 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); }
.kb .sheet { max-height: calc(var(--vvh, 100dvh) - 24px); }
.sheet.pick { overflow: hidden; }
.sheet.pick > * { flex-shrink: 0; }
.sheet.pick .hits { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-block-end: 2px; }
/* والكيبورد طالع: نخفي سطور الشرح ونضغط المسافات عشان تبان النتائج */
.kb .sheet.pick { gap: 8px; padding: 14px; margin-block: 6px; }
.kb .sheet.pick .fb-explain { display: none; }
.kb .sheet.pick h3 { font-size: 1.05rem; }
.sheet .hits { align-self: stretch; } /* النتائج بعرض الحقل (كانت أضيق ومتوسطة) */

/* مؤقت لين توثيق ميتا: اسم الموقع نص في الناف بار */
.logo.logo-word { direction: ltr; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; line-height: 1; white-space: nowrap; }
@media (max-width: 640px) { .logo.logo-word { font-size: 1.1rem; } }
@media (max-width: 360px) { .logo.logo-word { font-size: .98rem; } }
.sheet.res-sheet > * { flex-shrink: 0; } /* النتيجة على الشاشات القصيرة: النافذة تتمرر بدل ما تنقص البطاقة وتنقص النتيجة */
@media (max-height: 720px) { .res-card .board { max-width: 272px; } .res-card { gap: 10px; padding: 14px; } .res-head h3 { font-size: 1.35rem; } .sheet.res-sheet { gap: 10px; } } /* شاشات الجوال القصيرة: النتيجة كاملة مع الأزرار بدون تمرير */

/* تذكير توثيق الجوال داخل لوحة المشرف: شريط بسطر واحد بدل البطاقة */
.phone-nudge.compact { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.pre-wrap{white-space:pre-wrap}

/* =====================================================================
   نظام تصميم لوحة المشرف (3.30). طلب بيتار: لوحة فعّالة، والثانوي في بطاقات تنطوي، وتناسق كامل.
   القواعد:
   1) سطح واحد: بطاقات مسطحة بحد 1px بدون زجاج ولا ظل (الظل للنوافذ المنبثقة بس). الخلفية هادية بدون زخرفة.
   2) مسافات من شبكة 4px: 4، 8، 12، 16، 24، 32. داخل البطاقة 16-20، بين البطاقات 16.
   3) سلم خطوط بنسبة 1.25 تقريبًا: 12 · 13 · 14 (أساس الواجهة) · 16 · 20 · 26. أرقام بعرض ثابت (tabular).
   4) لون واحد للفعل (المرجاني) في الزر الأساسي والعنصر النشط. الحالة بالشارات (أحمر/أزرق/محايد).
   5) أهداف لمس 36px على الكمبيوتر و44px على الجوال (قانون فيتس). صف الجدول 44px.
   6) الإفصاح التدريجي: الثانوي يبدأ مطوي، واختيارك ينحفظ لكل قسم. وشرح القسم خلف زر «عن القسم».
   7) الوضعين: نفس المتغيرات بقيم نهارية وليلية، وتباين النص 4.5:1 على الأقل.
   ===================================================================== */
:root body[data-page="admin"] {
  --a-bg: #0E1726; --a-surf: #142033; --a-surf-2: #1A2940; --a-line: rgb(255 255 255 / .09); --a-line-2: rgb(255 255 255 / .17);
  --a-text: #F3F5F8; --a-muted: rgb(243 245 248 / .68); --a-faint: rgb(243 245 248 / .5);
  --a-acc: #FF6B6F; --a-acc-tx: #0E1726; --a-acc-bg: rgb(255 107 111 / .14); --a-acc-line: rgb(255 107 111 / .45);
  --a-sea: #7FD6E5; --a-sea-bg: rgb(127 214 229 / .13);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;
  --ar-sm: 8px; --ar: 12px; --ar-lg: 16px; --ctl: 36px;
  --a-pop: 0 18px 48px -12px rgb(0 0 0 / .55);
  background: var(--a-bg); font-size: var(--fs-md); line-height: 1.6;
}
:root[data-theme="light"] body[data-page="admin"] {
  --a-bg: #F5F3EF; --a-surf: #FFFFFF; --a-surf-2: #FAF8F5; --a-line: #E6E1D9; --a-line-2: #D3CBBF;
  --a-text: #1B2A41; --a-muted: #556274; --a-faint: #7C8796;
  --a-acc: #FF6B6F; --a-acc-text: #B42830; --a-acc-tx: #1B2A41; --a-acc-bg: #FDECEB; --a-acc-line: #F3B4B6; /* 2.1: --a-acc تعبئة، و--a-acc-text للنص بنظام الحالات */
  --a-sea: #17707F; --a-sea-bg: #E3F2F4; /* --a-sea نص بس (5.4 على الأبيض)، مو تعبئة */
  --a-pop: 0 18px 44px -14px rgb(27 42 65 / .32);
}
body[data-page="admin"]::before, body[data-page="admin"]::after { display: none; }
:root body[data-page="admin"] #main { min-height: calc(100vh - 56px); }
:root body[data-page="admin"] .foot-slot { display: none; }

/* الشريط العلوي للوحة: بدل هيدر الموقع */
:root body[data-page="admin"] .top { padding: 0; position: sticky; top: 0; z-index: 30; }
:root body[data-page="admin"] .ad-bar { display: flex; align-items: center; gap: var(--s3); height: 56px; padding-inline: var(--s4); background: var(--a-surf); border-bottom: 1px solid var(--a-line); }
:root body[data-page="admin"] .ad-bar .logo img { height: 26px; width: auto; }
:root body[data-page="admin"] .ad-bar .ad-bar-t { font-size: var(--fs-md); font-weight: 700; color: var(--a-text); padding-inline-start: var(--s3); border-inline-start: 1px solid var(--a-line); line-height: 1.2; }
:root body[data-page="admin"] .ad-bar .ad-bar-t small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--a-faint); }
:root body[data-page="admin"] .ad-bar .sp { flex: 1; }
:root body[data-page="admin"] .ad-bar a.ad-site { display: inline-flex; align-items: center; gap: 6px; height: var(--ctl); padding-inline: var(--s3); border-radius: var(--ar-sm); color: var(--a-muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border: 1px solid transparent; }
:root body[data-page="admin"] .ad-bar a.ad-site:hover { background: var(--a-surf-2); color: var(--a-text); border-color: var(--a-line); }
:root body[data-page="admin"] .ad-bar .menu-btn { height: var(--ctl); min-height: 0; padding: 0 4px 0 10px; border-radius: 99px; background: var(--a-surf-2); border: 1px solid var(--a-line); }
:root body[data-page="admin"] .ad-bar .drop { inset-inline-end: 0; }

/* التخطيط: قائمة جانبية ثابتة بعرض 232 + محتوى */
:root body[data-page="admin"] .page.admin { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0; max-width: none; padding: 0; margin: 0; align-items: stretch; }
:root body[data-page="admin"] .ad-side { position: sticky; top: 56px; height: calc(100vh - 56px); max-height: none; overflow-y: auto; padding: var(--s4) var(--s3); border-radius: 0; background: var(--a-surf); border: 0; border-inline-end: 1px solid var(--a-line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root body[data-page="admin"] .ad-nav { gap: var(--s4); }
:root body[data-page="admin"] .ad-group { gap: 1px; }
:root body[data-page="admin"] .ad-group h3 { margin: 0 0 var(--s1); padding-inline: var(--s3); font-size: var(--fs-xs); font-weight: 700; color: var(--a-faint); letter-spacing: 0; }
:root body[data-page="admin"] .ad-group > button { min-height: 34px; padding: 6px var(--s3); border-radius: var(--ar-sm); font-size: var(--fs-md); font-weight: 500; color: var(--a-muted); gap: var(--s2); }
:root body[data-page="admin"] .ad-group > button:hover { background: var(--a-surf-2); color: var(--a-text); }
:root body[data-page="admin"] .ad-group > button[aria-current="page"] { background: var(--a-acc-bg); color: var(--a-text); font-weight: 700; box-shadow: inset 3px 0 0 var(--a-acc); }
[dir="rtl"] body[data-page="admin"] .ad-group > button[aria-current="page"], body[data-page="admin"][dir="rtl"] .ad-group > button[aria-current="page"] { box-shadow: inset -3px 0 0 var(--a-acc); }
:root body[data-page="admin"] .ad-group .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 20px; background: var(--a-acc); color: var(--a-acc-tx); }
:root body[data-page="admin"] .ad-ver { margin-top: var(--s5); padding-inline: var(--s3); font-size: var(--fs-xs); color: var(--a-faint); }
:root body[data-page="admin"] .ad-main { padding: var(--s5) clamp(16px, 3vw, 40px) var(--s6); max-width: 1240px; width: 100%; gap: var(--s4); }

/* رأس الصفحة: العنوان + زر «عن القسم» + الشرح المطوي */
:root body[data-page="admin"] .ad-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s1); }
:root body[data-page="admin"] .ad-head h1 { margin: 0; font-size: var(--fs-2xl); line-height: 1.25; letter-spacing: 0; color: var(--a-text); }
:root body[data-page="admin"] .ad-help-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: var(--s3); border-radius: 99px; font-size: var(--fs-sm); font-weight: 600; color: var(--a-muted); border: 1px solid var(--a-line); background: var(--a-surf); }
:root body[data-page="admin"] .ad-help-btn:hover, :root body[data-page="admin"] .ad-help-btn[aria-expanded="true"] { color: var(--a-text); border-color: var(--a-line-2); }
:root body[data-page="admin"] .ad-help { font-size: var(--fs-md); color: var(--a-muted); background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar); padding: var(--s3) var(--s4); max-width: 80ch; }

/* الأساسيات */
:root body[data-page="admin"] .ad-main h2 { font-size: var(--fs-xl); line-height: 1.35; letter-spacing: 0; }
:root body[data-page="admin"] .ad-main h3, :root body[data-page="admin"] .sheet h3 { font-size: var(--fs-lg); line-height: 1.4; }
:root body[data-page="admin"] .muted { color: var(--a-muted); } :root body[data-page="admin"] .small { font-size: var(--fs-sm); }
:root body[data-page="admin"] .stack { gap: var(--s4); } :root body[data-page="admin"] .ad-main section.stack, :root body[data-page="admin"] .ad-main .card.stack { gap: var(--s3); }
:root body[data-page="admin"] .row { gap: var(--s2); }
:root body[data-page="admin"] .grid { gap: var(--s4); }

/* سطح واحد للبطاقات والعناصر والأرقام */
:root body[data-page="admin"] .card, :root body[data-page="admin"] .item, :root body[data-page="admin"] .num, :root body[data-page="admin"] .kpi, :root body[data-page="admin"] .act, :root body[data-page="admin"] .code-card, :root body[data-page="admin"] .ad-main .card.stat {
  background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--a-text);
}
:root body[data-page="admin"] .card { padding: var(--s4) var(--s5); }
:root body[data-page="admin"] .item { padding: var(--s3) var(--s4); gap: var(--s2); }
:root body[data-page="admin"] button.item:hover, :root body[data-page="admin"] button.num:hover, :root body[data-page="admin"] button.kpi:hover, :root body[data-page="admin"] .item.linkish:hover { border-color: var(--a-line-2); background: var(--a-surf-2); transform: none; }
:root body[data-page="admin"] .card.warn, :root body[data-page="admin"] .item.warn { background: var(--a-acc-bg); border-color: var(--a-acc-line); }
:root body[data-page="admin"] .item.unread { border-color: var(--a-acc-line); box-shadow: inset -3px 0 0 var(--a-acc); }
:root body[data-page="admin"] .empty { background: var(--a-surf); border: 1px dashed var(--a-line-2); border-radius: var(--ar); color: var(--a-muted); padding: var(--s5); font-size: var(--fs-md); }
:root body[data-page="admin"] .alert { background: var(--a-acc-bg); border: 1px solid var(--a-acc-line); border-radius: var(--ar); padding: var(--s3) var(--s4); font-size: var(--fs-md); color: var(--a-text); }

/* الأرقام: نفس البلاطة في كل اللوحة */
:root body[data-page="admin"] .nums, :root body[data-page="admin"] .ad-main .kpis, :root body[data-page="admin"] .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s3); }
:root body[data-page="admin"] .num, :root body[data-page="admin"] .ad-main .kpi, :root body[data-page="admin"] .tile { padding: var(--s3) var(--s4); gap: 2px; min-height: 76px; justify-content: center; }
:root body[data-page="admin"] .num b, :root body[data-page="admin"] .ad-main .kpi b, :root body[data-page="admin"] .tile b { font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--a-text); background: none; -webkit-text-fill-color: currentColor; }
:root body[data-page="admin"] .num span, :root body[data-page="admin"] .ad-main .kpi span, :root body[data-page="admin"] .tile span { font-size: var(--fs-sm); color: var(--a-muted); line-height: 1.45; }
:root body[data-page="admin"] .tile { display: flex; flex-direction: column; background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar); }
:root body[data-page="admin"] .tile small { font-size: var(--fs-xs); color: var(--a-faint); }
:root body[data-page="admin"] .tile.hi { border-color: var(--a-acc-line); background: var(--a-acc-bg); }
:root body[data-page="admin"] .ov-group { gap: var(--s2); } :root body[data-page="admin"] .ov-group > h3 { font-size: var(--fs-sm); color: var(--a-muted); font-weight: 700; }
:root body[data-page="admin"] .acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); }
:root body[data-page="admin"] .act { padding: var(--s3) var(--s4); }
:root body[data-page="admin"] .act b { font-size: 24px; } :root body[data-page="admin"] .act span { font-size: var(--fs-md); } :root body[data-page="admin"] .act small { font-size: var(--fs-xs); }
:root body[data-page="admin"] .act.on { background: var(--a-acc-bg); border-color: var(--a-acc-line); } :root body[data-page="admin"] .act.on b { color: var(--a-acc-text); }

/* الأزرار */
:root body[data-page="admin"] .btn { min-height: var(--ctl); padding: 0 var(--s4); border-radius: var(--ar-sm); font-size: var(--fs-md); font-weight: 600; box-shadow: none; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root body[data-page="admin"] .btn.sm { min-height: 32px; padding: 0 var(--s3); font-size: var(--fs-sm); border-radius: var(--ar-sm); }
:root body[data-page="admin"] .btn.primary, :root body[data-page="admin"] .btn.orange { background: var(--a-acc); color: var(--a-acc-tx); border-color: transparent; }
:root body[data-page="admin"] .btn.primary:hover:not(:disabled), :root body[data-page="admin"] .btn.orange:hover:not(:disabled) { transform: none; box-shadow: none; filter: brightness(1.06); }
:root body[data-page="admin"] .btn.ghost { background: var(--a-surf); color: var(--a-text); border: 1px solid var(--a-line-2); }
:root body[data-page="admin"] .btn.ghost:hover:not(:disabled) { background: var(--a-surf-2); border-color: var(--a-muted); }
:root body[data-page="admin"] .btn.danger { color: var(--a-acc-text); border-color: var(--a-acc-line); }
:root body[data-page="admin"] .btn:active:not(:disabled) { transform: translateY(1px); }

/* الشارات */
:root body[data-page="admin"] .chip { font-size: var(--fs-xs); font-weight: 600; padding: 2px 10px; border-radius: 99px; line-height: 1.6; }
:root body[data-page="admin"] .chip.soft { background: var(--a-surf-2); color: var(--a-muted); border-color: var(--a-line); }
:root body[data-page="admin"] .chip.hot { background: var(--a-acc-bg); color: var(--a-acc-text); border-color: var(--a-acc-line); }
:root body[data-page="admin"] .chip.good { background: var(--a-sea-bg); color: var(--a-sea); border-color: transparent; }

/* الحقول */
:root body[data-page="admin"] label.f, :root body[data-page="admin"] div.f, :root body[data-page="admin"] fieldset.f { font-size: var(--fs-sm); font-weight: 600; gap: 6px; color: var(--a-text); }
:root body[data-page="admin"] input[type=search], :root body[data-page="admin"] input[type=date], :root body[data-page="admin"] input[type=datetime-local], :root body[data-page="admin"] input[type=tel], :root body[data-page="admin"] input[type=text], :root body[data-page="admin"] input[type=email], :root body[data-page="admin"] input[type=password], :root body[data-page="admin"] input[type=number], :root body[data-page="admin"] select, :root body[data-page="admin"] textarea {
  min-height: var(--ctl); padding: 6px var(--s3); border-radius: var(--ar-sm); background: var(--a-surf); border: 1px solid var(--a-line-2); color: var(--a-text); font-size: var(--fs-md); box-shadow: none; }
:root body[data-page="admin"] input:focus, :root body[data-page="admin"] select:focus, :root body[data-page="admin"] textarea:focus { border-color: var(--a-acc); box-shadow: 0 0 0 3px var(--a-acc-bg); background: var(--a-surf); }
:root body[data-page="admin"] textarea { min-height: 96px; line-height: 1.6; }

/* التبويبات المقطعية */
:root body[data-page="admin"] .seg { gap: 2px; padding: 3px; border-radius: var(--ar-sm); background: var(--a-surf-2); border: 1px solid var(--a-line); }
:root body[data-page="admin"] .seg button { min-height: 30px; padding: 0 var(--s3); border-radius: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--a-muted); }
:root body[data-page="admin"] .seg button[aria-pressed="true"] { background: var(--a-surf); color: var(--a-text); box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 0 0 1px var(--a-line); }
:root body[data-page="admin"] .seg .count { font-size: 11px; }

/* الجداول: جدول واحد بخطوط فاصلة بدل صفوف عائمة */
:root body[data-page="admin"] .tbl { gap: 0; background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar); overflow: hidden; }
:root body[data-page="admin"] .tbl-h { padding: var(--s2) var(--s4); background: var(--a-surf-2); border-bottom: 1px solid var(--a-line); font-size: var(--fs-xs); font-weight: 700; color: var(--a-muted); }
:root body[data-page="admin"] .tbl-r { min-height: 44px; padding: var(--s2) var(--s4); border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--a-line); font-size: var(--fs-md); }
:root body[data-page="admin"] .tbl-r:last-child { border-bottom: 0; }
:root body[data-page="admin"] .tbl-r:hover { background: var(--a-surf-2); border-color: var(--a-line); }
:root body[data-page="admin"] .tbl-r.static:hover { background: transparent; }

/* البطاقة القابلة للطي: نفس الشكل في كل الأقسام */
:root body[data-page="admin"] .fold { padding: 0; gap: 0 !important; overflow: hidden; }
:root body[data-page="admin"] .ad-main section.stack.fold { background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar); }
:root body[data-page="admin"] .fold-head { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; padding: var(--s3) var(--s5); text-align: start; color: var(--a-text); cursor: pointer; }
:root body[data-page="admin"] .fold-head:hover { background: var(--a-surf-2); }
:root body[data-page="admin"] .fold-head .fold-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
:root body[data-page="admin"] .fold-head .fold-t > :is(h2, h3) { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
:root body[data-page="admin"] .fold-head .fold-meta { font-size: var(--fs-sm); color: var(--a-muted); font-weight: 500; }
:root body[data-page="admin"] .fold-head .chev { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 99px; color: var(--a-muted); transition: transform .18s ease; }
:root body[data-page="admin"] .fold-head .chev svg { width: 16px; height: 16px; }
:root body[data-page="admin"] .fold.open > .fold-head .chev { transform: rotate(180deg); }
:root body[data-page="admin"] .fold-body { padding: 0 var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
:root body[data-page="admin"] .fold:not(.open) > .fold-body { display: none; }
:root body[data-page="admin"] .fold.open > .fold-head { border-bottom: 1px solid transparent; }




/* النوافذ المنبثقة في اللوحة */
:root body[data-page="admin"] .sheet { background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar-lg); box-shadow: var(--a-pop); padding: var(--s5); gap: var(--s4); color: var(--a-text); -webkit-backdrop-filter: none; backdrop-filter: none; }
:root body[data-page="admin"] .sheet.wide { width: min(100% - 24px, 980px); }
:root body[data-page="admin"] details > summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--a-muted); }

/* الحملات: النموذج مع معاينة حيّة */
:root body[data-page="admin"] .mk-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s5); align-items: start; }
:root body[data-page="admin"] .mk-prev { position: sticky; top: 0; display: flex; flex-direction: column; gap: var(--s3); }
:root body[data-page="admin"] .mk-prev .mk-tabs { align-self: flex-start; }
:root body[data-page="admin"] .mk-mail { border: 1px solid var(--a-line); border-radius: var(--ar); overflow: hidden; background: #0B1422; }
:root body[data-page="admin"] .mk-mail .mk-mail-head { padding: var(--s3) var(--s4); font-size: var(--fs-xs); color: #B8C2D0; border-bottom: 1px solid rgb(255 255 255 / .08); }
:root body[data-page="admin"] .mk-mail .mk-mail-head b { display: block; color: #FFF8F0; font-size: var(--fs-md); }
:root body[data-page="admin"] .mk-mail .mk-card { margin: var(--s4); padding: var(--s5) var(--s4); background: #FFF8F0; color: #1B2A41; border-radius: 16px; display: flex; flex-direction: column; gap: var(--s3); }
:root body[data-page="admin"] .mk-mail .mk-card h4 { margin: 0; font-size: var(--fs-xl); line-height: 1.4; }
:root body[data-page="admin"] .mk-mail .mk-card p { margin: 0; white-space: pre-wrap; line-height: 1.8; font-size: var(--fs-md); }
:root body[data-page="admin"] .mk-mail .mk-cta { align-self: flex-start; background: #FF6B6F; color: #1B2A41; font-weight: 700; padding: 10px 22px; border-radius: 12px; font-size: var(--fs-md); }
:root body[data-page="admin"] .mk-mail .mk-foot { font-size: 11px; color: #7D8A9C; }
:root body[data-page="admin"] .mk-inbox { border: 1px solid var(--a-line); border-radius: var(--ar); background: var(--a-surf-2); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
:root body[data-page="admin"] .mk-inbox .bubble { max-width: 100%; }
:root body[data-page="admin"] .mk-who { font-size: var(--fs-sm); color: var(--a-muted); }
:root body[data-page="admin"] .mk-who b { color: var(--a-text); font-variant-numeric: tabular-nums; }
:root body[data-page="admin"] .mk-quick { display: flex; flex-wrap: wrap; gap: 6px; }
:root body[data-page="admin"] .mk-quick button { font-size: var(--fs-sm); font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--a-line-2); color: var(--a-muted); background: var(--a-surf); }
:root body[data-page="admin"] .mk-quick button[aria-pressed="true"], :root body[data-page="admin"] .mk-quick button:hover { color: var(--a-text); border-color: var(--a-acc-line); background: var(--a-acc-bg); }
:root body[data-page="admin"] .mk-card-l .mk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
:root body[data-page="admin"] .mk-card-l .mk-stats div { display: flex; flex-direction: column; padding: var(--s2) var(--s3); border-radius: var(--ar-sm); background: var(--a-surf-2); }
:root body[data-page="admin"] .mk-card-l .mk-stats b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; } :root body[data-page="admin"] .mk-card-l .mk-stats span { font-size: var(--fs-xs); color: var(--a-muted); }
:root body[data-page="admin"] .confirm-box { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border-radius: var(--ar); background: var(--a-surf-2); border: 1px solid var(--a-line); border-inline-start: 3px solid var(--a-acc); }

/* الجوال: القائمة الجانبية تصير زر فوق المحتوى، والأهداف 44px */
@media (max-width: 900px) {
  :root body[data-page="admin"] .page.admin { grid-template-columns: minmax(0, 1fr); }
  :root body[data-page="admin"] .ad-side { position: sticky; top: 56px; z-index: 20; height: auto; padding: var(--s2) var(--s3); border-inline-end: 0; border-bottom: 1px solid var(--a-line); }
  :root body[data-page="admin"] .ad-side.open { max-height: calc(100vh - 56px); }
  :root body[data-page="admin"] .ad-toggle { min-height: 44px; border-radius: var(--ar-sm); background: var(--a-surf-2); border: 1px solid var(--a-line); padding: 6px var(--s3); }
  :root body[data-page="admin"] .ad-main { padding: var(--s4) var(--s4) var(--s6); }
  :root body[data-page="admin"] .ad-head h1 { font-size: 22px; }
  :root body[data-page="admin"] .btn, :root body[data-page="admin"] .seg button, :root body[data-page="admin"] .ad-group > button, :root body[data-page="admin"] input, :root body[data-page="admin"] select { min-height: 44px; }
  :root body[data-page="admin"] .btn.sm { min-height: 40px; }
  :root body[data-page="admin"] .fold-head { padding: var(--s3) var(--s4); }
  :root body[data-page="admin"] .fold-body { padding: 0 var(--s4) var(--s4); }
  :root body[data-page="admin"] .card { padding: var(--s4); }
  :root body[data-page="admin"] .mk-split { grid-template-columns: minmax(0, 1fr); }
  :root body[data-page="admin"] .mk-prev { position: static; }
  :root body[data-page="admin"] .mk-card-l .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root body[data-page="admin"] .ad-bar .ad-bar-t small { display: none; }
  :root body[data-page="admin"] .ad-bar a.ad-site span { display: none; }
}
@media (prefers-reduced-motion: reduce) { :root body[data-page="admin"] .fold-head .chev { transition: none; } }
:root body[data-page="admin"] .top-slot { padding-top: 0; }
:root body[data-page="admin"] .ad-bar .menu-btn { color: var(--a-text); font-weight: 600; font-size: var(--fs-sm); gap: 8px; padding: 0 12px; max-width: 200px; }
:root body[data-page="admin"] .ad-bar .theme-btn { width: var(--ctl); height: var(--ctl); min-height: 0; border-radius: var(--ar-sm); background: transparent; border: 1px solid transparent; color: var(--a-muted); }
:root body[data-page="admin"] .ad-bar .theme-btn:hover { background: var(--a-surf-2); border-color: var(--a-line); color: var(--a-text); }
:root body[data-page="admin"] .ad-bar .drop { background: var(--a-surf); border: 1px solid var(--a-line); box-shadow: var(--a-pop); border-radius: var(--ar); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* بلاطات الأرقام في المبيعات والإحصائيات: نفس البلاطة، بدون بلاطة ممتدة تخرب الصفوف */
:root body[data-page="admin"] .stats { grid-auto-rows: auto; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s3); }
:root body[data-page="admin"] .stat { background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar); padding: var(--s3) var(--s4); gap: 2px; min-height: 92px; justify-content: flex-start; }
:root body[data-page="admin"] .stat.hero { grid-column: auto; background: var(--a-acc-bg); border-color: var(--a-acc-line); }
:root body[data-page="admin"] .stat-l { font-size: var(--fs-sm); color: var(--a-muted); font-weight: 600; }
:root body[data-page="admin"] .stat-v, :root body[data-page="admin"] .stat.hero .stat-v { font-size: 22px; color: var(--a-text); background: none; -webkit-text-fill-color: currentColor; }
:root body[data-page="admin"] .stat-d { font-size: var(--fs-xs); } :root body[data-page="admin"] .stat-s { font-size: var(--fs-xs); color: var(--a-faint); }
/* قوائم العمليات: نفس شكل الجدول */
:root body[data-page="admin"] .tx { gap: 0; background: var(--a-surf); border: 1px solid var(--a-line); border-radius: var(--ar); overflow: hidden; }
:root body[data-page="admin"] .tx-row:not(.tx-head) { border: 0; border-radius: 0; border-bottom: 1px solid var(--a-line); background: transparent; min-height: 52px; padding: var(--s2) var(--s4); }
:root body[data-page="admin"] .tx-row:not(.tx-head):last-child { border-bottom: 0; }
:root body[data-page="admin"] .tx-row:not(.tx-head):hover { background: var(--a-surf-2); }
:root body[data-page="admin"] .tx-row.tx-head { padding: var(--s2) var(--s4); background: var(--a-surf-2); border-bottom: 1px solid var(--a-line); font-size: var(--fs-xs); color: var(--a-muted); font-weight: 700; }
:root body[data-page="admin"] .tx-row.pending { box-shadow: inset -3px 0 0 var(--a-acc); background: var(--a-acc-bg); }
:root body[data-page="admin"] .fold-body > .tx, :root body[data-page="admin"] .fold-body > .tbl { border-radius: var(--ar-sm); }
:root body[data-page="admin"] .stats, :root body[data-page="admin"] .nums, :root body[data-page="admin"] .ad-main .kpis { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
/* البطاقات المطوية تنترص عمود واحد: ترتيب واضح من فوق لتحت بدل أعمدة متفاوتة */
:root body[data-page="admin"] .grid:has(> .fold) { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
:root body[data-page="admin"] .ad-main > .stack > .fold + .fold { margin-top: calc(var(--s1) * -1); }
/* مجموعات الأرقام: كل مجموعة صف أفقي بعنوانها (بدل أعمدة متفاوتة الطول) */
:root body[data-page="admin"] .ov-grid, :root body[data-page="admin"] .ov-grid.dev { display: flex; flex-direction: column; gap: var(--s4); }
:root body[data-page="admin"] .ov-grid, :root body[data-page="admin"] .ov-grid.dev { align-items: stretch; }
:root body[data-page="admin"] .acts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
/* عرض بلاطة واحد في كل اللوحة (أعمدة ثابتة)، عشان الأرقام تصطف عموديًا بين المجموعات */
:root body[data-page="admin"] .stats, :root body[data-page="admin"] .nums, :root body[data-page="admin"] .ad-main .kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* شريط الأدوات: الفلتر والبحث في سطر واحد */
:root body[data-page="admin"] .ad-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
:root body[data-page="admin"] .ad-toolbar input[type=text], :root body[data-page="admin"] .ad-toolbar input[type=search] { flex: 1 1 260px; }
:root body[data-page="admin"] .tbl-h.users, :root body[data-page="admin"] .tbl-r.users { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) 70px 70px minmax(0, 1.2fr) 112px; gap: var(--s3); align-items: center; }
:root body[data-page="admin"] .tbl-r.users { cursor: pointer; }
:root body[data-page="admin"] .u-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
:root body[data-page="admin"] .num-c { font-variant-numeric: tabular-nums; font-weight: 600; }
:root body[data-page="admin"] .u-act { justify-self: end; }
:root body[data-page="admin"] .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  :root body[data-page="admin"] .tbl-h.users { display: none; }
  :root body[data-page="admin"] .tbl-r.users { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who act" "st st"; row-gap: 6px; }
  :root body[data-page="admin"] .tbl-r.users .u-who { grid-area: who; } :root body[data-page="admin"] .tbl-r.users .u-act { grid-area: act; }
  :root body[data-page="admin"] .tbl-r.users > .row { grid-area: st; } :root body[data-page="admin"] .tbl-r.users > .num-c, :root body[data-page="admin"] .tbl-r.users > .muted { display: none; }
}
:root body[data-page="admin"] .ad-help-btn { white-space: nowrap; } :root body[data-page="admin"] .ad-help-btn svg, :root body[data-page="admin"] .ad-bar a.ad-site svg { width: 16px; height: 16px; flex: 0 0 16px; }

@media (max-width: 900px) {
  :root body[data-page="admin"] .acts { grid-template-columns: 1fr 1fr; }
  :root body[data-page="admin"] .act { grid-template-columns: auto 1fr; text-align: start; padding: var(--s3); }
  :root body[data-page="admin"] .act b { grid-row: span 2; font-size: 22px; }
  :root body[data-page="admin"] .ad-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* اسم القسم ظاهر في زر الأقسام فوق */
  :root body[data-page="admin"] .ad-head { justify-content: flex-end; }
  :root body[data-page="admin"] .ad-head:not(:has(.ad-help-btn, .btn)) { display: none; }
}
/* 3.30 · توحيد بعد المراجعة البصرية:
   - زر الإنشاء في الرأس مقابل العنوان (نفس المكان في كل الأقسام)
   - البريد والأرقام اللاتينية داخل الجداول تتبع محاذاة السطر العربي بدل ما تنزاح لليسار
   - البلاغات والرسائل عمود واحد (تنقرا من فوق لتحت مثل صندوق الوارد)
   - الأرقام والقيم بلون النص، واللون الأساسي للإجراء الأساسي بس (قاعدة 4) */
:root body[data-page="admin"] .ad-head-acts { display: flex; align-items: center; gap: var(--s2); margin-inline-start: auto; }
:root[dir="rtl"] body[data-page="admin"] :is(.tx-who, .tbl-r, .item, .card, .fold-body) .ltr:not(code):not(.mono) { text-align: right; }
:root[dir="ltr"] body[data-page="admin"] :is(.tx-who, .tbl-r, .item, .card, .fold-body) .ltr:not(code):not(.mono) { text-align: left; }
:root body[data-page="admin"] .list:has(> .rep) { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
:root body[data-page="admin"] .ad-main :is(.big-num, .kpi b, .code-val) { background: none; -webkit-text-fill-color: currentColor; color: var(--a-text); font-family: inherit; }
:root body[data-page="admin"] .ad-main .big-num { font-size: var(--fs-2xl); }
:root body[data-page="admin"] .ad-main .code-val { font-size: var(--fs-xl); font-weight: 700; }
:root body[data-page="admin"] .item .mini { display: flex; flex-wrap: wrap; gap: var(--s1); }
:root body[data-page="admin"] .item .mini > span { padding: 2px 10px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surf-2); font-size: var(--fs-sm); text-align: start; }
@media (max-width: 900px) { /* شرائح الفلترة سطر واحد يتمرر أفقيًا بدل ما تنكسر لسطرين */
  :root body[data-page="admin"] .seg { flex-wrap: wrap; max-width: 100%; justify-content: flex-start; } /* 3.38: تلتف بدل التمرير المخفي (كانت «الأشهر» و«القاموس» خارج الشاشة) */
  :root body[data-page="admin"] .seg button { flex: 0 0 auto; white-space: nowrap; }
}

/* 3.31.1: نظرة عامة على شبكة 5 أعمدة، والمحتوى في النص على الشاشات العريضة */
:root body[data-page="admin"] .ad-main { max-width: 1400px; margin-inline: auto; }


:root body[data-page="admin"] .ov-group.n1 { --n: 1; } :root body[data-page="admin"] .ov-group.n2 { --n: 2; } :root body[data-page="admin"] .ov-group.n3 { --n: 3; } :root body[data-page="admin"] .ov-group.n4 { --n: 4; } :root body[data-page="admin"] .ov-group.n5 { --n: 5; }





/* سيرة اللاعب في اللوحة: نافذة عريضة بأقسام، والحالة (الاعتزال والشهرة) فوق، وأزرار الحفظ ثابتة تحت */
:root body[data-page="admin"] .sheet.pf { padding-bottom: 0; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3, 12px); flex-wrap: wrap; }
.pf-head h3 { margin: 0; }
.pf-status { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pst { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pst-end { display: flex; align-items: center; gap: 6px; } .pst-end input { width: 86px; }
.pst select.sm, .pst input.sm { padding-block: 6px; min-height: 0; font-size: .85rem; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s4, 16px); align-items: start; }
.pfs { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pfs > h4 { margin: 0; font-size: .8rem; color: var(--a-muted, var(--muted)); font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--a-line, var(--stroke)); }
.pf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf textarea.grow { resize: vertical; min-height: 64px; }
.pf #fbe-career { min-height: 150px; line-height: 1.7; }
.pf-foot { position: sticky; bottom: 0; background: var(--a-surf, rgb(var(--deep))); padding-block: 12px; margin-top: -4px; border-top: 1px solid var(--a-line, var(--stroke)); z-index: 2; }
.pf-foot .grow-x { flex: 1; }
@media (max-width: 760px) { .pf-grid, .pf-3 { grid-template-columns: 1fr; } .pf-status { align-items: flex-start; } .pst { justify-content: flex-start; } }
@media (max-width: 420px) { .pf-2 { grid-template-columns: 1fr; } }
:root body[data-page="admin"] .pst select, :root body[data-page="admin"] .pst input { width: auto; min-width: 0; padding: 6px 10px; padding-inline-end: 28px; font-size: .85rem; min-height: 34px; }
:root body[data-page="admin"] .pst input { padding-inline-end: 10px; width: 86px; }
@media (max-width: 760px) { .pf-head { flex-direction: column; } .pf-status { width: 100%; } }
@media (max-width: 760px) { :root body[data-page="admin"] .pf-status { align-items: stretch; } :root body[data-page="admin"] .pst { justify-content: flex-start; } }
:root body[data-page="admin"] .mk-mail .mk-foot { display: block; text-align: center; margin-top: 10px; font-size: 10px; color: #56657A; text-decoration: underline; }
/* زر الحذف الأساسي (أحمر مليان): كان النص بنفس لون الخلفية لأن .danger يلوّن النص */
.btn.primary.danger, :root body[data-page="admin"] .btn.primary.danger { color: var(--on-ac); border-color: transparent; }
.fix-acts { display: flex; gap: 6px; flex-wrap: wrap; } .fix-acts .btn { white-space: nowrap; }
.fix-chip { display: inline-flex; gap: 8px; align-items: center; }
.op-pick select, .op-pick input { width: 100%; }

/* ---------- فوتبريس في اللوحة (3.32) ---------- */
.fp-sum { font-size: .95rem; padding: 4px 12px; border-radius: 999px; } .fp-sum.ok { background: rgb(var(--se) / .1); color: var(--mint); } .fp-sum.bad { background: rgb(var(--ac) / .16); color: var(--orange-text); }
.fp-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fp-sq { border: 1px solid var(--stroke); background: var(--glass-2); border-radius: 14px; padding: 10px 8px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px; }
.fp-sq b { font-size: .88rem; line-height: 1.35; } .fp-sq small { font-size: .72rem; color: var(--muted); } .fp-pre { font-size: .7rem; color: var(--orange-text); font-weight: 700; }
.fp-players .chip { font-size: .78rem; }
.fp-prog { height: 10px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--stroke); overflow: hidden; } .fp-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--sea)); }
.warn-list { color: var(--orange-text); margin: 0; }
@media (max-width: 640px) { .fp-card { gap: 5px; } .fp-sq { min-height: 78px; padding: 6px 4px; } .fp-sq b { font-size: .74rem; } }
.fbt td input.sm[id^='fpq-'] { max-width: 96px; }
.chip.nine { background: rgb(var(--ac) / .14); color: var(--orange-text); border-color: rgb(var(--ac) / .35); font-weight: 700; }
.chip.press { background: rgb(var(--se) / .14); color: var(--mint); border-color: rgb(var(--se) / .4); font-weight: 700; }
.fp-card.fp-mini { gap: 5px; max-width: 560px; } .fp-card.fp-mini .fp-sq { min-height: 64px; padding: 6px 4px; border-radius: 10px; } .fp-card.fp-mini .fp-sq b { font-size: .76rem; }

/* ---------- فوتبريس للاعبين (3.32) ---------- */
/* لونا الفريقين: الأول مرجاني والثاني بحري، مثل X و O في فوتناين */
.gsym { width: 34px; height: 34px; flex: none; } .gsym circle { fill: currentColor; opacity: .9; } .gsym circle.h { fill: var(--orange); opacity: 1; }
.gstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.gs-btn { display: flex; align-items: center; gap: 12px; text-align: start; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); min-width: 0; transition: border-color .15s, background .15s, transform .15s; }
.gs-btn b { display: block; font-size: 1.05rem; } .gs-btn span span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.gs-btn[aria-pressed="true"] { border-color: var(--orange); background: linear-gradient(140deg, rgb(var(--ac) / .2), var(--glass)); box-shadow: 0 0 0 1px var(--orange), 0 14px 34px -18px var(--orange-glow); }
.gs-btn:hover { transform: translateY(-1px); } .gs-btn .gsym { width: 40px; height: 40px; color: var(--text); }
@media (max-width: 560px) { .gs-btn span span { display: none; } .gs-btn .gsym { width: 30px; height: 30px; } }
.team-row.one { grid-template-columns: minmax(0, 360px); }
.team-in.fp0 i, .team-in.fp1 i { width: 12px; height: 12px; border-radius: 50%; } .team-in.fp0 i { background: var(--orange); } .team-in.fp1 i { background: var(--sea); }
.fp-rules .chip { font-size: .8rem; }
.daily-both .db-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.db-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid var(--stroke); background: rgb(var(--ov) / .05); text-align: start; transition: border-color .15s; }
.db-opt:hover { border-color: var(--orange); } .db-opt span { font-size: .78rem; color: var(--muted); } .db-opt .gsym { width: 28px; height: 28px; }
/* الجولة */
.fp-game .game-ctx .gsym { width: 18px; height: 18px; }
.fp-score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .fp-score.solo { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .fp-game .fp-score { grid-template-columns: 1fr 1fr; } }
.fp-side { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--stroke); background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); min-width: 0; transition: all .2s; position: relative; overflow: hidden; }
.fp-side::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); } .fp-side.p1::before { background: var(--sea); }
.fp-side .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-pts { font-family: var(--display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fp-side.on.p0 { background: linear-gradient(150deg, #FF8A8D, #FF6B6F); color: var(--on-ac); border-color: rgb(255 255 255 / .35); box-shadow: 0 16px 36px -14px rgb(var(--ac) / .7); }
.fp-side.on.p1 { background: linear-gradient(150deg, #5CC0D0, #38A8BA); color: var(--on-ac); border-color: rgb(255 255 255 / .35); box-shadow: 0 16px 36px -14px rgb(var(--se) / .7); }
.fp-side.on::before { display: none; }
.fp-tools { display: flex; gap: 5px; align-items: center; margin-top: 3px; }
.fp-tools .sk { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .75; } .fp-tools .sk.off { opacity: .18; }
.fp-tools .jk { font-style: normal; font-size: .8rem; line-height: 1; opacity: .85; } .fp-tools .jk.off { opacity: .2; }
.fp-now { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-inline-start: 4px solid var(--stroke-2); }
.fp-now.p0 { border-inline-start-color: var(--orange); } .fp-now.p1 { border-inline-start-color: var(--sea); }
.fp-who { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.fp-name { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw + .7rem, 1.7rem); line-height: 1.25; overflow-wrap: anywhere; }
.fp-timer { position: relative; width: 62px; height: 62px; flex: none; display: grid; place-items: center; }
.fp-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fp-timer .rb { fill: none; stroke: rgb(var(--ov) / .12); stroke-width: 5; }
.fp-timer .rf { fill: none; stroke: var(--sea); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .15s linear, stroke .2s; }
.fp-timer b { font-family: var(--display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.fp-timer.low .rf { stroke: var(--orange); } .fp-timer.low b { color: var(--orange-text); animation: fpBeat .5s ease-in-out infinite alternate; }
.fp-timer.paused .rf { stroke: var(--faint); } .fp-timer.paused b { color: var(--muted); }
@keyframes fpBeat { to { transform: scale(1.14); } }
.fp-pause[aria-pressed="true"] { border-color: var(--orange); color: var(--orange-text); }
.fp-last { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-radius: 14px; background: rgb(var(--ov) / .05); border: 1px solid var(--stroke); font-size: .9rem; }
.fp-last.k-ok { border-color: rgb(var(--se) / .45); } .fp-last.k-bad { border-color: rgb(var(--ac) / .45); }
.fp-last p { min-width: 0; overflow-wrap: anywhere; }
.fpb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(5px, 1.2vw, 9px); }
.fpc { position: relative; aspect-ratio: 1 / 1; min-width: 0; border-radius: clamp(10px, 1.6vw, 16px); border: 1px solid var(--stroke); background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); padding: clamp(4px, 1vw, 10px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; color: var(--text); overflow: hidden; transition: transform .12s, border-color .12s, background .2s; }
button.fpc:not(:disabled):hover { border-color: var(--orange); transform: translateY(-2px); }
button.fpc:not(:disabled):active { transform: scale(.96); }
button.fpc:disabled { opacity: 1; cursor: default; }
.fpc-pre { font-size: clamp(.56rem, .5vw + .4rem, .72rem); color: var(--orange-text); font-weight: 700; line-height: 1.2; }
.fpc-l { font-size: clamp(.66rem, .7vw + .44rem, .92rem); line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fpc-p { font-size: clamp(.58rem, .5vw + .42rem, .76rem); font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fpc.own { color: var(--text); } /* 3.38: تعبئة فاتحة بحد ملوّن (مثل فوتناين)، والمرجاني الصلب للأزرار فقط */
.fpc.own .fpc-pre { color: inherit; opacity: .75; } .fpc.own .fpc-l { opacity: .78; font-size: clamp(.56rem, .5vw + .38rem, .74rem); }
.fpc.own.p0 { background: rgb(var(--ac) / .16); border-color: rgb(var(--ac) / .7); border-width: 2px; } .fpc.own.p1 { background: rgb(var(--se) / .16); border-color: rgb(var(--se) / .75); border-width: 2px; }
.fpc.own.p0 .fpc-p { color: var(--orange-text); } .fpc.own.p1 .fpc-p { color: var(--mint); }
.fpc.own.line { box-shadow: 0 0 0 2px var(--cream), 0 10px 24px -10px rgb(0 0 0 / .5); }
.fpc.fl-ok { animation: fpPop .55s ease; } .fpc.fl-bad { animation: fpShake .5s ease; border-color: var(--orange); background: rgb(var(--ac) / .2); }
@keyframes fpPop { 0% { transform: scale(.82); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes fpShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.fp-game.pre .fpb { filter: blur(5px); opacity: .55; pointer-events: none; }
.fp-start { padding: 22px; align-items: center; gap: 10px; }
.fp-start .gsym { width: 54px; height: 54px; color: var(--text); }
 

@keyframes fpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


 
@keyframes fpFlip { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(900deg) translateY(-18px); } to { transform: rotateY(1800deg) translateY(0); } }
.fp-wait .gsym { width: 48px; height: 48px; margin: 0 auto 6px; color: var(--text); }
.res-card.fp .fpb { max-width: 340px; margin-inline: auto; } .fpb.mini .fpc { border-radius: 9px; padding: 3px; } .fpb.mini .fpc-pre { display: none; }
.res-game { font-weight: 700; } .res-game .gsym { width: 20px; height: 20px; }
.fp-res .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); } .fp-res .p1 .dot { background: var(--sea); }
@media (prefers-reduced-motion: reduce) { .fpc.fl-ok, .fpc.fl-bad, .fp-timer.low b { animation: none; } }
.fpb.mini .fpc-l { font-size: .6rem; overflow-wrap: normal; } .fpb.mini .fpc.own .fpc-l { font-size: .54rem; }

/* ---------- باترنز البراند (من البراند بوك 2.0) ---------- */
:root { --pat-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='336' height='336'%3E%3Ccircle cx='14' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='42' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='70' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='126' cy='70' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='154' cy='70' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='182' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='70' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='98' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='126' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='154' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='182' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='210' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='266' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='210' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='70' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='238' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='294' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='238' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='266' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='70' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='266' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='322' cy='266' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='294' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='70' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='294' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='14' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='42' cy='322' r='4.2' fill='%23FF6B6F'/%3E%3Ccircle cx='70' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='98' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='126' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='154' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='182' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='210' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='238' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='266' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='294' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3Ccircle cx='322' cy='322' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3C/svg%3E"); --pat-boards: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Ccircle cx='30' cy='30' r='6' fill='%23FF6B6F'/%3E%3Ccircle cx='52' cy='30' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='74' cy='30' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='30' cy='52' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='52' cy='52' r='6' fill='%23FF6B6F'/%3E%3Ccircle cx='74' cy='52' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='30' cy='74' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='52' cy='74' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='74' cy='74' r='6' fill='%23FF6B6F'/%3E%3Ccircle cx='160' cy='160' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='182' cy='160' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='204' cy='160' r='6' fill='%237FD6E5'/%3E%3Ccircle cx='160' cy='182' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='182' cy='182' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='204' cy='182' r='6' fill='%237FD6E5'/%3E%3Ccircle cx='160' cy='204' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='182' cy='204' r='4' fill='rgba(255,248,240,.12)'/%3E%3Ccircle cx='204' cy='204' r='6' fill='%237FD6E5'/%3E%3C/svg%3E"); --pat-press: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Ccircle cx='16' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='16' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='48' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='80' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='112' r='7' fill='%23FFF8F0'/%3E%3Ccircle cx='240' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='112' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='144' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='176' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='208' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='240' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='272' r='7' fill='%23FFF8F0'/%3E%3Ccircle cx='112' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='272' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='16' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='48' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='80' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='112' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='144' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='176' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='208' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='240' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='272' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3Ccircle cx='304' cy='304' r='3.4' fill='rgba(15,26,43,.16)'/%3E%3C/svg%3E"); }
:root[data-theme="light"] { --pat-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='336' height='336'%3E%3Ccircle cx='14' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='14' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='42' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='70' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='126' cy='70' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='154' cy='70' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='182' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='70' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='98' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='126' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='154' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='182' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='210' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='266' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='210' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='70' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='238' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='294' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='238' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='266' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='70' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='266' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='322' cy='266' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='294' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='70' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='294' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='14' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='42' cy='322' r='4.2' fill='%23FF5A5F'/%3E%3Ccircle cx='70' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='98' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='126' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='154' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='182' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='210' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='238' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='266' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='294' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3Ccircle cx='322' cy='322' r='2.6' fill='rgba(27,42,65,.10)'/%3E%3C/svg%3E"); --pat-boards: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Ccircle cx='30' cy='30' r='6' fill='%23FF5A5F'/%3E%3Ccircle cx='52' cy='30' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='74' cy='30' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='30' cy='52' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='52' cy='52' r='6' fill='%23FF5A5F'/%3E%3Ccircle cx='74' cy='52' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='30' cy='74' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='52' cy='74' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='74' cy='74' r='6' fill='%23FF5A5F'/%3E%3Ccircle cx='160' cy='160' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='182' cy='160' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='204' cy='160' r='6' fill='%231F7A8C'/%3E%3Ccircle cx='160' cy='182' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='182' cy='182' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='204' cy='182' r='6' fill='%231F7A8C'/%3E%3Ccircle cx='160' cy='204' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='182' cy='204' r='4' fill='rgba(27,42,65,.12)'/%3E%3Ccircle cx='204' cy='204' r='6' fill='%231F7A8C'/%3E%3C/svg%3E"); }
/* رموز الألعاب: النقاط بلون النص، والحركة مرجانية */
.sym { display: block; width: 100%; height: 100%; }
.sym .dt { fill: currentColor; } .sym .mv { fill: var(--orange); }
/* الهيرو: باترن النقاط يتلاشى من الحواف */
.hero.has-pat { position: relative; isolation: isolate; }
.hero.has-pat::before { content: ''; position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none; background-image: var(--pat-field); background-position: center top;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 80% at 30% 45%, #000 0%, transparent 75%); opacity: .9; }
.game-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.game-eyebrow .sym.mini { width: 22px; height: 22px; color: var(--text); }
.game-eyebrow::before { display: none; }
/* بطاقات الألعاب */
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.game-card { position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--glass); border: 1px solid var(--stroke); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
a.game-card:hover { transform: translateY(-4px); border-color: rgb(var(--ac) / .5); box-shadow: 0 30px 70px -30px var(--orange-glow); }
.gc-art { position: relative; height: 210px; display: flex; align-items: center; justify-content: center; background-color: #1B2A41; background-image: var(--pat-field); }
:root[data-theme="light"] .gc-art { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='2.6' fill='rgba(255,248,240,.09)'/%3E%3C/svg%3E"); }
.game-card.soon .gc-art { background-color: #FF6B6F; background-image: var(--pat-press); }
.gc-tile { width: 132px; height: 132px; border-radius: 34px; background: #1B2A41; color: #FFF8F0; padding: 18px; box-shadow: 0 0 0 1px rgb(255 248 240 / .12), 0 24px 60px -18px rgba(255, 107, 111, .55); transition: transform .3s ease; }
.gc-tile .sym .mv { fill: #FF6B6F; }
a.game-card:hover .gc-tile { transform: scale(1.05) rotate(-3deg); }
.game-card.soon .gc-tile { background: #FF6B6F; color: #1B2A41; box-shadow: 0 0 0 2px rgb(27 42 65 / .9), 0 24px 50px -20px rgba(27, 42, 65, .6); }
.game-card.soon .gc-tile .sym .mv { fill: #FFF8F0; }
.soon-chip { position: absolute; top: 16px; inset-inline-start: 16px; background: #1B2A41 !important; color: #FFF8F0 !important; border: 0 !important; font-weight: 700; }
.gc-body { padding: var(--pad); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gc-name { display: flex; align-items: baseline; gap: 10px; } .gc-name h3 { margin: 0; font-size: 1.7rem; }
.gc-board { font-size: .85rem; font-weight: 700; color: var(--orange-text); letter-spacing: .08em; }
.gc-body p { margin: 0; }
.gc-modes { display: flex; flex-wrap: wrap; gap: 8px; } .gc-modes span { font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--stroke); }
.gc-go { margin-top: auto; align-self: flex-start; }
.gc-wait { margin-top: auto; color: var(--muted); }
/* الدعوة الأخيرة: باترن الألواح ورمز تريبلا */
.cta.has-pat { position: relative; isolation: isolate; overflow: hidden; }
.cta.has-pat::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--pat-boards); opacity: .9; -webkit-mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000); mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000); }
.cta-sym { width: 120px; height: 46px; color: var(--text); } .cta-sym .dt, .cta-sym .mv { fill: var(--orange); }
.cta .sym.cta-sym { height: 60px; }
/* التذييل: شريط باترن ورموز العائلة */
footer { position: relative; }
footer::before { content: ''; position: absolute; inset: -1px 0 auto; height: 56px; transform: translateY(-100%); background-image: var(--pat-field); -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); opacity: .7; pointer-events: none; }
.foot-games { display: flex; gap: 10px; margin-bottom: 8px; color: var(--text); } .foot-games .sym { width: 30px; height: 30px; }
/* صفحة العب: شريط الألعاب */


 

  

@media (max-width: 760px) { .games-grid { grid-template-columns: 1fr; } .gc-art { height: 170px; } .gc-tile { width: 110px; height: 110px; } }
@media (prefers-reduced-motion: reduce) { a.game-card:hover, a.game-card:hover .gc-tile { transform: none; } }
/* ---------- v2: مسرح الهيرو الزجاجي ---------- */
.game-eyebrow .sym.tri { width: 46px; height: 20px; } .game-eyebrow .sym.tri .dt { fill: var(--orange); }
.stage { position: relative; isolation: isolate; }
.stage-glow { position: absolute; inset: -6% -8% 10%; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .75; pointer-events: none;
  background: radial-gradient(45% 45% at 35% 40%, rgb(var(--ac) / .55), transparent 70%), radial-gradient(40% 40% at 70% 65%, rgb(var(--se) / .45), transparent 70%); animation: stageGlow 9s ease-in-out infinite alternate; }
.stage[data-game="footpress"] .stage-glow { background: radial-gradient(45% 45% at 60% 40%, rgb(var(--ac) / .7), transparent 70%), radial-gradient(40% 40% at 30% 70%, rgb(var(--ac) / .35), transparent 70%); }
@keyframes stageGlow { from { transform: translate(-4%, -2%) scale(1); } to { transform: translate(4%, 3%) scale(1.08); } }
.stage-slides { display: grid; width: 100%; justify-items: center; }
.stage-slide { grid-area: 1 / 1; width: 100%; display: flex; justify-content: center; align-items: center; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.stage-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.stage-cap { min-height: 34px; display: flex; justify-content: center; }
.stage-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.st-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; padding: 7px 14px 7px 10px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.st-tab .sym { width: 24px; height: 24px; color: currentColor; }
.st-tab small { font-size: .7rem; color: var(--orange-text); }
.st-tab.on { background: var(--glass-3); color: var(--text); box-shadow: 0 6px 18px -8px rgb(0 0 0 / .4), inset 0 1px 0 rgb(var(--ov) / .2); }
.stage-extra { min-height: 46px; display: flex; justify-content: center; align-items: center; }
.stage-soon { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.stage-soon .sym { width: 22px; height: 22px; color: var(--text); }
/* عرض فوتبريس داخل المسرح */
.pdemo-wrap { transform: rotate(2deg); max-width: 390px; }
.pdemo { display: flex; flex-direction: column; gap: 10px; }
.pd-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, rgb(var(--ac) / .22), var(--glass-2)); border: 1px solid rgb(var(--ac) / .35); }
.pd-k { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); }
.pd-name { display: block; font-size: 1.25rem; font-family: var(--display); line-height: 1.3; min-height: 1.3em; }
.pd-timer { width: 54px; height: 54px; } .pd-timer b { font-size: 1.2rem; } .pd-timer .rf { transition-duration: .42s; }
.pd-left { margin-inline-start: auto; flex: none; display: grid; justify-items: center; gap: 1px; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pd-left b { font-size: 1rem; font-family: var(--display); } .pd-left small { font-size: .66rem; font-weight: 700; color: var(--muted); }
.pd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pc { aspect-ratio: 1 / 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px; background: var(--glass-2); border: 1px solid var(--stroke); font-weight: 700; font-size: clamp(.55rem, 1.1vw, .7rem); line-height: 1.25; transition: background .35s, border-color .35s, transform .35s; }
.pc-n { font-size: .92em; font-weight: 800; margin-top: 2px; } .pc-n:empty { display: none; }
/* 3.58.1: المربع المحجوز مثل الكرت الحقيقي (3.38): تعبئة فاتحة بحد ملوّن واسم اللاعب بلون فريقه، فالشعار يبان فوقه */
.pc.x { background: rgb(var(--ac) / .16); border: 2px solid rgb(var(--ac) / .7); } .pc.x .pc-n { color: var(--orange-text); }
.pc.o { background: rgb(var(--se) / .16); border: 2px solid rgb(var(--se) / .75); } .pc.o .pc-n { color: var(--mint); }
.pc.x .pc-l, .pc.o .pc-l { opacity: .78; } .pc.x .qi-fp, .pc.o .qi-fp { opacity: .7; }
.pc .qi-fp { width: var(--qi-g) !important; height: var(--qi-g) !important; margin-bottom: 3px; }
.pc .qi-fp.pair { width: calc(var(--qi-g) * 2 + 2px) !important; }
.pc.hit { animation: pcHit .45s ease; } @keyframes pcHit { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
/* بطاقات الألعاب بنفس الزجاج: لا كتل صلبة، الفرق بين الألعاب في الرمز والوهج بس */
.gc-art, :root[data-theme="light"] .gc-art, .game-card.soon .gc-art { background-color: transparent; background-image: radial-gradient(55% 75% at 50% 55%, rgb(var(--ac) / .32), transparent 70%), var(--pat-field); border-bottom: 1px solid var(--stroke); }
.game-card.soon .gc-art { background-image: radial-gradient(55% 75% at 50% 55%, rgb(var(--se) / .3), transparent 70%), var(--pat-field); }
.gc-tile, .game-card.soon .gc-tile { background: var(--glass-3); color: var(--text); border: 1px solid var(--stroke-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 24px 60px -24px rgb(var(--ac) / .6), inset 0 1px 0 rgb(var(--ov) / .25); }
.gc-tile .sym .mv, .game-card.soon .gc-tile .sym .mv { fill: var(--orange); }
.game-card.soon .gc-tile { box-shadow: 0 24px 60px -24px rgb(var(--se) / .6), inset 0 1px 0 rgb(var(--ov) / .25); }
.soon-chip { background: var(--glass-3) !important; color: var(--text) !important; border: 1px solid var(--stroke-2) !important; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
 
@media (prefers-reduced-motion: reduce) { .stage-glow { animation: none; } .stage-slide { transition: none; } .pc.hit { animation: none; } }
.hero.has-pat { overflow-x: clip; } .stage-glow { inset: -4% 0 10%; }
.sym.gsym { width: 34px; height: 34px; flex: none; }
.try-btn .sym { width: 18px; height: 18px; flex: none; } .try-btn .sym .dt { fill: currentColor; }
/* لمسات البراند في صفحات اللعب: نفس باترن النقاط تحت عنوان «العب» وفي بطاقة النتيجة (خافت ويختفي للأطراف) */
.play-menu .pm-top { position: relative; isolation: isolate; }
.play-menu .pm-top::before { content: ''; position: absolute; inset: -30px -20px -10px; z-index: -1; pointer-events: none; background-image: var(--pat-field); opacity: .55; -webkit-mask-image: radial-gradient(70% 90% at 85% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 85% 40%, #000, transparent 75%); }
.res-card { isolation: isolate; }
.res-card::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: -1; pointer-events: none; background-image: var(--pat-field); opacity: .35; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); border-radius: inherit; }
.res-card .fpc .fpc-p, .res-card .fpc span { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
/* المنطقة الفنية: لوحة ثابتة في الكمبيوتر، وزر يفتحها في الجوال والتابلت */
.fp-tech { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.fp-tech.in-sheet { padding: 0; }
.fpt-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fpt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fpt-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.55; }
.fpt-list li b { display: block; font-size: .9rem; } .fpt-list li span:not(.fx-ico) { color: var(--muted); }
.fpt-list .fx-ico { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgb(var(--ac) / .12); color: var(--orange-text); }
.fpt-list .fx-ico svg { width: 16px; height: 16px; }
.fp-full { display: block; margin-top: -2px; }
.fp-game .game-bottom > .fp-tech { display: none; margin-top: var(--gap); }
@media (min-width: 1000px) { .fp-game .game-bottom > .fp-tech { display: flex; } .fp-tech-btn { display: none; } }

/* =====================================================================
   نظام التصميم في كل الصفحات (3.32): نفس لغة الرئيسية
   - رأس الصفحة (.phead): سطر برمز تريبلا + العنوان + الوصف، وخلفه باترن النقاط يختفي للأطراف
   - خلفيات الدخول والصفحة الفاضية: رموز الألعاب (لوحات النقاط) بدل X و O
   ===================================================================== */
.phead { position: relative; isolation: isolate; padding-block: clamp(6px, 2vw, 18px) clamp(4px, 1.4vw, 12px); gap: 8px; }
.phead::before { content: ''; position: absolute; inset: -46px -40px -20px; z-index: -1; pointer-events: none; background-image: var(--pat-field); background-position: center top;
  -webkit-mask-image: radial-gradient(60% 100% at 88% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(60% 100% at 88% 30%, #000 10%, transparent 72%); opacity: .75; }
[dir="ltr"] .phead::before { -webkit-mask-image: radial-gradient(60% 100% at 12% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(60% 100% at 12% 30%, #000 10%, transparent 72%); }
.phead.c { align-items: center; text-align: center; } .phead.c::before { -webkit-mask-image: radial-gradient(55% 100% at 50% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(55% 100% at 50% 30%, #000 10%, transparent 72%); }
.phead h1 { font-size: clamp(1.9rem, 3.2vw + .8rem, 3rem); }
.phead .eyebrow { font-size: .82rem; }
@media (max-width: 560px) { .phead::before { inset: -30px -16px -14px; } }
.auth-marks.has-pat::before { content: ''; position: absolute; inset: 0; background-image: var(--pat-field); opacity: .55; -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, transparent 30%, #000 75%); mask-image: radial-gradient(70% 70% at 50% 45%, transparent 30%, #000 75%); }
.auth-marks .am { position: absolute; width: clamp(70px, 9vw, 120px); height: clamp(70px, 9vw, 120px); padding: 14px; border-radius: 26px; background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); color: var(--text); opacity: .9; }
.auth-marks .am .sym .dt { fill: currentColor; opacity: .85; }
.auth-marks .a1 { top: 8%; inset-inline-start: 7%; transform: rotate(-10deg); } .auth-marks .a2 { top: 14%; inset-inline-end: 8%; transform: rotate(8deg); }
.auth-marks .a3 { bottom: 10%; inset-inline-end: 12%; transform: rotate(-6deg); width: clamp(90px, 11vw, 150px); height: clamp(52px, 6vw, 80px); padding: 10px 16px; } .auth-marks .a4 { bottom: 16%; inset-inline-start: 10%; transform: rotate(12deg); opacity: .6; }
@media (max-width: 760px) { .auth-marks .am { display: none; } }
.lost-tile { width: 112px; height: 112px; padding: 16px; display: grid; place-items: center; border-radius: 30px; background: var(--glass); border: 1px solid var(--stroke); box-shadow: var(--shadow); color: var(--text); }
.lost-tile .sym .dt { fill: currentColor; } .lost-tile .sym .gone { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 5 5; }
.lost-marks .gc-tile.lost-tile { margin-inline: auto; }
#main { overflow-x: clip; } /* زخارف الباترن تطلع برا الحواف عمدًا: ما تسبب تمرير أفقي */

/* =====================================================================
   لوحة المشرف بنفس نظام تصميم الموقع (3.32، طلب بيتار)
   نفس الألوان والزجاج والخلفية بالوهج، ورموز النقاط والباترن في الشريط العلوي والقائمة ورأس القسم.
   الكفاءة من 3.30 باقية: نفس المسافات والخطوط وأهداف اللمس، والجداول والقوائم على سطح شبه معتم عشان القراءة.
   ===================================================================== */
:root body[data-page="admin"] {
  --a-bg: var(--bg); --a-surf: rgb(21 35 58 / .74); --a-surf-2: rgb(255 255 255 / .09); --a-line: var(--stroke); --a-line-2: var(--stroke-2);
  --a-text: var(--text); --a-muted: var(--muted); --a-faint: var(--faint); --a-acc: var(--orange); --a-acc-bg: rgb(var(--ac) / .15); --a-acc-line: rgb(var(--ac) / .45);
  --a-sea: var(--mint); --a-sea-bg: rgb(var(--se) / .14); --ar-sm: 12px; --ar: 16px; --ar-lg: 22px;
  background: var(--bg);
}
:root[data-theme="light"] body[data-page="admin"] { --a-surf: rgb(255 255 255 / .8); --a-surf-2: rgb(255 255 255 / .95); --a-acc: #FF6B6F; --a-acc-text: #B42830; --a-acc-bg: rgb(255 107 111 / .12); --a-acc-line: rgb(255 107 111 / .45); --a-sea: #17707F; /* نص (5.4 على الأبيض) */ }
:root body[data-page="admin"]::before { display: block; opacity: .75; } /* نفس وهج الموقع، أهدى شوي */
/* الأسطح الكبيرة زجاج (الشريط والقائمة والبطاقات والنوافذ)، والعناصر الصغيرة الكثيرة بدون تمويه عشان السرعة */
:root body[data-page="admin"] .ad-bar, :root body[data-page="admin"] .ad-side, :root body[data-page="admin"] .card, :root body[data-page="admin"] .sheet { -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
:root body[data-page="admin"] .ad-bar { position: relative; background: rgb(var(--solid) / .7); }
:root[data-theme="light"] body[data-page="admin"] .ad-bar { background: rgb(255 255 255 / .72); }
:root body[data-page="admin"] .ad-bar::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--pat-field); opacity: .5; -webkit-mask-image: linear-gradient(90deg, #000, transparent 30%); mask-image: linear-gradient(90deg, #000, transparent 30%); }
:root body[data-page="admin"] .ad-bar { isolation: isolate; }
:root body[data-page="admin"] .ad-side { background: rgb(var(--solid) / .55); }
:root[data-theme="light"] body[data-page="admin"] .ad-side { background: rgb(255 255 255 / .6); }
:root body[data-page="admin"] .ad-group h3 { display: flex; align-items: center; gap: 8px; }
:root body[data-page="admin"] .ad-group h3::before { content: ''; flex: none; width: 16px; height: 6px; background: radial-gradient(circle, var(--orange) 2.3px, transparent 2.7px) 0 0 / 6px 6px repeat-x; opacity: .9; }
:root body[data-page="admin"] .ad-group > button[aria-current="page"] { background: linear-gradient(90deg, rgb(var(--ac) / .2), rgb(var(--ac) / .06)); }
[dir="rtl"] body[data-page="admin"] .ad-group > button[aria-current="page"] { background: linear-gradient(270deg, rgb(var(--ac) / .2), rgb(var(--ac) / .06)); }
/* رأس القسم: نفس رأس صفحات الموقع (سطر برمز تريبلا + العنوان، وباترن خافت) */
:root body[data-page="admin"] .ad-head { position: relative; isolation: isolate; padding-block: 6px 4px; }
:root body[data-page="admin"] .ad-head::before { content: ''; position: absolute; inset: -24px -40px -8px; z-index: -1; pointer-events: none; background-image: var(--pat-field); opacity: .55; -webkit-mask-image: radial-gradient(50% 100% at 85% 40%, #000 5%, transparent 70%); mask-image: radial-gradient(50% 100% at 85% 40%, #000 5%, transparent 70%); }
:root body[data-page="admin"] .ad-head .ad-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:root body[data-page="admin"] .ad-head .eyebrow { font-size: var(--fs-xs); }
:root body[data-page="admin"] .ad-main { overflow-x: clip; }
/* البطاقات والعناصر: زوايا الموقع، والحد الزجاجي */
:root body[data-page="admin"] .card { border-radius: var(--ar-lg); }
:root body[data-page="admin"] .num, :root body[data-page="admin"] .ad-main .kpi, :root body[data-page="admin"] .tile, :root body[data-page="admin"] .act { border-radius: var(--ar); position: relative; overflow: hidden; }
:root body[data-page="admin"] .num::after, :root body[data-page="admin"] .ad-main .kpi::after, :root body[data-page="admin"] .tile::after { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 14px; width: 18px; height: 3px; border-radius: 0 0 3px 3px; background: var(--orange); opacity: .7; }
/* الأزرار: نفس زر الموقع المرجاني بتدرجه، بحجم اللوحة */
:root body[data-page="admin"] .btn { border-radius: var(--ar-sm); }
:root body[data-page="admin"] .btn.primary, :root body[data-page="admin"] .btn.orange { background: linear-gradient(135deg, #FF8A8D, var(--orange) 45%, var(--orange-deep)); color: var(--on-ac); box-shadow: 0 8px 20px -10px var(--orange-glow), inset 0 1px 0 rgb(var(--ov) / .35); }
:root[data-theme="light"] body[data-page="admin"] .btn.primary, :root[data-theme="light"] body[data-page="admin"] .btn.orange { color: #1B2A41; } /* 2.1: النص على المرجاني كحلي */
:root body[data-page="admin"] .btn.ghost { background: var(--glass-2); }
:root body[data-page="admin"] .sheet { background: rgb(var(--solid) / .9); }
:root[data-theme="light"] body[data-page="admin"] .sheet { background: rgb(255 255 255 / .94); }
@media (max-width: 900px) { :root body[data-page="admin"] .ad-head::before { inset: -18px -16px -6px; } }
/* الجوال: الأرقام عمودين بدل عمود واحد طويل (حسابي، لوحة المشرف) */
@media (max-width: 560px) { .kpis, :root body[data-page="admin"] .ad-main .kpis, :root body[data-page="admin"] .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* الشاشات العريضة: محتوى اللوحة ياخذ المساحة بدل فراغ جنبه */
@media (min-width: 1600px) { :root body[data-page="admin"] .ad-main { max-width: 1480px; } }
.fp-game .game-bottom { display: flex; flex-direction: column; gap: var(--gap); } .fp-game .game-bottom > .fp-tech { margin-top: 0; }
[dir="rtl"] .fp-full { text-align: right; }

/* ---------- القرعة (3.32): عملة حقيقية تنقلب قدام اللاعب ---------- */
.toss { align-items: center; gap: 14px; padding: clamp(18px, 3vw, 28px); position: relative; isolation: isolate; overflow: hidden; }
.toss::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--pat-field); opacity: .45; -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 35%, #000, transparent 75%); }
.coin-stage { position: relative; width: 132px; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; perspective: 900px; }
.coin-arc { width: 120px; height: 120px; }
.coin { position: relative; width: 120px; height: 120px; transform-style: preserve-3d; transform: rotateY(0); }
.cf { position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #fff;
  box-shadow: inset 0 0 0 5px rgb(255 255 255 / .35), inset 0 0 0 9px rgb(0 0 0 / .08), inset 0 -10px 18px rgb(0 0 0 / .18), 0 10px 26px -10px rgb(0 0 0 / .5); }
.cf b { font-family: var(--display); font-size: 2.9rem; line-height: 1; text-shadow: 0 2px 0 rgb(0 0 0 / .15); }
.cf small { font-size: .62rem; font-weight: 700; max-width: 86px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; margin-top: 2px; }
.cf.f0 { background: radial-gradient(circle at 35% 30%, #FF8A8D, #FF6B6F); }
.cf.f1 { background: radial-gradient(circle at 35% 30%, #5CC0D0, #38A8BA); transform: rotateY(180deg); color: #1B2A41; }
.coin-edge { display: none; }
.coin-shadow { position: absolute; bottom: -6px; width: 96px; height: 14px; border-radius: 50%; background: rgb(0 0 0 / .28); filter: blur(4px); }
:root[data-theme="light"] .coin-shadow { background: rgb(27 42 65 / .22); }
/* 2.1: علامات X/O بالنهاري بدرجات النص (التعبئة على الكريمي تحت 3:1). الليلي يبقى بالتعبئة */
:root[data-theme="light"] .cx, :root[data-theme="light"] .team-in.x i { color: var(--orange-text); }
:root[data-theme="light"] .co, :root[data-theme="light"] .team-in.o i { color: var(--mint); }
:root[data-theme="light"] .side.on .mk { color: var(--on-ac); }
.coin-stage.show-1 .coin { transform: rotateY(180deg); }
.coin-stage.flipping .coin-arc { animation: coinArc 1.8s cubic-bezier(.3, 0, .3, 1) both; }
.coin-stage.flipping.to-0 .coin { animation: coinSpin0 1.8s cubic-bezier(.25, .6, .3, 1) both; }
.coin-stage.flipping.to-1 .coin { animation: coinSpin1 1.8s cubic-bezier(.25, .6, .3, 1) both; }
.coin-stage.flipping .coin-shadow { animation: coinShadow 1.8s cubic-bezier(.3, 0, .3, 1) both; }
@keyframes coinArc { 0% { transform: translateY(0); } 45% { transform: translateY(-74px) scale(1.06); } 82% { transform: translateY(0); } 90% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@keyframes coinSpin0 { from { transform: rotateY(0) rotateX(12deg); } to { transform: rotateY(1800deg) rotateX(0); } }
@keyframes coinSpin1 { from { transform: rotateY(0) rotateX(12deg); } to { transform: rotateY(1980deg) rotateX(0); } }
@keyframes coinShadow { 0% { transform: scale(1); opacity: 1; } 45% { transform: scale(.55); opacity: .45; } 82%, 100% { transform: scale(1); opacity: 1; } }
.toss-teams { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.toss-teams .tt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--stroke); background: var(--glass); font-weight: 700; font-size: .9rem; max-width: 100%; transition: all .3s; }
.toss-teams .tt i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; color: var(--on-ac); background: var(--orange); flex: none; }
.toss-teams .tt.p1 i { background: var(--sea); color: var(--on-sea); }
.toss-teams .tt.won { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 10px 24px -12px var(--orange-glow); transform: scale(1.05); } .toss-teams .tt.p1.won { border-color: var(--sea); box-shadow: 0 0 0 1px var(--sea), 0 10px 24px -12px rgb(var(--se) / .7); }
.toss-res { animation: fpIn .35s ease both; } .toss-res.p0 { color: var(--orange-text); } .toss-res.p1 { color: var(--mint); }
.game.pre .board, .fp-game.pre .fpb { filter: blur(5px); opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .coin-stage.flipping .coin, .coin-stage.flipping .coin-arc, .coin-stage.flipping .coin-shadow { animation: none; } }
/* القرعة قدام اللاعب: فوق الجولة (اللوح مموّه وراها) في كل المقاسات */
.toss-veil { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 16px; background: rgb(var(--deep) / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fpIn .25s ease both; }
.toss-veil .toss { width: min(100%, 420px); max-height: calc(100dvh - 32px); overflow: auto; background: rgb(var(--solid) / .88); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
:root[data-theme="light"] .toss-veil .toss { background: rgb(255 255 255 / .92); }
@media (max-height: 560px) { .coin-stage { height: 150px; } .coin-arc, .coin { width: 96px; height: 96px; } .cf b { font-size: 2.2rem; } }
.held-board { display: grid; gap: clamp(5px, 1.2vw, 9px); grid-template-columns: repeat(3, minmax(0, 1fr)); opacity: .55; }
.held-board.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.held-board i { aspect-ratio: 1 / 1; border-radius: clamp(10px, 1.6vw, 16px); border: 1px solid var(--stroke); background: var(--glass); }
.toss-leave { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* «جرّب خانة» لفوتبريس */
.ftry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; margin-inline: auto; width: 100%; }
.ftry-grid .fpc { aspect-ratio: 1.35 / 1; }
.ftry-now { padding: 10px 14px; }
.ftry-ring { width: 56px; height: 56px; }
/* الحلقة تنقص بسلاسة طول الـ10 ثواني، وتتوقف مكانها لما يجاوب أو يخلص الوقت */
.ftry-ring .rf { transition: stroke .2s; animation: ftryDrain 10s linear forwards; }
@keyframes ftryDrain { to { stroke-dashoffset: 163.36; } }
@media (prefers-reduced-motion: reduce) { .ftry-ring .rf { animation: none; } }
/* حسابات السوشيال: أيقونات بدل الكتابة */
footer .soc-links a.soc-ico { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
footer .soc-links a.soc-ico svg { width: 18px; height: 18px; }
.welcome-syms { display: flex; gap: 12px; justify-content: center; } .welcome-syms .gc-tile { width: 64px; height: 64px; padding: 12px; border-radius: 18px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--stroke); color: var(--text); }
.welcome-syms .sym .dt { fill: currentColor; }

/* ---------- ملاحظات بيتار (26 أكتوبر) ---------- */
/* 1+3: النقاط العشوائية ورا الأقسام تنشال (الهيرو، بطاقات الألعاب، رؤوس الصفحات، اللوحة...). الخلفيات سادة، ورموز الألعاب تبقى */
:root, :root[data-theme="light"] { --pat-field: none; }
.gc-art, :root[data-theme="light"] .gc-art, .game-card.soon .gc-art { background: none; }
/* 2: عرض اللعبتين في الهيرو مستقيم (كان مايل) */
.demo, .pdemo-wrap { transform: none; }
/* 5: طريقة اللعب للعبتين: تبويب، مثال يتحرك، ثلاث خطوات قصيرة */
.how-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); margin-bottom: 14px; }
.how-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; font-weight: 700; color: var(--muted); transition: all .15s; }
.how-tab .gsym { width: 20px; height: 20px; } .how-tab[aria-pressed="true"] { background: var(--glass-3); color: var(--text); box-shadow: 0 6px 18px -10px rgb(0 0 0 / .5); }
.how-body { display: grid; gap: 18px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-step { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.hw-ill { height: 236px; overflow: hidden; display: grid; place-items: center; padding: 14px; background: radial-gradient(120% 90% at 50% 0%, rgb(var(--ac) / .13), transparent 70%), var(--glass-2); border-bottom: 1px solid var(--stroke); }
.hw-ill.footpress { background: radial-gradient(120% 90% at 50% 0%, rgb(var(--se) / .16), transparent 70%), var(--glass-2); }
.hw-txt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 18px; }
.hw-txt i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem; background: rgb(var(--ac) / .15); color: var(--orange-text); }
.hw-txt b { display: block; font-size: 1.05rem; } .hw-txt span { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.how-go { min-width: 200px; }
/* لوح صغير: خانات وعناوين */
.hw-board { display: grid; gap: 5px; width: min(100%, 210px); }
.hw-board.n3 { grid-template-columns: repeat(3, 1fr); } .hw-board.n4 { grid-template-columns: repeat(4, 1fr); }
.hw-board.heads.n3 { grid-template-columns: .95fr repeat(3, 1fr); width: min(100%, 222px); gap: 4px; }
.hw-board.heads .hw-cell { aspect-ratio: 1.1 / 1; }
.hw-corner { display: block; }
.hw-chip { display: grid; place-items: center; text-align: center; padding: 3px 4px; border-radius: 8px; font-size: .58rem; font-weight: 700; line-height: 1.2; background: rgb(var(--ac) / .16); color: var(--text); border: 1px solid rgb(var(--ac) / .3); min-height: 24px; }
.hw-chip.row { background: rgb(var(--se) / .16); border-color: rgb(var(--se) / .32); }
.hw-cell { aspect-ratio: 1 / 1; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 1rem; background: var(--glass-3, var(--glass)); border: 1px solid var(--stroke); }
.hw-cell.own.p0 { background: rgb(var(--ac) / .08); border-color: rgb(var(--ac) / .6); color: var(--orange-text); }
.hw-cell.own.p1 { background: rgb(var(--se) / .2); border-color: rgb(var(--se) / .6); color: var(--mint); }
.hw-cell.hot { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(var(--ac) / .22); animation: hwPulse 1.6s ease-in-out infinite; }
.hw-win { position: relative; display: grid; place-items: center; width: 100%; }
.hw-badge { position: absolute; inset-block-end: -2px; inset-inline-end: 2px; padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: .85rem; background: var(--orange); color: var(--on-ac); box-shadow: 0 8px 20px -8px var(--orange-glow); transform: rotate(-4deg); }
/* خطوة التخمين */
.hw-ans { display: grid; gap: 8px; width: min(100%, 250px); }
.hw-clues { display: flex; align-items: center; justify-content: center; gap: 8px; } .hw-clues b { color: var(--muted); } .hw-clues .hw-chip { flex: 1; font-size: .66rem; min-height: 28px; }
.hw-input { display: flex; align-items: center; gap: 2px; padding: 9px 12px; border-radius: 12px; background: var(--glass-3, var(--glass)); border: 1.5px solid var(--orange); font-weight: 700; font-size: .85rem; }
.hw-caret { width: 2px; height: 1.1em; background: var(--orange); animation: hwBlink 1s steps(1) infinite; }
.hw-hit { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgb(var(--se) / .08); border: 1px solid rgb(var(--se) / .4); font-weight: 700; font-size: .8rem; } .hw-hit b { color: var(--mint); } .hw-hit small { margin-inline-start: auto; color: var(--mint); font-weight: 800; }
/* فوتبريس: اللاعب الحالي */
.hw-now { display: flex; align-items: center; gap: 12px; width: min(100%, 270px); padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, rgb(var(--ac) / .2), var(--glass-2)); border: 1px solid rgb(var(--ac) / .35); }
.hw-now .mw0 { display: grid; gap: 1px; } .hw-now b { font-family: var(--display); font-size: 1.05rem; } .hw-now small { color: var(--muted); font-size: .66rem; font-weight: 700; } .hw-left { font-variant-numeric: tabular-nums; }
.hw-ring { position: relative; width: 54px; height: 54px; flex: none; display: grid; place-items: center; } .hw-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hw-ring .rb { fill: none; stroke: rgb(var(--ov) / .12); stroke-width: 5; } .hw-ring .rf { fill: none; stroke: var(--sea); stroke-width: 5; stroke-linecap: round; } .hw-ring b { font-size: 1.2rem; }
/* فوتبريس: اضغط المربع */
.hw-tap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: min(100%, 250px); }
.hw-sq { display: grid; gap: 1px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--glass-3, var(--glass)); border: 1px solid var(--stroke); } .hw-sq small { color: var(--orange-text); font-size: .58rem; font-weight: 700; } .hw-sq b { font-size: .8rem; }
.hw-sq.hot { background: rgb(var(--ac) / .2); border-color: var(--orange); animation: hwPulse 1.6s ease-in-out infinite; }
.hw-finger { position: absolute; inset-inline-start: 60%; inset-block-start: 36%; width: 22px; height: 22px; border-radius: 50%; background: rgb(var(--tx) / .85); box-shadow: 0 0 0 6px rgb(var(--tx) / .2); animation: hwTap 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes hwPulse { 50% { box-shadow: 0 0 0 6px rgb(var(--ac) / .1); } }
@keyframes hwBlink { 50% { opacity: 0; } }
@keyframes hwTap { 0%, 100% { transform: scale(1); opacity: .9; } 45% { transform: scale(.78); opacity: 1; } }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } .hw-ill { height: 230px; } .hw-board { width: min(100%, 176px); } .hw-board.heads.n3 { width: min(100%, 214px); } .hw-badge { inset-block-end: 6px; } }
@media (prefers-reduced-motion: reduce) { .hw-cell.hot, .hw-sq.hot, .hw-caret, .hw-finger { animation: none; } }
/* نجمة «الأشهر» في بطاقة اللاعب: مطفية رمادية، ومشغّلة ذهبية */
.star-btn { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.05rem; line-height: 1; color: var(--faint); border: 1px solid var(--stroke); background: transparent; transition: all .15s; }
.star-btn:hover { color: #F5B83D; border-color: rgb(245 184 61 / .5); }
.star-btn.on { color: #F5B83D; background: rgb(245 184 61 / .14); border-color: rgb(245 184 61 / .55); }
:root body[data-page="admin"] .star-btn { width: 32px; height: 32px; }

/* =====================================================================
   لوحة المشرف: استغلال المساحة (ملاحظة بيتار 26 أكتوبر «الأشياء مو fit»)
   - الشبكات auto-fit بدل auto-fill: العناصر تتمدد وتعبي الصف بدل ما يبقى فراغ جنبها (عنصر واحد = عرض كامل)
   - نظرة عامة: المجموعات تنلف وتتمدد بحسب عدد أرقامها، فكل صف يتعبى للآخر
   - المحتوى ياخذ عرض الشاشة كامل لين حد مريح للقراءة
   ===================================================================== */
:root body[data-page="admin"] .ad-main { max-width: 1680px; }
@media (min-width: 1600px) { :root body[data-page="admin"] .ad-main { max-width: 1680px; } }
@media (min-width: 761px) { .ad-main .list { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); } }
:root body[data-page="admin"] .nums, :root body[data-page="admin"] .ad-main .kpis, :root body[data-page="admin"] .tiles, :root body[data-page="admin"] .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
:root body[data-page="admin"] .acts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }



@media (max-width: 560px) { :root body[data-page="admin"] .nums, :root body[data-page="admin"] .ad-main .kpis, :root body[data-page="admin"] .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }  }
:root body[data-page="admin"] .list:has(> .rep) { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
/* البلاطات تنلف وتتمدد: آخر صف ما يبقى فيه بلاطة يتيمة بربع العرض */
:root body[data-page="admin"] .acts, :root body[data-page="admin"] .nums, :root body[data-page="admin"] .ad-main .kpis, :root body[data-page="admin"] .tiles, :root body[data-page="admin"] .stats { display: flex; flex-wrap: wrap; }
:root body[data-page="admin"] .nums > *, :root body[data-page="admin"] .ad-main .kpis > *, :root body[data-page="admin"] .tiles > *, :root body[data-page="admin"] .stats > * { flex: 1 1 160px; height: auto; }
:root body[data-page="admin"] .acts > * { flex: 1 1 210px; }
@media (max-width: 560px) { :root body[data-page="admin"] .nums > *, :root body[data-page="admin"] .ad-main .kpis > *, :root body[data-page="admin"] .tiles > *, :root body[data-page="admin"] .stats > * { flex-basis: calc(50% - 8px); } }
@media (max-width: 560px) { :root body[data-page="admin"] .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 561px) { :root body[data-page="admin"] .grid.c4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }

.pm-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke); }

/* لوحة المشرف (3.34): بحث سريع، اختصارات، وترتيب الرفع */
.ad-search { margin: 0 0 12px; } .ad-search input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 12px; font-size: .9rem; }
 
.up-flow { margin-block: -2px 2px; } .up-flow li.now > * { cursor: default; }
/* 3.54.2: «ماذا ترفع؟» قبل أي رفع: ثلاث بطاقات بترتيبها */
.up-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.up-kind { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; text-align: start; padding: 16px; border-radius: 14px; border: 1px solid var(--stroke); background: rgb(var(--ov) / .04); color: var(--text); font: inherit; cursor: pointer; min-height: 44px; }
.up-kind i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); font-size: .8rem; font-weight: 700; grid-row: span 2; align-self: start; }
.up-kind b { font-size: 1rem; } .up-kind span { grid-column: 2; line-height: 1.6; }
.up-kind:hover { border-color: var(--orange); background: rgb(var(--ac) / .08); } .up-kind:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 2px; }
:root body[data-page="admin"] .alert.ok { background: rgb(var(--se) / .12); border-color: rgb(var(--se) / .4); }

/* 3.36: زر يعمل = شريط تقدّم رمادي بنسبة تقديرية */
.btn.busy { position: relative; overflow: hidden; background: var(--glass-2) !important; color: var(--muted) !important; box-shadow: none !important; cursor: progress; }
.btn.busy .pbar { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: rgb(var(--ac) / .22); transition: width .25s linear; }
.btn.busy .ptxt { position: relative; font-variant-numeric: tabular-nums; }

.fp-controls { gap: 8px; } .pager { justify-content: center; gap: 12px; }
/* 3.39: نوافذ موحّدة: زر × في الزاوية، وأزرار الأسفل بنفس الحجم والأساسي أولًا */
.sheet { position: relative; }
.sheet-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; line-height: 1; color: var(--muted); border: 1px solid var(--stroke); background: rgb(var(--deep) / .35); z-index: 2; }
.sheet-x:hover { color: var(--text); border-color: var(--stroke-2); }
.sheet[data-sticky]:not([data-guard]) > .sheet-x, .sheet.res-sheet > .sheet-x { display: none; }
.sheet > h3:first-child { padding-inline-end: 40px; }
.sheet > .row:last-of-type:not(.res-actions):not(.center) > .btn { flex: 1 1 0; min-width: 0; }
.sheet > .row:last-of-type:not(.res-actions) > .btn.primary { order: -1; }
:root body[data-page="admin"] .sheet-x { background: var(--a-surf-2); border-color: var(--a-line); color: var(--a-muted); }
/* 3.39: سكيب وجوكر فوتبريس في الجوال: تحت بطاقة اللاعب الحالي، بدل أسفل الكرت (يحتاج تمرير خلال 10 ثوانٍ) */
.fp-sj-top { display: none; }
@media (max-width: 640px) { .fp-sj-top { display: flex; gap: 8px; } .fp-sj-top > .btn { flex: 1 1 0; } .fp-sj-bot { display: none; } }
/* 3.40: الأسئلة الظاهرة */
.q-pair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-side { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass); text-align: start; }
.q-side:hover { border-color: var(--stroke-2); }
.q-times { color: var(--muted); font-weight: 700; }
.q-answers { display: flex; flex-wrap: wrap; gap: 6px; }
.q-ans { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 99px; border: 1px solid var(--stroke); font-size: .86rem; }
.q-ans.known { border-color: rgb(245 184 61 / .55); }
.q-ans.added { border-style: dashed; border-color: var(--sea); }
.q-ans.removed { opacity: .6; } .q-ans.removed > .q-name { text-decoration: line-through; }
.q-x { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); font-size: .95rem; line-height: 1; }
.q-x:hover { color: var(--orange-text); background: rgb(var(--ac) / .12); }
.q-row.q-hidden { opacity: .7; }

:root body[data-page="admin"] .q-side, :root body[data-page="admin"] .q-name { color: var(--a-text, var(--text)); text-decoration: none; }
.q-side b { font-size: .95rem; } .q-name { font-weight: 600; padding: 2px 0; } .q-name:hover { text-decoration: underline; }
.q-ok { border-color: var(--sea); color: var(--mint); }

/* ---------- فوتهانت (3.48): من نموذج التصميم المعتمد، بألوان الموقع (مرجاني = الفريق الأول، بحري = الثاني) ---------- */
.gstrip.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .gstrip.n3 .gs-btn { flex-direction: column; gap: 6px; text-align: center; padding: 10px 6px; } .gstrip.n3 .gs-btn b { font-size: .92rem; } }
.game.fh-game { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 900px; margin-inline: auto; align-items: stretch; padding-bottom: 24px; } /* مو شبكة فوتناين وفوتبريس (اللوحة جنب): هنا كل شي عمود واحد مثل التصميم */
.fh-game .game-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .fh-game .game-ctx .gsym { width: 18px; height: 18px; } .fh-exit { margin-inline-start: auto; }
.fh-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fh-scores.one { grid-template-columns: 1fr; }
.fh-sc { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--stroke); background: linear-gradient(140deg, var(--glass-2), var(--glass) 55%); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: border-color .3s, box-shadow .35s, background .3s, transform .35s; }
.fh-sc > b { min-width: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-sc .fh-num { margin-inline-start: auto; font-family: var(--display); font-size: 1.6rem; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; }
.fh-sc.turn { transform: translateY(-2px); }
.fh-sc.turn.a { border-color: var(--orange); background: linear-gradient(140deg, rgb(var(--ac) / .28), var(--glass)); box-shadow: 0 0 0 1px var(--orange), 0 16px 40px -16px rgb(var(--ac) / .7); } .fh-sc.turn.a .fh-num { color: var(--orange-text); }
.fh-sc.turn.b { border-color: var(--sea); background: linear-gradient(140deg, rgb(var(--se) / .24), var(--glass)); box-shadow: 0 0 0 1px var(--sea), 0 16px 40px -16px rgb(var(--se) / .6); } .fh-sc.turn.b .fh-num { color: var(--mint); }
.fh-game .ini, .fh-ov .ini, .fh-result .ini { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.ini.a { background: linear-gradient(160deg, #FF8A8D, #FF6B6F); color: var(--on-ac); } .ini.b { background: var(--sea); color: var(--on-sea); } .ini.c { background: var(--glass-3); color: var(--text); border: 1px solid var(--stroke); }
.fh-sc .pop { position: absolute; top: -8px; inset-inline-end: 14px; font-weight: 700; direction: ltr; padding: 2px 10px; border-radius: 99px; pointer-events: none; animation: fhPop 1.4s ease forwards; }
.fh-sc .pop.ok { background: rgb(var(--se) / .22); color: var(--mint); border: 1px solid rgb(var(--se) / .5); } .fh-sc .pop.trap { background: rgb(var(--ac) / .22); color: var(--orange-text); border: 1px solid rgb(var(--ac) / .5); }
@keyframes fhPop { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 15% { opacity: 1; transform: translateY(-6px) scale(1.08); } 70% { opacity: 1; transform: translateY(-14px); } 100% { opacity: 0; transform: translateY(-24px); } }
.fh-turn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 8px 14px; border-radius: 99px; font-weight: 600; text-align: center; border: 1px solid var(--stroke); background: var(--glass); }
.fh-turn.a { background: rgb(var(--ac) / .14); border-color: rgb(var(--ac) / .55); } .fh-turn.b { background: rgb(var(--se) / .12); border-color: rgb(var(--se) / .55); }
.fh-turn .clock { display: inline-flex; align-items: center; gap: 6px; direction: ltr; font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 99px; background: rgb(var(--deep) / .3); border: 1px solid var(--stroke); }
.fh-turn.paused .clock { color: var(--muted); } .fh-turn.paused .tprog i { background: var(--faint); }
.fh-turn .clock svg { width: 14px; height: 14px; } .fh-turn .clock.low { color: var(--orange-text); border-color: var(--orange); }
.fh-turn .tprog { position: absolute; inset-inline: 0; bottom: 0; height: 3px; } .fh-turn .tprog i { display: block; height: 100%; width: calc(var(--p, 100) * 1%); transition: width .25s linear; background: var(--sea); } .fh-turn.a .tprog i { background: var(--orange); }
.fh-q { position: relative; overflow: hidden; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fh-q::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 100% 0%, rgb(var(--ac) / .14), transparent 60%); }
.fh-q .qmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); } .fh-q .qn { font-weight: 700; color: var(--orange-text); } .fh-traps { color: var(--orange-text); }
.fh-q .qtext { font-family: var(--display); font-size: clamp(1.25rem, 1.4vw + .9rem, 1.65rem); font-weight: 700; line-height: 1.4; text-wrap: balance; }
.fh-q .found { height: 6px; border-radius: 99px; background: rgb(var(--deep) / .3); overflow: hidden; margin-top: 6px; border: 1px solid var(--stroke); } .fh-q .found i { display: block; height: 100%; width: calc(var(--f, 0) * 1%); border-radius: 99px; background: linear-gradient(90deg, var(--sea), var(--orange)); transition: width .6s; }
.fh-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; perspective: 900px; }
.fh-slot { position: relative; overflow: hidden; min-height: 60px; border-radius: 16px; border: 1px solid var(--stroke); display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgb(var(--deep) / .28); transition: border-color .3s, background .3s; }
.fh-slot .rk { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--muted); direction: ltr; }
.fh-slot .pts { margin-inline-start: auto; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--faint); }
.fh-slot .nm { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; } .fh-slot .hid { color: var(--faint); letter-spacing: 2px; }
.fh-slot .x2 { font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--text); color: var(--bg); direction: ltr; }
.fh-slot.a { border-color: rgb(var(--ac) / .8); background: linear-gradient(160deg, rgb(var(--ac) / .36), rgb(var(--ac) / .12)); } .fh-slot.a .pts { color: var(--orange-text); } .fh-slot.a .rk { background: var(--orange); color: var(--on-ac); border-color: transparent; }
.fh-slot.b { border-color: rgb(var(--se) / .7); background: linear-gradient(160deg, rgb(var(--se) / .28), rgb(var(--se) / .08)); } .fh-slot.b .pts { color: var(--mint); } .fh-slot.b .rk { background: var(--sea); color: var(--on-sea); border-color: transparent; }
.fh-slot.n { border-style: dashed; border-color: var(--stroke-2); background: var(--glass); } .fh-slot.n .nm, .fh-slot.n .pts { color: var(--muted); }
.fh-slot.fresh.a { box-shadow: 0 0 0 1px var(--orange), 0 14px 34px -12px rgb(var(--ac) / .8); } .fh-slot.fresh.b { box-shadow: 0 0 0 1px var(--sea), 0 14px 34px -12px rgb(var(--se) / .7); }
.fh-slots.ghost i { min-height: 60px; border-radius: 16px; border: 1px dashed var(--stroke); display: grid; place-items: center; font-style: normal; color: var(--faint); font-size: .8rem; }
.fh-held .qtext { font-size: 1.05rem; font-weight: 500; }
.fh-msg { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 14px; border-radius: 99px; font-weight: 600; border: 1px solid var(--stroke); background: var(--glass); animation: fpIn .35s ease both; }
.fh-msg svg { width: 18px; height: 18px; flex: none; } .fh-msg.ok { border-color: rgb(var(--se) / .55); background: rgb(var(--se) / .1); } .fh-msg.ok svg { color: var(--mint); }
.fh-msg.trap { border-color: var(--orange); color: var(--orange-text); background: rgb(var(--ac) / .12); } .fh-msg.bad svg { color: var(--orange-text); } .fh-msg.dup { border-style: dashed; } .fh-msg.idle { color: var(--muted); font-weight: 500; }
.fh-answer { position: sticky; bottom: 10px; z-index: 4; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; background: rgb(var(--solid) / .9); }
:root[data-theme="light"] .fh-answer { background: rgb(255 255 255 / .94); }
.fh-combo { position: relative; display: flex; gap: 8px; } .fh-combo input { flex: 1; min-width: 0; min-height: 50px; font-size: 17px; }
.fh-list { position: absolute; bottom: calc(100% + 8px); inset-inline: 0; max-height: 240px; overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-sm); z-index: 6; border: 1px solid var(--stroke-2); background: rgb(var(--solid) / .97); box-shadow: var(--shadow); }
:root[data-theme="light"] .fh-list { background: #fff; }
.fh-opt { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: start; min-height: 44px; padding: 8px 12px; border-radius: 10px; }
.fh-opt small { font-size: .78rem; } .fh-opt[aria-selected="true"], .fh-opt:hover { background: var(--glass-3); } .fh-opt[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--orange); } [dir="ltr"] .fh-opt[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--orange); }
.fh-none { padding: 10px 12px; }
.fh-helps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .fh-helps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fh-helps .hb { min-height: 44px; border-radius: 99px; border: 1px solid var(--stroke); background: var(--glass); font-weight: 600; font-size: .88rem; padding: 4px 8px; transition: transform .18s, background .2s, border-color .2s; }
.fh-helps .hb:hover:not([disabled]) { background: var(--glass-3); border-color: var(--stroke-2); } .fh-helps .hb:active:not([disabled]) { transform: scale(.96); }
.fh-helps .hb[aria-pressed="true"] { background: linear-gradient(180deg, var(--orange), var(--orange-deep)); color: var(--on-ac); border-color: transparent; opacity: 1; animation: fhArmed 1.6s ease-in-out infinite; }
.fh-helps .hb[disabled]:not([aria-pressed="true"]) { text-decoration: line-through; }
@keyframes fhArmed { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--ac) / .55); } 50% { box-shadow: 0 0 0 6px rgb(var(--ac) / 0); } }
.fh-dblon { margin: 0; text-align: center; font-size: .82rem; font-weight: 700; color: var(--orange-text); }
.fh-think { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; color: var(--muted); font-weight: 600; }
.fh-dots { display: inline-flex; gap: 6px; align-items: center; } .fh-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; animation: fhBl 1.2s infinite; } .fh-dots i:nth-child(2) { animation-delay: .2s; } .fh-dots i:nth-child(3) { animation-delay: .4s; color: var(--orange-text); }
@keyframes fhBl { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.fh-wait-dots { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fh-game.shk .fh-slots { animation: fhShk .45s; } @keyframes fhShk { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.fh-veil.still { animation: none; } .fh-ov h2 { font-size: 1.35rem; } .fh-ov .gsym { width: 44px; height: 44px; }
.fh-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; } .fh-res.one { grid-template-columns: 1fr; }
.fh-res .rt { position: relative; padding: 16px 12px; border-radius: 18px; border: 1px solid var(--stroke); display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgb(var(--deep) / .25); text-align: center; min-width: 0; }
.fh-res .rt > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-res .rt.win { border-color: var(--orange); background: linear-gradient(160deg, rgb(var(--ac) / .3), rgb(var(--ac) / .08)); box-shadow: 0 0 0 1px var(--orange), 0 18px 44px -14px rgb(var(--ac) / .75); }
.fh-res .fh-num { font-family: var(--display); font-size: 1.9rem; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; } .fh-res .rt.win .fh-num { color: var(--orange-text); }
.fh-res .won { font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); color: var(--on-ac); }
.fh-ov .fh-turn { width: 100%; } .fh-btns { width: 100%; } .fh-btns .btn { flex: 1; }
.fh-tie-timer { width: 88px; height: 88px; } .fh-tie-timer b { font-size: 1.7rem; }
.fh-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; } .fh-price b { font-size: 1.2rem; }
.fh-note { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: rgb(var(--deep) / .25); border: 1px solid var(--stroke); color: var(--muted); }
.fh-peekbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 15; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(var(--solid) / .92); border-top: 1px solid var(--stroke); }
.fh-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); align-self: center; }
.fh-brk { display: flex; flex-direction: column; font-size: .88rem; border-radius: var(--r-sm); border: 1px solid var(--stroke); overflow: hidden; background: rgb(var(--deep) / .2); }
.fh-brk .br { display: grid; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--stroke); } .fh-brk .br:first-child { border-top: 0; }
.fh-brk.three .br { grid-template-columns: 1.4fr 1fr 1fr; } .fh-brk.two .br { grid-template-columns: 1.4fr 1fr; }
.fh-brk .br span { text-align: center; direction: ltr; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fh-brk .br span:first-child { text-align: start; direction: inherit; } .fh-brk .br.hd { font-weight: 700; background: var(--glass); } .fh-brk .br.hd span { direction: inherit; }
.fh-rules ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.fh-timers { flex-wrap: wrap; }
@media (min-width: 768px) {
  .fh-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .fh-slot { flex-direction: column; align-items: flex-start; min-height: 92px; padding: 10px 12px; } .fh-slot .pts { margin-inline-start: 0; margin-top: auto; } .fh-slot .rk { position: absolute; top: 8px; inset-inline-end: 8px; } .fh-slot .nm, .fh-slot .hid { margin-top: 24px; }
  .fh-slots.ghost i { min-height: 92px; }
  .fh-answer { position: static; padding: 14px 16px; }
}
@media (max-width: 420px) { .fh-sc { padding: 10px 12px; gap: 8px; } .fh-sc .fh-num { font-size: 1.35rem; } .fh-game .ini { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .fh-sc .pop, .fh-game.shk .fh-slots, .fh-helps .hb[aria-pressed="true"], .fh-dots i, .fh-msg { animation: none; } }

/* =====================================================================
   لوحة المشرف الجديدة (3.49): التصميم المعتمد «لوحة تريبلا الجديدة».
   أسطح مصمتة هادئة بدل الزجاج والوهج (القراءة أريح في الشغل الطويل)، والليلي هو الافتراضي.
   نفس متغيرات --a-* فكل الأقسام القديمة تاخذ الألوان الجديدة تلقائيًا.
   ===================================================================== */
:root body[data-page="admin"] {
  --a-bg: #0B1422; --a-nav: #0E1A2C; --a-surf: #132238; --a-surf-2: #1B2C45; --a-soft2: #17283F; --a-line: #24364F; --a-line-2: #33496A; --a-line-3: #1C2D45;
  --a-text: #FFF8F0; --a-muted: #A9B4C4; --a-faint: #8592A6; --a-solid: #FFF8F0; --a-onsolid: #0B1422; --a-tile: #1E3352; --a-link: #7FD6E5;
  --a-acc: #FF6B6F; --a-acc-text: #FF8A8E; --a-acc-tx: #1B2A41; --a-acc-bg: #3A1C25; --a-acc-line: rgb(255 138 142 / .5); --a-btn: #FF6B6F; --a-sea: #7FD6E5; --a-sea-bg: #123241;
  --t-red: #3A1C25; --t-amber: #3A2C16; --t-sea: #123241; --t-violet: #2A2340; --t-red2: #2A1A24; --t-green: #12332B; --t-sand: #2E2A22;
  --c-red: #FF8A8E; --c-amber: #F2B866; --c-sea: #7FD6E5; --c-violet: #C9B8F2; --c-green: #7FDDB0; --c-sand: #E7D3B0;
  --a-pop: 0 18px 48px -12px rgb(0 0 0 / .6);
  background: var(--a-bg);
}
:root[data-theme="light"] body[data-page="admin"] {
  --a-bg: #FFF8F0; --a-nav: #FFFCF8; --a-surf: #FFFFFF; --a-surf-2: #F3EBE0; --a-soft2: #FAF5EE; --a-line: #E9E1D6; --a-line-2: #D9CFC2; --a-line-3: #F1EAE0;
  --a-text: #1B2A41; --a-muted: #5A6577; --a-faint: #5F6979; /* 2.1: كان 4.4 على الأبيض */ --a-solid: #1B2A41; --a-onsolid: #FFF8F0; --a-tile: #1B2A41; --a-link: #1F7A8C;
  --a-acc: #B42830; --a-acc-bg: #FFF1EF; --a-acc-line: #F3B4B6; --a-sea: #165B69; --a-sea-bg: #EEF6F7;
  --t-red: #FFF1EF; --t-amber: #FFF6E6; --t-sea: #EEF6F7; --t-violet: #F3EFF8; --t-red2: #FFF4F2; --t-green: #E6F3F0; --t-sand: #F3EBE0;
  --c-red: #B42830; --c-amber: #8A5200; --c-sea: #165B69; --c-violet: #4E3A77; --c-green: #1F6B4E; --c-sand: #5A4A33;
  --a-pop: 0 18px 44px -14px rgb(27 42 65 / .3);
}
:root body[data-page="admin"]::before, :root body[data-page="admin"]::after { display: none; }
:root body[data-page="admin"] .ad-bar, :root body[data-page="admin"] .ad-side, :root body[data-page="admin"] .card, :root body[data-page="admin"] .sheet { -webkit-backdrop-filter: none; backdrop-filter: none; }
:root body[data-page="admin"] .ad-bar { background: var(--a-nav); border-bottom: 1px solid var(--a-line); }
:root body[data-page="admin"] .ad-bar::after, :root body[data-page="admin"] .ad-head::before, :root body[data-page="admin"] .ad-group h3::before { display: none; }
:root body[data-page="admin"] .card { background: var(--a-surf); border: 1px solid var(--a-line); border-radius: 18px; box-shadow: none; }
:root body[data-page="admin"] .sheet { background: var(--a-surf); border: 1px solid var(--a-line-2); }
:root body[data-page="admin"] a, :root body[data-page="admin"] .linkish { color: var(--a-link); }
/* الأزرار: الأساسي أحمر مصمت، والثانوي سطح بحد */
:root body[data-page="admin"] .btn { border-radius: 12px; font-weight: 600; }
:root body[data-page="admin"] .btn.primary, :root body[data-page="admin"] .btn.orange { background: var(--a-btn, #FF6B6F); color: #1B2A41; box-shadow: none; border: 1px solid transparent; }
:root body[data-page="admin"] .btn.primary:hover { filter: brightness(1.08); }
:root body[data-page="admin"] .btn.ghost { background: var(--a-surf); color: var(--a-text); border: 1px solid var(--a-line-2); }
:root body[data-page="admin"] .btn.ghost:hover { background: var(--a-surf-2); }
:root body[data-page="admin"] .num::after, :root body[data-page="admin"] .ad-main .kpi::after, :root body[data-page="admin"] .tile::after { display: none; }
:root body[data-page="admin"] .ad-main .kpi { background: var(--a-soft2); border: 1px solid var(--a-line-3); }
/* القائمة الجانبية */
:root body[data-page="admin"] .ad-side { background: var(--a-nav); border-inline-start: 1px solid var(--a-line); border-inline-end: 0; padding: 20px 14px; }
:root body[data-page="admin"] .ad-nav { gap: 6px; }
:root body[data-page="admin"] .ad-group { gap: 2px; }
:root body[data-page="admin"] .ad-group h3 { font-size: 12px; font-weight: 600; color: var(--a-muted); padding: 12px 12px 4px; margin: 0; }
:root body[data-page="admin"] .ad-group > button { min-height: 40px; padding: 0 12px; border-radius: 12px; justify-content: flex-start; gap: 10px; font-size: 15px; font-weight: 500; color: var(--a-text); background: none; box-shadow: none; }
:root body[data-page="admin"] .ad-group > button:hover { background: var(--a-surf-2); }
:root body[data-page="admin"] .ad-group > button[aria-current="page"], [dir="rtl"] body[data-page="admin"] .ad-group > button[aria-current="page"], body[data-page="admin"][dir="rtl"] .ad-group > button[aria-current="page"] { background: var(--a-solid); color: var(--a-onsolid); box-shadow: none; font-weight: 600; }
:root body[data-page="admin"] .ad-group > button .badge { margin-inline-start: auto; background: #FF6B6F; color: #1B2A41; }
:root body[data-page="admin"] .ad-gsym { width: 18px; height: 18px; flex: none; }
:root body[data-page="admin"] .ad-gsym circle { fill: currentColor; }
:root body[data-page="admin"] .ad-search input { height: 42px; border-radius: 12px; background: var(--a-surf); border: 1px solid var(--a-line-2); }
/* رأس القسم: رمز اللعبة، العنوان وسطر شرح، والأزرار مقابلها */
:root body[data-page="admin"] .ad-main { padding: 28px clamp(16px, 3vw, 44px) 56px; gap: 20px; max-width: 1240px; }
:root body[data-page="admin"] .ad-head { align-items: center; padding: 0; margin: 0; }
:root body[data-page="admin"] .ad-head .ad-title { flex-direction: row; align-items: center; gap: 14px; }
:root body[data-page="admin"] .ad-head h1 { font-size: 30px; font-weight: 700; line-height: 1.25; }
.ad-crumb { display: block; font-size: 12px; font-weight: 600; color: var(--a-muted); }
.ad-sub { margin: 4px 0 0; font-size: 15px; color: var(--a-muted); }
.ad-htile { flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--a-tile); display: inline-grid; place-items: center; }
.ad-htile .sym { width: 34px; height: 34px; } .ad-htile .sym .dt { fill: #FFF8F0; } .ad-htile .sym .mv { fill: #FF6B6F; }
:root body[data-page="admin"] .ad-head-acts .ad-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
/* التبويبات: صف واحد بخط تحته */
.ad-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--a-line); margin-top: -4px; }
.ad-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--a-muted); }
.ad-tabs button:hover { color: var(--a-text); }
.ad-tabs button[aria-current="page"] { color: var(--a-text); border-bottom-color: #FF6B6F; }
.ad-tabs .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #FF6B6F; color: #1B2A41; font-size: 11px; line-height: 20px; }
/* الرئيسية */
.ov-new { gap: 24px; }
.ov-h { margin: 0; font-size: 18px; font-weight: 700; }
.ov-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ov-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 92px; padding: 16px; border-radius: 14px; text-align: start; color: var(--a-text); background: var(--t-sand); transition: transform .15s; }
.ov-tile:hover { transform: translateY(-1px); } .ov-tile b { font-size: 28px; font-weight: 700; line-height: 1.1; } .ov-tile span { font-size: 14px; font-weight: 600; }
.ov-tile.t-red { background: var(--t-red); } .ov-tile.t-red b { color: var(--c-red); } .ov-tile.t-amber { background: var(--t-amber); } .ov-tile.t-amber b { color: var(--c-amber); }
.ov-tile.t-sea { background: var(--t-sea); } .ov-tile.t-sea b { color: var(--c-sea); } .ov-tile.t-violet { background: var(--t-violet); } .ov-tile.t-violet b { color: var(--c-violet); } .ov-tile.t-sand b { color: var(--c-sand); }
.ov-tile.zero b { color: var(--a-muted); } .ov-tile.zero { background: var(--a-soft2); }
.ov-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ov-game { padding: 22px; display: flex; flex-direction: column; gap: 14px; } .ov-game h3 { margin: 0; font-size: 18px; } .ov-game .ad-htile { width: 48px; height: 48px; border-radius: 14px; } .ov-game .ad-htile .sym { width: 30px; height: 30px; }
.ov-big { font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ov-data { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.ov-dl { margin: 0; display: flex; flex-wrap: wrap; gap: 28px; } .ov-dl dt { font-size: 13px; color: var(--a-muted); } .ov-dl dd { margin: 0; font-size: 22px; font-weight: 700; }
.ov-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ov-mini { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--a-soft2); } .ov-mini b { font-size: 22px; font-weight: 700; }
.stack.tight { gap: 4px; }
:root body[data-page="admin"] .chip.good { background: var(--t-green); color: var(--c-green); } :root body[data-page="admin"] .chip.soft { background: var(--a-surf-2); color: var(--c-sand); } :root body[data-page="admin"] .chip.hot { background: var(--t-red); color: var(--c-red); }
@media (max-width: 1100px) { .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-games { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ov-3 { grid-template-columns: minmax(0, 1fr); } :root body[data-page="admin"] .ad-head h1 { font-size: 22px; } .ad-sub { font-size: 13px; } .ad-htile { width: 42px; height: 42px; } .ad-htile .sym { width: 28px; height: 28px; } .ad-tabs { overflow-x: auto; flex-wrap: nowrap; } .ad-tabs button { white-space: nowrap; } }
/* فوتهانت في اللوحة */
.fh-filters { align-items: center; gap: 10px; } .fh-filters .grow { flex: 1 1 260px; } .fh-filters input { width: 100%; }
.fh-table td { vertical-align: top; } .fh-at { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .fh-en { text-align: start; } .num-c { font-variant-numeric: tabular-nums; white-space: nowrap; } .fh-acts { white-space: nowrap; } .fh-acts .btn + .btn { margin-inline-start: 6px; }
.fh-formwrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.fh-form { flex: 999 1 520px; min-width: 0; padding: 24px; gap: 22px; }
.fh-side { flex: 1 1 280px; max-width: 360px; padding: 22px; gap: 14px; position: sticky; top: 76px; }
.fh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .fh-two { grid-template-columns: minmax(0, 1fr); } .fh-side { position: static; max-width: none; } }
.fh-fs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .fh-fs legend { font-size: 16px; font-weight: 700; padding: 0 0 6px; }
.fh-fs.traps { padding: 18px; border-radius: 16px; background: var(--t-red2); } .fh-fs.traps legend { float: inline-start; width: 100%; }
.fh-arow { display: grid; grid-template-columns: 40px 86px minmax(0, 1fr) 44px; align-items: start; gap: 12px; }
.fh-arow .n { width: 40px; height: 40px; border-radius: 12px; background: var(--a-line); color: var(--a-muted); font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.fh-arow.on .n { background: var(--a-solid); color: var(--a-onsolid); } .fh-arow .p { font-size: 15px; font-weight: 700; color: var(--a-muted); line-height: 40px; white-space: nowrap; } .fh-arow.on .p { color: var(--c-green); }
.fh-arow.trap .n { background: #FF6B6F; color: #1B2A41; } .fh-arow.trap .p { color: var(--c-red); }
.fh-arow .x { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-surf); color: var(--a-muted); font-size: 18px; }
.fh-acombo { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .fh-acombo input { width: 100%; height: 44px; } .fh-acombo input.bad { border-color: var(--c-red); }
.fh-alist { position: absolute; top: 48px; inset-inline: 0; z-index: 8; margin: 0; padding: 6px; list-style: none; max-height: 260px; overflow: auto; border-radius: 12px; background: var(--a-surf); border: 1px solid var(--a-line-2); box-shadow: var(--a-pop); }
.fh-aopt { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: start; } .fh-aopt:hover, .fh-aopt[aria-selected="true"] { background: var(--a-surf-2); } .fh-aopt small { font-size: 12px; }
.fh-anote { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .fh-anote:empty { display: none; }
.fh-save { border-top: 1px solid var(--a-line); padding-top: 18px; flex-wrap: wrap; }
.fh-side h3 { margin: 0; font-size: 17px; } .fh-ok { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .fh-ok svg { flex: none; width: 20px; height: 20px; margin-top: 1px; } .fh-ok.good svg { color: var(--c-green); } .fh-ok.bad svg { color: var(--c-red); }
.fh-side-sec { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--a-line); padding-top: 14px; } .fh-big { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.err-list { margin: 0; padding-inline-start: 18px; color: var(--c-red); }
label.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } label.chk input { width: 18px; height: 18px; }
@media (max-width: 560px) { .fh-arow { grid-template-columns: 34px 62px minmax(0, 1fr) 40px; gap: 8px; } .fh-arow .n { width: 34px; height: 34px; } .fh-arow .p { font-size: 13px; line-height: 34px; } .fh-arow .x { width: 40px; height: 40px; } .fh-form { padding: 16px; } .fh-fs.traps { padding: 12px; } }

/* 3.49.2: فوتهانت في الرئيسية: عرض الهيرو، وبطاقات «تتعلّمها في دقيقة»، وحركة البطاقة مثل باقي الألعاب */
.game-card.soon:hover { transform: translateY(-4px); border-color: rgb(var(--se) / .5); box-shadow: 0 30px 70px -30px rgb(var(--se) / .55); }
.game-card.soon:hover .gc-tile { transform: scale(1.05) rotate(-3deg); }
.game-card.soon { cursor: default; }
@media (prefers-reduced-motion: reduce) { .game-card.soon:hover, .game-card.soon:hover .gc-tile { transform: none; } }
.hdemo-wrap { max-width: 400px; width: 100%; }
.hdemo { display: flex; flex-direction: column; gap: 10px; }
.hdemo.shake .hd-slots { animation: fhShk .45s; }
.hd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hd-t { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 14px; font-weight: 700; font-size: .85rem; background: var(--glass); border: 1px solid var(--stroke); }
.hd-t b { font-family: var(--display); font-size: 1.1rem; direction: ltr; } .hd-t.p0 b { color: var(--orange-text); } .hd-t.p1 b { color: var(--mint); }
.hd-q { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--stroke); } .hd-q small { color: var(--orange-text); font-weight: 700; font-size: .72rem; } .hd-q b { font-family: var(--display); font-size: 1.05rem; line-height: 1.35; }
.hd-qrow { display: flex; align-items: center; gap: 8px; min-width: 0; } .hd-q .qi-fh { width: 32px !important; height: 32px !important; }
.hd-ic { display: inline-flex; flex: none; } .hd-slot .qi-ans { width: 32px !important; height: 32px !important; }
.hd-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hd-slot { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 12px; background: rgb(var(--deep) / .28); border: 1px solid var(--stroke); transition: background .4s, border-color .4s; }
.hd-slot i { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: .68rem; font-weight: 700; background: var(--glass-2); color: var(--muted); }
.hd-slot b { font-size: .82rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); } .hd-slot small { margin-inline-start: auto; font-weight: 700; font-size: .78rem; color: var(--faint); }
.hd-slot.on b { color: var(--text); } .hd-slot.p0 { background: rgb(var(--ac) / .24); border-color: rgb(var(--ac) / .7); } .hd-slot.p0 small { color: var(--orange-text); } .hd-slot.p0 i { background: var(--orange); color: var(--on-ac); }
.hd-slot.p1 { background: rgb(var(--se) / .2); border-color: rgb(var(--se) / .6); } .hd-slot.p1 small { color: var(--mint); } .hd-slot.p1 i { background: var(--sea); color: var(--on-sea); }
.hd-slot.on { animation: hdIn .5s ease both; } @keyframes hdIn { from { transform: rotateX(-80deg); opacity: .3; } to { transform: none; opacity: 1; } }
.hw-ill.foothunt { background: radial-gradient(120% 90% at 50% 0%, rgb(var(--ac) / .14), transparent 70%), var(--glass-2); }
.hw-hunt { display: grid; gap: 10px; width: min(100%, 250px); }
.hw-hq { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--glass-3, var(--glass)); border: 1px solid var(--stroke); } .hw-hq small { color: var(--orange-text); font-weight: 700; font-size: .62rem; } .hw-hq b { font-size: .86rem; line-height: 1.35; }
.hw-hslots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hw-hs { display: flex; align-items: center; gap: 5px; padding: 7px 8px; border-radius: 10px; background: rgb(var(--deep) / .25); border: 1px solid var(--stroke); font-size: .7rem; }
.hw-hs i { flex: none; width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .6rem; background: var(--glass-2); color: var(--muted); }
.hw-hs b { color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hw-hs small { margin-inline-start: auto; font-weight: 700; color: var(--faint); }
.hw-hs.p0 { background: rgb(var(--ac) / .22); border-color: rgb(var(--ac) / .6); } .hw-hs.p0 b { color: var(--text); } .hw-hs.p0 small { color: var(--orange-text); } .hw-hs.p0 i { background: var(--orange); color: var(--on-ac); }
.hw-hs.p1 { background: rgb(var(--se) / .2); border-color: rgb(var(--se) / .6); } .hw-hs.p1 b { color: var(--text); } .hw-hs.p1 small { color: var(--mint); } .hw-hs.p1 i { background: var(--sea); color: var(--on-sea); }
.hw-trap { justify-self: center; padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: .78rem; color: var(--orange-text); background: rgb(var(--ac) / .14); border: 1px solid var(--orange); animation: hwPulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hdemo.shake .hd-slots, .hd-slot.on, .hw-trap { animation: none; } }
@media (min-width: 1000px) { .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* 3.49.2: الألعاب الثلاث في صف واحد */

/* =====================================================================
   دحوم (3.50): مساعد المشرفين. الشكل المعتمد «دحوم: الشكل» (3 نوفمبر):
   - الرمز «د.» بقلم تريبلا، والنقطة هي التنبيه: بحري = ما فيه جديد، مرجاني أكبر = عنده شي لك، مرجاني بحلقة = تنبيه مهم، وتنط وهو يشتغل.
   - الزر العائم 60px، زوايا 18، تحت يسار. النافذة ~400px على اليسار (القائمة على اليمين تبقى ظاهرة)، وملء الشاشة على الجوال.
   - فقاعات دحوم يمين (--dh-soft)، وفقاعات المشرف يسار (--dh-me). المعاينة «قبل ما أطبّق» قبل أي تعديل، والنجاح فقاعة خضراء.
   ===================================================================== */
:root body[data-page="admin"] { --dh-tile: #1E3352; --dh-line: #33496A; --dh-ink: #FFF8F0; --dh-soft: #1B2C45; --dh-me: #123241; --dh-coral: #FF6B6F; --dh-sea: #38A8BA;
  --dh-green-bg: #12332B; --dh-green: #7FDDB0; --dh-red-bg: #3A1C25; --dh-red: #FF8A8E; --dh-amber-bg: #3A2C16; --dh-amber: #F2B866; --dh-violet-bg: #2A2340; --dh-violet: #C9B8F2; }
:root[data-theme="light"] body[data-page="admin"] { --dh-tile: #1B2A41; --dh-line: #1B2A41; --dh-soft: #F3EBE0; --dh-me: #EEF6F7; --dh-coral: #FF6B6F; --dh-sea: #38A8BA;
  --dh-green-bg: #E6F3F0; --dh-green: #1F6B4E; --dh-red-bg: #FFF1EF; --dh-red: #B42830; --dh-amber-bg: #FFF6E6; --dh-amber: #8A5200; --dh-violet-bg: #F3EFF8; --dh-violet: #4E3A77; }
.dh-mark .dh-tile { fill: var(--dh-tile); }
.dh-mark .dh-ink { stroke: #FFF8F0; }
.dh-mark .dh-dot { fill: var(--dh-coral); }
.dh-mark .dh-ring { fill: var(--dh-coral); opacity: .25; }
.dh-fab { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 60; width: 60px; height: 60px; padding: 0; border-radius: 18px; border: 1px solid var(--dh-line); background: var(--dh-tile); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / .35); transition: transform .15s ease; }
.dh-fab:hover { transform: translateY(-2px); }
.dh-fab { transition: transform .2s ease, opacity .2s ease; } .dh-fab.away { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; } /* 3.58.4: يختفي وأنت تنزل في الصفحة */
@media (prefers-reduced-motion: reduce) { .dh-fab { transition: none; } }
.dh-fab:focus-visible { outline: 3px solid var(--dh-sea); outline-offset: 3px; }
.dh-fab .dh-dot { fill: var(--dh-sea); }
.dh-fab.has .dh-dot, .dh-fab.crit .dh-dot { fill: var(--dh-coral); }
.dh-fab.crit { border-color: var(--dh-coral); box-shadow: 0 0 0 6px rgb(255 107 111 / .18), 0 8px 24px rgb(0 0 0 / .35); }
.dh-fab.busy .dh-dot { animation: dh-hop .9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dh-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px); } }
body.dh-on .dh-fab { display: none; }
.dh-panel { position: fixed; z-index: 61; inset-block: 56px 0; inset-inline-end: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--a-surf); color: var(--a-text); border-inline-start: 1px solid var(--a-line); box-shadow: 0 0 40px rgb(0 0 0 / .35); }
.dh-panel[hidden] { display: none; }
.dh-panel.full { width: min(1100px, 100vw); }
.dh-panel.drop { outline: 3px dashed var(--dh-sea); outline-offset: -8px; }
:root body.dh-on[data-page="admin"] .page.admin { margin-inline-end: 420px; }
:root body.dh-on.dh-wide[data-page="admin"] .page.admin { margin-inline-end: 0; }
.dh-head { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--a-line); }
.dh-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.dh-ht b { font-size: 17px; }
.dh-sub, .dh-here { font-size: 13px; color: var(--a-muted); }
.dh-here:empty { display: none; }
.dh-ib { width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--a-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.dh-ib:hover { background: var(--a-surf-2); color: var(--a-text); }
.dh-ib[aria-pressed="true"] { color: var(--a-text); border-color: var(--a-line-2); }
.dh-list { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.dh-msg { display: flex; gap: 10px; align-items: flex-start; }
.dh-msg.me { justify-content: flex-end; }
.dh-av { flex: 0 0 28px; }
.dh-b { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
.dh-msg.dh .dh-b { flex: 1; }
.dh-msg.dh .dh-b > p { margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--dh-soft); line-height: 1.7; font-size: 15px; align-self: flex-start; white-space: pre-line; }
.dh-msg.me .dh-b { max-width: 85%; }
.dh-msg.me .dh-b > p { margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--dh-me); line-height: 1.7; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.dh-msg .dh-b > p.dh-red { display: flex; gap: 8px; align-items: flex-start; background: var(--dh-red-bg); }
.dh-msg .dh-b > p.dh-red svg { color: var(--dh-red); flex: 0 0 20px; margin-top: 3px; }
.dh-msg .dh-b > p.dh-err { background: var(--dh-red-bg); color: var(--a-text); }
.dh-card { background: var(--a-bg); border: 1px solid var(--a-line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dh-card > p { margin: 0; }
.dh-cap { font-size: 13px; font-weight: 600; color: var(--a-muted); }
.dh-pr { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.dh-pr .chip { background: var(--dh-amber-bg); color: var(--dh-amber); border: 0; white-space: nowrap; }
.dh-pr > span:first-child { flex: 0 0 auto; }
/* (3.51) قيمة طويلة (المسيرة، الألقاب): تنلف داخل البطاقة بدل ما تطلع برا */
.dh-pr .chip { white-space: normal; min-width: 0; max-width: 65%; text-align: start; overflow-wrap: anywhere; line-height: 1.5; }
.dh-pr.dh-long { flex-direction: column; align-items: flex-start; }
.dh-pr.dh-long .chip { max-width: 100%; }
.dh-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dh-row .btn.sm { min-height: 40px; }
.dh-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--a-line-2); background: var(--a-surf); color: var(--a-text); text-align: start; cursor: pointer; font: inherit; width: 100%; }
.dh-opt:hover:not([disabled]) { border-color: var(--dh-sea); }
.dh-opt[disabled] { opacity: .6; cursor: default; }
.dh-opt[hidden] { display: none; }
.dh-opt > small { margin-inline-start: auto; }
.dh-on { flex: 0 0 26px; height: 26px; border-radius: 99px; background: var(--a-surf-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.dh-ol { display: flex; flex-direction: column; min-width: 0; }
.dh-ol small { color: var(--a-muted); font-size: 13px; overflow-wrap: anywhere; }
.dh-done { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 16px; background: var(--dh-green-bg); align-self: flex-start; }
.dh-ok { display: flex; align-items: center; gap: 8px; }
.dh-ok svg { color: var(--dh-green); flex: 0 0 18px; }
.dh-name .dh-nm { display: flex; flex-direction: column; }
.dh-name .dh-nm b { font-size: 16px; }
.dh-name .dh-nm span { color: var(--a-muted); font-size: 14px; }
.dh-tbl { overflow-x: auto; border: 1px solid var(--a-line); border-radius: 12px; }
.dh-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dh-tbl th { font-size: 13px; font-weight: 600; color: var(--a-muted); text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.dh-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--a-line); }
.dh-tbl tr:last-child td { border-bottom: 0; }
.dh-sum { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--a-line); border-radius: 16px; padding: 10px; }
.dh-sumi { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0; color: var(--a-text); font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; }
.dh-sumi.tone-red { background: var(--dh-red-bg); } .dh-sumi.tone-red b { color: var(--dh-red); }
.dh-sumi.tone-amber { background: var(--dh-amber-bg); } .dh-sumi.tone-amber b { color: var(--dh-amber); }
.dh-sumi.tone-violet { background: var(--dh-violet-bg); } .dh-sumi.tone-violet b { color: var(--dh-violet); }
.dh-sugs { display: flex; flex-wrap: wrap; gap: 8px; padding-inline-start: 38px; }
.dh-sug { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--a-line-2); background: transparent; color: var(--a-text); font-weight: 500; font-size: 14px; font-family: inherit; cursor: pointer; }
.dh-sug:hover { border-color: var(--dh-sea); }
.dh-ex { display: grid; gap: 6px; }
.dh-exi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-surf); color: var(--a-text); font: inherit; text-align: start; cursor: pointer; }
.dh-exi span { font-size: 13px; color: var(--a-muted); }
.dh-steps { margin: 0; padding-inline-start: 20px; font-size: 14px; }
.dh-chip { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 6px 10px; border-radius: 10px; background: var(--a-surf-2); font-size: 13px; }
.dh-chip[hidden] { display: none; }
.dh-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-x { width: 28px; height: 28px; border: 0; background: transparent; color: var(--a-muted); cursor: pointer; font-size: 18px; border-radius: 8px; }
.dh-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 16px; border-top: 1px solid var(--a-line); }
.dh-lab { flex: 1; display: block; min-width: 0; }
.dh-in { width: 100%; box-sizing: border-box; resize: none; border-radius: 14px; border: 1px solid var(--a-line-2); background: var(--a-bg); color: var(--a-text); padding: 10px 12px; font-size: 15px; line-height: 1.6; font-family: inherit; }
.dh-in:focus { outline: 2px solid var(--dh-sea); outline-offset: 1px; }
.dh-send { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; border: 0; background: #FF6B6F; color: #1B2A41; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dh-send[disabled] { opacity: .55; }
.dh-typing { display: inline-flex; gap: 5px; align-items: center; }
.dh-typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--a-muted); animation: dh-blink 1s infinite ease-in-out; }
.dh-typing i:nth-child(2) { animation-delay: .15s; } .dh-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dh-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.chip.dh-via { margin-inline-start: 8px; background: var(--a-sea-bg); color: var(--a-sea); border: 0; font-size: 11px; vertical-align: middle; }
.dh-reft, .dh-teach { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.dh-reft { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 760px) {
  .dh-fab { inset-inline-end: 16px; bottom: 16px; }
  .dh-panel, .dh-panel.full { inset-block: 0; width: 100vw; border: 0; }
  :root body.dh-on[data-page="admin"] .page.admin { margin-inline-end: 0; }
  body.dh-on { overflow: hidden; }
  .dh-reft, .dh-teach { grid-template-columns: 1fr; }
  .dh-row .btn.sm, .dh-ib { min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .dh-fab.busy .dh-dot, .dh-typing i { animation: none; } .dh-fab { transition: none; } }
.dh-list2 { display: flex; flex-direction: column; border: 1px solid var(--a-line); border-radius: var(--ar); overflow: hidden; }
.dh-li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--a-line); min-height: 44px; }
.dh-li:last-child { border-bottom: 0; }
.dh-li.col { flex-direction: column; align-items: flex-start; gap: 2px; }
.dh-li.dh-reft, .dh-li.dh-teach { display: grid; }
@media (max-width: 760px) { .dh-li.dh-reft, .dh-li.dh-teach { grid-template-columns: 1fr; } }

/* 3.54: شريط «جارٍ العمل» فوق الصفحة لأي عملية تطول (الرفع، الاعتماد، الفحص) */
#busybar { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; background: linear-gradient(90deg, transparent, var(--orange), transparent); background-size: 40% 100%; background-repeat: no-repeat; }
#busybar.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { #busybar.on { animation: busyslide 1.1s ease-in-out infinite; } @keyframes busyslide { from { background-position: -40% 0; } to { background-position: 140% 0; } } }
@media (prefers-reduced-motion: reduce) { #busybar.on { background: var(--orange); opacity: .6; } }

/* 3.58.0 أيقونات الأسئلة والشعارات والأعلام. المقاس ثابت (--qz) فما تتحرك الصفحة لما يوصل الشعار */
:root { --tri-accent: var(--orange); }
:root[data-theme="light"] { --tri-accent: var(--orange-text); } /* 2.1: درجة النص الغامقة بالنهاري (بدل #E8424A القديم) */
.qi-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.qi { --qz: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: var(--qz); height: var(--qz); flex: none; color: var(--text); vertical-align: middle; line-height: 0; }
.qi.pair { width: calc(var(--qz) * 2 + 2px); }
.qi-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.qs { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qs .qa { stroke: var(--tri-accent); }
.qs .qaf { fill: var(--tri-accent); stroke: none; }
.qi-svg .qt { fill: var(--tri-accent); stroke: none; font: 700 11px var(--display); }
.qi-svg .qt.big { font-size: 19px; } .qi-svg .qt.sm { font-size: 9px; }
.qi-logo { display: block; width: 100%; height: 100%; background-color: currentColor; -webkit-mask: var(--qm) center / contain no-repeat; mask: var(--qm) center / contain no-repeat; }
.qi.pair { flex-direction: row; flex-wrap: nowrap; } .qi.pair .qi-logo { width: calc(50% - 1px); height: 100%; flex: none; } /* ناديان: الشعاران جنب بعض داخل نفس المربع */
/* 3.58.3 (بيتار): الأعلام صارت ملفات بلون واحد (public/flags، من tools/flags-mono) وتتلوّن بنفس قناع الشعار */
@media (prefers-reduced-motion: no-preference) {
  .qi-logo.fade { animation: qiIn .2s ease both; } @keyframes qiIn { from { opacity: 0; } to { opacity: 1; } }
}
:root { --qi-g: 32px; } /* 3.58.2 (بيتار: «الكلام أكبر من الأيقونات»): 32 في الألعاب الثلاث والهيرو */
.crit .qi-head { width: var(--qi-g) !important; height: var(--qi-g) !important; margin-bottom: 3px; }
.crit .qi-head.pair { width: calc(var(--qi-g) * 2 + 2px) !important; }
.fpc .qi-fp { width: var(--qi-g) !important; height: var(--qi-g) !important; margin-bottom: 3px; }
.fpc .qi-fp.pair { width: calc(var(--qi-g) * 2 + 2px) !important; }
.fpc.own .qi-fp { opacity: .7; }
.fh-qrow { display: flex; align-items: center; gap: 10px; } .fh-qrow .qtext { margin: 0; min-width: 0; }
.fh-q .qi-fh { width: 32px !important; height: 32px !important; }
.fh-slot .qi-ans { width: 32px !important; height: 32px !important; }
.fh-slot .nmrow { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .fh-slot .nmrow .nm { min-width: 0; }
@media (min-width: 768px) { .fh-slot .nmrow { margin-top: 24px; } .fh-slot .nmrow .nm { margin-top: 0; } }
/* 3.58.2: على الجوال الخانة ضيّقة على علم 32 جنب الاسم، فالعلم فوق الاسم والاسم ما ينكسر في نص الكلمة */
@media (max-width: 480px) { .fh-slot .nmrow { flex-direction: column; align-items: flex-start; gap: 3px; } .fh-slot .nmrow .nm { overflow-wrap: break-word; } }
.fh-item-list { display: flex; flex-direction: column; gap: 4px; } .fh-item-list:empty { display: none; }
.fh-item-opt { display: flex; align-items: center; gap: 8px; text-align: start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text); font: inherit; cursor: pointer; }
.fh-item-opt:hover, .fh-item-opt:focus-visible { border-color: var(--orange); }
.fh-item-cur { align-items: center; gap: 8px; }
/* 3.58.0 الشعارات في اللوحة */
.logo-thumb { width: 28px; height: 28px; border-radius: 8px; background: #1B2A41; padding: 3px; flex: none; object-fit: contain; }
.logo-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logo-tile { border-radius: 14px; border: 1px solid var(--stroke); min-height: 96px; display: grid; place-items: center; gap: 4px; padding: 12px; }
.logo-tile .qi-logo { width: 56px; height: 56px; }
.logo-tile.night { background: #0E1A2C; color: #FFF8F0; } .logo-tile.day { background: #FFF8F0; color: #1B2A41; }
.logo-tile small { font-size: .72rem; opacity: .75; } .logo-tile .muted { color: inherit; opacity: .6; }
.lg-t td:first-child { overflow-wrap: anywhere; } .lg-t select { max-width: 100%; } .lg-it { gap: 6px; align-items: center; }
.lg-miss td:nth-child(3), .lg-miss td:nth-child(4) { white-space: nowrap; width: 1%; }
.logo-run { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 80; max-width: 420px; margin-inline: auto; background: var(--solid-bg, #15233A); color: #FFF8F0; border: 1px solid var(--stroke); border-radius: 14px; padding: 10px 14px; display: grid; gap: 6px; font-size: .85rem; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }
.logo-run > i { display: block; height: 6px; border-radius: 99px; background: rgb(255 255 255 / .15); overflow: hidden; } .logo-run > i > i { display: block; height: 100%; width: calc(var(--f, 0) * 1%); background: #FF6B6F; border-radius: inherit; transition: width .2s ease; }
/* 3.58.4: خيارات «بدون شعار» الأربعة: صف واحد على الشاشة العريضة، و2×2 على الجوال (كانت تلتف بشكل غير متساوٍ) */
.seg.lg-mt { display: grid; grid-template-columns: repeat(4, auto); border-radius: 18px; }
.seg.lg-st { align-self: flex-start; }
.lg-star { font-size: .72rem; padding: 0 8px; }
@media (max-width: 720px) { .seg.lg-mt { grid-template-columns: 1fr 1fr; width: 100%; } .seg.lg-mt button { white-space: normal; text-align: center; } }
/* 3.58.4: مربع ناديين (بالإنجليزي أطول، «Inter Milan + Manchester United»): 4 أسطر بخط أصغر شوي بدل ما ينقص الاسم */
.fpc:has(.qi.pair) .fpc-l { -webkit-line-clamp: 4; font-size: clamp(.6rem, .6vw + .4rem, .86rem); line-height: 1.15; }
/* 3.58.4: على 390 بالإنجليزي صفوف التبويب («FootNine FootPress FootHunt») كانت تلمس طرف الشاشة: أضيق شوي ولا تتعدى العرض */
@media (max-width: 420px) { .stage-tabs, .how-tabs { max-width: 100%; gap: 2px; } .st-tab { padding: 7px 10px 7px 8px; font-size: .84rem; gap: 6px; } .how-tab { padding: 8px 11px; gap: 6px; } }
@media (max-width: 480px) { .fpc:has(.qi.pair) .fpc-l { font-size: .58rem; line-height: 1.1; } .fpc:has(.qi.pair) .qi-fp { margin-bottom: 1px; } }
/* 3.58.5: أيقونات رسومات «تتعلّمها في دقيقة» (رسمة مصغّرة، فالأيقونة 20 بدل 32، وسؤال فوتهانت 24) */
.qi-hw { width: 20px !important; height: 20px !important; flex: none; }
.hw-chip.with-qi { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.hw-clues .hw-chip.with-qi { flex-direction: row; gap: 6px; }
.hw-hqrow { display: flex; align-items: center; gap: 8px; min-width: 0; } .hw-hqrow .qi-hw { width: 24px !important; height: 24px !important; }
.hw-hs .qi-hw { margin-inline-end: 2px; }
.hw-sq .qi-hw { margin-bottom: 2px; }
.hw-board .qi-hw { width: 16px !important; height: 16px !important; }

/* فحص اللوحة 10 نوفمبر (3.58.6) */
/* زر دحوم ما يطلع فوق النوافذ */
body:has(> .veil) .dh-fab { display: none; }
/* صفوف اللوحة: عمود واحد دايمًا، فالترتيب ينقرا من فوق لتحت (بيتار: لا شبكة بعمودين تنقرا متعرجة) */
:root body[data-page="admin"] .ad-main .list, :root body[data-page="admin"] .ad-main .list.two, :root body[data-page="admin"] .list:has(> .rep) { display: flex; flex-direction: column; gap: 10px; }
:root body[data-page="admin"] .ad-main .list, :root body[data-page="admin"] .ad-main .list.two { align-items: stretch; max-width: none; width: 100%; }
:root body[data-page="admin"] .ad-main .list > * { height: auto; width: 100%; max-width: none; }
/* بطاقات الأرقام: صف واحد على الشاشة العريضة، بدون آخر بطاقة ممدودة لحالها */
:root body[data-page="admin"] .ad-main .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 900px) { :root body[data-page="admin"] .ad-main .kpis { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; } :root body[data-page="admin"] .ad-main .kpis:has(> :nth-child(7)) { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { :root body[data-page="admin"] .ad-main .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:root body[data-page="admin"] .ad-main .kpis > * { flex: none; }
/* الجوال: أهداف اللمس 40px على الأقل */
@media (max-width: 760px) {
  :root body[data-page="admin"] .sheet-x { width: 40px; height: 40px; }
  :root body[data-page="admin"] .ad-main input[type="search"], :root body[data-page="admin"] .ad-main input[type="text"], :root body[data-page="admin"] .ad-main select, :root body[data-page="admin"] .sheet input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { min-height: 40px; }
  :root body[data-page="admin"] .star-btn, :root body[data-page="admin"] .q-x { min-width: 40px; min-height: 40px; }
  :root body[data-page="admin"] .linkish { display: inline-flex; align-items: center; min-height: 40px; }
  :root body[data-page="admin"] .sw { position: relative; } :root body[data-page="admin"] .sw::after { content: ''; position: absolute; inset: -8px; }
}
/* اختيار نوع الرفع (خمسة أنواع): صف واحد على العريض، وعلى الضيق آخر واحد ياخذ العرض كله بدل ما يبقى يتيم */
.up-kinds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
@media (max-width: 700px) { .up-kinds > :last-child:nth-child(odd), .up-flow > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* صف التبويبات على الجوال ينلف لسطرين بدل ما يختفي آخر تبويب عند الحافة بدون أي إشارة */
@media (max-width: 560px) { .ad-tabs { flex-wrap: wrap; overflow-x: visible; } .ad-tabs button { padding: 0 10px; font-size: 14px; } }
/* أسئلة فوتهانت على الجوال: كل سؤال بطاقة (النص بعرض كامل، والأرقام سطر تحته، والأزرار ظاهرة) بدل جدول يحتاج سحب */
@media (max-width: 560px) {
  .fh-table thead { display: none; }
  .fh-table, .fh-table tbody, .fh-table tr { display: block; width: 100%; }
  .fh-table tr { padding: 12px 0; border-bottom: 1px solid var(--stroke); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .fh-table td { display: block; border: 0; padding: 0; }
  .fh-table td:first-child { flex: 1 1 100%; }
  .fh-table td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: .85em; }
  .fh-table td.fh-acts { flex: 1 1 100%; display: flex; gap: 8px; } .fh-table td.fh-acts .btn { flex: 1; min-height: 40px; }
}

/* 3.59: Arabic and English layout */
[dir="rtl"] .tb-fill { background: linear-gradient(270deg, rgb(var(--ac) / .28), rgb(var(--ac) / .14)); }
[dir="rtl"] .timer-bar.local.p1 .tb-fill { background: linear-gradient(270deg, rgb(var(--se) / .3), rgb(var(--se) / .14)); }
[dir="rtl"] .timer-bar.low .tb-fill { background: linear-gradient(270deg, rgb(var(--ac) / .55), rgb(var(--ac) / .3)); }
[dir="rtl"] .fp-prog i { background: linear-gradient(270deg, var(--orange), var(--sea)); }
[dir="rtl"] .mission .bd-track i { background: linear-gradient(270deg, var(--sea), #3FB8CC); }
[dir="rtl"] .mission.done .bd-track i { background: linear-gradient(270deg, var(--flame), var(--orange)); }
[dir="rtl"] .month-dots i.on { background: linear-gradient(270deg, var(--flame), var(--orange)); }
[dir="rtl"] .sp-goal .bd-track i { background: linear-gradient(270deg, var(--flame), var(--orange)); }
[dir="rtl"] .bd-track.funnel i { background: linear-gradient(270deg, var(--orange), var(--flame)); }
.code::placeholder, .gift-input::placeholder { letter-spacing: normal; }
[dir="ltr"] .fpc-l { font-size: clamp(.6rem, .62vw + .4rem, .84rem); -webkit-line-clamp: 4; }
[dir="ltr"] .hd-slot b { font-size: .76rem; } @media (max-width: 420px) { [dir="ltr"] .hd-slot b { font-size: .66rem; letter-spacing: -.01em; } }
[dir="ltr"] .res-score span { padding: 4px 10px; font-size: .84rem; } [dir="ltr"] .res-foot { font-size: .84rem; }
bdi.ltr { unicode-bidi: isolate; direction: ltr; }
[dir="rtl"] .item.unread, [dir="rtl"] .inbox-item.unread, [dir="rtl"] .tx-row.pending { box-shadow: inset -3px 0 0 var(--orange); }
:root[dir="ltr"] body[data-page="admin"] .item.unread { box-shadow: inset 3px 0 0 var(--a-acc); }
:root[dir="ltr"] body[data-page="admin"] .tx-row.pending { box-shadow: inset 3px 0 0 var(--a-acc); }
/* 3.60: skeleton loading */
.sk-wrap { display: flex; flex-direction: column; gap: 16px; }
.sk-head { display: flex; flex-direction: column; gap: 10px; padding-block: 8px 4px; }
.sk { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, rgb(var(--ov) / .07) 0%, rgb(var(--ov) / .14) 50%, rgb(var(--ov) / .07) 100%); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
.sk.sm { height: 10px; } .sk.big { height: 22px; } .sk.btn { height: 40px; border-radius: 12px; margin-top: auto; } .sk.av { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.sk.w20 { width: 20%; } .sk.w25 { width: 25%; } .sk.w35 { width: 35%; } .sk.w40 { width: 40%; } .sk.w45 { width: 45%; } .sk.w50 { width: 50%; } .sk.w60 { width: 60%; } .sk.w65 { width: 65%; } .sk.w70 { width: 70%; } .sk.w80 { width: 80%; }
.sk-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--glass); }
.sk-card.tall { min-height: 220px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sk-row { display: flex; align-items: center; gap: 12px; padding-block: 6px; } .sk-col { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
[dir="rtl"] .sk { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
/* 3.60: الأقسام تحت أول شاشة في الرئيسية ما تنرسم (ولا تمشي حركاتها) لين يقرب لها اللاعب */
body[data-page="home"] .section:not(.games-sec) { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.foot-slot > footer { content-visibility: auto; contain-intrinsic-size: auto 360px; }
/* 3.60: القوائم الطويلة (اللاعبين، القاموس، السجل، الطلبات): الصف البعيد عن الشاشة ما ينرسم لين يقرب له (virtualization من المتصفح نفسه، بدون ما يتغير ترتيب أو بحث) */
body[data-page="admin"] .list > .item, body[data-page="admin"] .tbl-r, .tx-row { content-visibility: auto; contain-intrinsic-size: auto 72px; }
.bubble.sending { opacity: .6; } .bubble.sending .at { visibility: hidden; }
/* 3.63.0: زر Google في الدخول والتسجيل */
.social-auth { display: flex; flex-direction: column; gap: 12px; }
.gsi-slot { display: flex; justify-content: center; min-height: 44px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .86rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

/* 3.65 «أوراقك الرابحة»: أوراق لعب زجاجية تنقلب بالضغط. الحالة الأساسية لكل مشهد هي آخر حركته (تقليل الحركة يقف عليها) */
.helps-sec { --hd: -1; --hc-w: 286px; --hc-h: 420px; } [dir="ltr"] .helps-sec { --hd: 1; }
.helps-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 4vw, 32px)); padding: 6px clamp(16px, 4vw, 32px) 16px; scroll-padding-inline: clamp(16px, 4vw, 32px); }
.helps-row::-webkit-scrollbar { display: none; }
.hc { position: relative; flex: none; width: var(--hc-w); min-height: var(--hc-h); display: flex; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; perspective: 1400px; scroll-snap-align: start; border-radius: 30px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); -webkit-tap-highlight-color: transparent; }
.hc:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 4px; }
.hc-in { flex: 1; min-width: 0; display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.hc[aria-pressed="true"] .hc-in { transform: rotateY(180deg); }
.hc-face { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-radius: 30px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 1px solid var(--stroke); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 rgb(var(--ov) / .12), 0 18px 40px -22px rgb(0 0 0 / .6); }
:root[data-theme="light"] .hc-face { box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 18px 40px -22px rgb(27 42 65 / .28); }
.hc-front { padding: 12px 12px 16px; }
.hc-back { position: relative; transform: rotateY(180deg); padding: 22px 20px 18px; background: rgb(var(--ac) / .14); border-color: rgb(var(--ac) / .45); }
:root[data-theme="light"] .hc-back { background: linear-gradient(rgb(var(--ac) / .12), rgb(var(--ac) / .12)), rgb(255 255 255 / .8); }
.hc-back::after { content: ''; position: absolute; inset-block-end: 12px; inset-inline-end: 14px; width: 96px; height: 30px; opacity: .14; pointer-events: none; background: radial-gradient(circle at 16px 15px, var(--orange) 14px, transparent 15px), radial-gradient(circle at 48px 15px, var(--orange) 14px, transparent 15px), radial-gradient(circle at 80px 15px, var(--orange) 14px, transparent 15px); }
.hc-txt { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding-inline: 6px; }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-nm { font-size: 22px; font-weight: 700; line-height: 1.25; min-width: 0; } .hc-nm.lg { font-size: 26px; }
.hc-cnt { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.hc-cnt i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgb(var(--ac) / .6); }
.hc-chip { height: 24px; padding-inline: 10px; border-radius: 12px; display: inline-flex; align-items: center; background: rgb(var(--se) / .18); color: var(--mint); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hc-rule { font-size: 15px; line-height: 1.55; color: var(--muted); }
.hc-flip { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--orange-text); white-space: nowrap; } .hc-flip svg { width: 16px; height: 16px; flex: none; }
.hc-back .hc-flip { color: var(--muted); }
.hc-q { font-size: 13px; font-weight: 700; color: var(--orange-text); white-space: nowrap; }
.hc-when { font-size: 18px; font-weight: 600; line-height: 1.55; }
.hc-sep { flex: none; height: 1px; background: var(--stroke); }
.hc-law { font-size: 14px; line-height: 1.6; color: var(--muted); } .hc-law b { display: block; font-size: 12px; margin-bottom: 2px; }
.helps-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; } .helps-foot .muted { font-size: .9rem; }
@media (min-width: 900px) {
  .helps-sec { --hc-w: 320px; --hc-h: 452px; }
  .helps-row { justify-content: center; gap: 26px; overflow: visible; margin-inline: 0; padding: 28px 0 22px; }
  .hc { flex: 0 1 var(--hc-w); min-width: 0; }
  .hc:nth-child(1) { transform: rotate(calc(var(--hd) * -5deg)) translateY(18px); } .hc:nth-child(2) { transform: translateY(-6px); } .hc:nth-child(3) { transform: rotate(calc(var(--hd) * 5deg)) translateY(18px); }
  .hc[aria-pressed="true"], .hc:focus-visible { transform: translateY(-14px); }
  .hc-when { font-size: 20px; }
}
@media (min-width: 900px) and (hover: hover) { .hc:hover { transform: translateY(-14px); } }

/* 3.65: تبويبات الألعاب الثلاث بالإنجليزي كانت تنقص «FootHunt» على 360 (هنا وفي «تتعلّمها في دقيقة») */
@media (max-width: 400px) { [dir="ltr"] .how-tab { padding: 8px 8px; gap: 5px; font-size: .84rem; } [dir="ltr"] .how-tab .gsym { width: 16px; height: 16px; } }

/* الشاشة الصغيرة: كحلية في الوضعين */
.hs { --text: #FFF8F0; position: relative; flex: none; height: 172px; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; color: #FFF8F0; font-size: 12px; line-height: 1.3; background: radial-gradient(80% 90% at 100% 0%, rgb(255 107 111 / .32), transparent 70%), radial-gradient(80% 90% at 0% 100%, rgb(56 168 186 / .28), transparent 70%), #13213A; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.hs-cap { font-weight: 600; opacity: .8; text-align: center; }
.hs-row3 { position: relative; display: flex; gap: 8px; direction: ltr; }
.hs-mc { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgb(255 107 111 / .22); border: 1px solid #FF6B6F; }
.hs-mk { grid-area: 1 / 1; width: 26px; height: 26px; fill: none; stroke-width: 4; stroke-linecap: round; } .hs-mk.x { stroke: #FF6B6F; } .hs-mk.o { stroke: #38A8BA; opacity: 0; }
.hs-mc.take::before { content: ''; position: absolute; inset: -1px; border-radius: 14px; background: #1B3A52; border: 1px solid #38A8BA; opacity: 0; }
.hs-mc.take .hs-mk { position: relative; }
.hs-line { position: absolute; top: 50%; left: 0; right: 0; height: 5px; margin-top: -2.5px; border-radius: 3px; background: #FF6B6F; box-shadow: 0 0 14px #FF6B6F; transform-origin: right; }
.hs-clue { position: relative; height: 40px; padding-inline: 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); font-size: 13px; font-weight: 700; white-space: nowrap; } .hs-clue em { font-style: normal; color: #FF8A8D; }
.hs-tap { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 2px solid #FFF8F0; opacity: 0; }
.hs-bub { align-self: stretch; margin-inline: 10px; padding: 10px 12px; border-radius: 14px; background: rgb(255 248 240 / .95); color: #1B2A41; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .6); display: flex; flex-direction: column; gap: 6px; } .hs-bub b { font-size: 12px; }
.hs-bub i { height: 6px; border-radius: 3px; background: rgb(27 42 65 / .18); width: 92%; } .hs-bub i + i { width: 64%; }
.hs-seg { position: relative; align-self: stretch; margin-inline: 6px; height: 52px; border-radius: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; text-align: center; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); font-size: 14px; font-weight: 700; }
.hs-seg span { position: relative; white-space: nowrap; }
.hs-on { position: absolute; inset-block: 5px; inset-inline-start: 5px; width: calc(50% - 7px); border-radius: 21px; background: rgb(255 107 111 / .28); border: 1px solid #FF6B6F; transform: translateX(calc(var(--hd) * (100% + 4px))); }
.hs-now { align-self: stretch; margin-inline: 6px; height: 72px; padding-inline: 12px; border-radius: 18px; display: flex; align-items: center; gap: 12px; overflow: hidden; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); }
.hs-ring { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; } .hs-ring svg, .hs-pz svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hs-ring .rb, .hs-pz .rb { fill: none; stroke: rgb(255 255 255 / .15); stroke-width: 5; } .hs-ring .rf { fill: none; stroke: #FF6B6F; stroke-width: 5; stroke-linecap: round; } .hs-ring b { position: relative; font-size: 15px; }
.hs-names { flex: 1; min-width: 0; display: grid; align-items: center; font-size: 17px; } .hs-names b { grid-area: 1 / 1; white-space: nowrap; } .hs-names .out { opacity: 0; }
.hs-tag { height: 26px; padding-inline: 12px; border-radius: 13px; display: inline-flex; align-items: center; background: rgb(255 107 111 / .22); color: #FF8A8D; font-weight: 700; white-space: nowrap; }
.hsc-joker { justify-content: flex-end; }
.hs-drop { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: center; opacity: 0; } .hs-drop b { height: 40px; padding-inline: 16px; border-radius: 20px; display: inline-flex; align-items: center; background: rgb(255 248 240 / .95); color: #1B2A41; font-size: 14px; }
.hs-sqs { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.hs-sq { position: relative; height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); font-weight: 700; white-space: nowrap; }
.hs-sq.hit { background: rgb(255 107 111 / .3); border-color: #FF6B6F; }
.hs-plus { position: absolute; top: -24px; left: 0; right: 0; text-align: center; font-size: 13px; color: #FF8A8D; }
.hs-pz { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; gap: 6px; } .hs-pz .rf { fill: none; stroke: #38A8BA; stroke-width: 5; stroke-linecap: round; }
.hs-pz i { position: relative; width: 8px; height: 26px; border-radius: 3px; background: #FFF8F0; }
.hsc-double { display: grid; place-items: center; } .hsc-double > * { grid-area: 1 / 1; }
.hs-n { font-size: 46px; font-variant-numeric: tabular-nums; line-height: 1; } .hs-n.a { opacity: 0; } .hs-n.b { font-size: 50px; color: #FF8A8D; text-shadow: 0 0 22px rgb(255 107 111 / .7); }
.hs-x2 { height: 54px; padding-inline: 16px; border-radius: 27px; display: flex; align-items: center; background: #FF6B6F; color: #1B2A41; font-size: 30px; box-shadow: 0 0 30px rgb(255 107 111 / .8); opacity: 0; }
.hs-pass { position: relative; width: 236px; max-width: 100%; height: 64px; display: flex; align-items: flex-end; justify-content: space-between; }
.hs-pill { height: 40px; padding-inline: 14px; border-radius: 20px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; white-space: nowrap; background: rgb(255 107 111 / .18); border: 1px solid rgb(255 107 111 / .7); } .hs-pill.t1 { background: rgb(56 168 186 / .18); border-color: rgb(56 168 186 / .7); }
.hs-ball { position: absolute; top: 0; inset-inline-start: 24px; width: 20px; height: 20px; border-radius: 50%; background: #FFF8F0; box-shadow: 0 0 14px rgb(255 248 240 / .8); transform: translateX(calc(var(--hd) * 168px)); }
.hs-rev { align-self: stretch; display: flex; flex-direction: column; gap: 5px; }
.hs-slot { height: 31px; padding-inline: 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #1F3150; border: 1px solid rgb(255 255 255 / .12); font-weight: 700; white-space: nowrap; } .hs-slot small { font-size: 12px; opacity: .65; }
@media (prefers-reduced-motion: no-preference) {
  .hs-mk.o { animation: hsStO 4s infinite; } .hs-mc.take .hs-mk.x { animation: hsStX 4s infinite; } .hs-mc.take::before { animation: hsStC 4s infinite; } .hs-line { animation: hsStL 4s infinite; }
  .hs-tap { animation: hsTap 3.6s infinite; } .hs-bub { animation: hsBub 3.6s infinite; }
  .hs-on { animation: hsSeg 3.6s infinite; }
  .hs-names .out { animation: hsSkA 3.6s infinite; } .hs-names .in { animation: hsSkB 3.6s infinite; }
  .hs-drop { animation: hsJkC 3.8s infinite; } .hs-sq.hit { animation: hsJkS 3.8s infinite; } .hs-plus { animation: hsPlus 3.8s infinite; }
  .hs-pz .rf { animation: hsPz 1.6s infinite; }
  .hs-n.a { animation: hsDbA 4s infinite; } .hs-x2 { animation: hsDbX 4s infinite; } .hs-n.b { animation: hsDbB 4s infinite; }
  .hs-ball { animation: hsBall 3.2s infinite; }
  .hs-slot { animation: hsRv 4.2s infinite backwards; } .hs-slot.d1 { animation-delay: .35s; } .hs-slot.d2 { animation-delay: .7s; } .hs-slot.d3 { animation-delay: 1.05s; }
  @keyframes hsStO { 0%, 38% { opacity: 1; transform: scale(1); } 46%, 100% { opacity: 0; transform: scale(.6); } }
  @keyframes hsStX { 0%, 42% { opacity: 0; transform: scale(1.4) rotate(-20deg); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes hsStC { 0%, 42% { opacity: 1; } 52%, 100% { opacity: 0; } }
  @keyframes hsStL { 0%, 55% { transform: scaleX(0); opacity: 0; } 65%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
  @keyframes hsTap { 0%, 20% { transform: scale(.4); opacity: 0; } 28% { opacity: .9; } 45%, 100% { transform: scale(1.8); opacity: 0; } }
  @keyframes hsBub { 0%, 30% { opacity: 0; transform: translateY(8px) scale(.96); } 40%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes hsSeg { 0%, 30% { transform: none; } 50%, 85% { transform: translateX(calc(var(--hd) * (100% + 4px))); } 100% { transform: none; } }
  @keyframes hsSkA { 0%, 35% { transform: none; opacity: 1; } 50%, 100% { transform: translateY(-46px); opacity: 0; } }
  @keyframes hsSkB { 0%, 40% { transform: translateY(46px); opacity: 0; } 55%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }
  @keyframes hsJkC { 0%, 25% { transform: none; opacity: 1; } 55% { transform: translateY(70px) scale(.7); opacity: .2; } 56%, 100% { transform: translateY(70px); opacity: 0; } }
  @keyframes hsJkS { 0%, 52% { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .14); } 60%, 92% { background: rgb(255 107 111 / .3); border-color: #FF6B6F; } 100% { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .14); } }
  @keyframes hsPlus { 0%, 58% { opacity: 0; transform: translateY(6px); } 66%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes hsPz { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
  @keyframes hsDbA { 0%, 30% { opacity: 1; transform: none; } 42%, 100% { opacity: 0; transform: scale(.8); } }
  @keyframes hsDbX { 0%, 28% { opacity: 0; transform: scale(.3) rotate(-12deg); } 38% { opacity: 1; transform: scale(1.2); } 48% { opacity: 1; transform: scale(1); } 56%, 100% { opacity: 0; transform: scale(1); } }
  @keyframes hsDbB { 0%, 52% { opacity: 0; transform: scale(.7); } 62%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
  @keyframes hsBall { 0%, 15% { transform: none; } 50% { transform: translate(calc(var(--hd) * 84px), -18px); } 85%, 100% { transform: translateX(calc(var(--hd) * 168px)); } }
  @keyframes hsRv { 0% { opacity: 0; transform: rotateX(90deg); } 12%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
}
