/* ============================================================
   style.css  —  تمِ نوآرِ کارآگاهی، چیدمانِ راست‌به‌چپ
   ============================================================ */
:root {
  --bg: #14110d;
  --bg2: #1d1812;
  --paper: #f3e9d2;
  --ink: #2a2114;
  --gold: #d9b35a;
  --gold2: #b8923a;
  --accent: #c4453f;
  --green: #3a8a5a;
  --muted: #9a8b6f;
  --card: #241d15;
  --card2: #2e2619;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --r: 14px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(217,179,90,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(196,69,63,.10), transparent 60%),
    var(--bg);
  color: var(--paper);
  min-height: 100vh;
}
#app { max-width: 960px; margin: 0 auto; padding: 18px 16px 60px; }

button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 8px; }

/* ---------- منو ---------- */
.title-block { text-align: center; padding: 26px 8px 12px; }
.game-title {
  font-size: 44px; letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 0 2px 0 #0008, 0 0 24px rgba(217,179,90,.35);
}
.game-sub { color: var(--paper); opacity: .85; margin-top: -4px; font-size: 18px; }
.hint-text { color: var(--muted); font-size: 14px; }

.case-section { margin-top: 22px; }
.section-title { color: var(--gold); font-size: 22px; border-bottom: 1px solid #3a2f1d; padding-bottom: 8px; margin-bottom: 4px; }
.section-title.special { color: #d9bcff; border-bottom-color: #5a3a8a; }
.section-sub { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.special-section { background: linear-gradient(180deg, rgba(140,80,255,.06), transparent); border: 1px solid #3a2a55; border-radius: 16px; padding: 6px 14px 16px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 14px; }
.case-card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid #3a2f1d; border-radius: var(--r);
  padding: 20px; text-align: center; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.case-card:not(.locked):hover { transform: translateY(-5px); border-color: var(--gold2); box-shadow: 0 16px 36px rgba(0,0,0,.55); }
.case-card.locked { opacity: .55; filter: grayscale(.5); cursor: not-allowed; }
.case-card.solved { border-color: var(--green); }
.case-num { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.case-icon { font-size: 46px; margin: 6px 0; }
.case-card h3 { font-size: 22px; color: var(--paper); }
.case-subtitle { color: var(--muted); font-size: 14px; min-height: 38px; }
.case-status { margin-top: 8px; font-size: 13px; color: var(--gold); }
.case-card.locked .case-status { color: #c98; }

.ghost-btn {
  display: block; margin: 28px auto 0; background: transparent;
  border: 1px solid #4a3c26; color: var(--muted); padding: 9px 16px;
  border-radius: 10px; font-size: 14px;
}
.ghost-btn:hover { color: var(--paper); border-color: var(--gold2); }

/* ---------- نوار بالا و تب‌ها ---------- */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.back-btn { background: #2a2114; color: var(--paper); border: 1px solid #4a3c26; border-radius: 10px; padding: 8px 14px; }
.back-btn:hover { border-color: var(--gold2); }
.case-name { font-weight: 700; color: var(--gold); flex: 1; }
.clue-count { background: #2a2114; border: 1px solid #4a3c26; border-radius: 10px; padding: 6px 12px; font-size: 14px; }

.tabrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab {
  background: var(--card); color: var(--paper); border: 1px solid #3a2f1d;
  border-radius: 10px; padding: 8px 12px; font-size: 14px; transition: .15s;
}
.tab:hover { border-color: var(--gold2); }
.tab.active { background: var(--gold); color: #221a0c; border-color: var(--gold); font-weight: 700; }

.case-body { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- اسناد (نامه/روزنامه) ---------- */
.doc {
  background: var(--paper); color: var(--ink); border-radius: 10px;
  padding: 26px 28px; box-shadow: var(--shadow); line-height: 2; position: relative;
}
.doc.letter { background:
  repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(0,0,0,.04) 31px),
  var(--paper); }
.doc-head { text-align: center; border-bottom: 2px solid #00000022; padding-bottom: 12px; margin-bottom: 16px; }
.doc-head h2 { color: #5a3a1a; font-size: 24px; }
.doc-head .from { color: #7a6a4a; font-size: 14px; }
.seal { display: inline-block; font-size: 28px; color: var(--accent); }
.doc-body { font-size: 17px; }
.gift { margin-top: 18px; background: #e7d6a8; border: 1px dashed #b8923a; border-radius: 10px; padding: 10px 14px; color: #5a3a1a; }
.doctor .doc-head h2 { color: #2d5a4a; }

/* روزنامه */
.newspaper { background: #efe6cf; font-family: "Vazirmatn", serif; }
.np-masthead { display: flex; justify-content: space-between; border-bottom: 3px double #00000055; padding-bottom: 6px; color: #5a4a2a; font-weight: 700; }
.np-headline { font-size: 34px; text-align: center; margin: 16px 0; color: #1a1206; letter-spacing: .5px; }
.np-columns { column-count: 2; column-gap: 26px; column-rule: 1px solid #00000022; text-align: justify; font-size: 16px; line-height: 2; }
@media (max-width: 620px) { .np-columns { column-count: 1; } }

.primary-btn {
  display: inline-block; margin-top: 18px;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  color: #221a0c; border: none; border-radius: 10px;
  padding: 11px 20px; font-size: 16px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.primary-btn:hover { filter: brightness(1.07); }

/* ---------- صحنه‌ی جرم ---------- */
.scene-desc { background: var(--card); border: 1px solid #3a2f1d; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 15px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tool-btn { background: #2a2114; color: var(--paper); border: 1px solid #4a3c26; border-radius: 10px; padding: 8px 14px; }
.tool-btn.on { background: var(--gold); color: #221a0c; border-color: var(--gold); font-weight: 700; }
.tip { color: var(--muted); font-size: 13px; }

.scene { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid #3a2f1d; box-shadow: var(--shadow); }
.scene.glass { cursor: crosshair; }
.scene-svg { display: block; width: 100%; height: auto; }

.hotspot {
  position: absolute; transform: translate(50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(217,179,90,.18); border: 2px solid var(--gold);
  color: var(--gold); font-size: 16px; display: grid; place-items: center;
  animation: pulse 1.8s infinite; backdrop-filter: blur(1px);
}
.hotspot:hover { background: rgba(217,179,90,.35); }
.hotspot.found { background: rgba(58,138,90,.4); border-color: var(--green); color: #dfffe9; animation: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(217,179,90,.5); } 50% { box-shadow: 0 0 0 10px rgba(217,179,90,0); } }

.lens {
  position: absolute; width: 130px; height: 130px; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; display: none;
  border: 6px solid #6b4a2f;
  box-shadow: 0 0 0 3px #d9b35a inset, 0 10px 30px rgba(0,0,0,.6);
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,.02) 60%, transparent 70%);
}

.found-row { margin-top: 12px; font-size: 14px; line-height: 2.2; }
.chip { display: inline-block; background: var(--card2); border: 1px solid #3a2f1d; border-radius: 999px; padding: 4px 12px; margin: 0 4px; }

/* پاپ‌آپِ سرنخ */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.clue-card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--gold2); border-radius: 16px; padding: 24px; max-width: 420px; text-align: center; box-shadow: var(--shadow); }
.clue-card.pop { animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.clue-ic { font-size: 50px; }
.clue-card h3 { color: var(--gold); font-size: 22px; }
.clue-card p { color: var(--paper); line-height: 1.9; }
.added { color: var(--green); font-size: 14px; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-row .primary-btn, .btn-row .ghost-btn { margin-top: 12px; }

/* ---------- بک‌پک ---------- */
.sec-title { color: var(--gold); border-bottom: 1px solid #3a2f1d; padding-bottom: 6px; margin-top: 18px; }
.empty { color: var(--muted); }
.clue-list { display: grid; gap: 10px; }
.clue-item { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid #3a2f1d; border-radius: 12px; padding: 12px 14px; }
.clue-item .clue-ic { font-size: 34px; }
.clue-item h4 { color: var(--gold); margin: 0; }
.clue-item p { margin: 4px 0 0; color: var(--paper); font-size: 14px; line-height: 1.7; }
.notebook { background: var(--card); border: 1px solid #3a2f1d; border-radius: 12px; padding: 12px 16px; }
.note-line { padding: 6px 0; border-bottom: 1px dashed #3a2f1d; font-size: 14px; }
.note-line:last-child { border-bottom: none; }

/* ---------- مصاحبه ---------- */
.suspect-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.avatar { background: var(--card); border: 2px solid #3a2f1d; border-radius: 12px; padding: 8px; min-width: 92px; color: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avatar.active { border-color: var(--gold); background: var(--card2); }
.av-face { width: 70px; height: 84px; }
.av-face svg, .big-face svg, .verdict-face svg, .accuse-card svg { width: 100%; height: 100%; }
.avatar span { font-size: 13px; }

.interview-stage { background: var(--card); border: 1px solid #3a2f1d; border-radius: 14px; padding: 16px; }
.pick { color: var(--muted); text-align: center; padding: 30px; }
.talk-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.big-face { width: 150px; height: 180px; background: radial-gradient(circle at 50% 35%, #3a3022, #1d1812); border-radius: 14px; border: 1px solid #3a2f1d; transition: .2s; }
.who h3 { font-size: 24px; color: var(--gold); }
.who .role { color: var(--muted); margin-bottom: 6px; }
.who .bio { font-size: 14px; line-height: 1.8; max-width: 460px; }
.scrutinize { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gold); background: #2a2114; border: 1px solid #4a3c26; border-radius: 10px; padding: 6px 10px; margin-top: 6px; }

.qa-list { margin-top: 16px; display: grid; gap: 10px; }
.qa-row { background: var(--bg2); border: 1px solid #3a2f1d; border-radius: 10px; padding: 10px 12px; }
.q-btn { background: #2f2619; color: var(--paper); border: 1px solid #4a3c26; border-radius: 8px; padding: 8px 12px; width: 100%; text-align: right; font-size: 15px; }
.q-btn:hover { border-color: var(--gold2); }
.answer { margin-top: 8px; font-size: 15px; line-height: 1.9; color: #e9dcc0; min-height: 0; }
.answer:empty { display: none; }
.answer.lie { border-right: 4px solid var(--accent); padding-right: 10px; }
.answer.truth { border-right: 4px solid var(--green); padding-right: 10px; }
.lie-badge { display: block; margin-top: 6px; color: #ff9a8f; font-size: 13px; font-weight: 700; }
.truth-badge { display: block; margin-top: 6px; color: #8ef0b0; font-size: 13px; }

/* ---------- استنتاج (انتخابِ دوگزینه‌ای) ---------- */
.deduce-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--gold); font-weight: 700; margin-bottom: 12px; flex-wrap: wrap; }
.deduce-progress .steps { display: flex; gap: 6px; }
.deduce-progress .step { width: 26px; height: 7px; border-radius: 4px; background: #3a2f1d; }
.deduce-progress .step.done { background: var(--green); }
.deduce-progress .step.now { background: var(--gold); }
.deduce-scene { background: var(--card); border: 1px solid #3a2f1d; border-right: 4px solid var(--gold2); border-radius: 12px; padding: 14px 16px; line-height: 2; font-size: 16px; }
.clue-reminder { background: #2a2114; border: 1px dashed var(--gold2); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: 14px; line-height: 1.8; }
.clue-reminder .clue-ic { font-size: 22px; }
.deduce-q { font-size: 20px; color: var(--gold); font-weight: 700; margin: 18px 0 12px; text-align: center; }
.deduce-options { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.deduce-opt { background: linear-gradient(180deg, var(--card2), var(--card)); color: var(--paper); border: 2px solid #4a3c26; border-radius: 12px; padding: 16px 18px; font-size: 16px; text-align: right; transition: .15s; }
.deduce-opt:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.deduce-opt:disabled { cursor: default; }
.deduce-opt.dimmed { opacity: .4; }
.deduce-opt.picked-ok { border-color: var(--green); background: #1f3a2a; }
.deduce-opt.picked-bad { border-color: var(--accent); background: #3a1f1f; }
.deduce-result { margin-top: 18px; text-align: center; }
.res-good, .res-bad { font-size: 16px; line-height: 2; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.res-good { background: #1f3a2a; border: 1px solid var(--green); color: #cdebd6; }
.res-bad { background: #3a1f1f; border: 1px solid var(--accent); color: #f3c9c5; }
.verdict-sub { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto 12px; }

/* ---------- اعلامِ مستقیمِ مجرم (حالتِ سخت) ---------- */
.accuse-tip { color: var(--muted); line-height: 1.9; }
.accuse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.accuse-card { background: var(--card); border: 2px solid #3a2f1d; border-radius: 14px; padding: 14px; color: var(--paper); text-align: center; transition: .15s; }
.accuse-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.accuse-card .av-face { width: 90px; height: 108px; margin: 0 auto; }
.accuse-card h4 { color: var(--gold); margin: 8px 0 2px; }
.accuse-card span { font-size: 13px; color: var(--muted); }

/* دفترِ یادداشتِ آزاد */
.free-notes { width: 100%; min-height: 130px; resize: vertical; background: #1b1611; color: var(--paper); border: 1px solid #4a3c26; border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 15px; line-height: 1.9; }
.free-notes:focus { outline: none; border-color: var(--gold2); }
.hard-note { margin-top: 12px; color: #c9a8ff; font-size: 14px; background: #241a30; border: 1px dashed #5a3a8a; border-radius: 10px; padding: 8px 12px; }

/* ---------- نوارِ استرس و شمارنده‌ی سؤال ---------- */
.stress { margin-top: 8px; }
.stress-label { font-size: 13px; color: var(--muted); }
.stress-bar { width: 220px; max-width: 100%; height: 12px; background: #1b1611; border: 1px solid #4a3c26; border-radius: 8px; overflow: hidden; margin-top: 4px; }
.stress-fill { width: 0; height: 100%; background: linear-gradient(90deg,#3a8a5a,#5ab87a); transition: width .4s ease, background .4s; }
.ask-counter { margin-top: 10px; background: #2a2114; border: 1px solid #4a3c26; border-radius: 10px; padding: 6px 12px; font-size: 14px; color: var(--gold); }
.lie-hint { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 460px; margin-top: 8px; }
.q-btn.asked { opacity: .8; border-color: var(--gold2); background: #20190f; cursor: default; }
.q-btn.locked { opacity: .35; cursor: not-allowed; }
.q-btn:disabled:hover { border-color: #4a3c26; }

/* ---------- لرزشِ چهره موقعِ دروغ + چکیدنِ عرق ---------- */
.trembling { animation: tremble .14s infinite; }
@keyframes tremble { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-1.5px,1px) rotate(-.4deg); } 50% { transform: translate(1.5px,-1px) rotate(.4deg); } 75% { transform: translate(-1px,1px) rotate(-.2deg); } }
.face .sweat { animation: drip 1.1s ease-in infinite; transform-origin: center top; }
@keyframes drip { 0% { opacity: 0; transform: translateY(-4px) scaleY(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px) scaleY(1.1); } }

/* ---------- انیمیشنِ حرف‌زدن (تکانِ سر + باز و بسته شدنِ دهان) ---------- */
.face.talking { animation: talk .26s ease-in-out infinite; transform-origin: 50% 74%; }
@keyframes talk { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-2px) scaleY(1.045) scaleX(.99); } }
/* دهان هنگامِ حرف‌زدن باز و بسته می‌شود (لب‌خوانی) */
.face.talking .mouth { animation: jaw .17s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center top; }
@keyframes jaw { from { transform: scaleY(.55); } to { transform: scaleY(1.4); } }
/* حبابِ «در حالِ فکر کردن» */
.thinking-bubble { color: var(--gold2); font-style: italic; }
.thinking-bubble .dots i { animation: blink 1s infinite; font-style: normal; }
.thinking-bubble .dots i:nth-child(2) { animation-delay: .25s; }
.thinking-bubble .dots i:nth-child(3) { animation-delay: .5s; }
@keyframes blink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.big-face { cursor: pointer; position: relative; }
.big-face::after { content: "🔊"; position: absolute; left: 6px; bottom: 4px; font-size: 12px; opacity: .6; background: rgba(0,0,0,.4); border-radius: 6px; padding: 1px 6px; }
.speak-btn { background: #2a2114; border: 1px solid #4a3c26; border-radius: 8px; color: var(--gold); padding: 2px 8px; margin: 0 4px; font-size: 12px; cursor: pointer; }
.speak-btn:hover { border-color: var(--gold); }
.lang-toggle { margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lang-btn { background: #2a2114; border: 1px solid #4a3c26; color: var(--paper); border-radius: 8px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold2); }
.lang-btn.on { background: var(--gold); color: #221a0c; border-color: var(--gold); font-weight: 700; }
.speak-hint { font-size: 13px; color: var(--gold2); line-height: 1.8; max-width: 460px; margin-top: 4px; }
.suspect-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.suspect-nav .ghost-btn { margin: 0; flex: 1; }

/* ---------- حکم ---------- */
.verdict { text-align: center; padding-top: 12px; }
.verdict-face { width: 160px; height: 192px; margin: 0 auto 10px; background: radial-gradient(circle at 50% 35%, #3a3022, #1d1812); border-radius: 16px; border: 1px solid #3a2f1d; }
.verdict h1 { font-size: 38px; }
.verdict.win h1 { color: var(--green); }
.verdict.lose h1 { color: var(--accent); }
.verdict-line { font-size: 18px; max-width: 600px; margin: 0 auto 14px; line-height: 1.9; }
.solution-box { background: var(--card); border: 1px solid var(--gold2); border-radius: 14px; padding: 18px 20px; max-width: 640px; margin: 0 auto 16px; text-align: right; line-height: 2; }
.solution-box h3 { color: var(--gold); }
.all-done { color: var(--gold); font-size: 20px; font-weight: 700; margin-top: 12px; }

/* ---------- توست ---------- */
.toast { position: fixed; bottom: 24px; right: 50%; transform: translateX(50%) translateY(20px); background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .3s; z-index: 80; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }

/* ---------- پرونده‌های ویژه (رنگِ بنفش/طلایی) ---------- */
:root { --special: #b06cff; --special2: #7a3dd6; }
.case-card.special { border-color: #5a3a8a; background: linear-gradient(180deg, #2a2040, #1d1630); position: relative; }
.case-card.special:hover { border-color: var(--special); box-shadow: 0 16px 40px rgba(140,80,255,.3); }
.case-card.special h3 { color: #d9bcff; }
.case-card.special .case-status { color: #c9a8ff; }
.card-special-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(180deg, var(--special), var(--special2)); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* انتخابِ حالت */
.mode-select { text-align: center; padding-top: 10px; }
.mode-select .back-btn { float: right; }
.special-badge { display: inline-block; margin: 8px auto; background: linear-gradient(180deg, var(--special), var(--special2)); color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; }
.ms-title { color: #d9bcff; font-size: 32px; margin-top: 8px; }
.ms-sub { color: var(--muted); }
.ms-q { color: var(--gold); font-size: 18px; margin-top: 18px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 680px; margin: 14px auto 0; }
.mode-card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 2px solid #4a3c26; border-radius: 16px; padding: 22px 18px; color: var(--paper); text-align: center; transition: .15s; cursor: pointer; }
.mode-card:hover { transform: translateY(-4px); }
.mode-card.easy:hover { border-color: var(--green); }
.mode-card.hard { border-color: #5a3a8a; }
.mode-card.hard:hover { border-color: var(--special); box-shadow: 0 12px 30px rgba(140,80,255,.3); }
.mode-card .mode-ic { font-size: 44px; }
.mode-card h3 { font-size: 22px; color: var(--gold); margin: 6px 0; }
.mode-card.hard h3 { color: #d9bcff; }
.mode-card p { font-size: 14px; line-height: 1.8; color: var(--paper); }

/* چیپِ حالت در نوارِ بالا */
.mode-chip { background: #2a2114; border: 1px solid #4a3c26; color: var(--paper); border-radius: 10px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.mode-chip.hard { border-color: var(--special2); color: #d9bcff; }
.topbar.special .case-name { color: #d9bcff; }
.lie-hint.hard { color: #c9a8ff; }

/* ---------- استعلامِ گوشی ---------- */
.phone-tip { color: var(--muted); line-height: 1.9; }
.device-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.device { background: var(--card); border: 2px solid #3a2f1d; border-radius: 12px; padding: 10px 12px; min-width: 120px; color: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.device.active { border-color: var(--special); background: #2a2040; }
.device.victim { border-color: #8a3b3b; }
.device.victim.active { border-color: #e0524c; }
.device .dev-ic { font-size: 26px; }
.device small { color: var(--muted); font-size: 12px; }
.phone-screen { background: #11151f; border: 2px solid #2a3550; border-radius: 18px; padding: 16px; max-width: 460px; margin: 0 auto; box-shadow: var(--shadow); }
.phone-name { text-align: center; color: #d9bcff; font-weight: 700; margin-bottom: 12px; border-bottom: 1px solid #2a3550; padding-bottom: 8px; }
.p-sec { margin-bottom: 8px; }
.p-query { width: 100%; text-align: right; background: #1a2030; color: var(--paper); border: 1px solid #2a3550; border-radius: 10px; padding: 10px 12px; font-size: 15px; cursor: pointer; }
.p-query:hover { border-color: var(--special); }
.p-query.opened { background: #241a30; border-color: var(--special); color: #d9bcff; }
.p-recs { display: grid; gap: 6px; }
.p-rec { background: #0d1018; border-right: 3px solid var(--special); border-radius: 8px; padding: 8px 12px; margin-top: 6px; font-size: 14px; line-height: 1.8; color: #dfe3f0; }
.p-rec.empty { border-right-color: #3a4560; color: var(--muted); }

/* ---------- منو: فصل ۲ + نوارِ پایینی ---------- */
.s2-section .section-title.s2 { color: #7ad0c0; }
.case-card.s2-card { border-color: #2a6a5c; background: linear-gradient(180deg, #1c332e, #142622); position: relative; }
.case-card.s2-card:hover { border-color: #7ad0c0; box-shadow: 0 16px 40px rgba(80,220,190,.22); transform: translateY(-5px); }
.case-card.s2-card h3 { color: #a8e8da; }
.case-card.s2-card .case-status { color: #7ad0c0; }
.card-special-badge.s2-badge { background: linear-gradient(180deg, #2fae94, #1c7a68); }

/* رده‌بندیِ رنگیِ فصل ۲: شاهکار طلایی، پیچیده بنفش، عادی سبز */
.case-card.s2-card.s2-tier-masterpiece { border-color: #b8923a; background: linear-gradient(180deg, #34290f, #241a08); box-shadow: 0 10px 30px rgba(217,179,90,.14); }
.case-card.s2-card.s2-tier-masterpiece:hover { border-color: var(--gold); box-shadow: 0 18px 46px rgba(217,179,90,.4); transform: translateY(-5px); }
.case-card.s2-card.s2-tier-masterpiece h3 { color: #ffdf9b; }
.case-card.s2-card.s2-tier-masterpiece .case-status { color: var(--gold); }
.case-card.s2-card.s2-tier-masterpiece .card-special-badge.s2-badge { background: linear-gradient(180deg, #f0c85a, #b8923a); color: #241a08; }
.case-card.s2-card.s2-tier-masterpiece::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none;
  box-shadow: inset 0 0 24px rgba(217,179,90,.22); }

.case-card.s2-card.s2-tier-complex { border-color: #6a3a8a; background: linear-gradient(180deg, #291a3a, #1c1229); }
.case-card.s2-card.s2-tier-complex:hover { border-color: #b06cff; box-shadow: 0 16px 40px rgba(140,80,255,.32); transform: translateY(-5px); }
.case-card.s2-card.s2-tier-complex h3 { color: #d9bcff; }
.case-card.s2-card.s2-tier-complex .case-status { color: #c9a8ff; }
.case-card.s2-card.s2-tier-complex .card-special-badge.s2-badge { background: linear-gradient(180deg, #b06cff, #7a3dd6); }
.menu-foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.menu-foot .ghost-btn { margin: 0; }
.coin-chip { background: #2a2114; border: 1px solid #6a5a2a; color: var(--gold); border-radius: 999px; padding: 7px 16px; font-weight: 700; }
.admin-btn { border-color: #2a6a5c; color: #7ad0c0; }

/* ---------- صفحه‌ی فرود: انتخابِ فصل ---------- */
.season-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }
@media (max-width: 640px) { .season-grid { grid-template-columns: 1fr; } }
.season-card {
  position: relative; overflow: hidden;
  min-height: 200px;
  border-radius: var(--r);
  padding: 28px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.season-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 170px at 50% -20%, rgba(255,255,255,.08), transparent 70%);
}
.season-card.season-1 {
  background: linear-gradient(160deg, #3a2d17, #241d15 55%, #1d1812);
  border: 1px solid #6a5a2a;
}
.season-card.season-1:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 44px rgba(217,179,90,.28); }
.season-card.season-2 {
  background: linear-gradient(160deg, #1e3b34, #142622 55%, #10201c);
  border: 1px solid #2a6a5c;
}
.season-card.season-2:hover { transform: translateY(-6px); border-color: #7ad0c0; box-shadow: 0 18px 44px rgba(80,220,190,.25); }
.season-icon { font-size: 56px; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.season-title { font-size: 24px; margin: 0; }
.season-card.season-1 .season-title { color: var(--gold); text-shadow: 0 2px 0 #0006; }
.season-card.season-2 .season-title { color: #a8e8da; text-shadow: 0 2px 0 #0006; }
.season-sub { color: var(--muted); font-size: 14px; margin: 0; max-width: 36ch; }
.season-progress { margin-top: 10px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 5px 14px; }
.season-card.season-1 .season-progress { color: var(--gold); background: #2a2114; border: 1px solid #6a5a2a; }
.season-card.season-2 .season-progress { color: #7ad0c0; background: #16302a; border: 1px solid #2a6a5c; }
.season-card.disabled { opacity: .55; filter: grayscale(.4); cursor: not-allowed; }
.season-card.disabled:hover { transform: none; box-shadow: var(--shadow); border-color: #2a6a5c; }

/* ردیفِ دکمه‌ی بازگشت در صفحه‌ی هر فصل */
.season-back { margin: 6px 0 12px; }

/* ---------- انیمیشنِ بازشدنِ پرونده ---------- */
.case-open-ov { position: fixed; inset: 0; overflow: hidden; background: rgba(10,8,6,.93); display: grid; place-items: center; z-index: 200; animation: ovIn .25s ease; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.dossier { position: relative; width: min(360px, 86vw); perspective: 1100px; }
.dossier-paper {
  background: var(--paper); color: var(--ink); border-radius: 12px; padding: 28px 22px; min-height: 150px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); text-align: center; position: relative;
  transform: scale(.94); opacity: 0; animation: paperIn .5s .55s cubic-bezier(.2,.7,.2,1) forwards;
}
.dossier-paper h2 { color: #5a3a1a; font-size: 26px; margin-top: 8px; }
.dossier-paper p { color: #7a6a4a; font-size: 15px; }
.dossier-paper .special-badge { margin-top: 10px; }
@keyframes paperIn { to { transform: scale(1); opacity: 1; } }
.dossier-cover {
  position: absolute; inset: 0; z-index: 3; border-radius: 12px;
  background: linear-gradient(160deg, #caa14c, #8a6a2a); color: #2a1d0a;
  display: grid; place-items: center; gap: 6px;
  transform-origin: top center; backface-visibility: hidden;
  box-shadow: inset 0 -8px 24px rgba(0,0,0,.25);
  animation: coverOpen .8s .25s cubic-bezier(.6,.05,.25,1) forwards;
}
.dossier-cover .d-ic { font-size: 64px; }
.dossier-cover .d-label { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
@keyframes coverOpen { from { transform: rotateX(0deg); } 70% { box-shadow: inset 0 -8px 24px rgba(0,0,0,.25); } to { transform: rotateX(-118deg); opacity: .15; } }
.dossier .stamp {
  position: absolute; top: 10px; left: 14px; z-index: 4; color: #b1322b;
  border: 3px solid #b1322b; border-radius: 8px; padding: 2px 10px; font-weight: 800; font-size: 16px;
  transform: rotate(-13deg) scale(2.4); opacity: 0; animation: stampSlam .22s 1.05s cubic-bezier(.3,1.6,.5,1) forwards;
}
@keyframes stampSlam { to { transform: rotate(-13deg) scale(1); opacity: .85; } }
.open-skip { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 13px; opacity: .7; }

@media (max-width: 560px) {
  .game-title { font-size: 32px; }
  .np-headline { font-size: 26px; }
  .talk-head { justify-content: center; text-align: center; }
}

/* ---------- اسپلشِ ناشر (موبایل‌بازی) ---------- */
#mb-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(217,179,90,.14), transparent 70%),
    var(--bg);
  transition: opacity .45s ease;
  cursor: pointer;
}
#mb-splash.out { opacity: 0; pointer-events: none; }
.mb-splash-inner { text-align: center; animation: mbSplashIn .7s ease both; }
.mb-splash-inner img { width: 160px; max-width: 46vw; height: auto; display: block; margin: 0 auto 14px; }
.mb-splash-presents { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.mb-splash-title { margin: 0 0 10px; color: var(--gold); font-size: 34px; text-shadow: 0 2px 18px rgba(217,179,90,.25); }
.mb-splash-url { margin: 0; color: var(--paper); font-size: 15px; letter-spacing: 1px; opacity: .85; }
@keyframes mbSplashIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mb-splash-inner { animation: none; }
  #mb-splash { transition: none; }
}

/* دکمه‌ی تنظیمات بالای منو */
.menu-settings { display: flex; justify-content: center; margin: -4px 0 14px; }
.menu-settings-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; }
