:root {
    --bg-color: #f0d431;
    --panel-bg: rgba(255, 255, 255, 0.8);
    --dark-brown: #3e2b22;
    --brown: #5c4033;
    --prestige-purple: #673AB7;
}
body {
    font-family: Calibri;
    background-color: var(--bg-color);
    color: #3e3d3d;
    display: flex;
    flex-direction: row;
    height: 100vh;
    margin: 0;
    user-select: none;
    overflow: hidden;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    color: #5c4033;
}
#score-container {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#banana-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
}
#banana-container:active {
    transform: scale(0.95);
}
#banana-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}
.controls {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}
button {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #5c4033;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 0 #3e2b22;
}
button:hover {
    background-color: #755242;
}
button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #3e2b22;
}
button:disabled {
    background-color: #a9a8a8;
    box-shadow: 0 4px 0 #7a7a7a;
    cursor: not-allowed;
}
.click-visual {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #5c4033;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}
.fallback-banana {
    font-size: 150px;
    line-height: 200px;
    text-align: center;
    display: none;
}
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid rgba(0,0,0,0.1);
}
.shop-area {
    width: 350px;
    background-color: var(--panel-bg);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}
.shop-item {
    background: white;
    border: 1px solid #aba2a2;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shop-item:hover {
    background-color: #fff9c4;
    transform: translateX(-2px);
}
.shop-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0;
}
#item-info p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: #676464;
}
.item-info h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--brown);
}
.item-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c9c3c3;
}
#bps-display {
    font-size: 1rem;
    color: #5d5a5a;
    margin-top: -20px;
    margin-bottom: 30px;
}
#save-notify {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 80%;
    animation: popIn 0.3s ease-out;
}
.modal-content h2 {
    color: var(--brown);
    margin-top: 0;
}
.offline-stats {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin: 15px 0;
}
.modal-content-button {
    background-color: var(--brown);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-content button:hover {
    background-color: var(--dark-brown);
}
.toggle-button {
    background: #597684;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.toggle-button:hover {
    background: #546E7A;
}
.prestige-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #673AB7, #9C27B0);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.4);
    transition: transform 0.2s;
}
.prestige-button:hover {
    transform: scale(1.05);
}
#prestige-display {
    background: rgba(105, 61, 179, 0.1);
    color: var(--prestige-purple);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    border: 1px solid var(--prestige-purple);
}
.bonus-text {
    font-size: 1.3rem;
    color: var(--prestige-purple);
    font-weight: bold;
}
.prestige-shop-item {
    background: #ffffff;
    border: 2px solid #673AB7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.prestige-shop-item:hover {
    background-color: #ede7f6;
    transform: translateX(2px);
}
.prestige-shop-item.purchased {
    border-color: #4CAF50;
    background-color: #E8F5E9;
    cursor: default;
}
.prestige-shop-item.disabled {
    opacity: 0.7;
    border-color: #bfb7b7;
    cursor: not-allowed;
}
@keyframes floatUp {
    0% {opacity: 1; transform: translateY(0);}
    100% {opacity: 0; transform: translateY(-50px);}
}