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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #08080a;
    overflow: hidden;
    color: #e0e0e6;
}

/* Scrollbar Styling for Retro look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(57, 255, 20, 0.6);
}

/* 3-Column Layout */
.game-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    height: 100vh;
    gap: 15px;
    padding: 15px;
    box-sizing: border-box;
    background-color: #0c0c0f;
    font-family: 'Share Tech Mono', monospace;
}

/* Side Panels */
.side-panel {
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
}

.left-panel {
    border-left: 3px solid #39ff14; /* Neon Green */
}

.right-panel {
    border-right: 3px solid #ffd700; /* Neon Gold */
}

.loading-panel {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Header Text */
.panel-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}

.section-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    margin-top: 25px;
    margin-bottom: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

/* Player Name */
.player-name {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* Stats Styling */
.stat-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    color: #888894;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 19px;
    margin-top: 2px;
}

/* HP Progress Bar */
.hp-bar-container {
    background: #1e1e24;
    height: 12px;
    border-radius: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #39ff14, #00ff88);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
    border-radius: 6px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-values {
    text-align: right;
    font-size: 13px;
}

/* Degen Badge */
.degen-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    text-align: center;
    margin-top: auto;
    letter-spacing: 0.5px;
}

/* Gold Display */
.gold-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gold-icon {
    font-size: 24px;
    margin-right: 12px;
}

.gold-amount {
    font-size: 24px;
    font-weight: bold;
}

/* Equipment list */
.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equip-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.slot-name {
    color: #888894;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.slot-item {
    font-size: 15px;
    font-weight: bold;
}

.slot-bonus {
    font-size: 12px;
}

.accessories-section {
    display: flex;
    flex-direction: column;
}

.accessory-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessory-tag {
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-left: 3px solid #00ffff;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.acc-name {
    font-size: 13px;
    font-weight: bold;
}

.acc-desc {
    font-size: 11px;
}

.empty-slot-msg {
    font-style: italic;
    font-size: 12px;
}

/* Consumables Quick Use list */
.consumables-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.potion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.potion-info {
    display: flex;
    flex-direction: column;
}

.potion-name {
    font-size: 13px;
    font-weight: bold;
}

.potion-effect {
    font-size: 11px;
}

.btn-potion {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    background: transparent;
    border: 1px solid #39ff14;
    color: #39ff14;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-potion:hover {
    background: #39ff14;
    color: #0c0c0f !important;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

.btn-potion:disabled {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.15) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-potion:disabled:hover {
    background: transparent;
    box-shadow: none;
}

/* Center Terminal Cabinet Screen Wrapper */
.terminal-cabinet {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1a1a24 0%, #08080a 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.9);
    box-sizing: border-box;
    height: 100%;
}

.crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    border: 6px solid #282830;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 30px rgba(0,0,0,0.9);
    box-sizing: border-box;
    padding: 10px 15px;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

#terminal {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Neon Text Shadow Helpers */
.text-neon-green {
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.text-neon-gold {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.text-neon-blue {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.text-neon-red {
    color: #ff073a;
    text-shadow: 0 0 8px rgba(255, 7, 58, 0.4);
}

.text-neon-yellow {
    color: #ffff00;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}

.text-neon-white {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Pulse Animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Fade-in Animation */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}