:root {
  color-scheme: dark;
  --bg: #003b2a;
  --panel: rgba(0, 64, 45, 0.86);
  --panel-strong: rgba(0, 46, 33, 0.96);
  --text: #f8fafc;
  --muted: #d8f4df;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #2454bd;
  --green: #009b63;
  --orange: #ff5a1f;
  --yellow: #ffcc24;
  --dark-green: #003927;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 88%, rgba(0, 43, 31, 0.98) 0 12rem, transparent 12.1rem),
    radial-gradient(circle at 72% 76%, rgba(0, 55, 38, 0.92) 0 18rem, transparent 18.1rem),
    radial-gradient(circle at 50% 0%, rgba(0, 158, 99, 0.28), transparent 28rem),
    linear-gradient(135deg, #002f22 0%, #004d35 48%, #003322 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: linear-gradient(transparent 50%, rgba(255,255,255,.04) 50%);
  background-size: 100% 4px;
}

.site-shell,
.admin-shell,
.admin-auth {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.site-shell {
  display: grid;
  min-height: 100vh;
  align-items: center;
  gap: 18px;
}

.site-shell[data-page="game"],
.site-shell[data-page="wheel-preview"] {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: block;
}

.site-shell[data-page="wheel-preview"] {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.hero-card,
.quiz-panel,
.wheel-panel,
.result-panel,
.admin-card,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
  border-radius: 30px;
}

.hero-card {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 3vh, 28px) 18px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 118%, rgba(0, 38, 26, 0.72) 0 24rem, transparent 24.2rem),
    radial-gradient(circle at 20% 118%, rgba(0, 45, 31, 0.9) 0 18rem, transparent 18.2rem),
    radial-gradient(circle at 80% 118%, rgba(0, 45, 31, 0.9) 0 18rem, transparent 18.2rem),
    linear-gradient(180deg, rgba(0, 73, 50, 0.96), rgba(0, 50, 35, 0.98));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-card h1 {
  max-width: 820px;
  margin: 6px auto 0;
  color: #ffffff;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 7px 0 #143e91,
    0 12px 0 #0b2a66,
    0 18px 28px rgba(0, 0, 0, 0.38);
  -webkit-text-stroke: clamp(1px, .35vw, 4px) #2b61c9;
}

.hero-card h1 span {
  display: block;
  font-size: .62em;
  letter-spacing: -0.04em;
}

.hero-card p,
.wheel-panel p,
.result-panel p,
.auth-card p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  margin-inline: auto;
  text-align: center;
}

.hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  animation: float 8s ease-in-out infinite alternate;
}

.hero-glow-one {
  right: -2%;
  top: -4%;
  background: var(--yellow);
  box-shadow: 0 0 0 34px #07944f;
}

.hero-glow-two {
  left: 8%;
  bottom: 8%;
  background: rgba(0, 123, 76, 0.7);
  animation-delay: -2s;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 18px, 0) scale(1.08); }
}

.top-corner-art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(42vw, 520px);
  pointer-events: none;
  user-select: none;
}

.floating-cup {
  position: absolute;
  z-index: 1;
  width: min(25vw, 270px);
  max-width: 32vh;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.26));
  animation: cupFloat 5.8s ease-in-out infinite alternate;
}

.floating-cup-left {
  left: clamp(10px, 4vw, 70px);
  bottom: clamp(70px, 10vh, 130px);
  transform: rotate(-7deg);
}

.floating-cup-right {
  right: clamp(10px, 4vw, 70px);
  top: clamp(74px, 12vh, 130px);
  transform: rotate(6deg);
  animation-delay: -2s;
}

/* Camisa ocupa o lugar do copo direito — herda .floating-cup e .floating-cup-right */
.floating-camisa {
  position: absolute;
  right: clamp(10px, 4vw, 70px);
  top: clamp(74px, 12vh, 130px);
  z-index: 1;
  width: min(14vw, 150px);
  max-width: 20vh;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.26));
  animation-delay: -1.6s;
  transform: rotate(6deg);
}

@keyframes cupFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -18px;
  }
}

.badge,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 90, 31, 0.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.campaign-banner {
  display: block;
  width: min(620px, 94vw);
  max-height: 54dvh;
  object-fit: contain;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, 0.26));
}

