/* ============================
   ВИЗИТКА ТУН УН САХУР — ULTRAKILL
   ============================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #b51e1e;
  --red-bright: #e01515;
  --red-dark: #7a1010;
  --red-glow: rgba(224, 21, 21, 0.4);
  --purple: #6a1b9a;
  --green: #00ff41;
  --gold: #ffd700;
  --bg: #0a0a0a;
  --bg2: #0e0e0e;
  --card: #111;
  --card-border: #1e1e1e;
  --text: #ddd;
  --dim: #555;
  --font-d: 'Orbitron', monospace, sans-serif;
  --font-m: 'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-m);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--red); color: #fff; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== НАВИГАЦИЯ ===== */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.3s;
}

.nav__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  font-family: var(--font-d);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red-bright);
  text-decoration: none;
  text-shadow: 0 0 12px var(--red-glow);
}

.nav__links { display: flex; gap: 1.5rem; }

.nav__link {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.25s;
}

.nav__link:hover { color: var(--red-bright); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 56px; left: 0; width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 998;
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 0.8rem;
}

.mobile-menu.active { display: flex; }

.mobile-menu__link {
  font-family: var(--font-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--dim);
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.mobile-menu__link:hover { color: var(--red-bright); }

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ===== КОД ДРУЖБЫ — РАДУГА ===== */
.friend-code {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  z-index: 998;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff0000) 1;
  padding: 0.8rem 1rem;
  text-align: center;
  overflow: hidden;
}

.friend-code__text {
  font-family: var(--font-d);
  font-size: clamp(0.8rem, 2.5vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
  animation: rainbowBg 3s linear infinite;
  background-size: 400% 400%;
}

.rainbow {
  background: linear-gradient(
    90deg,
    #ff0000, #ff4400, #ff8800, #ffcc00,
    #ffff00, #88ff00, #00ff00, #00ff88,
    #00ffff, #0088ff, #0000ff, #4400ff,
    #8800ff, #cc00ff, #ff00ff, #ff0088,
    #ff0000
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowShift 2s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.friend-code__num {
  font-size: 1.1em;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #fff, #ff4444, #fff, #44ff44, #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: rainbowShift 1.5s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(255, 100, 100, 0.5));
}

@keyframes rainbowBg {
  0% { filter: hue-rotate(0deg) drop-shadow(0 0 10px rgba(255, 100, 100, 0.4)); }
  100% { filter: hue-rotate(360deg) drop-shadow(0 0 10px rgba(100, 100, 255, 0.4)); }
}

@media (max-width: 600px) {
  .friend-code__text {
    white-space: normal;
    font-size: clamp(0.65rem, 3vw, 1rem);
  }
}

/* ===== ГЕРОЙ ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(181,30,30,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(106,27,154,0.08) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, #000 100%);
  pointer-events: none;
}

.hero__particles {
  position: absolute; inset: 0;
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; }

.hero__tag {
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.5em;
  margin-bottom: 0.8rem;
}

.hero__name {
  font-family: var(--font-d);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff 15%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--red-glow));
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: 0.9rem;
  color: var(--dim);
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.hero__badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 0.35rem 0.8rem;
  border: 1px solid;
  font-family: var(--font-d);
  font-weight: 700;
}

.badge--red {
  color: var(--red-bright);
  border-color: var(--red);
  text-shadow: 0 0 8px var(--red-glow);
  animation: badgePulse 2s ease-in-out infinite;
}

.badge--dim {
  color: var(--dim);
  border-color: #333;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hero__scroll {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-decoration: none;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== GLITCH ===== */
.glitch, .glitch-sm { position: relative; }

.glitch::before, .glitch::after,
.glitch-sm::before, .glitch-sm::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}

.glitch::before { color: #ff0040; z-index: -1; animation: g1 4s infinite linear alternate-reverse; }
.glitch::after { color: #00fff9; z-index: -2; animation: g2 3s infinite linear alternate-reverse; }
.glitch-sm::before { color: #ff0040; z-index: -1; animation: g1 5s infinite linear alternate-reverse; }
.glitch-sm::after { color: #00fff9; z-index: -2; animation: g2 4s infinite linear alternate-reverse; }

@keyframes g1 {
  0%,94% { clip-path: inset(0); transform: translate(0); }
  95% { clip-path: inset(20% 0 60% 0); transform: translate(-2px,1px); }
  96% { clip-path: inset(70% 0 10% 0); transform: translate(2px,-1px); }
  97% { clip-path: inset(40% 0 40% 0); transform: translate(-1px,2px); }
  100% { clip-path: inset(0); transform: translate(0); }
}
@keyframes g2 {
  0%,92% { clip-path: inset(0); transform: translate(0); }
  93% { clip-path: inset(60% 0 20% 0); transform: translate(2px,-1px); }
  95% { clip-path: inset(30% 0 50% 0); transform: translate(-2px,1px); }
  100% { clip-path: inset(0); transform: translate(0); }
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 5rem 0;
}

.section--alt { background: var(--bg2); }

.section__header { text-align: center; margin-bottom: 3rem; }

.section__num {
  font-family: var(--font-d);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.5em;
}

.section__title {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #fff;
}

.section__line {
  width: 60px; height: 3px;
  background: var(--red);
  margin: 0.8rem auto 0;
  box-shadow: 0 0 12px var(--red);
}

/* ===== О СЕБЕ ===== */
.about {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.about__avatar { flex: 0 0 auto; text-align: center; }

.avatar-frame {
  position: relative;
  width: 160px; height: 160px;
  margin: 0 auto;
}

.avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--card);
  border: 2px solid var(--red-dark);
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--red);
  opacity: 0.4;
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.03); }
}

.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.avatar-label {
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.2em;
  margin-top: 0.8rem;
}

/* ===== ФОТО ГЕРОЯ ===== */
.hero__photo {
  margin-bottom: 1.5rem;
}

.hero__photo-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 3px solid var(--red);
  box-shadow: 0 0 30px var(--red-glow), 0 0 60px rgba(181,30,30,0.2);
  animation: photoPulse 3s ease-in-out infinite;
}

.hero__photo-fallback {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--card);
  border: 3px solid var(--red);
  box-shadow: 0 0 30px var(--red-glow);
  margin: 0 auto;
}

