/* GLOBALNE */
* {
/* GLOBALNA BLOKADA ZAZNACZANIA TEKSTU NA TELEFONACH */
button, .qs-item, .option, .q-num, #sidebar-toggle, #scale-toggle {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
  -webkit-tap-highlight-color: transparent;
}
html {
  background-color: #0b0b0b;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2rVrf2RgYGCEMEAQQIAAAwMAJwIAl09vMwAAAABJRU5ErkJggg==');
  min-height: 100vh;
}

body { 
  font-family: Tahoma, Verdana, sans-serif; 
  color: #c8c8c8; 
  display: flex; 
  min-height: 100vh; 
  margin: 0; 
  font-size: 11px; 
  transition: zoom 0.1s; 
  overflow-x: hidden; 
  background: transparent; 
  text-shadow: 1px 1px 0px rgba(0,0,0,1);
}

/* GAMESENSE WINDOWS */
.skeet-window {
  background: #171717;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #2b2b2b, inset -1px -1px 0 #2b2b2b, 0 0 15px rgba(0,0,0,0.8);
  position: relative;
  padding: 20px;
  margin: auto;
}

/* OSTRY PASEK GŁÓWNY */
.skeet-window::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 2px;
  background: linear-gradient(90deg, 
    #59c135 0%, #d6e22c 8.33%, #e23b3b 16.66%, #d91c78 25%, #1c7cd9 33.33%, #1cbbd9 41.66%, 
    #59c135 50%, #d6e22c 58.33%, #e23b3b 66.66%, #d91c78 75%, #1c7cd9 83.33%, #1cbbd9 91.66%, 
    #59c135 100%
  );
  background-size: 200% 100%;
  animation: rgbFlow 4s linear infinite;
  z-index: 2;
}

/* EFEKT GLOW (Rozmyty klon paska) */
.skeet-window::after {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 2px;
  background: linear-gradient(90deg, 
    #59c135 0%, #d6e22c 8.33%, #e23b3b 16.66%, #d91c78 25%, #1c7cd9 33.33%, #1cbbd9 41.66%, 
    #59c135 50%, #d6e22c 58.33%, #e23b3b 66.66%, #d91c78 75%, #1c7cd9 83.33%, #1cbbd9 91.66%, 
    #59c135 100%
  );
  background-size: 200% 100%;
  animation: rgbFlow 4s linear infinite;
  filter: blur(8px); /* Magia rozmycia */
  opacity: 0.6; /* Siła świecenia - możesz zmienić na 0.8 jeśli chcesz mocniejszy */
  z-index: 1;
}