.side-ribbon {
  position: absolute;
  left: 0;
  top: 22px;
  z-index: 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-radius: 0 12px 12px 0;
  background: var(--orange);
  color: #fff;
  padding: 10px 6px;
  font-size: .78rem;
  font-weight: 900;
}

.corner-flag {
  position: absolute;
  top: 0;
  left: 44%;
  z-index: 1;
  width: 74px;
  height: 54px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #009b63, #10b981);
  color: var(--yellow);
  font-size: .9rem;
  font-weight: 1000;
  letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.corner-flag::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 24px;
  border-radius: 50%;
  background: #ffcc24;
  transform: rotate(-18deg);
}

.corner-flag::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1746b4;
}

.brand-ball {
  position: absolute;
  top: 58px;
  right: 42px;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 7px solid #fff;
  border-left-color: transparent;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-16deg);
}

.fans-illustration {
  position: relative;
  width: min(380px, 68vw);
  height: 154px;
  margin-bottom: -10px;
}

.fan {
  position: absolute;
  bottom: 0;
  width: 110px;
  height: 138px;
}

.fan-left {
  left: 62px;
  transform: rotate(-8deg);
}

.fan-right {
  right: 62px;
  transform: rotate(7deg);
}

.fan .head {
  position: absolute;
  left: 35px;
  top: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f59b48;
  box-shadow: 0 -8px 0 #213a2b inset;
}

.fan .body {
  position: absolute;
  left: 20px;
  top: 46px;
  width: 74px;
  height: 78px;
  border-radius: 34px 34px 12px 12px;
  background: #ffbe2e;
  box-shadow: inset 0 -18px 0 rgba(255, 90, 31, 0.18);
}

.fan .body::after {
  content: "BR";
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  color: #08914f;
  font-size: .8rem;
  font-weight: 1000;
}

.fan .arm {
  position: absolute;
  left: 2px;
  top: 42px;
  width: 70px;
  height: 15px;
  border-radius: 999px;
  background: #f59b48;
  transform: rotate(-46deg);
}

.flag-mini {
  position: absolute;
  left: -20px;
  top: -2px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 48px;
  border-radius: 50%;
  border: 8px solid rgba(0, 155, 99, 0.82);
  background: #ffcc24;
  color: #1746b4;
  font-weight: 1000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.foam {
  position: absolute;
  right: -6px;
  top: 2px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 70px;
  border-radius: 28px 28px 10px 10px;
  background: #00ae65;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 1000;
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.16);
}

.participate-title {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 4px 0 var(--orange),
    0 8px 0 #9f2714,
    0 14px 20px rgba(0, 0, 0, 0.28);
  -webkit-text-stroke: 1px var(--orange);
}

.campaign-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 14px;
  width: min(820px, 100%);
  margin: 22px auto 4px;
}

.campaign-steps article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #fff;
  text-align: center;
}

.campaign-steps b {
  position: absolute;
  left: 14px;
  top: -3px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  font-size: .75rem;
}

.step-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 5px solid var(--orange);
  border-right-color: #fff;
  border-radius: 50%;
  background: #2d2fa1;
  color: #fff;
  box-shadow: 0 7px 0 #16266e, 0 16px 28px rgba(0, 0, 0, 0.22);
  font-size: 1.55rem;
  font-weight: 1000;
}

.campaign-steps article:nth-child(1) .step-icon,
.campaign-steps article:nth-child(3) .step-icon {
  background: var(--orange);
}

.campaign-steps small {
  max-width: 118px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.wheel-mini {
  background: conic-gradient(#ffe033 0 45deg, #0bb36b 45deg 90deg, #2361c9 90deg 135deg, #fff 135deg 180deg, #ff5a1f 180deg 225deg, #0bb36b 225deg 270deg, #ffe033 270deg 315deg, #2361c9 315deg 360deg);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-actions .primary-btn {
  min-width: min(340px, 100%);
}

.primary-btn,
.ghost-btn,
.answer-btn {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
}

.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff7a2f, var(--orange));
  box-shadow: 0 8px 0 #9f2714, 0 20px 40px rgba(255, 90, 31, 0.28);
}

.primary-btn.small {
  min-height: 42px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(0, 34, 24, 0.48);
}

.primary-btn:hover,
.ghost-btn:hover,
.answer-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:disabled,
.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.premium-loader {
  display: none;
  gap: 7px;
  margin-top: 18px;
}

.premium-loader.active {
  display: flex;
}

