/* =========================
   TELJES OLDAL HÁTTÉR
   ========================= */
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Oswald', Arial, sans-serif;
  background:
    radial-gradient(circle at top, #550000 0%, #0a0a0a 60%),
    linear-gradient(135deg, #000000, #1a0000);
  color: #fff;
}

/* =========================
   KÖZÉPRE IGAZÍTÁS
   ========================= */
.quiz-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   QUIZ DOBOZ
   ========================= */
.quiz-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(18,18,18,0.96), rgba(6,6,6,0.96));
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  text-align: center;
  box-shadow:
    0 0 30px rgba(255, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.85);
}

/* Doboz remegése rossz válasznál */
.shake {
  animation: wrongShake 0.4s ease;
}

/* Ha esetleg hiányozna a wrongShake animáció, bár a fájlodban benne volt: */
@keyframes wrongShake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-6px) rotate(-1deg); }
  50%  { transform: translateX(6px) rotate(1deg); }
  75%  { transform: translateX(-6px) rotate(-1deg); }
  100% { transform: translateX(0); }
}

/* =========================
   KÉRDÉS
   ========================= */
#question {
  font-size: 1.55rem;
  margin-bottom: 26px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* =========================
   VÁLASZGOMBOK
   ========================= */
#answers button {
  width: 100%;
  margin: 10px 0;
  padding: 14px;
  background: linear-gradient(135deg, #1a1a1a, #000);
  border: 1px solid #444;
  color: #fff;
  font-size: 1rem;
  border-radius: 9px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#answers button:not(:disabled):hover {
  background: linear-gradient(135deg, #8b0000, #400000);
  border-color: #ff2a2a;
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.6);
  transform: scale(1.03);
}

#answers button:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

/* =========================
   HELYES / ROSSZ
   ========================= */
button.correct {
  background: linear-gradient(135deg, #11a846, #0b6b2d) !important;
  border-color: #2aff65 !important;
  box-shadow: 0 0 18px rgba(42, 255, 101, 0.9);
  animation: correctPop 0.3s ease;
}

button.wrong {
  background: linear-gradient(135deg, #9b0000, #450000) !important;
  border-color: #ff2a2a !important;
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.9);
  animation: wrongShake 0.35s ease;
}

/* =========================
   PONTSZÁM
   ========================= */
#score {
  margin-top: 22px;
  font-size: 1.1rem;
  color: #ff4444;
  font-weight: bold;
}

/* =========================
   IDŐLIMIT CSÍK
   ========================= */
.timer-bar {
  width: 100%;
  height: 8px;
  background: #2a0000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.timer-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00ff6a, #ffcc00, #ff2a2a);
}

.fast-bonus {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: #2aff65;
  pointer-events: none;
  z-index: 9999;
  animation: fastPop 0.8s ease forwards;
}

@keyframes fastPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1);
  }
}

/* =========================
   JÁTÉKMÓD TÉMÁK
   ========================= */

