/* Minecraft-inspired styles */
/* Using web-safe fonts instead of missing Minecraftia font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

@font-face {
    font-family: 'Minecraftia';
    src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
    font-display: swap;
}

:root {
    --minecraft-green: #5cb85c;
    --minecraft-blue: #5bc0de;
    --minecraft-accent: #ffcc00;
    --minecraft-red: #d9534f;
    --minecraft-purple: #9b59b6;
    --minecraft-dark: #222222;
    --minecraft-diamond: #55FFFF;
    --minecraft-emerald: #55FF55;
    --minecraft-gold: #FFAA00;
    --minecraft-redstone: #FF5555;
    --minecraft-lapis: #5555FF;
    --minecraft-stone: #828282;
}

* {
    box-sizing: border-box;
}

body.minecraft-bg {
    margin: 0;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    background: #3D2817; /* Fallback color similar to dirt */
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body.minecraft-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: -1;
    animation: backgroundPulse 10s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)); }
    100% { background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)); }
}

/* Banner */
.minecraft-banner {
    background: linear-gradient(to bottom, #4a4a4a, #2d2d2d) center/cover;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    border-bottom: 5px solid var(--minecraft-accent);
    animation: bannerPulse 8s ease-in-out infinite alternate;
}

@keyframes bannerPulse {
    0% { background-position: center center; filter: saturate(1); }
    50% { background-position: center 55%; filter: saturate(1.1); }
    100% { background-position: center center; filter: saturate(1); }
}

.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.3;
    animation: floatParticles 60s linear infinite;
    pointer-events: none;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.banner-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at center, #ffcc00 0%, #ff6600 60%, rgba(255,102,0,0) 100%) no-repeat center/contain;
    filter: drop-shadow(0 0 10px rgba(255, 200, 50, 0.8));
    z-index: 2;
    animation: torchLight 3s ease-in-out infinite alternate;
}

@keyframes torchLight {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 200, 0, 0.5)); }
    100% { filter: brightness(1.3) drop-shadow(0 0 15px rgba(255, 200, 0, 0.8)); }
}

.minecraft-cube-container {
    position: absolute;
    width: 60px;
    height: 60px;
    perspective: 1000px;
    z-index: 5;
}

.minecraft-cube-left {
    top: 20%;
    left: 10%;
    animation: floatCube 8s ease-in-out infinite alternate;
}

.minecraft-cube-right {
    top: 25%;
    right: 10%;
    animation: floatCube 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatCube {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(10px) rotate(360deg); }
}

.minecraft-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.minecraft-cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgba(0,0,0,0.7);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