.premium-loader span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
  animation: pulse 0.8s ease-in-out infinite alternate;
}

.premium-loader span:nth-child(2) { animation-delay: .15s; }
.premium-loader span:nth-child(3) { animation-delay: .3s; }

@keyframes pulse {
  to { transform: translateY(-8px); opacity: .45; }
}

.color-dot {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 20px currentColor;
}

.quiz-panel,
.wheel-panel,
.result-panel {
  padding: clamp(24px, 5vw, 44px);
}

.quiz-panel {
  width: min(860px, calc(100% - 28px));
  min-height: min(680px, calc(100dvh - 32px));
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 204, 36, 0.18), transparent 18rem),
    radial-gradient(circle at 90% 100%, rgba(255, 90, 31, 0.2), transparent 16rem),
    linear-gradient(180deg, rgba(0, 78, 53, 0.98), rgba(0, 45, 32, 0.98));
  box-shadow: 0 24px 0 rgba(0, 35, 24, 0.7), 0 42px 80px rgba(0, 0, 0, 0.34);
}

.quiz-panel::before {
  content: "Quiz da Copa";
  align-self: center;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 6px 0 #9f2714;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 28, 20, 0.54);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width .35s ease;
}

.quiz-meta,
.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-meta {
  margin: 16px 0 26px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.quiz-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(0, 36, 25, 0.5);
  padding: 0 13px;
  font-size: .78rem;
}

.quiz-panel h2,
.wheel-panel h2,
.result-panel h2,
.section-heading h1,
.auth-card h1 {
  margin: 10px 0 18px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.quiz-panel h2 {
  max-width: 760px;
  margin: 0 auto 26px;
  color: #fff;
  font-size: clamp(1.9rem, 4.6vw, 3.35rem);
  line-height: .98;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 5px 0 #143e91, 0 10px 24px rgba(0, 0, 0, 0.32);
  -webkit-text-stroke: 1px #2b61c9;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.answer-btn {
  width: 100%;
  min-height: 76px;
  padding: 18px 20px;
  color: var(--text);
  text-align: center;
  border: 3px solid var(--orange);
  border-right-color: #fff;
  border-bottom-color: #fff;
  background: #25339d;
  box-shadow: 0 8px 0 #122060, 0 18px 28px rgba(0, 0, 0, 0.22);
  font-size: 1.02rem;
  font-weight: 1000;
  line-height: 1.15;
  text-transform: uppercase;
}

.answer-btn.selected {
  border-color: var(--yellow);
  background: var(--orange);
  box-shadow: 0 8px 0 #9f2714, 0 18px 28px rgba(0, 0, 0, 0.22);
}

.feedback,
.result-message {
  min-height: 28px;
  color: #fff4b8;
  font-weight: 800;
  text-align: center;
}

.wheel-panel {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(12px, 2vh, 18px) 16px;
  display: grid;
  grid-template-rows: min-content minmax(0, 1fr) min-content min-content;
  gap: 10px;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 118%, rgba(0, 38, 26, 0.72) 0 24rem, transparent 24.2rem),
    radial-gradient(circle at 20% 118%, rgba(0, 45, 31, 0.9) 0 18rem, transparent 18.2rem),
    radial-gradient(circle at 80% 118%, rgba(0, 45, 31, 0.9) 0 18rem, transparent 18.2rem),
    linear-gradient(180deg, rgba(0, 73, 50, 0.96), rgba(0, 50, 35, 0.98));
  box-shadow: none;
  backdrop-filter: none;
}

.wheel-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
}


.wheel-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  line-height: .92;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #143e91, 0 10px 22px rgba(0, 0, 0, 0.28);
  -webkit-text-stroke: .5px #2b61c9;
}

.wheel-panel p {
  max-width: 460px;
  margin: 0;
  color: #dff9e7;
  font-size: .9rem;
  line-height: 1.35;
}

.wheel-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
}

.wheel-stage::before,
.wheel-stage::after {
  display: none;
}

@keyframes wheelHalo {
  to {
    rotate: 360deg;
  }
}

/* ── Roleta SVG ────────────────────────────────── */
.wheel-wrap {
  position: relative;
  width: min(480px, 82vw, 62dvh);
  aspect-ratio: 1;
}

.wheel {
  position: absolute;
  inset: 0;
  overflow: visible;
  background: transparent;
}

.wheel span, .wheel span em, .wheel::after { display: none; }

