/* ============================================
   منظومه — استایل تجربه‌ی فضایی
   ============================================ */
:root {
  --cy: #7de7ff;
  --cy-strong: #38bdf8;
  --amber: #ffc46b;
  --ink: #dff3ff;
  --dim: #8fb3c9;
  --glass: rgba(8, 17, 34, .62);
  --line: rgba(125, 231, 255, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #01030a;
  color: var(--ink);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(56, 189, 248, .35); }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- جلوه‌های روی تصویر ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; }
.vignette {
  z-index: 10;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(1, 3, 10, .38) 82%, rgba(1, 3, 10, .78) 100%);
}
.scan {
  z-index: 11;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .026) 0 1px, transparent 1px 4px);
  opacity: .5;
  animation: scanMove 9s linear infinite;
}
@keyframes scanMove { to { transform: translateY(24px); } }

#frame {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 12; pointer-events: none;
  animation: frameSway 7s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes frameSway {
  from { transform: rotate(-.35deg) translateY(0); }
  to   { transform: rotate(.35deg) translateY(4px); }
}

/* ---------- دکمه‌ها ---------- */
.btn {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--cy);
  background: rgba(10, 22, 44, .55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: .18s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: rgba(125, 231, 255, .75);
  box-shadow: 0 0 18px rgba(56, 189, 248, .35);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(120deg, #67e8f9, #38bdf8);
  color: #04202f;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 26px rgba(56, 189, 248, .45);
}
.btn.primary:hover { box-shadow: 0 6px 34px rgba(56, 189, 248, .7); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: #cfe7f5; }
.btn.icon { padding: 9px 12px; }

/* ---------- نوار بالا ---------- */
.topbar {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 22px;
  background: linear-gradient(180deg, rgba(1, 4, 12, .72), transparent);
}
.brand { display: flex; align-items: center; gap: 12px; }
.badge {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 24px; color: var(--cy);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  text-shadow: 0 0 14px var(--cy);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 22px rgba(56, 189, 248, .4); } }
.brand-t h1 { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.brand-t p { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.topnav { display: flex; gap: 8px; }

/* ---------- برچسب سیاره‌ها ---------- */
#tags { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.tag {
  position: absolute;
  transform: translate(-50%, -135%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  pointer-events: auto;
  cursor: pointer;
  font-family: inherit;
  color: #eaffff;
  background: rgba(5, 13, 27, .78);
  border: 1px solid color-mix(in srgb, var(--c, #7de7ff) 55%, transparent);
  border-radius: 12px;
  padding: 7px 13px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .55);
  transition: scale .15s ease;
  white-space: nowrap;
  max-width: min(46vw, 300px);
  overflow: hidden;
}
.tag:hover { scale: 1.08; }
.tag .t-name {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 600;
}
.tag .t-name::before {
  content: '';
  display: inline-block;
  margin-inline-end: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, #7de7ff);
  box-shadow: 0 0 10px var(--c, #7de7ff);
}
.tag .t-dist { font-size: 10.5px; color: var(--dim); }

/* ---------- اعلان ---------- */
#alert {
  position: fixed; top: 86px; right: 50%;
  transform: translate(50%, -8px);
  z-index: 40;
  padding: 10px 24px;
  font-size: 13.5px; font-weight: 600;
  color: var(--cy);
  background: rgba(6, 15, 30, .85);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(56, 189, 248, .25);
  max-width: min(92vw, 560px);
  text-align: center;
  line-height: 1.85;
  opacity: 0; pointer-events: none;
  transition: .3s ease;
}
#alert.show { opacity: 1; transform: translate(50%, 0); }

/* ---------- نقشهٔ منظومه ---------- */
#mapPanel {
  position: fixed; top: 0; bottom: 0; right: 0;
  width: 330px; max-width: 88vw;
  z-index: 50;
  background: rgba(3, 8, 18, .92);
  border-inline-start: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding: 20px;
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.2, .9, .25, 1);
  display: flex; flex-direction: column;
}
#mapPanel.open { transform: translateX(0); }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mp-head h2 { font-size: 16px; }
#mapList { list-style: none; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
#mapList li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(125, 231, 255, .12);
  border-radius: 14px;
  cursor: pointer;
  transition: .18s;
}
#mapList li:hover { border-color: rgba(125, 231, 255, .6); background: rgba(56, 189, 248, .08); }
#mapList .ml-dot {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 62%, #020610 145%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 70%, transparent);
}
#mapList .ml-t { flex: 1; min-width: 0; }
#mapList .ml-t b { display: block; font-size: 14px; }
#mapList .ml-t small { font-size: 11px; color: var(--dim); direction: ltr; unicode-bidi: embed; }
#mapList .ml-d { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.mp-note { margin-top: 12px; font-size: 11px; color: var(--dim); text-align: center; }