.minecraft-cube-front {
    background: linear-gradient(45deg, #2d2d2d 25%, #5cbdff 50%, #2d2d2d 75%) center/cover;
    transform: translateZ(30px);
}

.minecraft-cube-back {
    background: linear-gradient(45deg, #2d2d2d 25%, #ffcc00 50%, #2d2d2d 75%) center/cover;
    transform: rotateY(180deg) translateZ(30px);
}

.minecraft-cube-right {
    background: linear-gradient(45deg, #2d2d2d 25%, #50c878 50%, #2d2d2d 75%) center/cover;
    transform: rotateY(90deg) translateZ(30px);
}

.minecraft-cube-left {
    background: linear-gradient(45deg, #2d2d2d 25%, #ff3300 50%, #2d2d2d 75%) center/cover;
    transform: rotateY(-90deg) translateZ(30px);
}

.minecraft-cube-top {
    background: linear-gradient(45deg, #2d2d2d 25%, #0066cc 50%, #2d2d2d 75%) center/cover;
    transform: rotateX(90deg) translateZ(30px);
}

.minecraft-cube-bottom {
    background: linear-gradient(45deg, #2d2d2d 25%, #cccccc 50%, #2d2d2d 75%) center/cover;
    transform: rotateX(-90deg) translateZ(30px);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: floatBanner 5s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.banner-center {
    text-align: center;
    padding: 0 30px;
}

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

.banner-title {
    font-size: 52px;
    color: var(--minecraft-accent);
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    margin: 0 0 15px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.banner-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--minecraft-accent), transparent);
    animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
    0% { opacity: 0.5; box-shadow: 0 0 5px var(--minecraft-accent); }
    50% { opacity: 1; box-shadow: 0 0 15px var(--minecraft-accent); }
    100% { opacity: 0.5; box-shadow: 0 0 5px var(--minecraft-accent); }
}

.banner-subtitle {
    font-size: 18px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    margin: 0 0 15px;
}

/* Banner icons */
.banner-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.banner-icon {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
    animation: iconFloat 3s ease-in-out infinite alternate;
    opacity: 0.9;
    transform-origin: center;
}

.icon-diamond {
    background: radial-gradient(circle, #7df9ff 0%, #00ffff 50%, #00cccc 100%);
    animation-delay: 0s;
    border-radius: 4px;
}

.icon-sword {
    background: linear-gradient(135deg, #cccccc 0%, #eeeeee 50%, #cccccc 100%);
    animation-delay: 0.5s;
    border-radius: 4px;
    position: relative;
}

.icon-sword::before {
    content: '⚔️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

.icon-pickaxe {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    animation-delay: 1s;
    border-radius: 4px;
    position: relative;
}

.icon-pickaxe::before {
    content: '⛏️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

@keyframes iconFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
    100% { transform: translateY(0) rotate(-5deg); }
}

.minecraft-logo {
    max-width: 300px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: glowPulse 2s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.5s ease;
}

.logo-container:hover .minecraft-logo {
    transform: perspective(1000px) rotateX(0deg) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 64, 0.7));
}

@media (max-width: 600px) {
    .minecraft-banner {
        height: 150px;
    }
    .banner-title {
        font-size: 24px;
    }
    .banner-subtitle {
        font-size: 14px;
    }
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.75));
    border: 4px solid var(--minecraft-accent);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    animation: containerGlow 4s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    transform: perspective(3000px);
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.05), rgba(0,0,0,0.05) 2px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 4px);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.container > * {
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(to right, var(--minecraft-dark) 0, var(--minecraft-dark) 8px, var(--minecraft-darker) 8px, var(--minecraft-darker) 16px);
}

@media (max-width: 980px) {
    .container {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
}
.page-divider {
    position: relative;
    height: 40px;
    margin: 20px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-divider::before,
.page-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 3px;
    background: linear-gradient(to var(--direction, right), var(--minecraft-accent), transparent);
    width: 40%;
}

.page-divider::before {
    left: 0;
    --direction: right;
}

.page-divider::after {
    right: 0;
    --direction: left;
}

.divider-gem {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5cbdff 25%, #00a2ff 50%, #5cbdff 75%) no-repeat center/contain;
    position: relative;
    z-index: 2;
    animation: gemRotate 10s linear infinite, gemPulse 3s ease-in-out infinite alternate;
}

@keyframes gemRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gemPulse {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(0, 200, 255, 0.5)); }
    100% { filter: brightness(1.5) drop-shadow(0 0 15px rgba(0, 200, 255, 0.8)); }
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
    padding: 30px;
    border-radius: 15px;
    border: 3px solid var(--minecraft-accent);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.stats-decoration {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    opacity: 0.8;
}

.stats-decoration.left {
    left: 20px;
    top: 20px;
    background-image: url('../images/sword.png');
    transform: rotate(-30deg);
    animation: floatDecoration 4s ease-in-out infinite alternate;
}

.stats-decoration.right {
    right: 20px;
    top: 20px;
    background-image: url('../images/pickaxe.png');
    transform: rotate(30deg);
    animation: floatDecoration 4s ease-in-out infinite alternate-reverse;
}

@keyframes floatDecoration {
    0% { transform: rotate(-30deg) translateY(0); }
    100% { transform: rotate(-25deg) translateY(-10px); }
}

.title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--minecraft-accent);
    text-shadow: 2px 2px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    font-size: 28px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
    flex: 1;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 2px 2px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
    100% { text-shadow: 2px 2px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 10px var(--minecraft-accent); }
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--minecraft-accent);
}

@media (max-width: 600px) {
    .title {
        font-size: 18px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .student-counter {
        margin-top: 15px;
    }
}
.mc-btn {
    display: inline-block;
    background: #3e3e3e repeating-linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 2px, rgba(255,255,255,0) 2px, rgba(255,255,255,0) 4px);
    color: var(--minecraft-green);
    padding: 10px 20px;
    border: 2px solid var(--minecraft-darker);
    border-bottom: 4px solid var(--minecraft-darker);
    cursor: pointer;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    font-size: 14px;
    text-shadow: 1px 1px #000;
    text-decoration: none;
    text-align: center;
    transition: all 0.1s ease;
    position: relative;
    min-width: 100px;
}

.mc-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    border-bottom-width: 6px;
}

