/* ==========================================================================
   Эстетика выцветшего окисленного железа и пепла / PS1 Silent Hill + олдскульные 2000-е
   Строгие правила:
   - Без сканлайнов, без скруглений (border-radius: 0), без современных мягких карточек
   - Максимально приглушённые, малонасыщенные тона тёмного железа и пепла
   - Тёмные цилиндрические металлические градиенты на планках и кнопках в духе ручной работы 2000-х
   - Пиксельная текстура панелей применяется только на Главной; на остальных вкладках — спокойный тёмный цвет
   ========================================================================== */

/* === ADMIN_THEME_START === */
:root {
  --scale: 1.25;
  --site-width: calc(720px * var(--scale));
  --font-scale: 1;
  --pixel-scale: 2;

  --font-main: "Anonymous Pro", "Courier New", monospace;
  --font-title: "Anonymous Pro", "Courier New", monospace;
  --font-mono: "Anonymous Pro", "Courier New", monospace;

  --page-bg: #030303;
  --wrapper-bg: #000000;
  --wrapper-alpha: 100%;
  --panel-tex-size: auto;
  --panel-tex-bright: 30%;
  --panel-tex-tint: #525252;
  --link-color: #dad2cb;
  --link-hover: #ffffff;

  /* Служебная переменная — не трогай */
  --fs: calc(var(--scale) * var(--font-scale));
}
/* === ADMIN_THEME_END === */

* {
  box-sizing: border-box;
  border-radius: 0;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--page-bg);
  /* Едва заметная пыльная фактура пепла (без сканлайнов); заменяется на assets/bg-tile.* при загрузке своего фона */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Crect width='64' height='64' fill='none'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23473e3c' fill-opacity='0.22'/%3E%3Crect x='23' y='4' width='2' height='1' fill='%23332d2c' fill-opacity='0.28'/%3E%3Crect x='47' y='15' width='1' height='1' fill='%23524744' fill-opacity='0.18'/%3E%3Crect x='14' y='31' width='1' height='2' fill='%233b3331' fill-opacity='0.25'/%3E%3Crect x='39' y='28' width='1' height='1' fill='%234c4240' fill-opacity='0.2'/%3E%3Crect x='58' y='37' width='2' height='1' fill='%23362f2e' fill-opacity='0.24'/%3E%3Crect x='11' y='52' width='1' height='1' fill='%23504643' fill-opacity='0.2'/%3E%3Crect x='33' y='57' width='2' height='1' fill='%232e2928' fill-opacity='0.26'/%3E%3Crect x='52' y='60' width='1' height='1' fill='%23453c3a' fill-opacity='0.22'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-attachment: fixed;
  color: #f2f0ee;
  font-family: var(--font-main);
  font-size: calc(12px * var(--fs));
  line-height: 1.58;
}

/* Классические подчёркнутые ссылки: нажатые ссылки НЕ меняют цвет и НЕ синеют */
a,
a:visited,
a:active {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: #574a46;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
  background-color: #211c1b;
  text-decoration-color: #8c736b;
}

a:focus {
  outline: 1px dotted #665753;
}

p {
  margin: 0 0 calc(10px * var(--scale)) 0;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  background-color: #0e0d0d;
  border: 1px solid #38302e;
  padding: 1px 4px;
  color: #d8d0cc;
}

img {
  display: block;
  border: 0;
}

/* ==================== ГЛАВНАЯ КОЛОНКА (ПРИГЛУШЁННОЕ ОКИСЛЕННОЕ ЖЕЛЕЗО) ==================== */

#wrapper {
  position: relative;
  width: var(--site-width);
  max-width: calc(100% - 24px);
  min-height: calc(100vh - 24px * var(--scale));
  min-height: calc(100dvh - 24px * var(--scale));
  margin: calc(12px * var(--scale)) auto;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 1);
  background-color: color-mix(in srgb, var(--wrapper-bg) var(--wrapper-alpha), transparent);
  border: 3px double #4a3c39;
  outline: 1px solid #1c1817;
  outline-offset: 4px;
}

/* ==================== 1. ШАПКА ==================== */

#site-header {
  flex: 0 0 auto;
  padding: calc(12px * var(--scale)) calc(12px * var(--scale)) 0 calc(12px * var(--scale));
}

.header-banner-box {
  border: 1px solid #4a3d3a;
  border-top-color: #5c4e4a;
  border-bottom-color: #302826;
  background-color: #080707;
  background-image: linear-gradient(180deg, #241f1e 0%, #090808 50%, #1c1817 100%);
  box-shadow: inset 0 1px 0 rgba(214, 200, 194, 0.14);
  padding: 3px;
}

/* На всех вкладках кроме «Главной» баннер скрыт — остаётся компактная полоска с ником, меню и статусом */
body:not([data-active-tab="home"]) #header-banner-box {
  display: none;
}

body:not([data-active-tab="home"]) .top-nav-bar {
  margin-bottom: calc(6px * var(--scale));
}

body:not([data-active-tab="home"]) .status-bar {
  margin-top: 0;
}

.header-banner-box.is-clickable {
  cursor: pointer;
}

.header-banner-box.is-clickable:hover {
  border-color: #7d645d;
}

.header-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-placeholder {
  min-height: calc(106px * var(--scale));
  padding: calc(18px * var(--scale));
  border: 1px dashed #453936;
  margin: 4px;
  background-color: #0f0d0d;
}

.site-title {
  font-family: var(--font-title);
  font-size: calc(27px * var(--fs));
  font-weight: bold;
  letter-spacing: 1px;
  color: #f6f4f3;
  margin-bottom: calc(5px * var(--scale));
}

.site-subtitle {
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #cac7c6;
  margin-bottom: calc(10px * var(--scale));
}

.placeholder-hint {
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--fs));
  color: #9f9a98;
}

/* ==================== 2. ВЕРХНЯЯ ПАНЕЛЬ (НИК + ФРАЗЫ + НАВИГАЦИЯ) ==================== */

@keyframes brand-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes status-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.22; }
}

.top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(10px * var(--scale));
  margin-bottom: calc(10px * var(--scale));
  padding: calc(7px * var(--scale)) calc(12px * var(--scale));
  background-color: #090808;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, #1a1615 0%, #342d2b 18%, #191514 42%, #050404 64%, #0e0c0c 85%, #241f1e 100%);
  border: 1px solid #453a37;
  border-top-color: #5c4e4a;
  border-bottom-color: #2b2422;
  box-shadow:
    inset 0 1px 0 rgba(224, 210, 204, 0.17),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78);
}