.wheel-pointer {
  position: absolute;
  top: -32px;
  left: 50%;
  z-index: 10;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 44px solid #D4AF37;
  clip-path: none;
  background: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.28));
}

.wheel-pointer::before {
  content: "";
  position: absolute;
  top: -52px;
  left: -14px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 40px solid #F9D96D;
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -30px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #D4AF37;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.wheel-panel .primary-btn {
  min-width: min(320px, 100%);
  min-height: 44px;
}

.wheel-panel .result-message {
  min-height: 24px;
  border-radius: 999px;
  color: #fff4b8;
  font-size: .95rem;
  text-transform: uppercase;
}

.confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px max(16px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.admin-topbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.admin-topbar form {
  margin: 0;
}

.admin-topbar button {
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.auth-card,
.admin-card {
  width: 100%;
  padding: 26px;
}

.auth-card {
  max-width: 460px;
}

label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  padding: 0 13px;
}

.auth-card,
.prize-form {
  display: grid;
  gap: 16px;
}

.alert {
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(127, 29, 29, .4);
  color: #fecaca;
  border-radius: 14px;
  padding: 12px;
}

.section-heading {
  margin: 10px 0 22px;
}

.stats-grid,
.dashboard-grid,
.form-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  padding: 18px;
}

.stats-grid span,
.log-list span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
}

.stats-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.8rem;
}

.dashboard-grid {
  grid-template-columns: 1.15fr .85fr;
  margin-top: 16px;
}

.mini-chart {
  display: flex;
  align-items: end;
  min-height: 220px;
  gap: 12px;
}

.mini-chart div {
  flex: 1;
  display: grid;
  gap: 8px;
  align-items: end;
  height: 190px;
}

.mini-chart span {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.mini-chart small {
  color: var(--muted);
  text-align: center;
}

.log-list {
  display: grid;
  gap: 12px;
}

.log-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.actions a,
.actions button {
  color: #93c5fd;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 900px) {
  .stats-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-steps {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    width: min(520px, 100%);
  }

  .fans-illustration {
    height: 132px;
    transform: scale(.92);
    transform-origin: bottom center;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .admin-shell,
  .admin-auth {
    width: min(100% - 20px, 1120px);
    padding: 18px 0;
  }

  .site-shell[data-page="game"],
  .site-shell[data-page="wheel-preview"] {
    width: 100%;
    padding: 0;
  }

  .hero-card {
    min-height: 100dvh;
    border-radius: 0;
    padding: 10px 12px;
  }

  .top-corner-art {
    width: 260px;
    right: -82px;
    top: -20px;
    opacity: .9;
  }

  .floating-cup {
    width: 110px;
    opacity: .78;
  }

  .floating-cup-left {
    left: -34px;
    bottom: 118px;
  }

  .floating-cup-right {
    right: -36px;
    top: 58px;
  }

  .floating-camisa {
    right: -18px;
    top: 58px;
    width: 118px;
    max-width: 28vw;
  }


  .quiz-panel {
    width: calc(100% - 18px);
    min-height: calc(100dvh - 18px);
    margin: 9px auto;
    padding: 18px 14px;
    border-radius: 24px;
    box-shadow: 0 12px 0 rgba(0, 35, 24, 0.7), 0 28px 54px rgba(0, 0, 0, 0.28);
  }

  .quiz-panel::before {
    margin-bottom: 12px;
    padding: 7px 13px;
    font-size: .68rem;
  }

  .quiz-meta {
    margin: 12px 0 18px;
    gap: 8px;
  }

  .quiz-meta span {
    min-height: 30px;
    padding: 0 10px;
    font-size: .66rem;
  }

  .quiz-panel h2 {
    margin-bottom: 18px;
    font-size: clamp(1.55rem, 8vw, 2.45rem);
  }

  .answers-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .answer-btn {
    min-height: 58px;
    padding: 13px 14px;
    border-width: 2px;
    border-radius: 14px;
    box-shadow: 0 5px 0 #122060, 0 12px 20px rgba(0, 0, 0, 0.18);
    font-size: .86rem;
  }

  .wheel-panel {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 8px 10px;
    border-radius: 0;
    gap: 7px;
    box-shadow: none;
  }

  .wheel-panel h2 {
    margin: 6px 0 2px;
    font-size: clamp(1.55rem, 8vw, 2.45rem);
  }

  .wheel-panel p {
    max-width: 300px;
    font-size: .7rem;
    line-height: 1.15;
  }

  .wheel-panel .primary-btn {
    min-height: 38px;
  }

  .wheel-panel .result-message {
    min-height: 20px;
    font-size: .68rem;
  }

  .wheel-panel .eyebrow {
    padding: 6px 10px;
    font-size: .62rem;
  }

  .hero-card h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
    text-shadow:
      0 5px 0 #143e91,
      0 9px 0 #0b2a66,
      0 15px 24px rgba(0, 0, 0, 0.34);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    width: 100%;
  }

  .fans-illustration {
    width: 310px;
    max-width: 88vw;
    height: 112px;
    margin-bottom: -4px;
    transform: scale(.82);
  }

  .fan-left {
    left: 44px;
  }

  .fan-right {
    right: 44px;
  }

  .brand-ball {
    top: 24px;
    right: 18px;
    width: 54px;
    height: 54px;
    border-width: 5px;
    font-size: .58rem;
  }

  .corner-flag {
    left: 50%;
    width: 60px;
    height: 44px;
    transform: translateX(-50%);
  }

  .side-ribbon {
    top: 18px;
    font-size: .66rem;
  }

  .participate-title {
    margin-top: 10px;
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }

  .campaign-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .step-icon {
    width: 52px;
    height: 52px;
    border-width: 4px;
    font-size: 1.05rem;
  }

  .campaign-steps b {
    left: 8px;
    width: 18px;
    height: 18px;
    font-size: .65rem;
  }

  .campaign-steps small {
    font-size: .54rem;
  }

  .campaign-banner {
    max-height: 44dvh;
  }

  .hero-card p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.25;
  }

  .hero-actions {
    margin-top: 8px;
  }

  .primary-btn {
    min-height: 46px;
  }

  .stats-grid,
  .dashboard-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Premium light wheel experience */
.site-shell[data-page="wheel-preview"] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 88%, rgba(0, 43, 31, 0.98) 0 12rem, transparent 12.1rem),
    radial-gradient(circle at 72% 76%, rgba(0, 55, 38, 0.92) 0 18rem, transparent 18.1rem),
    radial-gradient(circle at 50% 0%, rgba(0, 158, 99, 0.28), transparent 28rem),
    linear-gradient(135deg, #002f22 0%, #004d35 48%, #003322 100%);
}