@keyframes photoPulse {
  0%, 100% { box-shadow: 0 0 30px var(--red-glow), 0 0 60px rgba(181,30,30,0.2); }
  50% { box-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(181,30,30,0.35); }
}

.about__info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.3s;
}

.info-card:hover { border-color: var(--red-dark); }

.info-card__label {
  font-size: 0.55rem;
  color: var(--dim);
  letter-spacing: 0.25em;
}

.info-card__value {
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.info-card__value--red {
  color: var(--red-bright);
  text-shadow: 0 0 8px var(--red-glow);
}

/* ===== ТЕРМИНАЛ ===== */
.terminal {
  background: #0c0c0c;
  border: 1px solid #222;
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.8rem;
  background: #161616;
  border-bottom: 1px solid #222;
}

.terminal__dot { width: 9px; height: 9px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #ffbd2e; }
.terminal__dot--g { background: #28c840; }

.terminal__title {
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  margin-left: 0.4rem;
}

.terminal__body { padding: 1.2rem; }

.tline {
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  opacity: 0;
  transform: translateX(-8px);
  animation: tlineIn 0.25s forwards;
}

.tline[data-d="200"] { animation-delay: 0.2s; }
.tline[data-d="400"] { animation-delay: 0.4s; }
.tline[data-d="600"] { animation-delay: 0.6s; }
.tline[data-d="800"] { animation-delay: 0.8s; }
.tline[data-d="1000"] { animation-delay: 1.0s; }
.tline[data-d="1200"] { animation-delay: 1.2s; }

@keyframes tlineIn { to { opacity: 1; transform: translateX(0); } }

.tp { color: var(--green); margin-right: 0.4rem; }
.t-red { color: var(--red-bright); }

.tline--blink {
  animation: blink 1s step-end infinite, tlineIn 0.25s 1.2s forwards;
  opacity: 0;
}

@keyframes blink { 50% { opacity: 0; } }

/* ===== ХОББИ ===== */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.hobby-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.hobby-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-dark);
  box-shadow: 0 4px 20px rgba(181,30,30,0.15);
}

.hobby-card--main { border-color: var(--red-dark); }

.hobby-card__icon { font-size: 2rem; margin-bottom: 0.8rem; }

.hobby-card__name {
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hobby-card__desc {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.hobby-card__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.htag {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.5rem;
  border: 1px solid;
  font-family: var(--font-d);
  font-weight: 700;
}

.htag--red { color: var(--red-bright); border-color: var(--red-dark); }
.htag--dim { color: var(--dim); border-color: #333; }

/* ===== НАВЫКИ ===== */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.skill__name {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.skill__pct {
  font-family: var(--font-d);
  font-size: 0.7rem;
  color: var(--red-bright);
  font-weight: 700;
}

.skill__bar {
  width: 100%;
  height: 6px;
  background: #1a1a1a;
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red-bright));
  box-shadow: 0 0 8px var(--red-glow);
  transition: width 1.5s ease;
}

.skill__fill--low {
  background: linear-gradient(90deg, #444, #666);
  box-shadow: none;
}

.skill__fill--red {
  background: linear-gradient(90deg, var(--red), #ff0040);
  box-shadow: 0 0 12px rgba(255, 0, 64, 0.5);
}

/* ===== ФАВОРИТЫ ===== */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.fav-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}

.fav-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-dark);
}

.fav-card__rank {
  position: absolute;
  top: 0.6rem; right: 0.8rem;
  font-family: var(--font-d);
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 700;
}

.fav-card__emoji { font-size: 2.5rem; margin-bottom: 0.6rem; }

.fav-card__name {
  font-family: var(--font-d);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.3rem;
}

.fav-card__cat {
  font-size: 0.55rem;
  color: var(--dim);
  letter-spacing: 0.15em;
}

/* ===== КОНТАКТ ===== */
.contact-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s;
}

.contact-card:hover { border-color: var(--red-dark); }

.contact-card__icon { font-size: 1.8rem; margin-bottom: 0.6rem; }

.contact-card__label {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 0.3rem;
}

.contact-card__value {
  font-size: 0.8rem;
  color: #fff;
}

.contact-card__value--red {
  color: var(--red-bright);
  text-shadow: 0 0 6px var(--red-glow);
}

/* ===== МИНИ-ИГРА ===== */
.game-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #0a0a0a;
  border: 2px solid var(--red-dark);
  box-shadow: 0 0 30px rgba(181,30,30,0.2);
  overflow: hidden;
}

