/* ============================================
   BLAKER SHAKER'S GAME GROTTO
   True Cave/Grotto Theme - Cyan & Orange
   ============================================ */

:root {
    --cyan: #00f5ff;
    --cyan-dark: #00b8c4;
    --cyan-glow: rgba(0, 245, 255, 0.8);
    --orange: #ff6b2b;
    --orange-dark: #cc5522;
    --orange-glow: rgba(255, 107, 43, 0.8);
    --cave-darkest: #05080a;
    --cave-dark: #0a1015;
    --cave-mid: #151d24;
    --cave-rock: #1e2830;
    --cave-rock-light: #2a3640;
    --text: #e8e8e8;
    --text-dim: #7a8a94;
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: var(--cave-darkest);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
}

/* ============================================
   CAVE ENVIRONMENT - LAYERED BACKGROUND
   ============================================ */

.cave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Rock texture layer */
.cave-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Ambient cave glow */
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 245, 255, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255, 107, 43, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 107, 43, 0.04) 0%, transparent 50%),
        /* Rock texture simulation */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(30, 40, 48, 0.3) 1px,
            transparent 2px,
            transparent 40px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(30, 40, 48, 0.2) 1px,
            transparent 2px,
            transparent 60px
        ),
        /* Depth gradient */
        linear-gradient(180deg,
            var(--cave-darkest) 0%,
            var(--cave-dark) 20%,
            var(--cave-mid) 50%,
            var(--cave-dark) 80%,
            var(--cave-darkest) 100%
        );
}

/* Cave ceiling darkness */
.cave-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 100%
    );
}

/* ============================================
   STALACTITES - HANGING FROM CEILING
   ============================================ */

.stalactites {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 1;
}

.stalactite {
    width: 60px;
    background: linear-gradient(180deg,
        #3a4550 0%,
        var(--cave-rock-light) 20%,
        var(--cave-rock) 60%,
        var(--cave-mid) 100%
    );
    clip-path: polygon(
        0% 0%,
        100% 0%,
        90% 15%,
        75% 40%,
        60% 70%,
        50% 100%,
        40% 70%,
        25% 40%,
        10% 15%
    );
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7));
}

.stalactite:nth-child(1) { height: 100px; width: 50px; }
.stalactite:nth-child(2) { height: 160px; width: 70px; }
.stalactite:nth-child(3) { height: 80px; width: 40px; }
.stalactite:nth-child(4) { height: 200px; width: 80px; }
.stalactite:nth-child(5) { height: 120px; width: 55px; }
.stalactite:nth-child(6) { height: 150px; width: 65px; }
.stalactite:nth-child(7) { height: 90px; width: 45px; }
.stalactite:nth-child(8) { height: 180px; width: 75px; }
.stalactite:nth-child(9) { height: 110px; width: 50px; }
.stalactite:nth-child(10) { height: 140px; width: 60px; }

/* ============================================
   GLOWING CRYSTALS - LARGE AND VISIBLE
   ============================================ */

.crystal {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: crystal-glow 3s ease-in-out infinite;
}

.crystal-cyan {
    background: linear-gradient(180deg,
        rgba(0, 245, 255, 0.9) 0%,
        rgba(0, 184, 196, 0.7) 50%,
        rgba(0, 100, 120, 0.5) 100%
    );
    box-shadow:
        0 0 30px var(--cyan-glow),
        0 0 60px var(--cyan-glow),
        0 0 90px rgba(0, 245, 255, 0.4);
}

.crystal-orange {
    background: linear-gradient(180deg,
        rgba(255, 107, 43, 0.9) 0%,
        rgba(204, 85, 34, 0.7) 50%,
        rgba(120, 50, 20, 0.5) 100%
    );
    box-shadow:
        0 0 30px var(--orange-glow),
        0 0 60px var(--orange-glow),
        0 0 90px rgba(255, 107, 43, 0.4);
}