.brand-area {
  flex: 1 1 180px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.brand-logo,
.brand-logo:visited,
.brand-logo:active {
  font-family: var(--font-title);
  font-size: calc(14.5px * var(--fs));
  font-weight: bold;
  letter-spacing: 1px;
  color: #f8f6f4;
  text-decoration: none;
  background-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.brand-logo:hover {
  color: #ffffff;
  background-color: transparent;
}

.brand-sep {
  font-family: var(--font-mono);
  font-size: calc(11.5px * var(--fs));
  color: #9e928f;
  margin: 0 calc(6px * var(--scale));
}

.brand-phrase {
  font-family: var(--font-mono);
  font-size: calc(11.5px * var(--fs));
  color: #dfdcda;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.brand-cursor {
  display: inline-block;
  margin-left: 1px;
  color: #e4d8d4;
  font-family: var(--font-mono);
  font-size: calc(13px * var(--fs));
  font-weight: normal;
  animation: brand-cursor-blink 0.95s step-end infinite;
}

#main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: calc(11.5px * var(--fs));
  text-align: right;
}

.nav-link,
.nav-link:visited {
  padding: calc(3px * var(--scale)) calc(6px * var(--scale));
  color: #e7e4e2;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background-color: #1f1b1a;
  background-image: linear-gradient(180deg, #2d2725 0%, #141111 60%, #201c1b 100%);
  box-shadow: inset 0 1px 0 rgba(220, 208, 202, 0.14);
  text-decoration: none;
}

.nav-link.is-active,
.nav-link.is-active:visited {
  color: #ffffff;
  background-color: #211c1b;
  background-image: linear-gradient(180deg, #3a3230 0%, #211c1b 45%, #0e0c0c 55%, #231e1d 100%);
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #61524e;
  border-top-color: #786762;
  box-shadow:
    inset 0 1px 0 rgba(235, 222, 216, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.nav-sep {
  color: #8d8584;
  margin: 0 calc(4px * var(--scale));
}

/* ==================== СТРОКА СТАТУСА ==================== */

.status-bar {
  width: 100%;
  margin-top: calc(8px * var(--scale));
  border: 1px solid #403633;
  border-top-color: #292220;
  border-bottom-color: #544743;
  background-color: #080707;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 7%, rgba(0, 0, 0, 0) 93%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, #060505 0%, #1a1615 24%, #090808 60%, #151212 88%, #241f1e 100%);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.8),
    inset 0 -1px 0 rgba(210, 196, 190, 0.13);
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
}

.status-bar td {
  padding: calc(6px * var(--scale)) calc(9px * var(--scale));
}

.status-cell {
  color: #f2f0ee;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff382e;
  box-shadow: 0 0 0 1px rgba(255, 56, 46, 0.38), 0 0 5px rgba(255, 56, 46, 0.45);
  margin-right: 8px;
  vertical-align: 1px;
  animation: status-dot-pulse 2.2s ease-in-out infinite;
}

.updated-cell {
  text-align: right;
  white-space: nowrap;
  color: #f2f0ee;
  border-left: 1px solid #332a28;
  width: calc(174px * var(--scale));
}

/* Белое свечение текущего статуса и даты обновления */
.status-glow {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.85), 0 0 14px rgba(255, 255, 255, 0.45);
}

.lang-cell {
  text-align: center;
  white-space: nowrap;
  border-left: 1px solid #332a28;
  width: calc(90px * var(--scale));
}

.lang-btn,
.lang-btn:visited {
  padding: 1px 5px;
  font-weight: bold;
  color: #dfdcda;
  text-decoration: none;
}

.lang-btn:hover {
  color: #ffffff;
  background-color: #1f1b1a;
  background-image: linear-gradient(180deg, #2d2725 0%, #141111 60%, #201c1b 100%);
  text-decoration: none;
}

.lang-btn.is-active,
.lang-btn.is-active:visited {
  color: #ffffff;
  background-color: #211c1b;
  background-image: linear-gradient(180deg, #3a3230 0%, #211c1b 45%, #0e0c0c 55%, #231e1d 100%);
  border: 1px solid #61524e;
  border-top-color: #786762;
  box-shadow: inset 0 1px 0 rgba(235, 222, 216, 0.2);
  text-decoration: none;
}

.meta-label {
  color: #e4d8d4;
}

/* ==================== ОСНОВНОЙ КОНТЕНТ И РАЗДЕЛЫ-ПЛАШКИ ==================== */

#content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: calc(12px * var(--scale));
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.section-box {
  border: 1px solid #3f3533;
  background-color: rgba(13, 11, 11, 0.92);
  padding: calc(13px * var(--scale));
  margin-bottom: calc(13px * var(--scale));
}

.section-box:last-child {
  margin-bottom: 0;
}

/* На вкладках с одним основным блоком тёмная рамка дотягивается до футера;
   блоки на Главной (с текстурой) и карточки дисков сохраняют свои точные пропорции без искажений при зуме */
#games-shelf-view.section-box,
#tab-diary > .section-box,
#tab-guestbook > .section-box,
#tab-links > .section-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Спокойные, компактные заголовки блоков (по умолчанию — во всю ширину) */
.section-title {
  margin: 0 0 calc(12px * var(--scale)) 0;
  padding: 0 0 calc(6px * var(--scale)) 0;
  background-color: transparent;
  background-image: none;
  border-bottom: 1px solid #3a312e;
  font-family: var(--font-title);
  font-size: calc(14px * var(--fs));
  font-weight: bold;
  letter-spacing: 0.4px;
  color: #f8f6f4;
}

/* Возвращаемый кнопкой в админке металлический стиль: объёмная планка во всю ширину блока */
body.section-bars-metal .section-title {
  margin: calc(-13px * var(--scale)) calc(-13px * var(--scale)) calc(13px * var(--scale)) calc(-13px * var(--scale));
  padding: calc(7px * var(--scale)) calc(13px * var(--scale));
  background-color: #090808;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, #181414 0%, #302927 18%, #181414 42%, #050404 65%, #0d0b0b 85%, #221d1c 100%);
  border-bottom: 1px solid #4d413e;
  box-shadow:
    inset 0 1px 0 rgba(224, 210, 204, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72);
  font-size: calc(14.5px * var(--fs));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Пиксельная текстура панелей применяется ТОЛЬКО на Главной */
body.has-panel-tex[data-active-tab="home"] #tab-home .section-box {
  background-image: var(--panel-tex-url);
  background-repeat: repeat;
  background-position: top left;
  background-size: var(--panel-tex-size, 128px);
  image-rendering: pixelated;
  background-color: color-mix(in srgb, var(--panel-tex-tint, #ffffff) var(--panel-tex-bright, 30%), #000000);
  background-blend-mode: multiply;
}

body.has-panel-tex.section-bars-metal[data-active-tab="home"] #tab-home .section-title {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(180deg, rgba(28, 24, 23, 0.42) 0%, rgba(72, 62, 58, 0.46) 18%, rgba(22, 18, 18, 0.36) 42%, rgba(0, 0, 0, 0.78) 65%, rgba(12, 10, 10, 0.56) 85%, rgba(46, 39, 37, 0.42) 100%),
    var(--panel-tex-url);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, var(--panel-tex-size, 128px);
  image-rendering: pixelated;
  background-color: color-mix(in srgb, var(--panel-tex-tint, #b8aba6) var(--panel-tex-bright, 30%), #080707);
  background-blend-mode: normal, normal, multiply;
}

.section-title span {
  vertical-align: middle;
}

.section-intro {
  color: #dad6d4;
  margin-bottom: calc(12px * var(--scale));
}

/* Пустой слот иконки скрыт; появляется только если загружена своя 16x16 иконка */
.icon-16 {
  display: none;
  width: calc(16px * var(--pixel-scale));
  height: calc(16px * var(--pixel-scale));
  vertical-align: middle;
  margin-right: calc(7px * var(--scale));
  image-rendering: pixelated;
  overflow: hidden;
}

.icon-16.has-img {
  display: inline-block;
  background-color: transparent;
  border: 0;
}

.icon-16 img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* ==================== 3. БЛОК «ОБО МНЕ» ==================== */

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.avatar-col {
  width: calc(126px * var(--scale));
  vertical-align: top;
  padding-right: calc(16px * var(--scale));
}

@keyframes avatar-crt-scroll {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 6px, 0 0; }
}

@keyframes avatar-crt-flicker {
  0%, 100% { opacity: 0.84; }
  35% { opacity: 0.72; }
  52% { opacity: 0.92; }
  78% { opacity: 0.78; }
}

@keyframes avatar-crt-beam {
  0% { transform: translateY(-120%); opacity: 0; }
  12% { opacity: 1; }
  62% { transform: translateY(220%); opacity: 0.9; }
  70%, 100% { transform: translateY(220%); opacity: 0; }
}

#avatar-slot {
  position: relative;
  width: calc(106px * var(--scale));
  height: calc(106px * var(--scale));
  border: 3px double #52433f;
  padding: 3px;
  background-color: #080707;
  overflow: hidden;
}

/* Живые CRT-линии развёртки и лёгкая виньетка кинескопа на аватарке */
#avatar-slot::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  z-index: 2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.44) 0px,
      rgba(0, 0, 0, 0.44) 1px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 3px
    ),
    radial-gradient(circle at center, transparent 58%, rgba(0, 0, 0, 0.48) 100%);
  background-size: 100% 3px, 100% 100%;
  animation:
    avatar-crt-scroll 0.65s linear infinite,
    avatar-crt-flicker 3.4s steps(2, end) infinite;
}

/* Мягкий бегущий луч CRT-обновления сверху вниз по аватарке */
#avatar-slot::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  left: 3px;
  height: 36%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 240, 234, 0.09) 42%,
    rgba(255, 250, 246, 0.2) 50%,
    rgba(255, 240, 234, 0.07) 60%,
    transparent 100%
  );
  animation: avatar-crt-beam 4.2s linear infinite;
}

#avatar-slot:hover::after {
  animation-duration: 2.2s;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: #0a0909;
  color: #bcb8b6;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  object-fit: cover;
}

.avatar-caption {
  margin-top: calc(6px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #d1cdcb;
  text-align: center;
  width: calc(106px * var(--scale));
}

.about-text-col {
  vertical-align: top;
}

.about-gb-row {
  margin-top: calc(10px * var(--scale));
}

.about-gb-btn,
.about-gb-btn:visited,
.about-gb-btn:active {
  display: inline-block;
  padding: calc(5px * var(--scale)) calc(14px * var(--scale));
  color: #f4f1ef;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  font-weight: bold;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  background-color: #1d1817;
  background-image: linear-gradient(180deg, #37302d 0%, #211c1b 46%, #0e0c0c 54%, #221d1c 100%);
  border: 1px solid #6b5b56;
  border-top-color: #87746e;
  box-shadow: inset 0 1px 0 rgba(235, 222, 216, 0.2);
}

.about-gb-btn:hover {
  color: #ffffff;
  background-color: #2b2422;
  background-image: linear-gradient(180deg, #473d39 0%, #2b2422 46%, #151212 54%, #2e2725 100%);
  border-color: #9e847b;
}

.about-meta {
  margin-top: calc(10px * var(--scale));
  padding-top: calc(8px * var(--scale));
  border-top: 1px dotted #423734;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: calc(6px * var(--scale)) calc(12px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  color: #dedad8;
}

.about-contact-btn,
.about-contact-btn:visited,
.about-contact-btn:active {
  display: inline-block;
  width: calc(140px * var(--scale));
  max-width: 100%;
  text-align: center;
  padding: calc(4px * var(--scale)) calc(8px * var(--scale));
  color: #f2f0ee;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  background-color: #191514;
  background-image: linear-gradient(180deg, #312a28 0%, #1c1817 46%, #0c0a0a 54%, #1e1a19 100%);
  border: 1px solid #574945;
  border-top-color: #6e5d58;
  box-shadow: inset 0 1px 0 rgba(226, 212, 206, 0.16);
  white-space: nowrap;
}

.about-contact-btn:hover {
  color: #ffffff;
  background-color: #26201f;
  background-image: linear-gradient(180deg, #403734 0%, #26201f 46%, #131010 54%, #292322 100%);
  border-color: #8c736b;
}

.link-copy-btn {
  margin-left: calc(8px * var(--scale));
  padding: calc(1px * var(--scale)) calc(6px * var(--scale));
  background: transparent;
  border: 1px solid #4d3e3a;
  color: #e4d8d4;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  cursor: pointer;
}

.link-copy-btn:hover {
  color: #ffffff;
  border-color: #8c736b;
  background-color: rgba(34, 28, 27, 0.9);
}

.about-support {
  margin-top: calc(9px * var(--scale));
  padding-top: calc(9px * var(--scale));
  border-top: 1px dotted #3a302d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: calc(8px * var(--scale)) calc(14px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(12.2px * var(--fs));
}

.about-support-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: calc(12px * var(--scale));
}

@keyframes support-text-shimmer {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.85),
      0 0 14px rgba(255, 255, 255, 0.42),
      0 1px 2px rgba(0, 0, 0, 0.9);
  }
  50% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 1),
      0 0 22px rgba(255, 255, 255, 0.78),
      0 0 32px rgba(235, 224, 218, 0.42),
      0 1px 2px rgba(0, 0, 0, 0.9);
  }
}

.support-pill,
.support-pill:visited,
.support-pill:active {
  display: inline-block;
  flex: 1 1 0;
  max-width: calc(140px * var(--scale));
  min-width: calc(92px * var(--scale));
  text-align: center;
  padding: calc(5px * var(--scale)) calc(16px * var(--scale));
  color: #fbfaf8;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: calc(12.5px * var(--fs));
  font-weight: bold;
  letter-spacing: 0.4px;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.55),
    0 0 12px rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.9);
  background-color: #1f1a19;
  background-image: linear-gradient(180deg, #3c3431 0%, #241f1e 46%, #0f0c0c 54%, #262120 100%);
  border: 1px solid #75635d;
  border-top-color: #96817a;
  box-shadow:
    inset 0 1px 0 rgba(240, 228, 222, 0.24),
    0 1px 4px rgba(0, 0, 0, 0.65);
}

