:root {
  --app-bg: #000;
  --text-color: #fff;
  --question-card-bg: rgba(238, 242, 255, 0.88);
  --question-title-color: #111827;
  --question-body-color: #4b5563;
  --answer-bg: #f8fafc;
  --answer-text: #1035c9;
  --answer-border: #d1d5db;
  --winner-card-bg: rgba(238, 242, 255, 0.88);
  --winner-title-color: #1035c9;
  --winner-message-color: #4b5563;
  --rules-card-bg: rgba(238, 242, 255, 0.92);
  --rules-title-color: #1035c9;
  --rules-text-color: #23272f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--app-bg);
  color: var(--text-color);
  font-family: 'Trebuchet MS', sans-serif;
  overflow: hidden;
}

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  overflow: hidden;
  background: #000;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
}

.screen.active {
  display: block;
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui {
  position: absolute;
}

.clickable {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

#wheelCanvas {
  z-index: 10;
}

#wheelPointer {
  z-index: 20;
}

#wheelStartStudent,
#wheelStartVeterinar,
#wheelRegulationBtn {
  z-index: 25;
}

.themed-screen {
  color: #fff;
  background: radial-gradient(circle at 82% 78%, #b8f224 0%, rgba(184, 242, 36, 0.15) 36%, rgba(53, 68, 242, 0.7) 72%, #2f39df 100%);
}

.top-left-logo {
  position: absolute;
  left: 30px;
  top: 26px;
  width: 220px;
  height: auto;
  z-index: 5;
}

.top-right-title {
  position: absolute;
  right: 42px;
  top: 24px;
  margin: 0;
  color: #ffffff;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 5;
}

.qa-card {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 110px;
  bottom: 120px;
  border-radius: 26px;
  padding: 28px 56px;
  background: var(--question-card-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.qa-title {
  margin: 0;
  color: var(--question-title-color);
  font-size: 56px;
  text-align: center;
  font-weight: 700;
}

.qa-body {
  margin: 42px auto 58px;
  color: var(--question-body-color);
  font-size: 46px;
  line-height: 1.2;
  max-width: 900px;
  min-height: 120px;
}

.qa-body p {
  margin: 0;
}

.answers-grid {
  margin: 0 auto;
  max-width: 1460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 46px;
}

.answer-btn {
  border: 2px solid var(--answer-border);
  background: var(--answer-bg);
  color: var(--answer-text);
  border-radius: 14px;
  height: 92px;
  font-size: 44px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 12px rgba(0, 0, 0, 0.16);
}

.home-link-btn {
  position: absolute;
  left: 28px;
  bottom: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
}

.home-link-btn img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.winner-card {
  position: absolute;
  left: 320px;
  right: 320px;
  top: 120px;
  bottom: 130px;
  border-radius: 34px;
  padding: 34px 70px;
  background: var(--winner-card-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.winner-title {
  margin: 0;
  text-align: center;
  color: var(--winner-title-color);
  font-size: 70px;
}

.winner-message {
  margin: 74px 0 0;
  color: var(--winner-message-color);
  font-size: 54px;
  max-width: 640px;
}

.winner-image {
  position: absolute;
  right: 120px;
  top: 170px;
  width: 360px;
  max-height: 420px;
  object-fit: contain;
}

.winner-actions {
  margin-top: 60px;
  max-width: 520px;
}

.rules-card {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 96px;
  bottom: 90px;
  border-radius: 30px;
  padding: 44px 52px 38px;
  background: var(--rules-card-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  color: var(--rules-text-color);
}

.rules-close-btn {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #333;
  background: transparent;
}

.rules-title {
  margin: 0 70px 16px 0;
  color: var(--rules-title-color);
  font-size: 52px;
  line-height: 1.1;
}

.rules-content {
  max-height: calc(100% - 92px);
  overflow-y: auto;
  padding-right: 14px;
  white-space: pre-wrap;
  color: var(--rules-text-color);
  font-size: 30px;
  line-height: 1.35;
}

@media (max-width: 1400px) {
  .top-right-title {
    font-size: 42px;
  }

  .qa-title {
    font-size: 40px;
  }

  .qa-body {
    font-size: 32px;
  }

  .answer-btn {
    font-size: 32px;
    height: 74px;
  }

  .winner-title {
    font-size: 52px;
  }

  .winner-message {
    font-size: 38px;
  }

  .winner-image {
    width: 280px;
  }

  .home-link-btn {
    left: 24px;
    bottom: 36px;
    font-size: 18px;
  }

  .home-link-btn img {
    width: 42px;
    height: 42px;
  }

  .rules-title {
    font-size: 42px;
  }

  .rules-content {
    font-size: 24px;
  }
}

