@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: #0f380f;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(15, 56, 15, 0.5) 2px, rgba(15, 56, 15, 0.5) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(15, 56, 15, 0.5) 2px, rgba(15, 56, 15, 0.5) 4px);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.top-header {
    background: #306230;
    border: 4px solid #0f380f;
    box-shadow:
        inset -4px -4px 0 0 #0f380f,
        inset 4px 4px 0 0 #9bbc0f,
        0 0 0 4px #0f380f;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo-img {
    width: 64px;
    height: 64px;
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
    filter: contrast(1.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.title h1 {
    font-size: 24px;
    color: #9bbc0f;
    text-shadow: 4px 4px 0 #0f380f;
    line-height: 1.5;
}

.author {
    color: #8bac0f;
    font-size: 8px;
    margin-top: 15px;
    letter-spacing: 2px;
}

.prestige-info {
    background: #0f380f;
    color: #9bbc0f;
    padding: 10px 20px;
    border: 4px solid #306230;
    margin-top: 15px;
    display: inline-block;
    font-size: 10px;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
}

.header-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.header-buttons button {
    padding: 15px 20px;
    font-size: 10px;
    font-family: 'Press Start 2P', cursive;
    border: 4px solid #0f380f;
    cursor: pointer;
    transition: all 0.1s ease;
    background: #306230;
    color: #9bbc0f;
    box-shadow:
        inset -4px -4px 0 0 #0f380f,
        inset 4px 4px 0 0 #8bac0f;
    text-transform: uppercase;
}

.header-buttons button:hover {
    background: #8bac0f;
    color: #0f380f;
}

.header-buttons button:active {
    box-shadow:
        inset 4px 4px 0 0 #0f380f,
        inset -4px -4px 0 0 #8bac0f;
}

.header-buttons button.active {
    background: #9bbc0f;
    color: #0f380f;
    box-shadow:
        inset 4px 4px 0 0 #0f380f,
        inset -4px -4px 0 0 #8bac0f;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.panel {
    background: #306230;
    border: 4px solid #0f380f;
    padding: 20px;
    box-shadow:
        inset -4px -4px 0 0 #0f380f,
        inset 4px 4px 0 0 #9bbc0f,
        0 0 0 4px #0f380f;
    display: none;
    width: 100%;
    max-width: 800px;
}

.panel.active {
    display: block;
}

.money-display {
    font-size: 20px;
    text-align: center;
    padding: 20px;
    background: #0f380f;
    color: #9bbc0f;
    border: 4px solid #306230;
    margin-bottom: 20px;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
    letter-spacing: 2px;
}

#click-bag {
    width: 200px;
    height: 200px;
    font-size: 160px;
    cursor: pointer;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    user-select: none;
    filter: contrast(1.2) brightness(1.1);
}

#click-bag:hover {
    transform: scale(1.1);
}

#click-bag:active {
    transform: scale(0.9);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.stat-item {
    background: #0f380f;
    padding: 15px 10px;
    border: 4px solid #306230;
    color: #9bbc0f;
    text-align: center;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
}

.stat-label {
    font-size: 8px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 14px;
    margin-top: 5px;
    color: #8bac0f;
}

