/* ============================================================
   تیتانو گیم — طراحی صفحهٔ سیاره
   دنیای داخل هر بازی: فرود روی سطح، چشم‌اندازها، پیش‌نمایش،
   امتیاز، نظرها و دانلود.
   ============================================================ */

/* ------------------------- پرش نوری ------------- */
.warp {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.warp.is-on { opacity: 1; visibility: visible; }
.warp::before {
  content: "";
  position: absolute;
  left: var(--wx, 50%);
  top: var(--wy, 50%);
  width: 170vmax;
  height: 170vmax;
  margin: -85vmax 0 0 -85vmax;
  border-radius: 50%;
  background: radial-gradient(circle,
    var(--pa, #ff5d9e) 0%,
    color-mix(in srgb, var(--pa, #ff5d9e) 45%, transparent) 26%,
    transparent 60%);
  transform: scale(0);
  opacity: 0;
}
.warp.is-on::before { animation: warpGrow 1.25s cubic-bezier(0.25, 0.85, 0.25, 1) forwards; }
@keyframes warpGrow {
  0% { transform: scale(0); opacity: 0; }
  22% { opacity: 1; }
  62% { transform: scale(1); opacity: 0.96; }
  100% { transform: scale(1.18); opacity: 0; }
}
.warp__lines {
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(from 0deg at var(--wx, 50%) var(--wy, 50%),
    rgba(255, 255, 255, 0.85) 0deg 0.3deg, transparent 0.3deg 3.4deg);
  -webkit-mask-image: radial-gradient(circle at var(--wx, 50%) var(--wy, 50%), transparent 5%, #000 20%, transparent 58%);
  mask-image: radial-gradient(circle at var(--wx, 50%) var(--wy, 50%), transparent 5%, #000 20%, transparent 58%);
  opacity: 0;
}
.warp.is-on .warp__lines { animation: warpLines 1.15s ease-out forwards; }
@keyframes warpLines {
  0% { opacity: 0; transform: scale(0.55) rotate(0deg); }
  32% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.95) rotate(30deg); }
}

/* ------------------------- قاب اصلی -------------
   سیاره یک صفحهٔ واقعی است: اسکرول سند، نه قاب داخلی. کانواس و
   نوار بالا و نقطه‌ها ثابت‌اند و محتوا روی هوا جریان دارد.
   توجه: style.css قفلِ قاب را روی html و body می‌گذارد (کهکشان یک
   برنامهٔ تمام‌صفحه است)؛ این‌جا همان قفل باز می‌شود. */
/* جای اسکرول‌بار رزرو می‌ماند تا باز و بسته شدن دیالوگ‌ها صفحه را نلرزاند */
html {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  /* نوار بالای سیاره ثابت (fixed) است؛ لنگرهای بخش‌ها («چشم‌اندازها»،
     «راه‌های دانلود»، …) باید زیرش بایستند، درست مثل صفحه‌های سرورساید. */
  scroll-padding-top: 96px;
}
@media (max-width: 740px) { html { scroll-padding-top: 128px; } }
body.is-planet {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: #05030b;
}
.planet {
  position: relative;
  z-index: 1;
  /* رنگ دوم همیشه از دل رنگ خودِ سیاره درمی‌آید تا ترکیب هم‌خانواده بماند.
     رنگ اصلی را سرور روی body می‌گذارد (به‌ازای هر بازی). */
  --pa: var(--accent, #7ac6ff);
  --pa2: color-mix(in srgb, var(--pa) 46%, #ffffff);
  --depth: 0;
}
/* لنگر پرش: بیرون از قاب نگه داشته می‌شود ولی با transform (نه
   مختصات منفی) تا در حالت راست‌به‌چپ پهنای اسکرول را زیاد نکند. */
.planet__skip {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  z-index: 30;
  padding: 12px 18px;
  color: #08050f;
  background: var(--pa);
  border-radius: 0 0 12px 0;
  transform: translateY(-140%);
}
.planet__skip:focus { transform: none; }

.planet__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.planet__haze {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  pointer-events: none;
  background:
    radial-gradient(140% 100% at 50% 20%, transparent 34%, rgba(2, 1, 6, 0.72) 100%),
    linear-gradient(to bottom, rgba(3, 1, 9, 0.62), transparent 22%, transparent 58%, rgba(2, 1, 7, 0.92));
  opacity: calc(0.55 + var(--depth) * 0.45);
  transition: opacity 0.3s linear;
}

/* ------------------------- نوار بالای سیاره ------------- */
.planet__bar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 1.7vw, 20px);
}
.planet__back,
.planet__depth,
.planet__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  font-size: 13px;
  color: var(--ink-dim);
  background: rgba(8, 5, 18, 0.5);
  border: 1px solid var(--edge);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.planet__back {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
}
.planet__back span { color: var(--pa); font-size: 15px; }
.planet__back:hover { color: var(--ink); border-color: var(--pa); transform: translateY(-2px); }
.planet__brand { font-weight: 700; color: var(--ink); }
.planet__brand-ring {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pa);
  box-shadow: 0 0 14px var(--pa);
}
.planet__depth { direction: rtl; }
.planet__depth-label { color: var(--ink-faint); font-size: 11px; }
.planet__depth b {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--pa);
  min-width: 3.5ch;
  text-align: center;
  text-shadow: 0 0 18px color-mix(in srgb, var(--pa) 60%, transparent);
}
.planet__depth-unit { color: var(--ink-faint); font-size: 11px; }

/* ------------------------- نقطه‌های بخش‌ها ------------- */
.planet__nav {
  position: fixed;
  z-index: 4;
  inset-inline-end: clamp(10px, 1.6vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dot {
  position: relative;
  width: 11px; height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--edge-hot);
  background: rgba(8, 5, 18, 0.55);
  cursor: pointer;
  transition: all 0.3s;
}
.dot:hover { border-color: var(--pa); }
.dot.is-active {
  background: var(--pa);
  border-color: var(--pa);
  box-shadow: 0 0 16px var(--pa);
  transform: scale(1.25);
}
.dot__label {
  position: absolute;
  inset-inline-end: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 5px 11px;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(8, 5, 18, 0.85);
  border: 1px solid var(--edge);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.dot:hover .dot__label { opacity: 1; transform: translateY(-50%); }

/* ------------------------- مسیر صفحه ------------- */
.planet__track {
  position: relative;
  z-index: 1;
  padding-top: 4px;
}

.psection {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) clamp(20px, 4vw, 54px);
  /* هالهٔ سرصفحه کمی بزرگ‌تر از قاب است؛ clip آن را می‌بُرد بی‌آنکه
     ظرف اسکرول بسازد (برخلاف hidden که محور دوم را auto می‌کند). */
  overflow-x: clip;
}
/* بخش‌ها بدون جاوااسکریپت هم دیده می‌شوند؛ فقط وقتی JS هست
   ورودشان نرم می‌شود. */
.psection {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.has-js .psection:not(.is-in) {
  opacity: 0;
  transform: translateY(46px);
}
.psection.is-in { opacity: 1; transform: none; }
.psection--hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 16vh; }

.psection__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.psection__title span {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  font-size: 16px;
  color: #08050f;
  background: linear-gradient(135deg, var(--pa), var(--pa2));
  border-radius: 12px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--pa) 40%, transparent);
}
.psection__lead { font-size: 14.5px; line-height: 2; color: var(--ink-dim); margin-bottom: 26px; max-width: 62ch; }
.psection__note { margin-top: 18px; font-size: 12px; line-height: 1.9; color: var(--ink-faint); }
.psection--download { text-align: center; }
.psection--download .psection__title { justify-content: center; }

/* ------------------------- قهرمان ------------- */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% 45%,
    color-mix(in srgb, var(--pa) 22%, transparent), transparent 70%);
  animation: heroPulse 9s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero__body { position: relative; max-width: 900px; }
