@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  --sky-top: #cdeefb;
  --sky-bottom: #f4fbfd;
  --ink: #233b52;
  --ink-soft: #5c7488;
  --primary: #f5a94f;
  --primary-dark: #f0973f;
  --accent: #ffd166;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.9);
  --radius-lg: 28px;
  --radius-md: 18px;
  --outline: #10344f;
  --title-green: #2f8fd1;
  --heading-green: #2f8fd1;
  --bar-bg: rgba(232, 244, 250, 0.82);
  --bar-border: rgba(47, 143, 209, 0.45);
  --ai-blue-deep: #0f3460;
  --ai-blue: #1f6feb;
  --ai-blue-light: #38d9ff;
  --ai-gradient: linear-gradient(135deg, var(--ai-blue-deep) 0%, var(--ai-blue) 55%, var(--ai-blue-light) 100%);
  --stop-red: #e5484d;
  --skip-amber: #e8890c;
  --eliminate-yellow: #cca300;
  --roulette-orange: #f2994a;
  --roulette-rim: #241b3a;
  --body-font: 'Fredoka';
  font-family: var(--body-font), 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 65%, #eaf6fb 100%);
  overflow-x: hidden;
}

button {
  font-family: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  /* redeclarado para herdar --body-font */
  font-family: var(--body-font), 'Segoe UI', system-ui, sans-serif;
}

/* ---------- background ---------- */

.app-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

/* ---------- shared full-bleed game screen layout ---------- */

.farm-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.outline-text {
  color: var(--title-green);
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--outline);
  text-stroke: 2px var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--outline);
}

.kicker {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px var(--outline);
  text-stroke: 1.5px var(--outline);
  paint-order: stroke fill;
  color: var(--heading-green);
}

/* ---------- home button ---------- */

.btn-home {
  position: fixed;
  top: 3.5vh;
  right: 4vw;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--heading-green);
  border-radius: 10px;
  color: var(--heading-green);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
  animation: btn-tremor 7s ease-in-out infinite;
}

.btn-home:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(45, 74, 74, 0.28);
  transform: scale(1.12) rotate(-6deg);
}

.btn-home:active {
  transform: scale(0.88) rotate(0deg);
  transition-duration: 0.08s;
}

.btn-home svg {
  width: 24px;
  height: 24px;
}

.app-tagline {
  position: fixed;
  top: 3.5vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  max-width: 40vw;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.9;
  white-space: normal;
  text-align: center;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.85);
  text-stroke: 3px rgba(255, 255, 255, 0.85);
  paint-order: stroke fill;
}

/* ---------- barra de botões ---------- */

.bottom-bar-row {
  position: fixed;
  bottom: 4vh;
  left: 6vw;
  right: 6vw;
  z-index: 4;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5vh 2vw;
}

.bottom-bar-row-end {
  justify-content: flex-end;
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-width: 180px;
  background: var(--bar-bg);
  border: 2px solid var(--bar-border);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(45, 74, 74, 0.18);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  text-transform: uppercase;
  color: var(--heading-green);
  -webkit-text-stroke: 1px var(--outline);
  text-stroke: 1px var(--outline);
  paint-order: stroke fill;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  animation: btn-tremor 7s ease-in-out infinite;
}

.bottom-bar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

/* tremor varre da direita pra esquerda */
.bottom-bar-row > .bottom-bar:nth-last-child(1) {
  animation-delay: 0s;
}
.bottom-bar-row > .bottom-bar:nth-last-child(2) {
  animation-delay: 0.5s;
}
.bottom-bar-row > .bottom-bar:nth-last-child(3) {
  animation-delay: 1s;
}
.bottom-bar-row > .bottom-bar:nth-last-child(4) {
  animation-delay: 1.5s;
}

.bottom-bar:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(45, 74, 74, 0.24);
  transform: scale(1.08) rotate(-2deg);
}

.bottom-bar:not(:disabled):active {
  transform: scale(0.92) rotate(0deg);
  transition-duration: 0.08s;
}

/* ---------- start screen ---------- */

.farm-start {
  justify-content: center;
  gap: 4vh;
  padding: 4vh 4vw 14vh;
  text-align: center;
}

