/* =============================================================================
   ESMESTRA — ЕДИНЫЙ ФАЙЛ СТИЛЕЙ САЙТА
   =============================================================================
   Здесь собраны все общие переменные (цвета, шрифты, тени, анимации) и
   переиспользуемые компоненты (шапка/меню, карточки, футер, тосты и т.д.),
   которые встречаются на нескольких страницах сайта.

   Хотите поменять акцентный цвет, шрифт или скругления сразу везде?
   Меняйте значения в блоке ":root" ниже — и это применится ко всему сайту.

   Стили, уникальные только для одной конкретной страницы (например, только
   для страницы "О нас" или только для esWeather), лежат в отдельных
   небольших файлах: assets/css/pages/<имя-страницы>.css
   Они подключаются на странице ПОСЛЕ этого файла и могут донастраивать
   отдельные детали, не трогая общую логику.
   ============================================================================= */


/* ============================== 1. ПЕРЕМЕННЫЕ ============================== */
:root {
  /* --- Базовые цвета --- */
  --bg-base: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-ruby: #f43f5e;

  /* --- Стеклянный ("glass") эффект --- */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-border-subtle: rgba(226, 232, 240, 0.8);
  --glass-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.06),
                  inset 0 1px 2px 0 rgba(255, 255, 255, 1);

  /* --- Шрифты --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Кривые анимации --- */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.45, 0.64, 1); /* "яблочный" эластичный отскок */

  /* --- Цвета статусов (страница /status) --- */
  --status-online-bg: rgba(34, 197, 94, 0.1);
  --status-online-text: #15803d;
  --status-online-border: rgba(34, 197, 94, 0.25);

  --status-maint-bg: rgba(234, 179, 8, 0.1);
  --status-maint-text: #a16207;
  --status-maint-border: rgba(234, 179, 8, 0.25);

  --status-offline-bg: rgba(239, 68, 68, 0.1);
  --status-offline-text: #b91c1c;
  --status-offline-border: rgba(239, 68, 68, 0.25);
}


/* ============================== 2. СБРОС И БАЗА ============================== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Отступ сверху под фиксированную шапку — нужен на всех "контентных"
   страницах (не на страницах с полноэкранным hero-блоком вроде main.html) */
body.has-fixed-header {
  padding-top: 90px;
}


/* ============================== 3. ФОНОВЫЕ "ЖИДКИЕ" БЛОБЫ ============================== */
.liquid-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(100px);
  opacity: 0.45; animation: floatBlob 20s ease-in-out infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(226, 232, 240, 0.85) 0%, transparent 70%); }
.blob-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(203, 213, 225, 0.65) 0%, transparent 70%); }

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.05); }
}


/* ============================== 4. ШАПКА И "PILL" МЕНЮ ============================== */
.header-wrapper {
  position: fixed; top: 16px; left: 0; right: 0;
  z-index: 1000; display: flex; justify-content: center;
  padding: 0 16px; pointer-events: none;
}

.header {
  position: relative;
  pointer-events: auto;
  width: 100%; max-width: 1100px;
  padding: 11px 24px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,1);
  display: flex; align-items: center; justify-content: space-between;
}

.header .logo {
  display: flex; align-items: center; text-decoration: none; cursor: pointer;
}

.header .logo-img {
  height: 40px; width: auto; object-fit: contain;
}

/* ONE SINGLE MONOLITHIC MORPHING GLASS PILL */
.morphing-glass-pill {
  position: absolute;
  top: 50%; right: 20px;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06), inset 0 1px 2px rgba(255,255,255,1);
  overflow: hidden;
  cursor: pointer;
  z-index: 1005;
  transform-origin: center right;

  transition: width 0.52s var(--ease-elastic),
              height 0.52s var(--ease-elastic),
              border-radius 0.52s var(--ease-elastic),
              top 0.52s var(--ease-elastic),
              right 0.52s var(--ease-elastic),
              transform 0.35s var(--ease-spring),
              box-shadow 0.75s ease-in-out,
              background 0.75s ease-in-out,
              border-color 0.75s ease-in-out;
}

.morphing-glass-pill:not(.active):hover {
  box-shadow: 0 0 35px rgba(255, 255, 255, 1), 0 8px 25px rgba(15, 23, 42, 0.12);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.98);
}

/* EXPANDED MENU STATE — высота рассчитана на 7 пунктов меню
   (Главная, esPhones Вики, esWeather, Статус, О нас, Документация, Блог) + подменю */
.morphing-glass-pill.active {
  top: -2px; right: -2px;
  transform: translateY(0) scale(1) !important;
  width: 200px;
  height: 340px;
  border-radius: 28px;
  cursor: default;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 30px 80px -10px rgba(15, 23, 42, 0.22), inset 0 1px 2px rgba(255,255,255,1);
}

/* SUBMENU DOWNWARD EXPANSION — + блок "Подробнее о:" */
.morphing-glass-pill.active.submenu-open {
  height: 495px;
}

/* TOP ACTION BUTTONS (PLUS + CLOSE X) */
.pill-header-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  padding: 0 8px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1010;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.morphing-glass-pill.active .pill-header-bar {
  opacity: 1; pointer-events: auto;
}

.plus-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #64748b;
  cursor: pointer;
  transition: transform 0.45s var(--ease-elastic), color 0.3s ease, background 0.3s ease;
  margin-left: 2px;
}

.plus-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
  transform: scale(1.1);
}

.morphing-glass-pill.submenu-open .plus-btn {
  transform: rotate(45deg);
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}

/* TRIGGER ICON (3 STRIPES / X CROSS) */
.pill-trigger {
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4.5px; cursor: pointer;
  z-index: 1010;
}

.pill-trigger span {
  width: 17px; height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: transform 0.45s var(--ease-elastic), opacity 0.3s ease;
}

.morphing-glass-pill.active .pill-trigger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.morphing-glass-pill.active .pill-trigger span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.morphing-glass-pill.active .pill-trigger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* INNER MENU LINKS */
.pill-menu-links {
  padding: 44px 8px 8px 8px;
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.morphing-glass-pill.active .pill-menu-links {
  opacity: 1; pointer-events: auto;
}

.pill-menu-links a {
  padding: 7.5px 14px;
  border-radius: 14px;
  font-size: 14.5px; font-weight: 700;
  color: #0f172a; text-decoration: none;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(-12px) scale(0.92);
  transition: opacity 0.45s var(--ease-elastic),
              filter 0.45s var(--ease-elastic),
              transform 0.45s var(--ease-elastic),
              background 0.2s ease;
}

.pill-menu-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(4px) scale(1);
}

.morphing-glass-pill.active .pill-menu-links a {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

.morphing-glass-pill.active .pill-menu-links a:nth-child(1) { transition-delay: 0.05s; }
.morphing-glass-pill.active .pill-menu-links a:nth-child(2) { transition-delay: 0.08s; }
.morphing-glass-pill.active .pill-menu-links a:nth-child(3) { transition-delay: 0.11s; }
.morphing-glass-pill.active .pill-menu-links a:nth-child(4) { transition-delay: 0.14s; }
.morphing-glass-pill.active .pill-menu-links a:nth-child(5) { transition-delay: 0.17s; }
.morphing-glass-pill.active .pill-menu-links a:nth-child(6) { transition-delay: 0.20s; }
.morphing-glass-pill.active .pill-menu-links a:nth-child(7) { transition-delay: 0.23s; }

/* ВЫЕЗЖАЮЩЕЕ СУБ-МЕНЮ "ПОДРОБНЕЕ О:" */
.pill-submenu-content {
  margin-top: 4px;
  padding-top: 4px;
  border-top: none;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.45s var(--ease-elastic);
}

.morphing-glass-pill.submenu-open .pill-submenu-content {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
  pointer-events: auto;
}

.submenu-heading {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 4px 14px;
}

.pill-submenu-content a {
  padding: 6.5px 14px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 700;
  color: #0f172a; text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}

.pill-submenu-content a:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(4px);
}


/* ============================== 5. КОНТЕНТНАЯ СЕТКА ============================== */
.main {
  max-width: 1100px; margin: 0 auto;
  padding: 30px 24px 80px 24px;
}

.section-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900; letter-spacing: -0.035em;
  color: var(--text-main); margin-bottom: 6px; text-align: left;
}

.section-subtitle {
  font-size: 15.5px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 32px; text-align: left;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }


/* ============================== 6. СТЕКЛЯННЫЕ КАРТОЧКИ (GLASS CARD) ============================== */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border-radius: 30px; border: 1px solid var(--glass-border);
  padding: 36px; box-shadow: var(--glass-shadow);
  transition: transform 0.3s var(--ease-spring),
              box-shadow 0.35s ease,
              background 0.35s ease;
  width: 100%; margin-bottom: 24px;
  overflow: hidden;
}

.glass-card::before {
  content: ''; position: absolute;
  top: var(--mouse-y, -100px); left: var(--mouse-x, -100px);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
}
.glass-card:hover::before { opacity: 1; }

.glass-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  border-color: #ffffff;
  box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.1);
}

.glass-card h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-main); margin-bottom: 12px;
}

.glass-card h4 {
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text-main); margin: 16px 0 8px 0;
}

.glass-card p, .glass-card li {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  line-height: 1.7;
}

.glass-card ul, .glass-card ol {
  margin-top: 8px; padding-left: 20px;
}
.glass-card li {
  font-size: 14.5px; font-weight: 600; color: var(--text-main);
  margin-bottom: 6px;
}

.wiki-badge-date {
  display: inline-block;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-main); font-weight: 800; font-size: 12.5px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}


/* ============================== 7. ПАСХАЛКА "СЕКРЕТНАЯ ДВЕРЬ" ============================== */
/* Используется на нескольких страницах (esCraft, esPhones, esWeather):
   долистав до конца страницы, можно найти спрятанную дверь. */
.running-chicken {
  position: fixed;
  bottom: 25px;
  right: -60px;
  font-size: 38px;
  pointer-events: none;
  z-index: 9998;
  animation: chickenRun 2.2s linear forwards;
}

@keyframes chickenRun {
  0% { right: -60px; transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(-10deg); }
  50% { transform: translateY(0) rotate(10deg); }
  75% { transform: translateY(-10px) rotate(-5deg); }
  100% { right: 105vw; transform: translateY(0) rotate(0deg); }
}

.secret-door-wrapper {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.8s ease, max-height 0.8s var(--ease-elastic);
  margin-top: 10px;
}

.secret-door-wrapper.revealed {
  opacity: 1;
  max-height: 100px;
}

.secret-door-btn {
  font-size: 38px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

.secret-door-btn:hover {
  transform: scale(1.25) rotate(-8deg);
}

.homer-banner {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 13.5px; font-weight: 700;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.5s var(--ease-elastic);
  white-space: nowrap;
}
.homer-banner.show {
  transform: translateX(-50%) translateY(0);
}


/* ============================== 8. КНОПКИ, ЧИПЫ, БЕЙДЖИ ============================== */
.minimal-socials-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center;
  margin-bottom: 12px;
}

.social-chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  color: var(--text-main);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; transition: all 0.25s var(--ease-spring);
  backdrop-filter: blur(10px);
}

.social-chip:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.18);
}

.social-chip:active { transform: scale(0.96); }

.custom-copy-svg {
  width: 14px; height: 14px;
  stroke: #94a3b8; fill: none;
  transition: stroke 0.2s ease;
}
.social-chip:hover .custom-copy-svg { stroke: #0f172a; }

.cmd-badge {
  background: rgba(15, 23, 42, 0.08);
  padding: 1px 6px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px;
}

.cmd-tag {
  display: inline-block;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text-main);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  padding: 2px 10px; border-radius: 8px;
}

.badge-plain {
  display: inline-flex; align-items: center;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-main); font-weight: 800; font-size: 12px;
  padding: 3px 11px; border-radius: 100px;
}

.cmd-block {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cmd-block:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateX(2px);
}
.cmd-block code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-ruby);
}

.play-btn-card {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000000; color: #ffffff;
  padding: 12px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 800; text-decoration: none;
  margin-top: 16px; transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.play-btn-card:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}


/* ============================== 9. УВЕДОМЛЕНИЕ (TOAST) ============================== */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: rgba(15, 23, 42, 0.92); color: #fff;
  padding: 14px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
  backdrop-filter: blur(20px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transform: translateY(100px) scale(0.9); opacity: 0;
  transition: all 0.4s var(--ease-spring); z-index: 9999;
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }


/* ============================== 10. ФУТЕР ============================== */
.footer {
  text-align: center; margin-top: 80px; padding-top: 30px;
  padding-bottom: 40px;
  border-top: 1px solid var(--glass-border-subtle);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.footer-logo-img { height: 38px; width: auto; object-fit: contain; }
.footer-rights-box { display: flex; flex-direction: column; gap: 3px; }
.footer-rights-text { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.krsk-time { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-main); opacity: 0.8; }
.footer-credits { font-size: 11px; font-weight: 700; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.5px; }


/* ============================== 11. АНИМИРОВАННЫЕ ТЕЛЕФОНЫ В ФУТЕРЕ ============================== */
.phones-interactive-bar {
  display: flex; gap: 18px;
  justify-content: center; align-items: center;
  margin-top: 4px; min-height: 36px;
}

.phone-item {
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease-spring);
  animation: floatIdle 3s ease-in-out infinite alternate;
  color: #475569;
  font-size: 26px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06));
}

.phone-item:hover {
  transform: scale(1.25) translateY(-4px);
  color: #0f172a;
}

.phone-vector-svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.phone-item.falling {
  pointer-events: none;
  animation: dropPhysics 0.75s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
}
.phone-item.spawning { animation: kf_pageauth_popSpawn 0.45s var(--ease-elastic) forwards; }

@keyframes floatIdle {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(6deg); }
}
@keyframes dropPhysics {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  30% { transform: translateY(-15px) rotate(-15deg) scale(1.15); opacity: 1; }
  100% { transform: translateY(130px) rotate(360deg) scale(0.3); opacity: 0; }
}
@keyframes popSpawn {
  0% { transform: scale(0) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}


/* ============================== 12. УТИЛИТЫ ОТСТУПОВ ============================== */
.section-gap { margin-top: 60px; }
.mt-10 { margin-top: 10px; }


/* ============================== 13. АДАПТИВ (БАЗОВЫЙ) ============================== */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .main { padding: 30px 16px 40px 16px; }
  .glass-card { padding: 24px 20px; }
  .phones-interactive-bar { gap: 14px; }
}



