/* ════════════════════════════════════════════════════════════════
   «هدف السرعة» — التنسيق
   ════════════════════════════════════════════════════════════════ */

/* ─── بطاقة العنوان في الإعداد ─── */
.gc-hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 22px;
  border-radius: 22px; margin-bottom: var(--s4); padding: 22px clamp(16px, 3vw, 32px); color: #fff;
  background:
    radial-gradient(120% 140% at 85% 120%, rgba(34, 211, 238, .35), transparent 55%),
    radial-gradient(90% 120% at 0% 0%, rgba(242, 140, 24, .35), transparent 50%),
    linear-gradient(135deg, #0b1f33, #0e3b2a 70%, #0b2a1d);
}
.gc-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; opacity: .55;
  background: repeating-linear-gradient(90deg, #2f7a25 0 38px, #3a8a2c 38px 76px);
  mask-image: linear-gradient(transparent, #000 70%);
}
.gc-hero-txt { flex: 1 1 auto; min-width: 0; }
.gc-hero h2 { margin: 6px 0 4px; font-size: clamp(30px, 4.4vw, 54px); font-weight: 900; line-height: 1.15; letter-spacing: -.5px; }
.gc-hero p { margin: 0; max-width: 62ch; font-weight: 700; font-size: var(--fs-sm); color: #d7ecf2; }
.gc-hero-tag { display: inline-flex; gap: 6px; align-items: center; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: var(--fs-xs); font-weight: 800; }
.gc-hero-tag svg { width: 15px; height: 15px; }
.gc-hero-art { flex: 0 0 auto; display: grid; justify-items: center; gap: 10px; }
.gc-hero-ball {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: #10213a;
  background: radial-gradient(circle at 35% 30%, #fff, #dfe6ee 60%, #9fb0c2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .45), inset -8px -10px 18px rgba(0, 0, 0, .18);
  animation: gcBounce 1.6s cubic-bezier(.3, 0, .4, 1) infinite;
}
.gc-hero-ball svg { width: 74px; height: 74px; }
@keyframes gcBounce { 0%, 100% { transform: translateY(0) rotate(0) } 45% { transform: translateY(-16px) rotate(140deg) } 55% { transform: translateY(-16px) rotate(160deg) } }
.gc-hero-goals { display: flex; gap: 6px; }
.gc-hero-goals i {
  font-style: normal; width: 34px; height: 26px; display: grid; place-items: center; font-weight: 900; font-size: 15px;
  border: 3px solid var(--c); border-bottom: 0; border-radius: 6px 6px 0 0; color: #fff; background: color-mix(in srgb, var(--c) 35%, transparent);
}
@media (max-width: 640px) { .gc-hero { flex-direction: column; text-align: center; } }

.gc-card { margin-bottom: var(--s3); }
.gc-card-h { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s3); }
.gc-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s3); align-items: end; }
.gc-roster { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line, #d8dee4); background: var(--surface, #fff); font: inherit; font-weight: 700; font-size: var(--fs-xs);
  transition: background .15s, border-color .15s, transform .1s;
}
.gc-chip:hover { border-color: #1f7ae0; }
.gc-chip:active { transform: scale(.97); }
.gc-chip.is-on { background: #1f7ae0; border-color: #1f7ae0; color: #fff; box-shadow: 0 4px 12px rgba(31, 122, 224, .35); }
.gc-chip.is-played:not(.is-on) { opacity: .62; }
.gc-chip svg { width: 14px; height: 14px; }
.gc-colors { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.gc-color {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 3px solid #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 60%);
  box-shadow: 0 0 0 1.5px #c9d1d9, 0 3px 8px rgba(0, 0, 0, .2); transition: transform .12s, box-shadow .12s;
}
.gc-color.on { transform: scale(1.12); box-shadow: 0 0 0 3px #1f7ae0, 0 4px 12px rgba(0, 0, 0, .3); }
.gc-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px 18px; margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 700; }
.gc-how div { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.gc-how span { color: var(--muted, #5b6672); margin-inline-start: 4px; }
.gc-card kbd, .gc-keys kbd {
  display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 7px; text-align: center; font: 800 14px/1.6 inherit;
  background: #f1f4f7; border: 1px solid #cfd6dd; border-bottom-width: 3px; color: #1c2733;
}
.gc-rules { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.gc-go { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: var(--s4) 0; }

/* ════════════════════════════════════════════════════════════════
   الملعب
   ════════════════════════════════════════════════════════════════ */
.gc-stage {
  --gc-glass: rgba(6, 16, 28, .62); --gc-line: rgba(255, 255, 255, .16);
  position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; background: #06121c; color: #fff;
  height: calc(100dvh - 16px); min-height: 520px; user-select: none; -webkit-user-select: none; touch-action: none;
}
.gc-stage:fullscreen { height: 100vh; border-radius: 0; }
.gc-stage [hidden] { display: none !important; }
.gc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.gc-marks { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.gc-mark {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  display: grid; place-items: center; font: 900 21px/1 "Noto Sans Arabic", sans-serif; color: #fff;
  background: var(--c); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); opacity: .92;
}
.gc-mark.is-edge::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: conic-gradient(from calc(var(--rot) + 90deg - 18deg), var(--c) 0 36deg, transparent 36deg);
  mask: radial-gradient(circle, transparent 60%, #000 61%); transform: rotate(0);
}
.gc-mark.is-ball { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: #fff; border-color: #0b1724; }
.gc-mark.is-ball::after { --c: #fff; }

/* ─── الشريط العلويّ: النتيجة · السؤال · المؤقّت ─── */
.gc-top {
  position: absolute; top: 10px; inset-inline: 10px; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  pointer-events: none;
}
.gc-board, .gc-q, .gc-timer {
  background: var(--gc-glass); border: 1px solid var(--gc-line); border-radius: 16px;
  backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.gc-board { padding: 8px 14px; display: grid; gap: 4px; justify-items: center; min-width: 150px; }
.gc-who { display: grid; gap: 3px; justify-items: center; }
.gc-driver { display: inline-flex; gap: 5px; align-items: center; font-weight: 800; font-size: 17px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-driver svg { width: 15px; height: 15px; flex: none; }
.gc-trial { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #f59e0b; color: #2a1800; }
.gc-score { display: flex; align-items: baseline; gap: 4px; }
.gc-score b { font-size: 42px; font-weight: 900; line-height: 1; color: #ffd54a; text-shadow: 0 2px 12px rgba(255, 213, 74, .5); }
.gc-score span { font-weight: 800; color: #b8c7d4; }
.gc-dots { display: flex; gap: 6px; }
.gc-dots i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .3); }
.gc-dots i.is-now { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.gc-dots i.is-ok { background: #22c55e; border-color: #86efac; }
.gc-dots i.is-bad { background: #ef4444; border-color: #fca5a5; }

.gc-q { padding: 10px 16px 12px; text-align: center; min-width: 0; }
.gc-qn { display: inline-block; font-size: 14px; font-weight: 800; color: #9fd9ee; letter-spacing: .3px; }
.gc-qt { margin: 2px 0 8px; font-size: clamp(20px, 2.3vw, 34px); font-weight: 900; line-height: 1.35; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.gc-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gc-opt {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 30%, rgba(0, 0, 0, .35)); border: 2px solid var(--c);
  font-weight: 800; font-size: clamp(15px, 1.5vw, 22px); transition: transform .25s, background .25s, opacity .25s;
}
.gc-opt i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font-weight: 900; }
.gc-opt.is-right { background: #16a34a; border-color: #86efac; transform: scale(1.07); box-shadow: 0 0 22px rgba(34, 197, 94, .6); }
.gc-opt.is-wrong { background: #b91c1c; border-color: #fca5a5; opacity: .9; }

.gc-timer { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; }
.gc-timer svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); transform: rotate(-90deg); }
.gc-timer circle { fill: none; stroke-width: 8; }
.gc-timer .bg { stroke: rgba(255, 255, 255, .15); }
.gc-timer .fg { stroke: #22d3ee; stroke-linecap: round; stroke-dasharray: 276.46; transition: stroke-dashoffset .1s linear, stroke .3s; }
.gc-timer b { font-size: 36px; font-weight: 900; position: relative; }
.gc-timer.is-low .fg { stroke: #ef4444; }
.gc-timer.is-low b { color: #fca5a5; animation: gcPulse .5s ease-in-out infinite alternate; }
@keyframes gcPulse { to { transform: scale(1.14) } }

/* ─── رسائل المنتصف ─── */
.gc-msg {
  position: absolute; left: 50%; top: 46%; z-index: 6; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
  display: grid; justify-items: center; gap: 6px; text-align: center; transition: opacity .25s, transform .35s cubic-bezier(.2, 1.6, .4, 1);
}
.gc-msg.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gc-big {
  font-size: clamp(48px, 8vw, 120px); font-weight: 900; line-height: 1.05; white-space: nowrap;
  -webkit-text-stroke: 2px rgba(0, 0, 0, .25); text-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 0 40px rgba(255, 255, 255, .35);
}
.gc-sub { font-size: clamp(18px, 2vw, 30px); font-weight: 800; padding: 6px 18px; border-radius: 999px; background: rgba(0, 0, 0, .55); }
.gc-count { font-size: clamp(90px, 15vw, 210px); font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 8px 0 rgba(0, 0, 0, .3), 0 0 50px rgba(34, 211, 238, .7); animation: gcCount .8s ease-out; }
.gc-count.is-go { color: #ffd54a; text-shadow: 0 8px 0 rgba(0, 0, 0, .3), 0 0 60px rgba(255, 213, 74, .8); }
@keyframes gcCount { from { transform: scale(1.8); opacity: 0 } 30% { opacity: 1 } to { transform: scale(1) } }
.gc-msg.is-ok .gc-big { color: #4ade80; }
.gc-msg.is-bad .gc-big { color: #f87171; }
.gc-msg.is-warn .gc-big { color: #fbbf24; }
.gc-msg.is-info .gc-big { font-size: clamp(32px, 5vw, 64px); }

/* سرعة الضربة */
.gc-hit {
  position: absolute; z-index: 5; left: 50%; bottom: 26%; transform: translateX(-50%); opacity: 0; pointer-events: none;
  display: grid; justify-items: center; font-weight: 800; font-size: 20px; text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}
.gc-hit b { font-size: 46px; font-weight: 900; color: #ffd54a; line-height: 1; }
.gc-hit span { font-size: 18px; color: #fde68a; }
.gc-hit.on { animation: gcHit 1.3s ease-out forwards; }
@keyframes gcHit { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.7) } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1) } 70% { opacity: 1; transform: translate(-50%, -10px) scale(1) } 100% { opacity: 0; transform: translate(-50%, -30px) } }

/* ─── الخريطة والعدّاد ─── */
.gc-mini {
  position: absolute; z-index: 4; inset-inline-end: 14px; bottom: 14px; width: clamp(120px, 15vw, 200px); height: auto; aspect-ratio: 1;
  border-radius: 50%; background: rgba(6, 16, 28, .55); border: 2px solid var(--gc-line); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.gc-gauge { position: absolute; z-index: 4; inset-inline-start: 14px; bottom: 14px; width: clamp(120px, 13vw, 168px); aspect-ratio: 1; display: grid; place-items: center; }
.gc-gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.gc-gauge circle { fill: rgba(6, 16, 28, .62); stroke-width: 11; }
.gc-gauge .bg { stroke: rgba(255, 255, 255, .14); }
.gc-gauge .fg { fill: none; stroke: #ff9a1f; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 210; transition: stroke-dashoffset .15s; }
.gc-gauge.is-full .fg { stroke: #ffd54a; filter: drop-shadow(0 0 6px #ffb020); }
.gc-gauge.is-empty .gc-gauge-in b { color: #f87171; }
.gc-gauge-in { position: relative; display: grid; justify-items: center; line-height: 1; }
.gc-gauge-in b { font-size: clamp(34px, 3.6vw, 48px); font-weight: 900; }
.gc-gauge-in span { font-size: 13px; font-weight: 800; color: #ffcf8a; }
.gc-speed { position: absolute; bottom: -4px; inset-inline-start: 100%; margin-inline-start: 6px; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.gc-speed b { font-size: clamp(28px, 3vw, 40px); font-weight: 900; font-variant-numeric: tabular-nums; }
.gc-speed span { font-weight: 800; color: #bcd; font-size: 14px; }
.gc-gauge.is-super .gc-speed b { color: #7dd3fc; text-shadow: 0 0 16px rgba(125, 211, 252, .9); }

/* ─── الأدوات ─── */
.gc-tools { position: absolute; z-index: 7; top: 118px; inset-inline-end: 12px; display: grid; gap: 8px; }
.gc-tool {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: var(--gc-glass); border: 1px solid var(--gc-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .15s, transform .1s;
}
.gc-tool svg { width: 22px; height: 22px; }
.gc-tool:hover { background: rgba(255, 255, 255, .18); }
.gc-tool:active { transform: scale(.93); }
.gc-tool.on { background: #0e7490; border-color: #22d3ee; }
.gc-tool.is-stop:hover { background: #b91c1c; }
.gc-tool:focus-visible { outline: 3px solid #22d3ee; outline-offset: 2px; }
.gc-keys {
  position: absolute; z-index: 7; top: 118px; inset-inline-end: 66px; display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px;
  background: rgba(6, 16, 28, .86); border: 1px solid var(--gc-line); font-size: 15px; font-weight: 700;
}
.gc-keys kbd { background: #1d2c3b; color: #fff; border-color: #3b4d60; font-size: 13px; }

/* ─── اللمس ─── */
.gc-touch { display: none; }
.gc-stage.has-touch .gc-touch { display: block; }
.gc-stage.has-touch .gc-gauge { bottom: auto; top: 118px; inset-inline-start: 12px; width: 108px; }
.gc-stage.has-touch .gc-mini { bottom: auto; top: 118px; inset-inline-end: 66px; width: 110px; }
.gc-stick {
  position: absolute; z-index: 6; left: 26px; bottom: 26px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04) 70%); border: 2px solid rgba(255, 255, 255, .3); touch-action: none;
}
.gc-stick i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.gc-btns { position: absolute; z-index: 6; right: 22px; bottom: 22px; display: grid; grid-template-columns: auto auto; gap: 12px; align-items: end; }
.gc-tb {
  width: 92px; height: 92px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); color: #fff; font: 900 17px inherit; touch-action: none;
  background: rgba(255, 255, 255, .14); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.gc-tb.is-boost { background: rgba(255, 140, 20, .55); }
.gc-tb.is-jump { background: rgba(34, 197, 94, .5); width: 104px; height: 104px; }
.gc-tb.is-slide { grid-column: 1 / -1; justify-self: center; width: 72px; height: 72px; font-size: 14px; }
.gc-tb.on { transform: scale(.92); background: rgba(255, 255, 255, .45); }

/* ─── تحميل وإيقاف ونهاية ─── */
.gc-loading, .gc-pausebox { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(4, 10, 18, .72); font-size: 24px; }
.gc-pausebox b { font-size: 46px; font-weight: 900; }
.gc-spin { width: 54px; height: 54px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .2); border-top-color: #22d3ee; animation: gcSpin .9s linear infinite; }
@keyframes gcSpin { to { transform: rotate(360deg) } }
.gc-end { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle, rgba(4, 10, 18, .55), rgba(4, 10, 18, .85)); overflow: auto; }
.gc-end-card {
  width: min(720px, 100%); text-align: center; padding: 26px clamp(16px, 3vw, 34px); border-radius: 24px; color: #fff;
  background: linear-gradient(160deg, #0f2a44, #0a1726); border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: gcIn .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes gcIn { from { transform: scale(.8) translateY(30px); opacity: 0 } }
.gc-end-card.is-champ { background: linear-gradient(160deg, #4a3405, #1a1204); border-color: #fbbf24; }
.gc-end-card.is-win { background: linear-gradient(160deg, #0d3b25, #07170f); border-color: #4ade80; }
.gc-trophy { width: 96px; height: 96px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #ffd54a; }
.gc-end-card h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); font-weight: 900; }
.gc-end-who { margin: 2px 0 8px; font-size: 22px; font-weight: 800; color: #cfe3f1; }
.gc-end-score b { font-size: 70px; font-weight: 900; color: #ffd54a; line-height: 1; }
.gc-end-score span { font-size: 22px; font-weight: 800; margin-inline-start: 8px; color: #dbe7f0; }
.gc-stars { margin: 8px 0 14px; font-size: 40px; letter-spacing: 4px; }
.gc-stars i { font-style: normal; color: rgba(255, 255, 255, .2); }
.gc-stars i.on { color: #ffd54a; text-shadow: 0 0 14px rgba(255, 213, 74, .7); }
.gc-review { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; text-align: start; }
.gc-review li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.gc-review li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.gc-review li.ok > span { background: #16a34a; }
.gc-review li.bad > span { background: #dc2626; }
.gc-review b { display: block; font-size: 17px; }
.gc-review small { color: #b8c7d4; font-weight: 700; font-size: 14px; }
.gc-end-note { margin: 0 0 12px; font-weight: 800; color: #9fd9ee; }
.gc-end-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .gc-top { grid-template-columns: 1fr auto; }
  .gc-board { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 14px; padding: 4px 10px; }
  .gc-score b { font-size: 28px; }
  .gc-timer { width: 72px; height: 72px; }
  .gc-timer b { font-size: 26px; }
  .gc-tools { top: auto; bottom: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-hero-ball, .gc-count, .gc-timer.is-low b { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   الوضعان: فرديّ ومجموعات (٢٠٢٦-١١-١٩)
   ════════════════════════════════════════════════════════════════ */
.gc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: var(--s3); }
.gc-seg button {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--line, #d8dee4); background: var(--surface, #fff); font: inherit; font-weight: 900; font-size: var(--fs-sm);
}
.gc-seg button small { width: 100%; text-align: center; font-weight: 700; font-size: 14px; color: var(--muted, #5b6672); }
.gc-seg button.on { border-color: #1f7ae0; background: #eef5ff; color: #0d4fd6; box-shadow: 0 4px 14px rgba(31, 122, 224, .18); }
.gc-seg svg { width: 18px; height: 18px; }
.gc-note { display: flex; gap: 6px; align-items: flex-start; padding: 8px 12px; border-radius: 12px; background: #fff8e6; color: #7a5300; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.gc-auto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gc-auto .select { width: auto; }
.gc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gc-group { border: 2px solid #e2e7ec; border-radius: 14px; padding: 8px 10px; opacity: .6; transition: opacity .15s, border-color .15s; }
.gc-group.on { opacity: 1; border-color: var(--c); box-shadow: inset 0 4px 0 var(--c); }
.gc-group-h { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 2px 0 6px; font: inherit; cursor: pointer; text-align: start; }
.gc-group-h b { flex: 1; }
.gc-check { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 2px solid var(--c); color: #fff; }
.gc-group.on .gc-check { background: var(--c); }
.gc-mchips { display: flex; flex-wrap: wrap; gap: 5px; }
.gc-mchip { padding: 3px 10px; border-radius: 999px; border: 1px solid #d6dde4; background: #f6f8fa; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gc-mchip.is-out { text-decoration: line-through; opacity: .45; }

/* لوحة الفريق أثناء اللعب */
.gc-lives { display: flex; gap: 3px; font-size: 16px; line-height: 1; }
.gc-lives i { font-style: normal; color: rgba(255, 255, 255, .2); }
.gc-lives i.on { color: #ff5a6e; text-shadow: 0 0 8px rgba(255, 90, 110, .6); }
.gc-stage.is-groups .gc-board { border-color: color-mix(in srgb, var(--tc, #fff) 70%, transparent); box-shadow: inset 0 4px 0 var(--tc, transparent), 0 10px 30px rgba(0, 0, 0, .3); }
.gc-team { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 20px; max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-team i { width: 14px; height: 14px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 2px #fff; }
.gc-lead { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: #ffe08a; }
.gc-lead svg { width: 16px; height: 16px; }
.gc-tstats { display: flex; gap: 10px; font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.gc-tstats .ok { color: #4ade80; } .gc-tstats .bad { color: #f87171; } .gc-tstats .tm { color: #cfe3f1; }
.gc-turn { color: var(--c); -webkit-text-stroke: 2px rgba(255, 255, 255, .85); font-size: clamp(40px, 6.5vw, 96px) !important; }
.gc-sub svg { width: 20px; height: 20px; vertical-align: -3px; color: #ffd54a; }

/* شريط الترتيب الحيّ أسفل الملعب */
.gc-rank {
  position: absolute; z-index: 4; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 2 * clamp(150px, 17vw, 230px)); pointer-events: none;
}
.gc-rk {
  display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 12px; font-weight: 800; font-size: 15px;
  background: var(--gc-glass); border: 1px solid var(--gc-line); border-inline-start: 5px solid var(--c); backdrop-filter: blur(8px);
}
.gc-rk .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font-size: 13px; }
.gc-rk .ok { color: #4ade80; } .gc-rk .bad { color: #f87171; }
.gc-rk small { color: #b8c7d4; font-weight: 700; font-variant-numeric: tabular-nums; }
.gc-rk.is-turn { background: color-mix(in srgb, var(--c) 45%, rgba(6, 16, 28, .7)); box-shadow: 0 0 0 2px #fff; }
.gc-rk.is-win small { color: #ffd54a; }
.gc-rk.is-out, .gc-rk.is-lost { opacity: .55; }
.gc-stage.has-touch .gc-rank { bottom: auto; top: 128px; }
.gc-pausebox p { margin: 0; font-size: 18px; color: #b8c7d4; }

/* منصّة التتويج */
.gc-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; margin: 16px 0 12px; }
.gc-pod { display: grid; justify-items: center; gap: 2px; }
.gc-pod b { font-size: 19px; }
.gc-pod span { font-weight: 800; color: #cfe3f1; font-variant-numeric: tabular-nums; }
.gc-step { width: 100%; display: grid; place-items: center; border-radius: 12px 12px 0 0; background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 55%, #000)); font-size: 34px; font-weight: 900; margin-top: 4px; }
.gc-pod-1 .gc-step { height: 110px; } .gc-pod-2 .gc-step { height: 80px; } .gc-pod-3 .gc-step { height: 58px; }
.gc-crown { color: #ffd54a; } .gc-crown svg { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(255, 213, 74, .7)); }
.gc-final { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; text-align: start; }
.gc-final li { display: grid; grid-template-columns: 30px 1fr auto auto auto; gap: 10px; align-items: center; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border-inline-start: 5px solid var(--c); font-weight: 700; }
.gc-final .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font-weight: 900; }
.gc-final li.is-out, .gc-final li.is-lost { opacity: .7; }

/* زرّ «إنهاء اللعبة» الواضح وزرّ الجودة (٢٠٢٦-١١-١٩) */
.gc-exit {
  position: absolute; z-index: 8; bottom: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 2px solid #fca5a5; background: #b91c1c; color: #fff; cursor: pointer;
  font: 900 17px inherit; box-shadow: 0 6px 18px rgba(185, 28, 28, .45); transition: transform .1s, background .15s;
}
.gc-exit svg { width: 16px; height: 16px; }
.gc-exit:hover { background: #dc2626; }
.gc-exit:active { transform: translateX(-50%) scale(.95); }
.gc-stage.is-groups .gc-exit { bottom: 64px; }
.gc-quit { background: #b91c1c !important; color: #fff !important; border-color: #b91c1c !important; }
.gc-quit svg { width: 16px; height: 16px; }
.gc-qbtn b { font-size: 11px; font-weight: 900; line-height: 1.1; text-align: center; }
.gc-stage.has-touch .gc-exit, .gc-stage.has-touch.is-groups .gc-exit { bottom: 14px; }

.gc-ask { z-index: 12; background: rgba(4, 10, 18, .82); }
.gc-ask p { max-width: 34ch; text-align: center; }
