/* ==========================================================================
   SISTEMA DE DISEÑO & CONFIGURACIÓN GENERAL (style.css)
   ========================================================================== */

:root {
    --bg-dark-1: #090e21;
    --bg-dark-2: #040612;
    --glass-bg: rgba(15, 22, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    
    /* Colores Temáticos */
    --accent-yellow: #ffca28;
    --accent-yellow-glow: rgba(255, 202, 40, 0.25);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Colores de Equipos y Estado */
    --color-teamA: #f43f5e; /* Coral vibrante */
    --color-teamB: #0ea5e9; /* Azul celeste */
    --color-success: #10b981; /* Verde esmeralda */
    
    /* Fuentes */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark-2);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fondo Dinámico con Mallas de Gradientes */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(244, 63, 94, 0.12) 0%, transparent 45%),
                linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    background-attachment: fixed;
}

/* Contenedor Principal */
.app-container {
    width: 100%;
    max-width: 800px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Banner de Anuncios */
.ads-banner-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: -4px;
    animation: fadeInDown 0.6s ease-out;
}

.ads-link {
    display: block;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ads-link:hover {
    transform: scale(1.015);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.ads-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1500 / 300;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   ENCABEZADO
   ========================================================================== */

.app-header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.logo-emoji {
    font-size: 2.2rem;
    animation: floatLogo 3s ease-in-out infinite;
}

.merlin-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #3b82f6; /* Azul vibrante premium */
    text-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 2px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease-out;
}

@media (max-width: 600px) {
    .merlin-title {
        font-size: 2.3rem;
    }
}

.logo h1, .logo h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-yellow) 30%, #f57c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

/* ==========================================================================
   TARJETA PRINCIPAL DEL JUEGO
   ========================================================================== */

.game-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 var(--glass-highlight);
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-teamA) 0%, var(--accent-yellow) 50%, var(--color-teamB) 100%);
}

/* Información del Partido */
.match-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.match-status {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-yellow);
}

.match-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.match-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ESCENARIO DE INTERACCIÓN (PATO Y BANDERAS)
   ========================================================================== */

.game-stage {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 220px;
    position: relative;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin: 10px 0;
}

/* Zonas de Equipos / Banderas */
.team-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 5;
    width: 120px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-zone:hover {
    transform: translateY(-8px);
}

.flag-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.team-zone.left:hover .flag-wrapper {
    border-color: var(--color-teamA);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.team-zone.right:hover .flag-wrapper {
    border-color: var(--color-teamB);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.team-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-zone.left:hover .vote-btn {
    background: var(--color-teamA);
    border-color: var(--color-teamA);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.team-zone.right:hover .vote-btn {
    background: var(--color-teamB);
    border-color: var(--color-teamB);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Deshabilitar interacción una vez votado */
.voted-state .team-zone,
.voted-state .draw-zone {
    cursor: default;
    pointer-events: none;
}
.voted-state .team-zone:hover {
    transform: none;
}
.voted-state .draw-zone:hover {
    transform: translateX(-50%);
}
.voted-state .vote-btn {
    display: none;
}

/* Pista y Contenedores del Pato */
.path-zone {
    flex-grow: 1;
    position: relative;
    height: 100%;
}

#duck-container {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 160px;
    height: 160px;
    margin-left: -80px; /* Centrado */
    z-index: 10;
    transform: translateX(var(--duck-translate-x, 0px)) scaleX(var(--duck-direction, 1));
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

#duck-wrapper {
    width: 100%;
    height: 100%;
}

/* Animaciones del Pato (Aplicadas al wrapper interno) */

/* Respiración en reposo */
.duck-idle #duck-wrapper {
    animation: duckBreath 3s ease-in-out infinite;
}

/* Caminado/Waddle */
.duck-walking #duck-wrapper {
    animation: duckWaddle 0.22s infinite alternate ease-in-out;
}

/* Salto de celebración */
.duck-celebrating #duck-wrapper {
    animation: duckCelebrate 0.6s ease-in-out 3;
}

/* ==========================================================================
   PANEL DE RESULTADOS (VOTACIONES)
   ========================================================================== */

.results-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    display: none; /* Se activa vía JS */
    flex-direction: column;
    gap: 18px;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.results-header {
    text-align: center;
}

.results-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 4px;
}