/* ===== SCOPED: page-main ===== */
body.page-main /* =============================================================================
   Стили, body.page-main уникальные только для главной страницы (main.html)
   Общие вещи (шапка, body.page-main карточки, body.page-main футер...) лежат в assets/css/style.css
   ============================================================================= */

html {
  scroll-snap-type: y mandatory;
}
body.page-main /* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  text-align: center; padding: 0 20px;
  scroll-snap-align: start; scroll-snap-stop: always;

  background:
    url('../../hero-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg, #1d030a 0%, #3d0618 50%, #0d0105 100%);
}
body.page-main /* OPTICAL GLASS PRISM LENS */
.prism-lens {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3; top: 0; left: 0;
  transform: translate3d(-50%, -50%, 0);
  backdrop-filter: blur(8px) brightness(1.22) contrast(1.18) hue-rotate(-12deg);
  -webkit-backdrop-filter: blur(8px) brightness(1.22) contrast(1.18) hue-rotate(-12deg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 60px rgba(255,255,255,0.12), inset 0 0 30px rgba(255,255,255,0.25);
  opacity: 0; transition: opacity 0.4s ease;
  will-change: transform, left, top;
}
body.page-main .hero-section:hover .prism-lens { opacity: 1; }
body.page-main .hero-content {
  position: relative; z-index: 5;
  max-width: 1050px; width: 100%; padding: 0 10px;
}
body.page-main .hero-title {
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.1; color: #ffffff !important;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
}
body.page-main .polarity-text {
  display: inline-block;
  text-transform: uppercase;
  font-style: italic; font-weight: 900;
  transform: skewX(-24deg);
  margin-left: 6px; letter-spacing: 0.02em;
}
body.page-main /* ===== MAIN CONTENT (переопределяем базовые отступы/заголовок из style.css, body.page-main потому что на главной странице несколько секций, body.page-main а не одна) ===== */
.main {
  padding: 80px 24px 60px 24px;
  scroll-snap-align: start;
}
body.page-main .section-title {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
body.page-main section#whats-new, body.page-main section#about-esphones, body.page-main section#yard {
  scroll-snap-align: start;
}
@media (max-width: 900px) {body.page-main .polarity-text { transform: skewX(-16deg); margin-left: 2px; }
body.page-main .prism-lens { width: 240px; height: 240px; }}


/* ===== SCOPED: page-esphones ===== */
body.page-esphones /* ===== RESET & CORE STYLES ===== */
    *, body.page-esphones *::before, body.page-esphones *::after {
      margin: 0; padding: 0;
      box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
body.page-esphones {
      --bg-base: #f8fafc;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --accent-ruby: #f43f5e;
      --glass-bg: rgba(255, 255, 255, 0.78);
      --glass-border: rgba(255, 255, 255, 0.95);
      --glass-border-subtle: rgba(226, 232, 240, 0.8);
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
      
      /* APPLE ELASTIC SPRING BOUNCE CURVE */
      --ease-elastic: cubic-bezier(0.34, 1.45, 0.64, 1);
    }
html.page-esphones {
      scroll-behavior: smooth;
      background-color: var(--bg-base);
      color: var(--text-main);
      font-family: var(--font-sans);
    }
body.page-esphones {
      min-height: 100vh;
      min-height: 100dvh;
      overflow-x: hidden;
      line-height: 1.6;
      padding-top: 90px;
    }
body.page-esphones /* AMBIENT LIGHT LIQUID BLOBS */
    .liquid-bg {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: -1; pointer-events: none; overflow: hidden;
    }
body.page-esphones .blob {
      position: absolute; border-radius: 50%; filter: blur(100px);
      opacity: 0.45; animation: kf_page-esphones_floatBlob 20s ease-in-out infinite alternate;
    }
body.page-esphones .blob-1 { top: -10%; left: -10%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(226, 232, 240, 0.85) 0%, transparent 70%); }
body.page-esphones .blob-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(203, 213, 225, 0.65) 0%, transparent 70%); }
@keyframes kf_page-esphones_floatBlob {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(-30px, 40px) scale(1.05); }
    }
body.page-esphones /* ===== HEADER ===== */
    .header-wrapper {
      position: fixed; top: 16px; left: 0; right: 0;
      z-index: 1000; display: flex; justify-content: center;
      padding: 0 16px; pointer-events: none;
    }
body.page-esphones .header {
      position: relative;
      pointer-events: auto;
      width: 100%; max-width: 1100px; 
      padding: 11px 24px;
      background: rgba(255, 255, 255, 0.74);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      border-radius: 100px;
      border: 1px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,1);
      display: flex; align-items: center; justify-content: space-between;
    }
body.page-esphones .header .logo {
      display: flex; align-items: center; text-decoration: none; cursor: pointer;
    }
body.page-esphones .header .logo-img {
      height: 40px; width: auto; object-fit: contain;
    }
body.page-esphones /* ===== MAIN CONTENT ===== */
    .main {
      max-width: 1100px; margin: 0 auto;
      padding: 30px 24px 80px 24px;
    }
body.page-esphones .section-title {
      font-size: clamp(30px, 5vw, 46px);
      font-weight: 900; letter-spacing: -0.035em;
      color: var(--text-main); margin-bottom: 6px; text-align: left;
    }
body.page-esphones .section-subtitle {
      font-size: 15.5px; font-weight: 600;
      color: var(--text-muted); margin-bottom: 32px; text-align: left;
    }
body.page-esphones /* ===== GLASS CARDS ===== */
    .glass-card {
      position: relative;
      background: var(--glass-bg);
      backdrop-filter: blur(32px) saturate(210%);
      -webkit-backdrop-filter: blur(32px) saturate(210%);
      border-radius: 30px; border: 1px solid var(--glass-border);
      padding: 36px; box-shadow: var(--glass-shadow);
      transition: transform 0.3s var(--ease-spring),
                  box-shadow 0.35s ease,
                  background 0.35s ease;
      width: 100%; margin-bottom: 24px;
      overflow: hidden;
    }
body.page-esphones .glass-card::before {
      content: ''; position: absolute;
      top: var(--mouse-y, -100px); left: var(--mouse-x, -100px);
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
      transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
      transition: opacity 0.3s ease;
    }
body.page-esphones .glass-card:hover::before { opacity: 1; }
body.page-esphones .glass-card:hover {
      transform: translateY(-4px);
      background: rgba(255, 255, 255, 0.95);
      border-color: #ffffff;
      box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.1);
    }
body.page-esphones .glass-card h3 {
      font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
      color: var(--text-main); margin-bottom: 12px;
    }
body.page-esphones .glass-card h4 {
      font-size: 16px; font-weight: 800;
      margin: 16px 0 8px 0; color: var(--text-main);
      letter-spacing: -0.01em;
    }
body.page-esphones .glass-card p, body.page-esphones .glass-card li {
      font-size: 15px; font-weight: 500; color: var(--text-muted);
      line-height: 1.7;
    }
body.page-esphones .glass-card ul {
      margin-top: 8px; padding-left: 20px;
    }
body.page-esphones .glass-card li {
      font-size: 14.5px; font-weight: 600; color: var(--text-main);
      margin-bottom: 6px;
    }
body.page-esphones .cmd-tag {
      background: rgba(15, 23, 42, 0.06);
      border: 1px solid rgba(15, 23, 42, 0.1);
      padding: 2px 7px; border-radius: 6px;
      font-family: var(--font-mono); font-size: 12.5px;
      color: var(--text-main); font-weight: 700;
    }
body.page-esphones .badge-plain {
      display: inline-block;
      background: rgba(15, 23, 42, 0.05);
      border: 1px solid rgba(15, 23, 42, 0.1);
      padding: 3px 9px; border-radius: 6px;
      font-family: var(--font-mono); font-size: 12px;
      font-weight: 700; color: var(--text-main);
      margin: 2px 2px;
    }
body.page-esphones /* ===== EASTER EGG: HOMER CHICKEN BANNER ===== */
    .homer-banner {
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%) scale(0.85);
      background: rgba(15, 23, 42, 0.93);
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.35);
      box-shadow: 0 25px 60px rgba(0,0,0,0.35);
      padding: 22px 42px;
      border-radius: 100px;
      font-size: clamp(20px, 4vw, 28px);
      font-weight: 900;
      letter-spacing: -0.02em;
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      opacity: 0;
      pointer-events: none;
      transition: all 0.5s var(--ease-elastic);
      z-index: 10000;
      white-space: nowrap;
    }
body.page-esphones .homer-banner.show {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
body.page-esphones /* RUNNING CHICKEN ANIMATION */
    .running-chicken {
      position: fixed;
      bottom: 25px;
      right: -60px;
      font-size: 38px;
      pointer-events: none;
      z-index: 9998;
      animation: kf_page-esphones_chickenRun 2.2s linear forwards;
    }
@keyframes kf_page-esphones_chickenRun {
      0% { right: -60px; transform: translateY(0) rotate(0deg); }
      25% { transform: translateY(-12px) rotate(-10deg); }
      50% { transform: translateY(0) rotate(10deg); }
      75% { transform: translateY(-10px) rotate(-5deg); }
      100% { right: 105vw; transform: translateY(0) rotate(0deg); }
    }
body.page-esphones /* SECRET DOOR AT VERY BOTTOM */
    .secret-door-wrapper {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: opacity 0.8s ease, max-height 0.8s var(--ease-elastic);
      margin-top: 10px;
    }
body.page-esphones .secret-door-wrapper.revealed {
      opacity: 1;
      max-height: 100px;
    }
body.page-esphones .secret-door-btn {
      font-size: 38px;
      cursor: pointer;
      display: inline-block;
      transition: transform 0.3s var(--ease-spring);
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    }
body.page-esphones .secret-door-btn:hover {
      transform: scale(1.25) rotate(-8deg);
    }
body.page-esphones /* ===== ULTRA-MINIMAL SOCIAL CHIPS ===== */
    .minimal-socials-row {
      display: flex; flex-wrap: wrap; gap: 10px;
      justify-content: center; align-items: center;
      margin-bottom: 12px;
    }
body.page-esphones .social-chip {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid var(--glass-border-subtle);
      border-radius: 100px;
      padding: 6px 14px;
      font-family: var(--font-sans);
      font-size: 13px; font-weight: 700;
      color: var(--text-main);
      display: inline-flex; align-items: center; gap: 6px;
      cursor: pointer; transition: all 0.25s var(--ease-spring);
      backdrop-filter: blur(10px);
    }
body.page-esphones .social-chip:hover {
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
      border-color: rgba(15, 23, 42, 0.18);
    }
body.page-esphones .social-chip:active { transform: scale(0.96); }
body.page-esphones .custom-copy-svg {
      width: 14px; height: 14px;
      stroke: #94a3b8; fill: none;
      transition: stroke 0.2s ease;
    }
body.page-esphones .social-chip:hover .custom-copy-svg { stroke: #0f172a; }
body.page-esphones /* ===== TOAST NOTIFICATION ===== */
    .toast {
      position: fixed; bottom: 28px; right: 28px;
      background: rgba(15, 23, 42, 0.92); color: #fff;
      padding: 14px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
      backdrop-filter: blur(20px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
      transform: translateY(100px) scale(0.9); opacity: 0;
      transition: all 0.4s var(--ease-spring); z-index: 9999;
    }
body.page-esphones .toast.show { transform: translateY(0) scale(1); opacity: 1; }
body.page-esphones /* ===== FOOTER ===== */
    .footer {
      text-align: center; margin-top: 80px; padding-top: 30px;
      padding-bottom: 40px;
      border-top: 1px solid var(--glass-border-subtle);
      display: flex; flex-direction: column; align-items: center; gap: 14px;
    }
body.page-esphones .footer-logo-img { height: 38px; width: auto; object-fit: contain; }
body.page-esphones .footer-rights-box { display: flex; flex-direction: column; gap: 3px; }
body.page-esphones .footer-rights-text { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
body.page-esphones .krsk-time { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-main); opacity: 0.8; }
body.page-esphones .footer-credits { font-size: 11px; font-weight: 700; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.5px; }
body.page-esphones /* VECTOR SVG FALLING PHONES AT THE VERY BOTTOM */
    .phones-interactive-bar {
      display: flex; gap: 18px;
      justify-content: center; align-items: center;
      margin-top: 4px; min-height: 36px;
    }
body.page-esphones .phone-item {
      cursor: pointer;
      display: inline-flex;
      align-items: center; justify-content: center;
      transition: transform 0.25s var(--ease-spring);
      animation: kf_page-esphones_floatIdle 3s ease-in-out infinite alternate;
      color: #475569;
    }
body.page-esphones .phone-item:hover {
      transform: scale(1.25) translateY(-3px);
      color: #0f172a;
    }
body.page-esphones .phone-vector-svg {
      width: 22px; height: 22px;
      stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    }
body.page-esphones .phone-item.falling {
      pointer-events: none;
      animation: kf_page-esphones_dropPhysics 0.75s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
    }
body.page-esphones .phone-item.spawning { animation: kf_page-esphones_popSpawn 0.45s var(--ease-elastic) forwards; }
@keyframes kf_page-esphones_floatIdle {
      0% { transform: translateY(0) rotate(0deg); }
      100% { transform: translateY(-6px) rotate(6deg); }
    }
@keyframes kf_page-esphones_dropPhysics {
      0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
      30% { transform: translateY(-12px) rotate(-15deg) scale(1.15); opacity: 1; }
      100% { transform: translateY(130px) rotate(360deg) scale(0.3); opacity: 0; }
    }
@keyframes kf_page-esphones_popSpawn {
      0% { transform: scale(0) translateY(8px); opacity: 0; }
      100% { transform: scale(1) translateY(0); opacity: 1; }
    }
@media (max-width: 900px) {body.page-esphones .main { padding: 30px 16px 40px 16px; }
body.page-esphones .glass-card { padding: 24px 20px; }
body.page-esphones .phones-interactive-bar { gap: 14px; }}

body.page-esphones .intro-lead { font-size: 17px; line-height: 1.7; font-weight: 500; color: var(--text-main); }
body.page-esphones .rarity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
body.page-esphones .rarity-item { background: rgba(15,23,42,0.035); border: 1px solid rgba(15,23,42,0.08); border-radius: 14px; padding: 12px 14px; text-align: center; }
body.page-esphones .rarity-item .rr-name { font-weight: 800; font-size: 13.5px; color: var(--text-main); display: block; }
body.page-esphones .rarity-item .rr-meta { font-size: 11.5px; color: var(--text-muted); font-weight: 600; display: block; margin-top: 4px; }
body.page-esphones .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
body.page-esphones .cta-row .play-btn-card { margin-top: 0; }
@media (max-width: 900px) { body.page-esphones .rarity-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { body.page-esphones .rarity-grid { grid-template-columns: repeat(2, 1fr); } }


/* ===== SCOPED: page-about ===== */
body.page-about /* ===== RESET & CORE STYLES ===== */
    *, body.page-about *::before, body.page-about *::after {
      margin: 0; padding: 0;
      box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
body.page-about {
      --bg-base: #f8fafc;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --glass-bg: rgba(255, 255, 255, 0.78);
      --glass-border: rgba(255, 255, 255, 0.95);
      --glass-border-subtle: rgba(226, 232, 240, 0.8);
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
      
      /* APPLE ELASTIC SPRING BOUNCE CURVE */
      --ease-elastic: cubic-bezier(0.34, 1.45, 0.64, 1);
    }
html.page-about {
      scroll-behavior: smooth;
      background-color: var(--bg-base);
      color: var(--text-main);
      font-family: var(--font-sans);
    }
body.page-about {
      min-height: 100vh;
      min-height: 100dvh;
      overflow-x: hidden;
      line-height: 1.6;
      padding-top: 90px;
    }
body.page-about /* ✅ ЧИСТЫЙ НЕЙТРАЛЬНЫЙ ЛЕДЯНОЙ ФОН БЕЗ КРАСНЫХ ПЯТЕН */
    .liquid-bg {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: -1; pointer-events: none; overflow: hidden;
    }
body.page-about .blob {
      position: absolute; border-radius: 50%; filter: blur(100px);
      opacity: 0.45; animation: kf_page-about_floatBlob 20s ease-in-out infinite alternate;
    }
body.page-about .blob-1 { top: -10%; left: -10%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(226, 232, 240, 0.85) 0%, transparent 70%); }
body.page-about .blob-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(203, 213, 225, 0.65) 0%, transparent 70%); }
@keyframes kf_page-about_floatBlob {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(-30px, 40px) scale(1.05); }
    }
body.page-about /* ===== HEADER ===== */
    .header-wrapper {
      position: fixed; top: 16px; left: 0; right: 0;
      z-index: 1000; display: flex; justify-content: center;
      padding: 0 16px; pointer-events: none;
    }
body.page-about .header {
      position: relative;
      pointer-events: auto;
      width: 100%; max-width: 1100px; 
      padding: 11px 24px;
      background: rgba(255, 255, 255, 0.74);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      border-radius: 100px;
      border: 1px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,1);
      display: flex; align-items: center; justify-content: space-between;
    }
