/* ==============================================================================
   ROLETA DE SORTEIO DAS UFs BRASILEIRAS — ÁREA DE TESTE
   Identidade: RIEH / NEES / UFAL / UFG / MEC
   Design System: Glassmorphism Moderno, Fluidez e Movimentação
   ============================================================================== */

:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Cores Institucionais */
  --ufal-blue: #00427A;
  --ufal-navy: #002244;
  --rieh-blue: #0B3B60;
  --rieh-teal: #00A896;
  --rieh-green: #2E933C;
  --rieh-orange: #F58220;
  --rieh-yellow: #FFB81C;
  --ufg-blue: #005A9C;

  /* Temas de Regiões Brasileiras */
  --color-norte: #10B981;      /* Esmeralda Amazônica */
  --color-nordeste: #F97316;   /* Laranja Solar */
  --color-centro-oeste: #EAB308; /* Dourado Cerrado */
  --color-sudeste: #3B82F6;    /* Azul Atlântico */
  --color-sul: #8B5CF6;        /* Violeta Pampa */

  /* Glassmorphism & Superfícies */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-bg-subtle: rgba(255, 255, 255, 0.65);
  --glass-bg-card: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-border-subtle: rgba(220, 230, 240, 0.8);
  --glass-shadow: 0 16px 40px -8px rgba(0, 34, 68, 0.08), 0 4px 12px 0 rgba(0, 34, 68, 0.04);
  --glass-shadow-hover: 0 24px 50px -10px rgba(0, 66, 122, 0.18), 0 8px 20px 0 rgba(0, 66, 122, 0.08);

  --text-main: #0B2545;
  --text-muted: #536B82;
  --accent: #00A896;
  --accent-glow: rgba(0, 168, 150, 0.35);
  --gold: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.45);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #F0F5FA;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fundo com Malha de Gradiente Animada */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 15%, rgba(0, 66, 122, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(245, 130, 32, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(0, 168, 150, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(46, 147, 60, 0.10) 0%, transparent 40%),
    linear-gradient(135deg, #F0F4F8 0%, #E8EFF6 100%);
  animation: meshDrift 20s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.03) translate(-10px, 10px); }
  100% { transform: scale(1) translate(0, 0); }
}

/* Layout Principal */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==============================================================================
   CABEÇALHO INSTITUCIONAL & RÉGUA DE MARCAS (NORMAS UFAL / MEC / UFG)
   ============================================================================== */
.institutional-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border-subtle);
  box-shadow: 0 4px 20px -2px rgba(11, 37, 69, 0.05);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Régua de Assinaturas das Marcas */
.brand-ruler {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ruler-section {
  display: flex;
  align-items: center;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.logos-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ruler-divider {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent, rgba(0, 66, 122, 0.2), transparent);
}

/* Imagens das Marcas */
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.03));
}

.logo-img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 34, 68, 0.1));
}

.logo-ufal {
  height: 48px; /* Destaque prioritário como instituição promotora */
}

.logo-nees {
  height: 36px;
}

.logo-rieh {
  height: 38px;
}

.logo-ufg {
  height: 34px;
}

.logo-mec {
  height: 38px;
}

/* Ações Rápidas no Cabeçalho */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-bg-subtle);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-pill:hover {
  background: #FFFFFF;
  border-color: var(--ufal-blue);
  color: var(--ufal-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 66, 122, 0.12);
}

.btn-pill.active {
  background: var(--ufal-blue);
  color: #FFFFFF;
  border-color: var(--ufal-blue);
}

/* ==============================================================================
   ÁREA DO TÍTULO E APRESENTAÇÃO
   ============================================================================== */
.hero-title-section {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 66, 122, 0.1), rgba(0, 168, 150, 0.15));
  color: var(--ufal-blue);
  border: 1px solid rgba(0, 66, 122, 0.15);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ufal-navy) 0%, var(--ufal-blue) 40%, var(--rieh-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==============================================================================
   CONTEÚDO CENTRAL: ROLETA + PAINEL DE CONTROLES
   ============================================================================== */
.main-stage {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: center;
}

/* Contêiner da Roleta */
.wheel-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wheel-wrapper {
  position: relative;
  width: 580px;
  height: 580px;
  max-width: 85vw;
  max-height: 85vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anel Externo com Efeito Neon Pulsante */
.wheel-halo {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, rgba(0, 168, 150, 0.25) 85%, rgba(0, 66, 122, 0.3) 100%);
  filter: blur(14px);
  z-index: 1;
  pointer-events: none;
  animation: haloPulse 4s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.wheel-bezel {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF, #D0DEEB, #FFFFFF);
  box-shadow: 0 16px 36px rgba(0, 34, 68, 0.2), inset 0 2px 6px rgba(255, 255, 255, 0.9);
  z-index: 2;
}

/* Canvas da Roleta */
#wheelCanvas {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
  cursor: grab;
}

#wheelCanvas:active {
  cursor: grabbing;
}

