/* === ШУФУТИНАТОР 3000 — СТИЛИ 90-х И ШАНСОН-ГЛЭМ === */

:root {
  --gold-primary: #ffd700;
  --gold-dark: #b8860b;
  --gold-light: #fff3a8;
  --rowan-red: #e62419;
  --rowan-dark: #8b0000;
  --fire-orange: #ff6600;
  --ua-blue: #0057b7;
  --ua-yellow: #ffd700;
  --bg-dark: #120907;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-display: 'Impact', 'Arial Black', sans-serif;
  --font-hand: 'Brush Script MT', cursive, sans-serif;
}

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

body {
  background: radial-gradient(circle at 50% 20%, #2e0c05 0%, #150604 60%, #080202 100%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  transition: filter 0.1s;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.app-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ==================== СОСТОЯНИЕ 2 СЕНТЯБРЯ (ПРЕДВКУШЕНИЕ) ==================== */
body.state-sep2 .ticker-bar,
body.state-sep2 .slava-mega-banner,
body.state-sep2 .badge-rowan,
body.state-sep2 .bonfire-modes,
body.state-sep2 #btn-bonfire,
body.state-sep2 .main-grid,
body.state-sep2 section:not(.calendar-section),
body.state-sep2 .app-footer {
  display: none !important;
}

body.state-sep2 {
  background: radial-gradient(circle at 50% 30%, #1a100d 0%, #0d0705 60%, #050202 100%);
}

body.state-sep2 .calendar-section {
  min-height: 65vh;
  justify-content: center;
  align-items: center;
}

body.state-sep2 .sheet-number {
  color: #445566;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

body.state-sep2 .btn-flip {
  background: linear-gradient(180deg, #556677 0%, #223344 100%);
  border-color: #8899aa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  animation: pulseButton 1.5s infinite alternate;
}

@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 69, 0, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 69, 0, 0.8), 0 0 15px var(--gold-primary); }
}

.intro-sep2-hint {
  text-align: center;
  font-size: 1.05rem;
  color: #aaa;
  margin-top: 15px;
  font-style: italic;
  letter-spacing: 0.5px;
}

.revealed-content {
  animation: sep3Explosion 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sep3Explosion {
  0% { opacity: 0; transform: translateY(40px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==================== МЕГА-БАННЕР СЛАВА УКРАЇНІ ==================== */
.slava-mega-banner {
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.9) 0%, rgba(255, 215, 0, 0.9) 100%);
  border: 3px solid var(--gold-primary);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 87, 183, 0.8), 0 0 35px rgba(255, 215, 0, 0.6);
  animation: bannerPulse 2s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.2s;
}

.slava-mega-banner:hover {
  transform: scale(1.02);
}

.slava-mega-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 
    0 2px 4px #000,
    0 0 20px #ffd700,
    0 0 40px #0057b7;
}

.slava-mega-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 900;
  color: #111;
  background: rgba(255, 255, 255, 0.85);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  margin-top: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

@keyframes bannerPulse {
  0% { box-shadow: 0 0 20px rgba(0, 87, 183, 0.7), 0 0 30px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 69, 0, 0.8); }
}

/* Бегущая строка */
.ticker-bar {
  background: linear-gradient(90deg, #8b0000, #ff4500, #0057b7, #8b0000);
  border: 2px solid var(--gold-primary);
  border-radius: 6px;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
}

.ticker-text {
  display: inline-block;
  padding: 8px 0;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  animation: ticker 25s linear infinite;
}

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

/* Главный заголовок */
.hero-header {
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 25px rgba(230, 36, 25, 0.8));
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #ffc299;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.badge-rowan {
  display: inline-block;
  background: var(--rowan-red);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 8px rgba(230, 36, 25, 0.6);
  margin-top: 8px;
}

/* ==================== СЕКЦИЯ КАЛЕНДАРЯ ==================== */
.calendar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5px 0;
}

.calendar-wrapper {
  perspective: 1200px;
  width: 290px;
  height: 380px;
  position: relative;
  user-select: none;
  cursor: pointer;
}

.calendar-clip {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 28px;
  background: linear-gradient(180deg, #666 0%, #333 40%, #111 100%);
  border: 2px solid #888;
  border-radius: 6px 6px 0 0;
  z-index: 10;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.clip-screw {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #eee 30%, #555 90%);
  border-radius: 50%;
  border: 1px solid #222;
  box-shadow: inset 0 1px 2px #000;
  position: relative;
}
.clip-screw::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 2px;
  width: 8px;
  height: 2px;
  background: #222;
}

.calendar-block {
  width: 100%;
  height: 100%;
  background: #fdfaf2;
  color: #1a1a1a;
  border-radius: 4px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.8),
    0 5px 0 #e6e0d0,
    0 10px 0 #cfc7b0,
    0 15px 0 #b8af98;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calendar-sheet {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #fffdf7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #d4cbb3;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  backface-visibility: hidden;
}