.support-pill:hover {
  color: #ffffff;
  background-color: #2e2725;
  background-image: linear-gradient(180deg, #4d423e 0%, #302927 46%, #181414 54%, #332c2a 100%);
  border-color: #ab9289;
  border-top-color: #c7afa6;
  animation: support-text-shimmer 1.35s ease-in-out infinite;
}

/* Таблица последних обновлений */
.changelog-table {
  width: 100%;
  border-collapse: collapse;
}

.changelog-table tr {
  border-bottom: 1px dotted #362e2c;
}

.changelog-table tr:last-child {
  border-bottom: 0;
}

.changelog-table td {
  padding: calc(6px * var(--scale)) 0;
  vertical-align: top;
}

.log-date {
  width: calc(95px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  color: #e4d8d4;
  white-space: nowrap;
}

.log-text {
  color: #f2f0ee;
}

.home-diary-head {
  margin-bottom: calc(6px * var(--scale));
}

.home-diary-text {
  color: #eeeae8;
  white-space: pre-line;
  line-height: 1.55;
  text-wrap: pretty;
}

.home-diary-foot {
  margin-top: calc(9px * var(--scale));
  padding-top: calc(7px * var(--scale));
  border-top: 1px dotted #3a302d;
  text-align: right;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
}

.home-diary-more,
.home-diary-more:visited {
  color: #e4d8d4;
  text-decoration: none;
}

.home-diary-more:hover {
  color: #ffffff;
  text-decoration: underline;
}

.diary-badge-new {
  display: inline-block;
  margin-left: calc(8px * var(--scale));
  padding: 0 calc(5px * var(--scale));
  background-color: #6b2622;
  border: 1px solid #b5655f;
  color: #fff4f2;
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--fs));
  font-weight: bold;
  line-height: 1.35;
  vertical-align: middle;
  text-shadow: 0 0 5px rgba(255, 210, 204, 0.45);
}