.crystal-1 { left: 3%; top: 25%; width: 50px; height: 90px; transform: rotate(-15deg); }
.crystal-2 { left: 8%; top: 55%; width: 35px; height: 60px; transform: rotate(10deg); animation-delay: 0.5s; }
.crystal-3 { right: 3%; top: 20%; width: 55px; height: 100px; transform: rotate(20deg); animation-delay: 1s; }
.crystal-4 { right: 7%; top: 60%; width: 40px; height: 70px; transform: rotate(-10deg); animation-delay: 1.5s; }
.crystal-5 { left: 15%; bottom: 10%; width: 30px; height: 50px; transform: rotate(5deg); animation-delay: 0.8s; }
.crystal-6 { right: 15%; bottom: 8%; width: 45px; height: 75px; transform: rotate(-8deg); animation-delay: 1.2s; }

@keyframes crystal-glow {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* ============================================
   TORCHES - WALL MOUNTED WITH FLICKERING
   ============================================ */

.torch {
    position: absolute;
    width: 20px;
    height: 60px;
}

.torch-bracket {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 40px;
    background: linear-gradient(90deg, #3a3a3a 0%, #5a5a5a 50%, #3a3a3a 100%);
    border-radius: 2px;
}

.torch-flame {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 35px;
    background: radial-gradient(ellipse at bottom,
        #fff 0%,
        #ffcc00 20%,
        var(--orange) 50%,
        #ff3300 80%,
        transparent 100%
    );
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.15s infinite alternate;
}

.torch-glow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle,
        rgba(255, 107, 43, 0.3) 0%,
        rgba(255, 107, 43, 0.1) 40%,
        transparent 70%
    );
    animation: torch-pulse 2s ease-in-out infinite;
}

.torch-left { left: 30px; top: 30%; }
.torch-right { right: 30px; top: 30%; }

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 1; }
    25% { transform: translateX(-50%) scale(1.05) rotate(1deg); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(0.95) rotate(-1deg); opacity: 1; }
    75% { transform: translateX(-50%) scale(1.02) rotate(2deg); opacity: 0.95; }
    100% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 1; }
}

@keyframes torch-pulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* ============================================
   FLOATING PARTICLES / CAVE DUST
   ============================================ */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 13s; }
.particle:nth-child(6) { left: 75%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 85%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(8) { left: 90%; animation-delay: 4s; animation-duration: 19s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(80vh) scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* ============================================
   CAVE ENTRANCE FRAME
   ============================================ */

.cave-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    border: 50px solid;
    border-image: linear-gradient(
        180deg,
        #1a2228 0%,
        #2a3640 15%,
        #3a4650 30%,
        #2a3640 50%,
        #3a4650 70%,
        #2a3640 85%,
        #1a2228 100%
    ) 1;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.5),
        inset 0 0 120px rgba(0, 0, 0, 0.3);
}

/* Rocky texture overlay on frame */
.cave-frame::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    border: 50px solid transparent;
    background:
        linear-gradient(135deg, rgba(60, 70, 80, 0.3) 25%, transparent 25%),
        linear-gradient(225deg, rgba(60, 70, 80, 0.3) 25%, transparent 25%),
        linear-gradient(45deg, rgba(60, 70, 80, 0.3) 25%, transparent 25%),
        linear-gradient(315deg, rgba(60, 70, 80, 0.3) 25%, transparent 25%);
    background-size: 20px 20px;
    background-clip: border-box;
    -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;
}

/* Inner shadow for depth */
.cave-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow:
        inset 0 0 40px rgba(0, 245, 255, 0.03),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER - NEON CAVE SIGN
   ============================================ */

.header {
    text-align: center;
    padding: 20px 0 50px;
}

.logo-container {
    position: relative;
    display: inline-block;
}

/* Subtle glow behind the logo */
.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(ellipse at center,
        rgba(255, 136, 68, 0.3) 0%,
        rgba(255, 107, 43, 0.15) 40%,
        transparent 70%
    );
    z-index: 0;
    filter: blur(25px);
}

/* Extra glow backdrop - hidden on mobile */
.logo-glow-backdrop {
    display: none;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-top {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(20px, 4.5vw, 36px);
    color: #00f5ff;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
    letter-spacing: 8px;
    position: relative;
    z-index: 2;
}

.logo-bottom {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(32px, 8vw, 72px);
    color: #ff6b2b;
    text-shadow:
        0 0 30px rgba(255, 107, 43, 0.4),
        3px 3px 0 rgba(0, 0, 0, 0.9);
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.6; }
}

