/* خطوط توب 10 وألوانها؛ ملفات الخطوط داخل مسار اللعبة.
   woff2 مضغوط بلا فقد أولاً والـttf احتياط (مراجعة السرعة 2026-11-08، حاجز tools/site/check_site_fonts.py). */
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Regular.woff2") format("woff2"), url("fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Medium.woff2") format("woff2"), url("fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Bold.woff2") format("woff2"), url("fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-ExtraBold.woff2") format("woff2"), url("fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/Rubik-Variable.woff2") format("woff2"), url("fonts/Rubik-Variable.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
/* هوية «ليلة الديوانية» (تجربة Impeccable 2026-10-19): حبر ليلي مائل للأزرق، ذهب زعفران للإجراء، ورق كريمي للإجابة المكشوفة،
   أحمر للسلبي فقط، ولونا الفريقين للفريقين فقط (لا يُستعملان زينة) */
:root {
  --bg: #0D1326; --panel: #161E3D; --panel-2: #202A55; --line: #5C69A3; --line-soft: #2E3869; --used: #080C1B;
  --text: #F6F0E0; --muted: #B6BBD6; --on-color: #fff;
  --paper: #F5EEDC; --ink: #1B1633; --ink-soft: #5B5572;
  --gold: #FBAC28; --gold-deep: #8C6016; --gold-text: #FBAC28;
  --brand: #FBAC28; --brand-deep: #8C6016; --brand-text: #FBAC28;
  --action: #C8A6FF; --action-deep: #6F4BB8;
  --team-a: #4C8DFF; --team-a-deep: #1F4FC0; --team-a-text: #A9C6FF;
  --team-b: #FF7A45; --team-b-deep: #B83F0E; --team-b-text: #FFB799;
  --ok: #7BE0A4; --bad: #C81E45; --bad-text: #FF8AA2; --warn: #FFB81C; --hint: #FBAC28;
  --num: "Rubik", "Tajawal", system-ui, sans-serif;
  --txt: "Tajawal", "Geeza Pro", system-ui, sans-serif;

  --i-bulb: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
  --i-skip: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5l9 7-9 7V5zM19 5v14'/%3E%3C/svg%3E");
  --i-pause: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v14M16 5v14'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2L12 3zM12 10v5M12 18v.01'/%3E%3C/svg%3E");
  --i-rotate: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2h8a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zM11 18h2'/%3E%3C/svg%3E");
  --i-tv: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zM8 22h8M12 19v3'/%3E%3C/svg%3E");
  --i-help: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.7.4-1 .9-1 1.7M12 17v.01'/%3E%3C/svg%3E");
  --i-expand: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E");
  --i-bell: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2 7 2 7H4s2-1 2-7zM10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
  --i-sound: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4V9zM16 9a4 4 0 0 1 0 6M19 6a8 8 0 0 1 0 12'/%3E%3C/svg%3E");
  --i-mute: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4V9zM17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E");
  /* منحنيات وأزمنة الحركة (مهارة إميل كوفالسكي): خروج حاد للدخول والاستجابة، تحرك على الشاشة، ونطة خفيفة للّعب */
   --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);   /* بلا ارتداد (إمبكابل: bounce-easing 2026-10-26) */
  --t-press: 160ms; --t-ui: 220ms; --t-reveal: 420ms;
}
.t-a { --tc: var(--team-a); --tcd: var(--team-a-deep); --tct: var(--team-a-text); }
.t-b { --tc: var(--team-b); --tcd: var(--team-b-deep); --tct: var(--team-b-text); }
.ts, .pts, .rank, .rt, .code { font-variant-numeric: tabular-nums; }
/* أيقونات مرسومة بخط واحد بدل الإيموجي (قناع SVG بلون الكتابة) */
.ic { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-rotate { --ic: var(--i-rotate); } .ic-bell { --ic: var(--i-bell); } .ic-pause { --ic: var(--i-pause); }
.icb::before { content: ""; display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.12em; margin-inline-end: .35em; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