.hero__kicker {
  display: inline-block;
  padding: 7px 15px;
  font-size: 12.5px;
  color: var(--pa);
  background: color-mix(in srgb, var(--pa) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pa) 40%, transparent);
  border-radius: 999px;
  margin-bottom: 20px;
  animation: rise 0.8s 0.05s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero__title {
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.hero__title .word { display: inline-block; animation: rise 0.9s both cubic-bezier(0.2, 0.9, 0.2, 1); }
@keyframes rise {
  from { opacity: 0; transform: translateY(38px) rotate(2deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero__tagline {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 2;
  color: var(--ink-dim);
  max-width: 60ch;
  border-inline-start: 3px solid var(--pa);
  padding-inline-start: 16px;
  animation: rise 0.9s 0.5s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
  animation: rise 0.9s 0.62s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 18px;
  background: rgba(8, 5, 18, 0.5);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero__stats b { font-size: 17px; color: var(--ink); }
.hero__stats span { font-size: 11px; color: var(--ink-faint); }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.9s 0.74s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero__cta .btn { flex: 0 0 auto; }
.hero__cta .btn--primary {
  background: linear-gradient(120deg, var(--pa), var(--pa2));
  color: #08050f;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--pa) 40%, transparent);
  padding-inline: 30px;
}
.hero__scroll {
  position: absolute;
  bottom: 34px;
  inset-inline-start: clamp(20px, 4vw, 54px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
}
.hero__scroll span {
  position: relative;
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--pa));
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: -30%;
  width: 100%; height: 30%;
  background: var(--pa);
  animation: fall 2.6s ease-in-out infinite;
}
@keyframes fall {
  0% { top: -30%; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ------------------------- گالری ------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.shot {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: rgba(8, 5, 18, 0.6);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.45s;
}
.shot canvas, .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: color-mix(in srgb, var(--pa) 65%, transparent);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in srgb, var(--pa) 35%, transparent);
}
.shot__cap {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  padding: 5px 11px;
  font-size: 11.5px;
  color: var(--ink);
  background: rgba(6, 3, 14, 0.72);
  border: 1px solid var(--edge);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.shot__tag {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  padding: 4px 10px;
  font-size: 10.5px;
  color: var(--pa);
  background: rgba(6, 3, 14, 0.7);
  border: 1px solid color-mix(in srgb, var(--pa) 40%, transparent);
  border-radius: 999px;
}

/* ------------------------- پخش‌کننده ------------- */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background: #05030c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.player__poster { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.player.is-soon .player__poster { filter: grayscale(0.35) brightness(0.6); }
.player__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px; height: 88px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #08050f;
  background: linear-gradient(135deg, var(--pa), var(--pa2));
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 0 color-mix(in srgb, var(--pa) 60%, transparent);
  animation: pulseRing 2.8s ease-out infinite;
  transition: transform 0.3s;
}
.player__play:hover { transform: scale(1.08); }
@keyframes pulseRing {
  0% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 0 color-mix(in srgb, var(--pa) 55%, transparent); }
  70% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 34px transparent; }
  100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 0 transparent; }
}
.player__frame { width: 100%; height: 100%; border: 0; display: block; }
.player__soon {
  position: absolute;
  inset: auto 0 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-dim);
}

