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

body {
    font-family: 'Comic Neue', cursive, sans-serif;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: white;
}

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

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

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 60px 60px 20px 20px;
    backdrop-filter: blur(10px);
    border: 4px solid white;
    box-shadow: 0 10px 0 rgba(0,0,0,0.1);
}

h1 {
    font-size: 36px;
    text-shadow: 4px 4px 0 #ff6b6b;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

#refresh-btn {
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    background: #ffffff33;
    color: white;
    border: 3px solid white;
    border-radius: 50px;
    padding: 10px 22px;
    cursor: pointer;
    box-shadow: 0 5px 0 #00000033;
    transition: transform 0.1s, box-shadow 0.1s;
}

#refresh-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #00000033;
}

#refresh-btn:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #00000033;
}

#refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stat {
    font-size: 20px;
    background: #ffd93d;
    color: #4a4a4a;
    padding: 10px 25px;
    border-radius: 50px;
    border: 3px solid white;
    box-shadow: 0 5px 0 #b8860b;
    font-weight: bold;
}

.skill-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    position: relative;
}

.level {
    width: 100%;
    text-align: center;
    position: relative;
}

.level h2 {
    font-size: 32px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.3);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    border: 3px solid white;
    box-shadow: 0 5px 0 rgba(0,0,0,0.1);
    color: #ffeb3b;
    text-shadow: 2px 2px 0 #ff9800;
}

.missions-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
    position: relative;
}

.mission-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.mission-circle:hover {
    transform: scale(1.1);
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 5px solid white;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
    transition: all 0.3s;
    margin-bottom: 10px;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Different colors for each mission type */
.mission-circle[data-level="1"] .circle {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.mission-circle[data-level="2"] .circle {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.mission-circle[data-level="3"] .circle {
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

/* Status styles */
.mission-circle.completed .circle {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    box-shadow: 0 0 30px #84fab0;
    animation: glow 2s infinite;
}

.mission-circle.available .circle {
    background: linear-gradient(135deg, #ffd93d, #ff9a3c);
    box-shadow: 0 0 30px #ffd93d;
    cursor: pointer;
    animation: pulse 1.5s infinite;
}

.mission-circle.locked .circle {
    filter: grayscale(80%);
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #bdc3c7, #2c3e50);
}

.circle-number {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.circle-points {
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 20px;
    color: white;
    margin-top: 5px;
}

.mission-name {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    max-width: 120px;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 20px;
    margin-top: 5px;
}

.connector {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffeb3b;
    text-shadow: 2px 2px 0 #ff9800;
    margin: -10px 0;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px #ffd93d; }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px #84fab0; }
    50% { box-shadow: 0 0 40px #84fab0; }
    100% { box-shadow: 0 0 20px #84fab0; }
}

.level-progress {
    margin: 20px 0 10px;
    font-size: 18px;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 30px;
    display: inline-block;
}

.unlock-message {
    background: #ffd93d;
    color: #4a4a4a;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 5px 0 #b8860b;
    margin: 20px auto;
    display: inline-block;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    font-size: 18px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 50px;
}

/* Fun floating emojis */
.emoji-cloud {
    position: fixed;
    font-size: 40px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Add some floating decorations */
.emoji-cloud:nth-child(1) { top: 10%; left: 5%; animation: float 6s infinite; }
.emoji-cloud:nth-child(2) { top: 70%; right: 5%; animation: float 8s infinite; }
.emoji-cloud:nth-child(3) { bottom: 10%; left: 10%; animation: float 7s infinite; }

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