/* Botões e mensagens da roleta */
.wheel-panel .primary-btn {
  min-width: min(360px, 100%);
  min-height: 56px;
  color: #0f2f27;
  background: linear-gradient(180deg, #F9D96D, #E5B93E);
  box-shadow: 0 12px 30px rgba(212, 175, 55, .28), inset 0 1px 0 rgba(255,255,255,.65);
}

.wheel-panel .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(212, 175, 55, .34), inset 0 1px 0 rgba(255,255,255,.75);
}

.wheel-panel .result-message {
  min-height: 22px;
  color: #dff9e7;
  font-size: .82rem;
  letter-spacing: .04em;
}

.result-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 35, 24, .48);
  backdrop-filter: blur(10px);
}

.result-modal-card {
  width: min(420px, 92vw);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 217, 109, .22), transparent 18rem),
    rgba(255, 255, 255, .94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
  text-align: center;
}

.result-modal-card .eyebrow {
  color: #0f513f;
  border-color: rgba(14, 159, 110, .22);
  background: rgba(14, 159, 110, .1);
  box-shadow: none;
}

.result-modal-card .result-message {
  min-height: 0;
  margin: 0;
  color: #102f27;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.wheel-panel .redeem-btn {
  display: none;
}

.wheel-panel .redeem-btn.is-visible {
  display: inline-flex;
  color: #ffffff;
  background: linear-gradient(180deg, #16B981, #0E9F6E);
  box-shadow: 0 16px 38px rgba(14, 159, 110, .28), inset 0 1px 0 rgba(255,255,255,.35);
}

@media (max-width: 640px) {
  .wheel-panel {
    padding: 14px;
    gap: 10px;
  }

  .wheel-panel::before {
    inset: 8px;
    border-radius: 24px;
  }

  .wheel-panel h2 {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }

  .wheel-panel p {
    max-width: 310px;
    font-size: .82rem;
  }

  .wheel-panel .primary-btn {
    min-height: 50px;
  }
}