@keyframes rgbFlow {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* GROUPBOX (Fieldset) */
fieldset.groupbox {
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #2b2b2b, inset -1px -1px 0 #2b2b2b;
  padding: 15px; margin: 15px 0; border-radius: 0;
}
legend.groupbox-title {
  font-size: 11px; color: #ccc; font-weight: bold; padding: 0 5px; margin-left: 5px;
}

/* BUTTONS */
button.skeet-btn {
  background: linear-gradient(to bottom, #2b2b2b 0%, #1e1e1e 100%);
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #3a3a3a, inset -1px -1px 0 #1a1a1a;
  color: #c8c8c8; text-shadow: 1px 1px 0 #000; cursor: pointer;
  font-family: Tahoma, sans-serif; font-size: 11px; padding: 8px 12px;
  text-transform: uppercase; font-weight: bold; transition: 0.1s; width: 100%;
}
button.skeet-btn:hover { background: linear-gradient(to bottom, #353535 0%, #252525 100%); color: #fff; }
button.skeet-btn:active { background: #1a1a1a; box-shadow: inset 1px 1px 3px #000; }
button.skeet-btn:disabled { color: #666; cursor: not-allowed; }

/* INPUTS */
.skeet-input { 
  background: #121212; border: 1px solid #000; color: #ccc; padding: 8px; width: 100%; 
  box-sizing: border-box; box-shadow: inset 1px 1px 2px #000, 1px 1px 0 #2b2b2b; outline: none; 
  font-family: Tahoma, sans-serif; font-size: 11px; 
}
.skeet-input:focus { border-color: #8cbf26; }

/* SIDEBAR */
#sidebar-wrapper { position: fixed; left: -80px; top: 0; bottom: 0; display: flex; align-items: center; z-index: 1000; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: none; height: 100%; }
#sidebar-wrapper.open { left: 0; }
#sidebar { width: 70px; height: 100%; background: #141414; border-right: 1px solid #000; overflow-y: auto; padding: 15px 5px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: inset -1px 0 0 #2b2b2b; }
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: #0b0b0b; }
#sidebar::-webkit-scrollbar-thumb { background: #8cbf26; }

.q-num { width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; background: linear-gradient(to bottom, #2b2b2b, #1e1e1e); border: 1px solid #000; cursor: pointer; font-size: 11px; font-weight: bold; color: #777; box-shadow: inset 1px 1px 0 #3a3a3a; flex-shrink: 0; }
.q-num.active { color: #8cbf26; background: #1e1e1e; box-shadow: inset 1px 1px 3px #000; border-color: #000; }
.q-num.answered { color: #fff; border-color: #000; }

#sidebar-toggle { width: 25px; height: 60px; background: linear-gradient(to bottom, #2b2b2b, #1e1e1e); border: 1px solid #000; border-left: none; box-shadow: 2px 0 5px rgba(0,0,0,0.8), inset 1px 1px 0 #3a3a3a; color: #8cbf26; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; transition: 0.2s; border-radius: 0 4px 4px 0; }
#sidebar-toggle:hover { color: #a5df2d; }

#main { flex-grow: 1; display: flex; justify-content: center; align-items: center; padding: 20px; overflow-y: auto; }
#quiz-container { max-width: 700px; width: 100%; }

.header-bar { display: flex; justify-content: space-between; font-weight: bold; color: #8cbf26; margin-bottom: 5px; }

/* PROGRESS BAR */
#progress-bg { width: 100%; background: #0b0b0b; border: 1px solid #000; height: 6px; box-shadow: inset 1px 1px 0 #1a1a1a, 1px 1px 0 #2b2b2b; }
#progress-fill { height: 100%; background: #8cbf26; width: 0%; transition: width 0.3s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }

.question { font-weight: bold; font-size: 13px; line-height: 1.5; color: #e0e0e0; margin-bottom: 10px; }
#ai-response { margin-top: 10px; padding: 10px; background: #0d0d0d; border: 1px solid #000; border-left: 2px solid #8cbf26; font-size: 11px; display: none; line-height: 1.6; color: #c8c8c8; font-family: 'Courier New', Courier, monospace; }

/* OPCJE (Skeet Checkboxes style) */
.options { display: flex; flex-direction: column; gap: 4px; }
.option { padding: 8px 10px; background: #121212; border: 1px solid #000; cursor: pointer; color: #aaa; box-shadow: 1px 1px 0 #2b2b2b; display: flex; align-items: center; gap: 10px; transition: 0.1s; }
.option:hover { background: #1a1a1a; color: #ccc; }
.option::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 1px solid #000; background: #1a1a1a; box-shadow: inset 1px 1px 0 #2b2b2b; flex-shrink: 0; }
.option.correct { background: #162010; border-color: #000; color: #8cbf26; }
.option.correct::before { background: #8cbf26; box-shadow: inset 0 0 3px #000; }
.option.incorrect { background: #261212; border-color: #000; color: #d64541; }
.option.incorrect::before { background: #d64541; box-shadow: inset 0 0 3px #000; }
.option.disabled { pointer-events: none; }

#feedback-box { margin-top: 15px; padding: 10px; border: 1px solid #000; font-size: 11px; display: none; line-height: 1.6; font-family: 'Courier New', Courier, monospace; box-shadow: 1px 1px 0 #2b2b2b; }
#feedback-box.correct-fb { background: #0d1a08; border-left: 3px solid #8cbf26; color: #c8c8c8; }
#feedback-box.incorrect-fb { background: #1f0b0b; border-left: 3px solid #d64541; color: #c8c8c8; }

.controls { display: flex; gap: 8px; margin-top: 15px; }
.bottom-buttons { display: flex; gap: 8px; margin-top: 8px; }

/* Kolory akcentów na przyciskach */
#btn-finish { color: #d64541; }
#btn-menu { color: #3498db; }
#btn-shuffle { color: #f39c12; }
#btn-speedrun { color: #e056fd; }
#btn-dopamine { color: #00d2d3; }

/* SKALA UI (Szufladka) */
#scale-wrapper { position: fixed; right: 0; bottom: 20px; display: flex; align-items: flex-end; z-index: 1000; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#scale-wrapper.open { transform: translateX(0); }
#scale-content { background: #171717; border: 1px solid #000; border-right: none; padding: 10px 15px; box-shadow: inset 1px 1px 0 #2c2c2c, -5px 0 10px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.scale-row { display: flex; align-items: center; gap: 8px; }
.scale-btn { background: linear-gradient(to bottom, #2b2b2b, #1e1e1e); border: 1px solid #000; color: #8cbf26; width: 22px; height: 22px; cursor: pointer; font-weight: bold; font-size: 14px; box-shadow: inset 1px 1px 0 #3a3a3a; padding: 0; text-shadow: 1px 1px 0 #000; }
#scale-control input[type=range] { -webkit-appearance: none; width: 150px; background: transparent; margin: 0; }
#scale-control input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 12px; width: 8px; border-radius: 0; background: #8cbf26; cursor: pointer; margin-top: -4px; border: 1px solid #000; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3); }
#scale-control input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; background: #0b0b0b; border: 1px solid #000; box-shadow: 1px 1px 0 #2b2b2b; }
#scale-toggle { position: absolute; left: -30px; bottom: 0; width: 30px; height: 40px; background: linear-gradient(to bottom, #2b2b2b, #1e1e1e); border: 1px solid #000; border-right: none; box-shadow: -2px 0 5px rgba(0,0,0,0.5), inset 1px 1px 0 #3a3a3a; color: #8cbf26; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: 0.2s; border-radius: 4px 0 0 4px; }

/* DOPAMINA */
#dopamine-box { position: fixed; top: 20px; right: 20px; width: 200px; height: 350px; background: #000; border: 1px solid #000; box-shadow: 0 0 15px rgba(0,210,211,0.3), inset 1px 1px 0 #2b2b2b; display: none; z-index: 9999; pointer-events: none; }
#dopamine-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #00d2d3; z-index: 10; }
#dopamine-box video { width: 100%; height: 100%; object-fit: cover; }

/* TABELE RANKINGU */
.ranking-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; border: 1px solid #000; box-shadow: 1px 1px 0 #2b2b2b; }
.ranking-table th, .ranking-table td { border: 1px solid #000; padding: 6px 8px; background: #121212; }
.ranking-table th { color: #8cbf26; background: #1a1a1a; font-weight: normal; }
.ranking-table tr:nth-child(even) td { background: #161616; }

/* MENU GŁÓWNE */
.menu-btn { padding: 15px; text-align: left; display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.menu-btn span.subtitle { font-size: 10px; color: #777; font-weight: normal; text-transform: none; text-shadow: none; }
.menu-btn:hover span.subtitle { color: #aaa; }

/* LOGIN MODAL */
#login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: none; justify-content: center; align-items: center; }
#login-box { width: 300px; }

@media (max-width: 768px) {
  #main { padding: 10px; align-items: flex-start; }
  #quiz-container { padding: 15px; margin-top: 10px; }
  .question { font-size: 14px; }
  .option { font-size: 12px; }
  button.skeet-btn { padding: 12px; font-size: 11px; }
  .bottom-buttons, .controls { flex-direction: column; }
  #dopamine-box { width: 120px; height: 210px; top: auto; bottom: 80px; right: 10px; }
  #scale-wrapper { bottom: 10px; }
  #scale-content { transform: scale(0.9); transform-origin: bottom right; }
}

/* --- DOJO PREMIUM BUTTON --- */
.dojo-btn-premium {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 35px 15px;
  background: #0b0b0f;
  border: 1px solid rgba(140,191,38, 0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.dojo-btn-premium::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 16px;
  z-index: -1;
  animation: dojoPulse 3s infinite alternate ease-in-out;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dojo-title-premium {
  color: #ffffff !important;
  font-size: clamp(20px, 6vw, 26px);
  letter-spacing: 4px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(140,191,38,0.8), 0 0 20px rgba(140,191,38,1), 0 0 40px rgba(140,191,38,0.6) !important;
  pointer-events: none;
  z-index: 2;
  transition: all 0.4s ease;
}

.dojo-sub-premium {
  color: #aaaaaa;
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  transition: all 0.4s ease;
}

@keyframes dojoPulse {
  0% { box-shadow: 0 0 15px rgba(140,191,38,0.1), inset 0 0 10px rgba(140,191,38,0.05); }
  100% { box-shadow: 0 0 35px rgba(140,191,38,0.4), inset 0 0 20px rgba(140,191,38,0.2); }
}

.dojo-btn-premium:hover,
.dojo-btn-premium:active {
  transform: translateY(-4px) translateZ(0);
  background: #111116;
  border-color: #a5df2d;
  box-shadow: 0 15px 40px rgba(140,191,38,0.5), inset 0 0 25px rgba(140,191,38,0.3);
}

.dojo-btn-premium:hover::before,
.dojo-btn-premium:active::before {
  opacity: 0;
}

.dojo-btn-premium:hover .dojo-title-premium,
.dojo-btn-premium:active .dojo-title-premium {
  text-shadow: 0 0 15px rgba(140,191,38,1), 0 0 30px rgba(140,191,38,1), 0 0 50px rgba(140,191,38,0.8) !important;
}

.dojo-btn-premium:hover .dojo-sub-premium,
.dojo-btn-premium:active .dojo-sub-premium {
  color: #ffffff;
}

/* --- PREMIUM SUB-MENU LISTS (ZBROJOWNIA, POLIGON ITD.) --- */
.premium-list-btn {
  -webkit-appearance: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border-left: 2px solid var(--c, #444);
}

.premium-list-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--c, #444) 0%, transparent 100%);
  opacity: 0.03;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .premium-list-btn:hover {
    transform: translateY(-2px);
    background: rgba(20, 20, 25, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    border-left: 2px solid var(--c, #444);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  .premium-list-btn:hover::before { opacity: 0.1; }
  .premium-list-btn:hover .premium-list-title { color: #ffffff; }
}

.premium-list-btn:active {
  transform: translateY(0);
  background: rgba(25, 25, 30, 0.9);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.premium-list-title {
  color: #ffffff !important; /* Wymuszona czysta, jasna biel */
  font-size: 13px;
  font-weight: 900; /* Pogrubienie jak w DOJO */
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); /* Subtelny biały blask */
}

/* Ikony ([>]) świecą w kolorze ramki */
.premium-list-title i {
  color: var(--c, #888);
  font-style: normal;
  text-shadow: 0 0 10px var(--c, #888);
}

.premium-list-sub {
  color: #999999; /* Lekko rozjaśniłem też podpisy */
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Zabezpieczenie, żeby przycisk WSTECZ nie świecił i został dyskretny */
.premium-back-btn .premium-list-title {
  font-size: 11px;
  color: #666666 !important;
  text-shadow: none !important;
}
.premium-back-btn:hover .premium-list-title {
  color: #aaaaaa !important;
}