.mc-btn:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

@media (max-width: 600px) {
    .mc-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}
.hidden { display:none; }

/* Participant Cards */
.participants-list .participant-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    margin-top: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--minecraft-green), var(--minecraft-blue), var(--minecraft-accent), var(--minecraft-red), var(--minecraft-purple));
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 3s linear infinite;
    background-size: 400% 400%;
}

.participant-card:hover::before {
    opacity: 1;
}

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

.participant-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.stage1-icon {
    background-image: url('../images/sword.png');
    filter: drop-shadow(0 0 3px var(--minecraft-accent));
}

.stage2-icon {
    background-image: url('../images/pickaxe.png');
    filter: drop-shadow(0 0 3px var(--minecraft-blue));
}

.stage3-icon {
    background-image: url('../images/diamond.png');
    filter: drop-shadow(0 0 3px var(--minecraft-diamond));
}

.stage4-icon {
    background-image: url('../images/emerald.png');
    filter: drop-shadow(0 0 3px var(--minecraft-emerald));
}

.participants-list .participant-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: -1;
    animation: backgroundPulse 10s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)); }
    100% { background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)); }
}

.participants-list .participant-info {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.participants-list .participant-avatar {
    width: 50px;
    height: 50px;
    background: #8b5a2b no-repeat center/cover;
    border: 3px solid var(--minecraft-dark);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.participants-list .participant-card:hover .participant-avatar {
    transform: scale(1.05);
    border-color: var(--minecraft-accent);
    box-shadow: 0 3px 15px rgba(255,255,64,0.3);
}

.participants-list .participant-name {
    font-weight: bold;
    color: #fff;
    margin-left: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
}

.participants-list .participant-stage {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.participants-list .participant-card:hover .participant-stage {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

/* Minecraft loader */
.minecraft-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.loader-block {
    width: 40px;
    height: 40px;
    background: #3D2817 repeat;
    animation: rotate 2s infinite linear, pulse 1.5s infinite alternate;
    image-rendering: pixelated;
    border: 3px solid #000;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1);
}

.loader-text {
    margin-top: 15px;
    color: var(--minecraft-accent);
    animation: blink 1s infinite alternate;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.2) rotate(360deg); }
}

@keyframes blink {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* No participants message */
.no-participants {
    text-align: center;
    padding: 30px;
    background: rgba(0,0,0,0.5);
    border: 2px dashed var(--minecraft-stone);
    color: var(--minecraft-accent);
}

/* Student Counter */
.student-counter {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border: 2px solid var(--minecraft-dark);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.counter-label {
    font-size: 14px;
    color: var(--minecraft-accent);
}

.counter-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--minecraft-accent);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Leaderboard enhancements */
.tier-container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 64, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.medal {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.leader-name {
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.leader-score {
    font-size: 12px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Tier animations */
.tier-highlight {
    animation: glow 1.5s ease-in-out;
}

@keyframes glow {
    0% { transform: scale(1); text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { transform: scale(1.1); text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 64, 0.6); }
    100% { transform: scale(1); text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
}

/* Enhanced tier styles */
.tier-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
}

.tier-box {
    position: relative;
    width: 30%;
    min-width: 150px;
    margin-bottom: 40px;
    padding: 15px;
    text-align: center;
    border: 3px solid;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.tier-box.gold {
    border-color: #FFD700;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.3), rgba(184, 134, 11, 0.3));
}

.tier-box.silver {
    border-color: #C0C0C0;
    background: linear-gradient(to bottom, rgba(192, 192, 192, 0.3), rgba(105, 105, 105, 0.3));
}

.tier-box.bronze {
    border-color: #CD7F32;
    background: linear-gradient(to bottom, rgba(205, 127, 50, 0.3), rgba(139, 69, 19, 0.3));
}

.tier-medal {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.tier-box.gold .tier-medal {
    color: #FFD700;
}

.tier-box.silver .tier-medal {
    color: #C0C0C0;
}

.tier-box.bronze .tier-medal {
    color: #CD7F32;
}

.tier-name {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tier-score {
    font-size: 14px;
    color: var(--minecraft-accent);
}

.tier-box.active {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.tier-box.gold.active {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.6);
}

.tier-box.silver.active {
    box-shadow: 0 10px 25px rgba(192, 192, 192, 0.4), 0 0 15px rgba(192, 192, 192, 0.6);
}

.tier-box.bronze.active {
    box-shadow: 0 10px 25px rgba(205, 127, 50, 0.4), 0 0 15px rgba(205, 127, 50, 0.6);
}

.tier-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Fireworks */
.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
}

#firework1 {
    background: radial-gradient(circle, rgba(255,215,0,1) 0%, rgba(255,215,0,0) 70%);
}

#firework2 {
    background: radial-gradient(circle, rgba(192,192,192,1) 0%, rgba(192,192,192,0) 70%);
}

#firework3 {
    background: radial-gradient(circle, rgba(205,127,50,1) 0%, rgba(205,127,50,0) 70%);
}

.firework-active {
    animation: firework 1.5s ease-out forwards;
}

@keyframes firework {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(40);
        opacity: 0;
    }
}

/* Enhanced fireworks effects */
.firework-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    z-index: 2;
}

.particle-gold {
    background: #FFD700;
    box-shadow: 0 0 6px 2px rgba(255, 215, 0, 0.8);
}

.particle-silver {
    background: #C0C0C0;
    box-shadow: 0 0 6px 2px rgba(192, 192, 192, 0.8);
}

.particle-bronze {
    background: #CD7F32;
    box-shadow: 0 0 6px 2px rgba(205, 127, 50, 0.8);
}

.particle-active {
    animation: particle 2s ease-out forwards;
}

@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Fire effect for tiers */
.fire-effect {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 69, 0, 0.8), rgba(255, 140, 0, 0.4), transparent);
    border-radius: 50% 50% 0 0;
    filter: blur(2px);
    opacity: 0;
    z-index: -1;
}

.fire-gold {
    background: linear-gradient(to top, rgba(255, 215, 0, 0.8), rgba(255, 140, 0, 0.4), transparent);
}

.fire-silver {
    background: linear-gradient(to top, rgba(192, 192, 192, 0.8), rgba(169, 169, 169, 0.4), transparent);
}

.fire-bronze {
    background: linear-gradient(to top, rgba(205, 127, 50, 0.8), rgba(210, 105, 30, 0.4), transparent);
}

.fire-active {
    animation: fire 2s ease-in-out infinite alternate;
}

@keyframes fire {
    0% {
        opacity: 0.4;
        height: 30px;
        transform: scaleX(0.8);
    }
    100% {
        opacity: 0.7;
        height: 45px;
        transform: scaleX(1.1);
    }
}

/* Load more button styling */
#load-more {
    display: block;
    margin: 20px auto;
    min-width: 150px;
}

