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

html, body {
    height: 100%;
    width: 100%;
    font-family: "Segoe UI", Roboto, sans-serif;
    color: #fff;
    background: radial-gradient(circle at center, #2b2b2b, #141414);
    overflow: hidden;
    user-select: none;
}

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.cookieCountDisplay {
    font-size: 2.5rem;
    color: #ffd479;
    text-shadow: 0 0 10px rgba(255, 210, 120, 0.5);
}

.main-area {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    padding: 20px;
}

.cookie-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cookie {
    background: radial-gradient(circle at 30% 30%, #ffcc66, #e69500);
    border-radius: 50%;
    width: 220px;
    height: 220px;
    line-height: 220px;
    text-align: center;
    color: #222;
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 180, 50, 0.5);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.cookie:hover {
    box-shadow: 0 0 50px rgba(255, 200, 100, 0.8);
}

.cookie:active {
    transform: scale(0.9);
}

.shop-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 180px);
    text-align: left;
}

.shop-area h3 {
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd479;
}

.building {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.building:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

.building:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.98);
}

.stats-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.stats-area h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #66ccff;
    text-transform: uppercase;
}

.stats-area div {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin: 8px 0;
    padding: 10px;
    font-size: 0.95rem;
}

.footer {
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer span {
    color: #ffd479;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.footerGithubLink {
    color: #ff0000;
}
.footerGithubLink:hover {
    color: #c8a000;
}
.footerGithubLink:active {
    color: #cc00e3;
}