/* ------------------------- درباره ------------- */
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px; }
.about__text p { font-size: 15px; line-height: 2.25; color: var(--ink-dim); margin-bottom: 16px; }
.features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.features.is-empty { display: none; }
.features li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.9; color: var(--ink-dim); }
.features__mark { color: var(--pa); font-size: 10px; padding-top: 5px; }
.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec dt { padding: 10px 13px; font-size: 12px; color: var(--ink-faint); background: rgba(255, 255, 255, 0.03); }
.spec dd { padding: 10px 13px; font-size: 12.5px; line-height: 1.8; background: rgba(8, 5, 18, 0.6); }

/* ------------------------- امتیاز ------------- */
.rate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.ring { position: relative; width: 190px; height: 190px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring__bg { stroke: rgba(255, 255, 255, 0.08); }
.ring__fg {
  stroke: var(--ring-color, var(--pa));
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--pa) 65%, transparent));
}
.ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ring__num b { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.ring__num span { font-size: 11.5px; color: var(--ink-faint); }
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; color: var(--ink-dim); }
.bar__head b { color: var(--ink); font-family: var(--mono); }
.bar__track { height: 7px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; }
.bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ------------------------- نظرها ------------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-bottom: 30px; }
.reviews__empty { font-size: 13.5px; color: var(--ink-faint); }
.review {
  padding: 18px 20px;
  background: rgba(8, 5, 18, 0.55);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s;
}
.review:hover { border-color: color-mix(in srgb, var(--pa) 45%, transparent); transform: translateY(-3px); }
.review__head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  font-size: 16px;
  font-weight: 700;
  color: #08050f;
  border-radius: 50%;
}
.review__who { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.review__who b { font-size: 13.5px; }
.review__meta { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--ink-faint); }
.review__mine {
  font-size: 10.5px;
  padding: 4px 9px;
  color: var(--pa);
  border: 1px solid color-mix(in srgb, var(--pa) 45%, transparent);
  border-radius: 999px;
}
.review__text { font-size: 13.5px; line-height: 2.1; color: var(--ink-dim); }

