/* مكتب المحقق — واجهة اللعبة */
body.app { overflow: hidden; height: 100dvh; background: #000; }
.screen { position: fixed; inset: 0; background: #000; display: grid; place-items: center; overflow: hidden; }
.screen[hidden], .panel[hidden], .op-step[hidden] { display: none; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* زر الصوت */
.sound { position: fixed; z-index: 50; top: max(10px, env(safe-area-inset-top)); left: 10px; display: flex; align-items: center; gap: 6px; background: rgba(10,13,18,.72); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px; font: inherit; font-size: .8125rem; backdrop-filter: blur(6px); }
.sound-ico { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
  --m: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9v6h4l5 4V5L7 9H3zm13.6 3 2.7-2.7-1.4-1.4-2.7 2.7-2.7-2.7-1.4 1.4 2.7 2.7-2.7 2.7 1.4 1.4 2.7-2.7 2.7 2.7 1.4-1.4z"/></svg>'); }
.sound[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }
.sound[aria-pressed="true"] .sound-ico { --m: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9v6h4l5 4V5L7 9H3zm11-1.8v9.6c1.8-.9 3-2.7 3-4.8s-1.2-3.9-3-4.8zm0-4.3v2.1c2.9.9 5 3.5 5 6.9s-2.1 6-5 6.900v2.1c4-1 7-4.600 7-9s-3-8-7-9z"/></svg>'); }
/* الغلاف: الملصق كاملًا بعرض الشاشة من الأعلى، بلا قصّ للعنوان */
#cover { background: #0a0c10; place-items: start center; }
.cover-img { width: min(100vw, 56.25dvh); height: auto; display: block; }
.cover-form { position: absolute; inset-inline: 0; bottom: 0; padding: 70px 18px max(20px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(8,10,14,.96) 55%, transparent); }
.cover-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; letter-spacing: .12em; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0d1117; color: var(--ink); }
.code-row input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.code-row button, .btn { font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 12px; border: 0; background: var(--amber); color: #1b1608; }
.code-msg { margin: 8px 2px 0; color: var(--muted); font-size: .8125rem; min-height: 1.4em; }
/* الافتتاح */
.op-step { position: absolute; inset: 0; display: grid; place-items: center; animation: fade .8s ease both; }
.op-text { background: #000; text-align: center; padding: 24px; align-content: center; gap: 6px; }
.op-time { color: var(--amber); font-weight: 700; font-size: 1.5rem; margin: 0; }
.op-line { font-size: 1.2rem; margin: 0; max-width: 20em; }
.op-yours { position: absolute; bottom: 22%; inset-inline: 0; text-align: center; font-weight: 700; font-size: 1.9rem; color: var(--amber); margin: 0; text-shadow: 0 2px 16px #000; }
.badge { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; background: rgba(10,13,18,.7); border: 1px solid var(--line); color: var(--muted); font-size: .8125rem; padding: 3px 10px; border-radius: 6px; }
.skip { position: absolute; z-index: 5; bottom: max(18px, env(safe-area-inset-bottom)); left: 14px; font: inherit; font-size: .9rem; color: var(--ink); background: rgba(10,13,18,.72); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
/* اللوحات */
.panel { position: fixed; inset: 0; z-index: 30; background: var(--desk); display: flex; flex-direction: column; animation: fade .25s ease both; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px 58px; border-bottom: 1px solid var(--line); background: var(--desk-2); }
.panel-head h2 { margin: 0; font-size: 1.05rem; flex: 1; }
.back { font: inherit; font-weight: 700; background: transparent; color: var(--amber); border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px max(40px, env(safe-area-inset-bottom)); }
.panel-body > .inner { max-width: 640px; margin: 0 auto; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { margin-bottom: 10px; }
.stage-h { color: var(--muted); font-size: .85rem; margin: 4px 2px 8px; }
/* الأطراف */
.people { display: grid; gap: 14px; }
.person { display: grid; grid-template-columns: 112px 1fr; gap: 12px; background: var(--desk-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.person img { width: 112px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; }
.person .archival { grid-column: 1; font-size: .8125rem; color: var(--muted); line-height: 1.5; margin-top: 4px; text-align: center; }
.person h3 { margin: 0; font-size: 1.1rem; } .person .role { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.person .line { margin: 0 0 8px; font-size: .95rem; } .person .tag { display: inline-block; font-size: .8125rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; color: var(--muted); margin-bottom: 6px; }
.person .tag.sus { color: var(--amber); border-color: var(--amber); }
.play { font: inherit; font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--amber); border: 1px solid var(--amber); border-radius: 999px; padding: 4px 14px; }
.play[aria-pressed="true"] { background: var(--amber); color: #1b1608; }
/* الدفتر */
.notes textarea { width: 100%; min-height: 40dvh; font: inherit; line-height: 1.9; color: var(--paper-ink); background: var(--paper); border: 0; border-radius: 6px; padding: 14px; color-scheme: light;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.9em - 1px), var(--paper-line) calc(1.9em - 1px) 1.9em); background-attachment: local; }
.notes p { color: var(--muted); font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .op-step, .panel { animation: none; } }
/* ───── المرحلة 3: التفاعلات ───── */
.btn-ghost { font: inherit; font-weight: 700; font-size: .9rem; color: var(--amber); background: transparent; border: 1px solid var(--amber); border-radius: 999px; padding: 6px 18px; margin: 0 0 12px; }
.ev-list button.picked { border-color: var(--amber); background: #2a2413; }
.zoomable { cursor: zoom-in; } .tap-hint { color: var(--muted); font-size: .8125rem; margin: 6px 2px 0; text-align: center; } .paper .tap-hint { color: var(--paper-muted); }
.zoom { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.zoom[hidden] { display: none; }
.zoom-stage { flex: 1; overflow: hidden; position: relative; touch-action: none; }
/* العارض يفتح دائمًا على الصورة كاملة داخل الشاشة مهما كان مقاسها، ثم يكبّر اللاعب ويحرّك */
.zoom-node { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
svg.zoom-node { width: 100%; height: 100%; }
.zoom-hint { margin: 0; text-align: center; color: var(--muted); font-size: .8125rem; padding: 6px; }
.zoom-bar { display: flex; gap: 10px; justify-content: center; padding: 8px 12px max(14px, env(safe-area-inset-bottom)); }
.zoom-bar button { font: inherit; font-weight: 700; min-width: 54px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--desk-2); color: var(--ink); }
.bag-box { position: relative; } .bag-hot { position: absolute; left: 12%; top: 19.5%; width: 46%; height: 15%; background: rgba(232,196,120,.08); border: 2px dashed rgba(232,196,120,.9); border-radius: 12px; padding: 0; cursor: pointer; }
.bag-hot span { position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 .8125rem "Cairo", sans-serif; background: #1b1608; color: var(--amber); border: 1px solid var(--amber); border-radius: 999px; padding: 0 10px; }
.panel-body.cmp-on { padding: 0; overflow: hidden; } .panel-body.cmp-on > .inner { max-width: none; height: 100%; }
.cmp { display: flex; flex-direction: column; height: 100%; } .cmp-pane { flex: 1 1 50%; min-height: 0; display: flex; flex-direction: column; border-bottom: 3px solid var(--amber); }
.cmp-pane:last-child { border-bottom: 0; } .cmp-h { margin: 0; font-size: .85rem; color: var(--amber); background: var(--desk-2); padding: 4px 14px; } .cmp-body { flex: 1; overflow: auto; padding: 10px 12px 16px; -webkit-overflow-scrolling: touch; }
.cam-map { position: sticky; top: -14px; z-index: 3; background: #0f131a; border-bottom: 1px solid #1f3a2a; padding: 6px 8px 2px; }
.cam-map svg { display: block; height: 38dvh; width: auto; max-width: 100%; margin: 0 auto; }
.cam-map-hint { margin: 2px 0 4px; text-align: center; color: #7fd69a; font-size: .8125rem; }
.cam-row { cursor: pointer; } .cam-row.on td { background: #12261a; } .cam-row.on td.t { color: #ffd97a; }

/* المرحلة 4: أزرار المكتب، الاستنتاج، التلميحات، الاتهام */
.app [hidden] { display: none !important; }
.btn.wide { display: block; width: 100%; margin-top: 14px; } .btn:disabled { opacity: .55; }
.q { margin-bottom: 22px; } .q-text { font-weight: 700; font-size: 1.05rem; margin: 14px 2px 10px; }
.opts { display: grid; gap: 8px; }
.opt { font: inherit; text-align: start; color: var(--ink); background: var(--desk-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.opt[aria-checked="true"] { border-color: var(--amber); background: #2a2413; color: var(--amber); font-weight: 700; }
.fb { min-height: 1.5em; margin: 8px 2px 0; font-size: .92rem; color: var(--muted); } .fb.ok { color: #8fcf9a; } .fb.near { color: var(--amber); } .fb.no { color: #f0a08f; }
.match-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--desk-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.match-row.bad { border-color: #f0a08f; } .match-row select { font: inherit; color: var(--ink); background: #0d1117; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 7.5em; }
.done-card { text-align: center; padding: 8dvh 6px 0; } .done-card h3 { color: var(--amber); font-size: 1.35rem; margin: 0 0 10px; line-height: 1.7; } .done-card p { margin: 0 0 10px; } .done-card .btn + .btn-ghost { display: block; margin: 16px auto 0; }
.note-line { background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 12px 14px; text-align: start; }
.hint-card { background: var(--desk-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; } .hint-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--amber); } .hint-card p { margin: 0 0 8px; } .hint-card .btn-ghost { margin: 0; }
.confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; } .confirm p { flex: 1 1 100%; margin: 0; } .confirm .btn-ghost { margin: 0; }
.ev-list button.picked .sym::before { content: "✓ "; }

/* المرحلة 5: كشف الحقيقة والنتيجة والتقييم */
.reveal { position: fixed; inset: 0; z-index: 40; background: #07090d; display: flex; flex-direction: column; animation: fade .4s ease both; }
.rv-media { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; background: #000; }
.rv-media img, .rv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .6s ease both; }
.rv-media .slow-zoom { animation: fade .6s ease both, slowzoom 12s ease-out both; } @keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.rv-media .stamp { position: absolute; bottom: 12px; left: 12px; background: rgba(10,13,18,.78); color: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; font-weight: 700; letter-spacing: .06em; }
.rv-text { flex: 0 0 auto; max-height: 46dvh; overflow-y: auto; padding: 14px 18px 4px; line-height: 1.95; font-size: 1.02rem; }
.rv-text p { margin: 0 0 10px; animation: fade .7s ease both; } .rv-text p.lead { font-weight: 700; font-size: 1.12rem; }
.rv-text.late p { animation: fade 1s ease 4.5s both; }
.reveal.text .rv-text { flex: 1; max-height: none; display: flex; flex-direction: column; justify-content: center; font-size: 1.12rem; padding: 0 24px; }
.rv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px max(14px, env(safe-area-inset-bottom)); } .rv-bar .btn-ghost { margin: 0; } .rv-bar .btn { margin-inline-start: auto; min-width: 7.5em; }
.rv-count { color: var(--muted); font-size: .8125rem; }
.score { text-align: center; padding-top: 3dvh; } .score .title { color: var(--amber); font-size: 1.9rem; margin: 4px 0 8px; line-height: 1.6; } .score > p { margin: 0 0 8px; }
.score .medal { display: inline-block; border: 1px solid var(--amber); color: var(--amber); border-radius: 999px; padding: 2px 16px; font-weight: 700; }
.rate { text-align: start; margin: 22px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); } .rate .thanks { text-align: center; color: var(--muted); }
.opts.five { grid-template-columns: repeat(5, 1fr); } .opts.five .opt { text-align: center; padding: 10px 0; font-weight: 700; }
.rate textarea { width: 100%; min-height: 84px; margin-top: 16px; font: inherit; color: var(--ink); background: #0d1117; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.score .btn-ghost { display: block; margin: 0 auto 10px; }

/* زر الاستنتاج في آخر ملف القضية */
.file-act-h { margin-top: 26px; text-align: center; } .btn.wide.file-act { margin-top: 6px; }
.test-reset { display: block; margin: 26px auto 0; opacity: .8; }

/* الدفعة أ: زر الصوت أيقونة صغيرة، متابعة من آخر دليل، مراجعة دليل من الاتهام */
.sound { padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: 50%; } .sound .sound-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.accuse > .btn-ghost { margin: 0 0 10px; }

/* ═════ الدفعة ب: نظام التصميم ═════
   خمسة أحجام للخط: 22 عنوان مرحلة، 17 عنوان دليل، 16 نص، 14 وقت ورمز، 13 تعليق. لا نص أصغر من 13، ولا عنصر لمس أقل من 48. */
:root { --f-stage: 1.375rem; --f-title: 1.0625rem; --f-text: 1rem; --f-code: .875rem; --f-note: .8125rem; --ok: #8fcf9a; --bad: #f0a08f; }
svg.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn, .code-row button { min-height: 48px; } .btn-ghost { padding: 10px 18px; min-height: 48px; } .back { padding: 9px 16px; min-height: 48px; }
.play { padding: 10px 16px; min-height: 48px; font-size: var(--f-code); } .skip { padding: 10px 18px; min-height: 48px; } .zoom-bar button { min-height: 48px; }
.match-row select { min-height: 48px; } .opt { min-height: 48px; } .code-row input { min-height: 48px; }
.sound { width: 48px; height: 48px; } .sound-ico { width: 18px; height: 18px; }
.panel-head { padding-inline-end: 66px; padding-left: 66px; padding-right: 12px; min-height: 68px; }
.stage-h { font-size: var(--f-note); } .code-msg, .tap-hint, .zoom-hint, .cam-map-hint, .rv-count, .badge { font-size: var(--f-note); }
.person .archival, .person .tag { font-size: var(--f-note); } .bag-hot span { font-size: var(--f-note); bottom: -14px; }
/* المكتب */
#desk { background: var(--desk); place-items: stretch center; overflow-y: auto; }
.dk { width: min(100vw, 480px); min-height: 100%; display: flex; flex-direction: column; padding: max(6px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom)); }
.dk-top { min-height: 52px; display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; padding: 0 14px; padding-left: 66px; line-height: 1.4; }
.dk-brand { color: var(--amber); font-weight: 700; font-size: var(--f-title); } .dk-case { color: var(--muted); font-size: var(--f-note); }
.dk-prog { padding: 4px 14px 0; } .dk-bars { display: flex; gap: 6px; } .dk-bars i { flex: 1; height: 6px; border-radius: 99px; background: #262d3a; }
.dk-bars i.done { background: var(--amber); } .dk-bars i.now { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); }
.dk-stage { margin: 6px 0 0; font-size: var(--f-code); line-height: 1.5; } .dk-stage b { font-weight: 700; } .dk-stage span { color: var(--muted); }
.dk-pic { flex: 1 1 0; min-height: 96px; max-height: calc(min(100vw, 480px) * .8); position: relative; overflow: hidden; margin-top: 6px; }
.dk-pic img { position: absolute; left: 0; top: 50%; width: 100%; height: auto; transform: translateY(-23%); display: block; }
.dk-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--desk) 0, rgba(18,22,30,0) 16%, rgba(18,22,30,0) 72%, var(--desk) 100%); }
.dk-mission { margin: auto 14px 0; border: 1px solid var(--amber); border-radius: 14px; padding: 10px 14px 12px; background: rgba(26,32,43,.75); }
.dk-mission h3 { margin: 0 0 2px; font-size: var(--f-note); color: var(--amber); line-height: 1.6; } .dk-mission p { margin: 0; font-size: var(--f-text); line-height: 1.75; }
.dk-main { font: inherit; border: 0; margin: 12px 14px 0; min-height: 56px; border-radius: 14px; background: var(--amber); color: #1b1608; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: var(--f-title); line-height: 1.45; padding: 7px 12px; cursor: pointer; }
.dk-main small { font-weight: 400; font-size: var(--f-note); }
.dk-nav { display: flex; gap: 8px; margin: 10px 14px 0; }
.dk-nav button { font: inherit; color: var(--ink); flex: 1 1 0; min-width: 0; min-height: 66px; border: 1px solid var(--line); border-radius: 14px; background: var(--desk-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: var(--f-note); font-weight: 700; line-height: 1.5; position: relative; padding: 6px 2px; cursor: pointer; }
.dk-count { position: absolute; top: -7px; inset-inline-end: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--amber); color: #1b1608; font-size: var(--f-note); line-height: 22px; text-align: center; }
.dk-hint { font: inherit; background: transparent; border: 0; min-height: 48px; margin: 0 auto; padding: 0 28px; color: var(--amber); font-size: var(--f-code); font-weight: 700; cursor: pointer; } .dk-hint span { border-bottom: 1px solid rgba(232,196,120,.5); line-height: 1.5; }
.dk-main:focus-visible, .dk-nav button:focus-visible, .dk-hint:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* بطاقة افتتاح المرحلة */
.stage-card { position: fixed; inset: 0; z-index: 20; background: rgba(8,10,14,.82); display: grid; place-items: center; padding: 22px; animation: fade .3s ease both; }
.sc-box { width: min(100%, 420px); background: var(--desk-2); border: 1px solid var(--amber); border-radius: 18px; padding: 26px 20px 22px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.sc-k { font-size: var(--f-note); color: var(--muted); margin: 0; } .sc-box h2 { font-size: var(--f-stage); margin: 2px 0 12px; color: var(--amber); line-height: 1.5; }
.sc-box hr { border: 0; height: 1px; width: 72px; background: var(--amber); margin: 0 auto 14px; } .sc-q { font-size: var(--f-text); margin: 0 0 20px; line-height: 1.85; }
.sc-box .dk-main { margin: 0; width: 100%; }
/* بطاقات الأدلة */
.stage-title { display: flex; align-items: center; gap: 10px; color: var(--amber); font-weight: 700; font-size: var(--f-code); margin: 16px 2px 10px; } .stage-title::after { content: ""; flex: 1; height: 1px; background: rgba(232,196,120,.35); }
.ev-list button { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: start; font: inherit; color: var(--ink); background: var(--desk-2); border: 1px solid var(--amber); border-radius: 14px; padding: 8px 12px; cursor: pointer; }
.ev-list .tx { flex: 1; min-width: 0; line-height: 1.5; } .ev-list .l1 { display: block; font-size: var(--f-text); font-weight: 700; } .ev-list .ty { font-size: var(--f-note); color: var(--muted); }
.ev-list .sym { color: var(--amber); font-weight: 700; } .ev-list button > .sym { min-width: 3em; } .ev-list button > .nm { flex: 1; }
.ev-list .st { font-size: var(--f-note); white-space: nowrap; background: var(--amber); color: #1b1608; font-weight: 700; padding: 1px 12px; border-radius: 99px; }
.ev-list button:not(.seen):not([aria-pressed]) { background: #232a36; }
.ev-list button.seen, .ev-list.pickable button { border-color: var(--line); }
.ev-list .seen .st { background: transparent; color: var(--muted); font-weight: 400; padding: 0; } .ev-list .seen .l1 { font-weight: 400; color: #cfd3da; } .ev-list .seen .sym { color: #b9a271; } .ev-list .seen svg.ic { stroke: #a8946a; }
.ev-list button.picked { border-color: var(--amber); background: #2a2413; }
/* رأس الإفادة */
.st-top { margin: 0 0 14px; } .st-head { display: flex; gap: 14px; align-items: center; }
.st-face { width: 72px; height: 72px; border-radius: 6px; border: 1px solid #5b6474; display: block; flex: none; object-fit: cover; }
.st-id { line-height: 1.5; min-width: 0; } .st-id b { font-size: var(--f-stage); display: block; } .st-id span { display: block; font-size: var(--f-code); color: var(--muted); } .st-id em { font-style: normal; font-size: var(--f-code); font-weight: 700; color: var(--amber); }
.st-arch { font-size: var(--f-note); color: var(--muted); margin: 6px 0 0; }
.play.st-voice { display: flex; width: 100%; justify-content: center; gap: 8px; margin-top: 10px; } .play.st-voice svg.ic { width: 20px; height: 20px; } .play.st-voice[aria-pressed="true"] svg.ic { stroke: #1b1608; }
.paper.statement { font-size: var(--f-title); line-height: 2; }

/* ═════ الدفعة ج: التفاعل والتشويق ═════ */
/* لحظة الاكتشاف */
.disc { position: fixed; inset: 0; z-index: 35; background: rgba(8,10,14,.84); display: grid; place-items: center; padding: 18px; overflow-y: auto; animation: fade .5s ease both; }
.disc[hidden] { display: none; }
.disc-box { width: min(100%, 420px); background: var(--desk-2); border: 1px solid var(--amber); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.disc-pic { position: relative; height: min(214px, 30dvh); overflow: hidden; background: #0f131a; } .disc-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.disc-pic.pic-d8a img { object-position: 50% 78%; } .disc-pic svg { width: 100%; height: 100%; display: block; }
.disc-stamp { position: absolute; top: 12px; inset-inline-start: 12px; width: 68px; height: 68px; border-radius: 50%; background: rgba(18,22,30,.86); border: 2px solid var(--amber); box-shadow: 0 0 0 3px rgba(18,22,30,.86), 0 0 0 4px var(--amber); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-size: var(--f-code); transform: rotate(-10deg); }
.disc-body { padding: 14px 18px 18px; text-align: center; } .disc-body h2 { margin: 0 0 6px; color: var(--amber); font-size: var(--f-title); line-height: 1.6; }
.disc-note { margin: 0 0 12px; font-size: var(--f-text); line-height: 1.85; } .disc-line { margin: 0; font-size: var(--f-note); color: var(--muted); line-height: 1.9; } .disc-body .dk-main { margin: 14px 0 0; width: 100%; }
/* الدفتر: تبويبان وخيوط التحقيق */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; } .tab { font: inherit; flex: 1; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-weight: 700; font-size: var(--f-code); color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--amber); color: #1b1608; background: var(--amber); }
.threads { position: relative; padding-inline-start: 30px; } .threads::before { content: ""; position: absolute; inset-inline-start: 9px; top: 6px; bottom: 10px; width: 2px; background: rgba(232,196,120,.55); }
.th { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--desk-2); padding: 12px 14px; margin-bottom: 14px; }
.th::before { content: ""; position: absolute; inset-inline-start: -28px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--desk); }
.th-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .th-hd h3 { margin: 0; font-size: var(--f-title); color: var(--amber); line-height: 1.5; }
.th-ok { font-size: var(--f-note); font-weight: 700; color: var(--ok); border: 1px solid var(--ok); border-radius: 99px; padding: 0 10px; white-space: nowrap; line-height: 1.9; }
.notes .th-note, .notes .th-intro { margin: 6px 0 10px; font-size: var(--f-text); line-height: 1.85; color: var(--ink); } .notes .th-intro { margin-bottom: 0; }
.th-rows { margin: 6px 0 10px; border-top: 1px solid var(--line); } .th-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: var(--f-text); } .th-rows span { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .chip { font: inherit; min-width: 56px; min-height: 48px; padding: 0 14px; border: 1px solid var(--amber); border-radius: 12px; background: transparent; color: var(--amber); font-weight: 700; font-size: var(--f-code); cursor: pointer; }
.chips em { font-style: normal; font-size: var(--f-note); color: var(--muted); }
.th.wait { border-style: dashed; background: transparent; color: var(--muted); font-size: var(--f-code); padding: 14px; } .th.wait::before { background: var(--desk); border: 2px solid rgba(232,196,120,.55); width: 10px; height: 10px; box-shadow: 0 0 0 4px var(--desk); }
.th-end { position: relative; height: 22px; } .th-end::before { content: ""; position: absolute; inset-inline-start: -29px; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--amber); background: var(--desk); }
/* آخر مقارنة وزر افحص الصورة */
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; } .tools .btn-ghost { margin: 0; } .last-cmp { border-color: var(--line); color: var(--ink); font-weight: 400; }
.inspect { font: inherit; width: 100%; margin: 12px 0 0; min-height: 52px; border: 1px solid var(--amber); border-radius: 14px; background: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--amber); font-weight: 700; font-size: var(--f-text); cursor: pointer; }
.paper .inspect { color: #6b4a12; border-color: #6b4a12; margin: 4px 0 14px; } .paper .inspect svg.ic { stroke: #6b4a12; }
/* لوحة الاتهام */
.acc-h { font-size: var(--f-title); } .acc-h i { font-style: normal; color: var(--amber); } .acc-inst { font-size: var(--f-code); margin-bottom: 10px; }
.sus { display: flex; gap: 8px; } .sus-card { font: inherit; flex: 1 1 0; min-width: 0; border: 2px solid var(--line); border-radius: 14px; background: var(--desk-2); padding: 7px 7px 5px; text-align: center; font-weight: 700; font-size: var(--f-text); color: var(--ink); cursor: pointer; }
.sus-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; } .sus-card[aria-checked="true"] { border-color: var(--amber); color: var(--amber); }
.ev-list .chk { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; color: #1b1608; font-weight: 700; font-size: 15px; line-height: 1; }
.ev-list .picked .chk { background: var(--amber); border-color: var(--amber); } .ev-list .picked .chk::before { content: "✓"; } .ev-list.pickable button.picked .sym::before { content: none; }
.panel-body.acc-on { padding-bottom: 0; }
.acc-bar { position: sticky; bottom: 0; z-index: 2; margin: 18px -14px 0; padding: 8px 14px max(14px, env(safe-area-inset-bottom)); background: var(--desk-2); border-top: 1px solid var(--line); }
.acc-bar .fb { margin: 0 0 6px; min-height: 0; } .acc-bar .fb:empty { display: none; } .acc-row { display: flex; align-items: center; gap: 12px; } .acc-count { font-size: var(--f-code); color: var(--muted); white-space: nowrap; } .acc-row .btn { flex: 1; }
.acc-bar .confirm { margin-top: 0; }

/* ═════ الدفعة د: النهاية ═════ */
/* كشف الحقيقة: روابط الأدلة تحت النص */
.rv-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; animation: fade .7s ease both; } .rv-text.late .rv-links { animation: fade 1s ease 4.5s both; }
.rv-links-k { font-size: var(--f-note); color: var(--muted); min-width: 4.6em; } .rv-links .chip { min-width: 48px; padding: 0 10px; }
/* الخطوة 5: الدليلان متجاوران فوق النص */
.reveal.pair .rv-media { flex: 0 0 auto; background: transparent; overflow: visible; padding: max(70px, calc(env(safe-area-inset-top) + 60px)) 14px 0; }
.reveal.pair .rv-text { flex: 1 1 0; max-height: none; min-height: 0; display: block; padding: 14px 18px 4px; font-size: 1.02rem; }
.rv-pair { max-width: 640px; margin: 0 auto; animation: fade .6s ease both; } .rv-pair-h { margin: 0 2px 4px; font-size: var(--f-note); color: var(--amber); font-weight: 700; } .rv-pair .chat { margin-bottom: 12px; } .rv-pair .chat-body { padding: 10px 12px; }
/* الخطوة 6: النص فوق صورة المكتب معتّمة */
.reveal.bg-desk { background: linear-gradient(rgba(7,9,13,.84), rgba(7,9,13,.93)), url("/media/m3-desk.webp") center top / cover no-repeat #07090d; }
.reveal.text .rv-text { overflow-y: auto; } .reveal.text:not(.pair) .rv-text { justify-content: safe center; padding-top: 70px; }
/* بطاقة النتيجة */
.score-card { width: min(100%, 340px); aspect-ratio: 4 / 5; margin: 0 auto 16px; border: 2px solid var(--amber); border-radius: 4px; outline: 1px solid var(--amber); outline-offset: -9px; background: radial-gradient(circle at 50% 46%, rgba(232,196,120,.14), rgba(232,196,120,0) 68%), var(--desk); display: flex; flex-direction: column; align-items: center; padding: 34px 26px 30px; text-align: center; }
.sc-brand { margin: 0; color: var(--amber); font-weight: 700; font-size: var(--f-stage); line-height: 1.5; } .sc-case { margin: 0; color: var(--muted); font-size: var(--f-note); }
.score .score-card .title { margin: auto 0; color: var(--paper); font-size: 2rem; line-height: 1.5; } .sc-ask { margin: 0; color: var(--amber); font-weight: 700; font-size: 1.5rem; line-height: 1.5; }
.score .share { margin: 14px 0 0; } .score .fb:empty { display: none; }
.share-view { text-align: center; } .share-view img { width: min(100%, 420px); height: auto; display: block; margin: 0 auto 10px; border-radius: 6px; -webkit-touch-callout: default; } .share-view p { color: var(--muted); font-size: var(--f-code); margin: 0; }

/* لمسات المراجعة الأخيرة */
.rv-links-k { min-width: 0; } .rv-links { margin-top: -2px; }
.play.rv-voice { display: inline-flex; align-items: center; gap: 8px; } .play.rv-voice svg.ic { width: 20px; height: 20px; stroke: #1b1608; } .play.rv-voice[aria-pressed="false"] svg.ic { stroke: var(--amber); }
.save-card { display: flex; align-items: center; justify-content: center; text-decoration: none; width: min(100%, 420px); margin: 0 auto 10px; }
.chip { white-space: nowrap; }
.rv-note { margin: -4px 0 12px; } .rv-note .rv-links-k { border: 1px solid var(--line); border-radius: 6px; padding: 1px 10px; color: var(--muted); }
