/* =========================================================
   CYBER SNAKE: BOSS RUSH & ULTRA DELUXE — STYLES
   ========================================================= */

:root {
  --bg-dark: #070913;
  --bg-card: rgba(13, 17, 33, 0.85);
  --border-neon: rgba(0, 240, 255, 0.4);
  --cyan-glow: #00f0ff;
  --magenta-glow: #ff007f;
  --green-glow: #00ff66;
  --gold-glow: #ffd700;
  --red-glow: #ff2a2a;
  --purple-glow: #9d00ff;
  --font-cyber: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-ui);
  color: #e0f8ff;
}

/* Efekty ekranowe */
.cyber-scanlines {
  display: none; /* Wyłączone dla maksymalnej płynności */
}

.cyber-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 99;
}

/* Kontener gry i płótno Canvas */
#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #080b18;
}

#gameCanvas {
  display: block;
  background-color: #080b18;
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
}

/* =========================================================
   UI & HUD
   ========================================================= */

#hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
}

.hud-top {
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.hud-box {
  background: rgba(13, 17, 33, 0.95);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-label {
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #7ce8ff;
}

.hud-value {
  font-family: var(--font-cyber);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.hud-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-glow);
}

.stat-box {
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  justify-content: space-between;
}

.hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  width: calc(100% - 48px);
  max-width: 900px;
  box-sizing: border-box;
  z-index: 22;
  pointer-events: none;
}

.hud-bar-container {
  flex: 1;
  background: rgba(13, 17, 33, 0.95);
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  padding: 6px 12px;
}

.hud-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-cyber);
  color: #a0c4ff;
  margin-bottom: 4px;
}

.hud-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.1s linear;
}

.boost-fill {
  background: linear-gradient(90deg, #ff007f, #00f0ff);
}

.ammo-fill {
  background: linear-gradient(90deg, #00f0ff, #00ff66);
}

.mines-fill {
  background: linear-gradient(90deg, #ffd700, #ff5500);
}

.magnet-fill {
  background: linear-gradient(90deg, #9d00ff, #ff00ff);
}

.neon-purple {
  color: #e055ff;
}

/* Pasek Bossa */
#boss-hud-bar {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 650px;
  background: rgba(20, 0, 10, 0.92);
  border: 2px solid var(--red-glow);
  border-radius: 8px;
  padding: 10px 16px;
}

.boss-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-family: var(--font-cyber);
}

.boss-skull {
  font-size: 20px;
}

.boss-name {
  color: #ff5555;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 16px;
}

.boss-timer-label {
  font-size: 13px;
  color: var(--gold-glow);
}

.boss-hp-bg {
  width: 100%;
  height: 14px;
  background: #2b0000;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.boss-hp-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff0055, #ff3300);
  transition: width 0.15s ease-out;
}

/* Alert Banner (Boss Invasions) */
#alert-banner {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(200, 0, 40, 0.95);
  border: 2px solid #ffffff;
  color: white;
  padding: 10px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 50;
}

@keyframes alertGlitch {
  0% { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) scale(1.05); }
}

.alert-icon {
  font-size: 32px;
}

.alert-title {
  font-family: var(--font-cyber);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
}

.alert-sub {
  font-size: 14px;
  opacity: 0.9;
}

/* Kontener aktywnych power-upów i odliczania czasu */
.hud-buffs-container {
  position: absolute;
  top: 90px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  z-index: 25;
}

