/* innspot play — هوية innspot: برتقالي + أزرق + أبيض، والشكل المميز: قطرة بركن حاد (زي البوصلة في اللوجو) */
:root {
  --orange: #F15A29;
  --orange-d: #D2461A;
  --orange-l: #FFF0EA;
  --blue: #0450A8;
  --blue-d: #033A7A;
  --blue-l: #EAF2FC;
  --ink: #0F1B2D;
  --muted: #5F6B7A;
  --line: #E4E8EE;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --ok: #1BA784;
  --bad: #E03C3C;
  --gold: #E8A317;
  --drop: 26px 26px 26px 6px; /* الشكل المميز (RTL: الركن الحاد تحت على الشمال) */
  --r: 18px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .07);
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Baloo Bhaijaan 2', 'Tajawal', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.6; min-height: 100dvh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid2.resp { grid-template-columns: 1fr; } }

/* ───── الهيدر ───── */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 10px;
  padding-top: max(10px, env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--blue); font-family: var(--display); }
.brand img.mark { height: 34px; width: auto; }
.brand img.logo { height: 34px; width: auto; }
.brand .wm { font-size: 1.35rem; font-weight: 700; letter-spacing: -.5px; direction: ltr; }
.brand .wm b { color: var(--orange); }
.topbar .back { border: 0; background: var(--blue-l); color: var(--blue); width: 38px; height: 38px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; }
.interests { display: flex; flex-wrap: wrap; gap: 8px; }
.field .interests .int { display: inline-block; margin: 0; cursor: pointer; font-weight: inherit; }
.interests .int input { position: absolute; opacity: 0; pointer-events: none; }
.interests .int span { display: inline-block; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; transition: all .15s; }
.interests .int input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.interests .int input:focus-visible + span { outline: 2px solid var(--blue); }
.top-r { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.lang-btn { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: 800 .78rem/1 inherit; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.net { font-size: .78rem; padding: 4px 10px; border-radius: 99px; background: var(--blue-l); color: var(--blue); white-space: nowrap; }
.net.off { background: #FFF4E5; color: #A15C00; }
.net.q { background: var(--orange-l); color: var(--orange-d); }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px 110px; }
main.wide { max-width: 1200px; }

/* ───── الكروت ───── */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card.drop { border-radius: var(--drop); }
.card + .card { margin-top: 14px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }

.hero {
  position: relative; overflow: hidden; border-radius: var(--drop); color: #fff; padding: 26px 22px 24px;
  background: radial-gradient(120% 140% at 100% 0%, #1668C7 0%, var(--blue) 45%, var(--blue-d) 100%);
}
.hero::after {
  content: ''; position: absolute; width: 190px; height: 190px; inset-inline-end: -40px; bottom: -70px;
  background: var(--orange); border-radius: 50% 50% 50% 8%; opacity: .95;
}
.hero::before {
  content: ''; position: absolute; width: 74px; height: 74px; inset-inline-end: 38px; bottom: 26px; z-index: 1;
  background: url(/img/compass.svg) center/contain no-repeat; opacity: .95;
}
[dir="ltr"] .hero::after { border-radius: 50% 50% 8% 50%; }
.hero > * { position: relative; z-index: 2; max-width: 72%; }
.hero h1 { font-size: 1.75rem; }
.hero p { opacity: .92; }

/* ───── بلاطات الألعاب ───── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile {
  position: relative; border: 0; text-align: start; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--card); border-radius: var(--drop); box-shadow: var(--shadow); padding: 16px; min-height: 138px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .15s;
}
.tile:active { transform: scale(.97); }
.tile .ico { position: absolute; top: 12px; inset-inline-start: 14px; font-size: 2.2rem; line-height: 1; }
.tile h3 { margin: 0; }
.tile p { margin: 0; font-size: .85rem; color: var(--muted); }
.tile.big { grid-column: 1 / -1; min-height: 150px; background: linear-gradient(135deg, var(--orange) 0%, #FF8A4C 100%); color: #fff; }
.tile.big p { color: rgba(255, 255, 255, .9); }
.tile.big .ico { font-size: 2.8rem; }
.tile .tag { position: absolute; top: 12px; inset-inline-end: 12px; font-size: .72rem; background: var(--blue-l); color: var(--blue); padding: 2px 8px; border-radius: 99px; }
.tile.big .tag { background: rgba(255, 255, 255, .22); color: #fff; }

/* ───── الأزرار والفورم ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 700 1rem var(--font); padding: 13px 20px; border-radius: 14px; background: var(--orange); color: #fff;
  min-height: 48px; transition: transform .1s, background .15s; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.blue { background: var(--blue); }
.btn.ghost { background: var(--blue-l); color: var(--blue); }
.btn.light { background: #fff; color: var(--blue); border: 1.5px solid var(--line); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: .88rem; border-radius: 10px; }
.btn.block { width: 100%; }

label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input, textarea, select {
  width: 100%; font: 1rem var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); outline: none; transition: border .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { min-height: 90px; resize: vertical; }
input.code { text-align: center; font-size: 1.6rem; letter-spacing: 6px; font-weight: 800; text-transform: uppercase; direction: ltr; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: 20px; height: 20px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--blue-l); color: var(--blue); }
.chip.o { background: var(--orange-l); color: var(--orange-d); }
.chip.g { background: #E4F7F1; color: #11785E; }
.chip.r { background: #FDEAEA; color: #B42323; }
.chip.y { background: #FFF6DD; color: #8A6100; }

/* ───── توست ومودال ───── */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); animation: up .25s ease; font-weight: 700; text-align: center; }
.toast.ok { background: var(--ok); } .toast.bad { background: var(--bad); } .toast.o { background: var(--orange); }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }

.modal-bg { position: fixed; inset: 0; background: rgba(15, 27, 45, .55); z-index: 90; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.modal { background: #fff; width: min(100%, 560px); max-height: 92dvh; overflow: auto; border-radius: 26px 26px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .25s; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: var(--drop); } }
@keyframes fade { from { opacity: 0; } }

/* ───── السفاري ───── */
.timer {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--drop);
  background: var(--blue); color: #fff; position: sticky; top: 66px; z-index: 10; box-shadow: var(--shadow);
}
.timer .t { font: 800 2rem/1 var(--display); direction: ltr; font-variant-numeric: tabular-nums; }
.timer.warn { background: var(--gold); }
.timer.late { background: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .8; } }
.timer .bar { height: 6px; background: rgba(255, 255, 255, .25); border-radius: 9px; overflow: hidden; margin-top: 6px; }
.timer .bar i { display: block; height: 100%; background: #fff; border-radius: 9px; transition: width 1s linear; }

.route { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.route .stop { flex: 0 0 auto; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); }
.route .stop.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.route .stop.cur { background: var(--orange); color: #fff; border-color: var(--orange); }

.task { border-radius: var(--drop); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.task + .task { margin-top: 14px; }
.task .head { padding: 14px 16px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.task .head .n { width: 36px; height: 36px; border-radius: 50% 50% 50% 4%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.task.done .head .n { background: var(--ok); }
.task.locked { opacity: .75; }
.task.locked .head .n { background: var(--muted); }
.task .body { padding: 16px; }
.task .body .story { white-space: pre-wrap; }
.task.done .body { background: #F4FBF8; }
.task.shared { outline: 3px dashed var(--orange); outline-offset: -3px; }

.wanted {
  background: #F4E4C1; color: #3B2A12; border-radius: 6px; padding: 18px; text-align: center;
  font-family: 'Rye', 'Baloo Bhaijaan 2', serif; box-shadow: inset 0 0 40px rgba(110, 70, 20, .35); border: 3px double #7A5520;
}
.wanted .w1 { font-size: 2.2rem; letter-spacing: 3px; line-height: 1; }
.wanted .w2 { font-family: var(--display); font-size: 1.1rem; margin: 6px 0 10px; }
.wanted img { width: 100%; max-height: 300px; object-fit: cover; filter: sepia(.55) contrast(1.05); border: 4px solid #3B2A12; margin: 0 auto; }
.wanted .warn { font-family: var(--display); color: #8B1B0E; font-weight: 800; margin-top: 10px; font-size: 1.15rem; }

.deadzone {
  border-radius: var(--drop); padding: 18px; color: #fff; text-align: center;
  background: repeating-linear-gradient(45deg, #1d2633, #1d2633 12px, #232e3d 12px, #232e3d 24px);
}
.deadzone .big { font-size: 2.6rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.upload-prev { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin: 10px 0; }

.board .r { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; }
.board .r + .r { margin-top: 8px; }
.board .r .pos { font: 800 1.2rem var(--display); width: 30px; text-align: center; }
.board .r .dot { width: 14px; height: 14px; border-radius: 50%; }
.board .r .sc { font: 800 1.3rem var(--display); color: var(--blue); }
.board .r.me { outline: 2px solid var(--orange); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ───── الكوتشينة ───── */
.table-felt {
  background: radial-gradient(ellipse at center, #1a7a52 0%, #0f5c3c 70%, #0b4a30 100%);
  border-radius: var(--drop); padding: 14px 10px; color: #fff; min-height: 60vh; display: flex; flex-direction: column; gap: 10px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .35);
}
.hand, .pile { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 92px; align-items: center; }
.pcard {
  width: 58px; height: 84px; border-radius: 7px; background: #fff; color: #1a1a1a; position: relative; flex: 0 0 auto; overflow: hidden;
  border: 1px solid #d6d6d6; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); font-family: 'Times New Roman', Times, serif; direction: ltr; padding: 0; cursor: default;
  transition: transform .15s, box-shadow .15s;
}
.pcard.red { color: #C8102E; }
.pcard .ix { position: absolute; top: 3px; left: 3px; display: flex; flex-direction: column; align-items: center; width: 13px; font-size: .78rem; font-weight: 700; line-height: .95; letter-spacing: -1px; }
.pcard .ix i { font-style: normal; font-size: .7rem; letter-spacing: 0; }
.pcard .ix.b { top: auto; left: auto; bottom: 3px; right: 3px; transform: rotate(180deg); }
.pcard .pp { position: absolute; transform: translate(-50%, -50%); font-size: 12px; line-height: 1; }
.pcard .pp.d { transform: translate(-50%, -50%) rotate(180deg); }
.pcard .ace { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.3rem; line-height: 1; }
.pcard .court { position: absolute; inset: 12px 16px; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(160deg, #fff7e0 0%, #fde6b8 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pcard .court b { font-size: 1.15rem; }
.pcard .court em { font-style: normal; font-size: 1.15rem; color: #1a1a1a; }
.pcard .court i { position: absolute; top: 2px; left: 3px; font-style: normal; font-size: .6rem; }
.pcard .court i.d { top: auto; left: auto; bottom: 2px; right: 3px; transform: rotate(180deg); }
.pcard .ms { position: absolute; right: 3px; bottom: 2px; font-size: 1.05rem; line-height: 1; }
.pcard.back { background: repeating-linear-gradient(45deg, var(--blue) 0 6px, var(--blue-d) 6px 12px); border: 3px solid #fff; }
.pcard.play { cursor: pointer; }
@media (hover: hover) { .pcard.play:hover { transform: translateY(-8px); } }
.pcard.play:focus-visible { transform: translateY(-8px); }
.pcard.hl { box-shadow: 0 0 0 3px var(--gold), 0 2px 6px rgba(0, 0, 0, .35); transform: translateY(-4px); }
.scorebar { display: flex; justify-content: space-between; gap: 10px; background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.msg { text-align: center; min-height: 1.6em; font-weight: 700; }

/* ───── الدومينو ───── */
.dom-board { background: radial-gradient(ellipse at center, #9b6a3c 0%, #7a4f2a 100%); border-radius: var(--drop); padding: 14px; min-height: 55vh; display: flex; flex-direction: column; gap: 12px; color: #fff; box-shadow: inset 0 0 50px rgba(0, 0, 0, .35); }
.chain { position: relative; direction: ltr; min-height: 90px; margin: auto 0; transition: height .2s; }
.chain .wait { position: absolute; inset: 0; display: grid; place-items: center; opacity: .7; }
.chain .tile-d { position: absolute; border: 0; box-shadow: 0 0 0 1px #cbbf9f, 0 2px 3px rgba(0, 0, 0, .35); }
.chain .tile-d.sm .half { width: 24px; height: 24px; padding: 3px; }
.chain .tile-d.sm .half i { width: 4.5px; height: 4.5px; }
.chain.pick .endL, .chain.pick .endR { cursor: pointer; box-shadow: 0 0 0 2px var(--gold), 0 0 12px var(--gold); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 0 3px var(--gold), 0 0 4px var(--gold); } }
.tile-d { display: inline-flex; align-items: stretch; align-self: center; flex: 0 0 auto; padding: 0; border: 1px solid #d9d2bf; border-radius: 7px; background: linear-gradient(145deg, #fffef9 0%, #f3eedf 100%); box-shadow: 0 2px 0 #cfc6ad, 0 3px 6px rgba(0, 0, 0, .35); position: relative; transition: transform .15s; }
.tile-d .half { width: 30px; height: 30px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 4px; place-items: center; }
.tile-d .half + .half { border-inline-start: 1.5px solid #8a8272; }
.tile-d.v { flex-direction: column; } .tile-d.v .half + .half { border-inline-start: 0; border-top: 1.5px solid #8a8272; }
.tile-d .half + .half::before { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #b8a067; }
.tile-d .half i { width: 6px; height: 6px; background: radial-gradient(circle at 35% 35%, #444, #000); border-radius: 50%; }
.tile-d .half b { display: block; }
.tile-d.sm .half { width: 22px; height: 22px; padding: 3px; } .tile-d.sm .half i { width: 4.5px; height: 4.5px; } .tile-d.sm .half + .half::before { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }
.dom-hand .tile-d:not(.sm) .half { width: 36px; height: 36px; padding: 5px; } .dom-hand .tile-d:not(.sm) .half i { width: 7px; height: 7px; }
.tile-d.play { cursor: pointer; }
@media (hover: hover) { .tile-d.play:hover { transform: translateY(-6px); } }
.tile-d.hl { box-shadow: 0 0 0 3px var(--gold), 0 3px 6px rgba(0, 0, 0, .35); transform: translateY(-6px); }
.tile-d.new { box-shadow: 0 0 0 2px var(--gold), 0 3px 6px rgba(0, 0, 0, .35); }
.tile-d.back { background: var(--blue); }
.dom-hand { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; direction: ltr; }

/* ───── العميل ───── */
.secret {
  border-radius: var(--drop); padding: 30px 18px; text-align: center; color: #fff; min-height: 220px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  background: radial-gradient(120% 120% at 100% 0%, #1668C7, var(--blue-d));
}
.secret.spy { background: radial-gradient(120% 120% at 100% 0%, #3a3a3a, #0b0b0b); }
.secret .word { font: 800 2.4rem var(--display); }
.secret .cover { font-size: 3.5rem; }
.plist { display: flex; flex-wrap: wrap; gap: 8px; }
.plist .p { background: #fff; border: 1.5px solid var(--line); padding: 6px 12px; border-radius: 99px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; cursor: default; font-family: var(--font); font-size: .95rem; }
.plist .p.sel { background: var(--orange); color: #fff; border-color: var(--orange); }
.plist .p.vote { cursor: pointer; }
.qline { padding: 10px 14px; border-radius: 12px; background: #fff; display: flex; gap: 8px; align-items: center; }
.qline + .qline { margin-top: 6px; }
.qline.cur { background: var(--orange-l); outline: 2px solid var(--orange); }

/* ───── footer / bottom nav ───── */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; font-size: .72rem; color: var(--muted); padding: 4px 12px; border-radius: 12px; font-weight: 700; }
.bottomnav a span { font-size: 1.35rem; line-height: 1.2; }
.bottomnav a.on { color: var(--orange); background: var(--orange-l); }

.social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .e { font-size: 2.6rem; }

/* ───── الأدمن ───── */
.adm { display: grid; grid-template-columns: 230px 1fr; min-height: 100dvh; }
.adm aside { background: var(--blue-d); color: #fff; padding: 18px 12px; position: sticky; top: 0; height: 100dvh; overflow: auto; }
.adm aside a { display: block; color: #d9e6f7; padding: 10px 12px; border-radius: 12px; font-weight: 700; margin-bottom: 4px; }
.adm aside a.on, .adm aside a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.adm aside .brand .wm { color: #fff; }
.adm .content { padding: 22px; max-width: 1100px; width: 100%; }
@media (max-width: 820px) {
  .adm { grid-template-columns: 1fr; }
  .adm aside { position: sticky; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 8px; z-index: 30; }
  .adm aside a { white-space: nowrap; margin: 0; }
  .adm aside .brand, .adm aside .sp { display: none; }
  .adm .content { padding: 14px; }
}
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: .92rem; }
table.t th, table.t td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--blue-l); color: var(--blue); font-weight: 800; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; box-shadow: var(--shadow); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--drop); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font: 800 1.8rem var(--display); color: var(--blue); }
.st-block { border: 1.5px solid var(--line); border-radius: var(--drop); background: #fff; margin-bottom: 16px; overflow: hidden; }
.st-block > .h { background: var(--blue-l); padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-block > .b { padding: 14px 16px; }
.tk { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; background: #fff; }
.tk.shared { border: 2px dashed var(--orange); }
.teamcode { font: 800 1.6rem var(--display); letter-spacing: 3px; direction: ltr; color: var(--orange); }
.imgpick { display: flex; gap: 10px; align-items: center; }
.imgpick img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--bg); }

/* شاشة العرض */
.screen { min-height: 100dvh; background: radial-gradient(120% 120% at 100% 0%, #1668C7, var(--blue-d)); color: #fff; padding: 30px; }
.screen .board .r { background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.5rem; padding: 16px 20px; }
.screen .board .r .sc { color: #fff; font-size: 2rem; }
.screen .board .r.first { background: var(--orange); }

@media print { .noprint { display: none !important; } body { background: #fff; } }

/* ───── الترابيزة الجماعية ───── */
.opps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.opp { background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 5px 10px; font-size: .8rem; display: flex; gap: 8px; align-items: center; transition: outline .2s; }
.opp.turn { outline: 2px solid var(--gold); background: rgba(232, 163, 23, .25); }
.opp .chip { background: rgba(255, 255, 255, .9); }
.last { background: rgba(0, 0, 0, .18); border-radius: 12px; padding: 6px 10px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 42px; text-align: center; }
.pcard.mini { width: 32px; height: 46px; border-radius: 5px; }
.pcard.mini .ix { font-size: .62rem; top: 2px; left: 2px; width: 11px; } .pcard.mini .ix i { font-size: .56rem; }
.rmode { cursor: pointer; margin: 0; border: 2px solid var(--line); }
.rmode:has(input:checked) { border-color: var(--orange); background: var(--orange-l); }

.wanted .w-name { font-family: var(--display); font-size: 1.5rem; font-weight: 800; margin-top: 10px; letter-spacing: 0; }
.wanted .w-bio { font-family: var(--font); font-size: .95rem; margin-top: 6px; white-space: pre-wrap; line-height: 1.5; }
.wanted .w-noimg { height: 160px; display: grid; place-items: center; font-size: 3rem; border: 4px dashed #7A5520; opacity: .6; }
.wanted .warn { white-space: pre-wrap; }
.waitstart { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px; border-radius: var(--drop); background: var(--blue-l); color: var(--blue); }
.waitstart .pulse { font-size: 2.4rem; animation: pulse 1.4s infinite; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rc { border: 2px dashed var(--orange); border-radius: 12px; padding: 10px; text-align: center; font: 800 1.25rem var(--display); letter-spacing: 2px; direction: ltr; background: #fff; }
.review-card { border: 2px solid var(--gold); }
.review-card summary { cursor: pointer; list-style: none; }
.review-card summary::-webkit-details-marker { display: none; }
.rc.used { opacity: .45; text-decoration: line-through; border-style: solid; border-color: var(--line); }
.rc small { display: block; font: 600 .7rem var(--font); letter-spacing: 0; text-decoration: none; }
.rc-team { break-inside: avoid; }
.print-title { display: none; }
@media print { .print-title { display: block; font: 800 1.4rem var(--display); margin-bottom: 12px; } .adm aside { display: none; } .adm { display: block; } }

/* ───── الإيد المتراكبة (استيميشن) ───── */
.hand.fan { flex-wrap: nowrap; gap: 0; direction: ltr; padding-top: 10px; }
.hand.fan .pcard + .pcard { margin-left: calc(var(--step) - 58px); }
.hand.fan .pcard.play { transform: translateY(-8px); box-shadow: 0 0 0 2px var(--gold), 0 2px 5px rgba(0, 0, 0, .35); }
.hand.fan .pcard.dim { filter: brightness(.8); }
.est-info { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.est-info .chip { background: rgba(255, 255, 255, .92); }
.trick { display: grid; grid-template: repeat(3, auto) / repeat(3, auto); justify-content: center; align-items: center; gap: 4px 10px; flex: 1; direction: ltr; }
.trick .tc { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; min-width: 58px; min-height: 20px; }
.trick .tc.win .pcard { box-shadow: 0 0 0 3px var(--gold), 0 2px 5px rgba(0, 0, 0, .35); }
.trick .mid { font-size: .8rem; opacity: .85; text-align: center; }
.trick.old { opacity: .6; }
.bidpad { background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bidpad .nums { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.bidpad .nums button { min-width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .92); color: #111; font-weight: 800; font-size: 1rem; cursor: pointer; }
.bidpad .nums button.on { background: var(--gold); color: #fff; }
.bidpad .nums button:disabled { opacity: .3; cursor: default; }
.bidpad .nums button.red { color: #C8102E; }
.red-t { color: #C8102E; }

/* ───── شرح الألعاب ───── */
.guide .g-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.guide .g-head h2 { margin: 0 0 6px; }
.guide .g-ico { font-size: 2.6rem; line-height: 1; }
.guide .g-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.guide .g-idea { background: var(--blue-l); color: var(--blue); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-weight: 600; line-height: 1.7; }
.guide .g-sec { background: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(15, 27, 45, .08); }
.guide .g-sec h3 { margin: 0 0 6px; }
.guide .g-sec ul, .guide .g-sec ol { margin: 0; padding-inline-start: 20px; line-height: 1.8; }
.guide .g-sec li + li { margin-top: 2px; }
.guide .g-sec .pcard.mini { display: inline-block; vertical-align: middle; margin: 1px; }
.guide .g-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; background: #0f5c3c; color: #fff; border-radius: 12px; padding: 8px 10px; margin-top: 8px; font-size: .85rem; }
.modal .guide .g-sec { box-shadow: none; border: 1px solid #eee; }
.g-links { display: flex; flex-wrap: wrap; gap: 8px; }
.g-cta { position: sticky; bottom: 76px; margin-top: 6px; }