@keyframes neon-pulse {
    0%, 100% {
        filter: brightness(1);
        text-shadow:
            0 0 10px var(--orange-glow),
            0 0 30px var(--orange-glow),
            0 0 60px var(--orange-glow),
            0 0 100px var(--orange),
            6px 6px 0 rgba(0, 0, 0, 0.5);
    }
    50% {
        filter: brightness(1.2);
        text-shadow:
            0 0 20px var(--orange-glow),
            0 0 50px var(--orange-glow),
            0 0 100px var(--orange-glow),
            0 0 150px var(--orange),
            6px 6px 0 rgba(0, 0, 0, 0.5);
    }
}

@keyframes neon-pulse-bright {
    0%, 100% {
        filter: brightness(1);
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px #ff8844,
            0 0 40px #ff6b2b,
            0 0 80px #ff6b2b,
            0 0 120px #ff6b2b,
            6px 6px 0 rgba(0, 0, 0, 0.8);
    }
    50% {
        filter: brightness(1.3);
        text-shadow:
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 40px #ffaa44,
            0 0 80px #ff8844,
            0 0 140px #ff6b2b,
            0 0 200px #ff4400,
            6px 6px 0 rgba(0, 0, 0, 0.8);
    }
}

.tagline {
    margin-top: 25px;
    font-size: clamp(12px, 2vw, 16px);
    color: #a8b8c8;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   GAMES SECTION
   ============================================ */

.games-section {
    flex: 1;
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(14px, 2.5vw, 20px);
    color: var(--cyan);
    margin-bottom: 40px;
    letter-spacing: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 20px var(--cyan-glow);
}

.neon-icon {
    font-size: 1.2em;
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px var(--cyan)); }
    50% { filter: brightness(1.5) drop-shadow(0 0 15px var(--cyan)); }
}

/* ============================================
   GAME GRID
   ============================================ */

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   GAME CARDS - STONE TABLET STYLE
   ============================================ */

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg,
        var(--cave-rock-light) 0%,
        var(--cave-rock) 50%,
        var(--cave-mid) 100%
    );
    border: 3px solid var(--cave-rock-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-card.active {
    cursor: pointer;
    border-color: var(--cyan);
    box-shadow:
        0 0 30px rgba(0, 245, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(0, 245, 255, 0.05);
}

.game-card.active:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--orange);
    box-shadow:
        0 0 50px rgba(255, 107, 43, 0.5),
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(255, 107, 43, 0.1);
}

/* Mobile tap feedback */
.game-card.active:active {
    transform: scale(0.98);
    border-color: var(--orange);
    box-shadow:
        0 0 40px rgba(255, 107, 43, 0.6),
        0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.game-card.coming-soon {
    opacity: 0.5;
    border-color: var(--cave-mid);
}

.game-card.coming-soon:hover {
    opacity: 0.7;
    transform: translateY(-5px);
}

.game-card-inner {
    position: relative;
    padding: 15px;
}

/* ============================================
   GAME THUMBNAIL
   ============================================ */

.game-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cave-darkest);
    border: 2px solid var(--cave-rock-light);
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.game-card.active:hover .game-thumbnail img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Mystery thumbnail */
.thumbnail-placeholder.mystery {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cave-mid) 0%, var(--cave-darkest) 100%);
    position: relative;
}

.mystery-icon {
    font-size: 60px;
    color: var(--cyan);
    opacity: 0.2;
    font-family: 'Press Start 2P', cursive;
    animation: mystery-pulse 3s ease-in-out infinite;
}

@keyframes mystery-pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* Gem Smash thumbnail */
.thumbnail-placeholder.gem-smash-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1520 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.thumbnail-placeholder.gem-smash-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 136, 68, 0.15) 0%, transparent 40%);
}

.gem-icon {
    font-size: 70px;
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.8)) drop-shadow(0 0 40px rgba(0, 245, 255, 0.4));
    animation: gem-float 2s ease-in-out infinite;
    z-index: 1;
}

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