.results-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-votes {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.stat-bar-outer {
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-bar-inner {
    height: 100%;
    width: 0; /* JS animará este ancho */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.stat-bar-inner.teamA-bar {
    background: linear-gradient(90deg, #f43f5e, #fda4af);
}

.stat-bar-inner.teamB-bar {
    background: linear-gradient(90deg, #0ea5e9, #7dd3fc);
}

.stat-bar-inner.draw-bar {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

/* Zona de Empate (Draw) */
.draw-zone {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 5;
    width: 110px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.draw-zone:hover {
    transform: translateX(-50%) translateY(-4px);
}

.draw-icon-wrapper {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.draw-zone:hover .draw-icon-wrapper {
    border-color: var(--text-muted);
    border-style: solid;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.draw-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.2s ease;
}

.draw-zone:hover .draw-label {
    color: var(--text-white);
}

.draw-zone:hover .vote-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-percent {
    font-size: 0.75rem;
    font-weight: 800;
    color: #040612;
}

.results-footer {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.total-voters-label strong {
    color: var(--text-white);
}

/* ==========================================================================
   BOTONES Y ACCIONES SECUNDARIAS
   ========================================================================== */

.action-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    animation: attentionPulse 2s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.7);
    transform: translateY(-3px) scale(1.05);
}

@keyframes attentionPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(59, 130, 246, 0.85);
        transform: scale(1.04);
    }
}

/* ==========================================================================
   CAJÓN DESPLEGABLE (DRAWER) PARA OTROS PARTIDOS
   ========================================================================== */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.matches-drawer {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 32px 32px 0 0;
    z-index: 101;
    padding: 24px;
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.5);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.matches-drawer.active {
    bottom: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.drawer-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-drawer-btn:hover {
    color: var(--text-white);
}

.drawer-instructions {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Personalizar barra de desplazamiento del cajón */
.matches-list::-webkit-scrollbar {
    width: 6px;
}
.matches-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.matches-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Tarjeta de partido individual en la lista */
.match-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.match-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.01);
}

.match-item.active-item {
    border-color: var(--accent-yellow);
    background: rgba(255, 202, 40, 0.04);
}

.match-item-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.match-item-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-item-vs {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
}

.match-item-names {
    display: flex;
    flex-direction: column;
}

.match-item-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.match-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.match-item-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-today {
    background: rgba(255, 202, 40, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 202, 40, 0.3);
}

.badge-voted {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.badge-live {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* Tarjeta de Contenido Informativo (AdSense / SEO) */
.info-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px 32px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.info-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    border-left: 4px solid var(--color-teamB);
    padding-left: 12px;
    margin-bottom: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.info-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
    pointer-events: none;
}

/* Estado Expandido */
.info-card.active {
    padding-bottom: 32px;
}

.info-card.active .info-card-content {
    max-height: 1200px;
    opacity: 1;
    margin-top: 20px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-yellow);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-top: 8px;
}

.info-card p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
}

.info-card strong {
    color: var(--text-white);
    font-weight: 600;
}

.app-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    animation: fadeInUp 1s ease-out;
}

.app-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.app-footer a:hover {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

/* ==========================================================================
   ANIMACIONES CSS KEYFRAMES
   ========================================================================== */

@keyframes duckBreath {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes duckWaddle {
    0% {
        transform: rotate(-6deg);
    }
    100% {
        transform: rotate(6deg);
    }
}

@keyframes duckCelebrate {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-24px) scaleY(0.9) scaleX(1.05);
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 600px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .game-card {
        padding: 20px 16px;
        border-radius: 20px;
        gap: 20px;
    }

    .match-title {
        font-size: 1.3rem;
    }

    .game-stage {
        height: 200px;
    }

    .team-zone {
        width: 90px;
    }

    .flag-wrapper {
        width: 70px;
        height: 70px;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .vote-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    #duck-container {
        width: 120px;
        height: 120px;
        margin-left: -60px;
        bottom: -6px;
    }
    
    .draw-zone {
        top: 8px;
        width: 90px;
    }

    .draw-icon-wrapper {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .draw-label {
        font-size: 0.75rem;
    }
    
    .results-panel {
        padding: 16px;
    }
    
    .stat-bar-outer {
        height: 20px;
    }
    
    .stat-percent {
        font-size: 0.7rem;
    }

    /* En pantallas muy chicas, el cajón ocupa casi todo */
    .matches-drawer {
        border-radius: 24px 24px 0 0;
        padding: 20px;
    }

    .info-card {
        padding: 16px 20px;
    }
    .info-card.active {
        padding-bottom: 24px;
    }
}

/* Adaptación del Cajón en Pantallas Grandes (Estilo Modal lateral) */
@media (min-width: 900px) {
    .matches-drawer {
        position: fixed;
        bottom: auto;
        right: -400px;
        left: auto;
        transform: none;
        top: 0;
        height: 100vh;
        width: 380px;
        border-radius: 24px 0 0 24px;
        border-bottom: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .matches-drawer.active {
        right: 0;
        bottom: auto;
    }
    
    .matches-list {
        max-height: calc(100vh - 180px);
    }
}