.game-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

/* HUD */
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.8rem;
  background: #0e0e0e;
  border-bottom: 1px solid var(--card-border);
}

.game-hud__left, .game-hud__right { display: flex; align-items: center; gap: 0.4rem; }

.game-hud__label {
  font-family: var(--font-d);
  font-size: 0.55rem;
  color: var(--dim);
  letter-spacing: 0.15em;
}

.game-hud__hp-bar {
  width: 120px;
  height: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
}

.game-hud__hp-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00ff41, #44ff44);
  transition: width 0.2s;
  box-shadow: 0 0 6px rgba(0,255,65,0.4);
}

@media (max-width: 600px) {
  .game-hud__hp-bar { width: 60px; }
  .game-hud__style { font-size: 0.6rem; }
  .game-hud__score { font-size: 0.65rem; }
}

.game-hud__center { text-align: center; }

.game-hud__style {
  font-family: var(--font-d);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

.game-hud__score {
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

/* Оверлеи */
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.88);
  z-index: 10;
}

.game-overlay__content { text-align: center; }

.game-overlay__title {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.2em;
  margin-bottom: 0.3rem;
}

.game-overlay__sub {
  font-size: 0.8rem;
  color: var(--red-bright);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  animation: badgePulse 2s ease-in-out infinite;
}