body.page-about .header .logo {
      display: flex; align-items: center; text-decoration: none; cursor: pointer;
    }
body.page-about .header .logo-img {
      height: 40px; width: auto; object-fit: contain;
    }
body.page-about /* ===== MAIN CONTENT ===== */
    .main {
      max-width: 1100px; margin: 0 auto;
      padding: 30px 24px 80px 24px;
    }
body.page-about .section-title {
      font-size: clamp(30px, 5vw, 46px);
      font-weight: 900; letter-spacing: -0.035em;
      color: var(--text-main); margin-bottom: 24px; text-align: left;
    }
body.page-about .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
body.page-about /* ===== ✅ СТРОГИЕ КАРТОЧКИ БЕЗ НАКЛОНА В 3D ===== */
    .glass-card {
      position: relative;
      background: var(--glass-bg);
      backdrop-filter: blur(32px) saturate(210%);
      -webkit-backdrop-filter: blur(32px) saturate(210%);
      border-radius: 30px; border: 1px solid var(--glass-border);
      padding: 36px; box-shadow: var(--glass-shadow);
      transition: transform 0.3s var(--ease-spring),
                  box-shadow 0.35s ease,
                  background 0.35s ease;
      width: 100%;
      overflow: hidden;
    }
body.page-about .glass-card::before {
      content: ''; position: absolute;
      top: var(--mouse-y, -100px); left: var(--mouse-x, -100px);
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
      transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
      transition: opacity 0.3s ease;
    }
body.page-about .glass-card:hover::before { opacity: 1; }
body.page-about /* ✅ ПЛОСКИЙ ПОДЪЕМ БЕЗ ИЗГИБА И НАКЛОНА */
    .glass-card:hover {
      transform: translateY(-4px);
      background: rgba(255, 255, 255, 0.95);
      border-color: #ffffff;
      box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.1);
    }
body.page-about /* HERO ABOUT CARD */
    .about-hero-card {
      background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(241,245,249,0.85));
      border: 1.5px solid #ffffff;
      padding: 42px; margin-bottom: 40px;
      box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.09);
    }
body.page-about /* TEAM CARDS STYLING */
    .team-card {
      cursor: pointer;
    }
body.page-about .team-badge {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 11.5px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.8px;
      padding: 4px 14px; border-radius: 100px;
      background: rgba(15, 23, 42, 0.06);
      border: 1px solid rgba(15, 23, 42, 0.12);
      color: var(--text-main); margin-bottom: 14px;
      backdrop-filter: blur(10px);
    }
body.page-about .thanks-badge {
      background: rgba(15, 23, 42, 0.06);
      border-color: rgba(15, 23, 42, 0.12);
      color: var(--text-main);
    }
body.page-about .team-card h3 {
      font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
      color: var(--text-main); margin-bottom: 8px;
      display: flex; align-items: center; gap: 10px;
    }
body.page-about .team-avatar-icon {
      width: 38px; height: 38px; border-radius: 12px;
      background: rgba(15, 23, 42, 0.05);
      border: 1px solid rgba(15, 23, 42, 0.08);
      display: flex; align-items: center; justify-content: center;
      font-size: 20px;
    }
body.page-about .team-name {
      font-size: 19px; font-weight: 900;
      color: var(--text-main); line-height: 1.4;
      letter-spacing: -0.02em;
    }
body.page-about /* ===== ULTRA-MINIMAL SOCIAL CHIPS ===== */
    .minimal-socials-row {
      display: flex; flex-wrap: wrap; gap: 10px;
      justify-content: center; align-items: center;
      margin-bottom: 12px;
    }
body.page-about .social-chip {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid var(--glass-border-subtle);
      border-radius: 100px;
      padding: 6px 14px;
      font-family: var(--font-sans);
      font-size: 13px; font-weight: 700;
      color: var(--text-main);
      display: inline-flex; align-items: center; gap: 6px;
      cursor: pointer; transition: all 0.25s var(--ease-spring);
      backdrop-filter: blur(10px);
    }
body.page-about .social-chip:hover {
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
      border-color: rgba(15, 23, 42, 0.18);
    }
body.page-about .social-chip:active { transform: scale(0.96); }
body.page-about .custom-copy-svg {
      width: 14px; height: 14px;
      stroke: #94a3b8; fill: none;
      transition: stroke 0.2s ease;
    }
body.page-about .social-chip:hover .custom-copy-svg { stroke: #0f172a; }
body.page-about .cmd-badge {
      background: rgba(15, 23, 42, 0.08);
      padding: 1px 6px; border-radius: 6px;
      font-family: var(--font-mono); font-size: 12px;
    }
body.page-about /* ===== TOAST NOTIFICATION ===== */
    .toast {
      position: fixed; bottom: 28px; right: 28px;
      background: rgba(15, 23, 42, 0.92); color: #fff;
      padding: 14px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
      backdrop-filter: blur(20px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
      transform: translateY(100px) scale(0.9); opacity: 0;
      transition: all 0.4s var(--ease-spring); z-index: 9999;
    }
body.page-about .toast.show { transform: translateY(0) scale(1); opacity: 1; }
body.page-about /* ===== FOOTER ===== */
    .footer {
      text-align: center; margin-top: 80px; padding-top: 30px;
      padding-bottom: 40px;
      border-top: 1px solid var(--glass-border-subtle);
      display: flex; flex-direction: column; align-items: center; gap: 14px;
    }
body.page-about .footer-logo-img { height: 38px; width: auto; object-fit: contain; }
body.page-about .footer-rights-box { display: flex; flex-direction: column; gap: 3px; }
body.page-about .footer-rights-text { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
body.page-about .krsk-time { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-main); opacity: 0.8; }
body.page-about .footer-credits { font-size: 11px; font-weight: 700; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.5px; }
body.page-about /* 📱 INTERACTIVE FALLING PHONES AT THE VERY BOTTOM */
    .phones-interactive-bar {
      display: flex; gap: 20px;
      justify-content: center; align-items: center;
      margin-top: 10px; min-height: 48px;
    }
body.page-about .phone-item {
      font-size: 26px; cursor: pointer;
      display: inline-block;
      transition: transform 0.25s var(--ease-spring);
      animation: kf_page-about_floatIdle 3s ease-in-out infinite alternate;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06));
    }
body.page-about .phone-item:hover { transform: scale(1.25) translateY(-4px); }
body.page-about .phone-item.falling {
      pointer-events: none;
      animation: kf_page-about_dropPhysics 0.75s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
    }
body.page-about .phone-item.spawning { animation: kf_page-about_popSpawn 0.45s var(--ease-elastic) forwards; }
@keyframes kf_page-about_floatIdle {
      0% { transform: translateY(0) rotate(0deg); }
      100% { transform: translateY(-8px) rotate(6deg); }
    }
@keyframes kf_page-about_dropPhysics {
      0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
      30% { transform: translateY(-15px) rotate(-15deg) scale(1.15); opacity: 1; }
      100% { transform: translateY(130px) rotate(360deg) scale(0.3); opacity: 0; }
    }
@keyframes kf_page-about_popSpawn {
      0% { transform: scale(0) translateY(10px); opacity: 0; }
      100% { transform: scale(1) translateY(0); opacity: 1; }
    }
@media (max-width: 900px) {body.page-about .grid-2 { grid-template-columns: 1fr !important; }
body.page-about .main { padding: 20px 16px 40px 16px; }
body.page-about .glass-card { padding: 26px 20px; }
body.page-about .phones-interactive-bar { gap: 14px; }}


/* ===== SCOPED: page-oldwiki ===== */
body.page-oldwiki /* ===== RESET & ROOT VARIABLES ===== */
    *, body.page-oldwiki *::before, body.page-oldwiki *::after {
      margin: 0; padding: 0;
      box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
body.page-oldwiki {
      /* Light Glass Theme (Default) */
      --bg-base: #f1f5f9;
      --text-main: #0f172a;
      --text-muted: #475569;
      --accent-ruby: #f43f5e;
      --accent-gradient: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
      --glass-bg: rgba(255, 255, 255, 0.65);
      --glass-bg-hover: rgba(255, 255, 255, 0.88);
      --glass-border: rgba(255, 255, 255, 0.95);
      --glass-border-subtle: rgba(203, 213, 225, 0.7);
      --glass-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.06),
                      inset 0 1px 2px 0 rgba(255, 255, 255, 1);
      --glass-shadow-hover: 0 35px 70px -15px rgba(244, 63, 94, 0.18),
                            inset 0 1px 2px 0 rgba(255, 255, 255, 1);
      --radius-xl: 28px;
      --radius-lg: 20px;
      --radius-md: 14px;
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    }
body.page-oldwiki /* ===== DARK MODE (Obsidian Glass) ===== */
    body.dark-mode {
      --bg-base: #090d16;
      --text-main: #f8fafc;
      --text-muted: #a1a1aa;
      --glass-bg: rgba(18, 24, 38, 0.75);
      --glass-bg-hover: rgba(30, 41, 59, 0.92);
      --glass-border: rgba(255, 255, 255, 0.14);
      --glass-border-subtle: rgba(63, 63, 70, 0.6);
      --glass-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5),
                      inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
      --glass-shadow-hover: 0 40px 80px -15px rgba(244, 63, 94, 0.28),
                            inset 0 1px 2px 0 rgba(255, 255, 255, 0.2);
    }
body.page-oldwiki /* ===== HORROR CRT ANALOG EASTER EGG MODE ===== */
    body.crt-horror-mode {
      --bg-base: #020a02 !important;
      --text-main: #33ff33 !important;
      --text-muted: #147a14 !important;
      --accent-ruby: #ff3333 !important;
      --accent-gradient: linear-gradient(135deg, #00ff00 0%, #33ff33 100%) !important;
      --glass-bg: rgba(2, 16, 2, 0.88) !important;
      --glass-bg-hover: rgba(5, 30, 5, 0.96) !important;
      --glass-border: rgba(51, 255, 51, 0.4) !important;
      --glass-border-subtle: rgba(20, 122, 20, 0.5) !important;
      --glass-shadow: 0 0 30px rgba(0, 255, 0, 0.25), inset 0 0 15px rgba(0,255,0,0.15) !important;
      --font-sans: 'Courier Prime', monospace !important;
      --font-mono: 'Courier Prime', monospace !important;
      text-shadow: 0 0 5px rgba(51, 255, 51, 0.7);
    }
body.page-oldwiki.crt-horror-mode .main, body.page-oldwiki.crt-horror-mode .header-wrapper {
      mask-image: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 50%), rgba(0,0,0,1) 35%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.6) 85%, rgba(0,0,0,0.45) 100%);
      -webkit-mask-image: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 50%), rgba(0,0,0,1) 35%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.6) 85%, rgba(0,0,0,0.45) 100%);
    }
html.page-oldwiki {
      scroll-behavior: smooth;
    }
body.page-oldwiki {
      font-family: var(--font-sans);
      background-color: var(--bg-base);
      color: var(--text-main);
      min-height: 100vh;
      overflow-x: hidden;
      padding-top: 100px;
      line-height: 1.6;
      transition: background-color 0.4s ease, color 0.4s ease;
    }
body.page-oldwiki /* CRT Overlay Effects */
    .crt-overlay {
      display: none;
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: 9990; pointer-events: none;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%),
                  linear-gradient(90deg, rgba(255,0,0,0.03), rgba(0,255,0,0.01), rgba(0,0,255,0.03));
      background-size: 100% 4px, 6px 100%; opacity: 0.85;
      box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
    }
