/* Perguntados - Setembro Amarelo Custom Styles */
:root {
  --primary-yellow: #f59e0b;
  --primary-amber: #d97706;
  --light-yellow: #fef3c7;
  --bg-warm: #fffdf5;
  --card-bg: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --accent-gold: #fbbf24;
  --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-warm);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Yellow Ribbon Badge & Topbar */
.navbar-custom {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.ribbon-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  font-size: 1.6rem;
}

/* Glassmorphic & Warm Cards */
.card-game {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-game:hover {
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.12);
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Roulette Container & Pointer */
.roulette-wrapper {
  position: relative;
  display: inline-block;
  margin: 1rem auto;
  padding: 12px;
  background: radial-gradient(circle, #fffbeb 0%, #fef3c7 70%, #fde68a 100%);
  border-radius: 50%;
  box-shadow: 0 15px 35px rgba(217, 119, 6, 0.25), inset 0 2px 6px rgba(255, 255, 255, 0.8);
  border: 4px solid #f59e0b;
}

#rouletteCanvas {
  display: block;
  border-radius: 50%;
  cursor: pointer;
  max-width: 100%;
  height: auto;
}

.roulette-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 32px solid #b45309;
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
  transition: transform 0.05s ease;
}

.roulette-pointer.tick {
  transform: translateX(-50%) rotate(-12deg);
}

/* Emblem Badges Shelf */
.emblem-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 1rem;
  background: rgba(254, 243, 199, 0.4);
  border-radius: 1rem;
}

.emblem-slot {
  width: 104px;
  min-height: 98px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px dashed #d1d5db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.emblem-slot.unlocked {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.emblem-slot .emblem-icon {
  font-size: 2rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.emblem-slot.unlocked .emblem-icon {
  color: #f59e0b;
  animation: pulse-icon 2s infinite ease-in-out;
}

.emblem-slot .emblem-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.15;
  text-transform: none;
}

/* ==========================================================================
   MURAL: PORTA DE GELADEIRA DA EQUIPE (MELHORES MOMENTOS)
   ========================================================================== */

/* The Fridge Notepad (Left Column form) */
.fridge-notepad-card {
  background: #ffffff;
  border: 2px solid #fed7aa;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.12);
  position: relative;
}

