/* 🤖 لا تصدق البوت — نفس هوية الموقع (نيون بنفسجي) + وضع فاتح. الجوال أول */
:root { --rb-bg: #140a33; --rb-panel: rgba(34, 18, 79, .86); --rb-line: rgba(255, 255, 255, .14); --rb-text: #f5f3ff; --rb-muted: #b9b2dc;
  --rb-cyan: #22d3ee; --rb-pink: #ec4899; --rb-gold: #facc15; --rb-ok: #4ade80; --rb-bad: #f43f5e; --rb-tile: rgba(255, 255, 255, .06); --rb-tile-2: rgba(255, 255, 255, .12); }
html.rb-light { --rb-bg: #f4f1ff; --rb-panel: rgba(255, 255, 255, .92); --rb-line: rgba(60, 30, 140, .16); --rb-text: #1e1147; --rb-muted: #5b5285; --rb-tile: rgba(60, 30, 140, .06); --rb-tile-2: rgba(60, 30, 140, .12); color-scheme: light; }
html.rb-light body { background: linear-gradient(180deg, #ece7ff, #f8f6ff) fixed !important; color: var(--rb-text); }
html.rb-light .site-bar { background: rgba(255, 255, 255, .85); color: var(--rb-text); }
html.rb-light .site-bar .logo, html.rb-light h1, html.rb-light h2, html.rb-light h3 { color: var(--rb-text) !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* ما فيه تكبير بالضغطتين ولا سحب جانبي (الجوال كان يكبّر الصفحة لما اللاعب يضغط بسرعة) */
html, body { overflow-x: hidden; max-width: 100%; touch-action: manipulation; }
#play, #play *, .sheet, .sheet * { touch-action: manipulation; }
#play { overscroll-behavior: none; }
.zone, .zone * { touch-action: none; }
#play [hidden], .rb [hidden], .sheet [hidden] { display: none !important; }
body { overflow-x: hidden; }
.rb { max-width: 560px; margin: 0 auto; padding: 10px 12px calc(28px + env(safe-area-inset-bottom)); font-family: Almarai, system-ui, sans-serif; color: var(--rb-text); }
.rb-hero { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.rb-hero .rbt { width: 86px; height: 86px; flex: none; filter: drop-shadow(0 0 14px var(--glow)); }
.rb-hero h1 { margin: 0; font-size: 25px; line-height: 1.25; font-weight: 800; background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.rb-hero p { margin: 4px 0 0; color: var(--rb-muted); font-size: 14px; }
.rb-card { background: var(--rb-panel); border: 1px solid var(--rb-line); border-radius: 18px; padding: 12px; margin: 10px 0; box-shadow: 0 0 26px rgba(168, 85, 247, .14); }
.rb-card h2 { margin: 0 0 8px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rb-card h2 small { font-size: 12px; color: var(--rb-muted); font-weight: 700; }
.rb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rb-mode { position: relative; display: flex; flex-direction: column; gap: 3px; text-align: start; min-height: 86px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--rb-line); background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(168, 85, 247, .14)); color: inherit; font: inherit; cursor: pointer; }
.rb-mode.main { grid-column: 1 / -1; min-height: 96px; background: linear-gradient(135deg, rgba(236, 72, 153, .28), rgba(168, 85, 247, .3), rgba(34, 211, 238, .2)); border-color: rgba(236, 72, 153, .55); }
.rb-mode b { font-size: 16px; } .rb-mode span { font-size: 12.5px; color: var(--rb-muted); line-height: 1.45; }
.rb-mode i { position: absolute; inset-inline-end: 10px; top: 8px; font-style: normal; font-size: 11px; font-weight: 800; color: #1e1147; background: var(--rb-gold); border-radius: 999px; padding: 2px 8px; }
.rb-mode:active { transform: scale(.98); }
.rb-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--rb-line); background: var(--rb-tile-2); color: inherit; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; }
.rb-btn.big { width: 100%; font-size: 17px; min-height: 54px; }
.rb-btn.go { background: linear-gradient(90deg, #ec4899, #a855f7); color: #fff; border: 0; box-shadow: 0 0 18px rgba(236, 72, 153, .45); }
.rb-btn.cy { background: linear-gradient(90deg, #22d3ee, #3b82f6); color: #06122b; border: 0; }
.rb-btn.wa { background: #25d366; color: #052e16; border: 0; }
.rb-btn:disabled { opacity: .45; }
.rb-muted { color: var(--rb-muted); font-size: 13px; margin: 6px 0; }
.rb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rb-tabs button { flex: 1 1 auto; min-height: 36px; border-radius: 999px; border: 1px solid var(--rb-line); background: var(--rb-tile); color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rb-tabs button.on { background: linear-gradient(90deg, #22d3ee, #a855f7); color: #fff; border-color: transparent; }
.rb-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rb-top li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--rb-tile); font-size: 14px; }
.rb-top li.me { outline: 2px solid var(--rb-cyan); }
.rb-top .r { width: 28px; text-align: center; font-weight: 800; } .rb-top .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rb-top .s { font-weight: 800; color: var(--rb-cyan); }
.rb-top .x { font-size: 11px; color: var(--rb-muted); }
.rb-set { display: flex; gap: 6px; flex-wrap: wrap; }
.rb-set button { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rb-line); background: var(--rb-tile); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.rb-set button[aria-pressed="true"] { background: var(--rb-tile-2); outline: 2px solid var(--rb-cyan); }

/* ===== شاشة اللعب ===== */
#play { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; background: radial-gradient(ellipse at top, #2a1470 0, #140a33 55%, #0a0520 100%); color: var(--rb-text); font-family: Almarai, system-ui, sans-serif; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow: hidden; }
html.rb-light #play { background: linear-gradient(180deg, #ece7ff, #faf8ff); }
#play.on { display: flex; }
.pl-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; }
.pl-top .rbt { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 0 10px var(--glow)); transition: transform .25s; }
.pl-top .rbt.flip { transform: rotate(180deg); }
.bubble { position: relative; flex: 1; min-height: 44px; padding: 8px 12px; border-radius: 16px; background: var(--rb-panel); border: 1px solid var(--rb-line); font-size: 14px; line-height: 1.45; font-weight: 700; }
.bubble::before { content: ''; position: absolute; inset-inline-start: -7px; top: 18px; border: 7px solid transparent; border-inline-end-color: var(--rb-line); border-inline-start: 0; }
.pl-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--rb-line); background: var(--rb-tile); color: inherit; font-size: 18px; cursor: pointer; }
.hud { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; font-size: 13px; font-weight: 800; flex-wrap: wrap; }
.hud .chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--rb-tile-2); white-space: nowrap; }
.hud .sc { color: var(--rb-cyan); } .hud .cb { color: var(--rb-gold); }
.hud .grow { flex: 1; }
/* ⏱️ العداد التصاعدي: الثواني تزيد والنقاط تنقص */
.hud .tm { font-variant-numeric: tabular-nums; background: linear-gradient(90deg, rgba(34, 211, 238, .25), rgba(168, 85, 247, .25)); border: 1px solid rgba(34, 211, 238, .5); }
.hud .tm b { color: var(--rb-gold); }
.hud .tm.warn { border-color: var(--rb-bad); background: rgba(244, 63, 94, .25); animation: rbBlink 1s infinite; }
.tbar { height: 5px; margin: 2px 10px 0; border-radius: 99px; background: var(--rb-tile-2); overflow: hidden; }
.tbar i { display: block; height: 100%; width: 100%; transform-origin: right; background: linear-gradient(90deg, #f43f5e, #facc15, #4ade80); }
.qline { padding: 8px 14px 2px; font-size: 17px; font-weight: 800; text-align: center; line-height: 1.5; min-height: 34px; }
.qline small { display: block; font-size: 12px; color: var(--rb-muted); font-weight: 700; }
.stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 10px; overflow: hidden; }
.stage.flip > .area { transform: rotate(180deg); }
.stage.gray > .area { filter: grayscale(1); }
.stage.quake > .area { animation: rbQuake .6s 2; }
.area { flex: none; width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .35s; }
.inv { display: flex; gap: 6px; padding: 6px 10px 50px; /* مسافة تحت عشان زر «المشاهدة» ما يغطي البطاقات */ justify-content: center; flex-wrap: wrap; min-height: 50px; }
.inv button { min-height: 40px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--rb-line); background: var(--rb-tile); color: inherit; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.inv button.can { border-color: var(--rb-gold); box-shadow: 0 0 10px rgba(250, 204, 21, .35); }
.inv button:disabled { opacity: .38; }

/* الشبكة والأزرار */
.grid { display: grid; gap: 6px; width: 100%; }
.cell { position: relative; min-width: 0; aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--rb-tile); color: inherit; font: inherit; padding: 4px; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; transition: transform .08s; }
.cell:active { transform: scale(.94); }
.cell .shp, .cell .gly { width: 100%; height: 100%; display: block; }
.grid.word .cell, .grid.num .cell { aspect-ratio: auto; min-height: 52px; font-size: clamp(15px, 4.6vw, 22px); font-weight: 800; }
.grid.btn { gap: 8px; }
.grid.btn .cell { aspect-ratio: auto; min-height: 58px; font-size: clamp(15px, 4.4vw, 20px); font-weight: 800; border: 1px solid var(--rb-line); }
.grid.btn .cell .shp { width: 46px; height: 46px; }
.grid.btn .cell:has(.szbox) { aspect-ratio: 1; min-height: 0; }
.szbox { display: block; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.grid.btn .cell .e { font-size: 30px; line-height: 1; }
.grid.btn .cell .sub { display: block; font-size: 11px; color: var(--rb-muted); }
.grid.emoji .cell { font-size: clamp(18px, 6vw, 30px); }
.grid.row { display: flex; } .grid.row .cell { flex: 1; }
.cell.off { opacity: .16; pointer-events: none; }
/* 🎭 الخداع البصري: مربع داخلي (الخلفية الملونة) حجمه يتغير بـ --bz، والشكل والكلمة فوقه */
.grid.illu { gap: 10px; }
.grid.illu .cell { aspect-ratio: 1; padding: 4px; background: var(--rb-tile); border: 1px solid var(--rb-line); }
.grid.illu .ib { position: relative; display: grid; place-items: center; width: min(100%, calc(70% * var(--bz, 1.3))); aspect-ratio: 1; border-radius: 14px; font-size: clamp(16px, 4.8vw, 22px); font-weight: 800; }
.grid.illu .ishp { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid.illu .ib.bz { background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .28); }
.grid.illu .ib.col { display: flex; flex-direction: column; justify-content: center; gap: 2px; width: 100%; }
.grid.illu .ib.col .iarr { position: relative; width: 58%; aspect-ratio: 1; }
.grid.illu .ib.col .iarr .ishp { position: absolute; inset: 0; }
.grid.illu .iw { position: relative; z-index: 1; line-height: 1.1; white-space: nowrap; }
.grid.illu .iw.on { text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.grid.illu .gly { width: 82%; height: 82%; }
.refbox { width: 34%; max-width: 130px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; border: 2px dashed var(--rb-line); background: var(--rb-tile-2); }
.refbox .gly { width: 80%; height: 80%; }
/* 🤖👉 البوت يأشر على خيار ويحاول يقنعك (مرات يكون صح ومرات فخ) */
.cell.lure { animation: rbLure 1.1s ease-in-out infinite; }
.cell.lure::after { content: '🤖👉'; position: absolute; top: -10px; inset-inline-start: -8px; font-size: 18px; pointer-events: none; }
@keyframes rbLure { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg) scale(1.03); } 75% { transform: rotate(3deg) scale(1.03); } }
/* 📖 وقت قراءة السؤال */
.readbox { display: grid; place-items: center; gap: 12px; text-align: center; padding: 18px; min-height: 40vh; }
.readbox b { font-size: clamp(22px, 6.5vw, 30px); line-height: 1.5; }
.readbox i { display: block; width: 70%; height: 6px; border-radius: 99px; background: var(--rb-tile-2); overflow: hidden; }
.readbox i::after { content: ''; display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #a855f7); animation: rbRead var(--rd, 3s) linear forwards; }
@keyframes rbRead { from { width: 0; } to { width: 100%; } }
.qhelp { padding: 0 16px 2px; text-align: center; font-size: 12.5px; color: var(--rb-muted); font-weight: 700; min-height: 0; }
.mem-all { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mem-all span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 34px; font-weight: 800; }
.mem-all span small { font-size: 12px; color: var(--rb-muted); }
.mem-all .dot { width: 48px; height: 48px; border-radius: 12px; }
.mem-pos i.lit { display: grid; place-items: center; color: #06122b; font-weight: 800; font-size: 20px; font-style: normal; }
.mem-count { font-size: 15px; font-weight: 800; color: var(--rb-gold); }
.cell.ok { outline: 3px solid var(--rb-ok); box-shadow: 0 0 16px var(--rb-ok); }
.cell.bad { outline: 3px solid var(--rb-bad); animation: rbShake .35s; }
.cell.mine { outline: 3px solid var(--rb-cyan); }
.cell.hint { outline: 2px dashed var(--rb-gold); }
.cell[disabled] { cursor: default; }
.topword { font-size: 30px; font-weight: 800; padding: 6px 18px; border-radius: 14px; background: #111827; }
.showrow { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.showrow span { padding: 5px 9px; border-radius: 10px; background: #111827; font-weight: 800; font-size: 17px; }

/* المرآة والظل */
.mir-src { width: 46%; max-width: 170px; aspect-ratio: 1; display: grid; place-items: center; padding: 8px; border-radius: 16px; background: var(--rb-tile-2); border: 2px dashed var(--rb-line); }
.mir-cells { display: grid; gap: 3px; width: 100%; aspect-ratio: 1; }
.mir-cells i { border-radius: 4px; }
.mir-word { font-size: clamp(26px, 9vw, 44px); font-weight: 800; }
.mir-arrows { font-size: clamp(22px, 7vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; direction: ltr; }
.mir-arrows span:nth-child(3) { grid-column: 1 / 3; text-align: center; }
.mir-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.mir-opts .cell { aspect-ratio: 1.3; }
.mir-in { width: 78%; height: 78%; display: grid; place-items: center; }
/* علي 25/11: ساعة المرآة كانت أكبر من مربعها وتغطي الخيارات → تاخذ مقاس المربع بالضبط */
.mir-in .mir-cells { width: auto; height: 100%; max-width: 100%; }
.mir-clk { position: relative; width: 100%; height: 100%; }
.mir-clk .clk { position: absolute; inset: 0; width: 100%; height: 100%; }
.sil .gly { filter: brightness(0); opacity: .85; }
/* علي 25/11: الظل الأسود ما كان يبين على الخلفية البنفسجية الغامقة → أرضية فاتحة مثل الأرض تحت الشمس */
.cell.sil { background: #e9e4f7; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.cell.sil .gly { opacity: 1; }
html.rb-light .sil .gly { filter: brightness(0); }

/* الذاكرة */
.mem-show { min-height: 120px; display: grid; place-items: center; font-size: 64px; font-weight: 800; }
.mem-show .dot { width: 96px; height: 96px; border-radius: 22px; }
.mem-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 70%; max-width: 260px; }
.mem-pos i { aspect-ratio: 1; border-radius: 12px; background: var(--rb-tile-2); transition: background .12s; }
.mem-pos i.lit { background: var(--rb-cyan); box-shadow: 0 0 18px var(--rb-cyan); }
.mem-picked { display: flex; gap: 6px; min-height: 34px; flex-wrap: wrap; justify-content: center; }
.mem-picked span { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--rb-tile-2); font-weight: 800; }
.mem-ask { font-size: 44px; }

/* الأبواب */
.doors { display: flex; gap: 8px; width: 100%; justify-content: center; }
.door { flex: 1; max-width: 120px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.door .sign { min-height: 74px; padding: 6px; border-radius: 10px; background: #fef3c7; color: #3b2a00; font-size: 12.5px; font-weight: 800; line-height: 1.4; display: grid; place-items: center; text-align: center; box-shadow: 0 3px 0 #b45309; }
.door .dr { position: relative; aspect-ratio: .62; border-radius: 12px 12px 4px 4px; border: 3px solid rgba(0, 0, 0, .35); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.door .dr::after { content: ''; position: absolute; inset-inline-start: 12%; top: 55%; width: 8px; height: 8px; border-radius: 50%; background: #fde68a; }
.door.ok .dr { outline: 3px solid var(--rb-ok); } .door.bad .dr { outline: 3px solid var(--rb-bad); } .door.off { opacity: .2; pointer-events: none; }

/* الأكواب والتبديل */
.cups { position: relative; width: 100%; height: 150px; direction: ltr; }
.cup { position: absolute; bottom: 10px; width: calc(var(--slot) - 4px); max-width: 92px; translate: -50%; height: 100px; border: 0; background: none; padding: 0; cursor: pointer; transition: left var(--sw, .5s) ease-in-out; }
.cup .c { position: absolute; inset: 0; border-radius: 14px 14px 30px 30px / 14px 14px 20px 20px; background: linear-gradient(180deg, #f43f5e, #9f1239); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25); transition: transform .35s; z-index: 2; }
.cup .it { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 34px; z-index: 1; }
.cup.up .c { transform: translateY(-62px); }
.cup.ok .c { outline: 3px solid var(--rb-ok); } .cup.bad .c { outline: 3px solid var(--rb-bad); }
.swapz { position: relative; width: 100%; height: 90px; direction: ltr; }
.swapz .cell { position: absolute; top: 10px; width: calc(var(--slot) - 4px); max-width: 90px; translate: -50%; height: 70px; aspect-ratio: auto; font-size: 34px; transition: left var(--sw, .5s) ease-in-out; border: 1px solid var(--rb-line); }

/* المتحرك */
.zone { position: relative; width: 100%; height: min(52vh, 380px); border-radius: 18px; background: var(--rb-tile); overflow: hidden; touch-action: manipulation; }
.zone .fl { position: absolute; min-width: 56px; min-height: 56px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--rb-line); background: var(--rb-tile-2); color: inherit; font: inherit; font-size: 22px; font-weight: 800; cursor: pointer; display: grid; place-items: center; transition: left .28s ease-out, top .28s ease-out; }
.zone.frozen .fl, .zone.frozen .belt { animation-play-state: paused !important; transition: none !important; }
.belt { position: absolute; top: 50%; left: 0; display: flex; gap: 16px; direction: ltr; transform: translateY(-50%); animation: rbBelt var(--dur, 6s) linear infinite; }
.belt .cell { width: 64px; height: 64px; aspect-ratio: auto; font-size: 34px; flex: none; }
/* نسختين من الأشياء: نحرك نص الطول بالضبط فالدوران ما يبان له بداية ولا نهاية */
@keyframes rbBelt { from { transform: translate(calc(-50% - 8px), -50%); } to { transform: translate(0, -50%); } }
.runbtn { position: absolute; min-width: 108px; min-height: 52px; border-radius: 14px; border: 0; background: linear-gradient(90deg, #ec4899, #a855f7); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; transition: left .2s, top .2s; }

/* العد */
.cnt { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 100%; font-size: clamp(26px, 8vw, 36px); }
.cnt img, .mem-ask img { width: 1em; height: 1em; }
.cnt.words { display: grid; gap: 4px; width: 100%; font-size: clamp(14px, 4.2vw, 18px); font-weight: 800; }
.cnt.words span { padding: 8px 2px; border-radius: 10px; background: var(--rb-tile); text-align: center; }

/* الصبر */
.pat { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.pat .bigb { width: 74%; max-width: 300px; min-height: 92px; border-radius: 24px; border: 0; font: inherit; font-size: 24px; font-weight: 800; color: #fff; background: #475569; cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.pat .bigb.fake { background: #ca8a04; } .pat .bigb.go { background: #16a34a; box-shadow: 0 0 24px #22c55e; }
.pat .bait { min-height: 46px; padding: 8px 16px; border-radius: 14px; border: 1px dashed var(--rb-pink); background: rgba(236, 72, 153, .15); color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.pat .count { font-size: 54px; font-weight: 800; }
.pat .barw { width: 80%; height: 26px; border-radius: 99px; background: var(--rb-tile-2); overflow: hidden; }
.pat .barw i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #4ade80); }
.pat .eyes { width: 140px; height: 140px; border: 0; background: none; cursor: pointer; padding: 0; }
.pat .eyes .rbt { width: 100%; height: 100%; }

/* الساعة والميزان والمسار */
.clk { width: min(52vw, 200px); height: min(52vw, 200px); }
.clk .cf { fill: #fff; stroke: #111827; stroke-width: 3; } .clk .cn { font: 800 9px Almarai, sans-serif; fill: #111827; text-anchor: middle; }
.clk .ch { stroke: #111827; stroke-width: 4; stroke-linecap: round; } .clk .cm { stroke: #ef4444; stroke-width: 2.5; stroke-linecap: round; } .clk .cc { fill: #111827; }
.scales { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.scale { display: flex; flex-direction: column; align-items: center; width: 140px; }
.scale .beam { position: relative; width: 130px; height: 6px; background: #94a3b8; border-radius: 4px; transform: rotate(var(--tilt)); }
.scale .pan { position: absolute; top: -40px; font-size: 32px; }
.scale .pan.l { left: 0; } .scale .pan.r { right: 0; }
.scale .post { width: 6px; height: 40px; background: #94a3b8; } .scale .base { width: 60px; height: 8px; border-radius: 4px; background: #94a3b8; }
.path { display: grid; gap: 4px; width: min(86vw, 330px); direction: ltr; }
.path .cell { aspect-ratio: 1; font-size: 22px; }
.arrows { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; direction: ltr; font-size: 24px; }
.arrows span { display: inline-flex; flex-direction: column; align-items: center; padding: 2px 6px; border-radius: 8px; background: var(--rb-tile-2); }
.arrows small { font-size: 10px; color: var(--rb-muted); }

/* الأحداث والنتيجة */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.fx.dark { background: #000; animation: rbFade var(--d, 1.2s) forwards; }
.fx.fog { backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); animation: rbFade var(--d, .9s) forwards; }
.fx.upd { display: grid; place-items: center; background: rgba(10, 5, 32, .88); font-weight: 800; animation: rbFade var(--d, 1s) forwards; }
.fx.ad { display: grid; place-items: center; animation: rbFade var(--d, 1.5s) forwards; }
.fx.ad div { padding: 18px; border-radius: 16px; background: #fde047; color: #111; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.walker { position: absolute; bottom: 8%; font-size: 40px; animation: rbWalk 3s linear forwards; }
.pop { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); font-size: 30px; font-weight: 800; pointer-events: none; z-index: 6; animation: rbPop .9s ease-out forwards; white-space: nowrap; }
.evbanner { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 7; padding: 6px 14px; border-radius: 999px; background: linear-gradient(90deg, #f97316, #ec4899); color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; animation: rbDrop 2.6s ease forwards; pointer-events: none; }
.bossbar { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 4px 10px; margin: 0 10px; border-radius: 12px; background: linear-gradient(90deg, rgba(244, 63, 94, .35), rgba(168, 85, 247, .35)); font-weight: 800; font-size: 13px; }
/* 👤 الظلال الجديدة (علي 25/11): الأصل ملوّن على مربع غامق، والخيارات ظلال داكنة على أرضية فاتحة (تباين واضح بالليلي والنهاري) */
.shp2 { width: 100%; height: 100%; display: block; overflow: visible; }
.shp2.shd { color: #1a0f33; }
.mir-clk .shp2 { position: absolute; inset: 0; }
/* النهاري: الأصفر على أرضية فاتحة ضعيف → لون غامق واضح */
html.rb-light .mir-src .mir-clk .shp2, html.rb-light .mir-opts .mir-clk .shp2 { color: #6d28d9 !important; }
.sh-ref { background: #1b1140; border: 2px solid rgba(255, 255, 255, .18); }
html.rb-light .sh-ref { background: #2a1a5e; }
.sh-ref .mir-in { width: 82%; height: 82%; }
.sh-opts.c3 { grid-template-columns: repeat(3, 1fr); }
.sh-opts .cell { aspect-ratio: 1; }
.cell.sil2 { background: #efeaf9; box-shadow: inset 0 0 0 2px rgba(26, 15, 51, .08); }
html.rb-light .cell.sil2 { box-shadow: inset 0 0 0 2px #cbbfe8; }
.cell.sil2 .mir-in { width: 80%; height: 80%; }
.sh-opts.c3 .cell.sil2 .mir-in { width: 84%; height: 84%; }
.cell.sil2.fr { border: 6px solid var(--frc); }
.cell.fr-red { --frc: #ef4444; } .cell.fr-blue { --frc: #3b82f6; } .cell.fr-green { --frc: #22c55e; } .cell.fr-yellow { --frc: #eab308; }
.rb-credit { font-size: 11px; opacity: .65; text-align: center; }
.rb-credit a { color: inherit; }
/* 💡 بطاقة «نوع جديد» */
.rb-intro { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 18px; background: rgba(5, 2, 20, .72); animation: rbIntroIn .25s ease-out; }
.rb-intro .card { width: min(100%, 360px); text-align: center; padding: 18px 16px 14px; border-radius: 22px; background: linear-gradient(160deg, #2a1663, #160b3a); border: 2px solid #a855f7; box-shadow: 0 0 28px rgba(168, 85, 247, .45); }
.rb-intro i { display: inline-block; font-style: normal; font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 99px; background: #facc15; color: #1e1036; }
.rb-intro .e { font-size: 64px; line-height: 1.15; margin: 8px 0 2px; }
.rb-intro h3 { margin: 0 0 8px; font-size: 24px; }
.rb-intro p { margin: 0 0 14px; font-size: 17px; line-height: 1.8; }
.rb-intro .go { width: 100%; font-size: 18px; background: #a855f7; border-color: #c084fc; color: #fff; }
.rb-intro small { display: block; margin-top: 8px; opacity: .7; font-size: 12px; }
@keyframes rbIntroIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.sheet { position: fixed; inset: 0; z-index: 2147483000; /* فوق زر «المشاهدة» عشان ما يغطي أزرار النافذة */ display: none; align-items: flex-end; justify-content: center; background: rgba(5, 2, 20, .6); }
.sheet.on { display: flex; }
.sheet .box { width: 100%; max-width: 520px; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--rb-panel); border: 1px solid var(--rb-line); backdrop-filter: blur(14px); max-height: 92vh; overflow: auto; }
.sheet h3 { margin: 0 0 10px; text-align: center; font-size: 19px; }
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.offer button { min-height: 96px; border-radius: 16px; border: 1px solid var(--rb-gold); background: linear-gradient(160deg, rgba(250, 204, 21, .2), rgba(168, 85, 247, .2)); color: inherit; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; padding: 6px; }
.offer button b { display: block; font-size: 30px; margin-bottom: 4px; }
.end .big { font-size: 46px; font-weight: 800; text-align: center; background: linear-gradient(90deg, #22d3ee, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.end .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.end .stats div { padding: 8px; border-radius: 12px; background: var(--rb-tile); text-align: center; font-size: 12px; color: var(--rb-muted); }
.end .stats b { display: block; font-size: 19px; color: var(--rb-text); }
.end .rbt { width: 96px; height: 96px; display: block; margin: 0 auto; }
.end .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.end .acts .wide { grid-column: 1 / -1; }
.code { font-size: 34px; letter-spacing: 6px; font-weight: 800; text-align: center; direction: ltr; padding: 8px; border-radius: 14px; background: var(--rb-tile-2); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 14px; background: #111827; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

@keyframes rbShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes rbQuake { 20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, -1px); } 80% { transform: translate(2px, 1px); } }
@keyframes rbFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rbWalk { from { left: -60px; } to { left: 110%; } }
@keyframes rbPop { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } to { opacity: 0; transform: translate(-50%, -50px) scale(1.15); } }
@keyframes rbDrop { 0% { opacity: 0; transform: translate(-50%, -20px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.rbt .ant { animation: rbBlink 2.4s infinite; } .rbt-sleep .zz { font: 800 14px sans-serif; fill: var(--glow); animation: rbZz 1.6s infinite; } .rbt .zz.s { font-size: 10px; animation-delay: .5s; }
.rbt .ln { fill: none; stroke-width: 4; stroke-linecap: round; } .rbt .mouth { stroke: none; } .rbt .pupil { fill: #0b1230; stroke: none; } .rbt .eye.red, .rbt .eye.red { fill: #ff3b6b; stroke: none; }
.rbt .eye.dim { opacity: .5; } .rbt .tear { fill: none; stroke: #60a5fa; stroke-width: 3; } .rbt .glass { fill: rgba(0, 0, 0, .7); stroke-width: 3; } .rbt .stache { fill: #3b2a1a; stroke: none; } .rbt .teeth { stroke: #12030f; stroke-width: 2; }
.gly .cut { fill: var(--rb-bg); } html.rb-light .gly .cut { fill: #fff; } .gly .st { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; } .gly .hand { stroke: currentColor; stroke-width: 6; stroke-linecap: round; fill: none; }
@keyframes rbBlink { 50% { opacity: .35; } }
@keyframes rbZz { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.mood-laugh .rbt, .rbt.bounce { animation: rbBounce .5s 2; }
@keyframes rbBounce { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* تقليل الحركة: من إعدادات الجهاز أو زر اللعبة. يوقف الحركات الزينة بس؛ حركة التحدي نفسه (الأكواب، الشريط) تبقى لأنها جزء من اللعب */
@media (prefers-reduced-motion: reduce) { .rbt *, .pop, .evbanner, .stage.quake > .area, .cell.bad, .rbt.bounce, .mood-laugh .rbt { animation: none !important; } .walker { display: none; } }
html.rb-calm .rbt *, html.rb-calm .pop, html.rb-calm .evbanner, html.rb-calm .stage.quake > .area, html.rb-calm .cell.bad, html.rb-calm .rbt.bounce, html.rb-calm .mood-laugh .rbt { animation: none !important; }
html.rb-calm .walker { display: none; } html.rb-calm .pop { opacity: 0; }
@media (max-width: 360px) { .rb-hero h1 { font-size: 21px; } .qline { font-size: 15.5px; } .pl-top .rbt { width: 48px; height: 48px; } .bubble { font-size: 13px; } }

/* ==========================================================
   📺 الهوية الجديدة «لا تصدق البوت» (علي 27/11): بترولي داكن + أخضر حمضي + مرجاني + عاجي
   ظلال صلبة بدل التوهج. ألوان التحديات نفسها (المربعات والأشكال والكلمات الملونة) ما تتغير أبد،
   وخلفية الخانات رمادية محايدة عشان العين تشوف اللون صح.
   ========================================================== */
:root { --rb-bg: #03191c; --rb-panel: #082d32; --rb-line: rgba(243, 234, 214, .18); --rb-text: #f3ead6; --rb-muted: #a9bfba;
  --rb-cyan: #c6ff2e; --rb-pink: #ff5d3d; --rb-gold: #c6ff2e; --rb-ok: #c6ff2e; --rb-bad: #ff5d3d; --rb-tile: rgba(243, 234, 214, .06); --rb-tile-2: rgba(243, 234, 214, .12);
  --rb-ink: #021113; --rb-lime: #c6ff2e; --rb-coral: #ff5d3d; --rb-ivory: #f3ead6; --rb-petrol: #062428; --rb-plate: #151918; }
html.rb-light { --rb-bg: #f3ead6; --rb-panel: #fbf6ea; --rb-line: rgba(2, 17, 19, .18); --rb-text: #021113; --rb-muted: #3f5552; --rb-tile: rgba(2, 17, 19, .05); --rb-tile-2: rgba(2, 17, 19, .1); --rb-cyan: #3d5c00; --rb-gold: #3d5c00; }
body { background-color: #03191c !important; background-image: linear-gradient(rgba(243,234,214,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(243,234,214,.035) 1px, transparent 1px), linear-gradient(180deg, #062428, #03191c 70%) !important; background-size: 32px 32px, 32px 32px, auto !important; background-attachment: fixed !important; }
html.rb-light body { background: #f3ead6 !important; }
.rb-hero .rbt, .pl-top .rbt { filter: none; }
.rb-hero h1 { background: none; color: var(--rb-lime) !important; text-decoration: underline; text-decoration-color: var(--rb-coral); text-decoration-thickness: 4px; text-underline-offset: 8px; }
html.rb-light .rb-hero h1 { color: var(--rb-ink) !important; }
.rb-card { background: var(--rb-panel); border: 2px solid var(--rb-ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--rb-ink); }
.rb-mode { border: 2px solid var(--rb-line); background: var(--rb-petrol); }
html.rb-light .rb-mode { background: #fff; }
.rb-mode:hover { border-color: var(--rb-lime); }
.rb-mode.main { background: var(--rb-lime); color: var(--rb-ink); border-color: var(--rb-ink); box-shadow: 4px 4px 0 var(--rb-ivory); }
.rb-mode.main span { color: #24320a; }
.rb-mode i { background: var(--rb-ink); color: var(--rb-lime); }
.rb-btn { border: 2px solid var(--rb-line); min-height: 46px; }
.rb-btn.go { background: var(--rb-lime); color: var(--rb-ink); border: 2px solid var(--rb-ink); box-shadow: 4px 4px 0 var(--rb-ivory); }
.rb-btn.cy { background: var(--rb-ivory); color: var(--rb-ink); border: 2px solid var(--rb-ink); box-shadow: 4px 4px 0 var(--rb-coral); }
.rb-tabs button { min-height: 44px; border: 2px solid var(--rb-line); }
.rb-tabs button.on { background: var(--rb-lime); color: var(--rb-ink); border-color: var(--rb-ink); }
.rb-set button { min-height: 44px; }
.rb-set button[aria-pressed="true"] { outline: 2px solid var(--rb-lime); }
.rb-top li.me { outline: 2px solid var(--rb-lime); }

/* شاشة اللعب */
#play { background: linear-gradient(rgba(243,234,214,.035) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(243,234,214,.035) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(180deg, #062428, #03191c 75%); }
html.rb-light #play { background: #f3ead6; }
.bubble { background: var(--rb-ivory); color: var(--rb-ink); border: 2px solid var(--rb-ink); box-shadow: 3px 3px 0 var(--rb-ink); }
.bubble::before { border-inline-end-color: var(--rb-ink); }
.pl-x { width: 44px; height: 44px; border: 2px solid var(--rb-line); background: var(--rb-petrol); }
html.rb-light .pl-x { background: #fff; }
.hud .chip { background: var(--rb-ink); color: var(--rb-ivory); border: 1px solid var(--rb-line); }
html.rb-light .hud .chip { background: #fff; color: var(--rb-ink); }
.hud .sc { color: var(--rb-lime); } html.rb-light .hud .sc { color: #3d5c00; }
.hud .tm { background: var(--rb-ink); border: 2px solid var(--rb-lime); } .hud .tm b { color: var(--rb-lime); }
.hud .tm.warn { border-color: var(--rb-coral); background: rgba(255, 93, 61, .2); }
.tbar { height: 8px; background: var(--rb-ink); border-radius: 3px; }
.tbar i { background: repeating-linear-gradient(90deg, var(--rb-lime) 0 10px, #8fbf00 10px 12px); }
.qline { color: var(--rb-ivory); font-size: 19px; font-weight: 800; }
html.rb-light .qline { color: var(--rb-ink); }
/* خلفية خانات التحدي: رمادي محايد ثابت، بدون شفافية فوق البترولي */
.cell { background: var(--rb-plate); }
.grid.illu .cell { background: var(--rb-plate); border: 2px solid #2c3230; }
.grid.word .cell, .grid.num .cell, .grid.btn .cell { background: var(--rb-ivory); color: var(--rb-ink); border: 2px solid var(--rb-ink); box-shadow: 3px 3px 0 #000; }
.grid.btn .cell .sub { color: #3f5552; }
.cell:focus-visible { outline: 3px solid var(--rb-lime); outline-offset: 2px; }
.inv button { min-height: 44px; border: 2px solid var(--rb-line); background: var(--rb-petrol); }
.inv button.can { border-color: var(--rb-lime); box-shadow: 3px 3px 0 var(--rb-lime); }
/* 👑 الزعيم = انتقام البوت: الإضاءة تتحول مرجاني، ولوحة التحدي تبقى محايدة */
.bossbar { background: var(--rb-coral) !important; color: var(--rb-ink) !important; border: 2px solid var(--rb-ink); box-shadow: 3px 3px 0 var(--rb-ink); font-weight: 800; }
#play:has(#bossbar:not([hidden])) { background: linear-gradient(rgba(255,93,61,.06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,93,61,.06) 1px, transparent 1px) 0 0 / 32px 32px, radial-gradient(ellipse at 50% -10%, rgba(255,93,61,.3), transparent 60%), linear-gradient(180deg, #2a0f0b, #120605 75%); }
#play:has(#bossbar:not([hidden])) .bubble { background: var(--rb-ink); color: var(--rb-coral); border-color: var(--rb-coral); box-shadow: 3px 3px 0 var(--rb-coral); }
.evbanner { background: var(--rb-coral); color: var(--rb-ink); border: 2px solid var(--rb-ink); }
/* بطاقة «نوع جديد» */
.rb-intro { background: rgba(2, 17, 19, .82); }
.rb-intro .card { background: var(--rb-panel); border: 2px solid var(--rb-ink); box-shadow: 6px 6px 0 var(--rb-lime); }
.rb-intro i { background: var(--rb-coral); color: var(--rb-ink); }
.rb-intro .go { background: var(--rb-lime); border: 2px solid var(--rb-ink); color: var(--rb-ink); box-shadow: 4px 4px 0 var(--rb-ivory); }
.sheet { background: rgba(2, 17, 19, .7); }
.sheet .box { background: var(--rb-panel); border: 2px solid var(--rb-ink); }
.offer button { border: 2px solid var(--rb-lime); background: var(--rb-petrol); }
.end .big { background: var(--rb-lime); color: var(--rb-ink); -webkit-text-fill-color: var(--rb-ink); display: block; width: fit-content; margin: 6px auto 10px; padding: 4px 22px; border-radius: 14px; border: 3px solid var(--rb-ink); box-shadow: 5px 5px 0 var(--rb-coral); }
.end .stats div { background: var(--rb-ink); border: 1px solid var(--rb-line); }
html.rb-light .end .stats div { background: #fff; }
.code { background: var(--rb-lime); color: var(--rb-ink); border: 2px solid var(--rb-ink); }
.toast { background: var(--rb-ivory); color: var(--rb-ink); border: 2px solid var(--rb-ink); box-shadow: 4px 4px 0 var(--rb-lime); }
.rbt .pupil { fill: #062428; } .rbt .eye.red { fill: #ff5d3d; } .rbt-boss .teeth { stroke: #1c0703; }
.readbox i::after, .pat .barw i { background: var(--rb-lime); }
.runbtn { background: var(--rb-lime); color: var(--rb-ink); border: 2px solid var(--rb-ink); }

/* ===== 🔍 أداة الفحص (للإدارة) ===== */
.rv-open { width: 100%; margin-top: 8px; border-style: dashed; border-color: var(--rb-lime); color: var(--rb-lime); }
html.rb-review .inv, html.rb-review .tbar, html.rb-review #hTimer, html.rb-review #hCombo { display: none !important; }
.rv-bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 30; display: grid; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--rb-ink); border-top: 2px dashed var(--rb-lime); }
.rv-row { display: flex; gap: 6px; align-items: stretch; }
.rv-row select { flex: 1; min-width: 0; min-height: 44px; border-radius: 12px; border: 2px solid var(--rb-line); background: #062428; color: var(--rb-ivory); font: inherit; font-weight: 800; font-size: 14px; padding: 0 8px; }
.rv-bar button { min-height: 46px; min-width: 46px; border-radius: 12px; border: 2px solid var(--rb-line); background: #062428; color: var(--rb-ivory); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; padding: 0 10px; white-space: nowrap; }
.rv-bar .rv-ans[aria-pressed="true"] { background: var(--rb-lime); color: var(--rb-ink); border-color: var(--rb-ink); }
.rv-main .rv-no { flex: 1; background: var(--rb-coral); color: var(--rb-ink); border-color: var(--rb-ink); font-size: 17px; }
.rv-main .rv-no.done { outline: 3px solid var(--rb-ivory); outline-offset: 2px; }
.rv-main .rv-ok { flex: 1.3; background: var(--rb-lime); color: var(--rb-ink); border-color: var(--rb-ink); font-size: 17px; }
.rv-pos { text-align: center; font-size: 12px; color: var(--rb-muted); font-weight: 700; }
.cell.rv-good { outline: 4px solid var(--rb-lime); outline-offset: 3px; z-index: 1; }
.cell.rv-good[data-rv]::after { content: attr(data-rv); position: absolute; top: 2px; inset-inline-start: 4px; min-width: 20px; height: 20px; border-radius: 6px; background: var(--rb-lime); color: var(--rb-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.rv-items { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.rv-items small { display: block; color: var(--rb-muted); font-size: 11.5px; direction: ltr; text-align: right; }
.rv-row:first-child { display: grid; grid-template-columns: 1fr 1fr auto auto; }
.rv-row > * { min-width: 0; }
.rv-main .rv-prev, .rv-main .rv-new { flex: none; width: 46px; padding: 0; }
@media (max-width: 420px) {
  .rv-row:first-child { grid-template-columns: 1fr 1fr; }
  .rv-bar button { font-size: 14px; padding: 0 6px; }
  .rv-main .rv-no, .rv-main .rv-ok { font-size: 16px; }
}
.hud .chip:empty { display: none; }
/* شريط الفحص جزء من الشاشة (مو فوق التحدي)، فالمساحة الباقية كلها للتحدي */
.rv-bar { position: relative; flex: none; }
/* تحدي «العنصر … من اليمين»: كل الكلمات بصف واحد (عشان العد من اليمين يبان)، والخط يصغر على الجوال الصغير */
.grid.row { gap: 5px; }
.grid.row .cell { min-width: 0; padding: 4px 2px; font-size: clamp(12px, 3.7vw, 20px); white-space: nowrap; }
.grid.codex-color .cell { container-type: inline-size; color: #fff; border: 2px solid var(--rb-ink); text-shadow: 0 1px 2px #000, 0 1px 4px #000; }
.grid.codex-color .cell-label { font-size: clamp(12px, 21cqi, 22px); line-height: 1.2; }
.grid.codex-color .cell[data-shape="square"] { border-radius: 6px; }
.grid.codex-color .cell[data-shape="rounded"] { border-radius: 26px; }
.grid.codex-color .cell[data-shape="circle"] { border-radius: 50%; }
.grid.codex-shape .cell { aspect-ratio: auto; min-height: 58px; font-size: 2rem; border: 1px solid #686868; background: var(--rb-plate); }
.rv-pos .rv-part { min-height: 30px; font-size: 12px; margin-inline-start: 8px; }
.rb-review .mem-all { gap: 6px; }
.rb-review .mem-all span { font-size: 21px; }
.rb-review .mem-all .dot { width: 26px; height: 26px; border-radius: 6px; }
.rb-review .mem-pos { width: 110px; }
.rb-review .mem-picked:empty { display: none; }
.grid.num .cell, .grid.word .cell { container-type: inline-size; }
.grid.num .cell-label { font-size: clamp(10px, 26cqi, 22px); white-space: nowrap; }
.grid.word:not(.row) .cell-label { font-size: clamp(10px, 28cqi, 22px); white-space: nowrap; }
.mir-word { white-space: nowrap; font-size: clamp(16px, 3.8vw, 36px); }
.cup.up .c { transform: translateY(-48px); }
@media (max-width: 420px) {
  .rv-row:first-child { grid-template-columns: minmax(0, 1fr) auto auto; }
  .rv-row:first-child select:first-child { grid-column: 1 / -1; }
  .rv-bar { gap: 4px; padding-block: 5px; }
  .rv-bar select, .rv-bar button:not(.rv-part) { min-height: 40px; }
}
.showrow span { font-size: 22px; min-width: 34px; text-align: center; }
