body {
  --bg-panel: rgba(7, 11, 21, 0.82);
  --bg-panel-strong: rgba(10, 14, 28, 0.94);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text-main: #f5f7ff;
  --text-soft: rgba(245, 247, 255, 0.72);
  --blue: #1292c7;
  --blue-soft: rgba(18, 146, 199, 0.3);
  --green: #24ff78;
  --green-soft: rgba(36, 255, 120, 0.34);
  --red: #ff6464;
  --red-soft: rgba(255, 100, 100, 0.32);
  --yellow: #d8cf45;
  --yellow-soft: rgba(216, 207, 69, 0.3);
  --gray: #9aa3b8;
  --gray-soft: rgba(154, 163, 184, 0.28);
  font-family: "Segoe UI", system-ui, sans-serif;
  padding: 213px 16px 112px;
  margin: 0;
  min-height: 100vh;
  background-color: #000;
  background-image: linear-gradient(180deg, rgba(4, 6, 12, 0.18), rgba(4, 6, 12, 0.85)), url("./assets/images/bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--text-main);
}

body, body * {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

#join,
#quiz {
  width: min(100%, 520px);
  margin: 0 auto;
}

#join {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-stage {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
}

.waiting-state,
.answer-state,
.score-reveal {
  width: 100%;
}

.waiting-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
}

.player-animation-wrapper {
  margin-top: 0;
}

.animation-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.animation-wrapper > span {
  background: #fdfdfd;
  height: 1.2rem;
  width: 1.2rem;
  margin: 0.45rem;
  transform: translateY(0);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.45);
  animation: bounce 600ms infinite alternate;
}

.animation-wrapper > span:nth-of-type(2) {
  animation-delay: 250ms;
}

.animation-wrapper > span:nth-of-type(3) {
  animation-delay: 350ms;
}

@keyframes bounce {
  to {
    transform: translateY(-0.8rem);
  }
}
.waiting-label {
  margin-top: 16px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.quiz-timer {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
}

.mc-timer-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e07a5f 0%, #1292c7 100%);
  box-shadow: 0 0 36px rgba(18, 146, 199, 0.35), 0 0 46px rgba(224, 122, 95, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mc-timer-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(15, 20, 30, 0.92);
}

.mc-timer-ring span {
  position: relative;
  z-index: 1;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
}

#roomCodeLabel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 10px;
}

#toggleClaimWrap {
  margin-top: 22px;
}

.btn-neon {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
}