body.page-oldwiki.crt-horror-mode .crt-overlay { display: block; }
body.page-oldwiki .vhs-tear {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      z-index: 9999; display: none; pointer-events: none;
      background: repeating-linear-gradient(0deg, #fff 0px, #000 4px, #fff 8px);
      opacity: 0; mix-blend-mode: difference;
    }
@keyframes kf_page-oldwiki_vhsTearAnim {
      0% { opacity: 0; transform: skewX(0deg); }
      30% { opacity: 0.9; transform: skewX(40deg); background: red; }
      60% { opacity: 0.8; transform: skewX(-30deg); background: blue; }
      100% { opacity: 0; transform: skewX(0deg); }
    }
body.page-oldwiki /* Ambient Liquid Background Blobs */
    .liquid-bg {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: -1; overflow: hidden; pointer-events: none;
    }
body.page-oldwiki .blob {
      position: absolute; border-radius: 50%; filter: blur(90px);
      opacity: 0.55; animation: kf_page-oldwiki_floatLiquid 20s ease-in-out infinite alternate;
      transition: all 0.5s ease;
    }
body.page-oldwiki .blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(251, 113, 133, 0.35) 0%, rgba(244, 63, 94, 0.05) 70%); }
body.page-oldwiki .blob-2 { bottom: -15%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(129, 140, 248, 0.28) 0%, rgba(192, 132, 252, 0.05) 70%); animation-delay: -5s; }
@keyframes kf_page-oldwiki_floatLiquid {
      0% { transform: translate(0, 0) scale(1) rotate(0deg); }
      100% { transform: translate(-40px, 80px) scale(0.95) rotate(360deg); }
    }
body.page-oldwiki /* Floating Coin Clicker Animation */
    .floating-coin {
      position: fixed; pointer-events: none;
      font-family: var(--font-mono); font-weight: 800; font-size: 16px;
      color: #f59e0b; text-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
      animation: kf_page-oldwiki_floatUpFade 1s var(--ease-spring) forwards; z-index: 9999;
    }
@keyframes kf_page-oldwiki_floatUpFade {
      0% { opacity: 1; transform: translateY(0) scale(0.8); }
      100% { opacity: 0; transform: translateY(-80px) scale(1); }
    }
body.page-oldwiki /* ===== HEADER (MATCHES INDEX.HTML DIMENSIONS EXACTLY) ===== */
    .header-wrapper {
      position: fixed; top: 16px; left: 0; right: 0; z-index: 1000;
      display: flex; justify-content: center; padding: 0 16px;
      pointer-events: none;
    }
body.page-oldwiki .header {
      pointer-events: auto;
      width: 100%; max-width: 1100px; 
      /* ✅ Размеры и паддинги как на основном сайте */
      padding: 11px 24px;
      background: rgba(255, 255, 255, 0.74);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      border-radius: 100px;
      border: 1px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,1);
      display: flex; align-items: center; justify-content: space-between;
      transition: all 0.4s var(--ease-spring);
    }
body.page-oldwiki .header .logo {
      font-size: 21px; font-weight: 900;
      color: var(--text-main); display: flex; align-items: center; gap: 8px;
      cursor: pointer; transition: transform 0.2s var(--ease-spring);
      text-decoration: none;
    }
body.page-oldwiki .header .logo:active { transform: scale(0.95); }
body.page-oldwiki /* ✅ УБРАН ЗАЗОР МЕЖДУ es И Phones */
    .header .logo .logo-text {
      display: inline-flex;
      align-items: center;
      letter-spacing: -1.2px;
    }
body.page-oldwiki .header .logo span.accent {
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
body.page-oldwiki .header .logo span.tag-wiki {
      font-size: 11px; font-weight: 800; text-transform: uppercase;
      letter-spacing: 0.8px; padding: 2px 8px; border-radius: 20px;
      background: rgba(244, 63, 94, 0.12); color: var(--accent-ruby);
      border: 1px solid rgba(244, 63, 94, 0.25); margin-left: 2px;
    }
body.page-oldwiki /* HIGHLY OPTIMIZED NAV BAR */
    .header nav {
      display: flex; gap: 4px;
      background: rgba(226, 232, 240, 0.45);
      padding: 4px; border-radius: 100px;
      border: 1px solid rgba(255, 255, 255, 0.4);
    }
body.page-oldwiki.dark-mode .header nav { background: rgba(15, 23, 42, 0.6); }
body.page-oldwiki .header nav a {
      padding: 7px 14px; border-radius: 100px;
      font-size: 13.5px; font-weight: 700; color: var(--text-muted);
      text-decoration: none; transition: all 0.25s var(--ease-spring);
      white-space: nowrap;
    }
body.page-oldwiki .header nav a:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.5); }
body.page-oldwiki .header nav a.active { background: #ffffff; color: var(--accent-ruby); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
body.page-oldwiki.dark-mode .header nav a.active { background: #1e293b; color: #fb7185; }
body.page-oldwiki /* Action Controls in Header */
    .header-actions {
      display: flex; align-items: center; gap: 6px;
    }
body.page-oldwiki .theme-toggle-btn, body.page-oldwiki .secret-terminal-trigger {
      width: 36px; height: 36px; border-radius: 50%;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid var(--glass-border);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 15px; transition: all 0.3s var(--ease-spring);
    }
body.page-oldwiki.dark-mode .theme-toggle-btn, body.page-oldwiki.dark-mode .secret-terminal-trigger {
      background: rgba(30, 41, 59, 0.85);
    }
body.page-oldwiki .theme-toggle-btn:hover, body.page-oldwiki .secret-terminal-trigger:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }
body.page-oldwiki .menu-toggle {
      display: none; background: none; border: none;
      font-size: 20px; cursor: pointer; color: var(--text-main);
      width: 36px; height: 36px; border-radius: 50%;
      align-items: center; justify-content: center;
    }
body.page-oldwiki /* ===== MAIN CONTAINER ===== */
    .main {
      max-width: 1100px; margin: 0 auto;
      padding: 20px 24px 100px 24px;
    }
body.page-oldwiki /* ===== SECTIONS ===== */
    .section {
      margin-bottom: 60px;
      scroll-margin-top: 100px;
      animation: kf_page-oldwiki_liquidReveal 0.8s var(--ease-spring) forwards;
    }
@keyframes kf_page-oldwiki_liquidReveal {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }
body.page-oldwiki .section-header {
      display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
    }
body.page-oldwiki .section-header .icon-box {
      width: 48px; height: 48px; border-radius: 16px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(16px);
      display: flex; align-items: center; justify-content: center;
      font-size: 24px; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.05);
    }
body.page-oldwiki.dark-mode .section-header .icon-box { background: rgba(30, 41, 59, 0.7); }
body.page-oldwiki .section-header h2 {
      font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main);
    }
body.page-oldwiki /* ===== LIQUID GLASS CARD ===== */
    .glass-card {
      position: relative;
      background: var(--glass-bg);
      backdrop-filter: blur(30px) saturate(200%);
      -webkit-backdrop-filter: blur(30px) saturate(200%);
      border-radius: var(--radius-xl);
      border: 1px solid var(--glass-border);
      padding: 30px; margin-bottom: 20px;
      box-shadow: var(--glass-shadow);
      transition: transform 0.3s var(--ease-spring), 
                  box-shadow 0.3s var(--ease-spring), 
                  border-color 0.3s ease, background 0.3s ease;
      overflow: hidden;
      width: 100%;
    }
body.page-oldwiki .glass-card::before {
      content: ''; position: absolute;
      top: var(--mouse-y, -100px); left: var(--mouse-x, -100px);
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
      transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
      transition: opacity 0.3s ease;
    }
body.page-oldwiki .glass-card:hover::before { opacity: 1; }
body.page-oldwiki .glass-card:hover {
      transform: translateY(-3px);
      background: var(--glass-bg-hover);
      box-shadow: var(--glass-shadow-hover);
      border-color: rgba(255, 255, 255, 1);
    }
body.page-oldwiki.dark-mode .glass-card:hover { border-color: rgba(255, 255, 255, 0.3); }
body.page-oldwiki .glass-card h3 {
      font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
      margin-bottom: 12px; color: var(--text-main);
      display: flex; align-items: center; gap: 10px;
    }
body.page-oldwiki .glass-card h4 {
      font-size: 16px; font-weight: 700; margin: 14px 0 6px 0; color: var(--text-main);
    }
body.page-oldwiki .glass-card p, body.page-oldwiki .glass-card li {
      font-size: 15.5px; color: var(--text-main);
      opacity: 0.92; line-height: 1.7; font-weight: 550;
    }
body.page-oldwiki .glass-card ul, body.page-oldwiki .glass-card ol { padding-left: 22px; margin: 10px 0; }
body.page-oldwiki .glass-card li { margin-bottom: 8px; }
body.page-oldwiki .glass-card li::marker { color: var(--accent-ruby); }
body.page-oldwiki /* ===== BADGES & COMMAND CHIPS ===== */
    .badge {
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(244, 63, 94, 0.08); color: #e11d48;
      border: 1px solid rgba(244, 63, 94, 0.22);
      padding: 3px 10px; border-radius: 8px;
      font-family: var(--font-mono); font-size: 13px; font-weight: 700;
      cursor: pointer; transition: all 0.2s var(--ease-spring);
    }
body.page-oldwiki.dark-mode .badge { color: #fb7185; background: rgba(244, 63, 94, 0.18); }
body.page-oldwiki .badge:hover {
      background: rgba(244, 63, 94, 0.25);
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 4px 12px rgba(244, 63, 94, 0.22);
    }
body.page-oldwiki .tag {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid var(--glass-border-subtle);
      backdrop-filter: blur(10px);
      padding: 7px 16px; border-radius: 100px;
      font-size: 13.5px; font-weight: 700; color: var(--text-main);
      cursor: pointer; transition: all 0.25s var(--ease-spring);
    }
body.page-oldwiki.dark-mode .tag { background: rgba(30, 41, 59, 0.8); }
body.page-oldwiki .tag:hover {
      transform: translateY(-2px); background: #ffffff;
      border-color: rgba(244, 63, 94, 0.35); box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }
body.page-oldwiki.dark-mode .tag:hover { background: #1e293b; }
body.page-oldwiki /* ===== GRIDS & MOBILE REPAIRS ===== */
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
body.page-oldwiki .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.page-oldwiki /* ===== COMMAND BLOCKS ===== */
    .cmd-block {
      position: relative;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid var(--glass-border-subtle);
      border-left: 3.5px solid var(--accent-ruby);
      border-radius: var(--radius-md); padding: 11px 15px;
      font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--text-main);
      margin: 8px 0; display: flex; align-items: center; justify-content: space-between;
      cursor: pointer; transition: all 0.25s var(--ease-spring);
    }
body.page-oldwiki.dark-mode .cmd-block { background: rgba(30, 41, 59, 0.7); }
body.page-oldwiki .cmd-block:hover {
      background: rgba(255, 255, 255, 0.95);
      transform: translateX(6px);
      box-shadow: 0 6px 16px rgba(244, 63, 94, 0.15);
      border-color: rgba(244, 63, 94, 0.4);
    }
body.page-oldwiki.dark-mode .cmd-block:hover { background: rgba(30, 41, 59, 0.95); }
body.page-oldwiki .cmd-block::after {
      content: 'копировать 📋'; font-family: var(--font-sans);
      font-size: 11px; font-weight: 800; color: var(--accent-ruby);
      opacity: 0; transform: translateX(-6px); transition: all 0.2s var(--ease-spring);
    }
body.page-oldwiki .cmd-block:hover::after { opacity: 1; transform: translateX(0); }
body.page-oldwiki /* ===== RARITY CHAIN ===== */
    .rarity-chain { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
body.page-oldwiki .rarity-chain .r {
      padding: 8px 16px; border-radius: 100px;
      font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
      text-transform: uppercase; background: rgba(255, 255, 255, 0.75);
      border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
      cursor: pointer; transition: all 0.3s var(--ease-spring);
    }
body.page-oldwiki.dark-mode .rarity-chain .r { background: rgba(30, 41, 59, 0.8); }
body.page-oldwiki .rarity-chain .r:hover {
      transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
body.page-oldwiki /* ===== CALCULATOR WIDGET ===== */
    .calc-container {
      background: rgba(255, 255, 255, 0.45); border-radius: var(--radius-lg);
      padding: 20px; border: 1px solid var(--glass-border-subtle); margin-top: 14px;
    }
body.page-oldwiki.dark-mode .calc-container { background: rgba(15, 23, 42, 0.55); }
body.page-oldwiki .calc-slider-group { margin-bottom: 14px; }
body.page-oldwiki .calc-slider-group label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
body.page-oldwiki .calc-slider-group input[type="range"] { width: 100%; accent-color: var(--accent-ruby); cursor: pointer; }
body.page-oldwiki .calc-result {
      display: flex; justify-content: space-between; align-items: center;
      background: rgba(244, 63, 94, 0.08); padding: 12px 16px;
      border-radius: var(--radius-md); border: 1px solid rgba(244, 63, 94, 0.22);
      font-weight: 800; color: var(--accent-ruby);
    }
body.page-oldwiki /* ===== SECRET TERMINAL MODAL ===== */
    .terminal-modal {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      background: rgba(1, 10, 1, 0.95); backdrop-filter: blur(20px);
      z-index: 9500; display: none; flex-direction: column; padding: 24px;
      font-family: 'Courier Prime', monospace; color: #33ff33;
    }
body.page-oldwiki .term-inner {
      max-width: 800px; margin: 0 auto; width: 100%; height: 100%;
      display: flex; flex-direction: column; justify-content: space-between;
    }
body.page-oldwiki .term-log { flex: 1; overflow-y: auto; margin-bottom: 16px; font-size: 13.5px; line-height: 1.5; color: #aaa; }
body.page-oldwiki .term-input-row { display: flex; align-items: center; gap: 8px; }
body.page-oldwiki .term-input-row input {
      flex: 1; background: transparent; border: none; outline: none;
      color: #33ff33; font-family: inherit; font-size: 16px;
    }
body.page-oldwiki /* ===== DIVIDER ===== */
    .divider {
      height: 1px; background: linear-gradient(90deg, transparent, rgba(203, 213, 225, 0.7), transparent);
      margin: 24px 0;
    }
body.page-oldwiki /* ===== LINKS ===== */
    a {
      color: var(--accent-ruby); text-decoration: none; font-weight: 700;
      transition: opacity 0.2s;
    }
body.page-oldwiki a:hover { opacity: 0.8; }
body.page-oldwiki /* ===== FOOTER ===== */
    .footer {
      text-align: center; margin-top: 60px; padding-top: 20px;
      border-top: 1px solid var(--glass-border-subtle);
    }
body.page-oldwiki .footer-dev-link {
      font-size: 14.5px; font-weight: 800; color: var(--accent-ruby);
      text-decoration: none; transition: opacity 0.2s;
    }
body.page-oldwiki .footer-dev-link:hover { opacity: 0.8; }
body.page-oldwiki .footer-credits {
      font-size: 10.5px; font-weight: 700; color: var(--text-muted);
      opacity: 0.65; margin-top: 6px; letter-spacing: 0.5px;
    }
body.page-oldwiki /* ===== TOAST NOTIFICATION ===== */
    .toast {
      position: fixed; bottom: 28px; right: 28px;
      background: rgba(15, 23, 42, 0.92); color: #fff;
      padding: 14px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
      backdrop-filter: blur(20px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
      transform: translateY(100px) scale(0.9); opacity: 0;
      transition: all 0.4s var(--ease-spring); z-index: 9999;
    }
body.page-oldwiki .toast.show { transform: translateY(0) scale(1); opacity: 1; }
body.page-oldwiki /* ===== FULL MOBILE RESPONSIVE FIXES ===== */
    @media (max-width: 900px) {
      .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
      }
      
      .glass-card {
        grid-column: auto !important;
        width: 100% !important;
        padding: 22px 18px !important;
      }

      .main { padding: 16px 14px 80px 14px; }
      
      .header nav {
        display: none; position: absolute; top: 60px; left: 14px; right: 14px;
        background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(30px);
        flex-direction: column; padding: 16px; border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 1px solid var(--glass-border);
      }
      body.dark-mode .header nav { background: rgba(15, 23, 42, 0.96); }
      .header nav.open { display: flex; }
      .menu-toggle { display: flex; }
    }


/* ===== SCOPED: page-weather (живая погода) ===== */
body.page-weather {
  --bg-base: #f0f7ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  background: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-weather .wx-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 20px 24px;
  box-sizing: border-box;
}

body.page-weather .wx-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.18), inset 0 1px 2px rgba(255, 255, 255, 1);
  padding: 28px;
  box-sizing: border-box;
}

body.page-weather .wx-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

body.page-weather .wx-city {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

body.page-weather .wx-temp {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}

body.page-weather .wx-feels {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

body.page-weather .wx-icon svg {
  width: 88px;
  height: 88px;
  display: block;
}

body.page-weather .wx-desc {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}

body.page-weather .wx-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

body.page-weather .wx-meta-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
}

body.page-weather .wx-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

body.page-weather .wx-meta-value {
  font-size: 19px;
  font-weight: 700;
  margin-top: 3px;
}

body.page-weather .wx-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

body.page-weather .wx-day {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
}

body.page-weather .wx-day-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

body.page-weather .wx-day svg {
  width: 32px;
  height: 32px;
  margin: 8px auto 6px;
  display: block;
}

body.page-weather .wx-day-temps {
  font-size: 13px;
  font-weight: 700;
}

body.page-weather .wx-day-temps span {
  color: var(--text-muted);
  font-weight: 500;
}

body.page-weather .wx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

body.page-weather .wx-refresh {
  border: none;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

body.page-weather .wx-refresh:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

body.page-weather .wx-refresh:active {
  transform: translateY(0);
}

body.page-weather .wx-refresh:disabled {
  opacity: 0.5;
  cursor: wait;
}

body.page-weather .wx-error {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #b91c1c;
  font-size: 14px;
  font-weight: 500;
}

body.page-weather .wx-loading {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 14px;
}

body.page-weather .wx-loading::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  vertical-align: -4px;
  border: 2px solid rgba(15, 23, 42, 0.15);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: kf_pageweather_spin 0.8s linear infinite;
}

@keyframes kf_pageweather_spin {
  to { transform: rotate(360deg); }
}

/* ===== SCOPED: page-status (статус сервисов) ===== */
body.page-status {
  --bg-base: #f4f7fb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  background: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-status .st-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 20px 24px;
  box-sizing: border-box;
}

body.page-status .st-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.18), inset 0 1px 2px rgba(255, 255, 255, 1);
  padding: 26px 28px;
  box-sizing: border-box;
}

body.page-status .st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

body.page-status .st-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

body.page-status .st-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

body.page-status .st-updated {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

body.page-status .st-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-status .st-service {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 16px 18px;
}

body.page-status .st-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

body.page-status .st-dot.online {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

body.page-status .st-dot.online::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.4);
  animation: kf_pagestatus_pulse 1.8s ease-out infinite;
}

body.page-status .st-dot.offline {
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.15);
}