/* --- Royal Rumble Téma (Vörös/Káosz) --- */
.mode-rumble {
  border-color: #ff3333 !important;
  box-shadow: 0 0 50px rgba(255, 51, 51, 0.6) !important;
  background: linear-gradient(180deg, #2a0a0a, #000) !important;
}
.mode-rumble .timer-progress {
  background: linear-gradient(90deg, #ff0000, #ff8800) !important;
}

/* --- Money in the Bank Téma (Zöld/Arany) --- */
.mode-mitb {
  border-color: #28a745 !important;
  box-shadow: 0 0 50px rgba(40, 167, 69, 0.5) !important;
}
.mode-mitb .timer-progress {
  background: linear-gradient(90deg, #28a745, #ffd700) !important;
}

/* Táska ikon a sarokban (MITB-hez) */
.briefcase-icon {
  font-size: 1.5rem;
  margin-left: 10px;
  filter: drop-shadow(0 0 5px gold);
  display: inline-block;
  animation: floatUp 2s infinite ease-in-out;
}

/* =========================
   ÉLET
   ========================= */
.life-hit {
  animation: lifeFlash 0.4s ease;
}

.life-gain {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #4caf50;
  animation: floatUp 0.9s ease-out forwards;
}

.critical {
  color: #ff0000;
  animation: pulse 1s infinite;
}

/* =========================
   MOBIL-BARÁT
   ========================= */

@media (max-width: 480px) {
  .fast-bonus {
    font-size: 1.5rem;
    top: 60px;
  }
}

/* =========================
   RANGOK
   ========================= */
.rank-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  font-size: 1.4rem;
  font-weight: bold;
}

.rank-kezdő { background: #1a1a1a; color: #bbb; animation: softPulse 2s infinite; }
.rank-rajongó { background: #0f2b1a; color: #2aff65; animation: greenGlow 1.6s infinite alternate; }
.rank-hardcore { background: #0b1b2b; color: #3fa9ff; animation: blueWave 1.4s infinite; }
.rank-legenda { background: linear-gradient(135deg, #400000, #1a0000); color: #ff4444; animation: legendPulse 1.2s infinite; }

/* =========================
   ANIMÁCIÓK
   ========================= */
@keyframes correctPop { 0%{transform:scale(1)} 60%{transform:scale(1.08)} 100%{transform:scale(1)} }
@keyframes wrongShake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
@keyframes lifeFlash { 0%{color:#fff} 50%{color:#ff3333;transform:scale(1.2)} 100%{color:#fff} }
@keyframes floatUp { from{opacity:0;transform:translateY(10px)} to{opacity:0;transform:translateY(-30px)} }
@keyframes pulse { 0%{transform:scale(1)} 50%{transform:scale(1.1)} 100%{transform:scale(1)} }
@keyframes softPulse { from{opacity:.7} to{opacity:1} }
@keyframes greenGlow { from{box-shadow:0 0 12px rgba(42,255,101,.4)} to{box-shadow:0 0 26px rgba(42,255,101,.9)} }
@keyframes blueWave { 0%{box-shadow:0 0 10px rgba(63,169,255,.4)} 50%{box-shadow:0 0 30px rgba(63,169,255,1)} 100%{box-shadow:0 0 10px rgba(63,169,255,.4)} }
@keyframes legendPulse { 0%{transform:scale(1)} 50%{transform:scale(1.05)} 100%{transform:scale(1)} }

/* =========================
   FŐMENÜ GLOW EFFEKTEK
   ========================= */

/* Cím stílus */
.main-title {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sub-title {
  color: #ccc;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

/* A menü gombok konténere */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Távolság a gombok között */
}

/* --- ALAP GOMB STÍLUS (Közös) --- */
.btn-mode {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.6); /* Sötét áttetsző alap */
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

/* Ikon a gomb bal oldalán */
.btn-mode .icon {
  font-size: 2rem;
  margin-right: 15px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.4));
}

.btn-mode .text {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.2;
}

.btn-mode small {
  font-size: 0.75rem;
  font-weight: normal;
  opacity: 0.8;
  text-transform: none;
}

/* --- 1. NORMÁL GOMB (Kék Neon) --- */
.btn-normal {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
  animation: pulseBlue 3s infinite;
}
.btn-normal:hover {
  background: rgba(0, 123, 255, 0.2);
  box-shadow: 0 0 25px #007bff, inset 0 0 10px #007bff;
  transform: scale(1.02);
}

/* --- 2. RUMBLE GOMB (Vörös Pokol) --- */
.btn-rumble {
  border-color: #ff3333;
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
  animation: pulseRed 2s infinite; /* Gyorsabb pulzálás! */
}
.btn-rumble:hover {
  background: rgba(255, 51, 51, 0.2);
  box-shadow: 0 0 30px #ff0000, inset 0 0 10px #ff0000;
  transform: scale(1.02);
}

/* --- 3. MITB GOMB (Zöld Pénz) --- */
.btn-mitb {
  border-color: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
  animation: pulseGreen 4s infinite;
}
.btn-mitb:hover {
  background: rgba(40, 167, 69, 0.2);
  box-shadow: 0 0 25px #28a745, inset 0 0 10px #28a745;
  transform: scale(1.02);
}

/* --- ANIMÁCIÓK (A lélegző effekt) --- */
@keyframes pulseBlue {
  0% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 123, 255, 0.6); }
  100% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); }
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 5px rgba(255, 51, 51, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 51, 51, 0.7); }
  100% { box-shadow: 0 0 5px rgba(255, 51, 51, 0.3); }
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.3); }
  50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); }
  100% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.3); }
}
/* =========================
   MANAGER SEGÍTSÉGEK (LIFELINES)
   ========================= */
