/* Fonts & Core */
body { font-family: 'Inter', sans-serif; }
.font-oswald { font-family: 'Oswald', sans-serif; }
.font-handwriting { font-family: 'Inter', sans-serif; font-style: italic; letter-spacing: -0.5px; }

/* Utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Transitions */
.view-section { animation: fade-in 0.3s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --- CAROUSEL (Enhanced with drag support) --- */
.snap-center { scroll-snap-align: center; }
.carousel-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    min-width: 160px;
    width: calc(45% - 8px);
    flex-shrink: 0;
    user-select: none;
}
.carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}
.carousel-card.active {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(59, 130, 246, 0.25);
    z-index: 10;
}
.dark .carousel-card.active {
    background-color: #1e3a8a;
    border-color: #60a5fa;
    box-shadow: 0 12px 24px -4px rgba(96, 165, 250, 0.25);
}

/* Carousel container drag styling */
#game-carousel {
    cursor: grab;
    scroll-behavior: smooth;
}
#game-carousel:active {
    cursor: grabbing;
}

/* --- CARD INTERACTIONS --- */
.strip-card-physical {
    border-radius: 12px;
}

/* Flex Fill for Lines (Fill height exactly) */
.line-slot-row {
    flex: 1;
    min-height: 0;
}

/* Drafting Mode Lines */
.line-slot {
    transition: background 0.2s;
    cursor: pointer;
}
.line-slot:active { background-color: #f1f5f9; }
.line-slot.empty {
    animation: pulse-bg 3s infinite;
}
@keyframes pulse-bg {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(59, 130, 246, 0.05); }
}

/* Canvas Scratch Overlay */
#scratch-canvas {
    border-radius: 0.75rem;
    background: transparent;
}

/* Winner row styling */
.game-row.winner-row {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #22c55e;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.dark .game-row.winner-row {
    background: linear-gradient(135deg, #14532d, #166534);
    border-color: #4ade80;
}

/* Modal Animation */
#player-modal.open { display: flex; opacity: 1; }
#player-modal.open > div { transform: scale(1); }

#confirm-modal.open { display: flex; opacity: 1; }
#confirm-modal.open > div { transform: scale(1); }

/* Menu Slide */
#menu-overlay.open { display: block; opacity: 1; }
#menu-overlay.open > div { transform: translateX(0); }