/* Search and filters */
.search-filters {
    margin-bottom: 25px;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border: 2px solid var(--minecraft-dark);
    border-radius: 6px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.search-filters::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--minecraft-green), transparent);
    opacity: 0.5;
}

.search-box {
    display: flex;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    background: #2b2b2b;
    border: 2px solid #444;
    color: #fff;
    margin-right: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.search-input:focus {
    border-color: var(--minecraft-green);
    outline: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 0 8px rgba(84, 199, 84, 0.4);
}

.search-btn {
padding: 8px 15px;
}

.filter-container {
background: rgba(0, 0, 0, 0.6);
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
border: 2px solid var(--minecraft-dark);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.filter-options {
display: flex;
gap: 15px;
flex-wrap: wrap;
justify-content: center;
}

.filter-btn {
background: var(--minecraft-dark);
color: #fff;
border: 2px solid var(--minecraft-darker);
padding: 12px 24px;
font-family: 'Minecraftia', 'Press Start 2P', monospace;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.filter-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
transition: 0.5s;
}

.filter-btn:hover::before {
left: 100%;
}

.filter-btn:hover {
background: var(--minecraft-darker);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.filter-btn.active {
background: var(--minecraft-green);
color: var(--minecraft-darker);
font-weight: bold;
border-color: var(--minecraft-accent);
text-shadow: 1px 1px rgba(0,0,0,0.5);
}

.mc-btn {
background: var(--minecraft-green);
color: #fff;
border: none;
padding: 12px 25px;
font-family: 'Minecraftia', 'Press Start 2P', monospace;
cursor: pointer;
transition: all 0.3s ease;
display: block;
margin: 20px auto;
text-align: center;
text-decoration: none;
border: 2px solid #333;
border-radius: 5px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 0 #333;
    border: none;
    padding: 12px 25px;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto;
    text-align: center;
    text-decoration: none;
    border: 2px solid #333;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 #333;
}

.mc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.mc-btn:hover::before {
    left: 100%;
}

.mc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #333;
}

.mc-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #333;
}

.filter-btn {
    background: #555;
    color: #fff;
    border: 2px solid #333;
    padding: 8px 15px;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.5s ease;
}
@media (max-width: 600px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .filter-options {
        justify-content: center;
    }
}

/* Tabs */
.minecraft-tabs {
    display: flex;
    margin: 40px 0 20px;
    border-bottom: 3px solid var(--minecraft-accent);
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
}

.tab-decoration {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #006666 0%, #004444 70%, #002222 100%) no-repeat center/contain;
    margin: 0 15px;
    animation: rotateSlow 10s linear infinite;
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    background: linear-gradient(to bottom, var(--minecraft-dark), #000);
    color: #aaa;
    margin: 0 5px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--minecraft-dark);
    border-bottom: none;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.tab:hover {
    transform: perspective(1000px) translateY(-5px);
    color: #fff;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.3);
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.tab:hover::before {
    left: 100%;
}

.tab.active {
    background: linear-gradient(to bottom, var(--minecraft-accent), #d4a400);
    color: #000;
    border-bottom: 3px solid var(--minecraft-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: tabActivate 0.3s ease-out;
}

@keyframes tabActivate {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
    100% { transform: translateY(-3px) scale(1); }
}

.minecraft-tabs::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.tab-content {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--minecraft-dark);
    margin-bottom: 20px;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

/* Participants header and legend */
.participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--minecraft-accent);
    position: relative;
    overflow: hidden;
}

.header-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-gem {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ff3300 0%, #cc0000 70%, #990000 100%) no-repeat center/contain;
    margin: 0 15px;
    animation: gemPulse 2s ease-in-out infinite alternate;
}

.section-title {
    color: var(--minecraft-accent);
    margin: 0;
    font-size: 24px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--minecraft-accent);
    transition: width 0.5s ease;
}

.header-content:hover .section-title::after {
    width: 100%;
}

.participants-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.participants-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-icon {
    width: 15px;
    height: 15px;
    border: 1px solid #333;
}

.legend-icon.stage1 { background: #54c754; }
.legend-icon.stage2 { background: #5454ff; }
.legend-icon.stage3 { background: #ff5454; }
.legend-icon.stage4 { background: #ffff54; }

.legend-item span {
    font-size: 12px;
    color: #fff;
}

@media (max-width: 768px) {
    .participants-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .participants-legend {
        margin-top: 10px;
    }
}

/* About section */
.about-content {
    padding: 20px;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
}

.about-icon {
    width: 50px;
    height: 50px;
    background-image: url('../images/diamond.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-dark);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--minecraft-accent), transparent);
    opacity: 0.5;
}

.about-subtitle {
    color: var(--minecraft-accent);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stage-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--minecraft-dark);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.stage1-card { border-top: 3px solid #54c754; }
.stage2-card { border-top: 3px solid #5454ff; }
.stage3-card { border-top: 3px solid #ff5454; }
.stage4-card { border-top: 3px solid #ffff54; }

.stage-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    text-shadow: none;
}

.stage1-card .stage-number { background-color: #54c754; }
.stage2-card .stage-number { background-color: #5454ff; color: #fff; }
.stage3-card .stage-number { background-color: #ff5454; }
.stage4-card .stage-number { background-color: #ffff54; }

.stage-card h5 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.stage-card p {
    margin: 0;
    font-size: 14px;
    color: #aaa;
}

.about-footer {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-dark);
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    margin-top: 20px;
}

.about-footer p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
}

.view-leaderboard-btn {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .stages-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .stages-grid {
        grid-template-columns: 1fr;
    }
}

.about-content h2 {
    color: var(--minecraft-accent);
    text-align: center;
    margin-bottom: 20px;
}

.minecraft-item {
    display: flex;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border: 2px solid var(--minecraft-dark);
}

.item-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border: 2px solid #333;
    position: relative;
}

.item-icon.stage1 { background: #54c754; }
.item-icon.stage2 { background: #5454ff; }
.item-icon.stage3 { background: #ff5454; }
.item-icon.stage4 { background: #ffff54; }

.item-desc h3 {
    margin-top: 0;
    color: var(--minecraft-accent);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--minecraft-dark);
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--minecraft-green), #2a8a2a);
    border-radius: 5px;
    border: 2px solid var(--minecraft-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--minecraft-accent), #d4d430);
}

::-webkit-scrollbar-corner {
    background: var(--minecraft-dark);
}

.top-bar {
    background: var(--minecraft-dark);
    padding: 10px;
    border-bottom: 4px solid var(--minecraft-darker);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.top-bar nav {
    max-width: 960px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 600px) {
    .top-bar nav {
        flex-direction: column;
        align-items: center;
    }
    
    .top-bar nav .mc-btn {
        width: 100%;
        float: none !important;
        margin-bottom: 5px;
    }
}

.admin-container {
    max-width: 1000px;
    margin: 20px auto;
}

.admin-content {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--minecraft-dark);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.admin-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/noise.png');
    opacity: 0.05;
    pointer-events: none;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--minecraft-dark);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.login-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
}

.login-icon {
    width: 40px;
    height: 40px;
    background-image: url('../images/diamond.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
    animation: rotate 10s linear infinite;
}

.error-message {
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid #ff3232;
    color: #ff5555;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.error-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/sword.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
    transform: rotate(45deg);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 16px;
}

.minecraft-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--minecraft-dark);
    border-radius: 4px;
    color: #fff;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
}

.minecraft-input:focus {
    border-color: var(--minecraft-accent);
    outline: none;
    box-shadow: 0 0 10px rgba(78, 156, 78, 0.5);
}

.minecraft-input::placeholder {
    color: #555;
}

.login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/pickaxe.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 10px;
    vertical-align: middle;
    transform: translateY(-2px);
}

.admin-dashboard {
    padding: 10px;
}

/* Search and View All Styles */
.search-wrapper,
.view-all-wrapper,
.select-wrapper {
    margin-bottom: 15px;
    position: relative;
}

.search-wrapper label,
.view-all-wrapper label,
.select-wrapper label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

#participant-search {
    width: 100%;
    padding: 10px;
    border: 3px solid #555;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Minecraftia', sans-serif;
    margin-bottom: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

#participant-search:focus {
    border-color: #8bc34a;
    outline: none;
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.5);
}

#all-participants {
    width: 100%;
    padding: 8px;
    border: 3px solid #555;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Minecraftia', sans-serif;
    margin-bottom: 15px;
    cursor: pointer;
}

#all-participants option {
    background-color: #333;
    color: #fff;
    padding: 8px;
}

.admin-welcome {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--minecraft-dark);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.admin-welcome::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--minecraft-accent), transparent);
}

.admin-welcome h2 {
    margin-top: 0;
    color: var(--minecraft-accent);
    font-size: 24px;
    margin-bottom: 10px;
}

.admin-welcome p {
    margin-bottom: 0;
    color: #aaa;
    font-size: 16px;
}

.admin-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-dark);
    border-radius: 6px;
    padding: 20px;
}

.admin-level {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--minecraft-dark);
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 10px;
    font-size: 18px;
    color: #ffff54;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    vertical-align: middle;
}