.game-overlay__controls {
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

@media (max-width: 600px) {
  .game-overlay__controls { font-size: 0.55rem; }
}

.game-overlay__btn {
  margin-top: 1.2rem;
  padding: 0.7rem 2.5rem;
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #000;
  background: var(--red-bright);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}

.game-overlay__btn:hover {
  background: #ff2020;
  box-shadow: 0 0 25px var(--red-glow);
  transform: scale(1.05);
}

/* ===== МИНИ-ИГРА ===== */
.game-wrap {
  position: relative;
  width: 100%;
  border: 1px solid var(--card-border);
  overflow: hidden;
  background: #050505;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.game-hud {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 8px 14px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--card-border);
  z-index: 5;
  font-family: var(--font-d);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.game-hud__hp {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-hud__bar {
  width: 120px;
  height: 8px;
  background: #222;
  border: 1px solid #444;
  overflow: hidden;
}

.game-hud__hp-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00ff41, #44ff88);
  transition: width 0.15s;
  box-shadow: 0 0 6px rgba(0,255,65,0.5);
}

.game-hud__label {
  color: var(--dim);
}

.game-hud__style {
  color: var(--gold);
  font-weight: 700;
}

.game-hud__score,
.game-hud__combo {
  color: var(--text);
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 10;
}

.game-overlay__content {
  text-align: center;
  padding: 2rem;
}

.game-overlay__title {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  margin-bottom: 0.3rem;
}

.game-overlay__sub {
  font-family: var(--font-d);
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.game-overlay__controls {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.game-overlay__btn {
  margin-top: 1.2rem;
  padding: 0.7rem 2.5rem;
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #000;
  background: var(--red-bright);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: all 0.2s;
}

.game-overlay__btn:hover {
  background: #ff2222;
  box-shadow: 0 0 20px var(--red-glow);
  transform: scale(1.05);
}

/* ===== МИНИ-ИГРА ===== */
.game-wrap {
  position: relative;
  width: 100%;
  border: 1px solid var(--card-border);
  overflow: hidden;
  background: #050505;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.game-hud {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 8px 14px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--card-border);
  z-index: 5;
  font-family: var(--font-d);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.game-hud__hp { display: flex; align-items: center; gap: 6px; }

.game-hud__bar {
  width: 120px; height: 8px;
  background: #222;
  border: 1px solid #444;
  overflow: hidden;
}

.game-hud__hp-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #00ff41, #44ff88);
  transition: width 0.15s;
  box-shadow: 0 0 6px rgba(0,255,65,0.5);
}

.game-hud__label { color: var(--dim); }
.game-hud__style { color: var(--gold); font-weight: 700; }
.game-hud__score, .game-hud__combo { color: var(--text); }

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 10;
}

.game-overlay__content { text-align: center; padding: 2rem; }

.game-overlay__title {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  margin-bottom: 0.3rem;
}

.game-overlay__sub {
  font-family: var(--font-d);
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.game-overlay__controls {
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

@media (max-width: 600px) {
  .game-hud { font-size: 0.5rem; padding: 4px 8px; gap: 6px; }
  .game-hud__bar { width: 60px; }
}

.game-overlay__btn {
  margin-top: 1.2rem;
  padding: 0.7rem 2.5rem;
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #000;
  background: var(--red-bright);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: all 0.2s;
}

.game-overlay__btn:hover {
  background: #ff2222;
  box-shadow: 0 0 20px var(--red-glow);
  transform: scale(1.05);
}

/* ===== ФУТЕР ===== */
.footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  position: relative;
  border-top: 1px solid var(--red-dark);
}

.footer__glow {
  position: absolute;
  top: 0; left: 0; width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: fGlow 3s ease-in-out infinite;
}

@keyframes fGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.footer__text {
  font-family: var(--font-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.8rem;
}

.footer__sub {
  font-size: 0.6rem;
  color: #333;
  letter-spacing: 0.15em;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
  .about { flex-direction: column; align-items: center; }
  .about__info { width: 100%; }
  .hero__badges { gap: 0.4rem; }
  .badge { font-size: 0.5rem; padding: 0.25rem 0.5rem; }
}