.stars { display: inline-flex; gap: 2px; }
.stars span { color: rgba(255, 255, 255, 0.2); font-size: 13px; }
.stars span.is-on { color: #ffcf5c; }

.stars__btn {
  padding: 0 2px;
  font-size: 24px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.stars__btn.is-on { color: #ffcf5c; text-shadow: 0 0 16px rgba(255, 207, 92, 0.6); }
.stars__btn:hover { transform: scale(1.1); }

.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(8, 5, 18, 0.45);
  border: 1px dashed color-mix(in srgb, var(--pa) 35%, transparent);
  border-radius: var(--r-lg);
}
.review-form__title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.review-form__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* .field در style.css زندگی می‌کند (همهٔ صفحه‌ها آن را می‌خوانند)؛
   این‌جا فقط چیزهای مخصوص سیاره می‌ماند. */
.review-form__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-form__foot .btn { flex: 0 0 auto; }
.review-form__foot .btn--primary {
  background: linear-gradient(120deg, var(--pa), var(--pa2));
  color: #08050f;
  padding-inline: 34px;
}
.review-form__label { font-size: 12px; color: var(--ink-faint); margin-inline-end: 4px; }
.review-form__hint { font-size: 11.5px; color: var(--ink-faint); }

/* ------------------------- دانلود ------------- */
.dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dl__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(8, 5, 18, 0.6);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.4s;
}
.dl__item:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--pa) 65%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.dl__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-size: 19px;
  color: #08050f;
  background: linear-gradient(135deg, var(--pa), var(--pa2));
  border-radius: 13px;
}
.dl__name { font-size: 15px; font-weight: 700; }
.dl__meta { font-size: 11.5px; color: var(--ink-faint); margin-inline-start: auto; }

.planet__foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 54px) 90px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ------------------------- گالری بزرگ ------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(14px, 3vw, 44px);
  background: rgba(3, 1, 8, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-on { opacity: 1; visibility: visible; }
.lightbox__frame { position: relative; max-width: min(1080px, 92vw); }
.lightbox__img {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--edge-hot);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.lightbox__cap {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-dim);
}
.lightbox__close,
.lightbox__nav {
  flex: none;
  display: grid;
  place-items: center;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--edge);
  cursor: pointer;
  transition: all 0.25s;
}
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 18px; width: 42px; height: 42px; font-size: 22px; border-radius: 50%; z-index: 2; }
.lightbox__nav { width: 54px; height: 54px; font-size: 26px; border-radius: 50%; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--pa); color: #08050f; }