/* Ponteiro / Marcador Superior (Ticker) */
.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 44px;
  height: 54px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 20%;
  transition: transform 0.05s ease-out;
}

.pointer-arrow {
  width: 100%;
  height: 100%;
}

/* Hub Central da Roleta (Cromado / Eixo de Alta Precisão) */
.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F1F5F9 35%, #CBD5E1 70%, #94A3B8 100%);
  border: 4px solid #FFFFFF;
  box-shadow: 
    0 10px 25px rgba(0, 34, 68, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.wheel-center-hub::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #00A896 0%, #00427A 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 34, 68, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.wheel-center-hub:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 
    0 14px 32px rgba(0, 168, 150, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.wheel-center-hub:active {
  transform: translate(-50%, -50%) scale(0.94);
}

/* ==============================================================================
   PAINEL LATERAL: CONTROLES, REGRAS & HISTÓRICO
   ============================================================================== */
.control-dock {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Card Glassmorphic */
.glass-card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--glass-shadow-hover);
}

/* Botão Master "GIRAR ROLETA" */
.btn-spin-master {
  width: 100%;
  padding: 1.2rem;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--ufal-blue) 0%, #0066B3 50%, var(--rieh-teal) 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px -4px rgba(0, 66, 122, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-spin-master::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-spin-master:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(0, 168, 150, 0.5);
}

.btn-spin-master:hover::before {
  left: 100%;
}

.btn-spin-master:active {
  transform: translateY(1px);
}

.btn-spin-master:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.5);
}

/* Opções de Configuração (Toggles) */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--glass-border-subtle);
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toggle-label {
  display: flex;
  flex-direction: column;
}

.toggle-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Switch estilizado */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--rieh-teal);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Estatísticas Rápidas */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.stat-box {
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ufal-blue);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Legenda das Regiões do Brasil */
.regions-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border-subtle);
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-main);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-norte { background-color: var(--color-norte); }
.dot-nordeste { background-color: var(--color-nordeste); }
.dot-centro-oeste { background-color: var(--color-centro-oeste); }
.dot-sudeste { background-color: var(--color-sudeste); }
.dot-sul { background-color: var(--color-sul); }

/* Card de Histórico */
.history-card {
  display: flex;
  flex-direction: column;
  max-height: 380px;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-reset-history {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #DC2626;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-reset-history:hover {
  background: rgba(220, 38, 38, 0.1);
}

.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.3rem;
}

.history-list::-webkit-scrollbar {
  width: 5px;
}
.history-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.history-pos {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 22px;
}

.history-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
}

.history-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.history-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.empty-history {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==============================================================================
   MODAL DE CELEBRAÇÃO / UNIDADE FEDERATIVA VENCEDORA (UF)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(11, 37, 69, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.winner-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 30px 60px -12px rgba(0, 34, 68, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.modal-overlay.open .winner-card {
  transform: scale(1) translateY(0);
}

.winner-confetti-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.15), rgba(255, 184, 28, 0.2));
  color: var(--rieh-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

/* Contorno Geográfico da UF Sorteada (Mapa) */
.winner-map-container {
  position: relative;
  width: 220px;
  height: 200px;
  margin: 0.5rem auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 28px rgba(0, 34, 68, 0.25));
  animation: mapPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mapPop {
  0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.08) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.winner-map-svg-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winner-map-svg-wrapper svg {
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: 200px;
  overflow: visible;
}

.winner-map-svg-wrapper svg path {
  vector-effect: non-scaling-stroke;
  stroke: #FFFFFF;
  stroke-width: 3px;
  transition: fill 0.3s ease;
}

.winner-map-uf-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  letter-spacing: 0.06em;
  z-index: 2;
  user-select: none;
}

.winner-state-name {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ufal-navy);
  line-height: 1.15;
}

.winner-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
  background: #F8FAFC;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #E2E8F0;
}

.detail-col {
  text-align: center;
}

.detail-prop {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.detail-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.winner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-primary-action {
  width: 100%;
  padding: 0.95rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--ufal-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 66, 122, 0.3);
}

.btn-primary-action:hover {
  background: #003366;
  transform: translateY(-1px);
}

.btn-secondary-action {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

/* Canvas Confetti */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1001;
  pointer-events: none;
}


/* ==============================================================================
   RESPONSIVIDADE (TABLET & MOBILE)
   ============================================================================== */
@media (max-width: 1080px) {
  .main-stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .wheel-wrapper {
    width: 500px;
    height: 500px;
  }

  .control-dock {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .brand-ruler {
    justify-content: center;
  }

  .wheel-wrapper {
    width: 340px;
    height: 340px;
  }

  .wheel-center-hub {
    width: 60px;
    height: 60px;
  }

  .wheel-center-hub::after {
    width: 24px;
    height: 24px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .logo-img { height: 32px; }
  .logo-ufal { height: 38px; }
}