.slot-machine {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.slot {
    width: 80px;
    height: 100px;
    background: #0f380f;
    border: 4px solid #306230;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #9bbc0f;
    box-shadow: inset -4px -4px 0 0 #000, inset 4px 4px 0 0 #8bac0f;
    transition: transform 0.1s ease;
}

.slot.spinning {
    animation: spin 0.5s ease;
}

@keyframes spin {
    0%, 100% { transform: rotateX(0deg); }
    50% { transform: rotateX(180deg); }
}

.betting-section {
    text-align: center;
    margin: 20px 0;
}

.betting-section input {
    padding: 15px;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
    border: 4px solid #0f380f;
    background: #306230;
    color: #9bbc0f;
    width: 200px;
    text-align: center;
    box-shadow: inset 2px 2px 0 0 #0f380f;
}

.betting-section input::placeholder {
    color: #8bac0f;
    opacity: 0.7;
}

.betting-section button {
    padding: 15px 30px;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
    background: #8bac0f;
    color: #0f380f;
    border: 4px solid #0f380f;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.1s ease;
    box-shadow:
        inset -4px -4px 0 0 #0f380f,
        inset 4px 4px 0 0 #9bbc0f;
}

.betting-section button:hover {
    background: #9bbc0f;
}

.betting-section button:active {
    transform: scale(0.95);
}

.betting-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.betting-stat {
    background: #0f380f;
    padding: 10px;
    border: 4px solid #306230;
    text-align: center;
    font-size: 8px;
    color: #9bbc0f;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
}

.betting-stat div:last-child {
    font-size: 12px;
    margin-top: 5px;
    color: #8bac0f;
}

.upgrade-container {
    display: grid;
    gap: 10px;
}

.upgrade-item {
    background: #0f380f;
    padding: 15px;
    border: 4px solid #306230;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9bbc0f;
    transition: transform 0.1s ease;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
}

.upgrade-item:hover {
    transform: translateX(4px);
    background: #1a4a1a;
}

.upgrade-info h3 {
    font-size: 10px;
    margin-bottom: 8px;
    color: #8bac0f;
}

.upgrade-info p {
    font-size: 7px;
    color: #9bbc0f;
    line-height: 1.6;
}

.upgrade-item button {
    padding: 10px 15px;
    font-size: 8px;
    font-family: 'Press Start 2P', cursive;
    background: #8bac0f;
    color: #0f380f;
    border: 4px solid #0f380f;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow:
        inset -2px -2px 0 0 #0f380f,
        inset 2px 2px 0 0 #9bbc0f;
}

.upgrade-item button:hover:not(:disabled) {
    background: #9bbc0f;
}

.upgrade-item button:active:not(:disabled) {
    box-shadow:
        inset 2px 2px 0 0 #0f380f,
        inset -2px -2px 0 0 #9bbc0f;
}

.upgrade-item button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.achievement {
    background: #0f380f;
    padding: 15px;
    border: 4px solid #306230;
    text-align: center;
    color: #9bbc0f;
    transition: transform 0.1s ease;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
}

.achievement.unlocked {
    background: #1a4a1a;
    border-color: #8bac0f;
    box-shadow: inset -2px -2px 0 0 #0f380f, inset 2px 2px 0 0 #9bbc0f;
}

.achievement.locked {
    opacity: 0.5;
}

.achievement:hover {
    transform: scale(1.05);
}

.achievement-icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: contrast(1.2);
}

.achievement h4 {
    font-size: 8px;
    margin-bottom: 8px;
    color: #8bac0f;
}

.achievement p {
    font-size: 6px;
    line-height: 1.6;
    color: #9bbc0f;
}

.prestige-panel {
    text-align: center;
}

.prestige-panel h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #9bbc0f;
    text-shadow: 2px 2px 0 #0f380f;
}

.prestige-benefit {
    background: #0f380f;
    padding: 15px;
    border: 4px solid #306230;
    color: #9bbc0f;
    margin: 15px 0;
    font-size: 8px;
    line-height: 1.8;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
}

.prestige-benefit h3 {
    font-size: 10px;
    margin-bottom: 10px;
    color: #8bac0f;
}

.prestige-button {
    padding: 20px 30px;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
    background: #8bac0f;
    color: #0f380f;
    border: 4px solid #0f380f;
    cursor: pointer;
    transition: all 0.1s ease;
    margin-top: 20px;
    box-shadow:
        inset -4px -4px 0 0 #0f380f,
        inset 4px 4px 0 0 #9bbc0f;
}

.prestige-button:hover:not(:disabled) {
    background: #9bbc0f;
}

.prestige-button:active:not(:disabled) {
    box-shadow:
        inset 4px 4px 0 0 #0f380f,
        inset -4px -4px 0 0 #9bbc0f;
}

.prestige-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.floating-number {
    position: fixed;
    font-size: 16px;
    font-family: 'Press Start 2P', cursive;
    color: #8bac0f;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    z-index: 1000;
    text-shadow: 2px 2px 0 #0f380f;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0f380f;
    color: #9bbc0f;
    padding: 20px;
    border: 4px solid #8bac0f;
    box-shadow:
        inset -4px -4px 0 0 #000,
        inset 4px 4px 0 0 #9bbc0f,
        8px 8px 0 0 #0f380f;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.5s;
    z-index: 2000;
    font-size: 8px;
    max-width: 300px;
    line-height: 1.6;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

h2 {
    font-size: 12px;
    color: #9bbc0f;
    text-align: center;
    margin-bottom: 15px;
}

.panel-title {
    background: #0f380f;
    padding: 10px;
    border: 4px solid #306230;
    margin: -20px -20px 20px -20px;
    text-align: center;
    box-shadow: inset -2px -2px 0 0 #000, inset 2px 2px 0 0 #8bac0f;
}

.other-rule {

}