.buff-badge {
  background: rgba(13, 17, 33, 0.92);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.buff-icon {
  font-size: 22px;
}

.buff-info {
  flex: 1;
}

.buff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.buff-title {
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.buff-timer {
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 800;
}

.buff-progress-bg {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  overflow: hidden;
}

.buff-progress-fill {
  height: 100%;
  width: 100%;
  transition: width 0.1s linear;
}

.magnet-fill {
  background: linear-gradient(90deg, #ffd700, #cc00ff);
}

.frenzy-fill {
  background: linear-gradient(90deg, #ff007f, #ff3300);
}

.ghost-fill {
  background: linear-gradient(90deg, #b000ff, #00f0ff);
}

/* =========================================================
   EKRANY & MODALE
   ========================================================= */

.ui-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  background: rgba(5, 7, 18, 0.75);
  backdrop-filter: blur(10px);
}

.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 40;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(12px);
}

.glass-card {
  background: var(--bg-card);
  border: 2px solid var(--border-neon);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: cardFadeIn 0.3s ease-out;
}

.wide-card {
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Tytuły i Glitch */
.glitch-title {
  font-family: var(--font-cyber);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 15px var(--cyan-glow), 0 0 30px var(--cyan-glow);
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
}

.logo-sub {
  font-family: var(--font-cyber);
  font-size: 15px;
  color: var(--magenta-glow);
  letter-spacing: 3px;
  margin-bottom: 24px;
  text-shadow: 0 0 10px var(--magenta-glow);
}

.modal-title {
  font-family: var(--font-cyber);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--cyan-glow);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.section-subtitle {
  font-family: var(--font-cyber);
  font-size: 14px;
  color: #a0c4ff;
  text-align: left;
  margin: 16px 0 10px 0;
  letter-spacing: 1px;
}

/* Przyciski Cyberpunk */
.cyber-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--cyan-glow);
  color: #e0f8ff;
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
  overflow: hidden;
}

.cyber-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
  color: #ffffff;
}

.cyber-btn:active {
  transform: translateY(1px);
}

.primary-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 127, 0.3));
  border: 2px solid var(--cyan-glow);
  font-size: 16px;
  padding: 14px 30px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.mini-btn {
  padding: 6px 12px;
  font-size: 16px;
}

.pulse-anim {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.8), 0 0 35px rgba(255, 0, 127, 0.4); }
  100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.horizontal-nav {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.menu-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8fa0c0;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  padding-top: 14px;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Siatki wyboru trybów i trudności */
.mode-grid, .diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mode-card, .diff-btn {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.mode-card:hover, .diff-btn:hover {
  border-color: var(--cyan-glow);
  background: rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

.mode-card.active, .diff-btn.active {
  border-color: var(--magenta-glow);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
  background: rgba(255, 0, 127, 0.12);
}

.mode-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.mode-name, .diff-title {
  font-family: var(--font-cyber);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
}

.mode-desc, .diff-info {
  font-size: 12px;
  color: #9cb3d0;
  line-height: 1.4;
}

/* Kafelek Celu Poziomu w HUD */
.level-goal-box {
  border-color: rgba(0, 255, 102, 0.4);
  background: rgba(10, 25, 20, 0.85);
  min-width: 140px;
}

/* Modal Ukończenia Poziomu */
.reward-box {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid var(--gold-glow);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reward-label {
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #ffd700;
}

.reward-val {
  font-family: var(--font-cyber);
  font-size: 24px;
  font-weight: 800;
}

/* Modal Wyboru Poziomu (1-100) */
.level-page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 4px 6px 12px 2px;
  margin-bottom: 16px;
}

.level-tile {
  background: rgba(13, 17, 33, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  user-select: none;
}

.level-tile:hover:not(.locked) {
  border-color: var(--cyan-glow);
  background: rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

.level-tile.completed {
  border-color: var(--green-glow);
  background: rgba(0, 255, 102, 0.1);
}

.level-tile.current {
  border-color: var(--gold-glow);
  background: rgba(255, 215, 0, 0.15);
}

.level-tile.boss-tile {
  border-color: var(--red-glow);
}

.level-tile.boss-tile.completed {
  border-color: var(--green-glow);
}

.level-tile.locked {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 15, 0.8);
}

.lvl-num {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.lvl-status-icon {
  font-size: 12px;
}

/* Cyber-Garaż */
.garage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.garage-wallet {
  font-family: var(--font-cyber);
  font-size: 16px;
}

.garage-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.garage-tab-btn {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #a0c4ff;
  font-family: var(--font-cyber);
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 700;
}

.garage-tab-btn.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan-glow);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.upgrades-grid, .skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 6px;
}

.upgrade-card, .skin-card {
  background: rgba(10, 14, 30, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upgrade-top, .skin-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.upgrade-icon, .skin-icon {
  font-size: 26px;
}

.upgrade-name, .skin-name {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.upgrade-desc, .skin-desc {
  font-size: 12px;
  color: #8da4c4;
  margin-bottom: 10px;
  min-height: 34px;
}

.upgrade-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  overflow: hidden;
  margin: 6px 0 12px 0;
}

.upgrade-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #00ff66);
  transition: width 0.25s ease-out;
}

.upgrade-buy-btn, .skin-select-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
}

/* Osiągnięcia */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 6px;
}

.achieve-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 14, 28, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
}

.achieve-item.unlocked {
  border-color: var(--gold-glow);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.achieve-icon {
  font-size: 28px;
  opacity: 0.5;
}

.achieve-item.unlocked .achieve-icon {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.achieve-info {
  flex: 1;
}

.achieve-title {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.achieve-desc {
  font-size: 12px;
  color: #8aa0bf;
}

.achieve-reward {
  font-family: var(--font-cyber);
  font-size: 13px;
  color: var(--gold-glow);
}

/* Instrukcja */
.help-scroll-body {
  max-height: 55vh;
  overflow-y: auto;
  text-align: left;
  padding-right: 8px;
}

.help-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.help-section h3 {
  font-family: var(--font-cyber);
  font-size: 15px;
  color: var(--cyan-glow);
  margin-bottom: 8px;
}

.help-section p {
  font-size: 13px;
  color: #b0cce8;
  line-height: 1.6;
  margin-bottom: 4px;
}

.highlight-rule {
  background: rgba(255, 0, 127, 0.12);
  border: 1px solid var(--magenta-glow);
  border-radius: 8px;
  padding: 12px;
}

.highlight-rule h3 {
  color: var(--magenta-glow);
}

kbd {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--cyan-glow);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-cyber);
  font-size: 11px;
  color: var(--cyan-glow);
}

/* Ustawienia */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
  text-align: left;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #c0daf8;
}

.setting-item input[type="range"] {
  accent-color: var(--cyan-glow);
  width: 140px;
}

.setting-item input[type="checkbox"] {
  accent-color: var(--cyan-glow);
  width: 18px;
  height: 18px;
}

/* Game Over Summary */
.game-over-title {
  font-family: var(--font-cyber);
  font-size: 32px;
  font-weight: 900;
  color: var(--red-glow);
  text-shadow: 0 0 20px var(--red-glow);
  margin-bottom: 6px;
}

.game-over-reason {
  font-size: 14px;
  color: #ff9999;
  margin-bottom: 20px;
}

.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card-title {
  font-size: 12px;
  color: #7b94b5;
  margin-bottom: 4px;
}

.stat-card-val {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 800;
}

/* =========================================================
   KONTROLERY DOTYKOWE (MOBILE & TOUCH)
   ========================================================= */

#touch-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 28;
  display: block;
}