.btn-neon > button {
  width: 100%;
  border-radius: 12px;
  background: rgba(3, 6, 15, 0.55);
  padding: 0.95rem 1rem;
  font-size: 1.08rem;
  font-weight: 700;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.btn-neon > button.active {
  border: 2px solid #eee;
  color: #eee;
}

.neon-green > button {
  color: #0a3;
  border: 2px solid #0a3;
  box-shadow: inset 0 0 15px 0 rgba(36, 255, 120, 0.5);
}

.neon-green > button.active {
  box-shadow: inset 0 0 20px 6px rgb(36, 255, 120);
  text-shadow: 0 0 10px rgb(36, 255, 120);
}

.neon-green.active {
  box-shadow: 0 0 20px 6px rgb(36, 255, 120);
}

.neon-red > button {
  color: #a33;
  border: 2px solid #a33;
  box-shadow: inset 0 0 15px 0 rgba(255, 100, 100, 0.5);
}

.neon-red > button.active {
  box-shadow: inset 0 0 20px 6px rgb(255, 100, 100);
  text-shadow: 0 0 10px rgb(255, 100, 100);
}

.neon-red.active {
  box-shadow: 0 0 20px 6px rgb(255, 100, 100);
}

.neon-blue > button {
  color: #07a;
  border: 2px solid #07a;
  box-shadow: inset 0 0 15px 0 rgba(36, 142, 255, 0.5);
}

.neon-blue > button.active {
  box-shadow: inset 0 0 20px 6px rgb(36, 142, 255);
  text-shadow: 0 0 10px rgb(36, 142, 255);
}

.neon-blue.active {
  box-shadow: 0 0 20px 6px rgb(36, 142, 255);
}

.neon-default > button {
  color: #9ca2b3;
  border: 2px solid rgba(131, 139, 156, 0.76);
  box-shadow: inset 0 0 15px 0 rgba(150, 150, 150, 0.32);
}

.neon-default > button.active {
  box-shadow: inset 0 0 20px 6px rgb(150, 150, 150);
  text-shadow: 0 0 10px rgb(150, 150, 150);
}

.neon-default.active {
  box-shadow: 0 0 20px 6px rgb(150, 150, 150);
}

.neon-yellow > button {
  color: #aa3;
  border: 2px solid #aa3;
  box-shadow: inset 0 0 15px 0 rgba(180, 180, 20, 0.5);
}

.neon-yellow > button.active {
  box-shadow: inset 0 0 20px 6px rgb(180, 180, 20);
  text-shadow: 0 0 10px rgb(180, 180, 20);
}

.neon-yellow.active {
  box-shadow: 0 0 20px 6px rgb(180, 180, 20);
}

@media (hover: hover) and (pointer: fine) {
  .btn-neon > button:hover {
    border: 2px solid #eee;
    color: #eee;
  }

  .neon-green > button:hover {
    box-shadow: inset 0 0 20px 6px rgb(36, 255, 120);
    text-shadow: 0 0 10px rgb(36, 255, 120);
  }

  .neon-green:hover {
    box-shadow: 0 0 20px 6px rgb(36, 255, 120);
  }

  .neon-red > button:hover {
    box-shadow: inset 0 0 20px 6px rgb(255, 100, 100);
    text-shadow: 0 0 10px rgb(255, 100, 100);
  }

  .neon-red:hover {
    box-shadow: 0 0 20px 6px rgb(255, 100, 100);
  }

  .neon-blue > button:hover {
    box-shadow: inset 0 0 20px 6px rgb(36, 142, 255);
    text-shadow: 0 0 10px rgb(36, 142, 255);
  }

  .neon-blue:hover {
    box-shadow: 0 0 20px 6px rgb(36, 142, 255);
  }

  .neon-default > button:hover {
    box-shadow: inset 0 0 20px 6px rgb(150, 150, 150);
    text-shadow: 0 0 10px rgb(150, 150, 150);
  }

  .neon-default:hover {
    box-shadow: 0 0 20px 6px rgb(150, 150, 150);
  }

  .neon-yellow > button:hover {
    box-shadow: inset 0 0 20px 6px rgb(180, 180, 20);
    text-shadow: 0 0 10px rgb(180, 180, 20);
  }

  .neon-yellow:hover {
    box-shadow: 0 0 20px 6px rgb(180, 180, 20);
  }
}

.cosmic-input {
  position: relative;
  width: 100%;
  margin: 8px auto;
}

.cosmic-field {
  width: 100%;
  padding: 16px 14px;
  border: 2px solid #3b3b5a;
  border-radius: 14px;
  background: rgba(5, 0, 24, 0.78);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.cosmic-label {
  position: absolute;
  top: 15px;
  left: 11px;
  color: #7a7a9a;
  padding: 0 6px;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: rgba(5, 0, 24, 0.9);
}

.cosmic-field:focus {
  border-color: #ff7cff;
  box-shadow: 0 6px 12px rgba(255, 124, 247, 0.3), 0 12px 24px rgba(255, 124, 247, 0.18), 0 18px 36px rgba(255, 124, 247, 0.1);
}

.cosmic-field:focus ~ .cosmic-label,
.cosmic-field:valid ~ .cosmic-label {
  transform: translateY(-20px);
  font-size: 12px;
  color: #fff;
  border-left: 1px solid #ff7cff;
  border-right: 1px solid #ff7cff;
}

.entity-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.entity-suggestions {
  margin-top: 10px;
  border: 1px solid rgba(255, 124, 247, 0.22);
  border-radius: 14px;
  max-height: 280px;
  overflow: auto;
  background: rgba(10, 14, 28, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.entity-suggestions.hidden {
  display: none;
}

.entity-suggestion {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  text-align: left;
  font-size: 1rem;
  line-height: 1.3;
  padding: 12px 14px;
  margin: 0;
  color: var(--text-main);
  cursor: pointer;
}

.entity-suggestion:last-child {
  border-bottom: 0;
}

.entity-suggestion-title {
  font-weight: 700;
}

.entity-suggestion small {
  display: block;
  margin-top: 2px;
  opacity: 0.72;
  font-size: 0.85rem;
}

.entity-suggestion:hover,
.entity-suggestion.is-selected {
  background: rgba(18, 146, 199, 0.18);
  box-shadow: inset 0 0 0 1px rgba(18, 146, 199, 0.35);
}

.entity-suggestion-empty {
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.answer-state {
  display: flex;
  flex-direction: column;
  min-height: 55vh;
  padding-top: 40px;
}

.answer-grid {
  display: grid;
  gap: 12px;
}

.mc-answer > button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 72px;
}

.mc-answer-button {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mc-answer-button:focus {
  outline: none;
}

.mc-answer-button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.mc-answer-letter {
  min-width: 1.6rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.mc-answer-text {
  flex: 1;
  line-height: 1.25;
}

.quiz-status {
  margin: 18px auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 460px;
}

.answer-card {
  margin-top: 14px;
}

.answer-card > button {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: left;
  cursor: default;
}

.answer-card-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.answer-card-value {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 800;
}

.score-reveal {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}

.score-reveal-rank,
.score-reveal-points {
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 0 26px rgba(18, 146, 199, 0.28), 0 0 34px rgba(224, 122, 95, 0.2);
}

.score-reveal-rank {
  font-size: clamp(3.6rem, 16vw, 6.4rem);
}

.score-reveal-points {
  font-size: clamp(2.2rem, 12vw, 4rem);
  color: rgba(255, 255, 255, 0.86);
}

.team-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px 22px;
  background: linear-gradient(180deg, rgba(6, 8, 16, 0), rgba(6, 8, 16, 0.92) 30%);
  backdrop-filter: blur(10px);
}

.team-footer-name {
  max-width: min(70vw, 340px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-footer-help {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(18, 146, 199, 0.18);
}

.team-footer-help:hover {
  background: rgba(18, 146, 199, 0.2);
}

.qr-modal,
.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.qr-card,
.settings-card {
  width: min(520px, 100%);
  background: var(--bg-panel-strong);
  color: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

#qrReader {
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-row:first-of-type {
  border-top: 0;
}

.settings-label {
  color: var(--text-soft);
}

.settings-close-btn {
  margin: 0;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.settings-reset-wrap {
  margin-top: 20px;
}

input.code {
  color: #fff;
  display: block;
  border: none;
  margin: 0 auto;
  padding: 0;
  width: 6ch;
  background: repeating-linear-gradient(90deg, #fff 0, #fff 1ch, transparent 0, transparent 1.5ch) 0 100%/5.5ch 2px no-repeat;
  font: 700 5rem "Courier New", monospace;
  letter-spacing: 0.5ch;
  text-transform: uppercase;
}

input.code:focus {
  outline: none;
  color: #e07a5f;
}

#team-takeover-container {
  color: #fff;
  margin-top: 26px;
  overflow: hidden;
  transform-origin: top;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease, margin-top 0.35s ease;
}

#team-takeover-container.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  margin-top: 0;
  pointer-events: none;
}

#team-takeover-container.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  body {
    padding-top: 213px;
  }
  .mc-timer-ring {
    width: 96px;
    height: 96px;
  }
  .mc-timer-ring span {
    font-size: 2rem;
  }
  .quiz-stage {
    min-height: calc(100vh - 146px);
  }
  .score-reveal {
    min-height: 52vh;
  }
}/*# sourceMappingURL=style.css.map */