body.page-status .st-dot.error {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

@keyframes kf_pagestatus_pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

body.page-status .st-info {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-status .st-name {
  font-size: 15px;
  font-weight: 700;
}

body.page-status .st-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

body.page-status .st-state {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
}

body.page-status .st-state.online { color: #15803d; }
body.page-status .st-state.offline { color: #64748b; }
body.page-status .st-state.error { color: #b91c1c; }

body.page-status .st-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

body.page-status .st-btn {
  border: none;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

body.page-status .st-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

body.page-status .st-btn:active {
  transform: translateY(0);
}

body.page-status .st-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

body.page-status .st-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.55;
}
/* ===== SCOPED: page-pcs ===== */
body.page-pcs {--ease-elastic:cubic-bezier(0.34,1.45,0.64,1);--ease-spring:cubic-bezier(0.16,1,0.3,1)}
body.page-pcs * {margin:0;padding:0;box-sizing:border-box}
body.page-pcs {font-family:'Segoe UI',system-ui,sans-serif;background:#f4f4f6;overflow:hidden;height:100vh;display:flex;user-select:none}
body.page-pcs #wrap {flex:1;position:relative;cursor:grab;touch-action:none}
body.page-pcs #wrap.panning {cursor:grabbing}
body.page-pcs #wrap.dragging {cursor:grabbing}
body.page-pcs canvas {display:block;position:absolute;top:0;left:0}
body.page-pcs #side {width:280px;background:rgba(255,255,255,0.86);backdrop-filter:blur(28px) saturate(200%);-webkit-backdrop-filter:blur(28px) saturate(200%);border-left:1px solid rgba(0,0,0,0.04);display:flex;flex-direction:column;z-index:10;box-shadow:-4px 0 40px rgba(0,0,0,0.04)}
body.page-pcs #side-hd {padding:15px 18px 10px;border-bottom:1px solid rgba(0,0,0,0.05);text-align:center}
body.page-pcs #game-logo {height:35px;width:auto;display:block;margin:0 auto}
body.page-pcs #panel {flex:1;overflow-y:auto;padding:8px 10px;touch-action:pan-y}
body.page-pcs #panel h3 {font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#b0b0b0;margin:10px 0 5px 4px;font-weight:700}
body.page-pcs .ebtn {display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:1px solid transparent;background:transparent;border-radius:12px;cursor:pointer;transition:all .2s;margin-bottom:2px;text-align:left;font-size:12px;color:#444;font-weight:500}
body.page-pcs .ebtn:hover {background:rgba(0,0,0,.025);border-color:rgba(0,0,0,.06);transform:scale(1.02)}
body.page-pcs .ebtn:active {background:rgba(0,0,0,.05);transform:scale(.97)}
body.page-pcs .eemoji {font-size:18px;width:24px;text-align:center;flex-shrink:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.1))}
body.page-pcs .ename {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
body.page-pcs /* Liquid Glass Pill Top Bar */
#top-bar {position:absolute;top:20px;right:300px;display:flex;align-items:center;gap:6px;z-index:20;background:rgba(255,255,255,0.65);padding:8px 14px 8px 50px;border-radius:100px;backdrop-filter:blur(40px) saturate(180%);-webkit-backdrop-filter:blur(40px) saturate(180%);box-shadow:0 10px 30px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,1);border:1px solid rgba(255,255,255,0.9)}
body.page-pcs .tool-btn {width:36px;height:36px;background:transparent;border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;color:#555;position:relative}
body.page-pcs .tool-btn:hover {background:rgba(0,0,0,0.05)}
body.page-pcs .tool-btn.active {background:#1a1a2e;color:#fff}
body.page-pcs .tool-btn svg {width:18px;height:18px}
body.page-pcs .tool-btn::after {content:attr(data-title);position:absolute;top:45px;left:50%;transform:translateX(-50%);background:#1a1a2e;color:#fff;padding:4px 8px;border-radius:6px;font-size:11px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30}
body.page-pcs .tool-btn:hover::after {opacity:1}
body.page-pcs /* ===== ID MORPHING PILL ===== */
#id-morph-pill {
  position: absolute; top: 50%; left: 8px;
  transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06), inset 0 1px 2px rgba(255,255,255,1);
  overflow: hidden; cursor: pointer; z-index: 25;
  transform-origin: center left;
  transition: width 0.52s var(--ease-elastic),
              height 0.52s var(--ease-elastic),
              border-radius 0.52s var(--ease-elastic),
              top 0.52s var(--ease-elastic),
              left 0.52s var(--ease-elastic),
              box-shadow 0.75s ease-in-out,
              background 0.75s ease-in-out;
}
body.page-pcs #id-morph-pill:not(.active):hover {
  box-shadow: 0 0 35px rgba(255, 255, 255, 1), 0 8px 25px rgba(15, 23, 42, 0.12);
  border-color: #ffffff; background: rgba(255, 255, 255, 0.98);
}
body.page-pcs #id-morph-pill.active {
  top: -2px; left: -2px;
  transform: translateY(0) scale(1) !important;
  width: 220px; height: 140px; border-radius: 24px; cursor: default;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 80px -10px rgba(15, 23, 42, 0.22), inset 0 1px 2px rgba(255,255,255,1);
}
body.page-pcs .pill-header-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 36px;
  padding: 0 8px; display: flex; align-items: center; justify-content: space-between;
  z-index: 1010; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.page-pcs #id-morph-pill.active .pill-header-bar { opacity: 1; pointer-events: auto; }
body.page-pcs .pill-close-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: transparent; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #64748b; cursor: pointer;
  transition: transform 0.45s var(--ease-elastic), color 0.3s ease, background 0.3s ease;
}
body.page-pcs .pill-close-btn:hover { color: #f43f5e; background: rgba(244, 63, 94, 0.08); }
body.page-pcs .pill-trigger {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4.5px; cursor: pointer; z-index: 1010;
}
body.page-pcs .pill-id-text {
  font-weight: 800; font-size: 11px; color: #0f172a; letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}
body.page-pcs #id-morph-pill.active .pill-id-text { opacity: 0; pointer-events: none; }
body.page-pcs .pill-expanded-content {
  position: absolute; inset: 0; padding: 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease 0.1s;
}
body.page-pcs #id-morph-pill.active .pill-expanded-content { opacity: 1; pointer-events: auto; }
body.page-pcs .pill-username {
  text-align: center; font-size: 16px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.02em; margin-top: 20px; margin-bottom: 4px;
}
body.page-pcs .pill-action-btn {
  background: transparent; border: none; color: #f43f5e; 
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px;
  text-align: center; width: 100%;
}
body.page-pcs .pill-action-btn:hover { text-decoration: underline; }
body.page-pcs #bh-tooltip {position:absolute;top:100px;left:30px;background:#1a1a2e;color:#fff;padding:10px 14px;border-radius:10px;font-size:11px;width:180px;opacity:0;pointer-events:none;transition:opacity 0.3s;z-index:15;box-shadow:0 4px 15px rgba(0,0,0,0.2)}
body.page-pcs #wrap.bh-hover #bh-tooltip {opacity:1}
body.page-pcs #history-panel {position:absolute;top:80px;right:300px;width:180px;background:rgba(255,255,255,0.95);backdrop-filter:blur(30px);border-radius:16px;padding:10px;z-index:16;display:none;box-shadow:0 10px 40px rgba(0,0,0,0.1)}
body.page-pcs .hist-item {padding:8px;cursor:pointer;font-size:12px;border-radius:8px;display:flex;align-items:center;gap:6px}
body.page-pcs .hist-item:hover {background:rgba(0,0,0,0.05)}
body.page-pcs #selection-box {position:absolute;border:1px dashed rgba(66,133,244,0.8);background:rgba(66,133,244,0.1);pointer-events:none;z-index:5}
body.page-pcs #modal-alert {position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:30px 40px;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,0.2);z-index:1000;display:none;text-align:center;font-weight:600;color:#333;max-width:90vw}
body.page-pcs #modal-alert button {margin-top:15px;padding:8px 20px;background:#1a1a2e;color:#fff;border:none;border-radius:10px;cursor:pointer}
body.page-pcs #genealogy-screen {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(248,248,250,0.98);backdrop-filter:blur(20px);z-index:100;display:none;overflow:hidden}
body.page-pcs #genealogy-screen.show {display:block}
body.page-pcs #tree-canvas {position:absolute;top:0;left:0;width:100%;height:100%;cursor:grab;touch-action:none}
body.page-pcs #tree-canvas.panning {cursor:grabbing}
body.page-pcs #tree-nodes {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transform-origin:0 0}
body.page-pcs .t-node {position:absolute;background:#fff;padding:10px 15px;border-radius:12px;box-shadow:0 4px 15px rgba(0,0,0,0.08);display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;transform:translate(-50%,-50%);pointer-events:auto;transition:all 0.2s;white-space:nowrap;border:1px solid rgba(0,0,0,0.05)}
body.page-pcs .t-node:hover {transform:translate(-50%,-50%) scale(1.1);box-shadow:0 8px 25px rgba(0,0,0,0.15)}
body.page-pcs .t-node.base {background:#1a1a2e;color:#fff}
body.page-pcs #genealogy-header {position:fixed;top:20px;left:20px;z-index:110;display:flex;align-items:center;gap:15px}
body.page-pcs #genealogy-header h2 {font-size:20px;font-weight:800;background:#fff;padding:10px 20px;border-radius:12px;box-shadow:0 4px 15px rgba(0,0,0,0.05)}
body.page-pcs #genealogy-close {background:#fff;border:none;width:40px;height:40px;border-radius:10px;font-size:18px;cursor:pointer;box-shadow:0 4px 15px rgba(0,0,0,0.05);transition:all 0.2s}
body.page-pcs #genealogy-close:hover {background:#ff4444;color:#fff}
@media (max-width: 768px) {body.page-pcs { flex-direction: column; }
body.page-pcs #wrap { width: 100%; flex: 1; }
body.page-pcs #side {
        position: fixed; top: auto; bottom: 0; left: 0; width: 100%;
        height: 26vh; max-height: 300px; border-left: none;
        border-top: 1px solid rgba(0,0,0,0.05); border-radius: 24px 24px 0 0;
        z-index: 20; box-shadow: 0 -4px 40px rgba(0,0,0,0.1);
    }
body.page-pcs #side-hd { padding: 8px 18px 5px; }
body.page-pcs #game-logo { height: 25px; }
body.page-pcs #panel { padding: 4px 10px; }
body.page-pcs #top-bar { top: 15px; right: 15px; padding: 6px 10px 6px 44px; }
body.page-pcs .tool-btn { width: 32px; height: 32px; }
body.page-pcs .tool-btn svg { width: 16px; height: 16px; }
body.page-pcs .tool-btn::after { display: none; }
body.page-pcs #id-morph-pill { width: 32px; height: 32px; left: 6px; }
body.page-pcs #id-morph-pill.active { width: 200px; height: 130px; }
body.page-pcs #history-panel { display: none !important; }
body.page-pcs #bh-tooltip { top: 80px; left: 15px; width: 160px; }
body.page-pcs #genealogy-header h2 { font-size: 16px; padding: 8px 15px; }
body.page-pcs .t-node { font-size: 11px; padding: 8px 12px; }}


/* ===== SCOPED: page-blog ===== */
/* ============ БЛОГ ============ */

.blog-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.blog-hero {
  position: relative;
  border-radius: 32px;
  padding: 64px 48px;
  margin-bottom: 56px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #312e81 100%);
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.55);
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.blog-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e0e7ff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.blog-hero-title {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 18px;
}

.blog-hero-subtitle {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: #c7d2fe;
  margin: 0 0 30px;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.blog-btn-primary {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.blog-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.blog-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.blog-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Список статей */

.blog-posts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.blog-posts-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.blog-posts-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-filter-chip {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-filter-chip:hover {
  border-color: rgba(15, 23, 42, 0.25);
  color: #0f172a;
}

.blog-filter-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search:focus-within {
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
}

.blog-search-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
  flex: 0 0 auto;
}

.blog-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: #0f172a;
}

.blog-search-input::placeholder {
  color: #94a3b8;
}

.wiki-search-empty {
  margin-top: 10px;
  font-size: 14px;
  color: #64748b;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 26px;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -14px rgba(15, 23, 42, 0.2);
  border-color: rgba(15, 23, 42, 0.16);
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blog-card-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
}

.blog-card-featured {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 100px;
}

.blog-card-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  flex-grow: 1;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-card-tag {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.blog-card-author {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.blog-empty {
  text-align: center;
  color: #94a3b8;
  font-weight: 600;
  padding: 40px 0;
}

.blog-error {
  grid-column: 1 / -1;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 20px;
  padding: 24px;
  font-weight: 600;
  line-height: 1.6;
}

/* Страница статьи */

.post-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.post-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 44px 48px;
  box-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.2);
}

.post-loading {
  text-align: center;
  color: #94a3b8;
  font-weight: 600;
  padding: 60px 0;
}

.post-error {
  text-align: center;
  padding: 40px 0;
}

.post-error h1 {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
}

.post-error p {
  color: #64748b;
  margin-bottom: 24px;
}

.post-back {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: #6366f1;
  text-decoration: none;
  margin-bottom: 22px;
}

.post-back:hover {
  text-decoration: underline;
}

.post-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 14px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 14px;
}

.post-author {
  color: #475569;
  font-weight: 700;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.post-content {
  font-size: 16px;
  line-height: 1.75;
  color: #1e293b;
}

.post-content h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 36px 0 14px;
}

.post-content h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 10px;
}

.post-content p {
  margin: 0 0 16px;
}

.post-content a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.post-content a:hover {
  border-bottom-color: #4f46e5;
}

.post-content ul,
.post-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 6px;
}

.post-content code {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: #0f172a;
}

.post-content pre {
  background: #0f172a;
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 18px;
  overflow-x: auto;
}

.post-content pre code {
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.post-content blockquote {
  border-left: 4px solid #6366f1;
  background: rgba(79, 70, 229, 0.06);
  border-radius: 0 14px 14px 0;
  margin: 0 0 18px;
  padding: 14px 20px;
  font-style: italic;
  color: #334155;
}

.post-content hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  margin: 28px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14.5px;
}

.post-content th,
.post-content td {
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 10px 14px;
  text-align: left;
}

.post-content th {
  background: rgba(15, 23, 42, 0.04);
  font-weight: 800;
  color: #0f172a;
}

.post-content td {
  color: #334155;
}

/* Callout-блоки */

.callout {
  border-radius: 16px;
  padding: 18px 22px;
  margin: 0 0 18px;
  border: 1px solid;
}

.callout-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.callout-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.callout-body p {
  margin: 0;
}

.callout-tip {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.callout-tip .callout-label,
.callout-tip .callout-title {
  color: #047857;
}

.callout-note {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.callout-note .callout-label,
.callout-note .callout-title {
  color: #1d4ed8;
}

.callout-warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.callout-warning .callout-label,
.callout-warning .callout-title {
  color: #b45309;
}

.callout-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.callout-danger .callout-label,
.callout-danger .callout-title {
  color: #b91c1c;
}

.post-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 720px) {
  .blog-hero {
    padding: 40px 26px;
    border-radius: 24px;
  }

  .post-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SCOPED: page-weatherabout ===== */
body.page-weatherabout {
      --bg-base: #f8fafc;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --accent-ruby: #f43f5e;
      --glass-bg: rgba(255, 255, 255, 0.78);
      --glass-border: rgba(255, 255, 255, 0.95);
      --glass-border-subtle: rgba(226, 232, 240, 0.8);
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
      
      /* APPLE ELASTIC SPRING BOUNCE CURVE */
      --ease-elastic: cubic-bezier(0.34, 1.45, 0.64, 1);
    }
html.page-weatherabout {
      scroll-behavior: smooth;
      background-color: var(--bg-base);
      color: var(--text-main);
      font-family: var(--font-sans);
    }
body.page-weatherabout {
      min-height: 100vh;
      min-height: 100dvh;
      overflow-x: hidden;
      line-height: 1.6;
      padding-top: 90px;
    }
body.page-weatherabout /* AMBIENT LIGHT LIQUID BLOBS */
    .liquid-bg {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: -1; pointer-events: none; overflow: hidden;
    }
body.page-weatherabout .blob {
      position: absolute; border-radius: 50%; filter: blur(100px);
      opacity: 0.45; animation: kf_page-weatherabout_floatBlob 20s ease-in-out infinite alternate;
    }
body.page-weatherabout .blob-1 { top: -10%; left: -10%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(226, 232, 240, 0.85) 0%, transparent 70%); }
body.page-weatherabout .blob-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(203, 213, 225, 0.65) 0%, transparent 70%); }
@keyframes kf_page-weatherabout_floatBlob {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(-30px, 40px) scale(1.05); }
    }
body.page-weatherabout /* ===== HEADER ===== */
    .header-wrapper {
      position: fixed; top: 16px; left: 0; right: 0;
      z-index: 1000; display: flex; justify-content: center;
      padding: 0 16px; pointer-events: none;
    }
body.page-weatherabout .header {
      position: relative;
      pointer-events: auto;
      width: 100%; max-width: 1100px; 
      padding: 11px 24px;
      background: rgba(255, 255, 255, 0.74);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      border-radius: 100px;
      border: 1px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,1);
      display: flex; align-items: center; justify-content: space-between;
    }
body.page-weatherabout .header .logo {
      display: flex; align-items: center; text-decoration: none; cursor: pointer;
    }
body.page-weatherabout .header .logo-img {
      height: 40px; width: auto; object-fit: contain;
    }
body.page-weatherabout /* ===== MAIN CONTENT ===== */
    .main {
      max-width: 1100px; margin: 0 auto;
      padding: 30px 24px 80px 24px;
    }
body.page-weatherabout .section-title {
      font-size: clamp(30px, 5vw, 46px);
      font-weight: 900; letter-spacing: -0.035em;
      color: var(--text-main); margin-bottom: 6px; text-align: left;
    }
body.page-weatherabout .section-subtitle {
      font-size: 15.5px; font-weight: 600;
      color: var(--text-muted); margin-bottom: 32px; text-align: left;
    }
body.page-weatherabout /* ===== GLASS CARDS ===== */
    .glass-card {
      position: relative;
      background: var(--glass-bg);
      backdrop-filter: blur(32px) saturate(210%);
      -webkit-backdrop-filter: blur(32px) saturate(210%);
      border-radius: 30px; border: 1px solid var(--glass-border);
      padding: 36px; box-shadow: var(--glass-shadow);
      transition: transform 0.3s var(--ease-spring),
                  box-shadow 0.35s ease,
                  background 0.35s ease;
      width: 100%; margin-bottom: 24px;
      overflow: hidden;
    }
body.page-weatherabout .glass-card::before {
      content: ''; position: absolute;
      top: var(--mouse-y, -100px); left: var(--mouse-x, -100px);
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
      transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
      transition: opacity 0.3s ease;
    }
body.page-weatherabout .glass-card:hover::before { opacity: 1; }
body.page-weatherabout .glass-card:hover {
      transform: translateY(-4px);
      background: rgba(255, 255, 255, 0.95);
      border-color: #ffffff;
      box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.1);
    }
body.page-weatherabout .glass-card h3 {
      font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
      color: var(--text-main); margin-bottom: 12px;
    }
body.page-weatherabout .glass-card p, body.page-weatherabout .glass-card li {
      font-size: 15px; font-weight: 500; color: var(--text-muted);
      line-height: 1.7;
    }
body.page-weatherabout .glass-card ul {
      margin-top: 8px; padding-left: 20px;
    }
body.page-weatherabout .glass-card li {
      font-size: 14.5px; font-weight: 600; color: var(--text-main);
      margin-bottom: 6px;
    }
body.page-weatherabout .status-badge-closed {
      display: inline-block;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #dc2626; font-weight: 800; font-size: 12.5px;
      padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
      text-transform: uppercase; letter-spacing: 0.5px;
    }
body.page-weatherabout /* ===== EASTER EGG: HOMER CHICKEN BANNER ===== */
    .homer-banner {
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%) scale(0.85);
      background: rgba(15, 23, 42, 0.93);
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.35);
      box-shadow: 0 25px 60px rgba(0,0,0,0.35);
      padding: 22px 42px;
      border-radius: 100px;
      font-size: clamp(20px, 4vw, 28px);
      font-weight: 900;
      letter-spacing: -0.02em;
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      opacity: 0;
      pointer-events: none;
      transition: all 0.5s var(--ease-elastic);
      z-index: 10000;
      white-space: nowrap;
    }
