/* =====================================================================
   GamesUP — web client styles
   ===================================================================== */
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal.woff2") format("woff2"), url("../fonts/Tajawal.ttf") format("truetype"); font-weight: 100 650; font-display: optional; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-ExtraBold.woff2") format("woff2"), url("../fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 651 849; font-display: optional; }
/* metric-matched fallback: same line box as Tajawal while it loads → no layout shift (PageSpeed CLS) */
@font-face { font-family: "Tajawal Fallback"; src: local("Arial"), local("Noto Sans Arabic"), local("Segoe UI"), local("Tahoma"), local("Roboto"), local("DejaVu Sans"); ascent-override: 64.3%; descent-override: 35.7%; line-gap-override: 20%; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Black.woff2") format("woff2"), url("../fonts/Tajawal-Black.ttf") format("truetype"); font-weight: 850 900; font-display: optional; }

:root {
  --navy: #141B3C; --deep: #0B1028; --navy-2: #1E2756; --gold: #F5B41A; --gold-2: #FFE08A; --gold-d: #C98A00;
  --coral: #FF5A5F; --teal: #2EC4B6; --mint: #7FF5E8; --purple: #8E5BD8;
  --ink: #FFFFFF; --ink-2: rgba(255,255,255,.72); --ink-3: rgba(255,255,255,.45);
  --line: rgba(255,255,255,.12); --glass: rgba(255,255,255,.06); --glass-2: rgba(255,255,255,.1);
  --r: 18px; --shadow: 0 14px 34px rgba(0,0,0,.45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
/* icons load after first paint → keep their 1em box from the start so nothing jumps (PageSpeed CLS) */
[class^="ri-"], [class*=" ri-"] { display: inline-block; width: 1em; line-height: 1; }
html { touch-action: manipulation; } /* no double-tap zoom on buttons; pinch-zoom still works (a11y) */
body {
  font-family: "Tajawal", "Tajawal Fallback", system-ui, sans-serif; color: var(--ink); background: var(--deep);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, #26306a 0%, rgba(20,27,60,0) 60%),
    url("../img/pattern.svg");
  background-attachment: fixed; overflow-x: hidden;
  -webkit-user-select: none; user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
a { color: var(--gold); }
button { font-family: inherit; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 120px; }
.wrap-wide { max-width: 1080px; }

/* ---------------------------------------------------------------- top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .logo { width: 42px; height: 42px; border-radius: 11px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 6px 16px rgba(0,0,0,.4); }
.brand b { font-size: 22px; font-weight: 900; letter-spacing: .5px; direction: ltr; }
.brand b span { color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.pill.gold { color: var(--deep); background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; }

/* ------------------------------------------------------------ announcement */
.announce { background: linear-gradient(90deg, var(--gold), #FFD36A); color: #3A2400; text-align: center; font-weight: 800; padding: 8px 16px; font-size: 14px; }

/* ------------------------------------------------------------ sound toggles */
.soundbox { display: flex; gap: 6px; margin-inline-start: auto; }
.soundbox button { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); font-size: 18px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.soundbox button.on { color: var(--gold); border-color: rgba(245,180,26,.4); }

/* ---------------------------------------------------------------- buttons */
.btn-g { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 16px; font-weight: 800; font-size: 17px; color: #3A2400;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-d)); box-shadow: 0 6px 0 #8F6100, 0 12px 24px rgba(0,0,0,.35);
  transition: transform .08s, box-shadow .08s, filter .2s; text-decoration: none; }
.btn-g:active { transform: translateY(4px); box-shadow: 0 2px 0 #8F6100, 0 6px 12px rgba(0,0,0,.35); }
.btn-g:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.btn-g.coral { color: #fff; background: linear-gradient(180deg, #FF8A8D, var(--coral) 55%, #C93A47); box-shadow: 0 6px 0 #7A1E3A, 0 12px 24px rgba(0,0,0,.35); }
.btn-g.teal  { color: #062A27; background: linear-gradient(180deg, #8FF3E9, var(--teal) 55%, #1C8E84); box-shadow: 0 6px 0 #0F5E57, 0 12px 24px rgba(0,0,0,.35); }
.btn-g.ghost { color: var(--ink); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn-g.ghost:active { transform: translateY(1px); }
.btn-g.block { width: 100%; }
.btn-g.sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; box-shadow: 0 4px 0 #8F6100; }
.btn-g.ghost.sm { box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ panels */
.panel { background: linear-gradient(180deg, rgba(30,39,86,.85), rgba(20,27,60,.85)); border: 1px solid rgba(245,180,26,.25); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.panel h2 { margin: 0 0 14px; font-size: 20px; font-weight: 900; }
.muted { color: var(--ink-2); }
.tiny { font-size: 13px; color: var(--ink-3); }

.field { width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: rgba(0,0,0,.25); color: #fff; font: 700 18px "Tajawal", "Tajawal Fallback", sans-serif; outline: none; transition: border-color .2s; }
.field:focus { border-color: var(--gold); }
.code-input { text-align: center; letter-spacing: 10px; font-size: 26px; text-transform: uppercase; direction: ltr; }

.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gender-pick button { padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; }
.gender-pick button.on { border-color: var(--gold); background: rgba(245,180,26,.15); color: var(--gold-2); }
.avatars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.avatars button { aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--glass); font-size: clamp(17px, 4.6vw, 24px); padding: 0; cursor: pointer; transition: transform .15s, border-color .15s; }
.avatars button.on { border-color: var(--gold); background: rgba(245,180,26,.15); transform: scale(1.06); }

/* -------------------------------------------------------------- landing */
.hero { text-align: center; padding: 10px 0 22px; }
.hero h1 { margin: 0; font-size: clamp(30px, 8vw, 46px); font-weight: 900; line-height: 1.2; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.fan { position: relative; height: 230px; margin: 10px auto 6px; max-width: 420px; }
.fan img { position: absolute; width: 132px; height: auto; left: 50%; top: 10px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .4s; }
.fan img:nth-child(1) { transform: translateX(-120%) rotate(-14deg) translateY(14px); }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(0deg); z-index: 2; }
.fan img:nth-child(3) { transform: translateX(20%) rotate(14deg) translateY(14px); }
.fan:hover img:nth-child(1) { transform: translateX(-135%) rotate(-18deg) translateY(10px); }
.fan:hover img:nth-child(3) { transform: translateX(35%) rotate(18deg) translateY(10px); }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game-tile { position: relative; border-radius: 20px; padding: 14px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; min-height: 120px; }
/* the card only — emoji images inside the title / «📖 كيف تنلعب؟» stay inline */
.game-tile > img { position: absolute; left: -12px; bottom: -40px; width: 84px; height: auto; transform: rotate(12deg); opacity: .95; }
.game-tile b { display: block; font-size: 18px; }
.game-tile small { color: var(--ink-3); }
.game-tile .soon { position: absolute; top: 10px; left: 10px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.12); }
.game-tile { text-align: start; color: inherit; font-family: inherit; cursor: default; }
button.game-tile { cursor: pointer; }
.game-tile.on { box-shadow: 0 0 0 2px var(--gold), 0 10px 26px rgba(245,180,26,.25); }
.game-tile.live { border-color: rgba(255,90,95,.6); background: linear-gradient(160deg, rgba(255,90,95,.22), rgba(255,255,255,.04)); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); margin: 16px 0; font-size: 14px; }
.or:before, .or:after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------- game card */
.gcard { position: relative; container-type: inline-size; aspect-ratio: 2/3; width: 100%; }
.gcard img { width: 100%; height: 100%; display: block; border-radius: 6.6%; filter: drop-shadow(0 16px 26px rgba(0,0,0,.55)); }
.gcard .t { position: absolute; left: 20%; right: 20%; top: 82.4%; transform: translateY(-50%); text-align: center; white-space: nowrap; font-weight: 900; color: #3A2400; font-size: 9.5cqw; line-height: 1; text-shadow: 0 1px 0 #FFE9A8; }
.gcard .d { position: absolute; left: 14%; right: 14%; top: 71%; transform: translateY(-50%); text-align: center; font-weight: 500; color: #fff; opacity: .9; font-size: 4.2cqw; line-height: 1.5; }
.gcard .w { position: absolute; left: 26%; right: 26%; top: 49%; transform: translateY(-50%); text-align: center; white-space: nowrap; font-weight: 900; color: var(--navy); font-size: 9cqw; }

/* flip */
.flip { perspective: 1400px; width: min(78vw, 300px); margin: 0 auto; cursor: pointer; }
.flip-in { position: relative; transition: transform .7s cubic-bezier(.2,.9,.25,1.2); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .face.front { position: absolute; inset: 0; transform: rotateY(180deg); }
.flip:not(.on) .face.back { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
.shuffle { animation: shuffle .6s ease; }
@keyframes shuffle { 25% { transform: translateX(-30px) rotate(-8deg); } 60% { transform: translateX(30px) rotate(8deg); } }

/* ------------------------------------------------------------------ lobby */
.room-code { text-align: center; }
.room-code .code { font-size: 54px; font-weight: 900; letter-spacing: 12px; direction: ltr; color: var(--gold); line-height: 1; margin: 6px 0; text-shadow: 0 4px 0 #8F6100; }
.qr { width: 132px; height: 132px; margin: 8px auto 0; background: #fff; border-radius: 14px; padding: 8px; }
.qr img, .qr svg { width: 100%; height: 100%; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.member { position: relative; text-align: center; padding: 12px 6px 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); animation: pop .35s ease; }
.member .av { font-size: 38px; line-height: 1.1; }
.member .nm { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .tag { position: absolute; top: -8px; right: -6px; font-size: 18px; }
.member .x { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 14px; line-height: 24px; padding: 0; }
.member.me { border-color: var(--gold); }
.member.off { opacity: .45; }
.member.empty { border-style: dashed; color: var(--ink-3); display: grid; place-items: center; min-height: 92px; cursor: pointer; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.mix { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mix span { padding: 6px 12px; border-radius: 999px; background: var(--glass-2); font-weight: 700; font-size: 14px; }
.seg { display: inline-flex; background: rgba(0,0,0,.25); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 8px 12px; border-radius: 9px; font-weight: 800; cursor: pointer; }
.seg button.on { background: var(--gold); color: #3A2400; }

/* ------------------------------------------------------------------ table */
.hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.timer { font-size: 26px; font-weight: 900; direction: ltr; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--coral); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.mycard { width: 56px; cursor: pointer; position: relative; }
.mycard .gcard .t { font-size: 13cqw; }
.mycard-hint { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--ink-3); white-space: nowrap; }

.table-wrap { position: relative; width: 100%; aspect-ratio: 1; max-width: min(520px, calc(100vh - 270px)); min-width: 280px; margin: 4px auto 0; }
.majlis { position: absolute; inset: 15%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #7A3E22 0%, #4C2412 55%, #2E150A 100%);
  box-shadow: inset 0 0 0 6px #C98A00, inset 0 0 0 9px #3A1A0A, inset 0 0 0 12px rgba(245,180,26,.6), 0 20px 50px rgba(0,0,0,.6); }
.majlis:before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: url("../img/pattern.svg"); opacity: .55; box-shadow: inset 0 0 0 2px rgba(245,180,26,.5); }
.majlis .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 34px; }
.majlis .center small { display: block; font-size: 13px; color: var(--gold-2); margin-top: 4px; font-weight: 700; }
svg.gaze { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
svg.gaze line { stroke: rgba(255,255,255,.35); stroke-width: .5; stroke-dasharray: 1.4 1; animation: dash 1.2s linear infinite; }
svg.gaze line.mine { stroke: var(--mint); stroke-width: .7; }
svg.gaze line.mutual { stroke: var(--gold); stroke-width: .9; stroke-dasharray: none; filter: drop-shadow(0 0 1px var(--gold)); }
svg.gaze line.at-me { stroke: var(--coral); stroke-width: .7; }
@keyframes dash { to { stroke-dashoffset: -4.8; } }

.seat { position: absolute; width: 19%; transform: translate(-50%, -50%); text-align: center; cursor: pointer; transition: filter .2s; }
.seat .bub { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(22px, 6.5vw, 36px);
  background: radial-gradient(circle at 35% 30%, #2C3878, #141B3C); border: 3px solid rgba(255,255,255,.18); box-shadow: 0 8px 18px rgba(0,0,0,.45); transition: transform .2s, border-color .2s; }
.seat .nm { margin-top: 4px; font-size: clamp(11px, 2.8vw, 14px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px #000; }
.seat.me .bub { border-color: var(--gold); }
.seat.target .bub { border-color: var(--mint); transform: scale(1.08); box-shadow: 0 0 0 4px rgba(127,245,232,.25), 0 8px 18px rgba(0,0,0,.45); }
.seat.suspected .bub:after { content: ""; width: 20px; height: 20px; background: url(../emoji/1f914.svg) center/contain no-repeat; position: absolute; top: -6px; left: -6px; font-size: 16px; }
.seat.spot .bub { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(245,180,26,.3), 0 0 40px rgba(245,180,26,.6); animation: spot 1.2s ease-in-out infinite; }
@keyframes spot { 50% { transform: scale(1.1); } }
.seat.dead { filter: grayscale(1) brightness(.6); cursor: default; }
.seat.dead .bub { border-style: dashed; }
.seat .badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; font-size: 12px; font-weight: 900; display: grid; place-items: center; background: var(--teal); color: #062A27; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.seat .badge.s { right: auto; left: -6px; background: var(--coral); color: #fff; }
.seat .stare { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 10px; background: var(--coral); color: #fff; border-radius: 8px; padding: 1px 6px; white-space: nowrap; font-weight: 800; }
.seat .fx { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.seat .fx.blink { animation: blinkfx .5s ease; }
@keyframes blinkfx { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
.seat .ghost { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1em; }
.seat .seen { position: absolute; bottom: -2px; right: -2px; font-size: 14px; }

/* --------------------------------------------------------------- controls */
.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11,16,40,0), rgba(11,16,40,.92) 30%); z-index: 20; }
.dock-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.modes { display: flex; gap: 6px; flex: 1; }
.mode { flex: 1; border: 0; border-radius: 14px; padding: 8px 4px; background: var(--glass-2); color: var(--ink-2); font-weight: 800; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.mode i { font-size: 20px; }
.mode.on { background: rgba(127,245,232,.16); color: var(--mint); box-shadow: inset 0 0 0 2px var(--mint); }
.mode.accuse.on { background: rgba(255,90,95,.18); color: var(--coral); box-shadow: inset 0 0 0 2px var(--coral); }
.mode:disabled { opacity: .35; }
.blink-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer; flex: none; font-size: 40px;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 55%, var(--gold-d)); box-shadow: 0 7px 0 #8F6100, 0 14px 30px rgba(0,0,0,.5); transition: transform .08s; }
.blink-btn:active { transform: translateY(5px) scale(.97); box-shadow: 0 2px 0 #8F6100; }
.blink-btn small { position: absolute; bottom: 9px; left: 0; right: 0; font-size: 11px; font-weight: 900; color: #3A2400; }
.blink-btn svg { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); pointer-events: none; }
.blink-btn svg circle { fill: none; stroke-width: 5; }
.blink-btn.warn { animation: shake .4s infinite; }
@keyframes shake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.hint { text-align: center; color: var(--ink-2); font-size: 14px; min-height: 22px; margin-top: 8px; }

/* -------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(6,9,24,.82); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.overlay .box { width: 100%; max-width: 420px; text-align: center; }
.doomed { background: radial-gradient(circle, rgba(255,90,95,.5), rgba(60,8,20,.95)); }
.doomed h1 { font-size: 56px; margin: 0; animation: shake .5s infinite; }
.doomed h2 { font-size: 30px; margin: 6px 0 4px; font-weight: 900; }
.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.styles button { border: 0; border-radius: 18px; padding: 16px 8px; font-size: 30px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-weight: 800; }
.styles button span { display: block; font-size: 14px; margin-top: 4px; }
.peek { width: min(70vw, 280px); margin: 0 auto; }

.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast-g { padding: 12px 16px; border-radius: 16px; background: rgba(20,27,60,.95); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 800; text-align: center; animation: drop .35s cubic-bezier(.2,.9,.3,1.3); }
.toast-g.coral { border-color: var(--coral); }
.toast-g.gold { border-color: var(--gold); }
.toast-g.teal { border-color: var(--teal); }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }

/* ---------------------------------------------------------------- results */
.winner { text-align: center; padding: 8px 0 16px; }
.winner .big { font-size: 64px; animation: pop .6s cubic-bezier(.2,.9,.3,1.4); }
.winner h1 { font-size: 30px; margin: 4px 0; font-weight: 900; }
.reveal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.reveal .r { text-align: center; animation: pop .5s both; }
.reveal .r .nm { font-weight: 800; font-size: 13px; margin-top: 4px; }
.reveal .r.win .nm:after { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-inline-start: .3em; vertical-align: -.2em; background: url(../emoji/1f3c6.svg) center/contain no-repeat; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; display: flex; gap: 8px; }
.log li b { color: var(--gold); direction: ltr; min-width: 44px; }

.center-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.waiting { text-align: center; padding: 20px 0; }
.dots:after { content: "..."; animation: dots 1.4s steps(4) infinite; display: inline-block; width: 1.2em; text-align: start; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } }
.order { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.order span { padding: 4px 10px; border-radius: 999px; background: var(--glass); font-size: 13px; font-weight: 700; }
.order span.done { color: var(--teal); }
.order span.now { background: var(--gold); color: #3A2400; }

.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--glass-2); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- game picker */
.game-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.game-pick button { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--glass); color: #fff; font: 800 16px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; overflow: hidden; }
.game-pick button img { width: 38px; border-radius: 4px; transform: rotate(-8deg); }
.game-pick button.on { border-color: var(--gold); background: rgba(245,180,26,.12); }
.game-pick button:disabled { cursor: default; }
.game-pick button:disabled:not(.on) { opacity: .45; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.toggle { width: 54px; height: 30px; border-radius: 15px; border: 0; background: rgba(255,255,255,.15); position: relative; cursor: pointer; flex: none; }
.toggle span { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: right .2s; }
.toggle.on { background: var(--teal); }
.toggle.on span { right: 27px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats button { border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); border-radius: 999px; padding: 6px 12px; font: 700 14px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; }
.cats button.on { color: #062A27; background: var(--teal); border-color: var(--teal); }

/* ------------------------------------------------------------- spy game */
.pchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--glass-2); color: #fff; font: 800 15px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; transition: transform .15s; }
.pchip span { font-size: 22px; }
.pchip:active { transform: scale(.96); }
.pchip.on { border-color: var(--coral); background: rgba(255,90,95,.22); }
.pchips.big .pchip { padding: 12px 18px 12px 14px; font-size: 17px; }
.spot-panel { margin-top: 6px; }
.duel { display: flex; align-items: center; justify-content: center; gap: 14px; }
.duelist { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 90px; }
.duelist .bub { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: radial-gradient(circle at 35% 30%, #2C3878, #141B3C); border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(245,180,26,.35); animation: spot 1.6s ease-in-out infinite; }
.duelist .bub.ghosty { border-style: dashed; border-color: var(--line); animation: none; box-shadow: none; color: var(--ink-3); }
.duel .arrow { font-size: 28px; }
.bigq { margin: 14px 0 4px; text-align: center; font-size: 20px; font-weight: 800; color: var(--gold-2); }
.qa { list-style: none; margin: 0; padding: 0; }
.qa li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.qa .who { font-size: 14px; color: var(--ink-2); }
.qa .q { margin-top: 4px; font-weight: 700; }
.qa .a { margin-top: 2px; color: var(--mint); font-weight: 700; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.choices button { padding: 14px 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--glass-2); color: #fff; font: 800 18px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; }
.choices button:not(:disabled):hover { border-color: var(--gold); }
.choices button:disabled { opacity: .7; cursor: default; }
.secret { font-size: 40px; font-weight: 900; color: var(--gold); margin: 4px 0; }

/* ---------------------------------------------------------------- guess */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.teambox { border-radius: 20px; padding: 12px; text-align: center; border: 2px solid var(--line); background: var(--glass); transition: transform .2s; }
.teambox.ta { border-color: rgba(245,180,26,.45); background: linear-gradient(180deg, rgba(245,180,26,.18), rgba(245,180,26,.04)); }
.teambox.tb { border-color: rgba(255,90,95,.45); background: linear-gradient(180deg, rgba(255,90,95,.18), rgba(255,90,95,.04)); }
.teambox.now { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.tscore { font-size: 44px; font-weight: 900; line-height: 1.1; }
.tmem { font-size: 20px; letter-spacing: 2px; }
.pill.ta { background: var(--gold); color: #3A2400; }
.pill.tb { background: var(--coral); color: #fff; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wchip { padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.wchip.ok { background: rgba(46,196,182,.2); color: var(--mint); }
.wchip.no { background: rgba(255,255,255,.08); color: var(--ink-3); text-decoration: line-through; }
.wordcard { width: min(72vw, 300px); margin: 0 auto; }
.gcard .w.big { left: 14%; right: 14%; top: 47%; font-size: 13cqw; color: #fff; text-shadow: 0 3px 0 #7A1E3A, 0 0 24px rgba(0,0,0,.5); background: rgba(20,27,60,.55); border-radius: 14px; padding: 6px 4px; }
.markbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin: 16px auto 6px; }
.markbtns .btn-g { font-size: 20px; padding: 18px; }
.forehead { position: relative; min-height: 62vh; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #FF7A7E, #C93A47 70%); box-shadow: inset 0 0 0 6px rgba(245,180,26,.6), var(--shadow); }
.fh-word { font-size: clamp(42px, 14vw, 96px); font-weight: 900; text-align: center; line-height: 1.15; text-shadow: 0 5px 0 #7A1E3A; word-break: break-word; }
.fh-side { font-weight: 800; opacity: .75; font-size: 16px; }
.countdown { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; font-size: 160px; font-weight: 900; color: var(--gold); background: rgba(6,9,24,.75); text-shadow: 0 8px 0 #8F6100; animation: pop .4s; }
.flash-ok { animation: flashok .5s; }
.flash-no { animation: flashno .4s; }
@keyframes flashok { 30% { filter: drop-shadow(0 0 30px var(--teal)) brightness(1.3); transform: scale(1.03); } }
@keyframes flashno { 30% { transform: translateX(-14px); } 60% { transform: translateX(10px); } }

/* ---------------------------------------------------------------- rules */
.howto { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--gold); background: rgba(0,0,0,.25); border-radius: 999px; padding: 3px 10px; position: relative; z-index: 2; }
.helpbtn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(245,180,26,.4); background: var(--glass); color: var(--gold); font: 900 20px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; padding: 0; }
.rules-ov { align-items: start; overflow-y: auto; }
.rules { position: relative; width: 100%; max-width: 560px; margin: 24px auto; padding: 22px 18px; text-align: start; }
.rclose { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 16px; cursor: pointer; }
.rhead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.rhead h2 { margin: 2px 0 4px; font-size: 26px; }
.rhead p { margin: 0; font-size: 15px; line-height: 1.6; }
.rcover { width: 84px; flex: none; transform: rotate(-6deg); }
.rtabs { display: flex; width: 100%; margin-bottom: 14px; }
.rtabs button { flex: 1; }
.rbody { min-height: 260px; }
.rbody h3 { font-size: 18px; margin: 18px 0 8px; color: var(--gold-2); }
.rbody ul { margin: 0; padding-inline-start: 20px; line-height: 1.8; }
.rbody li { margin-bottom: 4px; }
.rstep { text-align: center; padding: 10px 6px; animation: pop .3s; }
.ricon { font-size: 64px; line-height: 1.2; }
.rnum { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.rstep h3 { font-size: 22px; margin: 6px 0; color: #fff; }
.rstep p { font-size: 17px; line-height: 1.8; margin: 0 auto; max-width: 420px; color: var(--ink-2); }
.rstep p b { color: var(--gold-2); }
.rdots { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.rdots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; }
.rdots i.on { background: var(--gold); width: 24px; border-radius: 5px; }
.rnav { display: flex; justify-content: space-between; gap: 10px; }
.rmeta { display: flex; gap: 8px; flex-wrap: wrap; }
.rmeta span { background: var(--glass-2); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.rroles { display: flex; flex-direction: column; gap: 10px; }
.rrole { display: flex; gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.rrole .rrole p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.rmix { width: 100%; border-collapse: collapse; font-size: 14px; }
.rmix td { padding: 7px 8px; border-bottom: 1px dashed var(--line); }
.rmix td:first-child { font-weight: 900; color: var(--gold); white-space: nowrap; width: 60px; }
.rules-page .rtabs-page, .legal-page .rtabs-page { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0 16px; }

/* ------------------------------------------------------------ five seconds */
.mix span.now { box-shadow: 0 0 0 2px var(--gold); }
.bombwrap { width: 120px; margin: 10px auto; transform: rotate(-6deg); }
.bombwrap img { width: 100%; border-radius: 8px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.five-stage { text-align: center; }
.bombtimer { position: relative; width: 120px; height: 120px; margin: 8px auto; }
.bombtimer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.bombtimer circle { fill: none; stroke-width: 8; }
.bombtimer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 900; color: var(--gold); }
.bombtimer.shake { animation: shake .25s infinite; }
.challenge { font-size: clamp(26px, 7vw, 40px); font-weight: 900; margin: 8px 0 14px; line-height: 1.4; color: #fff; text-shadow: 0 4px 0 #7A1E3A; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.slot { min-height: 52px; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; font-weight: 800; color: var(--ink-3); padding: 6px; font-size: 16px; }
.slot.new { border-style: solid; border-color: var(--gold); color: #fff; background: rgba(245,180,26,.1); animation: pop .3s; }
.slot.ok { border-style: solid; border-color: var(--teal); color: var(--mint); background: rgba(46,196,182,.12); animation: pop .3s; }
.five-input { display: flex; gap: 8px; margin-top: 12px; }
.five-stage.boom { animation: boomfx .6s; }
@keyframes boomfx { 0% { box-shadow: 0 0 0 0 rgba(255,90,95,.9); transform: scale(1.03); } 100% { box-shadow: 0 0 0 40px rgba(255,90,95,0); transform: none; } }

@media (min-width: 900px) {
  .landing-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
.rquick { line-height: 1.9; padding-inline-start: 20px; } .rquick b { color: #fff; }

/* ===================================================================
   الغمّاز v2 (2026-10-11): draft hand, night, eye-lock actions, guess, score
   =================================================================== */
.hand { display: flex; justify-content: center; gap: 14px; width: 100%; max-width: 420px; margin: 6px auto; }
.hand .gcard { width: min(40vw, 180px); }
#backs { cursor: pointer; }
#backs .gcard:nth-child(1) { transform: rotate(-5deg); animation: bob 2.4s ease-in-out infinite; }
#backs .gcard:nth-child(2) { transform: rotate(5deg); animation: bob 2.4s .3s ease-in-out infinite; }
.hand.shuffle { animation: shuffle .65s ease; }
.hc { position: relative; border-radius: 16px; transition: transform .2s, filter .2s, box-shadow .2s; animation: pop .4s both; }
.hc.can { cursor: pointer; }
.hc.no { filter: grayscale(.85) brightness(.55); }
.hc.no:after { content: "ملغي"; position: absolute; top: 8%; left: 50%; transform: translateX(-50%) rotate(-12deg); background: var(--coral); color: #fff; font-weight: 900; font-size: 13px; padding: 3px 12px; border-radius: 8px; }
.hc.on { transform: translateY(-10px) scale(1.04); box-shadow: 0 0 0 4px var(--gold), 0 20px 40px rgba(245,180,26,.35); }

.night { min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 18px 8px 40px;
  background: radial-gradient(circle at 50% 10%, rgba(142,91,216,.22), transparent 60%); border-radius: 24px; }
.night .moon { font-size: 54px; filter: drop-shadow(0 0 24px rgba(255,224,138,.6)); animation: bob 4s ease-in-out infinite; }
.night .night-ic { font-size: 64px; animation: pop .5s; }
.night h2 { margin: 0; font-size: 22px; max-width: 420px; }
.night .npriv { width: 100%; max-width: 420px; }
.night .npriv .panel { animation: pop .4s; font-size: 18px; }
.night .npriv b { color: var(--gold); }
.night .night-card { width: 72px; margin-top: 10px; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; width: 100%; }
.pickgrid button { border: 2px solid var(--line); background: var(--glass); color: var(--ink); border-radius: 16px; padding: 10px 4px 8px; font-size: 28px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .15s; }
.pickgrid button span { font-size: 13px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickgrid button.on { border-color: var(--gold); background: rgba(245,180,26,.16); transform: scale(1.05); }
.pickgrid.big { max-width: 460px; }

.seat.tam .bub { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(142,91,216,.35); }
.seat .badge.t { background: var(--purple); color: #fff; right: auto; left: -6px; }
.seat .badge.w { top: auto; bottom: -6px; right: -6px; background: #3A1A6E; color: #fff; }
.seat .badge.k { top: auto; bottom: -6px; left: -6px; right: auto; background: var(--gold); color: #3A2400; }
.seat .fx.winkfx { animation: winkfx 1s ease; }
.seat .fx.winkfx:after { content: ""; background: url(../emoji/1f609.svg) center/58% no-repeat; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4em; animation: winkpop 1s ease forwards; }
@keyframes winkfx { 0% { box-shadow: 0 0 0 0 rgba(245,180,26,.9); } 100% { box-shadow: 0 0 0 22px rgba(245,180,26,0); } }
@keyframes winkpop { 0% { transform: scale(.2); opacity: 0; } 25% { transform: scale(1.3); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.acts { display: flex; gap: 8px; }
.act { position: relative; width: 70px; height: 70px; border-radius: 50%; border: 0; cursor: pointer; font-size: 30px; flex: none; color: #fff; transition: transform .08s; }
.act small { position: absolute; bottom: 6px; left: 0; right: 0; font-size: 10px; font-weight: 900; }
.act.wink { background: radial-gradient(circle at 35% 30%, #FF8A8D, var(--coral) 60%, #B3263F); box-shadow: 0 6px 0 #7A1E3A, 0 12px 24px rgba(0,0,0,.45); }
.act.tam { background: radial-gradient(circle at 35% 30%, #C7A6FF, var(--purple) 60%, #4A2785); box-shadow: 0 6px 0 #2A1450, 0 12px 24px rgba(0,0,0,.45); }
.act.tam.hot { animation: spot 1.2s ease-in-out infinite; }
.act:active { transform: translateY(4px) scale(.97); }
#saw { text-align: center; min-height: 0; }
#saw .saw { margin: 6px auto 0; animation: pop .3s, pulse 1s infinite; }

.overlay.winked { background: radial-gradient(circle, rgba(142,91,216,.55), rgba(20,10,40,.95)); }
.overlay.winked.kill { background: radial-gradient(circle, rgba(255,90,95,.5), rgba(60,8,20,.95)); }
.overlay.winked.zombie { background: radial-gradient(circle, rgba(120,200,80,.45), rgba(10,30,10,.95)); }
.overlay.winked h1 { font-size: 64px; margin: 0; animation: pop .5s, shake .5s .5s 2; }
.overlay.winked h2 { font-size: 28px; margin: 6px 0 4px; font-weight: 900; }
.overlay.blindov { background: rgba(5,4,15,.97); }

.rline { font-size: 22px; margin: 14px 0 10px; line-height: 1.6; }
.rline b { color: var(--gold); }
.board { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.board li { counter-increment: b; display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); font-weight: 800; }
.board li:before { content: counter(b); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); font-size: 13px; flex: none; }
.board li:first-child:before { background: var(--gold); color: #3A2400; }
.board li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li b { font-size: 18px; color: var(--gold); min-width: 32px; text-align: left; }
.board li em { font-style: normal; font-size: 13px; padding: 2px 8px; border-radius: 999px; }
.board li.me { color: var(--mint); }
em.up, .dl.up { background: rgba(46,196,182,.2); color: var(--mint); }
em.down, .dl.down { background: rgba(255,90,95,.2); color: #FF9A9D; }
.reveal .dl { display: inline-block; margin-top: 3px; font-weight: 900; font-size: 13px; padding: 1px 10px; border-radius: 999px; }
.lrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 380px) { .act { width: 60px; height: 60px; font-size: 26px; } .blink-btn { width: 78px; height: 78px; font-size: 34px; } }
.reveal .r.gz .nm:after { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-inline-start: .3em; vertical-align: -.2em; background: url(../emoji/1f609.svg) center/contain no-repeat; }

/* ===================================================================
   SEO pages (2026-10-11): rules tabs as links, FAQ, site footer
   =================================================================== */
.rules-page .rtabs-page a, .legal-page .rtabs-page a { border: 0; background: transparent; color: var(--ink-2); padding: 8px 12px; border-radius: 9px; font-weight: 800; text-decoration: none; }
.rules-page .rtabs-page a.on, .legal-page .rtabs-page a.on { background: var(--gold); color: #3A2400; }
.faq h2 { margin-top: 0; }
.faq details { border-bottom: 1px dashed var(--line); padding: 12px 2px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--gold); font-weight: 900; }
.faq details[open] summary:after { content: "−"; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.7; }
.site-foot { margin-top: 34px; padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(6,9,24,.45); }
.site-foot .foot-in { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.site-foot .apps { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 18px; border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; min-width: 160px; }
.app-badge i { font-size: 28px; }
.app-badge span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 900; font-size: 17px; text-align: start; direction: ltr; }
.app-badge small { font-size: 11px; font-weight: 700; opacity: .8; direction: rtl; }
.site-foot .socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.site-foot .socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); font-size: 22px; text-decoration: none; transition: transform .15s, background .15s; }
.site-foot .socials a:hover { transform: translateY(-2px); background: rgba(245,180,26,.2); color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 2px; }
.foot-links a:hover { color: var(--gold); }

/* ---------- legal pages (§30) */
.legal .panel h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 19px; scroll-margin-top: 80px; }
.legal .panel h2 .num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #3A2400; font-size: 15px; }
.legal-intro p, .legal-body p { line-height: 1.9; margin: 0 0 10px; }
.legal-body ul { line-height: 1.9; padding-inline-start: 22px; margin: 0 0 10px; }
.legal-body li { margin-bottom: 4px; }
.legal-body b, .legal-intro b { color: #fff; }
.legal a { color: var(--gold); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.2); }
.legal-toc a { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); }
.legal-toc a:hover { color: var(--gold); }
.legal-del { border-color: rgba(255,90,95,.45); }
.legal-note { margin: 8px 0 0; text-align: center; }
.legal-note a, .foot-legal a { color: var(--ink-2); }
.foot-legal { margin-top: 8px; }
.foot-legal a { font-size: 13px; font-weight: 600; }

/* ---- تواصل معنا  ---- */
.flabel { display: block; font-weight: 800; margin: 14px 0 6px; }
textarea.field { resize: vertical; min-height: 140px; line-height: 1.8; font-weight: 500; font-size: 17px; }
.ccats button { font-size: 15px; padding: 8px 14px; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.attbox { margin-top: 12px; }
.att-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.att { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.att img, .att video { width: 100%; height: 100%; object-fit: cover; }
.att button { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.att small { position: absolute; bottom: 0; inset-inline: 0; background: rgba(0,0,0,.55); font-size: 10px; text-align: center; padding: 2px; }
.att-v { position: absolute; top: 4px; right: 6px; font-size: 16px; }
.att-hint { margin-top: 6px; }
.upbar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 12px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s; }
.tcat, .tst, .tnew { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; background: var(--glass-2); border: 1px solid var(--line); }
.tst-open { color: #FFB3B5; } .tst-answered { color: var(--mint); background: rgba(46,196,182,.15); } .tst-closed { color: var(--ink-3); }
.tnew { background: var(--coral); color: #fff; border-color: transparent; }
.tlist { display: flex; flex-direction: column; gap: 8px; }
.trow { display: block; padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.trow.unread { border-color: var(--gold); background: rgba(245,180,26,.08); }
.trow-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.trow-h small { margin-inline-start: auto; }
.trow-p { margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.tmsg { max-width: 88%; padding: 10px 14px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--line); }
.tmsg.me { align-self: flex-start; border-radius: 18px 18px 18px 6px; }
.tmsg.team { align-self: flex-end; background: rgba(245,180,26,.12); border-color: rgba(245,180,26,.4); border-radius: 18px 18px 6px 18px; }
.tmeta { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.tbody { line-height: 1.8; word-break: break-word; }
.tfiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tfiles img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.tfiles video { width: 100%; max-width: 280px; border-radius: 12px; background: #000; }

/* website ads : "+" inside the winks pill → rewarded ad */
#winks { gap: 4px; padding-inline-end: 5px; }
.wk-plus { display: grid; place-items: center; width: 22px; height: 22px; margin-inline-start: 4px; border: 0; border-radius: 50%; background: rgba(11,16,40,.85); color: var(--gold); font-size: 15px; line-height: 1; cursor: pointer; transition: transform .15s; }
.wk-plus:hover { transform: scale(1.12); }
.wk-plus:active { transform: scale(.92); }
.ad-prompt { z-index: 80; }

/* host tools  */
.member.tap { cursor: pointer; }
.member.tap:hover { border-color: rgba(245,180,26,.45); }
button.member.pick { font: inherit; color: inherit; cursor: pointer; }
button.member.pick:hover { border-color: var(--gold); background: rgba(245,180,26,.08); }
#hostbtn { font-size: 18px; }

/* vote to kick  — a small strip, never a blocking popup */
.votebar { position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 55; width: min(92vw, 380px);
  padding: 10px 12px 12px; border-radius: 16px; background: rgba(20,27,60,.96); border: 1px solid var(--coral); box-shadow: var(--shadow); animation: vbup .35s cubic-bezier(.2,.9,.3,1.3); }
@keyframes vbup { from { transform: translate(-50%, 30px); opacity: 0; } }
.votebar .vb-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.votebar .vb-h > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.votebar .vb-t { color: var(--ink-2); font-size: 13px; direction: ltr; }
.votebar .vb-x { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.votebar .vb-prog { height: 6px; border-radius: 6px; background: var(--glass-2); margin: 8px 0 4px; overflow: hidden; }
.votebar .vb-prog i { display: block; height: 100%; background: linear-gradient(90deg, #FF8A8D, var(--coral)); transition: width .3s; margin-inline-start: 0; }
.votebar .vb-c { color: var(--ink-3); }
.votebar .vb-btns { display: flex; gap: 8px; margin-top: 8px; }
.votebar .vb-btns .btn-g { flex: 1; }
.votebar .vb-note { margin-top: 8px; font-weight: 800; font-size: 14px; color: var(--ink-2); text-align: center; }
.votebar.folded { width: auto; padding: 0; border-color: rgba(255,90,95,.6); }
.votebar.folded .vb-open { font: 800 14px "Tajawal", "Tajawal Fallback", sans-serif; color: var(--ink); background: none; border: 0; padding: 8px 14px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
/* room top bar on phones: logo + up to 4 tool buttons + sound + winks must fit without side-scrolling */
@media (max-width: 440px) {
  .page-room .topbar { gap: 6px; padding: 12px 10px; }
  .page-room .brand b { display: none; }
  .page-room .brand .logo { width: 36px; height: 36px; }
  .page-room .soundbox { gap: 4px; }
  .page-room .soundbox button, .page-room .helpbtn { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
}

/* emoji as images — same look on every phone */
img.emo { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.22em; margin: 0 .04em; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
img.av-img { width: 1.3em; height: 1.3em; display: inline-block; vertical-align: middle; border-radius: 50%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.avatars button img.av-img { width: 86%; height: 86%; }
.bub img.av-img, .duelist .bub img.av-img { width: 92%; height: 92%; }
.member .av img.av-img { width: 1.25em; height: 1.25em; }

/* ---------------- اسم حيوان نبات ---------------- */
.ism-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ism-tile { width: 46px; height: 46px; border-radius: 12px; display: inline-grid; place-items: center; flex: none; font: 900 30px "Tajawal", "Tajawal Fallback", sans-serif; line-height: 1; color: #141B3C;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-d)); box-shadow: 0 4px 0 #8F6100, 0 8px 18px rgba(0,0,0,.35); padding-top: 4px; }
.ism-tile.big { width: 132px; height: 132px; border-radius: 30px; font-size: 92px; box-shadow: 0 8px 0 #8F6100, 0 18px 40px rgba(245,180,26,.35); }
.ism-spin { text-align: center; }
.ism-wheel { margin: 18px auto 14px; display: grid; place-items: center; animation: ismbob 1s ease-in-out infinite; }
@keyframes ismbob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.ism-letter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ism-letter-row .ism-tile { width: 60px; height: 60px; font-size: 40px; border-radius: 16px; }
.ism-letter-row b { display: block; font-size: 20px; }
.ism-bar { height: 8px; border-radius: 8px; background: var(--glass-2); overflow: hidden; margin-bottom: 10px; }
.ism-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #8FF3E9); transition: width .25s linear; margin-inline-start: auto; }
.ism-bar i.low { background: linear-gradient(90deg, var(--coral), #FF8A8D); }
.ism-stop { margin-bottom: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,90,95,.15); border: 1px solid var(--coral); font-weight: 800; text-align: center; animation: pop .3s; }
.ism-sheet { display: flex; flex-direction: column; gap: 8px; }
.ism-field { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.22); border: 2px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 10px; transition: border-color .15s; }
.ism-field > span { flex: none; width: 92px; font-weight: 900; color: var(--gold-2); font-size: 15px; }
.ism-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font: 800 18px "Tajawal", "Tajawal Fallback", sans-serif; padding: 9px 0; }
.ism-field input::placeholder { color: var(--ink-3); }
.ism-field:focus-within { border-color: rgba(245,180,26,.6); }
.ism-field.done { border-color: rgba(46,196,182,.55); }
.ism-field.bad { border-color: var(--coral); background: rgba(255,90,95,.08); }
.ism-mark { width: 22px; flex: none; font-style: normal; text-align: center; }
.ism-field.done .ism-mark::after { content: "✓"; color: var(--teal); font-weight: 900; }
.ism-field.bad .ism-mark::after { content: "!"; color: var(--coral); font-weight: 900; }
.ism-khalast { margin-top: 14px; font-size: 22px; }
.ism-khalast:disabled { opacity: .45; filter: grayscale(.4); }
.ism-board .ism-prog { font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: 8px; background: rgba(46,196,182,.2); color: var(--mint); }
.ism-board .ism-ok { font-style: normal; color: var(--teal); }
.ism-board span.me { box-shadow: 0 0 0 2px var(--gold); }
.ism-cat { margin-top: 10px; }
.ism-cat h3 { margin: 0 0 6px; font-size: 15px; color: var(--gold-2); }
.ism-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 5px; }
.ism-row .who { flex: none; font-size: 13px; color: var(--ink-2); max-width: 34%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ism-row .ans { flex: 1; min-width: 0; font-size: 16px; }
.ism-row .mk { font-style: normal; font-weight: 900; width: 22px; text-align: center; }
.ism-row.ok { border-color: rgba(46,196,182,.4); } .ism-row.ok .mk { color: var(--teal); }
.ism-row.bad .ans, .ism-row.empty .ans { color: var(--ink-3); text-decoration: line-through; } .ism-row.bad .mk { color: var(--coral); }
.ism-row.vote { border-color: rgba(245,180,26,.55); background: rgba(245,180,26,.07); } .ism-row.vote .mk { color: var(--gold); }
.ism-row .cnt { font-size: 12px; color: var(--ink-2); flex: none; }
.ism-row .vbtn { display: flex; gap: 4px; flex: none; }
.ism-row .vbtn button { border: 1px solid var(--line); background: var(--glass); border-radius: 10px; padding: 4px 8px; font-size: 16px; cursor: pointer; }
.ism-row .vbtn button.on { background: rgba(46,196,182,.3); border-color: var(--teal); }
.ism-row .vbtn button.on.no { background: rgba(255,90,95,.3); border-color: var(--coral); }
.ism-round h3 { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 16px; }
.ism-round h3 .ism-tile { width: 34px; height: 34px; font-size: 22px; border-radius: 9px; box-shadow: 0 3px 0 #8F6100; }
.ism-pl { padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 8px; }
.ism-pl .top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ism-pl .top em { margin-inline-start: auto; font-style: normal; font-weight: 900; color: var(--gold); font-size: 18px; }
.ism-pl .cells { display: flex; flex-wrap: wrap; gap: 5px; }
.ism-pl .cell { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 9px; font-weight: 800; font-size: 14px; background: var(--glass-2); }
.ism-pl .cell small { color: var(--ink-3); font-size: 11px; }
.ism-pl .cell i { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 6px; background: rgba(0,0,0,.3); }
.ism-pl .cell.p10 i { background: var(--gold); color: #3A2400; } .ism-pl .cell.p5 i { background: var(--teal); color: #062A27; } .ism-pl .cell.p0 { opacity: .55; }
.ism-cats button.extra:not(.on) { border-style: dashed; }

/* lobby on wide screens: two columns — code, players & start on the right; the game and its settings on the left */
@media (min-width: 1000px) {
  #app:has(> .lobby-grid) { max-width: 1080px; }
  .lobby-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    grid-template-areas: "code game" "players game" "host game"; gap: 18px 22px; align-items: start; }
  .lobby-grid > section { margin-top: 0 !important; }
  .lobby-grid > .room-code { grid-area: code; }
  .lobby-grid > .lb-game { grid-area: game; }
  .lobby-grid > .lb-players { grid-area: players; }
  .lobby-grid > #hostbox { grid-area: host; }
  .lobby-grid .game-pick { grid-template-columns: repeat(3, 1fr); }
}

/* paid hints */
.hintw { display: inline-flex; gap: 4px; direction: rtl; vertical-align: middle; }
.hintw b { min-width: 26px; height: 32px; padding: 0 4px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #3A2400; font-weight: 900; font-size: 18px; }
.hintw b.q { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.25); }
.hintw .sp { width: 10px; }
.ism-field { position: relative; }
.ism-hintbtn { flex: none; border: 1px solid rgba(245,180,26,.4); background: rgba(245,180,26,.1); border-radius: 10px; padding: 3px 8px; font-size: 15px; cursor: pointer; color: #fff; font-family: inherit; font-weight: 800; white-space: nowrap; }
.ism-hintbtn.armed { background: var(--gold); color: #3A2400; }
.ism-hintbtn:disabled { opacity: .35; cursor: default; }
.ism-hint { margin: -2px 6px 8px; font-size: 14px; }
.ism-hint:empty { display: none; }
.g-hint { margin: 4px 0 12px; } .g-hint:empty { display: none; } .g-hint .hintw b { min-width: 34px; height: 42px; font-size: 24px; }
#ghintbtn.armed { filter: brightness(1.15); }

/* «نتيجة السهرة» */
.sess-rows { display: flex; flex-direction: column; gap: 6px; }
.sess-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.sess-row.me { border-color: rgba(245,180,26,.5); background: rgba(245,180,26,.07); }
.sess-row .rk { width: 26px; text-align: center; font-weight: 900; }
.sess-row .av-img { width: 34px; height: 34px; }
.sess-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-row .w { font-weight: 900; color: var(--gold); }
.sess-star { margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; text-align: center; font-weight: 800; background: linear-gradient(90deg, rgba(245,180,26,.18), rgba(245,180,26,.06)); border: 1px solid rgba(245,180,26,.45); }
@media (min-width: 1000px) {
  .lobby-grid { grid-template-rows: auto auto auto 1fr; grid-template-areas: "code game" "players game" "host game" "session game"; }
  .lobby-grid > .lb-session { grid-area: session; }
}

/* 🎁 invite card */
.inv-link { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px dashed rgba(245,180,26,.5); text-align: center; overflow: hidden; }
.inv-link code { color: var(--gold-2); font-size: 15px; word-break: break-all; }

/* card images: no long-press «save image» / drag-out */
img[src*="/assets/cards/"] { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }

/* 🌍 public rooms + spectators (CLAUD.md §62) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font: 800 15px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; min-height: 40px; }
.chips button.on { background: var(--gold); border-color: var(--gold); color: #3A2400; }
.chips button .tiny { opacity: .75; }
.rooms-wrap { max-width: 1080px; }
.rooms-top { display: flex; flex-direction: column; gap: 12px; }
.rooms-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.rooms-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rsearch { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.rsearch i { color: var(--ink-3); font-size: 18px; }
.rsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 700 16px "Tajawal", "Tajawal Fallback", sans-serif; padding: 12px 0; }
.chips .cnt, .rg-h .cnt { font-size: 12px; font-weight: 900; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.25); margin-inline-start: 2px; }
.chips button.on .cnt { background: rgba(58,36,0,.18); }
.online-pill b { color: var(--mint); }
.rgroup { margin-top: 20px; }
.rg-h { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 4px 10px; }
.rg-h .btn-g { margin-inline-start: auto; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rtile { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .12s, border-color .12s, background .12s; min-width: 0; }
a.rtile:hover { transform: translateY(-2px); border-color: rgba(245,180,26,.55); background: rgba(245,180,26,.06); }
.rtile.run { border-color: rgba(46,196,182,.35); }
.rtile.off { opacity: .55; }
.rt-game { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rt-game .rt-card { width: 26px; height: 39px; border-radius: 4px; object-fit: cover; flex: none; }
.rt-game b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rt-tag { margin-inline-start: auto; flex: none; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(46,196,182,.16); color: var(--mint); }
.rtile.off .rt-tag { background: rgba(255,255,255,.08); color: var(--ink-3); }
.rt-host { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.rt-host .av-img, .rt-host img.emo { width: 22px; height: 22px; flex: none; }
.rt-host .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rt-flag { font-size: 15px; line-height: 1; flex: none; }
.rt-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.rt-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.rt-meta { font-size: 12px; color: var(--ink-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-more { margin-top: 10px; }
.rooms-empty { text-align: center; }
.pub-line { font-weight: 800; }
.pub-tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(46,196,182,.12); border: 1px dashed rgba(46,196,182,.5); font-weight: 700; font-size: 14px; }
.watchers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.watchers .av-img, .watchers img.emo { width: 22px; height: 22px; }
.watch-head { display: flex; align-items: center; gap: 14px; }
.watch-head img { width: 60px; border-radius: 8px; }
.watch-note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; text-align: center; font-weight: 800; background: rgba(245,180,26,.12); border: 1px solid rgba(245,180,26,.45); }
.sess-row.off { opacity: .45; }
@media (max-width: 520px) {
  .rgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rtile { padding: 9px 10px; gap: 6px; }
  .rt-game b { font-size: 13px; }
  .rt-host { font-size: 13px; }
  .rt-tag { display: none; }
  .rooms-actions { grid-template-columns: 1fr 1fr; }
  .rooms-actions .btn-g { padding-inline: 10px; font-size: 15px; }
  /* long chip rows scroll sideways instead of eating the screen */
  .rooms-top .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; }
  .rooms-top .chips::-webkit-scrollbar { display: none; }
  .rooms-top .chips button { flex: none; }
  .rooms-tools .seg { width: 100%; }
  .rooms-tools .seg button { flex: 1; }
}
@media (min-width: 1000px) {
  .lobby-grid { grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "code game" "pub game" "players game" "host game" "session game"; }
  .lobby-grid > .lb-pub { grid-area: pub; }
}
/* spectator stage (CLAUD.md §62) */
.watch-stage { text-align: center; position: relative; }
.ws-timer { position: absolute; top: 14px; inset-inline-start: 16px; font-weight: 900; color: var(--gold); }
.ws-timer:empty { display: none; }
.ws-big { font-size: 44px; font-weight: 900; margin: 6px 0; line-height: 1.25; }
.ws-big .ws-q { font-size: 26px; display: inline-block; padding: 10px 16px; border-radius: 16px; background: rgba(245,180,26,.1); border: 1px solid rgba(245,180,26,.4); }
.ws-letter { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; font-size: 54px; color: #3A2400; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.ws-line { color: var(--ink-2); font-weight: 700; margin: 6px 0; }
.ws-line b { color: var(--ink); }
.ws-cats, .ws-fill, .ws-teams { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.ws-tally { margin: 12px auto 0; max-width: 360px; text-align: start; }
.ws-tally span { font-weight: 800; font-size: 14px; color: var(--ink-2); }
.ws-tally b { float: inline-end; color: var(--gold); }
.ws-tally i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: 6px; overflow: hidden; }
.ws-tally em { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.ws-feed { margin-top: 14px; text-align: start; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.ws-feed div { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
/* 🚩 report (CLAUD.md §63) */
.rep-reasons { display: flex; flex-direction: column; gap: 8px; }
.rep-reasons button { text-align: start; border: 1px solid var(--line); background: var(--glass); color: var(--ink); border-radius: 12px; padding: 11px 14px; font: 800 15px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; }
.rep-reasons button.on { border-color: var(--coral); background: rgba(255,90,95,.15); }
.sess-row.tap[data-pick] { cursor: pointer; }
.watchers button.pill { cursor: pointer; color: var(--ink); font-family: inherit; }
/* 👤 «حسابي» (CLAUD.md §64) */
.acctbtn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(245,180,26,.5); background: var(--glass); color: var(--gold); display: grid; place-items: center; cursor: pointer; padding: 0; font-size: 18px; flex: none; }
.acctbtn .av-img, .acctbtn img.emo { width: 30px; height: 30px; }
.acctbtn .dot { position: absolute; top: -1px; inset-inline-end: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--coral); border: 2px solid var(--deep); }
.acct .box { text-align: start; }
.acct h2 { text-align: center; }
.acct-me { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.acct-me > .av-img, .acct-me > img.emo { width: 44px; height: 44px; }
.acct-warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,90,95,.12); border: 1px solid rgba(255,90,95,.45); font-weight: 700; font-size: 14px; }
.acct-ok { margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: rgba(46,196,182,.12); border: 1px solid rgba(46,196,182,.5); font-weight: 700; font-size: 14px; }
.acct-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.acct-google { min-height: 44px; display: flex; justify-content: center; width: 100%; }
.acct-apple { width: 100%; max-width: 320px; height: 44px; border-radius: 999px; border: 0; background: #000; color: #fff; font: 800 16px "Tajawal", "Tajawal Fallback", sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.acct-apple i { font-size: 20px; }

/* ---------------------------------------------------------------- emotes (CLAUD.md §65) */
.emo-fab { position: fixed; left: 12px; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 45; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(245,180,26,.55); background: rgba(20,27,60,.88); backdrop-filter: blur(6px); box-shadow: var(--shadow); font-size: 26px; cursor: pointer;
  display: grid; place-items: center; padding: 0; transition: transform .15s; }
.emo-fab:active { transform: scale(.92); }
.emo-fab.locked { opacity: .45; filter: grayscale(.7); }
.emo-fab.inline { position: static; width: 40px; height: 40px; font-size: 21px; box-shadow: none; backdrop-filter: none; flex: none; align-self: center; }
.emo-fab.inline img.emo { width: 24px; height: 24px; margin: 0; vertical-align: 0; }
.emo-tray { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 58; width: min(94vw, 440px);
  border-radius: 22px; background: rgba(11,16,40,.96); border: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(0,0,0,.5); padding: 12px; animation: emo-up .22s ease-out; }
@keyframes emo-up { from { transform: translate(-50%, 30px); opacity: 0; } }
.emo-head { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.emo-tabs { display: flex; gap: 6px; flex: 1; }
.emo-tabs button { flex: 1; padding: 8px 4px; border-radius: 11px; border: 0; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--ink-2); background: var(--glass); cursor: pointer; }
.emo-tabs button.on { background: var(--gold); color: #3A2400; }
.emo-mute, .emo-x { width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--glass); color: var(--ink); font-size: 17px; cursor: pointer; flex: none; }
.emo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.emo-grid.three { grid-template-columns: repeat(3, 1fr); }
.emo-it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 7px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); font: inherit; cursor: pointer; transition: transform .12s, background .12s; }
.emo-it:active { transform: scale(.93); background: var(--glass-2); }
.emo-it .e { font-size: 34px; line-height: 1; }
.emo-it .e img.emo { width: 38px; height: 38px; vertical-align: 0; margin: 0; }
.emo-it .l { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.emo-it.paid .e { opacity: .55; }
.emo-it .lock { position: absolute; top: -6px; inset-inline-start: -4px; font-size: 11px; font-weight: 900; background: var(--gold); color: #3A2400; border-radius: 999px; padding: 1px 7px; }
.emo-phr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emo-phr button { padding: 11px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.emo-phr button:active { background: var(--glass-2); }
.emo-note { font-size: 13px; color: var(--gold-2); background: rgba(245,180,26,.1); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
.emo-aim { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.emo-back { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--glass); color: var(--ink); cursor: pointer; }
.emo-people { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.emo-people button { position: relative; flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.emo-people button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emo-people .av-img { width: 40px; height: 40px; }
.emo-people i { position: absolute; top: 2px; inset-inline-end: 4px; font-style: normal; font-size: 12px; }
.emo-buy { text-align: center; }
.emo-buy-items { font-size: 40px; display: flex; justify-content: center; gap: 14px; margin-bottom: 4px; }
.emo-buy-items img.emo { width: 46px; height: 46px; }
.emo-buy p { margin: 4px 0 10px; }

.emo-fx { position: fixed; inset: 0; z-index: 57; pointer-events: none; overflow: hidden; }
.emo-fx > div { position: absolute; }
.emo-pop { font-size: 56px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.emo-pop img.emo { width: 64px; height: 64px; }
.emo-float { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(11,16,40,.82); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.emo-float .av-img { width: 34px; height: 34px; }
.emo-float img.emo { width: 50px; height: 50px; margin: 0; }
.emo-say { transform: translate(-50%, -100%); max-width: min(80vw, 300px); padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #1b1f3b;
  font-weight: 900; font-size: 15px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,.4); animation: emo-say 2.6s ease forwards; }
.emo-say.wide { transform: translate(-50%, 0); display: flex; align-items: center; gap: 6px; border-radius: 999px; }
.emo-say.wide .av-img { width: 26px; height: 26px; }
@keyframes emo-say { 0% { opacity: 0; margin-top: 10px; } 10%, 85% { opacity: 1; margin-top: 0; } 100% { opacity: 0; margin-top: -10px; } }
.emo-fly { transform: translate(-50%, -50%); font-size: 48px; line-height: 1; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)); }
.emo-fly img.emo { width: 54px; height: 54px; margin: 0; }
.emo-ghost { transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 18px;
  background: rgba(20,27,60,.9); border: 1px solid var(--line); font-weight: 800; font-size: 13px; animation: fade .2s; transition: opacity .4s; }
.emo-ghost .av-img { width: 54px; height: 54px; }
.emo-ghost.out { opacity: 0; }
.emo-splat { width: 120px; height: 120px; transform: translate(-50%, -50%); animation: emo-splat 2.3s ease forwards; }
.emo-splat > svg { width: 100%; height: 100%; }
@keyframes emo-splat { 0% { transform: translate(-50%,-50%) scale(.2); opacity: 1; } 12% { transform: translate(-50%,-50%) scale(1.15); } 22%, 70% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-35%) scale(1); opacity: 0; } }
.emo-splat .drop { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4px; border-radius: 50%; animation: emo-drop .55s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes emo-drop { to { transform: rotate(var(--a)) translateY(calc(-1 * var(--r))); } }
.emo-splat.hit-water { width: 150px; height: 150px; }
.emo-splat.hit-boom .boom { position: absolute; inset: -20px; display: grid; place-items: center; animation: emo-boom .5s ease-out forwards; z-index: 2; }
.emo-splat.hit-boom .boom img.emo { width: 130px; height: 130px; }
@keyframes emo-boom { 0% { transform: scale(.3); opacity: 1; } 60% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.emo-splat.hit-boom > svg { opacity: .9; }
.emo-splat.hit-hearts .hearts i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.6 4.6 0 0 1 8-3 4.6 4.6 0 0 1 8 3c0 5.8-8 11-8 11z' fill='%23F06292'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: emo-heart 1.8s ease-out forwards; }
.emo-splat.hit-hearts .hearts i:nth-child(2) { animation-delay: .15s; --hx: -28px; }
.emo-splat.hit-hearts .hearts i:nth-child(3) { animation-delay: .3s; --hx: 26px; }
@keyframes emo-heart { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--hx, 0), -90px) scale(1.2); opacity: 0; } }
.emo-splat.hit-steam .cup { position: absolute; inset: 0; display: grid; place-items: center; animation: emo-cup .5s ease-out; }
.emo-splat.hit-steam .cup img.emo, .emo-splat.hit-steam .cup .emo-pic, .emo-splat.hit-steam .cup .emo-lot { width: 64px; height: 64px; }
@keyframes emo-cup { 0% { transform: translateY(-30px) rotate(-12deg); } 60% { transform: translateY(4px) rotate(4deg); } 100% { transform: none; } }
.emo-splat.hit-steam .steam { position: absolute; left: 44%; top: 26%; width: 6px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.55); filter: blur(2px); animation: emo-steam 1.6s ease-in infinite; }
.emo-splat.hit-steam .steam:nth-child(3) { left: 52%; animation-delay: .4s; }
.emo-splat.hit-steam .steam:nth-child(4) { left: 60%; animation-delay: .8s; }
@keyframes emo-steam { 0% { transform: translateY(0) scaleY(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-34px) scaleY(1.2); opacity: 0; } }
.emo-cap { transform: translate(-50%, 0); padding: 6px 12px; border-radius: 999px; background: rgba(11,16,40,.85); border: 1px solid var(--line); font-weight: 800; font-size: 13px;
  white-space: nowrap; animation: emo-say 2.3s ease forwards; }
.emo-cap.me { background: rgba(255,90,95,.92); border-color: transparent; }
.emo-hit { animation: emo-shake .55s ease; }
@keyframes emo-shake { 0%, 100% { translate: 0 0; } 20% { translate: -7px 0; rotate: -3deg; } 40% { translate: 6px 0; rotate: 2deg; } 60% { translate: -4px 0; rotate: 0deg; } 80% { translate: 3px 0; } }
.emo-glow { box-shadow: 0 0 0 3px rgba(240,98,146,.6), 0 0 26px rgba(240,98,146,.5) !important; transition: box-shadow .3s; }
@media (prefers-reduced-motion: reduce) { .emo-hit { animation: none; } }
/* catalog art (CLAUD.md §66): uploaded pictures / GIF / animated WebP / Lottie sit where the emoji did */
.emo-pic, .emo-lot { display: inline-block; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: -.22em; pointer-events: none; }
.emo-lot svg { display: block; }
.emo-it .e .emo-pic, .emo-it .e .emo-lot { width: 40px; height: 40px; vertical-align: 0; }
.emo-pop .emo-pic, .emo-pop .emo-lot { width: 72px; height: 72px; }
.emo-float .emo-pic, .emo-float .emo-lot { width: 58px; height: 58px; vertical-align: middle; }
.emo-fly .emo-pic, .emo-fly .emo-lot { width: 58px; height: 58px; }
.emo-buy-items .emo-pic, .emo-buy-items .emo-lot { width: 48px; height: 48px; }
.emo-aim-i .emo-pic, .emo-aim-i .emo-lot, .emo-aim-i img.emo { width: 28px; height: 28px; }
.emo-cap .ci .emo-pic, .emo-cap .ci .emo-lot { width: 20px; height: 20px; }
.emo-hitart { position: absolute; inset: -20px; display: grid; place-items: center; }
.emo-hitart .emo-pic, .emo-hitart .emo-lot { width: 160px; height: 160px; }
.emo-phr button.paid { opacity: .7; }
.emo-phr .lock { font-size: 11px; font-weight: 900; background: var(--gold); color: #3A2400; border-radius: 999px; padding: 1px 6px; }

/* host approval (CLAUD.md §69) */
.knockbar { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 56; width: min(92vw, 400px); padding: 10px 12px; border-radius: 18px;
  background: rgba(11,16,40,.95); border: 2px solid rgba(245,180,26,.6); box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: emo-up .25s ease-out; }
.knockbar .kb-h { font-weight: 900; font-size: 14px; color: var(--gold-2); margin-bottom: 6px; }
.knockbar .kb-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.knockbar .kb-row .av-img { width: 30px; height: 30px; }
.knockbar .kb-row b { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knockbar button { border: 0; border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.knockbar .kb-ok { background: var(--teal); color: #062A27; }
.knockbar .kb-no { background: rgba(255,90,95,.18); color: var(--coral); }
.knock-clock { font-weight: 900; color: var(--gold); margin-top: 6px; }

/* ---- emote store /store (CLAUD.md §72) ---- */
.store-wrap { max-width: 860px; }
.st-pack { margin-top: 18px; }
.st-pack.feat { box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(245,180,26,.18); }
.st-pack.gifted { box-shadow: 0 0 0 2px var(--teal), 0 10px 30px rgba(46,196,182,.22); }
.st-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.st-head h2 { margin: 0; flex: 1; min-width: 0; }
.pill.sm { padding: 3px 9px; font-size: 12px; vertical-align: middle; }
.st-ends { font-weight: 800; color: var(--coral); font-size: 14px; }
.st-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.st-it { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; cursor: pointer; }
.st-it:hover { border-color: rgba(245,180,26,.45); }
.st-it .e { width: 52px; height: 52px; display: grid; place-items: center; font-size: 40px; line-height: 1; }
.st-it .e img, .st-it .e .emo-lot, .st-it .e .emo-pic { width: 52px; height: 52px; object-fit: contain; display: block; }
.st-it .e img.emo { width: 44px; height: 44px; }
.st-it .l { font-size: 13px; font-weight: 700; color: var(--ink-2, #cfd6ff); text-align: center; }
.st-phr { font-size: 13px; font-weight: 800; padding: 6px 8px; border-radius: 12px; background: var(--glass-2); line-height: 1.3; }
.st-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.st-buy .btn-g { flex: 1 1 200px; }
.st-gift { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.st-gift:first-of-type { border-top: 0; }
.home-promo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.home-promo .ic { font-size: 42px; line-height: 1; flex: none; }
.home-promo b { display: block; font-size: 18px; color: var(--gold-2); }
.home-promo .go { margin-inline-start: auto; flex: none; }

/* ---- «سهرة الليلة» banner (CLAUD.md §73) ---- */
.night-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(142,91,216,.45), rgba(20,27,60,.9) 60%); border-color: rgba(142,91,216,.6); }
.night-card .night-ic { font-size: 44px; line-height: 1; flex: none; filter: drop-shadow(0 0 12px rgba(255,224,138,.5)); }
.night-card .night-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.night-card .night-tx b { font-size: 20px; color: var(--gold-2); }
.night-card .night-cd { font-weight: 800; color: var(--mint); font-size: 15px; font-variant-numeric: tabular-nums; }
.night-card .btn-g { flex: none; }
@media (max-width: 520px) { .night-card { flex-wrap: wrap; } .night-card .btn-g { width: 100%; } }
.rtile.official { box-shadow: 0 0 0 2px rgba(142,91,216,.9), 0 10px 30px rgba(142,91,216,.3); }
.official-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: linear-gradient(90deg, #8E5BD8, #B98CFF); color: #fff; font-weight: 800; font-size: 12px; }

/* ---- home quick links: public rooms + emote store ---- */
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ql { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px 14px; border-radius: 20px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ql:hover { transform: translateY(-2px); }
.ql-rooms { background: linear-gradient(160deg, rgba(46,196,182,.32), rgba(46,196,182,.06)); border: 1.5px solid rgba(46,196,182,.55); }
.ql-rooms:hover { box-shadow: 0 10px 24px rgba(46,196,182,.22); }
.ql-store { background: linear-gradient(160deg, rgba(142,91,216,.42), rgba(245,180,26,.08)); border: 1.5px solid rgba(185,140,255,.6); }
.ql-store:hover { box-shadow: 0 10px 24px rgba(142,91,216,.28); }
.ql-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; line-height: 1; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ql-ic img.emo { width: 32px; height: 32px; }
.ql-tx { display: flex; flex-direction: column; gap: 2px; }
.ql-tx b { font-size: 16px; font-weight: 900; line-height: 1.3; white-space: nowrap; }
.ql-tx small { font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.ql-rooms b { color: var(--mint); }
.ql-store b { color: var(--gold-2); }
.ql-go { display: none; }

/* ---- profile card, badges, friends (CLAUD.md §74–75) ---- */
.overlay.soc { place-items: start center; overflow-y: auto; }
.overlay.soc .box { max-width: 460px; text-align: start; margin: 20px 0; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head > .av-img, .pc-head > img.emo { width: 64px; height: 64px; flex: none; }
.pc-head h2 { margin: 0; font-size: 22px; }
.pc-badge { font-size: 22px; vertical-align: middle; }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 10px; }
.pc-stats > div { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-stats b { font-size: 20px; color: var(--gold-2); line-height: 1.2; }
.pc-stats b.sm { font-size: 13px; line-height: 1.5; }
.pc-stats span { font-size: 11px; color: var(--ink-2); }
.pc-week { background: rgba(245,180,26,.12); border: 1px solid rgba(245,180,26,.35); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.pc-games { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pc-games > div { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.pc-games i { height: 8px; border-radius: 6px; background: var(--glass-2); overflow: hidden; }
.pc-games em { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--mint)); border-radius: 6px; }
.pc-games small { color: var(--ink-2); text-align: end; direction: ltr; }
.pc-h { margin: 16px 0 8px; font-size: 17px; }
.pc-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pcb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; cursor: default; opacity: .55; }
.pcb.has { opacity: 1; border-color: rgba(245,180,26,.4); background: rgba(245,180,26,.08); }
.pcb[data-show], .pcb[data-buy] { cursor: pointer; }
.pcb[data-buy] { opacity: .85; }
.pcb.sel { box-shadow: 0 0 0 2px var(--gold); }
.pcb.armed { box-shadow: 0 0 0 2px var(--coral); }
.pcb .i { font-size: 30px; line-height: 1.1; }
.pcb .i img.emo { width: 30px; height: 30px; }
.pcb .n { font-size: 12.5px; font-weight: 800; text-align: center; line-height: 1.3; }
.pcb .s { font-size: 11px; color: var(--ink-2); }
.pcb .bar { width: 80%; height: 4px; border-radius: 3px; background: var(--glass-2); overflow: hidden; margin-top: 2px; }
.pcb .bar em { display: block; height: 100%; background: var(--gold); }
.pc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; align-items: center; }
.pc-actions .btn-g.block { width: 100%; }
.nm-badge { font-size: .95em; }
.acct-soc { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.fr-sec { font-weight: 900; font-size: 14px; color: var(--gold-2); margin: 14px 0 6px; }
.fr-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.fr-who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: inherit; text-align: start; cursor: pointer; padding: 0; }
.fr-who > .av-img, .fr-who > img.emo { width: 36px; height: 36px; flex: none; }
.fr-who span { display: flex; flex-direction: column; min-width: 0; }
.fr-who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-who small { font-size: 12px; color: var(--ink-3); }
.fr-who small.on { color: var(--mint); }
.fr-code { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.inv-toast { position: fixed; z-index: 80; top: 14px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 18px; background: linear-gradient(135deg, #2b2f6e, #1a1f4a); border: 1.5px solid rgba(245,180,26,.6); box-shadow: 0 14px 36px rgba(0,0,0,.5); animation: pop .35s; }
.inv-toast > .av-img, .inv-toast > img.emo { width: 40px; height: 40px; flex: none; }
.inv-toast > div { flex: 1; font-size: 14px; line-height: 1.5; }
.inv-toast .x { background: none; border: 0; color: var(--ink-3); font-size: 16px; cursor: pointer; }
@media (max-width: 420px) { .pc-games > div { grid-template-columns: 110px 1fr 46px; } .pc-stats b { font-size: 17px; } }
.ql-top { background: linear-gradient(160deg, rgba(245,180,26,.30), rgba(245,180,26,.05)); border: 1.5px solid rgba(245,180,26,.55); }
.ql-top:hover { box-shadow: 0 10px 24px rgba(245,180,26,.22); }
.ql-top b { color: var(--gold-2); }
.ql-friends { background: linear-gradient(160deg, rgba(255,90,95,.28), rgba(255,90,95,.05)); border: 1.5px solid rgba(255,138,141,.55); }
.ql-friends:hover { box-shadow: 0 10px 24px rgba(255,90,95,.2); }
.ql-friends b { color: #FFC2C4; }
.ql-ic { position: relative; }
.ql-dot { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font: 800 12px/20px Tajawal, sans-serif; font-style: normal; }
/* «مهام اليوم» (CLAUD.md §76) */
.quests .q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quests h2 { margin: 0 0 6px; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.q-row.done { opacity: .6; }
.q-tx { flex: 1; min-width: 0; }
.q-tx b { font-size: 15px; }
.q-bar { height: 8px; border-radius: 6px; background: var(--glass-2); overflow: hidden; margin: 6px 0 2px; }
.q-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--coral)); }
.q-tx small { font-size: 12px; color: var(--ink-3); }
.q-rw { font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.q-ok { font-size: 22px; }
.q-bonus { margin-top: 10px; text-align: center; font-weight: 700; color: var(--ink-2); }
/* «ترتيب الأسبوع» /top (CLAUD.md §77) */
.top-wrap { max-width: 640px; }
.top-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-top: 10px; }
.top-prizes .pz { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.top-prizes .pz span { font-size: 28px; line-height: 1.1; }
.top-prizes .pz b { color: var(--gold-2); }
.top-seg { margin: 12px auto 0; justify-content: center; display: flex; width: fit-content; }
#me { margin-top: 12px; text-align: center; }
.top-list, #champs { margin-top: 12px; }
.top-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.top-row:first-child { border-top: 0; }
.top-row:hover { background: var(--glass); }
.top-row.me { background: rgba(46,196,182,.12); border-radius: 12px; }
.top-row .rk { width: 34px; text-align: center; font-weight: 900; font-size: 17px; color: var(--ink-2); flex: none; }
.top-row.podium .rk { font-size: 24px; }
.top-row > .av-img { width: 40px; height: 40px; flex: none; }
.top-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top-row .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row .nm small { font-size: 13px; }
.top-row .wn { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.top-row .wn b { font-size: 20px; color: var(--gold-2); line-height: 1.1; }
.top-row .wn small { font-size: 11.5px; color: var(--ink-3); }
/* home below the fold (2026-10-14): two columns on a computer instead of one long page */
.home-row { margin-top: 22px; }
.home-col { display: flex; flex-direction: column; gap: 18px; }
.home-col + .home-col { margin-top: 18px; }
.home-col:empty { display: none; }
@media (min-width: 900px) {
  .home-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
  .home-col + .home-col { margin-top: 0; }
  .faq-list { columns: 2; column-gap: 32px; }
  .faq-list details { break-inside: avoid; }
}
