body {
    /* Smooth cookie-inspired gradient, no chips, no glow */
    background: linear-gradient(135deg, #f7e9d0 0%, #e7cba9 100%);
    background-attachment: fixed;
    background-color: #e7cba9;
    color: #3b2c1a;
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    z-index: 1;
    font-family: 'Segoe UI', 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
}

#myH1 {
    text-align: center;
    font-family: 'Arial Black', 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
    color: #f7c479;
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: none;
}

#userName {
    margin: 0 auto 20px auto;
    font-size: 1.7em;
    text-align: center;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #f7c479 0%, #fffbe6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
    display: inline-block;
    border-radius: 12px;
    padding: 8px 18px;
    position: relative;
    animation: bakery-pop 1.2s cubic-bezier(.68,-0.55,.27,1.55);
    text-shadow: none;
}

.bakery-text {
    font-weight: 900;
    letter-spacing: 1.5px;
    font-family: 'Arial Rounded MT Bold', 'Segoe UI', Arial, sans-serif;
    font-size: 1.1em;
    text-shadow: none;
}

#myLabel {
    margin-bottom: 20px;
    color: #f7c479;
    font-size: 2em;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: none;
    transition: color 0.2s;
    display: block;
}

.leaderboard {
    color: #c68834;
    font-size: 2em;
    font-family: 'Arial Black', Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 18px;
    margin-top: 0;
    text-align: left;
    text-shadow: none;
}

.main-container {
    background: rgba(34, 34, 34, 0.92);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.20);
    margin: 40px auto 50px auto;
    padding: 32px 0 24px 0;
    max-width: 700px;
    width: 95%;
}

@keyframes bakery-pop {
    0% { transform: scale(0.7) rotate(-8deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

.cookie-emoji {
    font-size: 1.2em;
    margin: 0 8px;
    display: inline-block;
    animation: cookie-bounce 1.5s infinite alternate;
}

@keyframes cookie-bounce {
    0% { transform: translateY(0) scale(1); }
    60% { transform: translateY(-6px) scale(1.15); }
    100% { transform: translateY(0) scale(1); }
}

/* Cookie Button */
.cookie-area {
    margin: 32px 0 18px 0;
}

.cookie-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid #a86b1c;
    background: radial-gradient(circle at 60% 40%, #ffe5b4 60%, #c68642 100%);
    box-shadow: 0 4px 24px #a86b1c44, 0 1px 0 #fffbe6 inset;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    font-size: 2.5em;
    outline: none;
}

.cookie-btn:active {
    transform: scale(0.93);
}

.cookie-btn-emoji {
    font-size: 2.5em;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px #c68834);
}

.crumbs {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Leaderboard styles */
.myP1 {
    color: #c68834;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: none;
}

.button2 {
    margin: 18px auto 0 auto;
    color: #3b2c1a;
    font-size: 1.2em;
    width: 120px;
    height: 44px;
    background: linear-gradient(90deg, #f7c479 60%, #c68834 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    text-align: center;
    line-height: 44px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    margin-bottom: 10px;
}

.button2 span {
    display: inline-block;
}

.button2:hover {
    background: linear-gradient(90deg, #c68834 60%, #f7c479 100%);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 20px #c68834;
}

#leaderboardContainer {
    display: none;
    margin: 30px auto 0 auto;
    background: rgba(247, 196, 121, 0.98);
    border-radius: 14px;
    padding: 24px 32px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    color: #222;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    transition: all 0.3s;
}

#leaderboardContainer:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 24px #c68834;
}

#leaderboard {
    padding-left: 0;
    font-size: 1.1em;
    list-style: none;
    counter-reset: leaderboard;
    margin: 0;
}

#leaderboard li {
    position: relative;
    margin-bottom: 14px;
    font-weight: 600;
    background: linear-gradient(90deg, #fffbe6 0%, #f7c479 100%);
    border-radius: 10px;
    padding: 14px 18px 14px 56px;
    color: #3b2c1a;
    box-shadow: 0 2px 10px rgba(198,136,52,0.10);
    counter-increment: leaderboard;
    transition: transform 0.15s, box-shadow 0.15s;
    border-left: 8px solid #c68834;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
}

#leaderboard li:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 18px #f7c479;
    background: linear-gradient(90deg, #fffbe6 0%, #ffe0a3 100%);
}

#leaderboard li::before {
    content: counter(leaderboard);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: #fff;
    background: #c68834;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    box-shadow: 0 2px 8px rgba(198,136,52,0.18);
    letter-spacing: 0;
    border: 2px solid #fffbe6;
}

/* PlusOne animation */
.plusOne {
    position: absolute;
    font-size: 22px;
    color: #fff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-shadow: 0 1px 6px #c68834;
    pointer-events: none;
    opacity: 0;
}

/* Crumbs (cookie particles) */
.crumb {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #a86b1c;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 1px 2px #7c4a03;
    border: 2px solid #7c4a03;
    animation: crumb-fall 1s linear forwards;
}

@keyframes crumb-fall {
    to {
        transform: translateY(120px) scale(0.7) rotate(40deg);
        opacity: 0;
    }
}

#cpsLabel {
    display: block;
    color: #c68834;
    font-size: 1.2em;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: none;
}

.upgrades {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.upgrade-btn {
    background: linear-gradient(90deg, #ffe5b4 60%, #c68834 100%);
    color: #3b2c1a;
    border: 2px solid #c68834;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-weight: bold;
    padding: 12px 22px;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(198,136,52,0.10);
    display: flex;
    align-items: center;
    gap: 10px;
}

.upgrade-btn:active {
    transform: scale(0.96);
}

.upgrade-btn:disabled {
    background: #e7cba9;
    color: #b8a07a;
    border-color: #e7cba9;
    cursor: not-allowed;
}

.upgrade-cost {
    background: #fffbe6;
    color: #c68834;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.95em;
    margin-left: 8px;
    font-weight: 600;
}

      .copyright{
        text-align: center;
        margin-bottom: 30px;
      }