body.page-weatherabout .homer-banner.show {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
body.page-weatherabout /* RUNNING CHICKEN ANIMATION */
    .running-chicken {
      position: fixed;
      bottom: 25px;
      right: -60px;
      font-size: 38px;
      pointer-events: none;
      z-index: 9998;
      animation: kf_page-weatherabout_chickenRun 2.2s linear forwards;
    }
@keyframes kf_page-weatherabout_chickenRun {
      0% { right: -60px; transform: translateY(0) rotate(0deg); }
      25% { transform: translateY(-12px) rotate(-10deg); }
      50% { transform: translateY(0) rotate(10deg); }
      75% { transform: translateY(-10px) rotate(-5deg); }
      100% { right: 105vw; transform: translateY(0) rotate(0deg); }
    }
body.page-weatherabout /* SECRET DOOR AT VERY BOTTOM */
    .secret-door-wrapper {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: opacity 0.8s ease, max-height 0.8s var(--ease-elastic);
      margin-top: 10px;
    }
body.page-weatherabout .secret-door-wrapper.revealed {
      opacity: 1;
      max-height: 100px;
    }
body.page-weatherabout .secret-door-btn {
      font-size: 38px;
      cursor: pointer;
      display: inline-block;
      transition: transform 0.3s var(--ease-spring);
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    }
body.page-weatherabout .secret-door-btn:hover {
      transform: scale(1.25) rotate(-8deg);
    }
body.page-weatherabout /* ===== ULTRA-MINIMAL SOCIAL CHIPS ===== */
    .minimal-socials-row {
      display: flex; flex-wrap: wrap; gap: 10px;
      justify-content: center; align-items: center;
      margin-bottom: 12px;
    }
body.page-weatherabout .social-chip {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid var(--glass-border-subtle);
      border-radius: 100px;
      padding: 6px 14px;
      font-family: var(--font-sans);
      font-size: 13px; font-weight: 700;
      color: var(--text-main);
      display: inline-flex; align-items: center; gap: 6px;
      cursor: pointer; transition: all 0.25s var(--ease-spring);
      backdrop-filter: blur(10px);
    }
body.page-weatherabout .social-chip:hover {
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
      border-color: rgba(15, 23, 42, 0.18);
    }
body.page-weatherabout .social-chip:active { transform: scale(0.96); }
body.page-weatherabout .custom-copy-svg {
      width: 14px; height: 14px;
      stroke: #94a3b8; fill: none;
      transition: stroke 0.2s ease;
    }
body.page-weatherabout .social-chip:hover .custom-copy-svg { stroke: #0f172a; }
body.page-weatherabout .cmd-badge {
      background: rgba(15, 23, 42, 0.08);
      padding: 1px 6px; border-radius: 6px;
      font-family: var(--font-mono); font-size: 12px;
    }
body.page-weatherabout /* ===== TOAST NOTIFICATION ===== */
    .toast {
      position: fixed; bottom: 28px; right: 28px;
      background: rgba(15, 23, 42, 0.92); color: #fff;
      padding: 14px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
      backdrop-filter: blur(20px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
      transform: translateY(100px) scale(0.9); opacity: 0;
      transition: all 0.4s var(--ease-spring); z-index: 9999;
    }
body.page-weatherabout .toast.show { transform: translateY(0) scale(1); opacity: 1; }
body.page-weatherabout /* ===== FOOTER ===== */
    .footer {
      text-align: center; margin-top: 80px; padding-top: 30px;
      padding-bottom: 40px;
      border-top: 1px solid var(--glass-border-subtle);
      display: flex; flex-direction: column; align-items: center; gap: 14px;
    }
body.page-weatherabout .footer-logo-img { height: 38px; width: auto; object-fit: contain; }
body.page-weatherabout .footer-rights-box { display: flex; flex-direction: column; gap: 3px; }
body.page-weatherabout .footer-rights-text { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
body.page-weatherabout .krsk-time { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-main); opacity: 0.8; }
body.page-weatherabout .footer-credits { font-size: 11px; font-weight: 700; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.5px; }
body.page-weatherabout /* VECTOR SVG FALLING PHONES AT THE VERY BOTTOM */
    .phones-interactive-bar {
      display: flex; gap: 18px;
      justify-content: center; align-items: center;
      margin-top: 4px; min-height: 36px;
    }
body.page-weatherabout .phone-item {
      cursor: pointer;
      display: inline-flex;
      align-items: center; justify-content: center;
      transition: transform 0.25s var(--ease-spring);
      animation: kf_page-weatherabout_floatIdle 3s ease-in-out infinite alternate;
      color: #475569;
    }
body.page-weatherabout .phone-item:hover {
      transform: scale(1.25) translateY(-3px);
      color: #0f172a;
    }
body.page-weatherabout .phone-vector-svg {
      width: 22px; height: 22px;
      stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    }
body.page-weatherabout .phone-item.falling {
      pointer-events: none;
      animation: kf_page-weatherabout_dropPhysics 0.75s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
    }
body.page-weatherabout .phone-item.spawning { animation: kf_page-weatherabout_popSpawn 0.45s var(--ease-elastic) forwards; }
@keyframes kf_page-weatherabout_floatIdle {
      0% { transform: translateY(0) rotate(0deg); }
      100% { transform: translateY(-6px) rotate(6deg); }
    }
@keyframes kf_page-weatherabout_dropPhysics {
      0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
      30% { transform: translateY(-12px) rotate(-15deg) scale(1.15); opacity: 1; }
      100% { transform: translateY(130px) rotate(360deg) scale(0.3); opacity: 0; }
    }
@keyframes kf_page-weatherabout_popSpawn {
      0% { transform: scale(0) translateY(8px); opacity: 0; }
      100% { transform: scale(1) translateY(0); opacity: 1; }
    }
@media (max-width: 900px) {body.page-weatherabout .main { padding: 30px 16px 40px 16px; }
body.page-weatherabout .glass-card { padding: 24px 20px; }
body.page-weatherabout .phones-interactive-bar { gap: 14px; }}


/* ===== SCOPED: page-esphoneswiki (оригинал) ===== */
/* ===== RESET & CORE STYLES ===== */
    *, *::before, *::after {
      margin: 0; padding: 0;
      box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
body.page-esphoneswiki {
      background: var(--bg-base);
      color: var(--text-main);
      font-family: var(--font-sans);
      scroll-behavior: smooth;
    }
body.page-esphoneswiki {
      min-height: 100dvh;
      overflow-x: hidden;
      line-height: 1.6;
    }
/* ===== LIQUID AMBIENT BACKGROUND ===== */
    .liquid-ambient {
      position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
    }
body.page-esphoneswiki .liquid-blob {
      position: absolute; border-radius: 50%; filter: blur(80px);
      opacity: 0.12; animation-iteration-count: infinite; animation-timing-function: var(--ease-liquid);
    }
body.page-esphoneswiki .liquid-blob-1 {
      width: 500px; height: 500px; background: radial-gradient(circle, #f43f5e22, transparent 70%);
      top: -10%; right: -10%; animation: blobFloat1 20s infinite;
    }
body.page-esphoneswiki .liquid-blob-2 {
      width: 400px; height: 400px; background: radial-gradient(circle, #38bdf822, transparent 70%);
      bottom: -10%; left: -5%; animation: blobFloat2 24s infinite;
    }
body.page-esphoneswiki .liquid-blob-3 {
      width: 350px; height: 350px; background: radial-gradient(circle, #a855f722, transparent 70%);
      top: 60%; right: 20%; animation: blobFloat3 18s infinite;
    }
@keyframes kf_page-esphoneswiki_blobFloat1 {
      0%, 100% { transform: translate(0,0) scale(1) rotate(0); }
      25% { transform: translate(60px,-40px) scale(1.12) rotate(2deg); }
      50% { transform: translate(-30px,-80px) scale(0.92) rotate(-1deg); }
      75% { transform: translate(-70px,20px) scale(1.08) rotate(1deg); }
    }
@keyframes kf_page-esphoneswiki_blobFloat2 {
      0%, 100% { transform: translate(0,0) scale(1); }
      33% { transform: translate(50px,-60px) scale(1.15); }
      66% { transform: translate(-40px,50px) scale(0.88); }
    }
@keyframes kf_page-esphoneswiki_blobFloat3 {
      0%, 100% { transform: translate(0,0) scale(1); }
      50% { transform: translate(-80px,-50px) scale(1.2); }
    }
/* ===== STANDARD HEADER ===== */
    .header-wrapper {
      position: fixed; top: 16px; left: 0; right: 0;
      z-index: 1000; display: flex; justify-content: center;
      padding: 0 16px; pointer-events: none;
    }
body.page-esphoneswiki .header {
      position: relative;
      pointer-events: auto;
      width: 100%; max-width: 1100px; 
      padding: 11px 24px;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      border-radius: 100px;
      border: 1px solid var(--glass-border);
      box-shadow: 0 20px 40px -15px rgba(0,0,0,0.06), inset 0 1px 2px rgba(255,255,255,1);
      display: flex; align-items: center; justify-content: space-between;
    }
body.page-esphoneswiki .header .logo {
      display: flex; align-items: center; text-decoration: none; cursor: pointer;
    }
body.page-esphoneswiki .header .logo-img {
      height: 40px; width: auto; object-fit: contain;
    }

/* ===== WIKI HERO ===== */
    .wiki-hero {
      position: relative; width: 100%; padding: 140px 24px 60px;
      background: linear-gradient(135deg, #0a0210 0%, #1a0a1e 30%, #0d0a1a 60%, #060210 100%);
      text-align: center; overflow: hidden;
    }
body.page-esphoneswiki .wiki-hero::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse at 30% 50%, rgba(244,63,94,0.12) 0%, transparent 60%),
                  radial-gradient(ellipse at 70% 30%, rgba(56,189,248,0.08) 0%, transparent 50%);
      pointer-events: none;
    }
body.page-esphoneswiki .wiki-hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
body.page-esphoneswiki .wiki-hero h1 {
      font-size: clamp(36px, 5vw, 56px); font-weight: 900; letter-spacing: -0.02em;
      color: #fff; margin-bottom: 16px; text-shadow: 0 8px 40px rgba(0,0,0,0.8);
    }
body.page-esphoneswiki .wiki-hero p {
      font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.6);
      max-width: 600px; margin: 0 auto 32px; line-height: 1.7;
    }
body.page-esphoneswiki .wiki-search { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; }
body.page-esphoneswiki .wiki-search input {
      width: 100%; padding: 16px 20px 16px 52px; border-radius: 100px;
      border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06);
      backdrop-filter: blur(20px); color: #fff; font-size: 15px; font-family: var(--font-sans);
      font-weight: 500; outline: none; transition: all 0.4s var(--ease-spring);
    }
body.page-esphoneswiki .wiki-search input::placeholder { color: rgba(255,255,255,0.3); }
body.page-esphoneswiki .wiki-search input:focus {
      border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1);
      box-shadow: 0 0 0 6px rgba(255,255,255,0.06), 0 0 40px rgba(255,255,255,0.1);
    }
body.page-esphoneswiki .wiki-search svg {
      position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
      width: 20px; height: 20px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 2;
    }
/* ===== FLOATING ROUNDED STICKY NAV ===== */
    .wiki-nav-wrapper {
      position: sticky; top: 88px; z-index: 50;
      display: flex; justify-content: center;
      padding: 0 16px; margin: 28px 0 20px 0;
      pointer-events: none;
    }
body.page-esphoneswiki .wiki-nav-inner {
      pointer-events: auto;
      width: 100%; max-width: 1100px; 
      padding: 9px 14px;
      background: var(--glass-bg);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      border-radius: 100px;
      border: 1px solid var(--glass-border);
      box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.07), inset 0 1px 2px rgba(255,255,255,1);
      display: flex; gap: 6px; align-items: center; justify-content: center;
      overflow-x: auto;
    }
body.page-esphoneswiki .wiki-nav-inner::-webkit-scrollbar { display: none; }
body.page-esphoneswiki .wiki-nav-tab {
      padding: 8px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
      color: var(--text-muted); cursor: pointer; white-space: nowrap; border: none;
      background: transparent; font-family: var(--font-sans); 
      transition: all 0.35s var(--ease-spring);
    }
body.page-esphoneswiki .wiki-nav-tab:hover { color: var(--text-main); background: rgba(0, 0, 0, 0.04); transform: scale(1.02); }
body.page-esphoneswiki .wiki-nav-tab.active { 
      background: #ffffff; color: var(--text-main); font-weight: 800; 
      box-shadow: 0 4px 15px rgba(0,0,0,0.06), 0 0 0 1px rgba(15,23,42,0.12);
    }
/* ===== WIKI MAIN CONTENT ===== */
    .wiki-main {
      position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 10px 24px 80px;
    }
body.page-esphoneswiki .wiki-section { margin-bottom: 64px; scroll-margin-top: 150px; }
body.page-esphoneswiki .wiki-section-title {
      font-size: clamp(26px, 3.5vw, 34px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px;
    }
body.page-esphoneswiki .wiki-section-desc {
      font-size: 15.5px; color: var(--text-muted); font-weight: 500; margin-bottom: 32px; max-width: 800px; line-height: 1.7;
    }
body.page-esphoneswiki .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.page-esphoneswiki .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
/* ===== GLASS CARDS ===== */
    .glass-card {
      position: relative;
      background: var(--card-bg);
      backdrop-filter: blur(28px) saturate(160%);
      -webkit-backdrop-filter: blur(28px) saturate(160%);
      border-radius: 28px;
      border: 1px solid var(--card-border);
      padding: 32px;
      transition: transform 0.4s var(--ease-spring), 
                  box-shadow 0.4s ease, 
                  background 0.4s ease, 
                  border-color 0.4s ease;
      overflow: hidden;
      will-change: transform;
    }
body.page-esphoneswiki .glass-card::before {
      content: ''; position: absolute;
      top: var(--mouse-y, -150px); left: var(--mouse-x, -150px);
      width: 350px; height: 350px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
      transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
      transition: opacity 0.35s ease; z-index: 0;
    }
body.page-esphoneswiki .glass-card::after {
      content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.4));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      opacity: 0; transition: opacity 0.4s ease; z-index: 0; pointer-events: none;
    }
body.page-esphoneswiki .glass-card:hover {
      transform: translateY(-5px) scale(1.012);
      background: rgba(255, 255, 255, 0.92);
      border-color: #ffffff;
      box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 
                  0 0 0 1px rgba(255, 255, 255, 0.9);
    }
body.page-esphoneswiki .glass-card:hover::before, body.page-esphoneswiki .glass-card:hover::after { opacity: 1; }
body.page-esphoneswiki .glass-card:active { transform: scale(0.985); }
body.page-esphoneswiki .glass-card .card-icon {
      width: 44px; height: 44px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 16px; font-size: 22px; font-weight: 700; position: relative; z-index: 1;
    }
body.page-esphoneswiki .glass-card h3 {
      font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
      margin-bottom: 12px; position: relative; z-index: 1; color: var(--text-main);
    }
body.page-esphoneswiki .glass-card h4 {
      font-size: 16px; font-weight: 800; letter-spacing: -0.01em;
      margin: 16px 0 8px; position: relative; z-index: 1; color: var(--text-main);
    }
body.page-esphoneswiki .glass-card p {
      font-size: 14.5px; font-weight: 500; color: var(--text-muted);
      line-height: 1.65; position: relative; z-index: 1;
    }
/* Features List */
    .feature-list { list-style: none; padding: 0; margin-top: 12px; position: relative; z-index: 1; }
body.page-esphoneswiki .feature-list li {
      padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--text-main);
      border-bottom: 1px solid var(--glass-border-subtle); display: flex; align-items: center; gap: 8px; line-height: 1.4;
    }
