/* قالب «نيون» لكل الموقع، من تصميم Gemini (طلب علي 2026-11-11).
   يتحمل آخر شي في كل صفحة، ويغطي الأبيض والأزرق القديم في grid-theme.css.
   للرجوع للشكل القديم: شيل سطر هذا الملف من الصفحات. */
:root {
  --nx-bg: #140a33; --nx-bg-2: #1d0f47; --nx-panel: #22124f; --nx-panel-2: #2b1963;
  --nx-glass: rgba(255, 255, 255, .06); --nx-glass-2: rgba(255, 255, 255, .1); --nx-line: rgba(255, 255, 255, .14);
  --nx-text: #f5f3ff; --nx-muted: #b9b2dc; --nx-cyan: #22d3ee; --nx-blue: #3b82f6; --nx-purple: #a855f7; --nx-pink: #ec4899; --nx-gold: #facc15;
  --nx-grad: linear-gradient(90deg, #22d3ee, #3b82f6);
  /* متغيرات القالب القديم بألوان النيون، عشان أي مكان يستخدمها يتلون */
  --night: #140a33; --deep: #1d0f47; --panel: #22124f; --panel-2: #2b1963; --line: rgba(255, 255, 255, .14);
  --felt: rgba(255, 255, 255, .05); --felt-2: rgba(255, 255, 255, .09);
  --gold: #22d3ee; --gold-2: #06b6d4; --gold-soft: rgba(34, 211, 238, .14); --amber: #22d3ee;
  --ink: #f5f3ff; --muted: #b9b2dc; --green: #4ade80; --red: #f43f5e;
  --tile-shadow: 0 14px 30px -20px rgba(0, 0, 0, .85);
  --float-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  color-scheme: dark;
}

/* ===== الخلفية ===== */
html, body, body:has(> header.bar) {
  background:
    radial-gradient(circle at 12% 18%, rgba(236, 72, 153, .55) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 12%, rgba(34, 211, 238, .6) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 64%, rgba(250, 204, 21, .5) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 78%, rgba(168, 85, 247, .6) 0 2px, transparent 3px),
    radial-gradient(circle at 48% 36%, rgba(255, 255, 255, .35) 0 1.5px, transparent 2.5px),
    radial-gradient(ellipse at 50% -10%, #3b1d8f 0, transparent 60%),
    linear-gradient(180deg, var(--nx-bg-2), var(--nx-bg)) !important;
  background-attachment: fixed !important;
  color: var(--nx-text);
}
:focus-visible, .online-now:focus-visible, .copy-link:focus-visible, .player-chip:focus-visible { outline-color: var(--nx-cyan); }
::selection { background: rgba(168, 85, 247, .5); color: #fff; }
h1, h2, h3, h4, .lead, .panel p, .big, .entry-label { color: var(--nx-text) !important; }
p, small { color: inherit; }
a { color: var(--nx-cyan); }

/* ===== الشريط العلوي ===== */
.site-bar, .bar { background: rgba(20, 10, 51, .78); border-bottom: 1px solid var(--nx-line); color: var(--nx-text); backdrop-filter: blur(14px); }
.site-bar .logo { color: var(--nx-text); }
.site-bar .logo-mark { background: linear-gradient(135deg, var(--nx-pink), var(--nx-purple)); color: #fff; box-shadow: 0 0 14px rgba(236, 72, 153, .6); }
.admin-open, .site-bar .site-nav > a, .site-bar .copy-link, .site-bar .site-nav .score-menu-btn, .site-bar .online-now,
.site-bar .btn, .site-bar .btn.small, .bar-btn, .score-menu-btn.big, .site-back, .back-btn {
  border: 1px solid var(--nx-line); background: var(--nx-glass); color: var(--nx-text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-bar .site-nav > a { border-color: rgba(236, 72, 153, .7); box-shadow: 0 0 10px rgba(236, 72, 153, .35); }
@media (hover: hover) {
  .admin-open:hover, .site-bar .site-nav > a:hover, .site-bar .copy-link:hover, .site-bar .site-nav .score-menu-btn:hover, .site-bar .online-now:hover,
  .site-bar .btn:hover, .bar-btn:hover, .score-menu-btn.big:hover {
    border-color: var(--nx-cyan); background: rgba(34, 211, 238, .12); color: #fff; box-shadow: 0 0 14px rgba(34, 211, 238, .45);
  }
  .site-bar .online-now:hover b { color: var(--nx-green, #4ade80); }
}
.site-bar .site-nav > a:active, .site-bar .copy-link:active, .site-bar .site-nav .score-menu-btn:active, .site-bar .online-now:active, .site-bar .btn:active,
.site-bar .site-nav .score-menu-btn[aria-expanded="true"], .site-bar .online-now[aria-expanded="true"] { border-color: var(--nx-cyan); background: rgba(34, 211, 238, .16); color: #fff; }
.site-bar .online-now b, .site-bar .online-now.owner-view > .wide-only { color: #4ade80; }
.site-bar .online-now i { background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* ===== الأزرار ===== */
.btn { border: 1px solid var(--nx-line); background: var(--nx-glass); color: var(--nx-text); }
.btn:hover { border-color: var(--nx-cyan); background: rgba(34, 211, 238, .12); color: #fff; }
.btn.primary, .action.start, .action.start:hover:not(:disabled), .chat-room, .chat-copy, .chat-invite, .invite-box #inviteSend:not(:disabled),
.score-popup .close, .admin-edit, #inviteBanner a {
  border: 0 !important; background: var(--nx-grad) !important; color: #06122a !important; box-shadow: 0 0 16px rgba(34, 211, 238, .4);
}
.btn.primary:hover, .action.start:hover:not(:disabled) { background: linear-gradient(90deg, #67e8f9, #60a5fa) !important; color: #06122a !important; box-shadow: 0 0 24px rgba(34, 211, 238, .65); }
.btn.primary:disabled, .chat-room:disabled { background: var(--nx-glass-2) !important; color: var(--nx-muted) !important; box-shadow: none; }
.btn.admin-danger, .btn.danger, .chat-kick, .score-kick:hover, .score-kick:focus-visible { border: 0; background: linear-gradient(90deg, #f43f5e, #ec4899); color: #fff; }
.action.stop, .action.stop:hover:not(:disabled), .end.yes, .admin-remove { border: 1px solid var(--nx-line); background: #0b0620; color: #fff; }
.chip, .topic-button, .action, .copy, .end, .room-link, .chat-close, .chat-back, .chat-enter, .score-kick, .invite-list label, .admin-games label, .admin-room-game,
.avatar-pick-btn, .chat-offline, a.chat-invite { border: 1px solid var(--nx-line) !important; background: var(--nx-glass) !important; color: var(--nx-text) !important; }
.chip:hover:not(:disabled), .action:hover:not(:disabled), .copy:hover, .end:hover:not(:disabled), .admin-room-game:hover { border-color: var(--nx-cyan) !important; background: rgba(34, 211, 238, .12) !important; }
.chip[aria-pressed="true"], .chip.easy[aria-pressed="true"], .chip.medium[aria-pressed="true"], .chip.hard[aria-pressed="true"],
.admin-games label:has(input:checked), .invite-list label:has(input:checked) {
  border-color: var(--nx-cyan) !important; background: rgba(34, 211, 238, .2) !important; color: #fff !important; box-shadow: 0 0 12px rgba(34, 211, 238, .4);
}

/* ===== القوائم والنوافذ ===== */
.online-panel, .score-menu-list, .avatar-panel, .topic-menu, body .site-menu,
.admin-dialog, .welcome, .room-dialog, dialog.score-popup, .chat-dialog, #inviteBanner {
  border: 1px solid var(--nx-line) !important; background: linear-gradient(160deg, #2a175f, #1a0d40) !important; color: var(--nx-text) !important;
  box-shadow: var(--float-shadow), 0 0 30px rgba(168, 85, 247, .25) !important;
}
.admin-dialog::backdrop, .welcome::backdrop, .room-dialog::backdrop, dialog.score-popup::backdrop, .chat-dialog::backdrop { background: rgba(8, 3, 25, .65); backdrop-filter: blur(5px); }
.online-title, .online-panel small, .welcome p, .admin-step label[for], .admin-codes p:not(.admin-msg), .avatar-panel p, .chat-head h2, .chat-with, .chat-online,
#adminCodeList .admin-code-who, .topic-row, .score-row, .score-face, #inviteBanner, #inviteBanner button { color: var(--nx-text) !important; }
.online-notes, .admin-games small, .invite-list p, .room-tile small, .score-title, .score-rank, .score-num, .score-wrong, #adminCodeList .admin-code-who b,
.score-popup > p, .visitors, .scores-empty, .arena-scores-empty, .attempt-who small, .podium-col .rank-stats { color: var(--nx-muted) !important; }
.score-menu-list a, .score-menu-list button, .score-menu-list [data-menu-game], body .site-menu a, body .site-menu button { color: var(--nx-text) !important; }
.score-menu-list a:hover, .score-menu-list button:hover, .score-menu-list a:focus-visible, .score-menu-list button:focus-visible,
body .site-menu a:hover, body .site-menu button:hover, body .site-menu a:focus-visible, body .site-menu button:focus-visible, .topic-row:hover {
  background: rgba(34, 211, 238, .16) !important; color: #fff !important;
}
.score-menu-list [aria-current="true"] { background: rgba(168, 85, 247, .22) !important; }
input, select, textarea, .admin-step input[type="password"], .admin-code-edit input, .admin-add input, .welcome input, .room-dialog input, .form input, .link-box input, .login input {
  border: 1px solid var(--nx-line) !important; background: rgba(10, 5, 30, .55) !important; color: var(--nx-text) !important;
}
input::placeholder, textarea::placeholder { color: var(--nx-muted) !important; opacity: 1; }
.admin-code-list li, #adminCodeList li, .chat-thread { border: 1px solid var(--nx-line) !important; background: var(--nx-glass) !important; }
.chat-thread:hover { background: var(--nx-glass-2) !important; }
.admin-codes, .chat-head, .invite-box { border-color: var(--nx-line) !important; }
.chat-msg.mine { background: var(--nx-grad); color: #06122a; }
.chat-msg.theirs, .chat-face { background: var(--nx-glass-2); color: var(--nx-text); }
.chat-open { border: 1px solid var(--nx-line); background: rgba(20, 10, 51, .85); color: #fff; }
.admin-msg, .welcome .welcome-note, .room-dialog-note, .login-note, .hint { color: #fb7185 !important; }
.avatar-panel p.avatar-group, .welcome p.avatar-group, .chat-code strong, .invite-note, .score-popup h2 { color: var(--nx-cyan) !important; }
.avatar-grid button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--nx-bg), 0 0 0 4px var(--nx-cyan); }

/* ===== البطاقات والمربعات ===== */
.card, .room-tile, .rank-list, .stat-tile, .score-card, .attempts-box, .panel {
  border: 1px solid var(--nx-line) !important; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)) !important;
  color: var(--nx-text) !important; box-shadow: var(--tile-shadow) !important;
}
.rank-list.compact { box-shadow: none !important; }
.rank-list { --muted: #b9b2dc; --ink: #f5f3ff; }
.rank-row, .board li, .attempt-row, .scores-list .rank-row { border-color: rgba(255, 255, 255, .08) !important; color: var(--nx-text); }
.rank-no, .rank-podium .rank-no { color: var(--nx-muted); }
.rank-pts, .rank-row.top .rank-no, .attempt-pts, .podium-pts, .visitors b, .score-num.plus, .room-tile .room-status { color: var(--nx-cyan) !important; }
.rank-row.me, .scores-list .rank-row.me { background: rgba(34, 211, 238, .12) !important; color: #fff !important; }
.rank-row:not(.me):hover, .rank-row:not(.me):active, .score-row:hover { background: var(--nx-glass) !important; color: #fff !important; }
.rank-row:not(.me):hover .rank-no, .rank-row:not(.me):active .rank-no { color: #fff; }
.scores-list .rank-no { background: var(--nx-glass-2) !important; color: var(--nx-text) !important; }
.scores-list .rank-row.top .rank-no, .scores-list .rank-row.me .rank-no { background: var(--nx-grad) !important; color: #06122a !important; }
.scores-list .rank-pts, .podium-name, .attempt-who, .arena-scores h2, .attempts-box h3 { color: var(--nx-text) !important; }
.podium-col.place-1 .podium-pts { color: var(--nx-gold) !important; }
.podium-step { background: var(--nx-glass-2) !important; color: var(--nx-muted) !important; }
.podium-col.place-1 .podium-step { background: linear-gradient(180deg, #facc15, #eab308) !important; color: #1a1033 !important; box-shadow: 0 0 16px rgba(250, 204, 21, .45); }
.rank-podium .podium-col .rank-avatar { border-color: rgba(255, 255, 255, .3); }
.rank-podium .podium-col.me .rank-avatar { border-color: var(--nx-cyan); }
.score-card .rank-podium { border-bottom-color: rgba(255, 255, 255, .08) !important; }
.score-card-head, .score-card-head h3 { color: var(--nx-text) !important; }
.score-card-all { color: var(--nx-cyan) !important; }
.stat-tile strong { color: #fff; }
.stat-tile .is-live, #foundCount { color: #4ade80 !important; text-shadow: 0 0 12px rgba(74, 222, 128, .5); }
.board li.me { background: var(--nx-grad) !important; color: #06122a !important; }
.state { background: var(--nx-glass-2); color: var(--nx-text); }
.state.playing { background: var(--nx-grad); color: #06122a; }
.state.ended { background: #0b0620; color: #fff; }
.switch-track { background: rgba(255, 255, 255, .2); }
input:checked + .switch-track { background: var(--nx-cyan); }
.breath { background: var(--nx-glass-2); }
.breath-fill { background: var(--nx-grad); }
.pic, .arena-stage, .stage { box-shadow: 0 0 0 1px var(--nx-line), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.share .whatsapp, .whatsapp, .share { background: #0b0620 !important; color: #fff !important; }

/* ===== شريط الترحيب المتحرك ===== */
.welcome-bar { border: 1px solid rgba(34, 211, 238, .35) !important; background: linear-gradient(90deg, #1e40af, #3b82f6) !important; color: #fff !important; box-shadow: 0 4px 18px rgba(34, 211, 238, .25) !important; }
.welcome-bar .wb-text { color: #fff !important; }
.welcome-bar .wb-close { color: #fff !important; background: rgba(255, 255, 255, .15) !important; }

.site-footer, .site-footer a { color: var(--nx-muted) !important; }

/* ===== مربعات صفحات الألعاب (المستويات، تحدّى صديقك، كود الغرفة، القوانين، بطاقات السكور) ===== */
.profile-btn, .profile-btn.guest, .rank-chip, .wd-mode-note, .pz-level, .pz-friends-tile, .pz-code-strip, .pz-rules, .score-card2,
.mode-tile, .code-strip, .pz-host-card, #modes button, .wd-modes button, #startBtn, #challengeBtn {
  border: 1px solid var(--nx-line) !important; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)) !important;
  color: var(--nx-text) !important; box-shadow: var(--tile-shadow) !important;
}
.pz-level, .pz-friends-tile, .mode-tile, .score-card2, #modes button, .wd-modes button { transition: translate .3s cubic-bezier(.175, .885, .32, 1.275), border-color .2s, box-shadow .2s; }
@media (hover: hover) {
  .pz-level:hover, .pz-friends-tile:hover, .mode-tile:hover, .score-card2:hover, #modes button:hover, .wd-modes button:hover, .profile-btn:hover {
    translate: 0 -4px; border-color: var(--nx-cyan) !important; box-shadow: 0 0 20px rgba(34, 211, 238, .45) !important;
  }
}
.pz-level[aria-pressed="true"], .pz-level.on, #modes button.on, #modes button[aria-pressed="true"], .wd-modes button.on, .mode-tile.on {
  border-color: var(--nx-pink) !important; box-shadow: 0 0 18px rgba(236, 72, 153, .5) !important;
}
#startBtn { background: var(--nx-grad) !important; color: #06122a !important; border: 0 !important; }
.rank-chip { box-shadow: none !important; }
.pz-level small, .pz-friends-tile small, .mode-tile small, .score-card2 small, .pz-rules li, .wd-mode-note, .pz-code-strip small, .code-strip small { color: var(--nx-muted) !important; }
.pz-code-strip input, .code-strip input { background: rgba(10, 5, 30, .55) !important; }

/* ===== داخل الألعاب: شبكة الكلمات، القوائم، نافذة الفوز، قوائم الأصدقاء ===== */
.pz-empty, .pz-win > div, .pz-results, .top-empty, .solo-rules, .wd-count, .friends-online, .wd-board {
  border: 1px solid var(--nx-line) !important; background: linear-gradient(160deg, #2a175f, #1a0d40) !important; color: var(--nx-text) !important;
}
.pz-win > div { box-shadow: var(--float-shadow), 0 0 30px rgba(168, 85, 247, .35) !important; }
.wd-board { box-shadow: 0 0 0 1px rgba(168, 85, 247, .25), 0 0 24px rgba(168, 85, 247, .25) !important; }
.wd-cell { background: rgba(255, 255, 255, .08); color: var(--nx-text); }
.wd-cell.sel { background: var(--nx-cyan) !important; color: #06122a !important; box-shadow: 0 0 12px rgba(34, 211, 238, .6); }
.wd-words li, .wd-topics button, .pz-sizes button, .pz-kick, .friends-online button, .friends-list li, .friends-bar li, .wd-count-quick button {
  border: 1px solid var(--nx-line) !important; background: var(--nx-glass) !important; color: var(--nx-text) !important; box-shadow: none !important;
}
.wd-words li.done { opacity: .55; text-decoration: line-through; }
.wd-topics button[aria-pressed="true"], .pz-sizes button[aria-pressed="true"], .pz-sizes button.on, .wd-count-quick button.on {
  border-color: var(--nx-cyan) !important; background: rgba(34, 211, 238, .2) !important; box-shadow: 0 0 12px rgba(34, 211, 238, .4) !important;
}
.pz-code input, .pz-host-card input { border: 1px solid var(--nx-line) !important; background: rgba(10, 5, 30, .55) !important; color: var(--nx-text) !important; }
.wd-modes button[aria-pressed="true"] { border-color: var(--nx-gold) !important; background: rgba(250, 204, 21, .12) !important; box-shadow: 0 0 18px rgba(250, 204, 21, .4) !important; }
.wd-modes button[data-mode="free"][aria-pressed="true"] { border-color: var(--nx-cyan) !important; background: rgba(34, 211, 238, .12) !important; box-shadow: 0 0 18px rgba(34, 211, 238, .4) !important; }
.wd-mode-note { background: rgba(250, 204, 21, .1) !important; color: #fde68a !important; }
.gd-golden { border: 2px dashed rgba(250, 204, 21, .7) !important; background: rgba(250, 204, 21, .08) !important; color: #fde68a !important; }
.gd-golden i { background: rgba(255, 255, 255, .1) !important; color: var(--nx-gold) !important; }
.friends-bar .result-tag.win { background: rgba(250, 204, 21, .18); color: #fde68a; }
.friends-bar .result-tag.lose { background: rgba(244, 63, 94, .18); color: #fda4af; }

/* زر الرجوع (→) اللي يضيفه site-menu.js */
.site-back { border: 1px solid var(--nx-line) !important; background: var(--nx-glass) !important; color: var(--nx-text) !important; }
@media (hover: hover) { .site-back:hover { border-color: var(--nx-cyan) !important; box-shadow: 0 0 14px rgba(34, 211, 238, .45) !important; } }

/* ===== تخفيف للجوال (طلب علي): بدون تغبيش وبدون خلفية ثابتة، لأنها تثقّل على الجوالات الضعيفة ===== */
@media (hover: none), (max-width: 800px) {
  html, body, body:has(> header.bar) { background-attachment: scroll !important; }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-bar, .bar { background: rgba(20, 10, 51, .96) !important; }
  .chat-open { background: #1d0f47 !important; }
}

/* ===== نافذة «حسابك» (تغيير الصورة والاسم) — تصميم Gemini ===== */
.welcome h2 { text-shadow: 0 0 12px rgba(168, 85, 247, .8); font-size: 1.5rem; }
.welcome .acc-card { gap: 12px; margin: .4rem 0 1rem; }
.welcome .acc-big-face { width: 112px; height: 112px; border: 3px solid var(--nx-purple); background: var(--nx-panel-2);
  box-shadow: 0 0 0 4px #1d0f47, 0 0 0 7px var(--nx-cyan), 0 0 26px rgba(168, 85, 247, .8), 0 0 46px rgba(34, 211, 238, .45); }
.welcome .acc-name-text { font-size: 1.5rem; text-shadow: 0 0 10px rgba(168, 85, 247, .6); }
.welcome .acc-pencil { width: 38px; height: 38px; border: 0 !important; background: linear-gradient(135deg, #fb923c, #f97316) !important; color: #fff !important;
  box-shadow: 0 0 14px rgba(249, 115, 22, .6) !important; transition: scale .2s; }
.welcome .acc-pencil:hover { scale: 1.12; }
.welcome .acc-square { border-radius: 50%; border-color: #1d0f47; box-shadow: 0 0 0 2px var(--nx-line), 0 0 10px rgba(255, 255, 255, .2); }
/* ألوان الاسم: نقاط ملونة داخل كبسولة غامقة */
.welcome .acc-colors { justify-content: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--nx-line); border-radius: 99px; background: #130924; }
.welcome .acc-color { width: 26px; height: 26px; border: 0; box-shadow: none; transition: scale .2s; }
.welcome .acc-color:hover { scale: 1.2; }
.welcome .acc-color.on { box-shadow: 0 0 0 2px #130924, 0 0 0 4px var(--nx-cyan), 0 0 12px var(--nx-cyan); }
.welcome .acc-who { color: var(--nx-muted); opacity: 1; text-align: center; }
/* قوائم الطي (الزخرفة واختيار الصورة) */
.welcome .acc-fold { border: 1px solid var(--nx-line); background: rgba(10, 5, 30, .35); }
.welcome .acc-fold-head { background: var(--nx-glass) !important; color: var(--nx-text) !important; }
.welcome .acc-fold-head:hover { background: rgba(34, 211, 238, .1) !important; }
.welcome .deco-row button { border: 1px solid var(--nx-line); background: var(--nx-glass); color: var(--nx-text); }
.welcome .deco-row button:hover { border-color: var(--nx-cyan); }
.welcome .acc-warn { background: rgba(250, 204, 21, .12); color: #fde68a; }
/* زر «صورة من جوالك»: إطار سماوي متوهج */
.welcome .acc-own .btn, .welcome .acc-pick-row .btn { border: 2px solid var(--nx-cyan) !important; background: rgba(34, 211, 238, .06) !important; color: #fff !important;
  box-shadow: 0 0 14px rgba(34, 211, 238, .45), inset 0 0 10px rgba(34, 211, 238, .15) !important; font-weight: 800; }
.welcome .acc-own .btn:hover { background: rgba(34, 211, 238, .16) !important; }
.welcome .acc-pick-row small { color: var(--nx-muted) !important; }
.welcome .acc-own-face[aria-pressed="true"] { border-color: var(--nx-cyan); box-shadow: 0 0 14px var(--nx-cyan); }
/* شبكة الصور: «بنات» سماوي و«رجال» وردي، والصورة المختارة تتوهج */
.welcome p.avatar-group, .avatar-panel p.avatar-group { font-size: 1.05rem; font-weight: 800; color: var(--nx-cyan) !important; text-shadow: 0 0 10px rgba(34, 211, 238, .5); }
.welcome p.avatar-group ~ p.avatar-group, .avatar-panel p.avatar-group ~ p.avatar-group { color: #e879f9 !important; text-shadow: 0 0 10px rgba(232, 121, 249, .5); }
.avatar-grid button { border: 2px solid transparent; border-radius: 16px; opacity: .78; transition: opacity .2s, scale .2s, box-shadow .2s, border-color .2s; }
.avatar-grid button:hover { opacity: 1; scale: 1.05; }
.avatar-grid button[aria-pressed="true"] { opacity: 1; scale: 1.06; border-color: var(--nx-cyan); box-shadow: 0 0 0 2px #1d0f47, 0 0 18px var(--nx-cyan) !important; }
/* زر الحفظ الكبير */
.welcome .welcome-actions .btn.primary { min-height: 3.2rem; border: 2px solid var(--nx-cyan) !important; background: linear-gradient(90deg, #7e22ce, #9333ea) !important; color: #fff !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, .55), 0 6px 24px rgba(147, 51, 234, .55) !important; font-size: 1.1rem; font-weight: 800; }
.welcome .welcome-actions .btn.primary:hover { translate: 0 -2px; box-shadow: 0 0 24px rgba(34, 211, 238, .8), 0 8px 28px rgba(147, 51, 234, .7) !important; }

/* ===== قائمة الملف الصغيرة (لمن تضغط صورتك فوق) ===== */
.profile-btn { border-color: var(--nx-purple) !important; box-shadow: 0 0 12px rgba(168, 85, 247, .6) !important; }
.profile-menu { border: 1px solid var(--nx-line) !important; background: linear-gradient(160deg, #2a175f, #1a0d40) !important; color: var(--nx-text) !important;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8), 0 0 30px rgba(168, 85, 247, .3) !important; }
/* القائمة كانت أطول من الشاشة وما تتحرك بالإصبع (طلب علي): تنحصر بالشاشة وتنسحب فوق وتحت */
.profile-menu { max-height: calc(100dvh - var(--pm-top, 80px) - 12px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.profile-menu .profile-mine { display: flex !important; justify-content: center; align-items: center; min-height: 44px; margin: 0 0 10px; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #a855f7) !important; color: #fff !important; font-size: 17px; font-weight: 800; letter-spacing: .3px; text-decoration: none; box-shadow: 0 0 14px rgba(34, 211, 238, .5); }
.profile-head { border-bottom-color: var(--nx-line) !important; }
.profile-face { border: 3px solid var(--nx-purple); background: var(--nx-panel-2) !important; box-shadow: 0 0 0 3px #1d0f47, 0 0 0 5px var(--nx-cyan), 0 0 20px rgba(168, 85, 247, .7); }
.profile-pen { border: 0 !important; background: linear-gradient(135deg, #fb923c, #f97316) !important; box-shadow: 0 0 12px rgba(249, 115, 22, .6) !important; }
.profile-square { border-color: #1d0f47 !important; border-radius: 50% !important; box-shadow: 0 0 0 2px var(--nx-line) !important; }
.profile-id { background: rgba(34, 211, 238, .12) !important; color: var(--nx-cyan) !important; }
.profile-copy { border: 1px solid var(--nx-line) !important; background: var(--nx-glass) !important; color: var(--nx-text) !important; }
.profile-head small, .profile-online small, .profile-where small { color: var(--nx-muted) !important; }
.profile-menu a, .profile-menu button.item { color: var(--nx-text) !important; }
.profile-menu a:hover, .profile-menu button.item:hover { background: rgba(34, 211, 238, .12) !important; }
.profile-menu .out { color: #fb7185 !important; }
.profile-games { background: rgba(10, 5, 30, .45) !important; }
.profile-menu .profile-games a.here, .profile-menu .profile-online .online-games a { background: rgba(34, 211, 238, .14) !important; color: var(--nx-cyan) !important; }
.profile-online li, .profile-where { background: var(--nx-glass) !important; color: var(--nx-text) !important; }
.profile-where-face, .profile-online .rank-avatar { background: var(--nx-panel-2) !important; color: var(--nx-cyan) !important; }
/* قلم أبيض بدال الإيموجي البرتقالي (عشان يبان على الدائرة البرتقالية) */
.welcome .acc-pencil, .profile-pen { font-size: 0 !important; }
.welcome .acc-pencil::before, .profile-pen::before { content: ''; width: 17px; height: 17px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm17.71-10.21a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm17.71-10.21a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat; }
.profile-pen::before { width: 14px; height: 14px; }
.welcome *, .profile-menu * { scrollbar-color: rgba(168, 85, 247, .7) transparent; scrollbar-width: thin; }
.welcome, .profile-menu { scrollbar-color: rgba(168, 85, 247, .7) transparent; scrollbar-width: thin; }
.welcome .acc-colors { border-radius: 22px; }
@media (max-width: 480px) { .welcome .acc-colors { gap: 8px; padding: 9px 10px; } .welcome .acc-color { width: 24px; height: 24px; } }
.welcome .acc-color { border: 0 !important; box-shadow: none !important; }
.welcome .acc-color.on { box-shadow: 0 0 0 2px #130924, 0 0 0 4px var(--nx-cyan), 0 0 12px var(--nx-cyan) !important; }
@media (max-width: 480px) { .welcome .acc-color { width: 24px !important; height: 24px !important; } }
.welcome .acc-square { border-color: #1d0f47 !important; border-radius: 50% !important; box-shadow: 0 0 0 2px var(--nx-line) !important; }

.wd-card { background: linear-gradient(135deg, #7e22ce, #3b82f6) !important; color: #fff !important; text-shadow: 0 0 12px rgba(255, 255, 255, .5); }


/* فكرة 9: تكبير الكتابة الصغيرة عشان تنقرا أسهل بالجوال (طلب علي 2026-11-11) */
.site-bar .wide-only, .nav-more .nm-word { font-size: 11.5px !important; }
.player-chip small, .stat-tile small { font-size: 13.5px !important; }
.game-info small, .mode-tile small, .pz-level small { font-size: 13.5px !important; }
.game-card small, .mode-card small, [class*="tile"] > small, .card small { font-size: 13.5px !important; }
.wc-ends { font-size: 13.5px !important; }
.sc-row, .sc-row i, .sc-row bdi, .sc-row b { font-size: 14px !important; }
.sc-more, .sc-empty { font-size: 13px !important; }
.attempt-who small { font-size: 13px !important; }
.chat-open .chat-word { font-size: 13px !important; }
.site-bar-inner > .btn { font-size: 13.5px !important; }
@media (min-width: 441px) { .wc-game { font-size: 13.5px !important; } }.site-nav .wide-only { font-size: 11.5px !important; }
.pz-friends-tile small, .wd-modes small { font-size: 13.5px !important; }
/* فكرة 8: زر «❓ كيف ألعب؟» ونافذته (assets/howto.js) */
.howto-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 14px 0; text-align: center; }
.howto-short { flex: 1 1 100%; margin: 0; color: var(--nx-text, #e9e3ff); font-size: 15px; font-weight: 700; line-height: 1.6; }
.howto-btn { min-height: 42px; padding: 8px 20px; border: 1px solid var(--nx-cyan, #22d3ee) !important; border-radius: 999px !important; background: rgba(34, 211, 238, .1) !important; color: #a5f3fc !important; font-weight: 800; font-size: 15px; box-shadow: 0 0 12px rgba(34, 211, 238, .35); }
.howto-dialog { width: min(520px, calc(100% - 24px)); max-height: 82vh; padding: 0; border: 1px solid #a855f7; border-radius: 18px; background: #1d0f47; color: #f3eaff; box-shadow: 0 0 24px rgba(168, 85, 247, .55); overflow: auto; direction: rtl; }
.howto-dialog::backdrop { background: rgba(8, 3, 24, .75); }
.howto-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: #1d0f47; border-bottom: 1px solid rgba(168, 85, 247, .4); }
.howto-head h2 { margin: 0; font-size: 19px; }
.howto-x { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.howto-body { padding: 6px 16px 4px; font-size: 15.5px; line-height: 1.7; }
.howto-body ul { margin: 8px 0; padding-inline-start: 20px; }
.howto-body li { margin: 6px 0; }
.howto-body .wd-mode-note { margin: 8px 0; }
.howto-ok { display: block; width: calc(100% - 32px); margin: 8px 16px 16px; min-height: 44px; font-size: 16px; }
/* ⏸️ نافذة «تكمل جولتك أو لعبة جديدة؟» (طلب علي 2026-11-12) */
.resume-ask { width: min(380px, calc(100% - 32px)); padding: 22px 18px 18px; border: 1px solid #a855f7; border-radius: 18px; background: #1d0f47; color: #f5f3ff; box-shadow: 0 0 26px rgba(168, 85, 247, .55); text-align: center; direction: rtl; font-family: inherit; }
.resume-ask::backdrop { background: rgba(8, 3, 25, .72); backdrop-filter: blur(5px); }
.resume-ask h2 { margin: 0 0 6px; font-size: 1.3rem; }
.resume-ask p { margin: 0 0 16px; color: #b9b2dc; line-height: 1.7; }
.resume-ask .resume-ask-actions { display: grid; gap: 10px; }
.resume-ask button { width: 100%; min-height: 48px; font-size: 1.05rem; }

/* ⭐ نظام التقدم: إطار نيون حول الصورة حسب الرتبة (5 رتب) + شارة «مستواي» (طلب علي 2026-11-12) */
.lvf { border-radius: 50%; }
/* تصميم جيميناي (اعتمده علي): مستجد سماوي بسيط، متمكن فضي لامع، محترف ذهبي، كفو وردي ناري، زعيم بنفسجي ملكي */
.lvf-0 { box-shadow: 0 0 0 2px #22d3ee, 0 0 8px rgba(34, 211, 238, .45) !important; }
.lvf-1 { box-shadow: 0 0 0 2px #e2e8f0, 0 0 0 4px rgba(148, 163, 184, .55), 0 0 12px rgba(226, 232, 240, .55) !important; animation: lvSilver 3s ease-in-out infinite; }
.lvf-2 { box-shadow: 0 0 0 2px #facc15, 0 0 0 4px rgba(217, 119, 6, .55), 0 0 14px rgba(250, 204, 21, .65) !important; animation: lvGold 2.2s ease-in-out infinite; }
.lvf-3 { box-shadow: 0 0 0 2px #ec4899, 0 0 0 4px #fb7185, 0 0 16px rgba(244, 63, 94, .75) !important; animation: lvFire 1.4s ease-in-out infinite; }
.lvf-4 { box-shadow: 0 0 0 2px #facc15, 0 0 0 4px #a855f7, 0 0 0 6px rgba(250, 204, 21, .5), 0 0 20px rgba(168, 85, 247, .85) !important; animation: lvRoyal 2s ease-in-out infinite; }
@keyframes lvPulse { 50% { filter: brightness(1.25); } }
@keyframes lvSilver { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(203, 213, 225, .8), 0 0 18px rgba(255, 255, 255, .75); } }
@keyframes lvGold { 50% { box-shadow: 0 0 0 2px #fde68a, 0 0 0 4px rgba(250, 204, 21, .6), 0 0 22px rgba(250, 204, 21, .9); } }
@keyframes lvFire { 50% { box-shadow: 0 0 0 2px #fb923c, 0 0 0 4px #ec4899, 0 0 22px rgba(251, 146, 60, .85); } }
@keyframes lvRoyal { 50% { box-shadow: 0 0 0 2px #fde68a, 0 0 0 4px #c084fc, 0 0 0 6px rgba(250, 204, 21, .7), 0 0 28px rgba(192, 132, 252, 1); } }
/* تاج فوق إطار الزعيم (بالأماكن اللي ما تقص الحواف) */
.lvf-crown, .crown-4 { position: relative; }
.lvf-crown.lvf-4::after, .crown-4::after { content: "👑"; position: absolute; top: -0.85em; left: 50%; transform: translateX(-50%); font-size: 18px; filter: drop-shadow(0 0 6px #facc15); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lvf { animation: none !important; } }
.level-chip { display: inline-flex; flex-direction: column; gap: 3px; min-width: 140px; padding: 7px 14px; margin-inline-start: 8px; border-radius: 14px; border: 1.5px solid transparent; background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #22d3ee, #a855f7, #ec4899) border-box; color: #f5f3ff; text-decoration: none; vertical-align: middle; box-shadow: 0 0 16px -4px rgba(34, 211, 238, .55); }
.level-chip b { font-size: 14px; color: #67e8f9; text-shadow: 0 0 8px rgba(34, 211, 238, .5); }
.level-chip small { align-self: flex-start; padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(250, 204, 21, .7); color: #facc15; font-size: 11.5px; font-weight: 700; }
.level-chip i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.level-chip i span { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899); box-shadow: 0 0 8px rgba(236, 72, 153, .7); }
.level-chip:hover { box-shadow: 0 0 22px -2px rgba(34, 211, 238, .75); }
.hero-actions .level-chip { margin: 0; }
/* ⭐ بطاقة المستوى داخل قائمة البروفايل (تنفتح من الصورة فوق) */
.profile-level { display: grid !important; grid-template-columns: 1fr !important; flex: 1 1 100%; width: 100%; box-sizing: border-box; text-align: start; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid transparent; background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #22d3ee, #a855f7, #ec4899) border-box; color: #f5f3ff !important; text-decoration: none; box-shadow: 0 0 14px -4px rgba(34, 211, 238, .55); }
.profile-level .pl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.profile-level b { color: #67e8f9; font-size: 14.5px; }
.profile-level em { padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(250, 204, 21, .7); color: #facc15; font-size: 11.5px; font-style: normal; font-weight: 700; }
.profile-level > * { min-width: 0; }
.profile-level .pl-bar { display: block; width: 100%; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.profile-level .pl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899); box-shadow: 0 0 8px rgba(236, 72, 153, .7); }
.profile-level small { color: #c9c3e8; font-size: 12px; }
.profile-friends { display: flex !important; justify-content: center; align-items: center; width: 100%; box-sizing: border-box; min-height: 42px; margin-top: 8px; border-radius: 12px; border: 1.5px solid #ec4899; background: rgba(236, 72, 153, .14); color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 0 12px -4px rgba(236, 72, 153, .8); }
/* 🪞 قلب صورة الاختلافات مرآة (استشارة 14) + فراغ الجملة الذهبية */
#imgA.mirror, #imgB.mirror { transform: scaleX(-1); }
.slots i.gap { width: .6em; min-width: .6em; border: 0 !important; background: none !important; box-shadow: none !important; }
/* ⚡ تحدي فوري (استشارة 13) */
.qm-main { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0; padding: 14px 16px; border-radius: 22px; border: 2px solid transparent; color: #fff; font: inherit; text-align: start; cursor: pointer;
  background: linear-gradient(135deg, #6d28d9, #a21caf) padding-box, linear-gradient(110deg, #22d3ee, #ec4899, #facc15) border-box; box-shadow: 0 0 24px -4px rgba(236, 72, 153, .8); animation: qmGlow 2.2s ease-in-out infinite; }
@keyframes qmGlow { 50% { box-shadow: 0 0 36px 0 rgba(34, 211, 238, .8); } }
.qm-dice { font-size: 40px; display: inline-block; animation: qmSpin 3s linear infinite; }
@keyframes qmSpin { to { transform: rotate(360deg); } }
.qm-main-txt { flex: 1; display: grid; gap: 2px; }
.qm-main-txt b { font-size: 22px; text-shadow: 0 0 10px rgba(250, 204, 21, .8); }
.qm-main-txt small { color: #f5d0fe; font-size: 13.5px; }
.qm-live { position: absolute; top: 10px; inset-inline-end: 12px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.qm-overlay { position: fixed; inset: 0; z-index: 125; display: grid; place-items: center; padding: 16px; background: rgba(8, 4, 24, .82); backdrop-filter: blur(4px); }
.qm-card { width: min(380px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 24px; text-align: center; direction: rtl; color: #f5f3ff; border: 2px solid transparent;
  background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #22d3ee, #a855f7, #ec4899) border-box; box-shadow: 0 0 34px -6px rgba(168, 85, 247, .9); }
.qm-back { justify-self: start; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #22d3ee; color: #140a33; font: inherit; font-weight: 800; cursor: pointer; }
.qm-title { margin: 0; font-size: 28px; background: linear-gradient(90deg, #facc15, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qm-wheel { display: grid; place-items: center; gap: 6px; width: 170px; height: 170px; margin: 0 auto; border-radius: 50%; border: 4px dashed #facc15; box-shadow: 0 0 26px rgba(250, 204, 21, .6), inset 0 0 26px rgba(236, 72, 153, .5); animation: qmSpin 6s linear infinite; }
.qm-wheel > * { animation: qmSpin 6s linear infinite reverse; }
.qm-ic { font-size: 54px; }
.qm-game { font-size: 17px; color: #67e8f9; }
.qm-timer { margin: 0; font-size: 22px; font-weight: 800; color: #fde68a; font-variant-numeric: tabular-nums; }
.qm-note { margin: 0; color: #c9c3e8; font-size: 14.5px; }
.qm-actions { display: grid; gap: 8px; }
.qm-btn { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 99px; border: 2px solid #22d3ee; background: rgba(34, 211, 238, .12); color: #fff !important; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.qm-btn.gold { border-color: #facc15; background: linear-gradient(90deg, #facc15, #f59e0b); color: #140a33 !important; }
.qm-btn.ghost { border-color: rgba(255, 255, 255, .2); background: none; color: #c9c3e8 !important; }
.qm-bar { position: fixed; z-index: 112; top: 80px; inset-inline: 10px; max-width: 520px; margin-inline: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; overflow: hidden; border-radius: 16px; direction: rtl; color: #fff;
  border: 2px solid #22d3ee; background: rgba(20, 10, 51, .94); box-shadow: 0 0 22px -4px rgba(34, 211, 238, .9); animation: frIn .3s ease-out both; }
.qm-bar-txt { flex: 1; font-size: 14.5px; font-weight: 700; }
.qm-bar-txt b { color: #fde68a; }
.qm-bar-join { min-height: 38px; padding: 0 16px; border: 0; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #16a34a); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 0 12px rgba(34, 197, 94, .7); }
.qm-bar-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #c9c3e8; font: inherit; cursor: pointer; }
.qm-bar-fill { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #22d3ee, #ec4899); animation: qmShrink linear forwards; transform-origin: right; }
@keyframes qmShrink { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .qm-main, .qm-dice, .qm-wheel, .qm-wheel > * { animation: none; } }
/* 📲 بطاقة التحدي */
.sc-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 14px; background: rgba(8, 4, 24, .8); }
.sc-modal[hidden] { display: none; }
.sc-box { width: min(380px, 100%); max-height: calc(100vh - 28px); overflow: auto; display: grid; gap: 10px; padding: 14px; border-radius: 20px; border: 2px solid #a855f7; background: #1a0d40; text-align: center; direction: rtl; }
.sc-box img { width: 100%; border-radius: 14px; }
.sc-back { justify-self: start; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #22d3ee; color: #140a33; font: inherit; font-weight: 800; cursor: pointer; }
.sc-btn { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 99px; border: 2px solid #22d3ee; color: #fff !important; font-weight: 800; text-decoration: none; }
.sc-btn.wa { border-color: #22c55e; background: #16a34a; box-shadow: 0 0 16px rgba(34, 197, 94, .6); }
.sc-box small { color: #c9c3e8; }
.share-card-btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; margin: 8px auto; border: 0; border-radius: 99px; background: linear-gradient(90deg, #16a34a, #22c55e); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 0 18px rgba(34, 197, 94, .6); }
/* زر الواتساب ياخذ سطر كامل، والأزرار الثانية تنزل تحته بعرض مريح (كانت تنضغط على الجوال) */
:has(> .share-card-btn) { flex-wrap: wrap; }
.share-card-btn { flex: 1 0 100%; width: 100%; margin: 0 0 8px; }
.share-card-btn[hidden] { display: none; }
/* 🎲 اسم الزائر */
.guest-chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 14px; border: 1.5px dashed #facc15; background: rgba(250, 204, 21, .1); color: #fde68a; font: inherit; font-size: 12.5px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.guest-chip.roll { animation: gRoll .4s ease-out; }
@keyframes gRoll { 40% { transform: rotate(-6deg) scale(1.08); } }
/* بالجوال: اسم الزائر ينكسر على سطرين، عشان ما ياخذ مكان باقي الأزرار ويطلع كلامها برا (2026-11-15) */
@media (max-width: 760px) {
  .site-bar .guest-chip { flex: 0 1 auto; max-width: 62px; min-height: 46px; padding: 2px 5px; font-size: 10.5px; line-height: 1.25; white-space: normal; text-align: center; justify-content: center; }
  .site-bar .profile-btn.guest { padding: 0 7px; font-size: 12.5px; }
  /* زر الصوت بالكرسي الكهربائي: الرمز بس */
  #muteBtn { flex: none; width: 42px; height: 42px; padding: 0 !important; border-radius: 50% !important; font-size: 18px !important; }
  #muteBtn .mute-word { display: none; }
}
/* 📅 شريط صورة اليوم بالرئيسية */
/* نفس شكل «برق اليوم» (طلب علي 2026-11-14) بس بلون سماوي عشان يتفرقون */
.dp-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0; padding: 12px 16px; border: 2px solid #22d3ee; border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(168, 85, 247, .16)); color: #fff; text-decoration: none; box-shadow: 0 0 18px rgba(34, 211, 238, .3); }
.dp-strip:hover, .dp-strip:focus-visible { box-shadow: 0 0 26px rgba(34, 211, 238, .55); }
.dp-strip-ic { font-size: 18px; margin-inline-end: -8px; }
.dp-strip-txt { display: contents; }
.dp-strip-txt b { color: #67e8f9; font-size: 18px; }
.dp-strip-txt small { flex: 1; min-width: 180px; color: #e9d5ff; font-weight: 800; font-size: 14px; }
/* 👤 دخل من «فردي» (?mode=solo): بس سكور الفردي ومحاولاته، بدون التحديات والجماعي والفرق (طلب علي 2026-11-14) */
.solo-only #hrEntry, .solo-only #friendsTile, .solo-only #raceTile, .solo-only #modeRace, .solo-only #modeFriends, .solo-only #codeForm, .solo-only .or-box,
.solo-only .score-card2:not([data-solo]), .solo-only .hr-cards { display: none !important; }
/* 👥 دخل من «جماعي/فرق/تحدي» (?mode=group…): بدون لعبة الفردي و«ابدأ» وسكوراتها، لين يضغط «افتح غرفة» (طلب علي 2026-11-14) */
.room-mode .arena-hud, .room-mode .arena-stage, .room-mode #arenaScores, .room-mode .arena-scores { display: none !important; }
.rm-head { margin: 14px 4px 10px; color: #f5f3ff; font-size: 19px; font-weight: 900; text-align: center; line-height: 1.5; }
.room-mode .rm-pick { border: 2px solid #22d3ee !important; box-shadow: 0 0 22px rgba(34, 211, 238, .55) !important; }
html:not(.room-mode) .rm-head { display: none; }
/* «سجل السكورات» انشال من كل مكان (طلب علي 2026-11-14): حتى زر آخر الجولة */
#arenaLog, #logLink { display: none !important; }
/* 👑 المتصدر بصورته واسمه في برق اليوم وصورة اليوم */
.ld-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(250, 204, 21, .45); font-size: 14px; }
.ld-face { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid #facc15; background: #2a1b5c; color: #fff; font-weight: 800; font-size: 14px; }
.ld-face img, .ld-face svg { width: 100%; height: 100%; object-fit: cover; }
.ld-chip b { color: #fff; font-size: 15px; font-weight: 800; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-chip small { color: #fde047; font-weight: 800; font-size: 13px; }
.dp-strip-go { flex: none; padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, #ec4899, #a855f7); color: #fff; font-weight: 800; font-size: 14px; }
/* 📰 آخر الأخبار (الرئيسية وصفحة news.html) */
.nw-card { margin: 14px 0; padding: 14px; border-radius: 20px; border: 2px solid transparent; color: #f5f3ff;
  background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #22d3ee, #a855f7, #ec4899) border-box; box-shadow: 0 0 20px -6px rgba(34, 211, 238, .6); }
.nw-card[hidden] { display: none; }
.home > .nw-card { grid-column: 1 / -1; }
.nw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.nw-top h2 { margin: 0; font-size: 20px; color: #7dd3fc; }
.nw-more { flex: none; padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, #22d3ee, #a855f7); color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none; }
.nw-item { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(168, 85, 247, .25); }
.nw-item + .nw-item { margin-top: 8px; }
.nw-item.new { border-color: rgba(236, 72, 153, .7); box-shadow: 0 0 14px -4px rgba(236, 72, 153, .7); }
.nw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nw-icon { font-size: 22px; }
.nw-head b { flex: 1; min-width: 0; font-size: 16px; color: #f5f3ff; }
.nw-head small { color: #a5b4fc; font-size: 12px; }
.nw-new { padding: 2px 8px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; box-shadow: 0 0 10px rgba(239, 68, 68, .8); }
.nw-item ul { margin: 6px 0 0; padding-inline-start: 22px; color: #ddd6fe; font-size: 14px; line-height: 1.6; }
.nw-empty { color: #c9c3e8; text-align: center; }
/* 🗂️ الرئيسية مقسومة (طلب علي 2026-11-13): «تحديات اليوم» (مرة باليوم) فوق، و«العب أي وقت» تحتها.
   كل بطاقة تاخذ عرض الصفحة كامل، عشان ما تنضغط وتدخل الأزرار بالكلام. */
.home > #dailyStrip, .home > #dpStrip, .home > #qmButton, .home > .home-group { grid-column: 1 / -1; }
.home > #dailyStrip, .home > #dpStrip, .home > #qmButton { margin: 0; }
.home-group { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; color: #f5f3ff; font-size: 18px; font-weight: 800; }
.home-group small { color: #c4b5fd; font-size: 12.5px; font-weight: 600; }
.home-group::after { content: ''; flex: 1; height: 1px; background: linear-gradient(270deg, rgba(168, 85, 247, .6), transparent); }
/* 🧹 رئيسية أبسط (طلب علي 2026-11-14): عنوان «اختر لعبتك» يكفي عنه عنوان القسم، والأخبار سطر واحد، والترحيب أقصر */
.home-simple #gamesTitle { display: none; }
.home-simple .home > .room-entry, .home-simple .home > .qm-comp, .home-simple .home > .or-box { grid-column: 1 / -1; margin: 0; }
.home-simple .nw-card { margin: 4px 0 0; padding: 8px 12px; border-radius: 14px; box-shadow: none; }
.home-simple .nw-top { margin: 0 0 6px; }
.home-simple .nw-top h2 { font-size: 15px; }
.home-simple .nw-more { padding: 4px 10px; font-size: 12.5px; }
.home-simple .nw-item { padding: 6px 10px; }
.home-simple .nw-item ~ .nw-item, .home-simple .nw-item ul, .home-simple .nw-details { display: none !important; }
.home-simple .nw-head b { font-size: 14px; }
.hs-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.hs-tabs button { flex: 1; min-height: 42px; border: 1.5px solid rgba(168, 85, 247, .45); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #e9e4ff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.hs-tabs button[aria-pressed="true"] { border-color: #22d3ee; background: rgba(34, 211, 238, .16); color: #67e8f9; box-shadow: 0 0 12px rgba(34, 211, 238, .35); }
@media (max-width: 700px) {
  .home-simple .hero { min-height: 230px; }
  .home-simple .hero p { display: none; }
  .home-simple .hero h1 { margin-bottom: 10px; }
}
/* 🎮 طرق اللعب وزر الشرح تحت كل لعبة (استشارة 12) */
.game.has-modes { display: flex; flex-direction: column; }
.gm-help { position: absolute; z-index: 4; top: 8px; inset-inline-start: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #ec4899; background: rgba(20, 10, 51, .78); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 0 12px rgba(236, 72, 153, .7); }
/* اسم اللعبة ووصفها: شريط غامق فوق الصورة، ومكان محجوز لزر «؟» عشان ما يدخلون ببعض (طلب علي 2026-11-13) */
.game.has-modes .game-info { flex: none; width: 100%; box-sizing: border-box; padding: 10px 12px 18px; padding-inline-start: 48px; background: linear-gradient(180deg, rgba(12, 6, 34, .9) 0%, rgba(12, 6, 34, .65) 70%, transparent); }
.game.has-modes .game-info > div { gap: 3px; }
.game.has-modes .game-info h3 { margin: 0; font-size: 16px; line-height: 1.25; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); overflow-wrap: anywhere; }
.game.has-modes .game-info small { margin: 0; line-height: 1.35; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.gm-chips { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 8px 6px; margin-top: auto; background: rgba(20, 10, 51, .92); }
.gm-chip { --c: #22d3ee; display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 8px; border-radius: 99px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 14%, rgba(20, 10, 51, .8)); color: #fff !important; font-size: 12.5px; font-weight: 800; text-decoration: none; box-shadow: 0 0 10px -3px var(--c); white-space: nowrap; }
.gm-chip.m-friends { --c: #ec4899; } .gm-chip.m-race { --c: #ec4899; } .gm-chip.m-race + .gm-chip.m-friends { --c: #a855f7; } .gm-chip.m-group { --c: #a855f7; } .gm-chip.m-teams { --c: #facc15; } .gm-chip.m-daily { --c: #facc15; }
.gm-chip:hover { filter: brightness(1.15); }
.gm-chip-ic { font-size: 12px; }
@media (max-width: 480px) { .gm-chips { gap: 4px; padding: 7px 4px; } .gm-chip { min-height: 28px; padding: 0 7px; font-size: 11.5px; } }
.gm-sheet-wrap { position: fixed; inset: 0; z-index: 115; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 4, 24, .6); }
.gm-sheet-wrap[hidden] { display: none; }
.gm-sheet { position: relative; width: min(520px, 100%); display: grid; gap: 10px; padding: 12px 18px 20px; border-radius: 24px 24px 0 0; border: 2px solid transparent; border-bottom: 0; direction: rtl; color: #f5f3ff;
  background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #22d3ee, #a855f7, #ec4899) border-box; box-shadow: 0 -10px 40px -10px rgba(236, 72, 153, .6); animation: frIn .25s ease-out both; }
.gm-grip { justify-self: center; width: 46px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .3); }
.gm-back { justify-self: start; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #22d3ee; color: #140a33; font: inherit; font-weight: 800; cursor: pointer; }
.gm-sheet h3 { margin: 0; text-align: center; font-size: 21px; }
.gm-how { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gm-how li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 15px; font-weight: 700; }
.gm-ic { font-size: 20px; }
.gm-go { display: flex; justify-content: center; align-items: center; min-height: 50px; border-radius: 99px; background: linear-gradient(90deg, #facc15, #f59e0b); color: #140a33 !important; font-size: 18px; font-weight: 800; text-decoration: none; box-shadow: 0 0 18px rgba(250, 204, 21, .6), 0 0 0 2px #ec4899; }
/* 🏆 منصة مصغرة بمربعات السكورات (استشارة 12): الاسم كامل تحت الصورة */
li.mini-podium { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 6px; padding: 8px 2px 4px !important; border: 0 !important; background: none !important; list-style: none; }
.mp-col { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 8px 3px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(167, 139, 250, .22); text-align: center; }
.mp-col.p1 { padding-top: 4px; transform: translateY(-6px); border-color: rgba(250, 204, 21, .7); background: linear-gradient(180deg, rgba(250, 204, 21, .14), rgba(255, 255, 255, .03)); box-shadow: 0 0 16px -5px rgba(250, 204, 21, .9); }
.mp-col.me { outline: 2px solid #ec4899; }
.mp-face { position: relative; display: inline-block; }
.mp-face .rank-avatar { width: 44px !important; height: 44px !important; margin: 0 !important; font-size: 18px !important; border-radius: 50%; }
.mp-col.p1 .mp-face .rank-avatar { width: 52px !important; height: 52px !important; }
.mp-no { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #140a33; border: 1.5px solid #c4b5fd; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.mp-col.p1 .mp-no { border-color: #facc15; background: #facc15; color: #140a33; }
.mp-col.p2 .mp-no { border-color: #e2e8f0; }
.mp-col.p3 .mp-no { border-color: #fb923c; }
.mp-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; max-width: 100%; color: #f5f3ff; font-size: 12.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; white-space: normal; }
.mp-pts { color: #facc15; font-size: 12px; font-variant-numeric: tabular-nums; }
/* 👤 بطاقة زيارة اللاعب (استشارة 9) */
.pc-tap { cursor: pointer; }
.pc-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(8, 4, 24, .72); backdrop-filter: blur(4px); animation: pageIn .2s ease-out both; }
.pc-card { position: relative; width: min(400px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 10px; padding: 16px; border-radius: 22px; border: 2px solid transparent; color: #f5f3ff; text-align: start; direction: rtl;
  background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #22d3ee, #a855f7, #ec4899) border-box; box-shadow: 0 0 30px -6px rgba(34, 211, 238, .55), 0 0 40px -10px rgba(236, 72, 153, .55); }
.pc-card.pc-t2 { background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #fde68a, #facc15, #d97706) border-box; }
.pc-card.pc-t3 { background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #fb923c, #ec4899, #f43f5e) border-box; }
.pc-card.pc-t4 { background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #facc15, #a855f7, #facc15) border-box; box-shadow: 0 0 36px -4px rgba(168, 85, 247, .8); }
.pc-back { justify-self: start; min-height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: #22d3ee; color: #140a33; font: inherit; font-weight: 800; cursor: pointer; }
.pc-loading { margin: 10px 0; color: #c9c3e8; text-align: center; }
.pc-head { display: flex; align-items: center; gap: 14px; }
.pc-face-wrap { position: relative; flex: none; }
.pc-face { display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 50%; background: #2b1963; font-size: 34px; font-weight: 800; }
.pc-face img { width: 100%; height: 100%; object-fit: cover; }
.pc-lv { position: absolute; bottom: -2px; inset-inline-start: -4px; min-width: 28px; height: 28px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: #140a33; border: 2px solid #22d3ee; font-size: 13px; font-weight: 800; box-shadow: 0 0 10px rgba(34, 211, 238, .7); }
.pc-who { display: grid; gap: 3px; min-width: 0; }
.pc-name { font-size: 22px; overflow-wrap: anywhere; }
.pc-id { color: #22d3ee; font-size: 13px; font-weight: 800; }
.pc-rank { color: #67e8f9; font-size: 14px; font-weight: 700; }
.pc-title { justify-self: start; padding: 2px 10px; border-radius: 99px; border: 1.5px solid #facc15; background: rgba(250, 204, 21, .1); color: #facc15; font-size: 12.5px; font-weight: 800; }
.pc-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899); box-shadow: 0 0 10px rgba(236, 72, 153, .7); }
.pc-xp { color: #c9c3e8; font-size: 12.5px; margin-top: -4px; }
.pc-info { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(20, 10, 51, .55); font-size: 14px; }
.pc-status.st-online { color: #4ade80; font-weight: 800; }
.pc-status.st-today { color: #67e8f9; } .pc-status.st-week { color: #c4b5fd; } .pc-status.st-old { color: #8b84b3; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.pc-stats div { padding: 8px 4px; border-radius: 12px; border: 1px solid rgba(167, 139, 250, .3); background: rgba(255, 255, 255, .04); }
.pc-stats b { display: block; font-size: 20px; }
.pc-stats small { color: #b9b2dc; font-size: 11.5px; }
.pc-sub { margin: 0 0 6px; color: #e9e5ff; font-size: 14px; font-weight: 800; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(250, 204, 21, .6); background: rgba(250, 204, 21, .08); color: #fde68a; font-size: 12.5px; font-weight: 700; }
.pc-none { color: #8b84b3; font-size: 13px; }
.pc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #22d3ee; border-radius: 12px; background: rgba(34, 211, 238, .12); color: #fff !important; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.pc-btn.cyan { flex: 1; background: #22d3ee; color: #140a33 !important; box-shadow: 0 0 14px rgba(34, 211, 238, .6); }
.pc-btn.green { flex: 1; border-color: #22c55e; background: rgba(34, 197, 94, .2); }
.pc-btn.red { flex: 1; border-color: #f43f5e; background: rgba(244, 63, 94, .16); }
.pc-btn.pink { flex: 1; border-color: #ec4899; background: rgba(236, 72, 153, .18); }
.pc-btn.ghost { border-color: rgba(255, 255, 255, .2); background: none; color: #c9c3e8 !important; }
.pc-btn.small { min-height: 36px; padding: 0 10px; font-size: 12.5px; margin-inline-start: auto; }
.pc-btn:disabled { opacity: .6; }
.pc-state { flex-basis: 100%; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 800; font-size: 14px; }
.pc-state.ok { color: #4ade80; } .pc-state.bad { color: #fb7185; }
.pc-note { margin: 0; min-height: 0; color: #fde68a; font-size: 13px; font-weight: 700; }
/* 🆚 أنا وهو + 👏 تحية + 🚩 بلاغ (2026-11-17) */
.pc-vs { padding: 10px 12px; border: 1px solid rgba(236, 72, 153, .35); border-radius: 14px; background: rgba(236, 72, 153, .06); }
.pc-vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 10px; align-items: center; text-align: center; font-size: 13.5px; }
.pc-vs-grid small { color: #c4b5fd; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-vs-grid span { color: #a5a0c8; font-size: 12.5px; }
.pc-vs-grid b { font-variant-numeric: tabular-nums; color: #e9e5ff; }
.pc-vs-grid b.win { color: #4ade80; text-shadow: 0 0 8px rgba(74, 222, 128, .5); }
.pc-vs-h2h { margin: 8px 0 0; color: #fde68a; font-size: 13px; font-weight: 700; text-align: center; }
.pc-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-btn.yellow { flex: 1; border-color: #facc15; background: rgba(250, 204, 21, .14); }
.pc-btn.on { border-color: #f43f5e; background: rgba(244, 63, 94, .25); color: #fff !important; }
.pc-report { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid rgba(244, 63, 94, .4); border-radius: 14px; background: rgba(244, 63, 94, .06); }
.pc-report .pc-btn.small { margin-inline-start: 0; }
.pc-report-note { min-height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(20, 10, 51, .7); color: #fff; font: inherit; font-size: 14px; }
.pc-note:empty { display: none; }
/* 📩 شريط طلب الصداقة: ثابت تحت لين يقبل أو يرفض */
.fr-bar { position: fixed; z-index: 110; inset: auto 10px 12px; max-width: 520px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 16px; direction: rtl; color: #f5f3ff;
  border: 2px solid transparent; background: linear-gradient(160deg, #2b1963, #1a0d40) padding-box, linear-gradient(110deg, #ec4899, #a855f7, #22d3ee) border-box; box-shadow: 0 0 24px -4px rgba(236, 72, 153, .75), 0 12px 30px -10px rgba(0, 0, 0, .8); animation: frIn .35s ease-out both; }
@keyframes frIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.fr-face { flex: none; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: #2b1963; font-weight: 800; }
.fr-face img { width: 100%; height: 100%; object-fit: cover; }
.fr-text { flex: 1; min-width: 150px; font-size: 14px; line-height: 1.4; }
.fr-text b { color: #fde68a; }
.fr-text small { color: #c9c3e8; }
.fr-acts { display: flex; gap: 6px; margin-inline-start: auto; }
.fr-acts button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.fr-yes { background: #22c55e; color: #052e16; box-shadow: 0 0 12px rgba(34, 197, 94, .6); }
.fr-no { background: rgba(244, 63, 94, .22); color: #fecdd3; border: 1px solid rgba(244, 63, 94, .6) !important; }
.fr-done { justify-content: center; font-weight: 800; color: #4ade80; }
@media (prefers-reduced-motion: reduce) { .fr-bar { animation: none; } }
/* نقطة حمرا على الصورة لطلب صداقة جديد */
.profile-btn.has-req { position: relative; overflow: visible !important; }
.profile-btn.has-req::before { content: ""; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; z-index: 2; }
.pf-search { display: flex; gap: 6px; margin-top: 10px; }
.pf-search input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(167, 139, 250, .45); background: rgba(20, 10, 51, .8); color: #f5f3ff; font: inherit; font-size: 13.5px; }
.pf-search input:focus { outline: none; border-color: #22d3ee; }
.pf-search button { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #22d3ee; color: #140a33; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pf-head { margin: 6px 6px 2px; color: #fde68a; font-size: 12.5px; font-weight: 800; }
.pf-req { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; background: rgba(236, 72, 153, .1); }
.pf-req bdi { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.pf-req button { flex: none; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.pf-req .yes { background: #22c55e; color: #052e16; } .pf-req .no { background: rgba(244, 63, 94, .25); color: #fecdd3; }
.pf-dec { padding: 6px 8px; border-radius: 10px; background: rgba(244, 63, 94, .1); color: #fecdd3; font-size: 12.5px; }
.pf-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline-start: 6px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11.5px; font-weight: 800; }
button.pf-row { width: 100%; border: 0; font: inherit; text-align: start; cursor: pointer; }
/* 👥 أصدقائي داخل قائمة الصورة */
.pf-add { display: flex; gap: 6px; padding: 4px; }
.pf-add input { flex: 1; min-width: 0; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(167, 139, 250, .4); background: rgba(20, 10, 51, .8); color: #f5f3ff; font: inherit; font-size: 13.5px; }
.pf-add input:focus { outline: none; border-color: #22d3ee; }
.pf-add button { flex: none; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: #22d3ee; color: #140a33; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pf-note { margin: 2px 6px; min-height: 0; font-size: 12.5px; }
.pf-note:empty { display: none; }
.pf-note.ok { color: #4ade80; } .pf-note.bad { color: #fb7185; }
.pf-rows { display: grid; gap: 4px; padding: 2px 4px; color: #c9c3e8; font-size: 13px; }
.pf-row { text-decoration: none; color: #f5f3ff !important; background: rgba(255, 255, 255, .04) !important; }
.pf-row.on { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .55); }
.pf-row small { margin-inline-start: auto; color: #b9b2dc; font-size: 11.5px; }
.pf-row.on small { color: #4ade80; }
.pf-all { display: block; margin: 4px; padding: 8px; border-radius: 10px; border: 1px solid rgba(236, 72, 153, .55); color: #fff !important; text-align: center; font-size: 12.5px; font-weight: 800; text-decoration: none; }
.profile-friends:hover { background: rgba(236, 72, 153, .24); }
.profile-level .pl-go { color: #22d3ee; font-size: 12.5px; font-weight: 800; }

/* 🆘 الفزعة السريعة (المرحلة 4) */
.fazaa-wrap { display: grid; gap: 6px; }
/* تصميم جيميناي: زر أحمر/وردي كبير ينبض، وتحته 4 مربعات ألعاب */
.fazaa-btn { min-height: 52px; padding: 12px 18px; border-radius: 16px; border: 2px solid #fb7185; background: linear-gradient(135deg, #e11d48, #db2777); color: #fff; font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; box-shadow: 0 0 18px rgba(244, 63, 94, .65), inset 0 1px 0 rgba(255, 255, 255, .25); animation: fazaaPulse 1.8s ease-in-out infinite; }
.fazaa-btn:hover { filter: brightness(1.1); }
.fazaa-btn:disabled { opacity: .7; animation: none; }
@keyframes fazaaPulse { 50% { box-shadow: 0 0 30px rgba(244, 63, 94, .95), inset 0 1px 0 rgba(255, 255, 255, .25); } }
.fazaa-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(43, 25, 99, .9), rgba(26, 13, 64, .9)); border: 1px solid rgba(244, 63, 94, .5); box-shadow: 0 0 18px -6px rgba(244, 63, 94, .6); }
/* القائمة المقفلة ما تبين كشريط فاضي تحت «فزعة سريعة» (طلب علي 2026-11-13) */
.fazaa-menu[hidden], .fazaa-menu:empty { display: none; }
.fazaa-menu p { grid-column: 1 / -1; margin: 0 0 4px; font-size: 14px; color: #f5f3ff; text-align: center; font-weight: 700; }
.fazaa-menu a { display: grid; place-items: center; gap: 4px; min-height: 76px; padding: 8px 4px; border-radius: 14px; border: 1.5px solid #22d3ee; background: rgba(34, 211, 238, .08); color: #f5f3ff; text-decoration: none; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.3; }
.fazaa-menu a:nth-of-type(2) { border-color: #ec4899; background: rgba(236, 72, 153, .08); }
.fazaa-menu a:nth-of-type(3) { border-color: #a855f7; background: rgba(168, 85, 247, .08); }
.fazaa-menu a:nth-of-type(4) { border-color: #facc15; background: rgba(250, 204, 21, .08); }
.fazaa-menu a .fz-ic { font-size: 26px; line-height: 1; }
@media (max-width: 380px) { .fazaa-menu { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .fazaa-btn { animation: none; } }
/* 🏆 أسماء اللاعبين بالسكورات تبين كاملة: تنزل لسطر ثاني بدل ما تنقص بـ«…» (طلب علي 2026-11-13) */
.sb-pname, .sb-row .who, .sb-side .nm, .sb-mine .info b, .podium-name, .wc-who b,
.rank-chip bdi, .score-card2 .sc-row bdi, .sc-pop .sc-line bdi, .live-board .who, .room-list .who {
  overflow: visible !important; text-overflow: clip !important; white-space: normal !important; overflow-wrap: anywhere; line-height: 1.25; max-width: none !important;
}
.fazaa-toast { position: fixed; z-index: 95; inset: auto 12px 16px; max-width: 420px; margin-inline: auto; padding: 12px 14px; border-radius: 14px; background: #22124f; border: 1px solid #ec4899; color: #f5f3ff; font-weight: 700; text-align: center; box-shadow: 0 0 18px rgba(236, 72, 153, .45); }

/* ✨ المرحلة 5: حركات انتقال خفيفة (ربع ثانية) — تنطفي لو الجهاز طالب «تقليل الحركة» */
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main { animation: pageIn .24s ease-out both; }
.game-card, .pz-friends-tile, .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.game-card:hover, .pz-friends-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 26px -12px rgba(34, 211, 238, .55), 0 0 0 1px rgba(34, 211, 238, .45); }
.btn, button { transition: transform .12s ease, filter .15s ease; }
.btn:active, button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { main { animation: none; } .game-card:hover, .pz-friends-tile:hover { transform: none; } .btn:active, button:active { transform: none; } }

/* ☀️ الوضع النهاري (تجريبي): نقلب الألوان الداكنة لفاتحة ونرجع الصور والألعاب لألوانها الأصلية */
html[data-theme="day"] { filter: invert(1) hue-rotate(180deg); background: #0a0c00; }
html[data-theme="day"] img, html[data-theme="day"] canvas, html[data-theme="day"] video, html[data-theme="day"] picture,
html[data-theme="day"] .rank-avatar, html[data-theme="day"] .sb-face, html[data-theme="day"] .wc-face, html[data-theme="day"] .chat-face,
html[data-theme="day"] [style*="background-image"], html[data-theme="day"] .no-invert { filter: invert(1) hue-rotate(180deg); }
.theme-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-toggle button { flex: 1; min-width: 120px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: #f5f3ff; font: inherit; font-weight: 700; cursor: pointer; }
.theme-toggle button.on { border-color: #22d3ee; background: rgba(34, 211, 238, .12); }

/* ⚡ عداد مكافأة السرعة (مجلس 18) */
.speed-badge{position:fixed;top:calc(env(safe-area-inset-top,0px) + 64px);left:50%;transform:translateX(-50%);z-index:60;padding:6px 14px;border-radius:999px;font-weight:800;font-size:14px;color:#fff7c2;background:rgba(40,12,70,.88);border:1px solid #ffd84d;box-shadow:0 0 12px rgba(255,216,77,.55),inset 0 0 8px rgba(255,216,77,.25);text-shadow:0 0 6px rgba(255,216,77,.8);pointer-events:none;white-space:nowrap}
.speed-badge.off{color:#c9b8e8;border-color:#6b4fa0;box-shadow:none;text-shadow:none;opacity:.8}
.speed-badge[hidden]{display:none}
.speed-badge.drop{animation:speedDrop .5s ease}
@keyframes speedDrop{0%{transform:translateX(-50%) scale(1.25)}100%{transform:translateX(-50%) scale(1)}}
.hearts-hit{animation:heartsHit .45s ease}
@keyframes heartsHit{0%,100%{transform:none}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
/* فترات التوب: الأسبوع · اليوم · أبطال أمس · كل الأوقات (مربعين × مربعين) */
.sb-tabs.two.three{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,380px);border-radius:20px;gap:3px}
.sb-tabs.two.three .sb-tab{font-size:13px;padding:0 4px}

/* 🛡️ مربع «ادمن - افتح غرفتك» انشال: الحين أي واحد يفتح غرفة جماعية (طلب علي 2026-11-15). الأدمن يدخل من «لوحة التحكم» فوق */
#modeAdmin { display: none !important; }
/* 👥 صفحة «جماعي»: زر الغرفة الجماعية لحاله بعرض كامل */
.room-mode .rm-solo-tile { grid-column: 1 / -1 !important; width: 100% !important; }
.room-mode .rm-solo-tile { aspect-ratio: auto !important; height: auto !important; min-height: 110px !important; }
/* 🧹 صفحات الألعاب: بدون «لوحة التحكم» و«مشرفين» و«السجل» فوق — موجودين بالرئيسية (طلب علي 2026-11-15) */
.in-game .dash-btn, .in-game .chat-in-game-bar, .in-game .chat-in-game, .in-game .chat-in-bar, .in-game .chat-open, .in-game .site-bar a[href*="results.html"], .in-game header a[href*="results.html"] { display: none !important; }