/* Animated Minecraft dirt texture effect */
.minecraft-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #3D2817 25%, #2a1c10 50%, #3D2817 75%);
    background-size: 100px 100px;
    opacity: 0.05;
    pointer-events: none;
    animation: dirtShift 120s linear infinite;
    z-index: -1;
}

@keyframes dirtShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(0, -40px); }
    75% { transform: translate(-20px, -20px); }
    100% { transform: translate(0, 0); }
}

.admin-form {
    max-width: 350px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--minecraft-stone);
    position: relative;
}

.admin-form::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--minecraft-darker);
    z-index: -1;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--minecraft-accent);
    text-shadow: 1px 1px #000;
}

.admin-form input {
    margin-top: 5px;
    padding: 8px;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    background: #2b2b2b;
    border: 2px solid #444;
    border-bottom: 3px solid #444;
    color: #fff;
    transition: all 0.2s ease;
}

.admin-form input:focus {
    outline: none;
    border-color: var(--minecraft-green);
    box-shadow: 0 0 5px rgba(84, 199, 84, 0.5);
}

/* Admin sections */
.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.header-decoration {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 15px;
}

.header-decoration.left {
    background-image: url('../images/emerald.png');
    animation: spinDecoration 6s linear infinite;
}

.header-decoration.right {
    background-image: url('../images/emerald.png');
    animation: spinDecoration 6s linear infinite reverse;
}