.start-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
  padding: 5vh 6vw;
}

.farm-start-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 900;
}

.event-image-wrap {
  position: relative;
  width: min(360px, 30vw);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-image-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 175%;
  height: 175%;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  animation: rays-spin 18s linear infinite;
}

.event-image {
  position: relative;
  z-index: 1;
  width: 100%;
}

@keyframes rays-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.event-slogan {
  margin: 0;
  max-width: min(640px, 70vw);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
}

.farm-start-cta {
  position: fixed;
  right: 12vw;
  top: 70%;
  transform: translateY(-50%);
}

.farm-start-cta:not(:disabled):hover {
  transform: translateY(-50%) scale(1.08) rotate(-2deg);
}

.farm-start-cta:not(:disabled):active {
  transform: translateY(-50%) scale(0.92) rotate(0deg);
}

/* ---------- sponsors bar (start screen footer) ---------- */

.sponsors-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2vw;
  flex-wrap: wrap;
  width: 100%;
  background: white;
  padding: 10px 3vw;
  box-shadow: 0 -4px 16px rgba(45, 74, 74, 0.1);
}

.sponsors-divider {
  align-self: stretch;
  width: 1px;
  background: rgba(45, 74, 74, 0.2);
}

.sponsors-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.sponsors-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}

.sponsors-group-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.sponsor-logo {
  height: 34px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

/* ---------- question / answer panel ---------- */

.slide-panel {
  position: absolute;
  top: 11vh;
  bottom: 13vh;
  left: 11vw;
  right: 11vw;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
  padding: 3vh 3vw;
  text-align: center;
  overflow-y: auto;
}

.theme-badge {
  position: absolute;
  top: 2vh;
  left: 2vw;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: white;
  cursor: default;
  box-shadow: 0 4px 10px rgba(45, 74, 74, 0.2);
}

.quiz-progress {
  position: absolute;
  top: 2vh;
  right: 2vw;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(45, 74, 74, 0.2);
  animation: counter-glow-green 7s ease-in-out infinite;
  animation-delay: 2s;
}

.wrong-progress {
  position: absolute;
  top: calc(2vh + 46px);
  right: 2vw;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--stop-red);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(45, 74, 74, 0.2);
  animation: counter-glow-red 7s ease-in-out infinite;
  animation-delay: 2.5s;
}

.skip-tokens {
  display: flex;
  gap: 5px;
}

.skip-token {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(45, 74, 74, 0.25);
}

.skip-token-on {
  background: var(--heading-green);
}

.quiz-end-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.quiz-end-score {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
}

.quiz-end-score strong {
  color: var(--heading-green);
}

.quiz-end-panel {
  border: none;
  top: 4vh;
  justify-content: flex-start;
  padding-top: 4vh;
}

/* ---------- ranking top 10 ---------- */

.ranking-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(680px, 92%);
}

.ranking-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--heading-green);
  text-transform: uppercase;
}

.ranking-scroll {
  width: 100%;
  max-height: 52vh;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 74, 74, 0.15);
  background: rgba(255, 255, 255, 0.55);
}

.ranking-table {
  min-width: 460px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.ranking-table th,
.ranking-table td {
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
  text-align: left;
}

.ranking-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.ranking-table tbody tr:nth-child(even) {
  background: rgba(45, 74, 74, 0.06);
}

.ranking-table tbody tr.ranking-row-new {
  background: rgba(47, 143, 209, 0.3);
  font-weight: 700;
}

.ranking-empty {
  padding: 16px !important;
  color: var(--ink-soft);
  font-style: italic;
}

.ranking-name-overlay .local-login-card {
  max-width: 380px;
}

.product-icon {
  width: min(180px, 14vw);
  height: min(180px, 14vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(45, 74, 74, 0.2));
}

.question-text {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
  max-width: 44ch;
}

.answer-body {
  display: flex;
  align-items: center;
  gap: 5vw;
  flex-wrap: wrap;
  justify-content: center;
}

.answer-map {
  width: min(280px, 18vw);
  filter: drop-shadow(0 8px 16px rgba(45, 74, 74, 0.15));
}

.answer-details {
  text-align: left;
}

.answer-municipality {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 700;
}

.answer-value {
  margin: 6px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading-green);
  -webkit-text-stroke: 1px var(--outline);
  text-stroke: 1px var(--outline);
  paint-order: stroke fill;
}