/* ==================== 4. ВИТРИНА ИГР (PLAYSTATION-ДИСКИ) И СТРАНИЦА ИГРЫ ==================== */

.disc-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(16px * var(--scale));
  align-items: stretch;
  align-content: start;
}

.disc-card,
.disc-card:visited,
.disc-card:active {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #f2f0ee;
  border: 1px solid #423734;
  background-color: rgba(14, 12, 12, 0.92);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  padding: calc(16px * var(--scale)) calc(14px * var(--scale));
  cursor: pointer;
}

.disc-card.is-tiled-bg {
  background-repeat: repeat;
  background-size: var(--card-tex-size, 128px);
  background-position: top left;
}

.disc-card.has-custom-bg {
  background-color: var(--card-bg);
  background-color: color-mix(in srgb, var(--card-bg) 82%, transparent);
}

.disc-card.has-custom-border {
  border-color: var(--card-border);
}

.disc-card.has-bg-img::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(10, 9, 9, 0.55);
  background-color: color-mix(in srgb, var(--card-bg, #0a0909) var(--card-dim, 55%), transparent);
  z-index: 0;
  pointer-events: none;
}

.disc-card > * {
  position: relative;
  z-index: 1;
}

.disc-card:hover {
  border-color: #7d645d;
  background-color: rgba(24, 20, 19, 0.94);
  color: #ffffff;
}

.disc-card.has-custom-bg:hover {
  background-color: color-mix(in srgb, var(--card-bg) 92%, transparent);
}

.disc-card.has-bg-img:hover::before {
  background-color: color-mix(in srgb, var(--card-bg, #0a0909) calc(var(--card-dim, 55%) - 12%), transparent);
}

.disc-visual {
  width: calc(200px * var(--scale));
  height: calc(200px * var(--scale));
  max-width: 100%;
  margin: calc(4px * var(--scale)) auto calc(14px * var(--scale)) auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.disc-card:hover .disc-img {
  transform: rotate(10deg) scale(1.04);
}

.disc-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed #4a3f3c;
  background-color: rgba(11, 9, 9, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(6px * var(--scale));
  padding: calc(10px * var(--scale));
  font-family: var(--font-mono);
  color: #c7c3c1;
}

.disc-placeholder-code {
  font-size: calc(12px * var(--fs));
  font-weight: bold;
  color: #e4d8d4;
  letter-spacing: 1px;
}

.disc-placeholder-hole {
  font-size: calc(14px * var(--fs));
  color: #968f8d;
}

.disc-placeholder-hint {
  font-size: calc(9.5px * var(--fs));
  color: #b9b5b4;
  word-break: break-all;
}

.disc-meta-top {
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  margin-bottom: calc(6px * var(--scale));
}

.disc-code {
  color: #d1cdcb;
  margin-right: calc(6px * var(--scale));
}

.disc-name {
  font-family: var(--font-title);
  font-size: calc(14px * var(--fs));
  font-weight: bold;
  color: #f8f6f4;
  margin-bottom: calc(6px * var(--scale));
  text-wrap: balance;
}

.disc-short {
  font-size: calc(11px * var(--fs));
  color: #e0dedc;
  line-height: 1.55;
  min-height: 4.65em;
  max-width: 34ch;
  margin: 0 auto calc(14px * var(--scale)) auto;
  text-wrap: balance;
  white-space: pre-line;
}

.disc-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #eae8e6;
  border: 1px solid #524541;
  border-top-color: #695954;
  padding: calc(4px * var(--scale)) calc(11px * var(--scale));
  background-color: #161312;
  background-image: linear-gradient(180deg, #2d2725 0%, #191514 46%, #0b0909 54%, #1d1918 100%);
  box-shadow: inset 0 1px 0 rgba(220, 206, 200, 0.16);
}

.disc-card:hover .disc-cta {
  border-color: #7d645d;
  border-top-color: #967b73;
  color: #ffffff;
  background-color: #241e1c;
  background-image: linear-gradient(180deg, #3d3431 0%, #241f1e 46%, #120f0f 54%, #262120 100%);
  box-shadow: inset 0 1px 0 rgba(235, 222, 216, 0.22);
}

/* Отдельная страница описания игры (по клику на диск) */
.game-detail-view {
  display: none;
}

.game-detail-view.is-open {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.game-detail-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(8px * var(--scale));
  margin: 0 0 calc(12px * var(--scale)) 0;
  padding: 0 0 calc(8px * var(--scale)) 0;
  background-color: transparent;
  background-image: none;
  border-bottom: 1px solid #3a312e;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
}

body.section-bars-metal .game-detail-bar {
  margin: calc(-13px * var(--scale)) calc(-13px * var(--scale)) calc(13px * var(--scale)) calc(-13px * var(--scale));
  padding: calc(7px * var(--scale)) calc(13px * var(--scale));
  background-color: #090808;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, #181414 0%, #302927 18%, #181414 42%, #050404 65%, #0d0b0b 85%, #221d1c 100%);
  border-bottom: 1px solid #4d413e;
  box-shadow:
    inset 0 1px 0 rgba(224, 210, 204, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72);
}

.game-back-btn {
  padding: calc(3px * var(--scale)) calc(9px * var(--scale));
}

.game-detail-head {
  display: flex;
  gap: calc(16px * var(--scale));
  align-items: flex-start;
  padding-bottom: calc(13px * var(--scale));
  margin-bottom: calc(12px * var(--scale));
  border-bottom: 1px solid #382f2d;
}

@keyframes game-disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.game-detail-disc {
  position: relative;
  width: calc(136px * var(--scale));
  height: calc(136px * var(--scale));
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-detail-disc.has-case-bg {
  width: auto;
  height: auto;
  max-width: calc(260px * var(--scale));
}

.game-detail-case-bg {
  display: block;
  width: auto;
  height: calc(164px * var(--scale));
  max-width: calc(260px * var(--scale));
  object-fit: contain;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
}

.game-detail-disc.has-case-bg .disc-visual-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto !important;
  height: var(--case-disc-scale, 84%) !important;
  aspect-ratio: 1 / 1;
  transform: translate(calc(-50% + var(--case-disc-x, 0%)), calc(-50% + var(--case-disc-y, 0%)));
  z-index: 2;
  pointer-events: none;
}

.game-detail-disc .disc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: game-disc-spin 12s linear infinite;
}

.game-detail-info {
  flex: 1 1 auto;
  min-width: 0;
}

.game-detail-title {
  margin: 0 0 calc(5px * var(--scale)) 0;
  font-family: var(--font-title);
  font-size: calc(16.5px * var(--fs));
  font-weight: bold;
  color: #f8f6f4;
}

.game-detail-meta {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  color: #cecac8;
  padding-bottom: calc(7px * var(--scale));
  margin-bottom: calc(8px * var(--scale));
  border-bottom: 1px dotted #423734;
}

.game-detail-link,
.game-detail-link:visited {
  display: inline-block;
  margin-top: calc(9px * var(--scale));
  text-decoration: none;
  color: #f8f6f4;
  border: 1px solid #63534e;
  border-top-color: #7a6761;
  background-color: #201b1a;
  background-image: linear-gradient(180deg, #352e2c 0%, #1e1918 46%, #0d0b0b 54%, #211c1b 100%);
  box-shadow: inset 0 1px 0 rgba(228, 214, 208, 0.18);
  padding: calc(4px * var(--scale)) calc(11px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  font-weight: bold;
}

.game-detail-link:hover {
  background-color: #2b2321;
  background-image: linear-gradient(180deg, #423936 0%, #272120 46%, #141111 54%, #292322 100%);
  border-color: #8c736b;
  color: #ffffff;
}

.game-detail-desc {
  color: #f2f0ee;
  white-space: pre-line;
  line-height: 1.55;
  text-wrap: pretty;
}

.game-detail-gallery-title {
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #e4d8d4;
  margin-bottom: calc(7px * var(--scale));
}

.game-detail-hero-shot {
  width: 100%;
  max-height: calc(315px * var(--scale));
  object-fit: cover;
  border: 1px solid #4a3d3a;
  margin-bottom: calc(8px * var(--scale));
  cursor: zoom-in;
}

.game-detail-hero-placeholder {
  width: 100%;
  height: calc(150px * var(--scale));
  border: 1px dashed #423734;
  background-color: rgba(11, 9, 9, 0.86);
  color: #c0bcba;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: calc(8px * var(--scale));
}

/* ==================== 4B. ГАЛЕРЕЯ / АРТ ==================== */

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(12px * var(--scale));
}

.art-card {
  border: 1px solid #3f3533;
  background-color: rgba(12, 10, 10, 0.92);
  padding: calc(6px * var(--scale));
  display: flex;
  flex-direction: column;
}

.art-card:hover {
  border-color: #7d645d;
}

.art-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #080707;
  border: 1px solid #2e2725;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: calc(7px * var(--scale));
}

.art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.art-placeholder {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  color: #bab6b5;
  text-align: center;
  padding: 8px;
}

.art-caption {
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #f0edeb;
  margin-bottom: 2px;
}

.art-tag {
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--fs));
  color: #c6bab6;
}

/* Простой олдскульный лайтбокс (без размытия и современных анимаций) */
.img-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99990;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.img-lightbox.is-open {
  display: flex;
}

.img-lightbox-box {
  display: flex;
  flex-direction: column;
  max-width: 92vw;
  max-height: 92vh;
  background-color: #090808;
  border: 1px solid #594b47;
  padding: 8px;
}

.img-lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #3a312e;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
}

.img-lightbox-counter {
  color: #cecac8;
  white-space: nowrap;
}

.img-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.img-lightbox-btn {
  background-color: transparent;
  border: 0;
  padding: 2px 5px;
  color: #eeeae8;
  font-family: var(--font-mono);
  font-size: calc(11.5px * var(--fs));
  cursor: pointer;
  white-space: nowrap;
}

.img-lightbox-btn:hover {
  color: #ffffff;
  background-color: #211c1b;
}

.img-lightbox-btn:focus {
  outline: 1px dotted #7a6761;
}

.img-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-lightbox-img {
  display: block;
  max-width: calc(92vw - 20px);
  max-height: calc(92vh - 64px);
  width: auto;
  height: auto;
  border: 1px solid #4a3d3a;
  object-fit: contain;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
}

.status-wip {
  color: #cec0bc;
}

.status-proto {
  color: #c8bab9;
}

.status-pause {
  color: #c7c4c2;
}

.mini-shots-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.mini-shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px dashed #423734;
  background-color: rgba(11, 9, 9, 0.86);
  color: #bebab8;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  text-align: center;
}

.mini-shot-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #4a3d3a;
  background-color: #080707;
  object-fit: cover;
  cursor: pointer;
}