#touch-joystick-zone {
  position: absolute;
  bottom: 30px;
  left: 25px;
  width: 130px;
  height: 130px;
  pointer-events: auto;
  touch-action: none;
}

#joystick-base {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.12);
  border: 2px solid rgba(0, 240, 255, 0.4);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

#joystick-knob {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #0066ff);
  border: 2px solid #ffffff;
  position: absolute;
  box-shadow: 0 0 12px #00f0ff;
  pointer-events: none;
  transform: translate(0px, 0px);
}

#touch-action-buttons {
  position: absolute;
  bottom: 25px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  touch-action: none;
}

.touch-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-cyber);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s, background 0.1s;
}

#touch-btn-shoot {
  background: rgba(255, 0, 85, 0.28);
  border: 2px solid #ff0055;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.4);
}

#touch-btn-shoot:active, #touch-btn-shoot.active {
  background: #ff0055;
  transform: scale(0.92);
}

#touch-btn-boost {
  background: rgba(0, 240, 255, 0.28);
  border: 2px solid #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

#touch-btn-boost:active, #touch-btn-boost.active {
  background: #00f0ff;
  color: #000;
  transform: scale(0.92);
}

#touch-btn-mine {
  background: rgba(255, 215, 0, 0.28);
  border: 2px solid #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

#touch-btn-mine:active, #touch-btn-mine.active {
  background: #ffd700;
  color: #000;
  transform: scale(0.92);
}

/* =========================================================
   RESPONSYWNOŚĆ MOBILNA (RWD)
   ========================================================= */