/* ---------- alternatives grid (question screen) ---------- */

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 680px;
}

.alternative-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(47, 143, 209, 0.35);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
}

.alternative-btn:not(:disabled):hover {
  transform: scale(1.03);
  border-color: var(--heading-green);
  box-shadow: 0 8px 18px rgba(45, 74, 74, 0.18);
}

.alternative-btn:not(:disabled):active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.alternative-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--heading-green);
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.alternative-text {
  flex: 1;
}

.alternative-btn.is-eliminated {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: rgba(224, 76, 76, 0.25);
}

.alternative-btn.is-eliminated .alternative-letter {
  background: rgba(45, 74, 74, 0.3);
}

.ai-hint-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.15);
  color: var(--ai-blue-deep);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- botões de auxílio ---------- */

.bottom-bar-help {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.bottom-bar-stop {
  color: var(--stop-red);
  border-color: var(--stop-red);
}

.bottom-bar-skip-action {
  color: var(--skip-amber);
  border-color: var(--skip-amber);
}

.bottom-bar-skip-action .skip-token-on {
  background: var(--skip-amber);
}

.bottom-bar-eliminate {
  color: var(--eliminate-yellow);
  border-color: var(--eliminate-yellow);
}

.bottom-bar-eliminate .skip-token-on {
  background: var(--eliminate-yellow);
}

.bottom-bar-ai {
  color: var(--ai-blue);
  border-color: var(--ai-blue);
}

.bottom-bar-ai .skip-token-on {
  background: var(--ai-blue);
}

/* ---------- answer result (correct / wrong) ---------- */

.answer-result {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
}

.answer-result-correct {
  color: var(--heading-green);
}

.answer-result-wrong {
  color: #c23b3b;
}

.answer-your-pick {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- saída do pular pergunta ---------- */

.skip-exit {
  animation: skip-exit 0.45s cubic-bezier(0.55, 0, 0.85, 0.35) forwards;
  pointer-events: none;
}

@keyframes skip-exit {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-130%) rotate(-8deg) scale(0.85);
    opacity: 0;
  }
}

@keyframes shake-anim {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }
  40%,
  60% {
    transform: translateX(4px);
  }
}

.shake-anim {
  animation: shake-anim 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ---------- tremor dos botões (7s) ---------- */

@keyframes btn-tremor {
  0%,
  4%,
  100% {
    translate: 0 0;
  }
  0.8%,
  2.4% {
    translate: -2px 0;
  }
  1.6%,
  3.2% {
    translate: 2px 0;
  }
}

/* brilho dos contadores, após o tremor */

@keyframes counter-glow-green {
  0%,
  6%,
  100% {
    box-shadow: 0 4px 10px rgba(45, 74, 74, 0.2);
  }
  3% {
    box-shadow: 0 4px 10px rgba(45, 74, 74, 0.2), 0 0 16px 4px rgba(47, 143, 209, 0.6);
  }
}

@keyframes counter-glow-red {
  0%,
  6%,
  100% {
    box-shadow: 0 4px 10px rgba(45, 74, 74, 0.2);
  }
  3% {
    box-shadow: 0 4px 10px rgba(45, 74, 74, 0.2), 0 0 16px 4px rgba(229, 72, 77, 0.55);
  }
}

/* ---------- confetti (correct answer) ---------- */

.confetti-overlay {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.confetti-flash {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 24px;
  height: 24px;
  margin: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 209, 102, 0.55) 40%, rgba(255, 209, 102, 0) 75%);
  animation: confetti-flash 0.55s ease-out forwards;
}

@keyframes confetti-flash {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }
  100% {
    transform: scale(16);
    opacity: 0;
  }
}

.confetti-piece {
  position: absolute;
  left: 50%;
  top: 45%;
  border-radius: 2px;
  animation-name: confetti-burst;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1);
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.confetti-piece-circle {
  border-radius: 50%;
}