@keyframes spinDecoration {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-section {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-dark);
}

.admin-section h3 {
    color: var(--minecraft-accent);
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.select-wrapper {
    margin-bottom: 15px;
}

.select-wrapper label {
    display: block;
    margin-bottom: 5px;
    color: var(--minecraft-accent);
}

.minecraft-select {
    width: 100%;
    padding: 8px;
    background: #2b2b2b;
    border: 2px solid #444;
    color: #fff;
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    font-size: 12px;
    margin-bottom: 15px;
}

.pass-btn {
    background-color: var(--minecraft-green);
    width: 100%;
}

/* Notification */
.minecraft-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.8);
    color: var(--minecraft-accent);
    padding: 15px 20px;
    border: 2px solid var(--minecraft-dark);
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    font-size: 14px;
    z-index: 1000;
    transition: transform 0.3s ease;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.minecraft-notification.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 400px) {
    .admin-form {
        max-width: 100%;
        padding: 15px;
    }
    
    .minecraft-notification {
        width: 90%;
        font-size: 12px;
        padding: 10px;
    }
}
.leaderboard {
    margin-bottom: 30px;
    position: relative;
}

.leaderboard h2 {
    text-align: center;
    color: var(--minecraft-accent);
    margin: 0 20px;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    position: relative;
    padding-bottom: 5px;
    animation: titlePulse 3s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.leaderboard h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--minecraft-accent);
    box-shadow: 0 0 10px var(--minecraft-accent);
}