/* ---------- کارت سیاره ---------- */
#planetCard {
  position: fixed; bottom: 108px; right: 50%;
  transform: translate(50%, 26px);
  width: min(580px, 92vw);
  z-index: 35;
  opacity: 0; pointer-events: none;
  transition: .35s cubic-bezier(.2, .9, .25, 1);
}
#planetCard.show { opacity: 1; transform: translate(50%, 0); pointer-events: auto; }
.pc-shell {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: rgba(4, 10, 22, .82);
  border: 1px solid color-mix(in srgb, var(--c, #7de7ff) 45%, transparent);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 44px rgba(0, 0, 0, .6), 0 0 30px color-mix(in srgb, var(--c, #7de7ff) 18%, transparent);
}
#pcDot {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 62%, #020610 145%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 75%, transparent);
  margin-top: 4px;
}
.pc-body { min-width: 0; }
#pcEyebrow {
  font-size: 10.5px; letter-spacing: 1px;
  color: var(--c, var(--cy));
  font-weight: 600;
}
#pcName { font-size: 23px; font-weight: 800; margin: 2px 0; }
#pcDomain { font-size: 11.5px; color: var(--dim); text-align: right; overflow-wrap: anywhere; }
#pcDesc { font-size: 13px; line-height: 1.95; color: #cfe7f5; margin: 8px 0 14px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- داشبورد پایین ---------- */
#dash {
  position: fixed; bottom: 0; right: 0; left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 12px;
  padding: 26px 28px 12px;
  background: linear-gradient(0deg, rgba(1, 4, 12, .85) 20%, rgba(1, 4, 12, .3) 72%, transparent);
  pointer-events: none;
}
.gauge { width: 220px; justify-self: start; }
.gauge.alt { justify-self: end; text-align: left; }
.g-label {
  font-family: 'Orbitron', monospace;
  font-size: 9.5px; letter-spacing: 3.5px;
  color: rgba(125, 231, 255, .55);
}
.g-value { display: flex; align-items: baseline; gap: 8px; margin: 3px 0 6px; }
.gauge.alt .g-value { flex-direction: row-reverse; }
.g-value b { font-size: 26px; font-weight: 800; line-height: 1; }
.g-value small { font-size: 10.5px; color: var(--dim); }
.g-bar { height: 4px; border-radius: 4px; background: rgba(125, 231, 255, .12); overflow: hidden; }
.g-bar i {
  display: block; height: 100%; width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cy-strong), var(--cy));
  box-shadow: 0 0 12px rgba(56, 189, 248, .8);
  transition: width .18s ease-out;
}
.gauge.alt .g-bar i { background: linear-gradient(90deg, #f59e0b, var(--amber)); box-shadow: 0 0 12px rgba(255, 196, 107, .8); }

.dash-mid { text-align: center; padding-bottom: 2px; }
#hudStatus {
  font-size: 13.5px; font-weight: 600; color: #bfe9ff;
  text-shadow: 0 0 14px rgba(56, 189, 248, .45);
}
.keys { display: flex; gap: 12px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.keys span {
  font-size: 10px; color: var(--dim);
  border: 1px solid rgba(125, 231, 255, .14);
  background: rgba(255, 255, 255, .03);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- اینترو ---------- */
#intro {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(56, 189, 248, .14), transparent 60%),
    rgba(1, 3, 10, .72);
  backdrop-filter: blur(10px);
  transition: opacity .6s ease;
}
#intro.hide { opacity: 0; pointer-events: none; }
.intro-card {
  max-width: 540px;
  text-align: center;
  padding: 46px 40px;
  background: rgba(5, 12, 26, .66);
  border: 1px solid rgba(125, 231, 255, .2);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65), inset 0 0 60px rgba(56, 189, 248, .05);
}
.intro-eyebrow {
  font-family: 'Orbitron', monospace;
  font-size: 10.5px; letter-spacing: 4px;
  color: var(--cy); opacity: .8;
}
.intro-card h2 { font-size: 33px; font-weight: 800; margin: 14px 0 4px; }
.intro-card h2 b {
  background: linear-gradient(100deg, #a5f3fc, #38bdf8 60%, #818cf8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-sub { font-size: 14px; line-height: 2.1; color: #b8d6e8; margin: 16px 0 28px; }
#btnStart {
  font-family: inherit;
  font-size: 16px; font-weight: 800;
  color: #04202f;
  background: linear-gradient(120deg, #67e8f9, #38bdf8);
  border: none; border-radius: 16px;
  padding: 15px 36px;
  cursor: pointer;
  box-shadow: 0 6px 34px rgba(56, 189, 248, .5);
  transition: .2s;
  animation: startPulse 2.4s ease-in-out infinite;
}
#btnStart:hover { transform: translateY(-2px) scale(1.03); }
@keyframes startPulse { 50% { box-shadow: 0 6px 48px rgba(56, 189, 248, .85); } }
.intro-hint { font-size: 11.5px; color: var(--dim); margin-top: 16px; }

/* ---------- لودینگ ---------- */
#loading {
  position: fixed; bottom: 130px; right: 50%;
  transform: translateX(50%);
  z-index: 70;
  font-size: 12px; color: var(--cy);
  background: rgba(6, 15, 30, .85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
}

/* ---------- موبایل ---------- */
@media (max-width: 760px) {
  .brand-t p { display: none; }
  .brand-t h1 { font-size: 18px; }
  .badge { width: 38px; height: 38px; font-size: 20px; }
  .topbar { padding: 12px 14px 18px; }
  .btn { font-size: 12px; padding: 8px 12px; }
  .gauge { width: 130px; }
  .g-value b { font-size: 19px; }
  .keys { display: none; }
  #dash { padding: 20px 14px 10px; }
  #planetCard { bottom: 92px; }
  .pc-shell { flex-direction: column; gap: 10px; padding: 14px 16px; }
  #pcDot { width: 44px; height: 44px; }
  #pcName { font-size: 19px; }
  .intro-card { padding: 34px 24px; }
  .intro-card h2 { font-size: 26px; }
}

/* ---------- دکمه‌های شتاب لمسی ---------- */
#touchCtl {
  position: fixed; bottom: 132px; left: 18px; z-index: 45;
  display: none; flex-direction: column; gap: 10px;
}
#touchCtl .thr {
  width: 58px; height: 58px; border-radius: 16px;
  font-size: 20px; color: var(--cy);
  background: rgba(10, 22, 44, .6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  touch-action: none; cursor: pointer;
}
#touchCtl .thr:active { background: rgba(56, 189, 248, .28); }
@media (hover: none), (pointer: coarse) {
  #touchCtl { display: flex; }
}


/* ==== v1.5: دو مدل پرواز + فهرست منظومه‌ها ==== */
.kchip {
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .35);
  background: rgba(18, 32, 63, .6);
  color: #7dd3fc;
  font: 600 11px Vazirmatn, sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.kchip.free { color: #fbbf24; border-color: rgba(251, 191, 36, .45); background: rgba(42, 31, 13, .55); }

.dir-mini {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.dir-mini .dir-t { width: 100%; color: #62739b; font-size: 12px; margin-bottom: 2px; }
a.dir-chip-mini {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .25);
  background: rgba(12, 20, 40, .7);
  color: #b9c8e8;
  font-size: 12px;
  font-family: Vazirmatn, sans-serif;
  text-decoration: none;
  transition: all .15s;
}
a.dir-chip-mini:hover { color: #7dd3fc; border-color: rgba(125, 211, 252, .6); }

/* ==== کهکشان سه‌بعدی: نام کاپیتان زیر برچسب ==== */
.tag .t-user {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9.5px;
  color: #62739b;
  direction: ltr;
  margin-top: 1px;
}


/* ==== v1.8: جوی‌استیک پرواز لمسی ==== */
#joy {
  display: none;
  position: fixed; z-index: 44;
  left: 20px; bottom: 118px;
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .32);
  background: radial-gradient(circle at 50% 36%, rgba(18, 32, 63, .45), rgba(6, 12, 26, .72));
  box-shadow: inset 0 0 26px rgba(125, 211, 252, .07), 0 10px 30px rgba(0, 0, 0, .45);
  touch-action: none;
  backdrop-filter: blur(6px);
}
#joyKnob {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 30%, #3d5a8f, #14234a 72%);
  border: 1px solid rgba(125, 211, 252, .6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5), 0 0 18px -4px #7dd3fc;
  pointer-events: none;
}
#joy::before {
  content: '🚀 شتاب + چرخش';
  position: absolute; top: -22px; right: 50%;
  transform: translateX(50%);
  font: 600 9.5px Vazirmatn, sans-serif;
  color: #62739b; white-space: nowrap;
}
@media (hover: none) and (pointer: coarse) {
  #joy { display: block; }
  #touchCtl { left: auto; right: 16px; bottom: 118px; }
}
@media (hover: hover) and (pointer: fine) {
  #joy { display: none !important; }
}

/* ==== v1.8: ریسپانسیو پیشرفته‌ی کوکپیت ==== */
@media (max-width: 640px) {
  .topbar { padding: 8px 10px; gap: 6px; }
  .brand-t p { display: none; }
  .topnav .btn { padding: 6px 9px; font-size: 11.5px; border-radius: 8px; }

  #dash {
    grid-template-columns: 1fr;
    padding: 10px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    background: linear-gradient(0deg, rgba(1, 4, 12, .9) 40%, transparent);
  }
  #dash .gauge { display: none; }
  .dash-mid { width: 100%; }
  .keys { display: none; }
  #hudStatus { text-align: center; font-size: 12px; padding: 2px 0; }

  .tag { padding: 8px 13px; min-height: 34px; font-size: 12px; }
  .tag .t-user { display: none; }

  #frame { display: none; }

  #planetCard { inset-inline: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  #planetCard .pc-body { padding: 13px 14px; max-height: 44vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  .pc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .pc-actions .btn { flex: 1 1 44%; font-size: 11.5px; padding: 9px 6px; justify-content: center; }

  #mapPanel {
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; max-width: none; max-height: 64vh;
    border-radius: 18px 18px 0 0;
    border-inline-start: none;
    border-top: 1px solid var(--line);
    transform: translateY(112%);
  }
  #mapPanel.open { transform: translateY(0); }

  #intro .intro-card { padding: 18px 14px; max-height: 84vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  #intro h2 { font-size: 23px; }
  .intro-sub { font-size: 13px; }

  #touchCtl { bottom: 118px; right: 16px; left: auto; }
  #joy { bottom: 96px; left: 16px; width: 116px; height: 116px; }
}


