/* ... (all previous styles remain) ... */

/* ANNOTATION: Added styles for purchased/unavailable skills */
.skill-upgrade.purchased {
    opacity: 0.4;
    cursor: not-allowed;
    border-left-color: #00ff00;
    background: rgba(0, 80, 0, 0.4);
}

.skill-upgrade.purchased:hover {
    transform: none;
    box-shadow: none;
}

.skill-upgrade.unavailable {
    opacity: 0.6;
    border-left-color: #666;
}
/* ... (rest of the file is unchanged) ... */
/* UI Components */
.inventory-item, .quest-item, .skill-item, .weapon-item {
    padding: 5px;
    margin: 5px 0;
    background: rgba(0, 50, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.inventory-item:hover, .quest-item:hover, .skill-item:hover, .weapon-item:hover {
    background: rgba(0, 100, 0, 0.5);
    border-left: 3px solid #00ff00;
}

.inventory-item.usable {
    border-left-color: #00ffff;
}

.inventory-item.usable:hover {
    background: rgba(0, 150, 150, 0.3);
}


.quest-item.active {
    background: rgba(0, 100, 0, 0.7);
    border-left: 3px solid #ffff00;
}

.quest-item.completed {
    opacity: 0.5;
    text-decoration: line-through;
}

.quest-item.failed {
    opacity: 0.5;
    border-left-color: #ff0000;
    color: #ff6666;
}

.quest-progress {
    font-size: 14px;
    margin-top: 3px;
    color: #00ffff;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-level {
    background: rgba(0, 100, 0, 0.7);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 16px;
}

.skill-upgrade.available {
    border-left-color: #00ffff;
}

.skill-upgrade.available:hover {
    background: rgba(0, 150, 150, 0.3);
}


.weapon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weapon-damage {
    color: #ff0000;
    font-size: 16px;
}

.weapon-item.equipped {
    background: rgba(0, 100, 0, 0.7);
    border-left-color: #ffff00;
}

.rep-stat {
    text-align: center;
    padding: 10px;
    background: rgba(0, 30, 0, 0.5);
    border: 1px solid #00ff00;
    margin: 5px 0;
}

.rep-value {
    font-size: 24px;
    color: #00ffff;
}

.rep-label {
    font-size: 14px;
    margin-top: 5px;
}

.dialogue-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.dialogue-option {
    background: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.dialogue-option:hover {
    background: rgba(0, 100, 0, 0.5);
    box-shadow: 0 0 10px #00ff00;
    transform: translateX(5px);
}

.character-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.character-card {
    background: rgba(0, 30, 0, 0.7);
    border: 2px solid #00ff00;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.character-card:hover {
    background: rgba(0, 100, 0, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ff00;
}

.character-avatar {
    width: 80px;
    height: 80px;
    background: #003300;
    margin: 0 auto 10px;
    border: 2px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.quest-progress {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 30, 0, 0.5);
    border-left: 3px solid #ffff00;
}

.quest-objective {
    padding: 3px 0;
    font-size: 16px;
}

.quest-objective.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Quest Details Modal */
.quest-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.quest-details-content {
    background: rgba(0, 30, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.quest-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

.quest-details-title {
    font-size: 24px;
    color: #ffff00;
}

.quest-details-close {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 24px;
    cursor: pointer;
    font-family: 'VT323', monospace;
}

.quest-details-description {
    margin-bottom: 15px;
    line-height: 1.5;
}

.quest-details-objectives {
    margin-bottom: 15px;
}

.quest-details-objective {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.quest-details-objective-icon {
    margin-right: 10px;
    font-size: 18px;
}

.quest-details-rewards {
    background: rgba(0, 50, 0, 0.5);
    padding: 10px;
    border-left: 2px solid #ffff00;
}

.quest-details-reward {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

/* Save/Load System */
.save-load-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.save-section, .load-section {
    background: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    padding: 20px;
}

.save-slot, .load-slot {
    background: rgba(0, 50, 0, 0.5);
    border: 1px solid #00ff00;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.save-slot:hover, .load-slot:hover {
    background: rgba(0, 100, 0, 0.5);
    box-shadow: 0 0 10px #00ff00;
}

.save-info {
    font-size: 14px;
    color: #00ffff;
    margin-top: 5px;
}

/* Skill System */
.skill-tree {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.skill-branch {
    background: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    padding: 15px;
}

.skill-branch-title {
    color: #00ffff;
    margin-bottom: 10px;
    text-align: center;
    font-size: 20px;
}

.skill-points-display {
    background: rgba(0, 50, 0, 0.7);
    border: 2px solid #00ffff;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.skill-points-display span {
    color: #ffff00;
    font-size: 24px;
}

/* World Map */
.location-map {
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff00;
    padding: 20px;
    margin: 20px 0;
}

.map-node {
    display: inline-block;
    width: 120px;
    height: 80px;
    background: rgba(0, 50, 0, 0.7);
    border: 1px solid #00ff00;
    margin: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: top;
}

.map-node:hover {
    background: rgba(0, 100, 0, 0.7);
    box-shadow: 0 0 15px #00ff00;
    transform: scale(1.1);
}

.map-node.current {
    background: rgba(0, 100, 0, 0.7);
    border-color: #ffff00;
}

.map-node.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sound Controls */
.sound-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 30, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 10px;
    z-index: 100;
}

.sound-toggle {
    background: rgba(0, 50, 0, 0.7);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 14px;
    transition: all 0.2s;
}

.sound-toggle:hover {
    background: rgba(0, 100, 0, 0.7);
    box-shadow: 0 0 10px #00ff00;
}