@keyframes confetti-burst {
  0% {
    transform: translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translate(var(--bx), var(--by)) scale(1.15) rotate(calc(var(--rot) * 0.4));
    opacity: 1;
  }
  100% {
    transform: translate(var(--fx), var(--fy)) scale(0.8) rotate(var(--rot));
    opacity: 0;
  }
}

/* ---------- nome do ranking ---------- */

.local-login-card {
  max-width: 340px;
  width: 100%;
  text-align: center;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(45, 74, 74, 0.35);
}

.local-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.local-login-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input {
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(45, 74, 74, 0.18);
  font-size: 0.95rem;
}

/* ---------- overlays de auxílio ---------- */

.help-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 74, 74, 0.55);
  border-radius: var(--radius-md);
}

.roulette-box,
.ai-hint-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 3vh 4vw;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ai-hint-box {
  box-shadow: 0 10px 30px rgba(31, 111, 235, 0.4), 0 0 0 2px rgba(31, 111, 235, 0.2) inset;
}

.help-overlay-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.roulette-caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.roulette-wheel-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-wheel {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    from -60deg,
    var(--roulette-orange) 0deg 120deg,
    var(--eliminate-yellow) 120deg 240deg,
    var(--heading-green) 240deg 360deg
  );
  border: 4px solid var(--roulette-rim);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.15);
  transition: transform 1.6s cubic-bezier(0.17, 0.67, 0.32, 1.02);
}

.roulette-wheel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--roulette-rim);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.roulette-wheel-number {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.roulette-wheel-number-1 {
  transform: rotate(0deg) translateY(-46px) rotate(0deg);
}

.roulette-wheel-number-2 {
  transform: rotate(120deg) translateY(-46px) rotate(-120deg);
}

.roulette-wheel-number-3 {
  transform: rotate(240deg) translateY(-46px) rotate(-240deg);
}

.roulette-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--stop-red);
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.ai-hint-scanner {
  position: relative;
  width: 140px;
  height: 100px;
  border: 2px solid rgba(31, 111, 235, 0.4);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 111, 235, 0.08) 0%, rgba(56, 217, 255, 0.08) 100%);
}

.ai-hint-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ai-blue-deep), var(--ai-blue), var(--ai-blue-light));
  box-shadow: 0 0 10px var(--ai-blue-light);
  animation: ai-hint-scan 1.1s ease-in-out infinite;
}

@keyframes ai-hint-scan {
  0% {
    top: 0;
  }
  50% {
    top: 97%;
  }
  100% {
    top: 0;
  }
}

.ai-hint-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ai-blue);
}

.ai-hint-corner-tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.ai-hint-corner-tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

.ai-hint-corner-bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

.ai-hint-corner-br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* ---------- generic buttons (ranking name modal) ---------- */

.btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: scale(1.06);
}

.btn:not(:disabled):active {
  transform: scale(0.94);
  transition-duration: 0.08s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(240, 124, 71, 0.4);
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 14px 28px rgba(240, 124, 71, 0.45);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  padding: 8px 16px;
  font-size: 0.9rem;
  border: 1px solid rgba(45, 74, 74, 0.12);
}

.btn-ghost:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 720px) {
  .app-tagline {
    display: none;
  }

  .farm-start-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .event-image-wrap {
    width: 55vw;
  }

  .event-slogan {
    max-width: 88vw;
    font-size: 1rem;
  }

  .slide-panel {
    top: 9vh;
    bottom: 15vh;
    left: 4vw;
    right: 4vw;
    gap: 2vh;
  }

  .theme-badge,
  .quiz-progress,
  .wrong-progress {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .wrong-progress {
    top: calc(2vh + 34px);
  }

  .bottom-bar-row {
    left: 3vw;
    right: 3vw;
    bottom: 2vh;
    gap: 1.5vw 2vw;
    flex-wrap: wrap;
  }

  .bottom-bar {
    min-width: 0;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .alternatives-grid {
    grid-template-columns: 1fr;
  }

  .answer-body {
    flex-direction: column;
    gap: 2vh;
  }

  .answer-details {
    text-align: center;
  }

  .sponsors-bar {
    justify-content: center;
  }
}