.leaderboard ol {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.leaderboard li {
    background: rgba(43, 43, 43, 0.8);
    padding: 15px;
    border: 2px solid #444;
    min-width: 150px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.leaderboard li:hover {
    transform: translateY(-5px);
}

.leaderboard li:nth-child(1) {
    border-color: gold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.leaderboard li:nth-child(2) {
    border-color: silver;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.leaderboard li:nth-child(3) {
    border-color: #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

@media (max-width: 600px) {
    .leaderboard li {
        flex: 1 0 calc(50% - 15px);
        min-width: 120px;
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .leaderboard ol {
        flex-direction: column;
        align-items: center;
    }
    
    .leaderboard li {
        width: 80%;
    }
}
.participant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    margin-bottom: 2px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    min-height: 25px;
}

.participant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--minecraft-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.participant:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.participant:hover::before {
    opacity: 1;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.participant-name {
    font-weight: bold;
    position: relative;
    padding-left: 1px;
    font-size: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.participant-name::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--minecraft-accent);
    transition: width 0.3s ease;
}

.participant:hover .participant-name::after {
    width: 100%;
}

.participant-age {
    color: #aaa;
    font-size: 6px;
    background: rgba(0,0,0,0.2);
    padding: 1px 2px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.participant-stages {
    display: flex;
    gap: 1px;
    background: rgba(0,0,0,0.2);
    padding: 1px 2px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stage {
    width: 10px;
    height: 10px;
    border: 1px solid #333;
    border-radius: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.stage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.participant:hover .stage {
    transform: scale(1.1);
}

.stage.completed {
    background: var(--minecraft-green);
    animation: pulseStage 2s infinite;
}

@keyframes pulseStage {
    0% { box-shadow: 0 0 0 0 rgba(84, 199, 84, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(84, 199, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(84, 199, 84, 0); }
}

@media (max-width: 500px) {
    .participant {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .stages {
        align-self: center;
    }
}
.stages {
    display: flex;
    gap: 8px;
}

.stage-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #555;
    border: 2px solid #333;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.stage-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.stage-icon.active1 { 
    background: #54c754; 
    box-shadow: 0 0 5px #54c754;
}

.stage-icon.active2 { 
    background: #5454ff; 
    box-shadow: 0 0 5px #5454ff;
}

.stage-icon.active3 { 
    background: #ff5454; 
    box-shadow: 0 0 5px #ff5454;
}

.stage-icon.active4 { 
    background: #ffff54; 
    box-shadow: 0 0 5px #ffff54;
}

@media (max-width: 400px) {
    .stages {
        gap: 5px;
    }
    
    .stage-icon {
        width: 20px;
        height: 20px;
    }
}
