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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.6); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

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

@keyframes marquee-slide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes odd-flash-up {
    0%, 100% { background-color: rgba(34,197,94,0.0); box-shadow: none; }
    30%     { background-color: rgba(34,197,94,0.25); box-shadow: 0 0 0 2px rgba(34,197,94,0.35) inset; }
}

@keyframes odd-flash-down {
    0%, 100% { background-color: rgba(239,68,68,0.0); box-shadow: none; }
    30%     { background-color: rgba(239,68,68,0.25); box-shadow: 0 0 0 2px rgba(239,68,68,0.35) inset; }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0)     scale(1); }
    to   { opacity: 0; transform: translateY(-12px) scale(0.98); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.page-enter {
    animation: fade-in-up 0.4s ease-out;
}

.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.dark .card-hover-lift:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.glass-effect {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #0ea5e9, #d946ef);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hover-scale-105 {
    transition: transform 0.2s ease;
}

.hover-scale-105:hover {
    transform: scale(1.05);
}

.text-gradient {
    background: linear-gradient(135deg, #0ea5e9, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Skeleton loader ---------- */
.skeleton {
    background: linear-gradient(90deg,
        rgba(148,163,184,0.12) 0%,
        rgba(148,163,184,0.24) 50%,
        rgba(148,163,184,0.12) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 8px;
}

.dark .skeleton {
    background: linear-gradient(90deg,
        rgba(30,41,59,0.7) 0%,
        rgba(51,65,85,0.9) 50%,
        rgba(30,41,59,0.7) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}

/* ---------- Odds change flash (yukari/asagi) ---------- */
.odds-btn.odd-up    { animation: odd-flash-up   0.9s ease-out; }
.odds-btn.odd-down  { animation: odd-flash-down 0.9s ease-out; }

.odds-btn .odd-arrow {
    display: inline-block;
    font-size: 9px;
    margin-left: 2px;
    line-height: 1;
    vertical-align: baseline;
}
.odds-btn.odd-up-persist   .odd-arrow { color: #22c55e; }
.odds-btn.odd-down-persist .odd-arrow { color: #ef4444; }

.odds-btn.selected {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px -4px rgba(14,165,233,0.6);
}
.odds-btn.selected span { color: white !important; }

/* ---------- Live match ticker ---------- */
.ticker-track {
    display: inline-flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: marquee-slide 60s linear infinite;
    padding-right: 2.5rem;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ---------- Toasts ---------- */
#toast-root {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: calc(100vw - 2rem);
}
.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 260px;
    max-width: 460px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.25), 0 4px 12px -4px rgba(0,0,0,0.15);
    animation: toast-in 0.25s ease-out;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
}
.toast-item.toast-hide { animation: toast-out 0.25s ease-in forwards; }
.toast-item .toast-icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast-item .toast-close {
    margin-left: auto;
    opacity: 0.6;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    background: transparent;
    border: 0;
    color: inherit;
}
.toast-item .toast-close:hover { opacity: 1; }

.toast-success { background: rgba(220, 252, 231, 0.95); color: #065f46; border-color: rgba(16,185,129,0.3); }
.toast-error   { background: rgba(254, 226, 226, 0.95); color: #991b1b; border-color: rgba(239,68,68,0.3); }
.toast-info    { background: rgba(224, 242, 254, 0.95); color: #075985; border-color: rgba(14,165,233,0.3); }
.toast-warning { background: rgba(254, 243, 199, 0.95); color: #92400e; border-color: rgba(245,158,11,0.35); }

.dark .toast-success { background: rgba(6,78,59,0.85); color: #d1fae5; border-color: rgba(16,185,129,0.45); }
.dark .toast-error   { background: rgba(127,29,29,0.85); color: #fecaca; border-color: rgba(239,68,68,0.5); }
.dark .toast-info    { background: rgba(12,74,110,0.85); color: #bae6fd; border-color: rgba(14,165,233,0.5); }
.dark .toast-warning { background: rgba(120,53,15,0.85); color: #fde68a; border-color: rgba(245,158,11,0.5); }

/* ---------- Pro hero mesh background ---------- */
.hero-mesh {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 12% 20%, rgba(14,165,233,0.35) 0px, transparent 50%),
        radial-gradient(at 85% 15%, rgba(217,70,239,0.25) 0px, transparent 55%),
        radial-gradient(at 70% 85%, rgba(34,197,94,0.18) 0px, transparent 55%),
        radial-gradient(at 10% 90%, rgba(59,130,246,0.20) 0px, transparent 55%),
        linear-gradient(135deg, #0b1220 0%, #111827 100%);
}

.hero-dots {
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* ---------- Trust badge hover ---------- */
.trust-badge {
    transition: transform 0.2s ease, color 0.2s ease;
}
.trust-badge:hover {
    transform: translateY(-2px);
}

/* ---------- Team logo chip ---------- */
.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}
.dark .team-logo { background: rgba(255,255,255,0.04); }

/* ---------- Mobile drawer ---------- */
#mobile-drawer { transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
#mobile-drawer.hidden-drawer { transform: translateX(-100%); }
#mobile-drawer-overlay { transition: opacity 0.3s ease; }
