/* ========== SCENE CONTAINER ========== */
.hockey-scene-link { text-decoration: none; display: block; flex-shrink: 0; }
.hockey-scene {
    position: relative;
    width: 280px;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0,20,40,0.9) 0%, rgba(0,40,70,0.8) 50%, rgba(0,20,40,0.9) 100%);
    border: 1px solid rgba(0,163,224,0.2);
    cursor: pointer;
}
.hockey-scene:hover { border-color: rgba(0,163,224,0.5); }

/* ========== ICE RINK SURFACE ========== */
.rink-surface {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 120%, rgba(0,163,224,0.08) 0%, transparent 70%),
        linear-gradient(0deg, rgba(135,206,250,0.04) 0%, transparent 40%);
    z-index: 0;
}
.rink-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(0,163,224,0.12);
    z-index: 0;
}
.rink-line-1 { left: 30%; }
.rink-line-2 { left: 70%; }
.rink-line-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* ========== HOCKEY PUCK ========== */
.puck {
    position: absolute;
    z-index: 4;
    animation: puck-slide 7s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}
.puck-body {
    width: 14px;
    height: 10px;
    background: radial-gradient(ellipse at 40% 35%, #444, #111);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 10px rgba(0,163,224,0.3);
    border: 1px solid rgba(80,80,80,0.5);
}
@keyframes puck-slide {
    0%   { left: -20px; top: 28px; opacity: 0; transform: rotate(0deg) scale(0.8); }
    5%   { opacity: 1; transform: scale(1); }
    8%   { left: 20px; top: 24px; }
    15%  { left: 60px; top: 20px; transform: rotate(180deg); }
    25%  { left: 105px; top: 22px; transform: rotate(360deg); }
    35%  { left: 140px; top: 19px; transform: rotate(540deg); }
    48%  { left: 200px; top: 21px; transform: rotate(720deg); }
    60%  { left: 250px; top: 20px; transform: rotate(900deg); }
    70%  { left: 290px; top: 22px; opacity: 1; transform: rotate(1080deg); }
    78%  { opacity: 0; left: 310px; }
    100% { opacity: 0; left: 310px; transform: rotate(1080deg); }
}

/* ========== ICE SPRAY from puck ========== */
.ice-spray {
    position: absolute;
    z-index: 3;
    animation: spray-follow 7s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}
@keyframes spray-follow {
    0%   { left: -25px; top: 22px; opacity: 0; }
    5%   { opacity: 1; }
    8%   { left: 15px; top: 18px; }
    15%  { left: 55px; top: 14px; }
    25%  { left: 100px; top: 16px; }
    35%  { left: 135px; top: 13px; }
    48%  { left: 195px; top: 15px; }
    60%  { left: 245px; top: 14px; }
    70%  { left: 285px; top: 16px; opacity: 1; }
    78%  { opacity: 0; }
    100% { opacity: 0; left: 300px; }
}
.spray-p {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(184,230,255,0.8);
    border-radius: 50%;
    animation: spray-burst 0.8s ease-out infinite;
    box-shadow: 0 0 4px rgba(0,163,224,0.6);
}
.sp1 { animation-delay: 0s;    left: 0;    top: 0; }
.sp2 { animation-delay: 0.1s;  left: -3px; top: -4px; width: 2px; height: 2px; }
.sp3 { animation-delay: 0.2s;  left: 2px;  top: -6px; }
.sp4 { animation-delay: 0.05s; left: -5px; top: -2px; width: 2px; height: 2px; }
.sp5 { animation-delay: 0.15s; left: -1px; top: -8px; width: 2px; height: 2px; }
.sp6 { animation-delay: 0.25s; left: -4px; top: -5px; width: 1px; height: 1px; }
.sp7 { animation-delay: 0.08s; left: 1px;  top: -3px; width: 2px; height: 2px; }
.sp8 { animation-delay: 0.18s; left: -6px; top: -1px; width: 1px; height: 1px; }
@keyframes spray-burst {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
    100% { transform: translate(-8px, -14px) scale(0); opacity: 0; }
}

/* ========== HOCKEY STICK ========== */
.hockey-stick {
    position: absolute;
    left: -30px;
    top: 8px;
    z-index: 5;
    animation: stick-swing 7s ease-in-out infinite;
    transform-origin: 100% 0%;
}
.stick-shaft {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #8B6914, #C4962C, #8B6914);
    border-radius: 1px;
    transform: rotate(-30deg);
    transform-origin: right center;
    position: absolute;
    top: 0;
    left: -12px;
}
.stick-blade {
    width: 10px;
    height: 6px;
    background: linear-gradient(180deg, #333, #555);
    border-radius: 0 0 3px 1px;
    position: absolute;
    top: 10px;
    left: -3px;
    transform: rotate(10deg);
}
@keyframes stick-swing {
    0%   { left: -40px; top: 6px; transform: rotate(-20deg); opacity: 0; }
    3%   { opacity: 1; left: -20px; }
    6%   { left: 5px; top: 10px; transform: rotate(15deg); }
    9%   { left: -10px; transform: rotate(-5deg); opacity: 0; }
    12%  { opacity: 0; }
    100% { opacity: 0; left: -40px; }
}

/* ========== ICE TRAIL ========== */
.ice-trail {
    position: absolute;
    top: 30px;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, transparent, rgba(0,163,224,0.15), rgba(184,230,255,0.3), rgba(0,163,224,0.15), transparent);
    z-index: 1;
    animation: trail-grow 7s ease-out infinite;
    border-radius: 1px;
    filter: blur(0.5px);
}
@keyframes trail-grow {
    0%   { width: 0; left: 0; opacity: 0; }
    5%   { opacity: 0.6; }
    50%  { width: 260px; left: 10px; opacity: 0.4; }
    70%  { width: 270px; opacity: 0.2; }
    85%  { opacity: 0; }
    100% { width: 270px; opacity: 0; }
}

/* ========== SCENE TEXT ========== */
.scene-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.scene-text-nhl {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffffff 0%, #b8e6ff 50%, #ffffff 100%);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-reveal 7s ease-out infinite, text-shimmer 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0,163,224,0.5));
}
.scene-text-mid {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(184,230,255,0.85);
    animation: text-reveal 7s ease-out infinite;
    animation-delay: 0.3s;
    text-shadow: 0 0 10px rgba(0,163,224,0.4);
}
.scene-text-talk {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #00A3E0 0%, #66d4ff 50%, #00A3E0 100%);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-reveal 7s ease-out infinite, text-shimmer 3s ease-in-out infinite;
    animation-delay: 0.5s, 1.5s;
    filter: drop-shadow(0 0 8px rgba(0,163,224,0.6));
}
@keyframes text-reveal {
    0%, 8%  { opacity: 0; transform: translateY(4px); }
    18%     { opacity: 1; transform: translateY(0); }
    75%     { opacity: 1; }
    90%     { opacity: 0.8; }
    95%     { opacity: 0; }
    100%    { opacity: 0; }
}
@keyframes text-shimmer {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 0% 100%; }
}