.mini-shot-img:hover {
  border-color: #9e847b;
}

.game-detail-promo-title {
  margin-top: calc(16px * var(--scale));
  padding-top: calc(12px * var(--scale));
  border-top: 1px dotted #3a302d;
}

.promo-shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(10px * var(--scale));
}

.promo-shot-card {
  border: 1px solid #3f3533;
  background-color: rgba(10, 9, 9, 0.92);
  padding: calc(6px * var(--scale));
  display: flex;
  flex-direction: column;
}

.promo-shot-card:hover {
  border-color: #8c736b;
}

.promo-shot-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #040404;
  border: 1px solid #2e2725;
  cursor: zoom-in;
}

.promo-shot-cap {
  margin-top: calc(6px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  color: #e4d8d4;
  text-align: center;
}

/* ==================== 5. ДНЕВНИК ==================== */

.diary-entry {
  border: 1px solid #3d3331;
  background-color: rgba(14, 12, 12, 0.92);
  margin-bottom: calc(12px * var(--scale));
}

.diary-entry:last-child {
  margin-bottom: 0;
}

.diary-header {
  padding: calc(7px * var(--scale)) calc(11px * var(--scale));
  background-color: rgba(20, 17, 17, 0.78);
  border-bottom: 1px solid #362e2c;
}

body.section-bars-metal .diary-header {
  background-color: #0b0a0a;
  background-image: linear-gradient(180deg, #171313 0%, #292322 20%, #151212 48%, #070606 72%, #1b1716 100%);
  border-bottom: 1px solid #453a37;
  box-shadow: inset 0 1px 0 rgba(215, 202, 196, 0.13);
}

.diary-date {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  color: #e4d8d4;
  margin-right: calc(7px * var(--scale));
}

.diary-title {
  font-size: calc(13px * var(--fs));
  color: #f8f6f4;
}

.diary-body {
  padding: calc(11px * var(--scale));
  white-space: pre-line;
}

.diary-link-wrap {
  margin-top: calc(10px * var(--scale));
  padding-top: calc(9px * var(--scale));
  border-top: 1px dotted #3a302d;
}

.diary-link-btn,
.diary-link-btn:visited,
.diary-link-btn:active {
  display: inline-block;
  padding: calc(4px * var(--scale)) calc(12px * var(--scale));
  color: #f4f1ef;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  background-color: #1d1817;
  background-image: linear-gradient(180deg, #37302d 0%, #211c1b 46%, #0e0c0c 54%, #221d1c 100%);
  border: 1px solid #6b5b56;
  border-top-color: #87746e;
  box-shadow: inset 0 1px 0 rgba(235, 222, 216, 0.2);
}

.diary-link-btn:hover {
  color: #ffffff;
  background-color: #2b2422;
  background-image: linear-gradient(180deg, #473d39 0%, #2b2422 46%, #151212 54%, #2e2725 100%);
  border-color: #9e847b;
}

/* ==================== 6. ГОСТЕВАЯ КНИГА ==================== */

.gb-form {
  border: 1px solid #3f3533;
  background-color: rgba(12, 10, 10, 0.92);
  padding: calc(11px * var(--scale));
  margin-bottom: calc(14px * var(--scale));
}

/* Скрытое поле honeypot — боты заполняют его, живые люди не видят */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table td {
  padding: calc(5px * var(--scale)) 0;
}

.form-label-col {
  width: calc(112px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  color: #dad6d4;
  padding-right: calc(10px * var(--scale));
}

.form-label-top {
  vertical-align: top;
  padding-top: calc(9px * var(--scale));
}

.form-input-col input[type="text"],
.form-input-col textarea {
  width: 100%;
  background-color: #090808;
  color: #f4f2f0;
  border: 1px solid #423734;
  padding: calc(6px * var(--scale)) calc(8px * var(--scale));
  font-family: var(--font-main);
  font-size: calc(12.5px * var(--fs));
}

.form-input-col input[type="text"]:focus,
.form-input-col textarea:focus {
  outline: none;
  border-color: #7d645d;
  background-color: #0e0c0c;
}

.form-input-col textarea {
  resize: vertical;
  min-height: calc(76px * var(--scale));
}

.form-actions-col {
  padding-top: calc(7px * var(--scale));
}

.old-btn {
  background-color: #1b1716;
  background-image: linear-gradient(180deg, #332c2a 0%, #1d1918 46%, #0d0b0b 54%, #1e1a19 100%);
  color: #f2f0ee;
  border: 1px solid #574945;
  border-top-color: #6e5d58;
  box-shadow:
    inset 0 1px 0 rgba(225, 212, 206, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65);
  padding: calc(6px * var(--scale)) calc(14px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.old-btn:hover {
  background-color: #292120;
  background-image: linear-gradient(180deg, #403734 0%, #26201f 46%, #131010 54%, #282221 100%);
  border-color: #8c736b;
  color: #ffffff;
}

.old-btn:active {
  background-color: #110e0e;
  background-image: linear-gradient(180deg, #0b0909 0%, #181414 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
}

.old-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.gb-feedback {
  margin-left: calc(10px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #e4d8d4;
}

.gb-feedback.is-error {
  color: #dcbab8;
}

.gb-inline-link-btn {
  margin-left: calc(8px * var(--scale));
  padding: calc(2px * var(--scale)) calc(6px * var(--scale));
  background: transparent;
  border: 1px solid #4d3e3a;
  color: #e7e4e2;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  cursor: pointer;
}

.gb-inline-link-btn:hover {
  color: #ffffff;
  border-color: #8c736b;
  background-color: rgba(34, 28, 27, 0.9);
}

.nav-gb-badge {
  display: inline-block;
  margin-left: calc(5px * var(--scale));
  padding: 0 calc(4px * var(--scale));
  background-color: #7a3430;
  border: 1px solid #b5655f;
  color: #fff6f5;
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--fs));
  font-weight: bold;
  line-height: 1.35;
  vertical-align: middle;
}

.gb-list-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(6px * var(--scale)) calc(10px * var(--scale));
  background-color: rgba(18, 15, 15, 0.78);
  border: 1px solid #362e2c;
  margin-bottom: calc(11px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #e3e0de;
}

body.section-bars-metal .gb-list-bar {
  background-color: #0b0a0a;
  background-image: linear-gradient(180deg, #161313 0%, #26201f 22%, #131010 52%, #080707 76%, #1a1615 100%);
  border: 1px solid #403633;
  box-shadow: inset 0 1px 0 rgba(210, 196, 190, 0.12);
}

.gb-note {
  color: #c4c1c0;
}

.gb-entry {
  border: 1px solid #3d3331;
  background-color: rgba(14, 12, 12, 0.92);
  margin-bottom: calc(11px * var(--scale));
}

.gb-entry:last-child {
  margin-bottom: 0;
}

.gb-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: calc(6px * var(--scale));
  padding: calc(6px * var(--scale)) calc(10px * var(--scale));
  background-color: rgba(20, 17, 17, 0.78);
  border-bottom: 1px solid #362e2c;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
}

body.section-bars-metal .gb-entry-head {
  background-color: #0b0a0a;
  background-image: linear-gradient(180deg, #171313 0%, #292322 20%, #151212 48%, #070606 72%, #1b1716 100%);
  border-bottom: 1px solid #453a37;
  box-shadow: inset 0 1px 0 rgba(215, 202, 196, 0.13);
}

.gb-head-left {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: calc(6px * var(--scale));
}

.gb-author {
  color: #f8f6f4;
  font-weight: bold;
}

.gb-date {
  color: #cecbca;
  white-space: nowrap;
}

.gb-badge-local {
  color: #e4d8d4;
}

.gb-badge-own {
  padding: 0 calc(4px * var(--scale));
  border: 1px solid #594945;
  background-color: rgba(42, 34, 32, 0.85);
  color: #eae6e3;
  font-size: calc(9.5px * var(--fs));
}

.gb-badge-visitor {
  padding: 0 calc(4px * var(--scale));
  border: 1px solid #3d3533;
  background-color: rgba(24, 20, 19, 0.85);
  color: #d4cfcd;
  font-size: calc(9.5px * var(--fs));
}

.gb-badge-reply-new {
  padding: 0 calc(4px * var(--scale));
  border: 1px solid #a85b55;
  background-color: #5e2724;
  color: #fff2f0;
  font-size: calc(9.5px * var(--fs));
  font-weight: bold;
}

.gb-head-right {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--scale));
}

.gb-link-btn {
  padding: 0 calc(5px * var(--scale));
  background: transparent;
  border: 1px solid #453a37;
  color: #cecbca;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  line-height: 1.35;
  cursor: pointer;
}

.gb-link-btn:hover {
  color: #f8f6f4;
  border-color: #8c736b;
  background-color: rgba(34, 28, 27, 0.9);
}

.gb-entry.is-my-post {
  border-color: #63514c;
}

.gb-entry.has-unread-reply {
  border-color: #964c47;
  box-shadow: 0 0 0 1px rgba(150, 76, 71, 0.35);
}

.gb-entry.is-target-highlight {
  border-color: #c28d70;
  box-shadow: 0 0 0 1px rgba(194, 141, 112, 0.45);
}

.gb-empty {
  padding: calc(14px * var(--scale));
  border: 1px dotted #3a312e;
  color: #c4c1c0;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  text-align: center;
}

.gb-entry-msg {
  padding: calc(10px * var(--scale));
  color: #f2f0ee;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Ответ автора под записью посетителя */
.gb-reply {
  margin: 0 calc(10px * var(--scale)) calc(10px * var(--scale)) calc(24px * var(--scale));
  padding: calc(8px * var(--scale)) calc(10px * var(--scale));
  background-color: rgba(18, 15, 14, 0.94);
  border-left: 3px solid #63403c;
  border-top: 1px solid #3a312f;
  border-right: 1px solid #3a312f;
  border-bottom: 1px solid #3a312f;
}

.gb-reply-head {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  color: #e4d8d4;
  margin-bottom: calc(4px * var(--scale));
}

.gb-reply-text {
  color: #eae6e4;
}

/* ==================== 7. ССЫЛКИ И ФУТЕР ==================== */

.links-table {
  width: 100%;
  border-collapse: collapse;
}

.links-table td {
  padding: calc(7px * var(--scale)) calc(9px * var(--scale));
  border-bottom: 1px dotted #3a312f;
  vertical-align: top;
}

.links-table tr:last-child td {
  border-bottom: 0;
}

.link-cat {
  width: calc(122px * var(--scale));
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  color: #e4d8d4;
  white-space: nowrap;
}

#site-footer {
  flex: 0 0 auto;
  margin: auto calc(12px * var(--scale)) calc(12px * var(--scale)) calc(12px * var(--scale));
  padding-top: calc(11px * var(--scale));
  border-top: 1px solid #3f3533;
  text-align: center;
}

.footer-links {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  margin-bottom: calc(9px * var(--scale));
}

.sponsor-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(6px * var(--scale)) calc(10px * var(--scale));
  margin: 0 auto calc(9px * var(--scale)) auto;
  padding: calc(4px * var(--scale)) calc(12px * var(--scale));
  background-color: #0e0c0c;
  background-image: linear-gradient(180deg, #1a1615 0%, #0a0808 55%, #161312 100%);
  border: 1px solid #4d413e;
  border-top-color: #635450;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
}

.sponsor-banner-text {
  color: #e4d8d4;
}

.sponsor-banner-link,
.sponsor-banner-link:visited {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #8c736b;
}

.sponsor-banner-link:hover {
  color: #ffffff;
  background-color: #211c1b;
}

.sponsor-banner-tag {
  color: #f2f0ee;
  font-weight: bold;
}

@keyframes donors-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.donors-ticker {
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto calc(9px * var(--scale)) auto;
  padding: calc(3px * var(--scale)) calc(8px * var(--scale));
  background-color: #090808;
  border: 1px solid #382f2d;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  color: #e4d8d4;
}

.donors-ticker-track {
  display: inline-block;
  animation: donors-marquee 18s linear infinite;
}

/* Олдскульный счётчик посещений (Hit Counter) и онлайн */
.hit-counter-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(6px * var(--scale)) calc(10px * var(--scale));
  margin: 0 auto calc(9px * var(--scale)) auto;
  padding: calc(5px * var(--scale)) calc(10px * var(--scale));
  background-color: #080707;
  background-image: linear-gradient(180deg, #060505 0%, #151212 35%, #0a0808 75%, #191514 100%);
  border: 1px solid #3f3533;
  border-top-color: #292220;
  border-bottom-color: #524541;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.78),
    inset 0 -1px 0 rgba(205, 192, 186, 0.1);
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
}

.hit-block {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--scale));
}

.hit-label {
  color: #cecac8;
}

.hit-digits {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background-color: #030303;
  border: 1px solid #332a28;
}

.hit-digit {
  display: inline-block;
  min-width: 1.15em;
  padding: 1px 3px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  font-weight: bold;
  line-height: 1.15;
  color: #f8f6f2;
  text-shadow: 0 0 5px rgba(255, 240, 232, 0.45);
  background-color: #070606;
  background-image: linear-gradient(180deg, #1d1918 0%, #060505 48%, #0e0c0c 52%, #1b1716 100%);
  border: 1px solid #453a37;
  border-top-color: #2b2422;
  border-bottom-color: #574945;
}

.hit-sep {
  color: #898280;
}

.hit-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #63c770;
  box-shadow: 0 0 0 1px rgba(99, 199, 112, 0.35), 0 0 5px rgba(99, 199, 112, 0.42);
  animation: status-dot-pulse 2.2s ease-in-out infinite;
}

.hit-online-val {
  color: #f8f6f4;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.45);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--fs));
  color: #c2bebd;
  padding-bottom: 3px;
}

@media (max-width: 720px) {
  .top-nav-bar {
    gap: calc(6px * var(--scale));
    padding: calc(6px * var(--scale)) calc(9px * var(--scale));
  }
  .brand-area,
  html[lang="en"] .brand-area {
    flex: 1 1 100%;
  }
  #main-nav {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    font-size: clamp(10px, 3.05vw, 13.5px);
    text-align: center;
  }
  #main-nav .nav-link {
    flex: 0 1 auto;
    text-align: center;
    padding: calc(3px * var(--scale)) calc(4px * var(--scale));
  }
  #main-nav .nav-sep {
    margin: 0;
    opacity: 0.65;
  }
  html[lang="en"] #main-nav {
    font-size: clamp(11px, 3.4vw, 14px);
  }
  html[lang="en"] #main-nav .nav-link {
    padding: calc(3px * var(--scale)) calc(6px * var(--scale));
  }
  .disc-shelf,
  .art-grid,
  .promo-shots-grid {
    grid-template-columns: 1fr;
  }
  .mini-shots-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-detail-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-table,
  .about-table tbody,
  .about-table tr,
  .about-table td,
  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table td {
    display: block;
    width: 100%;
  }
  .avatar-col {
    padding-right: 0;
    padding-bottom: calc(12px * var(--scale));
  }
  .form-label-col {
    padding-right: 0;
    padding-bottom: 2px;
  }
  .status-bar tr {
    display: flex;
    flex-wrap: wrap;
  }
  .status-bar td {
    flex: 1 1 auto;
    width: auto;
    border-left: 0;
  }
  .updated-cell,
  .lang-cell {
    border-top: 1px solid #332a28;
    text-align: left;
  }
  .lang-cell {
    text-align: right;
  }
}

/* ==================== БОКОВОЙ ВЫДВИЖНОЙ ДИСКОВОД (ТОЛЬКО ПК, ГЛАВНАЯ) ==================== */

.disc-tray-dock {
  display: none;
}

@media (min-width: 1180px) {
  body[data-active-tab="home"]:not(.ia-open) .disc-tray-dock {
    display: flex;
    flex-direction: column;
    gap: calc(12px * var(--scale));
    position: absolute;
    top: calc(272px * var(--scale));
    left: calc(100% + 5px);
    width: calc(308px * var(--scale));
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
  }

  .disc-tray,
  .disc-tray:visited,
  .disc-tray:active {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    width: calc(295px * var(--scale));
    text-decoration: none;
    color: #f2f0ee;
    background-color: #0c0a0a;
    background-image: linear-gradient(180deg, #1b1716 0%, #090808 55%, #161312 100%);
    border: 1px solid #4d413e;
    border-left: 0;
    box-shadow:
      inset 0 1px 0 rgba(224, 210, 204, 0.14),
      3px 3px 10px rgba(0, 0, 0, 0.72);
    transform: translateX(calc(-100% + 34px * var(--scale)));
    transition: transform 0.88s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
    cursor: pointer;
  }

  .disc-tray:hover,
  .disc-tray:focus-visible {
    transform: translateX(0);
    border-color: #8c736b;
    color: #ffffff;
    background-color: #161312;
  }

  .disc-tray-inner {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: calc(12px * var(--scale));
    padding: calc(10px * var(--scale)) calc(12px * var(--scale));
  }

  .disc-tray-disc {
    width: calc(84px * var(--scale));
    height: calc(84px * var(--scale));
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .disc-tray-disc .disc-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: game-disc-spin 10s linear infinite;
  }

  .disc-tray-disc .disc-placeholder {
    padding: 4px;
    gap: 3px;
  }

  .disc-tray-disc .disc-placeholder-code {
    font-size: calc(10px * var(--fs));
  }

  .disc-tray-disc .disc-placeholder-hole {
    font-size: calc(12px * var(--fs));
  }

  .disc-tray-disc .disc-placeholder-hint {
    display: none;
  }

  .disc-tray-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(3px * var(--scale));
  }

  .disc-tray-title {
    font-family: var(--font-title);
    font-size: calc(13px * var(--fs));
    font-weight: bold;
    color: #f8f6f4;
    line-height: 1.25;
    word-wrap: break-word;
  }

  .disc-tray-status {
    font-family: var(--font-mono);
    font-size: calc(11px * var(--fs));
  }

  .disc-tray-cta {
    margin-top: calc(3px * var(--scale));
    font-family: var(--font-mono);
    font-size: calc(11px * var(--fs));
    color: #e4d8d4;
  }

  .disc-tray:hover .disc-tray-cta {
    color: #ffffff;
  }

  .disc-tray-handle {
    width: calc(34px * var(--scale));
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(7px * var(--scale));
    padding: calc(8px * var(--scale)) 0;
    border-left: 1px solid #382f2d;
    background-color: #131010;
    background-image: linear-gradient(90deg, #0b0909 0%, #241f1e 45%, #161312 100%);
  }

  .disc-tray-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #6b625f;
    box-shadow: 0 0 0 1px rgba(107, 98, 95, 0.35);
  }

  .disc-tray-led.is-active-led {
    background-color: #63c770;
    box-shadow: 0 0 0 1px rgba(99, 199, 112, 0.45), 0 0 5px rgba(99, 199, 112, 0.45);
    animation: status-dot-pulse 2.2s ease-in-out infinite;
  }

  .disc-tray-led.is-red-led {
    background-color: #ff382e;
    box-shadow: 0 0 0 1px rgba(255, 56, 46, 0.42), 0 0 5px rgba(255, 56, 46, 0.45);
    animation: status-dot-pulse 2.2s ease-in-out infinite;
  }

  .disc-tray-code {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: calc(11px * var(--fs));
    letter-spacing: 0.8px;
    color: #e4d8d4;
    white-space: nowrap;
  }
}
