/* ==========================================================================
   MU Code — главная игры.
   Герой: пиксельная ночь во весь экран, логотип, факты, отсчёт, два действия.
   Ниже — плашки с цифрами из конфигов, расписание, честный магазин, топ,
   полоса студии в теме «иней».
   ========================================================================== */

.page-home .shell { padding: 0; max-width: none; }

/* --- Герой -------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(860px, calc(100vh - 102px)); min-height: min(860px, calc(100svh - 102px));
  display: flex; align-items: center;
  border-bottom: 4px solid var(--abyss);
}
.hero__sky {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/night-1x.png") center bottom / cover no-repeat;
  image-rendering: pixelated;
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(1, 11, 50, 0.72), rgba(1, 11, 50, 0.15) 70%, transparent);
}
.hero__inner {
  width: 100%; max-width: 980px; margin: 0 auto; padding: 56px 16px 72px;
  text-align: center;
}
.hero__kicker { margin-bottom: 18px; color: var(--ice); }
.hero__title { margin: 0 0 22px; line-height: 0; }
.hero__logo { width: min(620px, 92vw); height: auto; filter: drop-shadow(0 6px 0 rgba(1, 11, 50, 0.6)); }
.hero__lead { max-width: 40em; margin: 0 auto 24px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: var(--frost); text-wrap: pretty; }

.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.hero__chips li {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  padding: 8px 11px; color: var(--frost-2);
  background: rgba(1, 11, 50, 0.78); border: 1px solid var(--sapphire-deep);
}
.hero__chips b { color: var(--ice-bright); font-weight: 600; }

/* Отсчёт до открытия: сапфировые «кирпичи» с жёсткой тенью. */
.launch { margin: 0 auto 30px; }
.launch__label { font-family: var(--display); font-size: 18px; color: var(--frost); margin-bottom: 12px; }
.launch__label b { color: var(--ice); }
.launch__clock { display: inline-flex; gap: 12px; }
.launch__clock div {
  min-width: 78px; padding: 10px 8px 8px; background: var(--sapphire);
  border: 2px solid var(--abyss); box-shadow: 5px 5px 0 var(--abyss), inset 0 -4px 0 var(--sapphire-deep), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.launch__clock b { display: block; font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.launch__clock span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--frost); }
.live-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 224, 160, 0.25); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: mc-blink 1.6s steps(2) infinite; }
  @keyframes mc-blink { 50% { opacity: 0.35; } }
}

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mc-arrow { width: 16px; height: 16px; image-rendering: pixelated; }

/* --- Секции ------------------------------------------------------------- */
.sec { max-width: var(--shell); margin: 0 auto; padding: 72px var(--gutter) 8px; position: relative; z-index: 1; }
.sec__head { max-width: 46em; margin-bottom: 26px; }
.sec__title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; color: var(--heading); margin: 8px 0 10px; }
.sec__lead { color: var(--muted); font-size: 16px; }
.sec__more { margin-top: 18px; font-family: var(--display); font-size: 17px; }
.sec__more a { text-decoration: none; }
.sec__more a:hover { text-decoration: underline; }

/* Цифры сервера: плашки-«ячейки инвентаря». */
.record__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rec {
  position: relative; padding: 18px 18px 16px; background: var(--plate);
  border: 2px solid rgba(128, 137, 162, 0.45); box-shadow: 6px 6px 0 var(--abyss);
}
.rec::before { content: ""; position: absolute; left: -2px; top: -2px; width: 14px; height: 4px; background: var(--ice); }
.rec dd { margin: 0; }
.rec dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--frost-2); }
.rec__fig { margin: 8px 0 6px; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ice-bright); font-variant-numeric: tabular-nums; }
.rec__fig small { font-size: 18px; color: var(--frost-2); }
.rec__note { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Расписание и магазин рядом. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.sched { border: 2px solid rgba(128, 137, 162, 0.45); background: var(--plate); box-shadow: 6px 6px 0 var(--abyss); }
.sched li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.sched li:last-child { border-bottom: 0; }
.sched__t { font-family: var(--mono); font-size: 13.5px; color: var(--ice); white-space: nowrap; }
.sched__n { color: var(--blue-deep); text-align: right; }
.facts li { position: relative; padding: 0 0 14px 22px; color: var(--text); line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--sapphire); box-shadow: 2px 2px 0 var(--abyss); }
.facts b { color: var(--blue-deep); font-weight: 600; }

/* Топ ресетов. */
.top__list { max-width: 720px; border: 2px solid rgba(128, 137, 162, 0.45); background: var(--plate); box-shadow: 6px 6px 0 var(--abyss); }
.top__row { display: grid; grid-template-columns: 34px 40px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.top__row:last-child { border-bottom: 0; }
.top__pos { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--steel-3); }
.top__row:first-child .top__pos { color: var(--ice); }
.top__face { width: 32px; height: 32px; image-rendering: pixelated; }
.top__name a { color: var(--blue-deep); text-decoration: none; font-weight: 600; }
.top__cls { color: var(--muted); font-size: 13.5px; }
.top__fig { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ice-bright); font-variant-numeric: tabular-nums; }

/* Полоса студии — кусочек темы «иней» внутри ночи. */
.studio-band { margin-top: 88px; background: #eef5ff; border-top: 4px solid var(--abyss); border-bottom: 4px solid var(--abyss); position: relative; z-index: 1; }
.studio-band__inner { max-width: var(--shell); margin: 0 auto; padding: 44px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.studio-band__tag { color: #021ab5; }
.studio-band__title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); color: #0b1437; margin: 8px 0 8px; }
.studio-band__text { color: #1c2650; max-width: 40em; }
.studio-band__btn { flex: none; border-color: #0b1437; box-shadow: 4px 4px 0 #0b1437, inset 0 -3px 0 var(--sapphire-deep); }

/* --- Телефон ------------------------------------------------------------ */
@media (max-width: 1000px) { .record__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hero__inner { padding: 40px 16px 52px; }
  .launch__clock { gap: 8px; }
  .launch__clock div { min-width: 0; flex: 1; padding: 8px 4px 6px; }
  .launch__clock b { font-size: 28px; }
  .hero__cta .mc-btn { flex: 1 1 100%; }
  .sec { padding: 56px 16px 4px; }
  .rec { padding: 14px 12px 12px; }
  .rec__fig { font-size: 28px; }
  .rec__note { font-size: 13px; }
  .top__row { grid-template-columns: 26px 32px 1fr auto; }
  .top__cls { display: none; }
  .studio-band__inner { flex-direction: column; align-items: flex-start; padding: 36px 16px; }
}
@media (max-width: 340px) { .record__grid { grid-template-columns: 1fr; } }