/* ------------------------- واکنش‌گرا ------------- */
@media (max-width: 900px) {
  .planet__nav { display: none; }
  .about, .rate { grid-template-columns: 1fr; }
  .rate { gap: 26px; justify-items: center; }
  .bars { width: 100%; }
  .planet__depth-label { display: none; }
  .lightbox { flex-direction: column; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { inset-inline-start: 18px; }
  .lightbox__nav--next { inset-inline-end: 18px; }
}
@media (max-width: 560px) {
  .planet__brand { display: none; }
  .hero__stats li { padding: 10px 14px; }
  .dl__item { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .warp, .warp__lines, .hero__glow, .player__play, .hero__scroll span::after { animation: none !important; }
  .psection { transition-duration: 0.1s; }
}

/* ============================================================
   قطعه‌های صفحهٔ سرورساید
   ------------------------------------------------------------
   همان چیزهایی که PHP می‌سازد و جاوااسکریپت فقط روشنشان می‌کند:
   لینک فروشگاه‌ها، پرسش‌های پرتکرار، سیاره‌های دیگر و پاصفحه.
   ============================================================ */

/* ------------------------- لینک فروشگاه‌ها ------------- */
.dl__item--store { border-color: color-mix(in srgb, var(--store, var(--pa)) 42%, var(--edge)); }
.dl__item--store:hover {
  border-color: var(--store, var(--pa));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--store, var(--pa)) 35%, transparent);
}
.dl__item--store .dl__meta { white-space: nowrap; }
.dl__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--store, var(--pa)) 16%, rgba(8, 5, 18, 0.6));
  border: 1px solid color-mix(in srgb, var(--store, var(--pa)) 40%, transparent);
}
.dl__logo img { display: block; width: 30px; height: 30px; }
.dl__go { margin-inline-start: 4px; color: var(--ink-faint); font-size: 15px; }
.dl__item--store:hover .dl__go { color: var(--store, var(--pa)); }

/* بازی‌های منتشرنشده: کارت‌های بی‌لینک */
.dl__item.is-soon { cursor: default; opacity: 0.85; }
.dl__item.is-soon:hover { transform: none; }
.dl__item.is-soon .dl__icon { color: var(--ink); background: rgba(255, 255, 255, 0.07); }

/* ------------------------- پرسش‌های پرتکرار ------------- */
.pf { display: grid; gap: 9px; max-width: 78ch; }
.pf__i {
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: rgba(8, 5, 18, 0.5);
  overflow: hidden;
  transition: border-color 0.25s;
}
.pf__i[open] { border-color: color-mix(in srgb, var(--pa) 45%, transparent); }
.pf__i summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.pf__i summary::-webkit-details-marker { display: none; }
.pf__i summary i { font-style: normal; color: var(--pa); transition: transform 0.25s; }
.pf__i[open] summary i { transform: rotate(135deg); }
.pf__a { padding: 0 18px 16px; }
.pf__a p { margin: 0; font-size: 13.5px; line-height: 2.1; color: var(--ink-dim); }

/* ------------------------- سیاره‌های دیگر ------------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.pcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(8, 5, 18, 0.55);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.4s;
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--g, var(--pa)) 60%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.pcard__orb {
  display: grid;
  place-items: center;
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--g, var(--pa)) 45%, #ffffff), var(--g, var(--pa)) 72%);
  box-shadow: 0 0 26px color-mix(in srgb, var(--g, var(--pa)) 35%, transparent);
}
.pcard__orb img { border-radius: 50%; display: block; }
.pcard__glyph { font-size: 26px; }
.pcard__body { display: grid; gap: 4px; min-width: 0; }
.pcard__kicker { font-size: 11px; color: var(--ink-faint); }
.pcard__title { font-size: 14.5px; }
.pcard__tag { font-size: 12px; line-height: 1.9; color: var(--ink-dim); }
.pcard__go { margin-inline-start: auto; color: var(--g, var(--pa)); font-size: 15px; }

/* ------------------------- پاصفحهٔ سیاره ------------- */
.planet__foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 16px;
}
.planet__foot-links a { color: var(--ink-dim); text-decoration: none; font-size: 12.5px; }
.planet__foot-links a:hover { color: var(--pa); }
.planet__foot-note { max-width: 74ch; margin: 0 auto 12px; line-height: 2; }
.planet__foot-mark { display: flex; align-items: center; justify-content: center; gap: 8px; }
.planet__foot-mark span { color: var(--pa); }