/* ==== v1.8.1: رفع بیرون‌زدگی موبایل ==== */
#mapList .ml-t small { display: block; overflow-wrap: anywhere; }
.tag .t-dist { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  /* نوار بالا دو ردیفه + دکمه‌ها اسکرول افقی بدون بیرون‌زدگی */
  .topbar { flex-wrap: wrap; align-items: flex-start; }
  .brand { min-width: 0; }
  .brand-t { min-width: 0; flex: 1; }
  .brand-t h1 { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .topnav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav .btn { flex: none; }
  #alert { top: 104px; }
  #mapPanel { max-height: 72dvh; }
  #dash { padding-inline: 8px; }
}

@media (max-width: 380px) {
  .badge { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .brand-t h1 { font-size: 14px; }
  .topnav .btn { font-size: 11px; padding: 6px 8px; }
}


/* ==== v1.8.2: کارت معرفی مرکزی + کنترل‌های ریزتر + اینترو کامل‌نما ==== */

/* کارت معرفی: وسط صفحه، انطباق با هر نمایشگر */
#planetCard {
  position: fixed; inset: 0; bottom: auto;
  display: grid; place-items: center;
  width: auto;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  transform: none;
}
#planetCard.show { opacity: 1; transform: none; pointer-events: auto; }
.pc-shell {
  width: min(560px, calc(100vw - 26px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(14px) scale(.965);
  transition: transform .3s cubic-bezier(.2,.9,.25,1);
}
#planetCard.show .pc-shell { transform: translateY(0) scale(1); }

/* وقتی کارت باز است، انگشت‌ها را آزاد بگذار — جوی‌استیک و شتاب موقتاً پنهان */
body.card-open #joy, body.card-open #touchCtl { visibility: hidden; opacity: 0; }
#joy, #touchCtl { transition: opacity .18s ease; }

/* اینترو: جمع‌وجورتر تا همه‌ی متن در هر نمایشگر دیده شود */
#intro { padding: 12px; }
.intro-card {
  padding: 26px 22px;
  max-width: 520px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.intro-card h2 { font-size: 27px; margin: 10px 0 3px; }
.intro-sub { font-size: 13px; line-height: 1.9; margin: 12px 0 20px; }
#btnStart { font-size: 15px; padding: 13px 30px; }
.intro-hint { font-size: 11px; margin-top: 12px; }
.dir-mini { margin-top: 14px; }

@media (max-width: 640px) {
  /* جوی‌استیک و شتاب کوچک‌تر برای دست‌های راحت‌تر */
  #joy { left: 13px; bottom: 92px; width: 88px; height: 88px; }
  #joyKnob { width: 38px; height: 38px; }
  #joy::before { font-size: 8.5px; top: -19px; }
  #touchCtl { right: 12px; bottom: 92px; gap: 8px; }
  #touchCtl .thr { width: 44px; height: 44px; font-size: 16px; border-radius: 13px; }

  /* اینترو موبایل */
  .intro-card { padding: 18px 14px; border-radius: 20px; }
  .intro-card h2 { font-size: 21px; }
  .intro-sub { font-size: 12.5px; line-height: 1.85; margin: 10px 0 16px; }
  #btnStart { font-size: 14px; padding: 12px 26px; }

  /* کارت معرفی موبایل — ستونی، اقدامات دو ستونه، فونت ریزتر */
  .pc-shell { padding: 13px 13px; max-height: calc(100dvh - 58px); }
  #pcName { font-size: 18px; }
  #pcDesc { font-size: 12.5px; margin: 6px 0 12px; }
  .pc-actions .btn { font-size: 11px; }
}
@media (max-width: 380px) {
  .intro-card { padding: 15px 11px; }
  .intro-card h2 { font-size: 19px; }
}


/* جوی‌استیک = چرخش دید — نه شتاب */
#joy::before { content: '🎮 چرخش + بالا/پایین'; }

/* ==== v1.8.7: اینترو همیشه خوانا + برچسب‌های ریزتر ==== */
/* ریشه‌ی بیرون‌زدگی: کارت بزرگ‌تر از نمایشگر اینترو بود */
#intro { padding: 10px; }
.intro-card {
  max-width: min(520px, calc(100vw - 20px));
  overflow-wrap: break-word;
}
.intro-card * { max-width: 100%; }
.intro-eyebrow {                      /* خط «MZ-6673 // NEWLY DISCOVERED …» */
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.9;
  letter-spacing: 3px;
}

/* برچسب‌های سیاره/منظومه: ریزتر تا فضای دید بیشتر شود */
.tag { padding: 5px 10px; gap: 2px; border-radius: 10px; }
.tag .t-name { font-size: 12px; }
.tag .t-dist { font-size: 9px; }

@media (max-width: 640px) {
  /* برچسب‌های موبایل: حدود ۳۰٪ ریزتر */
  .tag { padding: 4px 8px; min-height: 26px; }
  .tag .t-name { font-size: 10.5px; }
  .tag .t-dist { font-size: 8.5px; }

  /* اینترو موبایل: همه‌چیز خوانا و جمع‌وجور */
  .intro-eyebrow { font-size: 9px; letter-spacing: 2px; }
  .intro-card h2 { font-size: 20px; }
  .intro-sub { font-size: 12px; line-height: 1.85; margin: 9px 0 14px; }
  #btnStart { font-size: 13.5px; padding: 11px 24px; }
}

@media (max-width: 380px) {
  .tag { padding: 3px 7px; }
  .tag .t-name { font-size: 10px; }
  .intro-card h2 { font-size: 18px; }
}


/* ==== v1.9.0: کاوش + لایک ==== */
.btn.liked { color: #fda4af !important; border-color: rgba(251, 113, 133, .55) !important; background: rgba(251, 113, 133, .12) !important; }