@media (max-width: 900px) {
  .glitch-title {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .logo-sub {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .modal-content, .menu-content {
    max-width: 96vw;
    max-height: 94vh;
    padding: 16px 14px;
  }

  .hud-top {
    padding: 8px 12px;
    gap: 8px;
  }

  .hud-box {
    padding: 4px 8px;
    min-width: auto;
  }

  .hud-label {
    font-size: 9px;
  }

  .hud-value {
    font-size: 18px;
  }

  .stat-row {
    font-size: 11px;
    gap: 4px;
  }

  .hud-bottom {
    padding: 0 8px;
    gap: 8px;
  }

  .hud-bar-container {
    padding: 4px 8px;
  }

  .hud-bar-header {
    font-size: 10px;
  }

  #boss-hud-bar {
    width: 92%;
    top: 75px;
    padding: 6px 10px;
  }

  .boss-name {
    font-size: 13px;
  }

  .hud-buffs-container {
    top: 70px;
    right: 10px;
  }

  .buff-badge {
    min-width: 125px;
    padding: 4px 8px;
    gap: 6px;
  }

  .buff-icon {
    font-size: 16px;
  }

  .buff-title {
    font-size: 9px;
  }

  .buff-timer {
    font-size: 10px;
  }

  .upgrades-grid, .skins-grid {
    grid-template-columns: 1fr;
    max-height: 55vh;
  }

  .horizontal-nav {
    flex-direction: column;
    gap: 8px;
  }

  .cyber-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  #touch-joystick-zone {
    bottom: 15px;
    left: 12px;
    width: 110px;
    height: 110px;
  }

  #touch-action-buttons {
    bottom: 15px;
    right: 12px;
    gap: 8px;
  }

  .touch-btn {
    width: 58px;
    height: 58px;
    font-size: 9px;
  }

  .hud-bottom {
    display: none; /* Na bardzo małych ekranach dolne paski chowają się, by nie zasłaniać gry */
  }
}

/* Kolory Neonowe */
.neon-cyan { color: var(--cyan-glow); }
.neon-magenta { color: var(--magenta-glow); }
.neon-green { color: var(--green-glow); }
.neon-gold { color: var(--gold-glow); }
.neon-red { color: var(--red-glow); }

.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-glow);
}

/* =========================================================
   SYSTEM KART MODYFIKACJI ROGUELIKE (PERK CARDS)
   ========================================================= */

.perk-modal-card {
  max-width: 820px;
  width: 95%;
  padding: 28px;
  text-align: center;
}

.perk-header {
  margin-bottom: 20px;
}

.perk-tag {
  display: inline-block;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-glow);
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 8px;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.perk-card {
  background: rgba(12, 18, 35, 0.85);
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
  pointer-events: auto !important;
  user-select: none;
}

.perk-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.perk-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.35);
  border-color: var(--cyan-glow);
}

.perk-card:active {
  transform: scale(0.96);
}

.perk-card:hover::before {
  opacity: 1;
}

.perk-card.rare {
  border-color: rgba(0, 240, 255, 0.5);
}
.perk-card.rare:hover {
  border-color: #00f0ff;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.perk-card.epic {
  border-color: rgba(176, 0, 255, 0.5);
}
.perk-card.epic:hover {
  border-color: #d800ff;
  box-shadow: 0 10px 30px rgba(216, 0, 255, 0.45);
}

.perk-card.legendary {
  border-color: rgba(255, 215, 0, 0.6);
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(12, 18, 35, 0.9) 80%);
}
.perk-card.legendary:hover {
  border-color: #ffd700;
  box-shadow: 0 10px 35px rgba(255, 215, 0, 0.55);
}

.perk-rarity-badge {
  font-family: var(--font-cyber);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  pointer-events: none;
}

.perk-rarity-badge.rare {
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid #00f0ff;
}

.perk-rarity-badge.epic {
  background: rgba(216, 0, 255, 0.2);
  color: #ff00ea;
  border: 1px solid #ff00ea;
}

.perk-rarity-badge.legendary {
  background: rgba(255, 215, 0, 0.25);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.perk-icon-wrap {
  font-size: 38px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px currentColor);
  pointer-events: none;
}

.perk-name {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
  pointer-events: none;
}

.perk-desc {
  font-size: 12px;
  color: #a0c4ff;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
  pointer-events: none;
}

.perk-install-btn {
  width: 100%;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  pointer-events: none;
}

/* Kontener aktywnych perków na HUD */
.hud-perks-container {
  position: absolute;
  top: 90px;
  left: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 320px;
  pointer-events: none;
  z-index: 25;
}