body.page-esphoneswiki .feature-list li:last-child { border-bottom: none; }
body.page-esphoneswiki .feature-list li::before {
      content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-main); flex-shrink: 0;
    }
/* Interactive Command Blocks */
    .cmd-block {
      background: rgba(255, 255, 255, 0.65);
      border: 1px solid var(--glass-border-subtle);
      border-left: 3px solid var(--text-main);
      border-radius: 12px; padding: 10px 14px;
      font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--text-main);
      margin: 8px 0; display: flex; align-items: center; justify-content: space-between;
      cursor: pointer; transition: all 0.25s var(--ease-spring); position: relative; z-index: 1;
    }
body.page-esphoneswiki .cmd-block:hover {
      background: #ffffff; transform: translateX(6px);
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); border-color: rgba(15, 23, 42, 0.2);
    }
body.page-esphoneswiki .cmd-block::after {
      content: 'копировать 📋'; font-family: var(--font-sans);
      font-size: 11px; font-weight: 800; color: var(--text-muted);
      opacity: 0; transform: translateX(-6px); transition: all 0.2s var(--ease-spring);
    }
body.page-esphoneswiki .cmd-block:hover::after { opacity: 1; transform: translateX(0); }
/* Category Filter Sub-Pills */
    .filter-pills {
      display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; position: relative; z-index: 1;
    }
body.page-esphoneswiki .filter-pill {
      padding: 6px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 700;
      background: rgba(255, 255, 255, 0.85); color: var(--text-muted); 
      border: 1px solid rgba(226, 232, 240, 0.8);
      cursor: pointer; transition: all 0.2s ease;
      backdrop-filter: blur(10px);
    }
body.page-esphoneswiki .filter-pill:hover, body.page-esphoneswiki .filter-pill.active {
      background: #ffffff; color: var(--text-main); border-color: rgba(15, 23, 42, 0.2);
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }
body.page-esphoneswiki .cmd-tag {
      background: rgba(15, 23, 42, 0.06); border: 1px solid rgba(15, 23, 42, 0.1);
      padding: 2px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: 12.5px;
      color: var(--text-main); font-weight: 700; cursor: pointer; transition: 0.2s;
    }
body.page-esphoneswiki .cmd-tag:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
body.page-esphoneswiki .badge-plain {
      display: inline-block; background: rgba(15, 23, 42, 0.05); border: 1px solid rgba(15, 23, 42, 0.1);
      padding: 3px 9px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px;
      font-weight: 700; color: var(--text-main); margin: 3px 2px;
    }
/* Rarity Chain */
    .rarity-chain { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; position: relative; z-index: 1; }
body.page-esphoneswiki .rarity-chain .r {
      padding: 8px 16px; border-radius: 100px; font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
      text-transform: uppercase; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--glass-border);
      cursor: pointer; transition: all 0.3s var(--ease-spring);
    }
body.page-esphoneswiki .rarity-chain .r:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
/* Tables */
    .wiki-table-wrap {
      overflow-x: auto; border-radius: 20px; border: 1px solid var(--glass-border-subtle);
      background: rgba(255,255,255,0.78); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
      margin-bottom: 24px; position: relative; z-index: 1;
    }
body.page-esphoneswiki .wiki-table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.page-esphoneswiki .wiki-table th {
      text-align: left; padding: 14px 18px; font-weight: 800; font-size: 12px;
      text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
      border-bottom: 1px solid var(--glass-border-subtle); background: rgba(15,23,42,0.02);
    }
