/* Zmienne kolorów inspirowane banerem Wampiriady */
:root {
  --bg-gradient-start: #3b0a1a;
  --bg-gradient-end: #120308;
  --card-bg: rgba(90, 16, 38, 0.45);
  --accent-red: #d32f2f;
  --accent-bright: #ff3355;
  --pink-light: #ff6688;
  --text-white: #ffffff;
  --text-muted: #d0a0b0;
  --footer-bg: #0d0205;
  --border-color: rgba(255, 102, 136, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: radial-gradient(circle at center, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 35px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
}

.header-left {
  color: var(--pink-light);
  font-size: 18px;
  font-weight: 900;
}

.header-right {
  color: var(--text-muted);
  font-size: 12px;
}

/* Main Layout */
.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 750px;
  animation: fadeIn 0.4s ease-in-out;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Start Screen */
.icon-wrapper {
  margin-bottom: 15px;
}

.drop-icon {
  width: 50px;
  height: 50px;
  fill: var(--accent-bright);
  filter: drop-shadow(0 0 10px rgba(255, 51, 85, 0.6));
}

.main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.subtitle {
  color: var(--pink-light);
  font-size: 18px;
  margin-bottom: 35px;
  font-weight: 600;
}

/* Slider Box */
.slider-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 35px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}

.slider-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px var(--accent-bright);
  cursor: pointer;
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-val-display {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  min-width: 40px;
  text-align: right;
}

.slider-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #e60039 0%, #a80028 100%);
  color: #fff;
  border: none;
  padding: 14px 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 0, 57, 0.4);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 57, 0.6);
  background: linear-gradient(135deg, #ff1a4f 0%, #b8002d 100%);
}

/* Quiz Screen */
.quiz-info-top {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--pink-light);
  margin-bottom: 15px;
}

.question-text {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
}

.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 25px;
}

.answer-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.answer-btn:hover {
  background: rgba(140, 25, 55, 0.6);
  border-color: var(--pink-light);
  transform: translateX(4px);
}

.answer-btn.correct {
  background: rgba(46, 125, 50, 0.85) !important;
  border-color: #66bb6a !important;
}

.answer-btn.wrong {
  background: rgba(183, 28, 28, 0.85) !important;
  border-color: #ef5350 !important;
}

.score-live {
  align-self: flex-end;
  font-size: 14px;
  color: var(--text-muted);
}

.result-score-text {
  font-size: 24px;
  margin: 20px 0 10px;
}

.result-comment {
  font-size: 18px;
  color: var(--pink-light);
  margin-bottom: 30px;
}

/* Footer */
.main-footer {
  background: var(--footer-bg);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-left {
  font-size: 12px;
  color: var(--text-muted);
}

/* Dots Tracker */
.dots-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--pink-light);
  box-shadow: 0 0 8px var(--pink-light);
  transform: scale(1.2);
}

.dot.correct-dot {
  background: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

.dot.wrong-dot {
  background: #f44336;
  box-shadow: 0 0 8px #f44336;
}

/* Niezauważalny przycisk w stopce */
.btn-banner-subtle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-banner-subtle:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* Banner Modal (Wysuwany z dołu) */
.banner-modal {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: bottom 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
  padding: 20px;
}

.banner-modal.open {
  bottom: 0;
}

.banner-img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-close-modal:hover {
  opacity: 1;
}

#jumpscare {
  cursor: pointer;
  user-select: none;
}

#jumpscare-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  z-index: 10000;
  max-width: 0%;
  max-height: 0%;
  transition: max-width 0.3s ease, max-height 0.3s ease;
}
.active {
  max-width: 80% !important;
  max-height: 80% !important;
}