* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen {
  width: 100%;
  max-width: 800px;
  min-height: 600px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hidden {
  display: none;
}

/* Splash Screen */
.host-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 30px;
  border: 4px solid #ffd700;
}

.host-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: 36px;
  margin-bottom: 16px;
  color: #333;
}

p {
  font-size: 24px;
  margin-bottom: 30px;
  color: #555;
}

.btn-primary {
  background-color: #ffd700;
  color: #333;
  border: none;
  padding: 12px 30px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #ffcc00;
}

.btn-primary:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Game Screen */
.game-header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.score-display {
  background-color: #ffd700;
  color: #333;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
}

.level-display {
  background-color: #4a90e2;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
}

.game-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

/* Wheel - ИСПРАВЛЕННЫЙ КОД */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 30px auto;
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  border: 4px solid #ffd700;
  background-color: #333;
  overflow: hidden;
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  right: 0;
  transform-origin: bottom left;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 30px;
  font-weight: bold;
  color: white;
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Центр колеса */
#wheel::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #ffd700;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: 2px solid #333;
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #e63946;
  z-index: 10;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Question Phase */
.question-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.question-container h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

#answers-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.answer-btn {
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  padding: 12px;
  border-radius: 8px;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.answer-btn:hover {
  background-color: #e9ecef;
}

/* Host Character */
.host-character {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
}

.host-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Victory Screen */
.final-score {
  margin: 30px 0;
  padding: 15px 30px;
  background-color: #ffd700;
  border-radius: 12px;
  color: #333;
}

/* Text center */
.text-center {
  text-align: center;
}

/* Background for each level */
.bg-level-1 {
  background-image: url("https://via.placeholder.com/800x600.png?text=Фон+уровня+1");
}
.bg-level-2 {
  background-image: url("https://via.placeholder.com/800x600.png?text=Фон+уровня+2");
}
.bg-level-3 {
  background-image: url("https://via.placeholder.com/800x600.png?text=Фон+уровня+3");
}
.bg-level-4 {
  background-image: url("https://via.placeholder.com/800x600.png?text=Фон+уровня+4");
}
.bg-level-5 {
  background-image: url("https://via.placeholder.com/800x600.png?text=Фон+уровня+5");
}

#app .screen {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#app .screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -1;
  border-radius: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
  .screen {
    max-width: 95%;
    min-height: 500px;
    padding: 20px;
  }

  h1 {
    font-size: 28px;
  }

  p {
    font-size: 18px;
  }

  .wheel-container {
    width: 250px;
    height: 250px;
  }

  .host-image {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .wheel-container {
    width: 200px;
    height: 200px;
  }

  .host-character {
    width: 80px;
    height: 80px;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 16px;
  }
}


/* Wheel */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 30px auto;
}

#wheel-svg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.wheel-segment {
  stroke: #333;
  stroke-width: 1;
}

.wheel-text {
  fill: white;
  font-size: 14px;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.wheel-center {
  fill: #ffd700;
  stroke: #333;
  stroke-width: 2;
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #e63946;
  z-index: 10;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.gameh2 {
    padding-top: 20px;
    margin-top: 30px;
}