/* ------------------------- پیام کوتاه صفحه ------------- */
.pl-toast {
  position: fixed;
  z-index: 60;
  inset-inline-start: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(8, 5, 18, 0.9);
  border: 1px solid var(--edge-hot);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.pl-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.pl-toast.is-ok { border-color: var(--pa); }

/* ------------------------- مهر تأیید بازی ------------- */
.soon-teaser {
  max-width: 62ch;
  margin: 0 auto 26px;
  padding: 22px 24px;
  text-align: center;
  background: rgba(8, 5, 18, 0.55);
  border: 1px dashed color-mix(in srgb, var(--pa) 38%, transparent);
  border-radius: var(--r-lg);
}
.soon-teaser p { margin: 0; font-size: 13.5px; line-height: 2.1; color: var(--ink-dim); }
.soon-teaser a { color: var(--pa); }

/* ------------------------- خروج از سیاره -------------
   قرینهٔ ورود: سطح سیاره کمی عقب می‌رود، نوار و نقطه‌ها محو
   می‌شوند و پرش نوری روی همه می‌نشیند تا کهکشان بیاید. */
html.is-leaving .planet__track {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.55s ease, transform 0.6s ease;
}
html.is-leaving .planet__canvas { opacity: 0.35; transition: opacity 0.6s ease; }
html.is-leaving .planet__bar,
html.is-leaving .planet__nav { opacity: 0; transition: opacity 0.35s ease; }
html.is-leaving .planet__skip { display: none; }

@media (max-width: 560px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard { padding: 14px; }
}

/* ============================================================
   امتیاز و نظر — نسخهٔ واقعی (سرور)
   ------------------------------------------------------------
   سه عدد جدا (سایت · کافه‌بازار · میانگین) + نمودار ستاره‌ها +
   رأی‌دادن با پنج ستاره + فرم نظری که به سرور می‌رود.
   ============================================================ */

.score-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  width: 100%;
}
.score-cards li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: rgba(8, 5, 18, 0.5);
}
.score-cards__k { font-size: 11.5px; color: var(--ink-faint); }
.score-cards li b { font-size: 19px; font-weight: 800; }
.score-cards li b i { font-size: 11.5px; font-weight: 400; font-style: normal; color: var(--ink-faint); }
.score-cards__n { font-size: 11px; color: var(--ink-faint); }

.vote {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--pa) 30%, transparent);
  border-radius: var(--r-lg);
  background: rgba(8, 5, 18, 0.45);
  display: grid;
  gap: 8px;
  justify-items: start;
}
.vote.is-busy { opacity: 0.7; }
.vote__t { font-size: 13.5px; font-weight: 700; margin: 0; }
.vote__hint { font-size: 11.5px; line-height: 1.95; color: var(--ink-faint); margin: 0; }
.vote__cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 0; }
.vote--guest { border-style: dashed; }