/* Play overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card.active:hover .play-overlay {
    opacity: 1;
}

/* Mobile: hide play overlay completely - just tap to play */
@media (hover: none) {
    .play-overlay {
        display: none;
    }
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow:
        0 0 40px var(--orange-glow),
        0 0 80px rgba(255, 107, 43, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-left: 5px;
}

.game-card.active:hover .play-button {
    transform: scale(1.15);
    box-shadow:
        0 0 60px var(--orange-glow),
        0 0 100px rgba(255, 107, 43, 0.5);
}

.play-overlay span {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--orange);
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--orange-glow);
}

/* ============================================
   GAME INFO
   ============================================ */

.game-info {
    padding: 15px 5px 5px;
}

.game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(12px, 1.8vw, 16px);
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.game-card.active .game-title {
    color: var(--cyan);
    text-shadow: 0 0 15px var(--cyan-glow);
}

.game-card.active:hover .game-title {
    color: var(--orange);
    text-shadow: 0 0 20px var(--orange-glow);
}

.game-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 12px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 5px 10px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    font-size: 9px;
    color: var(--cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mystery-tag {
    color: var(--text-dim);
    border: 1px dashed var(--text-dim);
    background: transparent;
}

/* ============================================
   GAME STATUS BADGE
   ============================================ */

.game-status {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.game-status.live {
    background: rgba(0, 255, 100, 0.15);
    color: #00ff64;
    border: 2px solid #00ff64;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.3);
}

.game-status.soon {
    background: rgba(255, 107, 43, 0.15);
    color: var(--orange);
    border: 1px solid var(--orange);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.game-status.live .status-dot {
    background: #00ff64;
    box-shadow: 0 0 10px #00ff64;
}

.game-status.soon .status-dot {
    background: var(--orange);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   PORTAL LEADERBOARD
   ============================================ */

.leaderboard-section {
    padding: 40px 0;
}

.portal-leaderboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.leaderboard-column {
    background: rgba(10, 16, 21, 0.9);
    border: 2px solid var(--cyan);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.column-header {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    padding: 15px;
    text-align: center;
    letter-spacing: 2px;
}

.bottle-blast-header {
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.3) 0%, rgba(139, 90, 43, 0.3) 100%);
    color: var(--orange);
    border-bottom: 2px solid var(--orange);
}

.gem-smash-header {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(0, 100, 120, 0.2) 100%);
    color: var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.game-icon {
    margin-right: 8px;
}

.column-scores {
    padding: 15px;
    min-height: 150px;
}

.score-row {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score-row:last-child {
    border-bottom: none;
}

.score-row .rank {
    color: #ffd700;
    font-weight: bold;
    width: 30px;
}

.score-row .name {
    flex: 1;
    color: var(--text);
}

.score-row .score {
    color: var(--cyan);
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
}

.no-scores,
.loading-scores {
    text-align: center;
    color: var(--text-dim);
    font-size: 11px;
    padding: 30px 0;
}

@media (max-width: 600px) {
    .portal-leaderboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .column-header {
        font-size: 10px;
    }
}

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

.footer {
    text-align: center;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--cyan-glow);
    margin-bottom: 8px;
}

.footer-sub {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .cave-frame {
        border-width: 20px;
    }

    .container {
        padding: 40px 20px;
    }

    .torch-left, .torch-right {
        display: none;
    }

    .crystal-1, .crystal-3 {
        width: 35px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header {
        padding: 10px 0 30px;
    }

    .logo-top {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .logo-bottom {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 11px;
        letter-spacing: 2px;
        margin-top: 15px;
    }

    .section-title {
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 25px;
    }

    .cave-frame {
        border-width: 15px;
    }

    .stalactites {
        height: 100px;
    }

    .stalactite {
        transform: scale(0.5);
        transform-origin: top center;
    }
}

@media (max-width: 600px) {
    .cave-frame {
        border-width: 10px;
    }

    .container {
        padding: 20px 10px;
    }

    .stalactite {
        display: none;
    }

    .stalactite:nth-child(2),
    .stalactite:nth-child(4),
    .stalactite:nth-child(6),
    .stalactite:nth-child(8) {
        display: block;
    }

    .crystal {
        width: 25px !important;
        height: 45px !important;
    }

    .header {
        padding: 10px 0 30px;
    }
}
