/* ── FONTS ── */
@font-face {
  font-family: 'Brandon';
  src: url('../BrandonGrotesque-Black.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Coors Light palette */
  --navy: #a4def8;
  /* cold deep Coors blue (main bg) */
  --navy2: #07203f;
  /* darker blue */
  --gold: #e4002b;
  /* Coors red (primary accent / buttons) */
  --gold2: #b80022;
  /* Coors red active/hover */
  --blue: #0096d6;
  /* Coors mountain blue (highlights) */
  --silver: #d2d8e0;
  /* silver */
  --white: #ffffff;
  --font: 'Brandon', 'Arial Black', sans-serif;
}

html,
body {
  height: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREENS ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  padding: 24px 20px;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ── LOGO ── */
.logo {
  width: min(260px, 70vw);
  display: block;
  margin: 0 auto 32px;
}

.logo-sm {
  width: min(180px, 50vw);
  margin-bottom: 20px;
}

/* ── GOLD BUTTON ── */
.btn-gold {
  background: var(--gold);
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(18px, 5vw, 26px);
  font-weight: bold;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  width: 100%;
  max-width: 440px;
  cursor: pointer;
  text-transform: uppercase;
  line-height: 1.2;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold:active {
  background: var(--gold2);
  transform: scale(0.97);
}

/* ── LOGIN ── */
.login-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.field-group {
  width: 100%;
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: clamp(13px, 3.5vw, 16px);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--blue);
}

.field-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: clamp(15px, 4vw, 18px);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.field-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field-group input:focus {
  border-color: var(--gold);
}

#form-login .btn-gold {
  margin-top: 8px;
}

/* ── MAIN ── */
.btn-logout {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

.btn-logout:active {
  background: rgba(255, 255, 255, 0.22);
}

.main-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.supervisor-info {
  font-size: clamp(12px, 3.2vw, 15px);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.btn-nueva {
  font-size: clamp(26px, 7vw, 38px);
  padding: 28px 40px;
  border-radius: 16px;
  max-width: 360px;
}

/* ── QUESTION ── */
.question-wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question-text {
  font-size: clamp(20px, 5.5vw, 28px);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 28px;
  padding: 0 8px;
}

.options-timer {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
}

.options-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.opt-btn {
  background: #0a6fb5;
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: bold;
  border: none;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.opt-btn:active {
  background: #0858a0;
  transform: scale(0.97);
}

.opt-btn.correct {
  background: #2a9d5c;
}

.opt-btn.wrong {
  background: #c0392b;
}

.opt-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* ── TIMER ── */
.timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.timer-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.timer-circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.timer-svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 6;
}

.timer-ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  /* 2π×34 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.timer-ring.urgent {
  stroke: #e74c3c;
}

.timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 30px;
  font-weight: bold;
  color: var(--white);
}

/* ── CUSTOMER FORM ── */
.form-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cans-img {
  width: min(220px, 60vw);
  margin-top: 20px;
  animation: floatIn 0.6s ease;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── WIN ── */
.result-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 440px;
  gap: 16px;
}

.win-nombre {
  font-size: clamp(22px, 6vw, 30px);
  color: var(--blue);
  animation: popIn 0.4s ease;
}

.win-premio {
  font-size: clamp(36px, 10vw, 56px);
  line-height: 1.1;
  animation: popIn 0.5s ease 0.1s both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-back {
  max-width: 280px;
  margin-top: 8px;
}

/* ── GRACIAS ── */
.gracias-wrap {
  justify-content: center;
}

.gracias-text {
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.25;
  text-align: center;
  animation: popIn 0.5s ease;
}

/* ── LOSE VIDEO ── */
.screen-lose-video {
  padding: 0 !important;
  overflow: hidden !important;
  background: #000;
  justify-content: flex-start !important;
}

.lose-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.lose-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 0 28px 56px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0.15) 75%, transparent 100%);
  box-sizing: border-box;
}

.lose-text {
  font-family: var(--font);
  font-size: clamp(22px, 6.5vw, 36px);
  line-height: 1.3;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  white-space: pre-line;
  animation: popIn 0.5s ease 0.2s both;
  margin-bottom: 12px;
}

.lose-respuesta {
  font-family: var(--font);
  font-size: clamp(14px, 4vw, 18px);
  color: var(--blue);
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  animation: popIn 0.5s ease 0.4s both;
  margin-bottom: 24px;
  line-height: 1.3;
}

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 30px;
  z-index: 999;
  transition: transform 0.3s ease;
  pointer-events: none;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── AUTOCOMPLETE ── */
.autocomplete-wrap {
  position: relative;
  width: 100%;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0c3370;
  border: 2px solid var(--blue);
  border-radius: 10px;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.autocomplete-list.open {
  display: block;
}

.autocomplete-list li {
  padding: 13px 16px;
  font-family: var(--font);
  font-size: clamp(14px, 3.8vw, 17px);
  color: var(--white);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.12s;
}

.autocomplete-list li:last-child {
  border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.highlighted {
  background: var(--gold);
}

.autocomplete-list li mark {
  background: transparent;
  color: var(--blue);
  font-weight: bold;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}