body.page-esphoneswiki .wiki-table td { padding: 14px 18px; font-weight: 600; border-bottom: 1px solid var(--glass-border-subtle); }
body.page-esphoneswiki .wiki-table tr:last-child td { border-bottom: none; }
body.page-esphoneswiki .badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }
/* ===== STANDARD FOOTER ===== */
    .footer {
      text-align: center; margin-top: 60px; padding-top: 30px; padding-bottom: 40px;
      border-top: 1px solid var(--glass-border-subtle); display: flex; flex-direction: column; align-items: center; gap: 14px;
    }
body.page-esphoneswiki .minimal-socials-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-bottom: 12px; }
body.page-esphoneswiki .social-chip {
      background: rgba(255, 255, 255, 0.72); border: 1px solid var(--glass-border-subtle); border-radius: 100px;
      padding: 6px 14px; font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--text-main);
      display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.25s var(--ease-spring); backdrop-filter: blur(10px);
    }
body.page-esphoneswiki .social-chip:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); border-color: rgba(15, 23, 42, 0.18); }
body.page-esphoneswiki .social-chip:active { transform: scale(0.96); }
body.page-esphoneswiki .custom-copy-svg { width: 14px; height: 14px; stroke: #94a3b8; fill: none; transition: stroke 0.2s ease; }
body.page-esphoneswiki .social-chip:hover .custom-copy-svg { stroke: #0f172a; }
body.page-esphoneswiki .footer-logo-img { height: 38px; width: auto; object-fit: contain; }
body.page-esphoneswiki .footer-rights-box { display: flex; flex-direction: column; gap: 3px; }
body.page-esphoneswiki .footer-rights-text { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
body.page-esphoneswiki .krsk-time { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-main); opacity: 0.8; }
body.page-esphoneswiki .footer-credits { font-size: 11px; font-weight: 700; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.5px; }
/* Toast */
    .toast {
      position: fixed; bottom: 28px; right: 28px; background: rgba(15, 23, 42, 0.92); color: #fff;
      padding: 14px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
      backdrop-filter: blur(20px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
      transform: translateY(100px) scale(0.9); opacity: 0; transition: all 0.4s var(--ease-spring); z-index: 9999;
    }
body.page-esphoneswiki .toast.show { transform: translateY(0) scale(1); opacity: 1; }
/* Reveal Animations */
    .reveal {
      opacity: 0; transform: translateY(30px); filter: blur(4px);
      transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring), filter 0.8s ease;
    }
body.page-esphoneswiki .reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
@media (max-width: 900px)  {
body.page-esphoneswiki .grid-3, body.page-esphoneswiki .grid-2 { grid-template-columns: 1fr; }
body.page-esphoneswiki .wiki-main { padding: 10px 16px 60px; }
body.page-esphoneswiki .glass-card { padding: 24px 20px; }
body.page-esphoneswiki .wiki-nav-inner { padding: 6px; }
body.page-esphoneswiki .wiki-nav-tab { padding: 6px 14px; font-size: 12.5px; }
body.page-esphoneswiki .wiki-nav-wrapper { margin: 20px 0 16px 0; }
}

/* ===== SCOPED: page-escraft ===== */
body.page-escraft 
/* escraft: кнопка запуска игры */
body.page-escraft .play-btn-card {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff; font-size: 15px; font-weight: 800;
  padding: 14px 28px; border-radius: 100px;
  text-decoration: none; box-shadow: 0 12px 28px -10px rgba(22, 163, 74, 0.55);
  transition: transform 0.25s, box-shadow 0.25s;
}
body.page-escraft .play-btn-card:hover {
  transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(22, 163, 74, 0.65);
}

/* ===== AUTH (esID) — стили из signup.html ===== */
body.page-auth *, body.page-auth *::before, body.page-auth *::after {
      margin: 0; padding: 0; box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
      user-select: none;
    }
body.page-auth {
      --bg-color: #f0f2f5;
      --font-main: 'Inter', sans-serif;
      --glass-bg: rgba(255, 255, 255, 0.7);
      --glass-border: rgba(255, 255, 255, 0.9);
      background-color: var(--bg-color);
      font-family: var(--font-main);
      /* Базовый текст пожирнее */
      font-weight: 600;
      height: 100vh; width: 100vw;
      overflow: hidden; display: flex;
      align-items: center; justify-content: center;
      color: var(--text-main);
    }
body.page-auth .ambient-blob {
      position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; opacity: 0.4;
    }
body.page-auth .blob-1 { width: 400px; height: 400px; background: #e2e8f0; top: 10%; left: 20%; }
body.page-auth .blob-2 { width: 500px; height: 500px; background: #cbd5e1; bottom: 10%; right: 15%; }
body.page-auth #physics-container {
      position: relative;
      z-index: 10;
    }
body.page-auth .glass-card {
      width: 360px; height: 460px; /* Чуть поменьше */
      background: var(--glass-bg);
      backdrop-filter: blur(30px) saturate(150%);
      -webkit-backdrop-filter: blur(30px) saturate(150%);
      border: 1px solid var(--glass-border);
      border-radius: 32px;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 2px 3px rgba(255, 255, 255, 1);
      position: relative; overflow: hidden;
      display: flex; flex-direction: column;
      padding: 40px;
      transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
      will-change: transform, opacity;
    }
body.page-auth .step-content {
      position: absolute; inset: 40px;
      display: flex; flex-direction: column;
      opacity: 0; pointer-events: none;
      filter: blur(15px); transform: scale(0.95);
      transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                  filter 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                  transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }
body.page-auth .step-content.active {
      opacity: 1; pointer-events: auto;
      filter: blur(0); transform: scale(1);
    }
body.page-auth /* Типографика пожирнее */
    h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
body.page-auth p.subtitle { font-size: 15px; color: var(--text-muted); font-weight: 600; margin-bottom: 32px; line-height: 1.5; }
body.page-auth .input-group { display: flex; flex-direction: column; gap: 16px; width: 100%; margin-bottom: auto; }
body.page-auth input {
      width: 100%; padding: 18px 20px;
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.8);
      border-radius: 16px; font-size: 15px; font-weight: 700;
      color: var(--text-main); font-family: var(--font-main);
      outline: none; transition: all 0.3s ease;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    }
body.page-auth input::placeholder { color: #94a3b8; font-weight: 600; }
body.page-auth input:focus {
      background: rgba(255, 255, 255, 0.8);
      border-color: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
body.page-auth button.btn-black {
      width: 100%; padding: 18px; border: none; border-radius: 16px;
      background: #000; color: #fff; font-size: 15px; font-weight: 800;
      cursor: pointer; transition: transform 0.3s cubic-bezier(0.34, 1.45, 0.64, 1), background 0.3s, box-shadow 0.3s;
      box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
body.page-auth button.btn-black:hover { transform: scale(1.02); box-shadow: 0 15px 25px rgba(0,0,0,0.2); }
body.page-auth button.btn-black:active { transform: scale(0.97); }
body.page-auth .success-container {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      height: 100%; text-align: center; gap: 20px;
    }
body.page-auth .success-title { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 24px; }
body.page-auth /* Анимация галочки */
    .check-svg { 
      width: 80px; height: 80px; display: block; margin-bottom: 10px;
      transform: scale(0.6); opacity: 0;
      transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    }
body.page-auth .step-content.active .check-svg {
      transform: scale(1); opacity: 1;
      transition-delay: 0.2s;
    }
body.page-auth .check-circle {
      stroke-dasharray: 151; stroke-dashoffset: 151; stroke-width: 3; stroke: #000;
      stroke-miterlimit: 10; fill: none;
    }
body.page-auth .check-path {
      stroke-dasharray: 30; stroke-dashoffset: 30; stroke-width: 4; stroke-linecap: round;
      stroke-linejoin: round; stroke: #000; fill: none;
    }
body.page-auth .step-content.active .check-circle { animation: kf_pageauth_stroke 0.7s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards; }
body.page-auth .step-content.active .check-path { animation: kf_pageauth_stroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 1.1s forwards; }
body.page-auth .step-content.active .check-svg {
      animation: kf_pageauth_pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s;
    }
body.page-auth #shatter-canvas {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      pointer-events: none; z-index: 100; opacity: 0;
      transition: opacity 0.8s ease;
    }
@keyframes kf_pageauth_stroke { 100% { stroke-dashoffset: 0; } }

@keyframes kf_pageauth_pop {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }
/* ===== AUTH (esID) — дополнительные ===== */
body.page-auth .btn-choice-group { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
body.page-auth .btn-link {
  background: none; border: none; color: #64748b; font-weight: 700; font-size: 14px;
  cursor: pointer; padding: 12px 10px; transition: color 0.2s;
}
body.page-auth .btn-link:hover { color: #0f172a; }
body.page-auth .error-msg { opacity: 0; color: #dc2626; font-size: 13px; font-weight: 700; margin-top: 4px; transition: opacity 0.3s; }
/* ===== AUTH (esID) микроанимации ===== */
body.page-auth .btn-black { transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s; }
body.page-auth .btn-black:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
body.page-auth .btn-black:active { transform: translateY(0) scale(0.97); }
body.page-auth .btn-black:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
body.page-auth .btn-ghost { background: transparent; color: #000; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: none; }
body.page-auth .btn-ghost:hover { border-color: rgba(0, 0, 0, 0.3); box-shadow: none; }
body.page-auth .input-group input { transition: border-color 0.2s, box-shadow 0.2s; }
body.page-auth .input-group input:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
body.page-auth .otp-box { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
body.page-auth .otp-box input {
  width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 12px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
body.page-auth .otp-box input:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }
body.page-oldwiki .morphing-glass-pill {
  position: relative;
  top: auto; right: auto;
  transform: none;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}
body.page-oldwiki .morphing-glass-pill.active {
  width: 200px; height: 340px;
  background: rgba(255, 255, 255, 0.94);
}
body.page-oldwiki .morphing-glass-pill.active.submenu-open {
  height: 495px;
}

/* ===== SCOPED: page-404 ===== */
body.page-404 {
  --bg-base: #f0f2f5;
  --text-main: #0f172a;
  --text-muted: #64748b;
  background: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-404 .e404-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px;
  box-sizing: border-box;
}

body.page-404 .error-card {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.18), inset 0 1px 2px rgba(255, 255, 255, 1);
  padding: 40px 48px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
}

body.page-404 .error-code-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.page-404 .digit {
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(135deg, #0f172a, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.page-404 .phone-zero-box {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #e2e8f0);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.9), 0 10px 24px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-404 .phone-svg-icon {
  width: 44px;
  height: 44px;
  stroke: #0f172a;
  stroke-width: 1.8;
  stroke-linecap: round;
}

body.page-404 .error-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 26px 0 8px;
}

body.page-404 .error-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 26px;
}

body.page-404 .btn-return-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

body.page-404 .btn-return-home:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.45);
}

body.page-404 .btn-return-home svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== SITE-WIDE SEARCH (header widget) ===== */
.site-search {
  position: absolute;
  top: 50%; right: 76px;
  transform: translateY(-50%);
  z-index: 1006;
  width: 40px; height: 40px;
  opacity: 1;
  filter: blur(0);
  visibility: visible;
  transition: opacity 0.35s ease 0.5s,
              filter 0.35s ease 0.5s,
              visibility 0s 0.5s;
}
.morphing-glass-pill.active ~ .site-search {
  opacity: 0;
  filter: blur(8px);
  visibility: hidden;
  transition: opacity 0.3s ease 0s,
              filter 0.3s ease 0s,
              visibility 0s 0.3s;
}
.site-search-trigger {
  position: absolute; inset: 0;
  width: 40px; height: 40px;
  border: none; background: transparent;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  color: #0f172a;
  transition: background 0.25s ease, transform 0.35s var(--ease-elastic), opacity 0.18s ease;
}
.site-search-trigger:hover { background: rgba(15, 23, 42, 0.05); transform: scale(1.06); }
.site-search.open .site-search-trigger { opacity: 0; pointer-events: none; }
.site-search-trigger svg { width: 21px; height: 21px; }

.site-search-panel {
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px -14px rgba(15, 23, 42, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.18s ease,
              transform 0.28s var(--ease-spring),
              width 0.55s var(--ease-elastic),
              border-radius 0.55s var(--ease-elastic),
              box-shadow 0.4s ease;
}
.site-search.open .site-search-panel { opacity: 1; transform: scale(1); }
.site-search.open.stretch .site-search-panel { border-radius: 100px; pointer-events: auto; }

.site-search-panel-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
}
.site-search-panel-inner > svg { width: 18px; height: 18px; color: #64748b; flex-shrink: 0; }
.site-search-input {
  flex: 1; min-width: 0;
  border: none; background: transparent; outline: none;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  color: #0f172a;
}
.site-search-input::placeholder { color: #94a3b8; }

.site-search-results {
  position: absolute;
  top: calc(100% + 14px); right: 0;
  width: 380px; max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 30px 60px -16px rgba(15, 23, 42, 0.28), inset 0 1px 2px rgba(255, 255, 255, 1);
  overflow: hidden;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}
.site-search-results.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.site-search-result {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 44px 12px 18px;
  text-decoration: none; color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.2s ease;
}
.site-search-result:last-child { border-bottom: none; }
.site-search-result:hover { background: rgba(15, 23, 42, 0.04); }
.site-search-result-kind {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: #94a3b8;
}
.site-search-result-title { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.site-search-result-text {
  font-size: 12.5px; color: #1e293b; font-weight: 400;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.site-search-result-context { color: #94a3b8; font-weight: 600; margin-right: 2px; }
.site-search-result-text mark {
  background: rgba(15, 23, 42, 0.1); color: #0f172a;
  font-weight: 700; border-radius: 3px; padding: 0 3px;
}
.site-search-result-arrow {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px; color: #94a3b8;
  transition: color 0.2s ease, transform 0.25s var(--ease-spring);
}
.site-search-result:hover .site-search-result-arrow { color: #0f172a; transform: translateY(-50%) translateX(2px); }
.site-search-empty, .site-search-error {
  padding: 16px 18px; font-size: 13.5px; color: #64748b; font-weight: 600;
}

@media (max-width: 620px) {
   .site-search {
      right: 77px;
   }

   .site-search-panel {
      position: absolute;
      top: 0;
      right: 0;
   }

   .site-search-results {
      position: absolute;
      top: calc(100% + 14px);
      right: 0;
      left: auto;
      max-width: none;
   }
}
