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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-dark: #0f0f23;
    --bg-card: rgba(255, 255, 255, 0.95);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2d3436;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== HEADER ==================== */
header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

header h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.vs-text {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Global Breed Selectors */
.global-selectors {
    margin-top: 25px;
}

.global-selectors .breed-select {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    padding: 14px 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.global-selectors .breed-select:hover {
    border-color: #fff;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.global-selectors .vs-divider {
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    font-weight: bold;
}

/* ==================== SCOREBOARD ==================== */
.scoreboard {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 30px;
}

.score {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.score:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.score-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.score-value {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 20px currentColor;
}

.left-score .score-value { color: #fdcb6e; }
.right-score .score-value { color: #ff7675; }

/* ==================== BATTLE ARENA ==================== */
.battle-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 25px;
    margin-bottom: 50px;
    align-items: start;
}

.dog-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 35px;
    box-shadow: var(--shadow-strong);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.dog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35), var(--shadow-glow);
}

.dog-card.left-dog-card {
    background: linear-gradient(160deg, #fffbf0 0%, #fff3d4 50%, #ffe4a0 100%);
}

.dog-card.left-dog-card::before {
    background: linear-gradient(90deg, #f39c12, #fdcb6e);
}

.dog-card.right-dog-card {
    background: linear-gradient(160deg, #fff5f3 0%, #ffe8e4 50%, #ffd4cc 100%);
}

.dog-card.right-dog-card::before {
    background: linear-gradient(90deg, #e74c3c, #ff7675);
}

.dog-header {
    text-align: center;
    margin-bottom: 20px;
}

.dog-header h2 {
    font-size: 2.2rem;
    color: #2d3436;
    margin-bottom: 8px;
    font-weight: 700;
}

.aka {
    font-size: 0.95rem;
    color: #636e72;
    font-style: italic;
    opacity: 0.9;
}

/* ==================== DOG VISUAL ==================== */
.dog-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin-bottom: 20px;
}

.dog-container {
    text-align: center;
    position: relative;
    width: 220px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dog-svg {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
}

.dog-svg:hover {
    transform: scale(1.08) rotate(2deg);
}

/* Dog animations */
.teckel-svg { animation: gentleBounce 3s infinite ease-in-out; }
.vizsla-svg { animation: excitedBounce 2s infinite ease-in-out; }
.golden-svg { animation: happyWag 2.5s infinite ease-in-out; }
.husky-svg { animation: dramaticPose 4s infinite ease-in-out; }
.chihuahua-svg { animation: tinyShake 0.5s infinite ease-in-out; }
.labrador-svg { animation: hungryBounce 2s infinite ease-in-out; }
.poodle-svg { animation: elegantSway 3s infinite ease-in-out; }
.bulldog-svg { animation: sleepyBreathe 4s infinite ease-in-out; }
.borderCollie-svg { animation: alertWatch 3s infinite ease-in-out; }
.beagle-svg { animation: sniffing 2s infinite ease-in-out; }

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 18px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.speech-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Interaction Buttons */
.interaction-zone {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 18px 0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.pet-btn {
    background: linear-gradient(135deg, #00b894, #55efc4);
    color: white;
}

.treat-btn {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
    color: #6b4c00;
}

.bark-btn {
    background: linear-gradient(135deg, #e74c3c, #ff7675);
    color: white;
}

/* Dog Status */
.dog-status {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #2d3436;
    font-weight: 600;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin-top: 10px;
}

/* ==================== STATS BARS ==================== */
.stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
}

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

.stat-bar span {
    font-weight: 600;
    color: #2d3436;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar {
    background: rgba(0, 0, 0, 0.1);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fill {
    height: 100%;
    border-radius: 12px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    border-radius: 12px 12px 0 0;
}

.life-expectancy {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.life-expectancy .bar {
    height: 28px;
    background: rgba(0, 0, 0, 0.08);
}

.life-expectancy .bar .fill {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    min-width: 60px;
}

.stat-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 1;
}

.life-expectancy .scale-max {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

/* ==================== VS BADGE ==================== */
.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.vs-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 15px 40px rgba(238, 90, 90, 0.5);
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.vs-circle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 20px 50px rgba(238, 90, 90, 0.6);
}

/* ==================== BREED SELECTORS ==================== */
.breed-selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.breed-select-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.breed-select {
    padding: 14px 24px;
    font-size: 1rem;
    border: 3px solid #e0e0e0;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #2d3436;
    cursor: pointer;
    min-width: 220px;
    font-weight: 600;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23636e72' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.breed-select:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.breed-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.vs-divider {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== COMPARISON SECTION ==================== */
.comparison-section {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 45px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-strong);
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #2d3436;
    font-weight: 700;
}

.click-hint {
    text-align: center;
    color: #636e72;
    margin-bottom: 25px;
    font-style: italic;
    font-size: 1rem;
}

.comparisons {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comparison-item {
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.comparison-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.comparison-item.hidden-card .comparison-sides {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
}

.comparison-item.revealed .comparison-sides {
    max-height: 200px;
    opacity: 1;
    margin-top: 18px;
}

.comparison-label {
    font-weight: 700;
    font-size: 1.15rem;
    color: #2d3436;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.comparison-label::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}

.comparison-item.revealed .comparison-label::before {
    content: '✓';
    background: linear-gradient(135deg, #00b894, #55efc4);
}

.comparison-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    transition: all 0.4s ease;
}

.side {
    padding: 18px;
    border-radius: 15px;
    text-align: center;
    font-size: 1rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    font-weight: 500;
    transition: all 0.3s ease;
}

.side:hover {
    transform: scale(1.02);
}

.left-side {
    background: linear-gradient(135deg, #fffbf0 0%, #fdcb6e 100%);
    border-color: #f39c12;
}

.right-side {
    background: linear-gradient(135deg, #fff5f3 0%, #ff7675 100%);
    border-color: #e74c3c;
}

/* Breed-specific colors */
.breed-teckel { background: linear-gradient(135deg, #fffbf0 0%, #fdcb6e 100%) !important; border-color: #f39c12 !important; }
.breed-vizsla { background: linear-gradient(135deg, #fff5f3 0%, #ff7675 100%) !important; border-color: #e74c3c !important; }
.breed-golden { background: linear-gradient(135deg, #fffde6 0%, #ffd700 100%) !important; border-color: #f1c40f !important; }
.breed-husky { background: linear-gradient(135deg, #e8f4fc 0%, #74b9ff 100%) !important; border-color: #0984e3 !important; }
.breed-chihuahua { background: linear-gradient(135deg, #fff0f3 0%, #fd79a8 100%) !important; border-color: #e84393 !important; }
.breed-labrador { background: linear-gradient(135deg, #e8fffe 0%, #81ecec 100%) !important; border-color: #00cec9 !important; }
.breed-poodle { background: linear-gradient(135deg, #f3f0ff 0%, #a29bfe 100%) !important; border-color: #6c5ce7 !important; }
.breed-bulldog { background: linear-gradient(135deg, #f5f5f5 0%, #b2bec3 100%) !important; border-color: #636e72 !important; }
.breed-borderCollie { background: linear-gradient(135deg, #e8fff3 0%, #55efc4 100%) !important; border-color: #00b894 !important; }
.breed-beagle { background: linear-gradient(135deg, #fffbf0 0%, #ffeaa7 100%) !important; border-color: #fdcb6e !important; }

.reveal-btn {
    display: block;
    margin: 30px auto 0;
    background: var(--primary-gradient);
    color: white;
    padding: 14px 35px;
    font-size: 1.1rem;
}

/* ==================== RACE SECTION ==================== */
.race-section {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 45px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    margin-bottom: 40px;
}

.race-section h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #2d3436;
    font-weight: 700;
}

.race-controls {
    margin-bottom: 30px;
}

.race-button {
    background: linear-gradient(135deg, #00b894, #55efc4);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(0, 184, 148, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.race-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(0, 184, 148, 0.5);
}

.race-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.race-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #636e72;
    font-weight: 500;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Race Track */
.race-track {
    background: linear-gradient(180deg, #74b9ff 0%, #a29bfe 100%);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.15);
}

.race-lane {
    position: relative;
    height: 80px;
    background: linear-gradient(90deg, #f8f9fa 0%, #dfe6e9 50%, #f8f9fa 100%);
    border-radius: 40px;
    margin: 18px 0;
    border: 4px solid #636e72;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lane-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #2d3436;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.track-surface {
    flex: 1;
    position: relative;
    height: 100%;
    margin: 0 25px;
}

.racer {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    transition: left 0.1s linear;
}

.racer-emoji {
    font-size: 3rem;
    display: block;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.3));
}

.racer.running .racer-emoji {
    animation: runningBounce 0.12s infinite;
}

.finish-line {
    position: absolute;
    right: 15px;
    top: 5px;
    bottom: 5px;
    width: 25px;
    background: repeating-linear-gradient(
        0deg,
        #222 0px,
        #222 12px,
        white 12px,
        white 24px
    );
    border-radius: 8px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.obstacle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.obstacle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
}

.race-result {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3436;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.race-commentary {
    font-size: 1.1rem;
    color: #636e72;
    font-style: italic;
    min-height: 30px;
}

/* ==================== FUN FACTS ==================== */
.fun-facts-section {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 45px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    margin-bottom: 40px;
}

.fun-facts-section h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #2d3436;
    font-weight: 700;
}

.fact-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: #2d3436;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.fact-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 35px;
    font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8);
}

footer p {
    margin-bottom: 8px;
}

.easter-egg-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px rgba(238, 90, 90, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 20px 50px rgba(238, 90, 90, 0.7); }
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes excitedBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.02); }
    50% { transform: translateY(-5px) scale(1); }
    75% { transform: translateY(-12px) scale(1.02); }
}

@keyframes happyWag {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes dramaticPose {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    75% { transform: translateY(-3px) rotate(-2deg); }
}

@keyframes tinyShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes hungryBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes elegantSway {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

@keyframes sleepyBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes alertWatch {
    0%, 90%, 100% { transform: translateX(0); }
    95% { transform: translateX(3px); }
}

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

@keyframes runningBounce {
    0%, 100% { transform: translateY(-50%) scaleY(1) scaleX(1); }
    50% { transform: translateY(-50%) scaleY(0.92) scaleX(1.05); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .battle-arena {
        grid-template-columns: 1fr;
    }

    .vs-badge {
        order: 2;
        padding: 25px 0;
    }

    .left-dog-card { order: 1; }
    .right-dog-card { order: 3; }

    .scoreboard {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    .comparison-sides {
        grid-template-columns: 1fr;
    }

    .race-lane {
        height: 65px;
    }

    .racer-emoji {
        font-size: 2.5rem;
    }

    .race-options {
        flex-direction: column;
        gap: 12px;
    }

    .breed-selectors {
        flex-direction: column;
        gap: 15px;
    }

    .global-selectors .breed-select {
        min-width: 180px;
    }
}