.calendar-sheet.flipping {
  animation: tearOff 0.75s forwards ease-in-out;
}

@keyframes tearOff {
  0% { transform: rotateX(0deg) rotateZ(0deg) translateY(0); opacity: 1; }
  40% { transform: rotateX(-50deg) rotateZ(10deg) translateY(-20px) scale(0.95); opacity: 0.9; }
  100% { transform: rotateX(-120deg) rotateZ(45deg) translateY(280px) scale(0.6); opacity: 0; }
}

.sheet-header {
  border-bottom: 3px double #b8860b;
  padding-bottom: 6px;
  text-align: center;
}

.sheet-year { font-size: 0.85rem; color: #666; font-weight: bold; letter-spacing: 2px; }
.sheet-month { font-family: var(--font-display); font-size: 1.8rem; color: var(--rowan-red); letter-spacing: 1px; }

.sheet-body {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sheet-number {
  font-family: var(--font-display);
  font-size: 7.5rem;
  line-height: 0.9;
  color: #c9180c;
  text-shadow: 2px 3px 0px rgba(0,0,0,0.15);
}

.sheet-weekday {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: bold;
  color: #444;
  text-transform: uppercase;
  margin-top: 4px;
}

.sheet-footer {
  border-top: 1px dashed #aaa;
  padding-top: 8px;
  font-size: 0.8rem;
  color: #555;
  text-align: center;
  font-style: italic;
}

.btn-flip {
  margin-top: 22px;
  background: linear-gradient(180deg, #ff4500 0%, #b22222 100%);
  color: #fff;
  border: 3px solid var(--gold-primary);
  padding: 14px 28px;
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-flip:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 69, 0, 0.9), 0 0 15px var(--gold-primary);
}

.flip-stats {
  margin-top: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.flip-counter-text { font-size: 1.1rem; color: var(--gold-light); }
.flip-counter-num { font-size: 1.5rem; font-weight: 900; color: #ff4500; text-shadow: 0 0 10px #ff4500; }
.rank-badge { display: inline-block; margin-top: 4px; font-size: 0.9rem; color: #ffd700; font-weight: bold; }

/* ==================== КОСТРЫ И РЕЖИМЫ ==================== */
.bonfire-toggle-btn {
  width: 100%;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(45deg, #ff1a00, #ff8c00, #ff1a00);
  background-size: 200% 200%;
  border: 3px solid var(--gold-primary);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 69, 0, 0.7);
  animation: fireGradient 3s ease infinite;
}

.bonfire-toggle-btn.active {
  background: linear-gradient(45deg, #00e676, #00b0ff);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.8);
}

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

.bonfire-modes {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mode-btn {
  background: rgba(35, 12, 8, 0.9);
  border: 2px solid var(--gold-dark);
  color: #ffcccc;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.15s;
}

.mode-btn:hover {
  border-color: var(--gold-primary);
  background: #3d140a;
  color: #fff;
}

.mode-btn.active {
  background: linear-gradient(135deg, #ff4500, #b22222);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.8);
}

/* ==================== ГРИД СЕКЦИЙ ==================== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 820px) {
  .main-grid { grid-template-columns: 1fr; }
}

.retro-card {
  background: rgba(25, 10, 8, 0.85);
  border: 2px solid var(--gold-dark);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  position: relative;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 8px;
  text-transform: uppercase;
}

/* ==================== ФОТО-РАМКА ==================== */
.photo-frame-wrapper { text-align: center; }

.ornate-frame {
  margin: 0 auto 15px;
  width: 250px;
  height: 250px;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(135deg, #d4af37 0%, #8b6508 50%, #ffd700 100%);
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.ornate-frame:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

.photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease;
}

.photo-caption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: #ffcccc;
  min-height: 40px;
  text-shadow: 0 2px 5px #000;
}

/* ==================== ПАНЕЛЬ УПРАВЛЕНИЯ ЗВУКОМ ==================== */
.audio-controls { display: flex; flex-direction: column; gap: 15px; }

.audio-main-btn {
  background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
  color: #1a0f02;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 13px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.audio-main-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.audio-main-btn.playing { background: linear-gradient(180deg, #00e676 0%, #00a152 100%); color: #fff; }

/* Диджейские кнопки для трека пользователя */
.dj-quick-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.dj-punch-btn {
  background: #33130d;
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.1s;
}

.dj-punch-btn:hover {
  background: #ff4500;
  transform: scale(1.03);
}

/* Пресеты */
.presets-container { display: flex; flex-direction: column; gap: 8px; }
.presets-label { font-size: 0.9rem; font-weight: bold; color: var(--gold-light); display: flex; justify-content: space-between; }
.presets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.preset-chip {
  background: #2a110a;
  border: 1px solid var(--gold-dark);
  color: #ddd;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.preset-chip:hover { border-color: var(--gold-primary); background: #3d1a10; color: #fff; }
.preset-chip.active {
  background: linear-gradient(135deg, #ff4500, #b22222);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.6);
}

.sliders-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.slider-group { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; color: #ddd; }
.slider-group label { display: flex; justify-content: space-between; font-weight: bold; }
input[type="range"] { accent-color: #ff4500; cursor: pointer; }

.user-audio-box {
  border: 2px dashed var(--gold-dark);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s;
}
.user-audio-box:hover { border-color: var(--gold-primary); background: rgba(255, 215, 0, 0.1); }
.user-audio-info { font-size: 0.85rem; color: #ffd700; font-weight: bold; }
.user-audio-sub { font-size: 0.75rem; color: #bbb; margin-top: 3px; }

/* ==================== САУНДБОРД ==================== */
.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 580px) {
  .soundboard-grid { grid-template-columns: repeat(3, 1fr); }
}

.sfx-btn {
  background: linear-gradient(180deg, #331510 0%, #1c0a07 100%);
  border: 2px solid #ff4500;
  border-radius: 8px;
  color: #fff;
  padding: 10px 6px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: all 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.sfx-btn span.emoji { font-size: 1.4rem; }
.sfx-btn:hover {
  background: linear-gradient(180deg, #ff4500 0%, #8b0000 100%);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 69, 0, 0.5);
}
.sfx-btn:active { transform: translateY(2px) scale(0.96); }

/* ==================== БОЛЬШОЙ ПОКАЗ БИТВЫ OZON/WB И ФЛАМИНГО ==================== */
.battle-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 15px;
  animation: fadeIn 0.25s ease-out;
}

.battle-modal-overlay.open {
  display: flex;
}

.battle-modal-card {
  background: #190a07;
  border: 4px solid var(--gold-primary);
  border-radius: 16px;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  width: 100%;
  padding: 16px;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 69, 0, 0.9), 0 0 80px rgba(0, 87, 183, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.battle-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  touch-action: manipulation;
}

.battle-badge-header {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.battle-img-container {
  width: 100%;
  max-height: 380px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
}

.battle-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.battle-modal-footer {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 2px 4px #000;
}

/* Кнопки touch-action */
button, .btn-flip, .sfx-btn, .preset-chip, .mode-btn, .dj-punch-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ==================== ТЕСТ И СЕРТИФИКАТ ==================== */
.quiz-container { display: flex; flex-direction: column; gap: 15px; }
.quiz-question-box { background: rgba(0, 0, 0, 0.4); border-left: 4px solid var(--gold-primary); padding: 10px 14px; border-radius: 4px; }
.quiz-q-title { font-weight: bold; margin-bottom: 8px; font-size: 1rem; color: var(--gold-light); }
.quiz-options { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.quiz-option-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.btn-get-cert {
  background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
  color: #111;
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 12px;
  border: 2px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 10px;
  transition: all 0.15s;
}

.cert-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.cert-modal.open { display: flex; }
.cert-modal-content {
  background: #1c0a07;
  border: 3px solid var(--gold-primary);
  border-radius: 12px;
  max-width: 650px;
  max-height: 92vh;
  overflow-y: auto;
  width: 100%;
  padding: 16px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.9);
  position: relative;
}
.cert-close { position: absolute; top: 10px; right: 15px; font-size: 1.8rem; color: #fff; cursor: pointer; }
#certificate-canvas { width: 100%; max-height: 400px; object-fit: contain; border-radius: 6px; margin-bottom: 15px; border: 2px solid var(--gold-dark); }
.cert-download-btn { background: #2e7d32; color: #fff; border: 2px solid #81c784; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; }

/* ==================== ТУРБО-РЕЙВ & БАС-ШЕЙК ==================== */
.turbo-rave-btn {
  background: linear-gradient(90deg, #ff007f, #7928ca, #00dfd8);
  background-size: 300% 300%;
  animation: fireGradient 2s ease infinite;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 16px;
  border: 3px solid #fff;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.8);
}

body.turbo-active { animation: raveStrobe 0.15s infinite alternate; }
@keyframes raveStrobe {
  0% { filter: hue-rotate(0deg) contrast(120%); }
  100% { filter: hue-rotate(180deg) contrast(150%) brightness(1.1); }
}

.floating-shufutinsky-head {
  position: fixed;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 20px #ff007f;
}

@keyframes bassShakeAnim {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-6px, 5px) scale(1.02); }
  50% { transform: translate(6px, -5px) scale(1.025); }
  75% { transform: translate(-4px, -3px) scale(1.015); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Тряска экрана разрешена ТОЛЬКО при включённом Турбо-рейве */
body.turbo-active #main-container.bass-shaking,
body.turbo-active .bass-shaking {
  animation: bassShakeAnim 0.09s ease-in-out;
}

.app-footer {
  text-align: center;
  color: #887068;
  font-size: 0.85rem;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}
