/* ============================================================
   PLUSER // style.css — «грязный ретро-реализм»
   Старый рунет / phpBB-форум / Win98 / потёртый софт,
   но собрано аккуратно и работает на современных экранах.
   ============================================================ */

:root {
  --stone: #232629;          /* каменный фон */
  --stone-2: #2b2f33;
  --paper: #d9d5c9;          /* бумажные панели */
  --paper-2: #e7e3d8;
  --paper-dark: #c9c4b6;
  --ink: #26292c;            /* текст на бумаге */
  --ink-dim: #5a5e63;
  --orange: #e8712b;         /* акцент hip-hop.ru */
  --orange-2: #ff9040;
  --blue-d: #31435c;         /* тёмная шапка окон */
  --blue-dd: #22303f;
  --green: #7cfc00;
  --lcd: #9bbc0f;            /* DMG LCD */
  --lcd-d: #0f380f;
  --win-face: #d6d2c6;
  --win-light: #fffefb;
  --win-dark: #8e8a7e;
  --win-dd: #3c3a34;
  --f-ui: Tahoma, Verdana, Geneva, sans-serif;
  --f-head: 'Unbounded', Tahoma, sans-serif;
  --f-px: 'Pixelify Sans', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1400px 700px at 50% -10%, rgba(120,130,150,.14), transparent 60%),
    radial-gradient(900px 500px at 85% 110%, rgba(232,113,43,.06), transparent 60%),
    var(--stone);
  color: var(--paper);
  font-family: var(--f-ui);
  font-size: 14px;
  overflow-x: hidden;
}
/* каменная шероховатость */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.14'/></svg>");
  mix-blend-mode: overlay;
}
::selection { background: var(--orange); color: #fff; }
img { max-width: 100%; display: block; }
a { color: #1d4e89; }
button { font-family: var(--f-ui); cursor: pointer; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 14px; position: relative; z-index: 1; }

/* ============================================================
   WIN98-ОКНА И КНОПКИ (общие)
   ============================================================ */
.win98 {
  background: var(--win-face);
  border: 2px solid;
  border-color: var(--win-light) var(--win-dd) var(--win-dd) var(--win-light);
  box-shadow: 3px 3px 0 rgba(0,0,0,.45), inset 1px 1px 0 rgba(255,255,255,.35);
  color: var(--ink);
}
.win98__title {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  font: bold 12px var(--f-ui);
  color: #e8e4da;
  background: linear-gradient(90deg, var(--blue-d), var(--blue-dd) 70%, #1a2530);
  text-shadow: 1px 1px 0 #10161e;
  border-bottom: 2px solid var(--win-dd);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win98__title--dark { background: linear-gradient(90deg, #45452f, #2e2e20); }
.win98__btns { margin-left: auto; display: flex; gap: 3px; }
.win98__btns i, .win98__btns button {
  font-style: normal; font-size: 10px; line-height: 1;
  width: 17px; height: 15px; display: grid; place-items: center;
  background: linear-gradient(180deg, #e6e2d6, #b8b4a8);
  border: 1px solid; border-color: #fff #4a473d #4a473d #fff;
  color: #1e2023; cursor: pointer; user-select: none;
}
.win98__btns .is-x { background: linear-gradient(180deg, #e89a7a, #c85430); color: #fff; }

/* классическая кнопка с потёртостью */
.w98btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: bold 12px var(--f-ui); color: #1e2023;
  padding: 6px 14px; min-height: 26px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='60' height='60' filter='url(%23w)' opacity='0.06'/></svg>"),
    linear-gradient(180deg, #f4f2ea 0%, #ddd9cc 45%, #c9c4b4 55%, #d8d4c6 100%);
  border: 2px solid; border-color: var(--win-light) var(--win-dd) var(--win-dd) var(--win-light);
  box-shadow: 1px 1px 0 rgba(0,0,0,.35);
  text-decoration: none; user-select: none;
  transition: filter .1s, transform .05s;
}
.w98btn:hover { filter: brightness(1.06) saturate(1.1); }
.w98btn:active, .w98btn.is-pressed {
  border-color: var(--win-dd) var(--win-light) var(--win-light) var(--win-dd);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,.25);
  transform: translate(1px, 1px);
  padding: 6px 13px 5px 15px;
}
.w98btn--big { font-size: 13px; padding: 9px 20px; min-height: 34px; }
.w98btn--sq { min-width: 44px; padding: 6px 10px; font-size: 14px; }
.w98btn--rec { outline: 2px solid rgba(232,113,43,.4); outline-offset: 2px; }
.w98btn--danger { color: #8a1f14; }
.w98btn:disabled { opacity: .5; cursor: default; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #777; }
.dot--on { background: #35d435; box-shadow: 0 0 6px rgba(53,212,53,.9); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .55; } }

/* ============================================================
   ПРЕЛОАДЕР
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--stone);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s, visibility .45s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader .win98 { width: min(360px, 88vw); }
.preloader__body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.preloader__logo-row { display: flex; gap: 12px; align-items: center; }
.preloader__logo-row img { width: 44px; height: 44px; border: 2px solid var(--win-dd); }
.preloader__txt { display: grid; font-size: 12px; color: var(--ink-dim); }
.preloader__txt b { font-size: 14px; color: var(--ink); }
.preloader__bar {
  height: 18px; background: #a8a396; padding: 2px;
  border: 2px solid; border-color: var(--win-dd) var(--win-light) var(--win-light) var(--win-dd);
}
.preloader__bar i {
  display: block; height: 100%; width: 0%;
  background:
    repeating-linear-gradient(90deg, #2e5c2e 0 9px, #3d7a3d 9px 12px, #4c9a4c 12px 14px, #3d7a3d 14px 17px);
  transition: width .18s;
}
.preloader__pct { font: 14px var(--f-px); color: var(--ink-dim); text-align: right; }

/* ============================================================
   ТОПБАР
   ============================================================ */
.topbar { position: sticky; top: 0; z-index: 1000; padding: 6px 10px 0; }
.win98--bar { border-top: none; border-left: none; border-right: none; box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.topbar__logo { width: 18px; height: 18px; border: 1px solid #10161e; }
.topbar__name { color: #ffb46a; letter-spacing: 1px; }
.topbar__url { font: 11px var(--f-px); opacity: .55; overflow: hidden; text-overflow: ellipsis; }
.topbar__row {
  display: flex; align-items: center; gap: 14px; padding: 5px 8px;
  background: linear-gradient(180deg, #cfcbc0, #bdb9ac);
  border-top: 1px solid rgba(255,255,255,.4);
  flex-wrap: wrap;
}
.topbar__user { font-size: 12px; color: #3c3f44; white-space: nowrap; }
.topbar__user b { color: #1e2023; }
.topbar__nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.topbar__nav a {
  font-size: 12px; font-weight: bold; color: #2c2f34; text-decoration: none;
  padding: 4px 10px; background: linear-gradient(180deg, #e2ded2, #cbc7ba);
  border: 1px solid; border-color: var(--win-light) var(--win-dd) var(--win-dd) var(--win-light);
}
.topbar__nav a:hover { background: linear-gradient(180deg, #f3ac6a, #e8712b); color: #fff; }
.topbar__burger { display: none; flex-direction: column; gap: 3px; background: none; border: none; padding: 6px; margin-left: auto; }
.topbar__burger i { width: 22px; height: 3px; background: #1e2023; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: none; /* Удалена пустая секция */
}
.hero__body { display: none; }
.hero__letters { display: none; }
.hero__title { display: none; }
.hero__sub { display: none; }
.hero__tagline { display: none; }
.hero__cta { display: none; }
.hero__statbar { display: none; }
.hero__status { display: none; }

#gun-stage {
  display: none !important;
}

/* ============================================================
   ТИКЕР
   ============================================================ */
.ticker {
  overflow: hidden;
  background: #1a1d20;
  border-top: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  padding: 8px 0;
}
.ticker__track {
  display: inline-flex; gap: 42px; white-space: nowrap;
  font: 15px var(--f-px); color: #ffb46a;
  animation: tickerMove 28s linear infinite; will-change: transform;
}
.ticker__track span::after { content: ' ///'; color: #7c4a1e; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding: 54px 0 30px; }
.sec-title {
  font: 700 clamp(24px, 4.4vw, 40px) var(--f-head);
  color: #e7e3d8; letter-spacing: .5px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.sec-tag {
  font: 14px var(--f-px); color: #1e2023;
  background: var(--orange); padding: 3px 8px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.4);
}
.sec-sub { color: #9aa0a6; margin: 0 0 22px; font-size: 13.5px; }

/* ============================================================
   ФОРУМ-ТРЕД (hip-hop.ru вайб)
   ============================================================ */
.forum__path { padding: 7px 12px; font-size: 12px; color: #44474c; background: var(--paper-2); border-bottom: 1px solid #b3ae9f; }
.forum__meta { padding: 6px 12px; font-size: 12px; color: #6a4a22; background: linear-gradient(90deg, #f0d9b8, #e7d0aa); border-bottom: 2px solid var(--orange); }
.fpost { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid #b3ae9f; }
.fpost:last-of-type { border-bottom: none; }
.fpost__side {
  background: linear-gradient(180deg, #cfccc0, #c2beb1);
  border-right: 1px solid #b3ae9f;
  padding: 12px 10px; text-align: center; font-size: 12px; color: #3c3f44;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.fpost__nick { font-weight: bold; font-size: 14px; color: #1d4e89; word-break: break-all; }
.fpost__nick.is-author { color: #9a4a10; }
.fpost__rank {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  background: #31435c; color: #cfd6e2; border-radius: 2px;
}
.fpost__rank--mod { background: #8a1f14; }
.fpost__rank--old { background: #2e5c2e; }
.fpost__avatar {
  width: 110px; height: 110px; object-fit: cover; margin: 4px auto;
  border: 3px solid #fffefb; box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}
.fpost__side small { color: #5a5e63; }
.fpost__online { color: #1c5c1c; font-weight: bold; }
.fpost__offline { color: #8c8c8c; }
.fpost__main { background: var(--paper-2); padding: 0; display: flex; flex-direction: column; }
.fpost__head {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 5px 12px; font-size: 11.5px; color: #5a5e63;
  background: linear-gradient(90deg, #ddd9cc, #d1cdbf);
  border-bottom: 1px solid #c0bbac;
}
.fpost__head b { color: #3c3f44; }
.fpost__text { padding: 14px 14px 10px; font-size: 13.5px; line-height: 1.7; color: #2b2e33; }
.fpost__text p { margin-bottom: 10px; }
.fpost__sig {
  margin-top: auto; padding: 8px 14px 10px;
  border-top: 1px dashed #b3ae9f; font: italic 12px var(--f-px); color: #7a7468;
}
.forum__footer {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 12px; background: linear-gradient(180deg, #cfccc0, #bdb9ac);
  border-top: 1px solid #fffefb;
}
.forum__pages { font-size: 12px; color: #5a5e63; margin-left: auto; }

/* ============================================================
   ПРОЕКТЫ — окна старого софта
   ============================================================ */
.projects__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.pcard__img { position: relative; height: 200px; overflow: hidden; border-bottom: 2px solid var(--win-dd); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.15) contrast(1.02); transition: transform .35s; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font: 12px var(--f-px); color: #fff; background: rgba(30,32,35,.85);
  border: 1px solid #e8712b; padding: 3px 8px;
}
.pcard__body { padding: 14px 14px 16px; display: grid; gap: 8px; }
.pcard__name { font: 700 16px var(--f-ui); color: #1e2023; }
.pcard__desc { font-size: 13px; line-height: 1.6; color: #4c4f54; }
.pcard__link { justify-self: start; }

/* ============================================================
   ТИР (пистолет)
   ============================================================ */
.range { user-select: none; }
.range__area {
  position: relative; height: 480px; overflow: hidden; cursor: crosshair;
  background:
    radial-gradient(600px 300px at 70% 30%, rgba(255,255,255,.06), transparent 70%),
    linear-gradient(180deg, #33383d 0%, #2b2f33 55%, #232629 100%);
  border-top: 1px solid rgba(255,255,255,.08);
}
.range__wall {
  position: absolute; inset: 0; opacity: .25;
  background-image: url('assets/img/ph09.jpg'); background-size: cover; background-position: center;
  filter: sepia(.4) brightness(.5);
}
.range__area::after { /* грязь и зернистость */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100' height='100' filter='url(%23g)' opacity='0.1'/></svg>");
}
.target {
  position: absolute; top: 40px; right: 8%; width: min(240px, 34vw); z-index: 1;
  filter: drop-shadow(3px 4px 4px rgba(0,0,0,.5));
  transition: transform .12s ease-out;
}
.gun {
  position: absolute; left: 50%; bottom: -30px; z-index: 3;
  width: min(340px, 56vw);
  transform-origin: 50% 85%;
  will-change: transform;
  filter: drop-shadow(0 -6px 14px rgba(0,0,0,.55));
  pointer-events: none;
}
.gun__svg { width: 100%; height: auto; display: block; }
.gun.is-kick { animation: gunKick .18s ease-out; }
@keyframes gunKick {
  0% { transform: translate(var(--gx,0), var(--gy,0)) rotate(var(--gr,0deg)); }
  35% { transform: translate(calc(var(--gx,0px) + var(--kx,0px)), calc(var(--gy,0px) - 16px)) rotate(calc(var(--gr,0deg) + var(--kr,0deg))); }
  100% { transform: translate(var(--gx,0), var(--gy,0)) rotate(var(--gr,0deg)); }
}
#gunFlash { animation: flashPop .16s ease-out; transform-origin: 150px 47px; }
@keyframes flashPop { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.4); } }
.bullet-hole {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 2;
  background: radial-gradient(circle, #000 0 3px, #131313 3px 6px, rgba(60,60,60,.85) 6px 9px, transparent 10px);
  border-radius: 50%; pointer-events: none;
  box-shadow: inset 2px 2px 3px rgba(255,255,255,.25), 1px 2px 2px rgba(0,0,0,.6);
}
.bullet-hole::after {
  content: ''; position: absolute; inset: -6px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.1) 0 2px, transparent 3px);
}
.range__hud {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font: 13px var(--f-px); color: #ffb46a;
  background: rgba(20,22,25,.8); border: 1px solid #e8712b; padding: 4px 10px;
}
.range__note {
  position: absolute; bottom: 8px; right: 10px; z-index: 4;
  font-size: 11px; color: #8a97a4;
}
.range__hint-mobile { display: none; }

/* ============================================================
   БАНКОМАТ
   ============================================================ */
.atm-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  overflow: hidden;
  background: #0a0c0f;
}

/* Фоновое изображение банкомата на весь экран */
.atm-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../банкомат.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.85) contrast(1.15) saturate(0.9);
}

/* Затемнение для лучшей читаемости */
.atm-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 70%);
}

.atm--photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atm__photo {
  display: none;
}

/* Экран поверх фото банкомата - точно по границам */
.atm__screen-overlay {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 46vw);
  height: min(380px, 36vh);
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(155, 254, 159, 0.3));
}

.atm__crt {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 2px);
  border-radius: 8px;
}

.atm__crt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,15,0,.6));
  border-radius: 8px;
}

/* Эффект свечения экрана */
.atm__screen-overlay::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: 1;
  background: linear-gradient(145deg,
    rgba(155, 254, 159, 0.15) 0%,
    transparent 40%,
    transparent 60%,
    rgba(155, 254, 159, 0.1) 100%);
  border-radius: 8px;
  pointer-events: none;
}

.atm__ui {
  position: absolute;
  inset: 0;
  padding: 16px;
  color: #9fe89f;
  font-family: var(--f-px);
  z-index: 4;
  background: linear-gradient(180deg, #1a2e1a 0%, #152515 100%);
  border: 5px solid #1a1f1a;
  border-radius: 8px;
  box-shadow:
    inset 0 0 40px rgba(155, 254, 159, 0.08),
    inset 4px 4px 12px rgba(0,0,0,.85),
    0 2px 0 rgba(255,255,255,.1);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Кастомный скроллбар для экрана */
.atm__ui::-webkit-scrollbar {
  width: 8px;
}

.atm__ui::-webkit-scrollbar-track {
  background: #0f1a0f;
  border-radius: 4px;
}

.atm__ui::-webkit-scrollbar-thumb {
  background: #4c8a4c;
  border-radius: 4px;
}

.atm__ui::-webkit-scrollbar-thumb:hover {
  background: #5fae5f;
}

.atm__menu-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #d5ffd5;
  margin: 6px 0 4px;
  text-shadow: 0 0 8px rgba(155, 254, 159, 0.5);
  letter-spacing: 1px;
}

.atm__menu-date {
  text-align: center;
  font-size: 12px;
  color: #7fbe7f;
  margin-bottom: 16px;
  text-shadow: 0 0 4px rgba(155, 254, 159, 0.3);
}

.atm__btns {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}

.atm__mitem {
  font: bold 15px var(--f-px);
  text-align: left;
  color: #b5f5b5;
  background: rgba(60,120,60,.2);
  border: 2px solid #4c8a4c;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .15s ease;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.atm__mitem::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(155, 254, 159, 0.2), transparent);
  transition: left 0.5s;
}

.atm__mitem:hover::before {
  left: 100%;
}

.atm__mitem:hover {
  background: rgba(90,180,90,.35);
  color: #e5ffe5;
  border-color: #6fae6f;
  box-shadow: 0 0 16px rgba(155, 254, 159, 0.4);
  transform: translateX(4px);
}

.atm__mitem:active {
  transform: translateX(2px) translateY(1px);
  box-shadow: 0 0 12px rgba(155, 254, 159, 0.3);
}

.atm__mitem--hot {
  border-color: #e8a34c;
  color: #ffd9a0;
  background: rgba(232,113,43,.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(232, 113, 43, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(232, 113, 43, 0.6);
  }
}

.atm__mitem--hot:hover {
  background: rgba(232,113,43,.4);
  color: #fff;
  border-color: #ffb46a;
  box-shadow: 0 0 24px rgba(232, 113, 43, 0.8);
}

.atm__field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.atm__field span {
  font-size: 13px;
  color: #a5e5a5;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(155, 254, 159, 0.3);
}

.atm__input, .atm__select {
  font: 14px var(--f-px);
  color: #d5ffd5;
  background: #0f1f0f;
  border: 2px solid #4c8a4c;
  padding: 10px 12px;
  outline: none;
  border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
  transition: all 0.2s;
}

.atm__input:focus, .atm__select:focus {
  border-color: #6fae6f;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 0 12px rgba(155, 254, 159, 0.4);
  background: #14240f;
}

.atm__amount {
  font: bold 16px var(--f-px);
  color: #ffd9a0;
  margin: 4px 0 12px;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 180, 106, 0.5);
}

.atm__range {
  width: 100%;
  height: 8px;
  accent-color: #e8712b;
  cursor: pointer;
}

.atm__note {
  font-size: 12px;
  color: #7fbe7f;
  line-height: 1.6;
  text-align: center;
  padding: 8px;
  background: rgba(60,120,60,.1);
  border-radius: 4px;
  border: 1px dashed #4c8a4c;
}

.atm__addr {
  display: block;
  font-size: 13px;
  color: #ffd9a0;
  word-break: break-all;
  background: #0f1f0f;
  border: 2px solid #e8712b;
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 0 12px rgba(232, 113, 43, 0.3);
  text-shadow: 0 0 4px rgba(255, 180, 106, 0.4);
  transition: all 0.2s;
}

.atm__addr:hover {
  border-color: #ffb46a;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 0 20px rgba(232, 113, 43, 0.6);
  background: #14240f;
  transform: translateY(-2px);
}

.atm__crypto-addr {
  cursor: pointer;
  user-select: all;
}

.atm__crypto-addr:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 0 16px rgba(155, 254, 159, 0.5);
  border-color: #9fe89f;
}

.atm__qr {
  width: 160px;
  margin: 12px auto;
  border: 5px solid #d5ffd5;
  background: #fff;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 20px rgba(155, 254, 159, 0.3);
}

.atm__back {
  margin-top: 12px;
}

/* Клавиатура поверх фото - НЕ перекрывает экран */
.atm__keys-overlay {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 32vw);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  background: rgba(20, 25, 30, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 8px;
}

.akey {
  font: bold 18px var(--f-ui);
  color: #dfe6ec;
  padding: 14px 0;
  background: linear-gradient(180deg, #5a646d, #454e55 60%, #3b434a);
  border: 2px solid;
  border-color: #6d7883 #22282d #22282d #6d7883;
  box-shadow: 2px 2px 4px rgba(0,0,0,.5);
  transition: all .08s;
  border-radius: 6px;
  cursor: pointer;
}

.akey:hover {
  background: linear-gradient(180deg, #6a747d, #555f66 60%, #4b545a);
  transform: translateY(-2px);
  box-shadow: 2px 4px 6px rgba(0,0,0,.6);
}

.akey:active, .akey.is-pressed {
  border-color: #22282d #6d7883 #6d7883 #22282d;
  background: linear-gradient(180deg, #3b434a, #4a545c);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,.7);
  transform: translateY(2px);
}

/* Слот карты - НЕ перекрывает клавиатуру */
.atm__card-slot-overlay {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 36vw);
  z-index: 1;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 23, 26, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  border: 2px solid #1a1f24;
  box-shadow: inset 0 4px 8px rgba(0,0,0,.9), 0 4px 12px rgba(0,0,0,0.5);
}

.atm__card-slot-overlay span {
  font: bold 11px var(--f-px);
  color: #7a8490;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.atm__card {
  width: 52px;
  height: 34px;
  margin-left: auto;
  border-radius: 5px;
  background: linear-gradient(135deg, #d4b560, #c5a44a 50%, #8a6d2b);
  box-shadow:
    0 2px 0 rgba(255,255,255,.4) inset,
    0 -1px 0 rgba(0,0,0,.4) inset,
    0 4px 8px rgba(0,0,0,.6);
  animation: cardWiggle 2.6s ease-in-out infinite;
  position: relative;
}

.atm__card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 6px;
  width: 24px;
  height: 18px;
  background: linear-gradient(135deg, #e8d890, #c5a44a);
  border-radius: 2px;
  opacity: 0.7;
}

@keyframes cardWiggle {
  0%, 88%, 100% { transform: none; }
  92% { transform: translateY(-5px) rotate(-2deg); }
  96% { transform: translateY(-1px) rotate(-1deg); }
}

/* Слот чека - выше экрана */
.atm__receipt-slot-overlay {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 34vw);
  min-height: 24px;
  padding: 6px 10px;
  background: rgba(20, 23, 26, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  box-shadow: inset 0 4px 8px rgba(0,0,0,.9);
  display: flex;
  justify-content: center;
  z-index: 2;
}

.atm__receipt {
  width: 240px;
  background: linear-gradient(180deg, #f8f4e8, #f2eee2);
  color: #2a2822;
  font: 12px/1.6 'Courier New', monospace;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,0.1);
  animation: receiptOut 1.4s ease-out forwards;
  transform-origin: top center;
  border-radius: 4px 4px 0 0;
}

@keyframes receiptOut {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-10px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

/* Win98-ошибка поверх банкомата - улучшена */
.atm-error {
  position: fixed;
  z-index: 200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 94vw);
  animation: errShake .4s ease-in-out;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.7));
}

@keyframes errShake {
  0%, 100% { transform: translate(-50%, -50%); }
  15% { transform: translate(calc(-50% - 10px), -50%); }
  30% { transform: translate(calc(-50% + 10px), -50%); }
  45% { transform: translate(calc(-50% - 8px), -50%); }
  60% { transform: translate(calc(-50% + 6px), -50%); }
  75% { transform: translate(calc(-50% - 4px), -50%); }
  90% { transform: translate(calc(-50% + 2px), -50%); }
}

.atm-error__body {
  display: flex;
  gap: 16px;
  padding: 20px 18px;
  align-items: flex-start;
}

.atm-error__ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #ffd34d;
  background: radial-gradient(circle, #c85430, #b3452b 50%, #7a1f10);
  border: 3px solid;
  border-color: #e89a7a #3a0f05 #3a0f05 #e89a7a;
  border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 4px 8px rgba(0,0,0,0.5);
}

.atm-error__body pre {
  font: 14px/1.65 var(--f-ui);
  color: #1e2023;
  white-space: pre-wrap;
}

.atm-error__foot {
  display: flex;
  justify-content: center;
  padding: 0 18px 16px;
}

/* Адаптив для банкомата */
@media (max-width: 1400px) {
  .atm__screen-overlay {
    width: min(480px, 48vw);
    height: min(370px, 37vh);
    top: 25%;
  }
  .atm__keys-overlay {
    bottom: 9%;
  }
}

@media (max-width: 1200px) {
  .atm__screen-overlay {
    width: min(450px, 50vw);
    height: min(340px, 35vh);
    top: 24%;
  }
  .atm__keys-overlay {
    width: min(300px, 36vw);
    gap: 6px;
    bottom: 8%;
  }
  .atm__card-slot-overlay {
    width: min(320px, 40vw);
    bottom: 3%;
  }
  .atm__receipt-slot-overlay {
    width: min(300px, 38vw);
    top: 68%;
  }
}

@media (max-width: 900px) {
  .atm__screen-overlay {
    top: 22%;
    width: 62vw;
    height: 40vh;
  }
  .atm__keys-overlay {
    bottom: 7%;
    width: 50vw;
  }
  .atm__card-slot-overlay {
    bottom: 2%;
    width: 55vw;
  }
  .atm__receipt-slot-overlay {
    top: 66%;
    width: 50vw;
  }
  .atm__ui {
    padding: 12px;
  }
  .atm__menu-title {
    font-size: 16px;
  }
  .atm__mitem {
    font-size: 13px;
    padding: 10px 12px;
  }
  .akey {
    font-size: 16px;
    padding: 12px 0;
  }
}

@media (max-width: 640px) {
  .atm__screen-overlay {
    top: 20%;
    width: 70vw;
    height: 42vh;
  }
  .atm__keys-overlay {
    bottom: 6%;
    width: 58vw;
    gap: 5px;
    padding: 8px;
  }
  .atm__card-slot-overlay {
    bottom: 1.5%;
    width: 62vw;
  }
  .atm__receipt-slot-overlay {
    top: 65%;
    width: 58vw;
  }
  .atm__ui {
    padding: 10px;
    font-size: 11px;
  }
  .atm__menu-title {
    font-size: 14px;
  }
  .atm__menu-date {
    font-size: 10px;
  }
  .atm__mitem {
    font-size: 12px;
    padding: 8px 10px;
  }
  .akey {
    font-size: 14px;
    padding: 10px 0;
  }
}

/* Старая верстка банкомата - полностью скрыта */
.atm:not(.atm--photo) {
  display: none;
}

/* ============================================================
   GAME BOY
   ============================================================ */
.gb-scene { display: flex; gap: 22px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.gb {
  --gb-body: #c3c0b2;
  position: relative; width: 400px; max-width: 96vw;
  background: linear-gradient(160deg, #d0cdc0 0%, var(--gb-body) 30%, #b2afa1 100%);
  border-radius: 14px 14px 48px 14px;
  border: 2px solid #7e7b6e;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.6),
    inset -4px -4px 0 rgba(0,0,0,.12),
    8px 10px 0 rgba(0,0,0,.35);
  padding: 16px 18px 22px;
}
.gb__top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.gb__dot { width: 9px; height: 9px; border-radius: 50%; background: #6a30a0; box-shadow: 0 0 5px #8a4ac0; }
.gb__power { font: 8px var(--f-ui); color: #5a5748; letter-spacing: 1px; margin-left: 2px; }
.gb__brand { margin-left: auto; font: italic 10px var(--f-ui); color: #5a5748; letter-spacing: 1px; }
.gb__screen-frame {
  background: #2d2a24; border-radius: 8px 8px 26px 8px;
  padding: 22px 34px 16px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.6);
  position: relative;
}
.gb__screen {
  position: relative; width: 100%; aspect-ratio: 10/9;
  background: var(--lcd); border: 2px solid #1c2010;
  box-shadow: inset 2px 2px 6px rgba(15,56,15,.35);
  overflow: hidden;
}
#gbCanvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.gb__lcd { /* пиксельная сетка ЖК */
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(15,56,15,.12) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(15,56,15,.12) 0 1px, transparent 1px 3px);
}
.gb__dot2 {
  position: absolute; left: 12px; top: 40%;
  width: 8px; height: 8px; border-radius: 50%;
  background: #a44242; box-shadow: 0 0 6px #d46a6a;
}
.gb__battery { text-align: center; font: bold 8px var(--f-ui); color: #8a8778; letter-spacing: 2px; margin-top: 6px; }
.gb__brandline { text-align: center; font: italic 900 15px var(--f-ui); color: #3d5c8a; margin: 10px 0 4px; letter-spacing: 1px; }
.gb__brandline span { font-size: 9px; vertical-align: top; }
.gb__controls { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.gb__dpad {
  position: relative; width: 96px; height: 96px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3));
}
.d {
  position: absolute; width: 34px; height: 34px;
  background: linear-gradient(160deg, #4a4844, #2b2a27);
  border: 1px solid #1a1917; color: #8a8778;
  font-size: 10px;
}
.d--up { left: 31px; top: 0; border-radius: 6px 6px 0 0; }
.d--down { left: 31px; bottom: 0; border-radius: 0 0 6px 6px; }
.d--left { left: 0; top: 31px; border-radius: 6px 0 0 6px; }
.d--right { right: 0; top: 31px; border-radius: 0 6px 6px 0; }
.d--mid { left: 31px; top: 31px; background: #33322e; border: none; pointer-events: none; }
.d:active { background: linear-gradient(160deg, #2b2a27, #4a4844); }
.gb__ab { display: flex; gap: 14px; align-items: center; transform: rotate(-14deg); }
.gb__btn-a, .gb__btn-b {
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d05a5a, #8a1f14 70%);
  border: 2px solid #5a0f08; color: #f2c0b0;
  font: bold 16px var(--f-ui);
  box-shadow: 2px 3px 0 rgba(0,0,0,.35), inset 1px 2px 0 rgba(255,255,255,.25);
}
.gb__btn-a:active, .gb__btn-b:active { transform: translateY(2px); box-shadow: inset 1px 2px 4px rgba(0,0,0,.5); }
.gb__startselect { display: flex; gap: 22px; justify-content: center; margin-top: 14px; }
.gb__ss {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none;
  font: bold 9px var(--f-ui); color: #5a5748; letter-spacing: 1px;
}
.gb__ss i {
  display: inline-block; width: 34px; height: 12px; border-radius: 6px;
  background: linear-gradient(160deg, #4a4844, #2b2a27);
  border: 1px solid #1a1917;
  box-shadow: 1px 1px 0 rgba(0,0,0,.3);
}
.gb__ss:active i { background: #26251f; }
.gb__speaker {
  position: absolute; right: 20px; bottom: 16px;
  display: flex; gap: 5px; transform: rotate(-26deg);
}
.gb__speaker i {
  width: 5px; height: 44px; border-radius: 3px;
  background: linear-gradient(180deg, #9a9789, #7e7b6e);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.gb-side { width: 320px; max-width: 96vw; }
.gb-side__body { padding: 12px 14px; display: grid; gap: 12px; }
.gb-help { width: 100%; border-collapse: collapse; font-size: 12.5px; color: #2b2e33; }
.gb-help td { padding: 4px 6px; border: 1px solid #b3ae9f; }
.gb-help td:first-child { font-family: var(--f-px); color: #9a4a10; background: var(--paper); width: 38%; }
.gb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-actions .w98btn { flex: 1; min-width: 80px; }

/* ============================================================
   ПЛЕЕР-КАССЕТА
   ============================================================ */
.tape { max-width: 720px; margin: 0 auto; position: relative; }
.tape__body { padding: 16px 18px 18px; display: grid; gap: 14px; background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.tape__reels { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #2b2e33; border: 2px solid; border-color: #14171a #5a6470 #5a6470 #14171a; border-radius: 6px; }
.reel {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle, #d9d5c9 0 8px, #b3ae9f 8px 12px, #8a8778 12px);
  border: 3px solid #1c1f22;
  display: grid; place-items: center;
}
.reel i {
  position: absolute; width: 10px; height: 46px; background: #2b2e33; border-radius: 4px;
  transform-origin: center;
}
.reel { position: relative; }
.reel i:nth-child(1) { transform: rotate(0deg); }
.reel i:nth-child(2) { transform: rotate(60deg); }
.reel i:nth-child(3) { transform: rotate(120deg); }
.tape.playing .reel { animation: reelSpin 1.8s linear infinite; }
@keyframes reelSpin { to { transform: rotate(360deg); } }
.tape__window {
  flex: 1; text-align: center; overflow: hidden;
  font: 13px var(--f-px); color: #ffd9a0; white-space: nowrap; text-overflow: ellipsis;
  background: #14171a; border-radius: 3px; padding: 8px 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.7);
}
.tape__screen { display: grid; gap: 6px; position: relative; overflow: hidden; }
.tape__time { font: 14px var(--f-px); color: #9a4a10; }
.tape__progress { height: 14px; background: #b3ae9f; border: 2px solid; border-color: #6a675c #fffefb #fffefb #6a675c; cursor: pointer; }
.tape__progress i { display: block; height: 100%; width: 0%; background: repeating-linear-gradient(90deg, #e8712b 0 8px, #c85a1a 8px 12px); }
.tape__track { font-size: 12.5px; color: #4c4f54; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.knob-wrap { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.knob-label, .knob-num { font: 11px var(--f-px); color: #5a5e63; }
.knob {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #6a675c, #3c3a34 60%, #26251f),
    conic-gradient(#5a5750, #33322e, #5a5750);
  border: 3px solid #1c1a16;
  box-shadow: 2px 2px 0 rgba(0,0,0,.4), inset 1px 2px 0 rgba(255,255,255,.2);
  cursor: grab; touch-action: none;
}
.knob:active { cursor: grabbing; }
.knob__mark {
  position: absolute; left: 50%; top: 4px; width: 4px; height: 16px;
  background: #ffb46a; border-radius: 2px; margin-left: -2px;
  box-shadow: 0 0 4px rgba(255,180,106,.8);
}
.tape__link { margin-left: auto; font-size: 11px; color: #1d4e89; }

/* Track card animation */
.tape__card-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  perspective: 1000px;
}
.tape__card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(232, 113, 43, 0.15), rgba(232, 113, 43, 0.05));
  border: 2px solid rgba(232, 113, 43, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform-origin: center center;
  will-change: transform, opacity;
}
.tape__card-cover {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e8712b, #c85a1a);
  border: 2px solid #fffefb;
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fffefb;
}
.tape__card-info {
  flex: 1;
  overflow: hidden;
}
.tape__card-title {
  font: bold 14px var(--f-ui);
  color: #e8712b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tape__card-artist {
  font: 12px var(--f-px);
  color: #5a5e63;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card animations */
.tape__card--exit {
  animation: cardExitRotate 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
.tape__card--enter {
  animation: cardEnterRotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cardExitRotate {
  0% {
    transform: translate(0, 0) rotateY(0deg) rotateX(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-150%, -120%) rotateY(-85deg) rotateX(35deg) scale(0.4);
    opacity: 0;
  }
}
@keyframes cardEnterRotate {
  0% {
    transform: translate(150%, 120%) rotateY(85deg) rotateX(-35deg) scale(0.4);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) rotateY(0deg) rotateX(0deg) scale(1);
    opacity: 1;
  }
}

/* Floating playlist widget */
.tape__playlist-widget {
  position: fixed;
  bottom: -250px;
  right: 24px;
  width: 280px;
  z-index: 500;
  transition: bottom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.tape__playlist-widget.is-visible {
  bottom: 24px;
}
.tape__playlist-widget .win98 {
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
.tape__playlist-body {
  padding: 8px;
  overflow-y: auto;
  max-height: 260px;
  background: var(--paper-2);
}
.tape__playlist-item {
  font: 12px var(--f-px);
  padding: 6px 8px;
  margin-bottom: 4px;
  background: var(--paper);
  border: 1px solid var(--paper-dark);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tape__playlist-item:hover {
  background: linear-gradient(90deg, rgba(232, 113, 43, 0.15), transparent);
  border-color: #e8712b;
}
.tape__playlist-item.is-active {
  background: linear-gradient(90deg, #e8712b, #c85a1a);
  color: #fff;
  font-weight: bold;
  border-color: #9a4a10;
}

@media (max-width: 768px) {
  .tape__playlist-widget {
    right: 12px;
    width: 240px;
  }
  .tape__card-cover {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* ============================================================
   ГАЛЕРЕЯ (крупные превью)
   ============================================================ */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gitem {
  position: relative; border: 3px solid #fffefb; background: #fffefb;
  padding: 8px 8px 30px; cursor: zoom-in;
  box-shadow: 3px 4px 0 rgba(0,0,0,.4);
  transition: transform .18s, box-shadow .18s;
}
.gitem:nth-child(odd) { transform: rotate(-1.2deg); }
.gitem:nth-child(even) { transform: rotate(1.1deg); }
.gitem:hover { transform: rotate(0) translateY(-4px); box-shadow: 5px 8px 0 rgba(0,0,0,.5); z-index: 2; }
.gitem img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  filter: sepia(.1) contrast(1.03); transition: filter .25s;
}
.gitem:hover img { filter: sepia(0) contrast(1.08) saturate(1.15); }
.gitem figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 7px;
  font: italic 12px var(--f-px); color: #5a5e63;
  display: flex; justify-content: space-between;
}
.gitem .gnum { color: #b3ae9f; }
.gallery__more { text-align: center; margin-top: 24px; }

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(12,14,16,.9);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox__inner {
  max-width: min(900px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--win-face); border: 2px solid; border-color: var(--win-light) var(--win-dd) var(--win-dd) var(--win-light);
  box-shadow: 6px 8px 0 rgba(0,0,0,.5);
}
.lightbox__inner img { max-height: 74vh; object-fit: contain; background: #14171a; }
.lightbox__cap { padding: 8px 12px; font: italic 12px var(--f-px); color: #5a5e63; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ccard {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; text-decoration: none;
}
.ccard__ico {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 20px; color: #fff;
  background: linear-gradient(160deg, #31435c, #22303f);
  border: 2px solid; border-color: #5a6c85 #10161e #10161e #5a6c85;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}
.ccard:hover .ccard__ico { background: linear-gradient(160deg, #e8873b, #c85a1a); }
.ccard__t { display: grid; gap: 2px; }
.ccard__label { font: bold 13px var(--f-ui); color: #1e2023; letter-spacing: .5px; }
.ccard__handle { font: 13px var(--f-px); color: #9a4a10; }
.ccard:hover .ccard__label { text-decoration: underline; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer { border-top: 3px solid var(--orange); background: #1a1d20; margin-top: 60px; position: relative; z-index: 1; }
.footer__inner { display: flex; align-items: center; gap: 16px; padding: 22px 14px; flex-wrap: wrap; }
.footer__logo { width: 36px; height: 36px; border: 2px solid #fffefb; box-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.footer__note { color: #8a97a4; font-size: 12px; }
.footer__counter { margin-left: auto; font: 13px var(--f-px); color: #ffb46a; }
.footer__counter b {
  font-family: var(--f-px); color: #7cfc00; background: #0a0f05;
  border: 1px solid #3a5c1e; padding: 2px 8px; letter-spacing: 3px;
}
.footer__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.fbadge { font-size: 10px; color: #5a6470; border: 1px solid #33383d; padding: 2px 6px; }
.footer__admin-hint { color: #33383d; font-size: 11px; }
.footer__admin-hint:hover { color: var(--orange); }

/* ============================================================
   АДМИНКА
   ============================================================ */
.admin {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(12,14,16,.78);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.admin__window { width: min(700px, 100%); max-height: 92vh; display: flex; flex-direction: column; }
.admin__close {
  background: linear-gradient(180deg, #e89a7a, #c85430); color: #fff;
  border: 1px solid; border-color: #fff #4a473d #4a473d #fff;
  width: 17px; height: 15px; font-size: 10px; line-height: 1;
}
.admin__body { padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.admin__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.atab {
  font: bold 12px var(--f-ui); color: #2b2e33;
  padding: 5px 12px;
  background: linear-gradient(180deg, #e2ded2, #cbc7ba);
  border: 2px solid; border-color: var(--win-light) var(--win-dd) var(--win-dd) var(--win-light);
}
.atab.is-active { background: linear-gradient(180deg, #31435c, #22303f); color: #ffb46a; }
.admin__pane { display: none; flex-direction: column; gap: 9px; }
.admin__pane.is-active { display: flex; }
.admin__pane label { display: flex; flex-direction: column; gap: 4px; font: bold 11.5px var(--f-ui); color: #4c4f54; }
.admin__pane input, .admin__pane textarea, .admin__row input {
  font: 13px var(--f-ui); color: #26292c;
  background: #fffefb; border: 2px solid; border-color: #6a675c #fffefb #fffefb #6a675c;
  padding: 6px 8px; outline: none; resize: vertical;
}
.admin__pane input:focus, .admin__pane textarea:focus { border-color: var(--orange); }
.admin__pane hr { border: none; border-top: 1px dashed #b3ae9f; margin: 4px 0; }
.admin__row { display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr auto; gap: 6px; align-items: center; border-bottom: 1px solid #c9c4b6; padding-bottom: 6px; }
.admin__del {
  background: linear-gradient(180deg, #e8a08a, #c85430); color: #fff;
  border: 2px solid; border-color: #f2c0b0 #4a0f05 #4a0f05 #f2c0b0;
  width: 28px; height: 26px;
}
.admin__img-preview img { max-height: 120px; border: 2px solid #fffefb; box-shadow: 2px 2px 0 rgba(0,0,0,.3); }
.admin__footer {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; border-top: 1px solid #b3ae9f;
  background: linear-gradient(180deg, #cfccc0, #bdb9ac);
}
.admin__status { font: 12px var(--f-px); color: #1c5c1c; margin-left: auto; }
.admin__status.is-err { color: #8a1f14; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 9800;
  background: var(--win-face); color: #1e2023;
  font: bold 13px var(--f-ui);
  border: 2px solid; border-color: var(--win-light) var(--win-dd) var(--win-dd) var(--win-light);
  box-shadow: 3px 4px 0 rgba(0,0,0,.5);
  padding: 10px 18px; animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ============================================================
   INTRO (приветственная анимация)
   ============================================================ */
.intro3d {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro3d--hidden {
  display: none;
}

#gunCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: crosshair;
}

.intro3d__backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 900 clamp(80px, 25vw, 350px) var(--f-head);
  color: transparent;
  -webkit-text-stroke: 3px rgba(232, 113, 43, 0.12);
  text-stroke: 3px rgba(232, 113, 43, 0.12);
  letter-spacing: 0.15em;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  text-shadow:
    0 0 40px rgba(232, 113, 43, 0.08),
    0 0 80px rgba(232, 113, 43, 0.05);
}

.intro3d__skip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font: bold 13px var(--f-ui);
  color: rgba(217, 213, 201, 0.6);
  z-index: 4;
  animation: skipPulse 2.5s ease-in-out infinite;
  text-align: center;
  padding: 0 20px;
}

@keyframes skipPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* ============================================================
   GUN-STAGE для 3D модели в hero
   ============================================================ */
#gun-stage {
  min-height: 450px !important;
  z-index: 10;
  display: block;
}

#gun-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  #gun-stage {
    height: 400px !important;
    min-height: 400px !important;
  }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 860px) {
  .topbar__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 8px; gap: 3px;
    background: var(--win-face);
    border: 2px solid; border-color: var(--win-dd) var(--win-light) var(--win-light) var(--win-dd);
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__burger { display: flex; }
  .topbar__user { display: none; }
  .fpost { grid-template-columns: 1fr; }
  .fpost__side { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; border-right: none; border-bottom: 1px solid #b3ae9f; }
  .fpost__avatar { width: 84px; height: 84px; margin: 0; }
  .fpost__sideinfo { display: flex; gap: 10px; font-size: 11px; color: #5a5e63; flex-wrap: wrap; justify-content: center; }
  .range__area { height: 420px; }
  .target { right: 4%; width: 38vw; }
  .gb { padding: 12px 12px 18px; }
  .gb__screen-frame { padding: 16px 22px 12px; }
  .admin__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .hero__cta .w98btn { width: 100%; }
  .range__area { height: 380px; }
  .gun { width: 70vw; bottom: -20px; }
  .gb__dpad { width: 84px; height: 84px; }
  .d { width: 30px; height: 30px; }
  .d--up, .d--down { left: 27px; }
  .d--left, .d--right { top: 27px; }
  .d--mid { left: 27px; top: 27px; }
  .gb__btn-a, .gb__btn-b { width: 44px; height: 44px; }
  .footer__counter { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