.lifelines {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn-lifeline {
  background: linear-gradient(180deg, #444, #222);
  border: 1px solid #666;
  color: #fff;
  padding: 8px 5px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 30%; /* Hogy elférjenek egymás mellett */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-lifeline:hover:not(:disabled) {
  background: linear-gradient(180deg, #666, #444);
  transform: translateY(-2px);
  border-color: #aaa;
}

.btn-lifeline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(100%);
}

/* Használt segítség stílusa */
.lifeline-used {
  text-decoration: line-through;
  opacity: 0.5;
}

/* =========================
   MANAGER SEGÍTSÉGEK (LIFELINES)
   ========================= */
.lifelines {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn-lifeline {
  background: linear-gradient(180deg, #444, #222);
  border: 1px solid #666;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-lifeline:hover:not(:disabled) {
  background: linear-gradient(180deg, #666, #444);
  transform: translateY(-2px);
  border-color: #aaa;
}

.btn-lifeline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.lifeline-used {
  text-decoration: line-through;
  opacity: 0.5;
}
/* =========================
   TRÓFEA TEREM & REKORDOK
   ========================= */

.trophy-room {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #444;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.trophy-title {
  color: #FFD700; /* Arany */
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
  display: inline-block;
}

.high-scores {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #ccc;
  flex-wrap: wrap; 
  gap: 10px;
}

.score-item span {
  display: block;
  font-weight: bold;
  color: #fff;
  font-size: 1.1rem;
}

.belt-collection {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.belt {
  width: 50px;
  height: 50px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid #444;
  opacity: 0.3; /* Alapból halvány (nincs megszerezve) */
  filter: grayscale(100%);
  transition: all 0.5s ease;
  position: relative;
}

/* Ha megvan az öv */
.belt.unlocked {
  opacity: 1;
  filter: grayscale(0%);
  border-color: #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.1);
}

/* Tooltip (hogy lássuk mi az öv neve) */
.belt:hover::after {
  content: attr(data-title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid #FFD700;
}

/* Új rekord animáció */
.new-record-alert {
  color: #FFD700;
  font-weight: bold;
  animation: pulse 1s infinite;
  margin-top: 10px;
  font-size: 1.2rem;
}
/* =========================
   KINYITHATÓ TÉMÁK (UNLOCKABLES)
   ========================= */

/* --- 1. NXT TÉMA (Sárga / Fekete) --- */
body.theme-nxt {
  background: radial-gradient(circle at center, #333 0%, #000 100%);
}
body.theme-nxt .quiz-box {
  border-color: #FFD700; /* Arany */
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}
body.theme-nxt .main-title { color: #FFD700; }
body.theme-nxt .timer-progress { background: #FFD700; }
body.theme-nxt button:hover { border-color: #FFD700; }


/* --- 2. INTERCONTINENTAL TÉMA (Fehér / Kék / Klasszikus) --- */
body.theme-ic {
  background: linear-gradient(135deg, #001f3f, #003366);
}
body.theme-ic .quiz-box {
  background: rgba(255, 255, 255, 0.95);
  color: #000; /* Sötét betűk a világos háttéren */
  border-color: #007bff;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}
body.theme-ic .main-title { color: #001f3f; text-shadow: none; }
body.theme-ic .sub-title { color: #333; }
body.theme-ic .score-item span { color: #000; }
body.theme-ic button { color: #fff; background: #003366; }
body.theme-ic .timer-progress { background: #007bff; }


/* --- 3. WWE CHAMPION TÉMA (Arany / Csillogás) --- */
body.theme-wwe {
  background: radial-gradient(circle, #5e4b00 0%, #000 90%);
}
body.theme-wwe .quiz-box {
  border: 2px solid #FFD700;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2);
}
body.theme-wwe .main-title {
  background: linear-gradient(to bottom, #fff, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
body.theme-wwe .timer-progress {
  background: linear-gradient(90deg, #FFD700, #fff, #FFD700);
}

/* Téma választó gombok a menüben */
.theme-selector {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.btn-theme {
  padding: 5px 10px;
  font-size: 0.8rem;
  border: 1px solid #555;
  background: #222;
  color: #aaa;
  cursor: pointer;
  border-radius: 5px;
  opacity: 0.5;
}
.btn-theme.unlocked {
  opacity: 1;
  border-color: #fff;
  color: #fff;
  font-weight: bold;
}
.btn-theme.active {
  background: #28a745; /* Zöld, ha aktív */
  border-color: #28a745;
}
/* =========================
   JÁTÉKSZABÁLYOK (RULES)
   ========================= */

.btn-rules {
  margin-top: 20px;
  background: transparent;
  border: 1px solid #666;
  color: #aaa;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-rules:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.rules-box {
  display: none; /* Alapból rejtve */
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ddd;
  animation: fadeIn 0.5s ease;
}

.rules-box h3 {
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
}

.rules-box ul {
  padding-left: 20px;
  margin: 0;
}

.rules-box li {
  margin-bottom: 8px;
}

.rules-box strong {
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   BADGE-EK (KÜLDETÉSEK)
   ========================= */

.badge-collection {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #444;
}

.badge {
  width: 45px;
  height: 45px;
  background: #1a1a1a;
  border: 1px solid #555;
  border-radius: 8px; /* Kicsit szögletesebb, mint az övek */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.3;
  filter: grayscale(100%);
  transition: all 0.4s ease;
  position: relative;
  cursor: help;
}

/* Ha teljesítve van */
.badge.unlocked {
  opacity: 1;
  filter: grayscale(0%);
  border-color: #00ffea; /* Neon cián szín */
  background: radial-gradient(circle, #004444 0%, #000 100%);
  box-shadow: 0 0 10px rgba(0, 255, 234, 0.4);
  transform: scale(1.1);
}

/* Tooltip (Leírás) */
.badge:hover::after {
  content: attr(data-title);
  position: absolute;
  bottom: 50px; /* Felülre tesszük, hogy ne takarja ki az öveket */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid #00ffea;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Új Badge Animáció */
.new-badge-alert {
  color: #00ffea;
  font-weight: bold;
  animation: pulse 1s infinite;
  margin-top: 5px;
}
/* =========================
   VÁRATLAN FORDULATOK (RANDOM EVENTS)
   ========================= */

.event-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid #fff;
  padding: 20px;
  border-radius: 12px;
  z-index: 1000;
  text-align: center;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  pointer-events: none; /* Átkattintható */
  opacity: 0;
  transition: all 0.3s ease;
}

.event-overlay.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: shakeBox 0.5s ease;
}

.event-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 10px currentColor;
}

.event-desc {
  font-size: 1.1rem;
  color: #ddd;
  margin-top: 5px;
}

/* Típusok színei */
.event-good { color: #2aff65; border-color: #2aff65; } /* Zöld */
.event-bad  { color: #ff2a2a; border-color: #ff2a2a; } /* Piros */
.event-neutral { color: #FFD700; border-color: #FFD700; } /* Arany */

/* EFFEKTEK A JÁTÉKTEREN */

/* Áramszünet effekt: minden elsötétül */
.blackout-mode #answers, 
.blackout-mode #question {
  filter: brightness(0);
  pointer-events: none; /* Nem lehet kattintani sötétben */
  transition: filter 0.2s;
}

/* Székütés effekt: remegés */
@keyframes shakeBox {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-55%, -55%) rotate(-5deg); }
  50% { transform: translate(-45%, -45%) rotate(5deg); }
  75% { transform: translate(-55%, -55%) rotate(-5deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}
/* =========================
   PROFIL KÁRTYA (PLAYER STATS)
   ========================= */

.profile-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.profile-card {
  background: linear-gradient(135deg, #1a1a1a, #000);
  width: 90%;
  max-width: 400px;
  border: 2px solid #444;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.2);
  position: relative;
}

.profile-header {
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.profile-avatar {
  font-size: 3rem;
  margin-bottom: 10px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.profile-rank {
  color: #007bff; /* Kék, mint a SmackDown */
  font-size: 1rem;
  font-weight: bold;
  margin-top: 5px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.stat-label {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  margin-top: 5px;
}
/* =========================
   MEGOSZTÁS GOMB (SHARE)
   ========================= */

.btn-share {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9); /* Social kék */
  border: 1px solid #8ecdf8;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin: 10px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.btn-share:active {
  transform: scale(0.98);
}
/* =========================
   VIRTUÁLIS BOLT (SHOP)
   ========================= */

.shop-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.shop-window {
  background: linear-gradient(135deg, #222, #111);
  width: 95%;
  max-width: 600px; /* Szélesebb, mint a sima doboz */
  border: 2px solid #FFD700;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto; /* Ha sok a cucc, lehessen görgetni */
}

.shop-header {
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-balance {
  font-size: 1.2rem;
  color: #2aff65; /* Pénz zöld */
  font-weight: bold;
  background: rgba(0,0,0,0.5);
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #2aff65;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Reszponzív rács */
  gap: 15px;
  margin-bottom: 20px;
}

.shop-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 15px 10px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shop-item:hover {
  transform: translateY(-5px);
  border-color: #FFD700;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.item-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.item-name { font-weight: bold; color: #fff; margin-bottom: 5px; font-size: 1rem; }
.item-desc { font-size: 0.75rem; color: #aaa; margin-bottom: 10px; flex-grow: 1; }
.item-price { color: #FFD700; font-weight: bold; margin-bottom: 8px; }

.btn-buy {
  background: #28a745;
  border: none;
  color: white;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}
.btn-buy:disabled { background: #444; color: #888; cursor: not-allowed; }

.inventory-count {
  font-size: 0.8rem;
  color: #007bff;
  margin-top: 5px;
  font-weight: bold;
}

/* Főmenü Bolt Gomb */
.btn-shop {
  background: linear-gradient(135deg, #FFD700, #ffaa00);
  color: #000;
  border: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.btn-shop:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Aktív Bónuszok Kijelzése Játék Közben */
.active-buffs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.buff-badge {
  background: rgba(0,0,0,0.8);
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  animation: fadeIn 1s;
}
/* --- 4. IRON MAN TÉMA (Ezüst/Fém) --- */
.mode-ironman {
  border-color: #a0a0a0 !important;
  box-shadow: 0 0 50px rgba(192, 192, 192, 0.5) !important;
  background: linear-gradient(180deg, #2b2b2b, #000) !important;
}
.mode-ironman .timer-progress {
  background: linear-gradient(90deg, #fff, #a0a0a0, #505050) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.mode-ironman #timer-text {
  font-family: 'Courier New', monospace; /* Digitális óra hatás */
  letter-spacing: 2px;
}

/* IRON MAN GOMB */
.btn-ironman {
  border-color: #a0a0a0;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
  background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(80,80,80,0.3));
  animation: pulseSilver 3s infinite;
}
.btn-ironman:hover {
  background: rgba(192, 192, 192, 0.2);
  box-shadow: 0 0 25px #a0a0a0, inset 0 0 10px #a0a0a0;
  transform: scale(1.02);
}

@keyframes pulseSilver {
  0% { box-shadow: 0 0 5px rgba(192, 192, 192, 0.3); }
  50% { box-shadow: 0 0 20px rgba(192, 192, 192, 0.6); }
  100% { box-shadow: 0 0 5px rgba(192, 192, 192, 0.3); }
}

/* Idő levonás animáció */
.time-penalty {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #ff3333;
  font-size: 3rem;
  font-weight: bold;
  animation: penaltyFade 1s forwards;
  z-index: 100;
  text-shadow: 0 0 10px #000;
}

@keyframes penaltyFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  50% { transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -100%) scale(1); }
}
/* =========================
   BOSS FIGHT (WRESTLEMANIA MOMENT)
   ========================= */

.mode-boss {
  /* Alap vörös-fekete átmenet */
  background: linear-gradient(180deg, #400000, #000) !important;
  border-color: #ff0000 !important;
  
  /* Animáció beállítása: Gyorsabb (0.8s) a feszültségért */
  animation: bossPulse 0.8s infinite alternate !important;
}

.mode-boss .timer-progress {
  background: linear-gradient(90deg, #ff0000, #fff, #ff0000) !important;
}

.mode-boss h2 {
  color: #ff3333;
  text-shadow: 0 0 10px #000;
  font-size: 1.8rem;
}

.boss-indicator {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeIn 0.5s;
}

/* --- ÚJ: A LÜKTETŐ ANIMÁCIÓ --- */
@keyframes bossPulse {
  0% {
    /* Nyugalmi állapot: Kisebb külső fény, halvány belső piros */
    box-shadow: 
      0 0 20px rgba(255, 0, 0, 0.4), 
      inset 0 0 20px rgba(255, 0, 0, 0.1); 
    border-color: #880000;
  }
  100% {
    /* Lüktetés: Erős külső fény, és ERŐS BELSŐ (INSET) IZZÁS */
    box-shadow: 
      0 0 80px rgba(255, 0, 0, 0.9), 
      inset 0 0 150px rgba(255, 0, 0, 0.5); /* Ez csinálja a háttér pulzálást! */
    border-color: #ff0000;
  }
}

/* Opcionális: A gomb is kaphat egy kis fény-animációt (mozgás nélkül!) */
.btn-boss-start {
  animation: buttonGlow 1.5s infinite alternate;
}

@keyframes buttonGlow {
  0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
  100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.8); }
}
/* =========================
   KOCKÁZAT GOMB
   ========================= */
.btn-risk {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(135deg, #6a11cb, #2575fc); /* Lila-Kék átmenet */
  border: 1px solid #8ec5fc;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-risk:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6);
  filter: brightness(1.2);
}

.btn-risk:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(100%);
}

/* Aktív állapot (ha megnyomták) */
.btn-risk.risk-active {
  background: linear-gradient(135deg, #ff9900, #ff0000); /* Narancs-Piros figyelmeztetés */
  border-color: #ffcc00;
  animation: pulseRisk 1s infinite alternate;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

@keyframes pulseRisk {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
  100% { transform: scale(1.03); box-shadow: 0 0 25px rgba(255, 0, 0, 0.8); }
}
/* =========================
   FRAKCIÓ VÁLASZTÓ
   ========================= */
.faction-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 60vh;
  overflow-y: auto;
}

.faction-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #555;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.2s;
  text-align: left;
}

.faction-card.active-faction {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.faction-icon {
  font-size: 2.5rem;
  min-width: 50px;
  text-align: center;
}

.faction-info h3 {
  margin: 0 0 5px 0;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.faction-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #ccc;
}

.btn-join {
  margin-left: auto; /* Jobbra tolja a gombot */
  padding: 8px 15px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.btn-join:hover {
  filter: brightness(1.2);
}
/* =========================
   HELL IN A CELL (HIAC) MÓD
   ========================= */

/* A gomb stílusa a menüben (Ezüst/Vörös/Rozsda) */
.btn-hiac {
  border-color: #808080;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  background: linear-gradient(90deg, #1a1a1a, #330000);
  animation: pulseCage 4s infinite;
}
.btn-hiac:hover {
  background: rgba(50, 0, 0, 0.5);
  box-shadow: 0 0 30px #ff0000, inset 0 0 10px #000;
  border-color: #ff0000;
}

@keyframes pulseCage {
  0% { border-color: #808080; }
  50% { border-color: #ff0000; box-shadow: 0 0 20px rgba(255,0,0,0.5); }
  100% { border-color: #808080; }
}

/* A játéktér stílusa HIAC módban */
.mode-hiac {
  border: 4px solid #444 !important; /* Vastag rács keret */
  background: linear-gradient(180deg, #1a1a1a, #000) !important;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.9), 0 0 30px rgba(255, 255, 255, 0.1) !important;
}

.mode-hiac .timer-progress {
  background: linear-gradient(90deg, #555, #ff0000, #555) !important; /* Vészjósló csík */
}

/* --- KETREC RÁCS (OVERLAY) --- */
.cage-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; /* A tartalom mögött, de a háttér előtt */
  pointer-events: none;
  
  /* CSS Rács Minta */
  background-image: 
    linear-gradient(45deg, #333 25%, transparent 25%, transparent 75%, #333 75%, #333),
    linear-gradient(45deg, #333 25%, transparent 25%, transparent 75%, #333 75%, #333);
  background-position: 0 0, 10px 10px;
  background-size: 30px 30px; /* Nagyobb láncszemek */
  opacity: 0.3; 
  box-shadow: inset 0 0 150px #000;
}

/* Becsapódás animáció */
.cage-shake {
  animation: cageRattle 0.3s ease-in-out;
}

@keyframes cageRattle {
  0% { transform: translate(0, 0); opacity: 0.3; }
  25% { transform: translate(-5px, 5px); opacity: 0.6; background-color: rgba(255, 0, 0, 0.1); }
  50% { transform: translate(5px, -5px); opacity: 0.6; background-color: rgba(255, 0, 0, 0.1); }
  75% { transform: translate(-5px, -5px); opacity: 0.6; background-color: rgba(255, 0, 0, 0.1); }
  100% { transform: translate(0, 0); opacity: 0.3; }
}
.btn-defend {
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(211, 47, 47, 0.5);
  transition: 0.2s;
}
.btn-defend:hover {
  background: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.defense-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  font-weight: bold;
}
/* =========================
   ÖV GYŰJTEMÉNY (SCROLL MÓD) ↔️
   ========================= */

.belt-collection {
  display: flex; /* Rács helyett Flex */
  overflow-x: auto; /* Vízszintes görgetés engedélyezése */
  gap: 12px;
  padding: 10px 5px;
  justify-content: flex-start; /* Balról indul */
  
  /* Görgetősáv elrejtése (szebb kinézet) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}

/* Chrome/Safari görgetősáv elrejtés */
.belt-collection::-webkit-scrollbar {
  display: none;
}

/* Egy öv doboza */
.belt-container {
  flex: 0 0 110px; /* FIX szélesség: nem megy össze, nem nő nagyobbra */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px 5px;
  height: 150px; /* Fix magasság */
}

/* A többi marad ugyanaz, csak kicsit igazítunk a méreteken */
.belt-frame {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 5px;
}

.belt-frame img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.8));
}

/* Állapotok */
.belt-frame.locked img { filter: grayscale(100%) brightness(0.4) opacity(0.5); }
.belt-frame.locked { cursor: not-allowed; }
.belt-frame.unlocked img { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6)); }

.belt-name {
  font-size: 0.65rem;
  color: #ccc;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 5px;
  line-height: 1.1;
  height: 25px; /* Hogy a 2 soros szöveg is elférjen */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Gomb */
.btn-defend {
  width: 90%;
  padding: 4px 0;
  font-size: 0.65rem;
  margin-top: auto;
}
/* --- ÚJ ANIMÁCIÓ: LEBEGÉS (NEM TŰNIK EL!) --- */
@keyframes hoverFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); } /* Kicsit felmegy */
  100% { transform: translateY(0); }
}
/* =========================
   KARRIER MÓD (ROAD TO WRESTLEMANIA)
   ========================= */
.career-map {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 75vh; /* Mobilon több helyet kapjon */
  overflow-y: auto;
  padding: 10px 10px 40px 10px; /* Alján legyen hely a görgetésnek */
  position: relative;
  scrollbar-width: thin; /* Vékonyabb görgetősáv */
  scrollbar-color: #FFD700 #222;
}

/* Egy kis vizuális extra: Fejezet elválasztó vonal */
.career-stage:nth-child(3)::after,
.career-stage:nth-child(6)::after,
.career-stage:nth-child(9)::after,
.career-stage:nth-child(13)::after,
.career-stage:nth-child(16)::after {
    content: '🔽 ÚJ FEJEZET 🔽';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #555;
    background: #000;
    padding: 0 10px;
    white-space: nowrap;
}

/* Az összekötő vonal */
.career-map::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: #333;
  z-index: 0;
}

.career-stage {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 15px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.career-stage.locked {
  opacity: 0.5;
  filter: grayscale(100%);
  pointer-events: none;
}

.career-stage.current {
  border-color: #FFD700;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  transform: scale(1.02);
}

.career-stage.completed {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.stage-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222;
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.career-stage.current .stage-icon {
  border-color: #FFD700;
  animation: pulse 2s infinite;
}

.career-stage.completed .stage-icon {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}

.stage-info h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
}

.stage-info p {
  margin: 5px 0 0;
  font-size: 0.8rem;
  color: #ccc;
}

.stage-action {
  margin-left: auto;
}

.btn-career-play {
  background: #007bff;
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.btn-career-play:hover {
  background: #0056b3;
}
/* =========================
   KÁRTYA NAGYÍTÁS (PREVIEW)
   ========================= */
.card-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Sötét háttér */
    z-index: 4000; /* Legyen mind felett (a shop felett is) */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    cursor: pointer; /* Jelzi, hogy kattintással zárható */
}

.card-preview-box {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.card-preview-box img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    object-fit: contain;
}

.card-preview-info {
    margin-top: 15px;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px black;
}

.btn-close-preview {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Animációk */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }
/* --- EGYEDI NÉVSZERKESZTŐ ABLAK --- */
.name-edit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Sötétítés */
  z-index: 6000; /* Mindig legfelül legyen */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.name-edit-box {
  background: linear-gradient(135deg, #1a1a1a, #000);
  border: 2px solid #FFD700; /* Arany keret */
  border-radius: 15px;
  padding: 25px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
  position: relative;
}

.name-edit-box h3 {
  color: #FFD700;
  margin-top: 0;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.name-input {
  width: 80%;
  padding: 10px;
  margin: 15px 0;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #555;
  background: #333;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  outline: none;
}

.name-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.edit-btn-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.btn-save-name {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.btn-cancel-name {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}