/* Refrigerator Door Surface (Right Column) */
.fridge-door-container {
  background: radial-gradient(circle at 50% 15%, #ffffff 0%, #f1f5f9 45%, #e2e8f0 100%);
  border: 4px solid #cbd5e1;
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: inset 0 3px 12px rgba(255, 255, 255, 0.9), 0 15px 35px rgba(0, 0, 0, 0.08);
  position: relative;
  min-height: 650px;
}

/* Metallic Fridge Door Handle */
.fridge-handle {
  width: 14px;
  height: 50px;
  background: linear-gradient(to right, #94a3b8 0%, #f8fafc 50%, #94a3b8 100%);
  border-radius: 7px;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  display: inline-block;
  border: 1px solid #64748b;
}

/* Top Decorative Fridge Magnets Bar */
.fridge-decorative-bar {
  border-bottom: 2px dashed #cbd5e1;
}

.fridge-badge-magnet {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
  user-select: none;
}

.fridge-badge-magnet:hover {
  transform: translateY(-2px) scale(1.04);
}

.magnet-theme-yellow { background: #fef08a; color: #854d0e; border: 1px solid #fde047; }
.magnet-theme-blue { background: #bfdbfe; color: #1e40af; border: 1px solid #93c5fd; }
.magnet-theme-green { background: #bbf7d0; color: #166534; border: 1px solid #86efac; }
.magnet-theme-pink { background: #fbcfe8; color: #9d174d; border: 1px solid #f472b6; }

/* Grid of items on the fridge door */
.fridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px 22px;
  align-items: start;
}

/* Generic item container stuck on fridge */
.fridge-item {
  position: relative;
  transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 12px;
  cursor: default;
}

.fridge-item:hover {
  transform: translateY(-6px) scale(1.025) rotate(0deg) !important;
  z-index: 25 !important;
}

/* 3D Glossy Magnet Pins holding items on the fridge */
.fridge-magnet-pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.magnet-red { background: radial-gradient(circle at 35% 35%, #f87171, #dc2626); color: #ffffff; }
.magnet-yellow { background: radial-gradient(circle at 35% 35%, #fef08a, #eab308); color: #713f12; }
.magnet-blue { background: radial-gradient(circle at 35% 35%, #93c5fd, #2563eb); color: #ffffff; }
.magnet-green { background: radial-gradient(circle at 35% 35%, #86efac, #16a34a); color: #ffffff; }
.magnet-purple { background: radial-gradient(circle at 35% 35%, #d8b4fe, #9333ea); color: #ffffff; }
.magnet-orange { background: radial-gradient(circle at 35% 35%, #fed7aa, #ea580c); color: #ffffff; }

/* 1. POLAROID PHOTO ITEM */
.fridge-polaroid {
  background: #ffffff;
  padding: 14px 14px 18px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.polaroid-img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: block;
}

.polaroid-caption {
  padding-top: 12px;
}

.polaroid-msg {
  font-size: 0.96rem;
  line-height: 1.45;
  color: #1f2937;
  white-space: pre-line;
}

.polaroid-author {
  font-size: 0.85rem;
  color: #4b5563;
}

/* 2. POST-IT / STICKY NOTE ITEM */
.fridge-postit {
  padding: 22px 18px 18px 18px;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 2px 4px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  border-bottom-right-radius: 18px 6px;
}

.postit-yellow {
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 100%);
  border-top: 3px solid #fde047;
  color: #713f12;
}

.postit-pink {
  background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%);
  border-top: 3px solid #f472b6;
  color: #831843;
}

.postit-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
  border-top: 3px solid #86efac;
  color: #14532d;
}

.postit-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
  border-top: 3px solid #93c5fd;
  color: #1e3a8a;
}

.postit-msg {
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-line;
  font-weight: 500;
}

.postit-author {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* Fridge Reaction Buttons (Magnet Style) */
.btn-fridge-reaction {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.btn-fridge-reaction:hover {
  background: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-fridge-reaction.active-heart {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}

.btn-fridge-reaction.active-clap {
  background: #fef3c7 !important;
  border-color: #fcd34d !important;
  color: #d97706 !important;
}

.btn-fridge-reaction.active-coffee {
  background: #f5f3ff !important;
  border-color: #c4b5fd !important;
  color: #7c3aed !important;
}

/* Attached Mini Memo Pad for Comments */
.fridge-comments-box {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  margin-top: 10px;
}

.fridge-comment-item {
  background: rgba(243, 244, 246, 0.8);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Hearts Counter Display */
.heart-counter {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #f59e0b;
  border-radius: 50px;
  padding: 6px 16px;
  font-weight: 800;
  color: #b45309;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.heart-counter i {
  color: #eab308;
  filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.4));
  font-size: 1.5rem;
  margin-right: 6px;
}

/* Streak Progress Bar */
.streak-wrapper {
  background: #f3f4f6;
  border-radius: 20px;
  padding: 4px;
  border: 1px solid #e5e7eb;
}

.streak-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #9ca3af;
  transition: all 0.3s;
}

.streak-dot.active {
  background: #f59e0b;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* 16-Phase Map Styles */
.phases-map-container {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.phase-node {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  transition: all 0.25s ease;
}

.phase-node.unlocked {
  border-color: #f59e0b;
  background: linear-gradient(to right, #fffdf5, #ffffff);
}

.phase-node.current {
  border-color: #d97706;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
  transform: scale(1.02);
}

.phase-node.locked {
  opacity: 0.7;
  background: #f9fafb;
}

.phase-number-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.phase-node.unlocked .phase-number-badge {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.phase-node.current .phase-number-badge {
  background: #d97706;
  color: #ffffff;
  animation: pulse-ring 2s infinite;
}

.phase-node.locked .phase-number-badge {
  background: #e5e7eb;
  color: #9ca3af;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Question Modal Options */
.btn-option {
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  color: #1f2937;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0.75rem;
}

.btn-option:hover:not(:disabled) {
  border-color: #f59e0b;
  background: #fffbeb;
  transform: translateX(4px);
}

.btn-option .option-letter {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: 700;
  color: #4b5563;
  flex-shrink: 0;
}

.btn-option.correct {
  border-color: #10b981 !important;
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
}

.btn-option.correct .option-letter {
  background-color: #10b981;
  color: #fff;
}

.btn-option.incorrect {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  color: #991b1b !important;
}

.btn-option.incorrect .option-letter {
  background-color: #ef4444;
  color: #fff;
}

/* Support Help Card (CVV 188) */
.support-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
}

/* Custom Nav Tabs */
.nav-pills-game .nav-link {
  color: #4b5563;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  margin: 0 4px;
  transition: all 0.2s;
}

.nav-pills-game .nav-link.active {
  background-color: #f59e0b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Confetti & Fireworks container */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   TABULEIRO DA JORNADA: CAMINHO DE JOGO DE TABULEIRO (16 FASES - VERSÃO PREMIUM)
   ========================================================================== */

/* Top Journey HUD Card */
.board-hud-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 2px solid #fde68a !important;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.12);
}

.hud-icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
}

.hud-stat-badge {
  min-width: 90px;
  background: #ffffff;
  border: 1px solid #fde68a !important;
  transition: transform 0.2s ease;
}

.hud-stat-badge:hover {
  transform: translateY(-2px);
}

/* The Scenic Game Board Canvas Container */
.board-game-container {
  background: radial-gradient(circle at 50% 12%, #ffffff 0%, #fffdf0 25%, #fef9c3 60%, #fef08a 100%);
  border: 6px solid #f59e0b;
  border-radius: 36px;
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.22), 
              inset 0 2px 14px rgba(255, 255, 255, 0.9), 
              inset 0 -6px 16px rgba(180, 83, 9, 0.12);
  position: relative;
  overflow: hidden;
}

/* Brass Corner Studs */
.corner-stud {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #f59e0b 60%, #92400e 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  z-index: 10;
}
.corner-stud.top-left { top: 12px; left: 12px; }
.corner-stud.top-right { top: 12px; right: 12px; }
.corner-stud.bottom-left { bottom: 12px; left: 12px; }
.corner-stud.bottom-right { bottom: 12px; right: 12px; }

/* Corner Festive Decorations (Sunflowers 🌻 & Ribbons 🎗️) */
.board-decor {
  position: absolute;
  font-size: 2.2rem;
  z-index: 4;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
  opacity: 0.85;
}
.decor-top-left { top: 18px; left: 36px; transform: rotate(-15deg); }
.decor-top-right { top: 18px; right: 36px; transform: rotate(15deg); }
.decor-bottom-left { bottom: 18px; left: 36px; transform: rotate(15deg); }
.decor-bottom-right { bottom: 18px; right: 36px; transform: rotate(-15deg); }

/* Floating Clouds in Background */
.board-cloud {
  position: absolute;
  color: rgba(255, 255, 255, 0.65);
  font-size: 4rem;
  z-index: 1;
  pointer-events: none;
  filter: blur(1px);
}
.board-cloud.cloud-1 { top: 6%; left: 8%; animation: floatCloud 24s infinite ease-in-out; }
.board-cloud.cloud-2 { top: 38%; right: 5%; animation: floatCloud 30s infinite ease-in-out reverse; }
.board-cloud.cloud-3 { bottom: 15%; left: 12%; animation: floatCloud 28s infinite ease-in-out; }

@keyframes floatCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(35px); }
}

/* Board Title Plaque */
.board-title-plaque {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 2px solid #f59e0b;
}

.board-heading {
  color: #78350f;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Winding Serpentine Path Container */
.board-game-trail {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 15px 30px;
  z-index: 5;
}

/* Region Landmark Header */
.board-region-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 36px;
  margin-bottom: 24px;
  padding-left: 14px;
  z-index: 5;
  position: relative;
}

.board-region-header:first-of-type {
  margin-top: 10px;
  margin-bottom: 44px; /* Extra clearance for player pawn on Tile 1 */
}

.board-region-badge {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #78350f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  letter-spacing: 0.3px;
}

.board-region-badge.badge-danger-zone {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #f43f5e;
  color: #9f1239;
}

.board-region-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin-left: 10px;
}

/* Continuous SVG Board Game Track */
.board-track-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.road-animated-centerline {
  animation: flowCenterline 1.6s linear infinite;
}

@keyframes flowCenterline {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

/* Serpentine Row */
.board-trail-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  min-height: 124px;
  margin-bottom: 48px;
  z-index: 4;
}

.board-trail-row.reverse {
  flex-direction: row-reverse;
}

/* 3D Stepping Stone Tiles (Physical Board Game Puck / Tile) */
.board-tile {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  z-index: 3;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tile-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  position: relative;
  text-align: center;
}

/* Top Mini Tag inside Tile */
.tile-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 5;
}

.tag-start {
  background: #10b981;
  color: #ffffff;
  border: 1.5px solid #ecfdf5;
}

.tag-finish {
  background: #d97706;
  color: #ffffff;
  border: 1.5px solid #fef08a;
}

.tag-bonus {
  background: #f59e0b;
  color: #78350f;
  border: 1.5px solid #ffffff;
}

.tag-danger {
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #fee2e2;
  animation: pulseDanger 1.8s infinite ease-in-out;
}

.tag-normal {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 0.65rem;
  padding: 1px 6px;
}

/* Number & Theme Label */
.board-tile-num {
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1;
  margin-top: 4px;
}

.board-tile-title {
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Bottom Progress Pill */
.tile-progress-pill {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 50px;
  white-space: nowrap;
}

.badge-completed {
  background: #10b981;
  color: #ffffff;
}

.badge-current {
  background: #78350f;
  color: #fef08a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-unlocked {
  background: #e2e8f0;
  color: #334155;
}

.badge-locked {
  background: #94a3b8;
  color: #ffffff;
}

/* 3D Tile States */

/* 1. START TILE (LARGADA) */
.board-tile.tile-start {
  background: linear-gradient(145deg, #10b981 0%, #059669 100%);
  border: 3px solid #34d399;
  color: #ffffff;
  box-shadow: 0 9px 0 #047857, 0 16px 25px rgba(16, 185, 129, 0.4), inset 0 2px 4px rgba(255,255,255,0.6);
}
.board-tile.tile-start .board-tile-num { color: #ffffff; }
.board-tile.tile-start .board-tile-title { color: #ecfdf5; }

/* 2. CURRENT TILE (ONDE O JOGADOR ESTÁ) */
.board-tile.tile-current {
  background: linear-gradient(145deg, #fffbeb 0%, #fde047 45%, #f59e0b 100%);
  border: 4px solid #f59e0b;
  color: #78350f;
  box-shadow: 0 9px 0 #b45309, 
              0 0 35px rgba(245, 158, 11, 0.95), 
              0 18px 28px rgba(217, 119, 6, 0.45),
              inset 0 3px 6px rgba(255, 255, 255, 0.9);
  transform: scale(1.12);
  z-index: 12;
  animation: pulseCurrentTile 2.2s infinite ease-in-out;
}
.board-tile.tile-current .board-tile-num { color: #78350f; text-shadow: 0 1px 1px rgba(255,255,255,0.6); }
.board-tile.tile-current .board-tile-title { color: #92400e; font-weight: 900; }

@keyframes pulseCurrentTile {
  0%, 100% {
    box-shadow: 0 9px 0 #b45309, 0 0 30px rgba(245, 158, 11, 0.8), 0 18px 28px rgba(217, 119, 6, 0.35);
  }
  50% {
    box-shadow: 0 9px 0 #b45309, 0 0 55px rgba(245, 158, 11, 1), 0 20px 35px rgba(217, 119, 6, 0.6);
  }
}

/* 3. COMPLETED TILE */
.board-tile.tile-completed {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border: 3px solid #10b981;
  color: #065f46;
  box-shadow: 0 8px 0 #059669, 0 14px 20px rgba(16, 185, 129, 0.22), inset 0 2px 4px rgba(255,255,255,0.8);
}
.board-tile.tile-completed .board-tile-num { color: #065f46; }
.board-tile.tile-completed .board-tile-title { color: #047857; }

/* 4. UNLOCKED TILE */
.board-tile.tile-unlocked {
  background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
  border: 3px solid #f59e0b;
  color: #1f2937;
  box-shadow: 0 8px 0 #d97706, 0 14px 20px rgba(217, 119, 6, 0.18), inset 0 2px 4px rgba(255,255,255,0.9);
}
.board-tile.tile-unlocked .board-tile-num { color: #78350f; }
.board-tile.tile-unlocked .board-tile-title { color: #475569; }

/* 5. DANGER TILE (ALTO RISCO) */
.board-tile.tile-danger {
  background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
  border: 3px solid #ef4444;
  color: #991b1b;
  box-shadow: 0 8px 0 #b91c1c, 0 0 18px rgba(239, 68, 68, 0.35), inset 0 2px 4px rgba(255,255,255,0.8);
}
.board-tile.tile-danger .board-tile-num { color: #b91c1c; }
.board-tile.tile-danger .board-tile-title { color: #9f1239; font-weight: 900; }

/* 6. SPECIAL / BONUS TILE */
.board-tile.tile-special {
  background: linear-gradient(145deg, #fefce8 0%, #fef08a 100%);
  border: 3px solid #eab308;
  color: #713f12;
  box-shadow: 0 8px 0 #ca8a04, 0 0 22px rgba(234, 179, 8, 0.45), inset 0 2px 4px rgba(255,255,255,0.9);
}
.board-tile.tile-special .board-tile-num { color: #854d0e; }
.board-tile.tile-special .board-tile-title { color: #713f12; font-weight: 900; }

/* 7. FINISH TILE (GRANDE CHEGADA) */
.board-tile.tile-finish {
  background: linear-gradient(145deg, #fef08a 0%, #f59e0b 45%, #d97706 100%);
  border: 4px solid #fef08a;
  color: #78350f;
  box-shadow: 0 10px 0 #92400e, 0 0 35px rgba(245, 158, 11, 0.85), 0 20px 30px rgba(217, 119, 6, 0.45), inset 0 3px 6px rgba(255,255,255,0.9);
  animation: finishShimmer 3s infinite ease-in-out;
}
.board-tile.tile-finish .board-tile-num { color: #78350f; text-shadow: 0 1px 2px rgba(255,255,255,0.8); }
.board-tile.tile-finish .board-tile-title { color: #78350f; font-weight: 900; }

@keyframes finishShimmer {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6)); }
  50% { filter: drop-shadow(0 0 25px rgba(245, 158, 11, 1)); }
}

/* 8. LOCKED TILE */
.board-tile.tile-locked {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border: 3px solid #cbd5e1;
  color: #64748b;
  opacity: 0.88;
  box-shadow: 0 8px 0 #94a3b8, 0 12px 16px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255,255,255,0.9);
}
.board-tile.tile-locked .board-tile-num { color: #64748b; }
.board-tile.tile-locked .board-tile-title { color: #94a3b8; }

/* Tile Hover Interactions */
.board-tile:hover {
  transform: translateY(-6px) scale(1.06);
  z-index: 15;
}
.board-tile.tile-current:hover {
  transform: translateY(-8px) scale(1.15);
}

.board-tile:active {
  transform: translateY(3px) scale(1.02);
  box-shadow: 0 3px 0 rgba(0,0,0,0.2), 0 6px 12px rgba(0,0,0,0.1);
}

/* 3D Animated Player Pawn */
.player-pawn {
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pawn-avatar {
  font-size: 2.8rem;
  color: #b45309;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45));
  animation: pawn-bounce-3d 1.4s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
  background: -webkit-linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pawn-shadow {
  width: 32px;
  height: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  margin-top: -6px;
  animation: pawn-shadow-scale 1.4s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}

.pawn-tag {
  margin-bottom: 2px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 2px 10px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes pawn-bounce-3d {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes pawn-shadow-scale {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(0.6); opacity: 0.15; }
}

@keyframes pulseDanger {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}

/* Responsive Adjustments for Tablets and Mobile */
@media (max-width: 768px) {
  .board-tile {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }
  .board-tile-num {
    font-size: 1.25rem;
  }
  .board-tile-title {
    display: none;
  }
  .tile-tag {
    font-size: 0.5rem;
    padding: 1px 5px;
    top: -7px;
  }
  .tile-progress-pill {
    font-size: 0.52rem;
    padding: 1px 4px;
  }
  .player-pawn {
    top: -54px;
  }
  .pawn-avatar {
    font-size: 2.2rem;
  }
  .pawn-tag {
    font-size: 0.55rem;
    padding: 1px 6px;
  }
}