.hud-perk-badge {
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
  cursor: help;
  transition: transform 0.2s;
}

.hud-perk-badge:hover {
  transform: scale(1.15);
  border-color: #ffd700;
}

/* =========================================================
   GLOBALNA TABELA WYNIKÓW ONLINE (LEADERBOARD)
   ========================================================= */

.leaderboard-modal-card {
  max-width: 780px !important;
}

.leaderboard-submit-box {
  background: rgba(10, 20, 40, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.submit-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.submit-icon {
  font-size: 18px;
}

.submit-title {
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 1px;
  text-align: center;
}

.submit-form-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.lb-nick-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid #00f0ff;
  color: #ffffff;
  font-family: var(--font-cyber);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  text-align: center;
  letter-spacing: 1px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lb-nick-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.submit-buttons-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.submit-btn-action {
  flex: 1;
  padding: 11px 10px !important;
  font-size: 11px !important;
  letter-spacing: 0.8px !important;
  white-space: nowrap !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 6px;
}

.submit-status-msg {
  margin-top: 8px;
  font-size: 12px;
  font-family: var(--font-cyber);
  font-weight: 700;
  text-align: center;
}

.submit-status-msg.success {
  color: #00ff66;
}

.submit-status-msg.error {
  color: #ff0055;
}

/* Zakładki kategorii rankingu */
.lb-tabs-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.lb-tab-btn {
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #a0c4ff;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lb-tab-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #ffffff;
}

.lb-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(0, 102, 255, 0.4));
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

/* Tabela wyników */
.lb-table-wrapper {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  background: rgba(5, 10, 25, 0.6);
  margin-bottom: 16px;
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cyber-table th {
  background: rgba(10, 25, 50, 0.9);
  color: #00f0ff;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid rgba(0, 240, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 2;
}

.cyber-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e0e8ff;
  font-family: var(--font-rajdhani);
  font-weight: 600;
  font-size: 14px;
}

.cyber-table tbody tr {
  transition: background 0.15s;
}

.cyber-table tbody tr:hover {
  background: rgba(0, 240, 255, 0.08);
}

.lb-row-me {
  background: rgba(0, 255, 102, 0.12) !important;
  border-left: 3px solid #00ff66;
}

.lb-rank {
  font-family: var(--font-cyber);
  font-weight: 800;
  font-size: 13px;
  color: #88a0c0;
}

.lb-rank.top-1 {
  color: #ffd700;
  font-size: 15px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.lb-rank.top-2 {
  color: #e0e0e0;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lb-rank.top-3 {
  color: #cd7f32;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

.lb-player-tag {
  font-family: var(--font-cyber);
  font-weight: 700;
  font-size: 13px;
}

.lb-you-pill {
  background: #00ff66;
  color: #000000;
  font-size: 9px;
  font-family: var(--font-cyber);
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

.lb-mode-pill {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.lb-metric-val {
  font-family: var(--font-cyber);
  font-weight: 800;
  color: #ffd700;
  font-size: 14px;
}

.lb-date {
  color: #7a8fa6;
  font-size: 12px;
}

@media (max-width: 600px) {
  .lb-tabs-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .submit-form-row {
    flex-direction: column;
  }
  .submit-form-row .cyber-btn {
    width: 100%;
  }
}

/* =========================================================
   CODZIENNE ZADANIA I ZLECENIA (DAILY QUESTS)
   ========================================================= */

.quests-modal-card {
  max-width: 680px !important;
}

.quests-timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 20, 40, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
}

.timer-label {
  font-family: var(--font-cyber);
  font-size: 10px;
  color: #a0c4ff;
  font-weight: 700;
}

.timer-val {
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.quests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.quest-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 20, 45, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}

.quest-card:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.quest-card.completed {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.08);
}

.quest-card.claimed {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.2);
}

.quest-icon-box {
  font-size: 32px;
  filter: drop-shadow(0 0 8px currentColor);
  min-width: 44px;
  text-align: center;
}

.quest-info {
  flex: 1;
  text-align: left;
}

.quest-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.quest-title {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.quest-counter {
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 800;
  color: #00f0ff;
}

.quest-desc {
  font-size: 12px;
  color: #a0c4ff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.quest-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(5, 10, 25, 0.8);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.quest-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #00ff66);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.quest-action-box {
  min-width: 120px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

.quest-reward-tag {
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.quest-btn {
  padding: 8px 12px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.claimed-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #8fa0c0 !important;
}

/* Skrzynia dzienna bonusowa */
.quests-bonus-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 0, 127, 0.15));
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 10px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.bonus-icon {
  font-size: 34px;
}

.bonus-info {
  flex: 1;
  text-align: left;
}

.bonus-title {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.bonus-desc {
  font-size: 12px;
  color: #d0e0ff;
}

/* Badge w Menu Głównym */
.quest-claimable-badge {
  background: #ff0055 !important;
  color: #ffffff !important;
  animation: badgePulse 1.2s infinite ease-in-out;
  border: 1px solid #ffffff;
  font-weight: 900 !important;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 5px #ff0055; }
  50% { transform: scale(1.12); box-shadow: 0 0 15px #ff0055; }
}

/* Powiadomienie Toast w grze */
.quest-toast-banner {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 20, 45, 0.95);
  border: 2px solid #00ff66;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.5), inset 0 0 10px rgba(0, 255, 102, 0.2);
  border-radius: 30px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
  transition: top 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.quest-toast-banner.show {
  top: 30px;
}

.toast-icon {
  font-size: 26px;
}

.toast-content {
  text-align: left;
}

.toast-title {
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 800;
  color: #00ff66;
  letter-spacing: 1px;
}

.toast-desc {
  font-family: var(--font-rajdhani);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

/* =========================================================
   SUPER-EWOLUCJE BRONI (WEAPON EVOLUTIONS)
   ========================================================= */

.perk-card.evolution {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(189, 0, 255, 0.25));
  border: 2px solid #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(189, 0, 255, 0.3);
  animation: evoPulse 2s infinite ease-in-out;
}

@keyframes evoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  50% { transform: scale(1.03); box-shadow: 0 0 35px rgba(255, 215, 0, 0.7), 0 0 45px rgba(189, 0, 255, 0.4); }
}

.perk-rarity-badge.evolution {
  background: linear-gradient(90deg, #ffd700, #ff0055);
  color: #000000;
  font-weight: 900;
  border: 1px solid #ffffff;
}

/* =========================================================
   CYBER-KOŁO FORTUNY (DAILY SPIN WHEEL)
   ========================================================= */

.wheel-modal-card {
  max-width: 480px !important;
}

.wheel-stage-container {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 16px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
  z-index: 10;
  pointer-events: none;
}

#wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

.free-status-text {
  font-family: var(--font-cyber);
  font-size: 11px;
  color: #a0c4ff;
  font-weight: 700;
}

.wheel-result {
  background: rgba(10, 20, 45, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  text-align: center;
}

.wheel-result .result-title {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.wheel-result .result-sub {
  font-size: 12px;
  color: #a0c4ff;
}

.jackpot-text {
  color: #ffd700;
  text-shadow: 0 0 15px #ffd700, 0 0 30px #ff0055;
  animation: badgePulse 0.8s infinite;
}

.wheel-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

/* =========================================================
   ANOMALIE ARENY (ARENA ANOMALIES BANNER)
   ========================================================= */

.anomaly-hud-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 35, 0.9);
  border: 1px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  border-radius: 24px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
  pointer-events: none;
  animation: cardFadeIn 0.3s ease-out;
}

.anomaly-icon {
  font-size: 22px;
}

.anomaly-text-wrap {
  text-align: left;
}

.anomaly-title {
/* =========================================================
   CENTRUM ZGŁASZANIA BŁĘDÓW (BUG REPORT SYSTEM)
   ========================================================= */

.floating-bug-btn {
  position: absolute;
  top: 30px;
  right: 35px;
  background: rgba(14, 20, 45, 0.92);
  border: 2px solid #ff0055;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.4), inset 0 0 10px rgba(255, 0, 85, 0.2);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 50;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.floating-bug-btn:hover {
  transform: scale(1.08) translateY(-2px);
  background: #ff0055;
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.85);
  color: #ffffff;
}

.bug-btn-icon {
  font-size: 16px;
  animation: bugWiggle 2.5s infinite ease-in-out;
}

@keyframes bugWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  75% { transform: rotate(14deg); }
}

.bug-modal-card {
  max-width: 520px !important;
}

@media (max-width: 768px) {
  .floating-bug-btn {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 10px;
  }
}