/* ستاره‌های قابل کلیک (رأی و فرم نظر) */
.stars--pick { display: inline-flex; gap: 4px; }
.stars__i {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.stars__i.is-on { color: #ffcf5c; text-shadow: 0 0 14px rgba(255, 207, 92, 0.55); }
.stars__i:hover { transform: scale(1.12); }

.psection__sub {
  font-size: 14px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--ink-dim);
}

/* نظرهای اعضا در برابر نظرهای فروشگاه */
.review--site {
  border-inline-start: 3px solid color-mix(in srgb, var(--pa) 55%, transparent);
}
.review--site.is-pending { opacity: 0.86; border-style: dashed; }
.review--store { opacity: 0.92; }
.review__avatar { font-size: 17px; }
.reviews--store .review { background: rgba(8, 5, 18, 0.42); }
.review__badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-faint);
  border: 1px solid var(--edge);
}
.review__badge--me { color: #0b0714; background: var(--pa); border-color: transparent; }
.review__chip {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: #ffd79a;
  border: 1px solid rgba(255, 203, 107, 0.35);
  background: rgba(255, 203, 107, 0.08);
}
.review__note { font-size: 11px; color: #ffd79a; }
.review-form--guest { text-align: center; }
.review-form--guest .review-form__foot { justify-content: center; }
.btn--tiny { font-size: 11.5px; padding: 6px 10px; }

/* ============================================================
   صفحهٔ «به‌زودی» — یک پردهٔ کامل، بدون اسکرول
   ============================================================ */

/* صفحهٔ «به‌زودی» یک پردهٔ تمام‌قد است (min-height پایین‌تر)، ولی
   اگر محتوایش از دید بیشتر شد، اسکرول آزاد می‌ماند — قفل‌کردن
   یعنی پرسش‌ها و سیاره‌های دیگر برای کاربر نادیدنی بمانند. */

.planet--soon .planet__track {
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 12vh, 120px) clamp(14px, 4vw, 40px) clamp(24px, 6vh, 60px);
}

.soon { width: 100%; max-width: 760px; }
.soon__core {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--pa) 30%, transparent);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(12, 7, 26, 0.72), rgba(8, 5, 18, 0.5));
  backdrop-filter: blur(14px);
}
.soon__glyph {
  font-size: clamp(40px, 8vw, 62px);
  line-height: 1;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--pa) 55%, transparent));
  animation: soonFloat 6s ease-in-out infinite;
}
@keyframes soonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.soon__kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-dim);
  margin: 0;
}
.soon__pill {
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #0b0714;
  background: linear-gradient(120deg, var(--pa), var(--pa2));
}
.soon__title {
  font-size: clamp(26px, 5.4vw, 44px);
  font-weight: 800;
  margin: 0;
  line-height: 1.4;
  background: linear-gradient(100deg, var(--ink), color-mix(in srgb, var(--pa) 80%, #ffffff 12%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.soon__lead { font-size: 13.5px; line-height: 2.15; color: var(--ink-dim); margin: 0; max-width: 56ch; }

.cd--hero { width: 100%; max-width: 520px; }
.cd__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd--open .cd__note { margin-top: 0; }
.cd--hero .cd__cell { padding: 12px 6px; }
.cd--hero .cd__cell b { font-size: clamp(20px, 4.6vw, 30px); }

.soon__notify { display: grid; gap: 8px; justify-items: center; width: 100%; max-width: 440px; margin-top: 6px; }
.soon__notify-t { font-size: 13px; font-weight: 700; margin: 0; }
.soon__notify-row { width: 100%; }
.soon__notify-row .field { width: 100%; }
.soon__notify-mail { direction: ltr; font-size: 13px; color: var(--pa); margin: 0; }
.soon__notify-hint { font-size: 11.5px; color: var(--ink-faint); margin: 0; }
.soon__trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.soon__more { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-height: 680px) {
  .planet--soon .planet__track { min-height: 0; padding-block: 84px 40px; }
}

/* ============================================================
   تم‌های سیاره — رنگ‌های کمکی هر تم
   ============================================================ */

body.is-planet.is-theme-meme { --th-a: #ff2d9b; --th-b: #23e0ff; }
body.is-planet.is-theme-camp { --th-a: #ffb463; --th-b: #58d8a0; }
body.is-planet.is-theme-romance { --th-a: #ff96c5; --th-b: #ffc98b; }
body.is-planet.is-theme-hack { --th-a: #58ffd0; --th-b: #7c6cff; }
body.is-planet.is-theme-space { --th-a: #9ec2ff; --th-b: #c79bff; }
body.is-planet.is-theme-gloom { --th-a: #9aa7b8; --th-b: #575f6d; }

body[data-theme]:not([data-theme="default"]) .planet__haze {
  background:
    radial-gradient(60% 40% at 70% 12%, color-mix(in srgb, var(--th-a, var(--pa)) 22%, transparent), transparent 70%),
    radial-gradient(50% 36% at 20% 30%, color-mix(in srgb, var(--th-b, var(--pa2)) 18%, transparent), transparent 72%);
}
body[data-theme]:not([data-theme="default"]) .psection__title span[aria-hidden="true"] {
  color: var(--th-a, var(--pa));
}
body.is-theme-hack .psection,
body.is-theme-camp .psection { border-color: color-mix(in srgb, var(--th-a, var(--pa)) 22%, transparent); }

/* ------------------------------------------------------------
   تم تاریک و غمگین (نازک‌دل) — سرد، مات و آرام.
   پالت این تم از planet_theme_palette() می‌آید، پس نئونِ رنگ بازی
   دیگر توی چشم نمی‌زند؛ این‌جا فقط مات‌کردن و سنگین‌کردن جوّ است.
   ------------------------------------------------------------ */
body.is-theme-gloom .psection { border-color: color-mix(in srgb, var(--th-a, var(--pa)) 20%, transparent); }
body.is-theme-gloom .planet__haze { opacity: 0.7; filter: saturate(0.35) brightness(0.9); }
body.is-theme-gloom .planet__depth,
body.is-theme-gloom .psection__title { color: color-mix(in srgb, var(--th-a, var(--pa)) 70%, #cfd6de); }
/* صحنه و هالهٔ زیر سیاره: بی‌رنگ و کم‌نور */
body.is-theme-gloom .planet__canvas { filter: saturate(0.45) brightness(0.84); }
body.is-theme-gloom .hero__glow { filter: saturate(0.25) brightness(0.7); }
/* دکمهٔ اصلی دیگر فریاد نمی‌زند */
body.is-theme-gloom .btn--primary {
  background: linear-gradient(180deg, #6f7b8b, #48505d);
  color: #eef2f7;
  box-shadow: 0 10px 30px rgba(20, 24, 30, 0.55);
}
/* سپر عنوان: مه‌آلود و کم‌کنتراست */
body.is-theme-gloom .hero__title,
body.is-theme-gloom .hero__tagline { text-shadow: 0 2px 24px rgba(6, 8, 11, 0.75); }

/* بخش زیرین صفحهٔ «به‌زودی»: پرسش‌ها + سیاره‌های دیگر */
.soon__extra {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .soon__extra { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}
.soon__extra-t {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink-dim);
}
.soon__faq .pf { gap: 8px; }
.soon__planets .pgrid { margin-top: 0; }

/* ============================================================
   بهینه‌سازی موبایل — صفحه‌های سیاره
   ------------------------------------------------------------
   کارت‌های شیشه‌ایِ روی بومِ زندهٔ سیاره: هر فریم باید پشتشان محو
   شود. روی گوشی شعاع محو کم می‌شود تا اسکرول روون بماند؛ ظاهر و
   چیدمان دست‌نخورده است و روی دسکتاپ هیچ‌چیز عوض نمی‌شود.
   ============================================================ */
@media (max-width: 900px) {
  .planet__brand,
  .hero__stats li,
  .soon__core { backdrop-filter: blur(9px) saturate(130%); -webkit-backdrop-filter: blur(9px) saturate(130%); }
  .shot__cap,
  .review,
  .lightbox,
  .pl-toast { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