/* ========== FLOATING ICE CRYSTALS ========== */
.crystal {
    position: absolute;
    width: 3px;
    height: 3px;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,230,255,0.9), rgba(0,163,224,0.3));
    box-shadow: 0 0 6px rgba(0,163,224,0.4);
    animation: crystal-float 4s ease-in-out infinite;
}
.cr1 { left: 15%; top: 70%; animation-delay: 0s; animation-duration: 3.5s; }
.cr2 { left: 35%; top: 75%; animation-delay: 0.8s; animation-duration: 4.2s; width: 2px; height: 2px; }
.cr3 { left: 55%; top: 68%; animation-delay: 1.6s; animation-duration: 3.8s; }
.cr4 { left: 75%; top: 72%; animation-delay: 0.4s; animation-duration: 4.5s; width: 2px; height: 2px; }
.cr5 { left: 88%; top: 65%; animation-delay: 2s; animation-duration: 3.2s; width: 2px; height: 2px; }
@keyframes crystal-float {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    15%  { opacity: 0.8; }
    50%  { transform: translateY(-20px) scale(0.7); opacity: 0.6; }
    100% { transform: translateY(-35px) scale(0); opacity: 0; }
}

/* ========== GOAL FLASH ========== */
.goal-flash {
    position: absolute;
    inset: 0;
    z-index: 7;
    background: radial-gradient(ellipse at 90% 50%, rgba(239,68,68,0.25), transparent 60%);
    opacity: 0;
    animation: goal-lamp 7s ease infinite;
    pointer-events: none;
}
@keyframes goal-lamp {
    0%, 60% { opacity: 0; }
    65%     { opacity: 0.8; }
    68%     { opacity: 0; }
    71%     { opacity: 0.6; }
    74%     { opacity: 0; }
    100%    { opacity: 0; }
}

/* ========== HOVER EFFECTS ========== */
.hockey-scene:hover .puck-body {
    box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 18px rgba(0,163,224,0.6);
}
.hockey-scene:hover .scene-text-nhl,
.hockey-scene:hover .scene-text-talk {
    filter: drop-shadow(0 0 14px rgba(0,163,224,0.8));
}
.hockey-scene:hover {
    background: linear-gradient(180deg, rgba(0,25,50,0.95) 0%, rgba(0,50,85,0.85) 50%, rgba(0,25,50,0.95) 100%);
}

/* ========== MOBILE ========== */
@media (max-width: 639px) {
    .hockey-scene {
        width: 180px;
        height: 42px;
    }
    .scene-text-nhl { font-size: 16px; letter-spacing: 2px; }
    .scene-text-mid { display: none; }
    .scene-text-talk { font-size: 16px; letter-spacing: 2px; }
    .scene-text { gap: 8px; }
    .puck-body { width: 10px; height: 7px; }
    .rink-line-center { width: 14px; height: 14px; }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .puck, .ice-spray, .hockey-stick, .ice-trail, .crystal,
    .goal-flash, .scene-text-nhl, .scene-text-mid, .scene-text-talk { animation: none !important; }
    .scene-text-nhl, .scene-text-mid, .scene-text-talk { opacity: 1 !important; transform: none !important; }
    .puck { display: none; }
    .ice-spray { display: none; }
    .hockey-stick { display: none; }
    .goal-flash { display: none; }
    .scene-text-nhl, .scene-text-talk {
        -webkit-text-fill-color: unset;
        background: none;
    }
    .scene-text-nhl { color: #ffffff; }
    .scene-text-mid { color: rgba(184,230,255,0.85); }
    .scene-text-talk { color: #00A3E0; }
}