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

body {
    font-family: Georgia, serif;
    color: #f0e6d2;
    background: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e") no-repeat center/cover fixed;
    min-height: 100vh;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,20,30,0.75);
    z-index: -1;
}

.hero {
    text-align: center;
    padding: 60px 20px 30px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.narration {
    max-width: 700px;
    margin: auto;
    color: #d6c7a1;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
}

.nav button {
    background: rgba(60,50,30,0.8);
    color: #f0e6d2;
    border: 1px solid #a89c7a;
    padding: 8px 14px;
    cursor: pointer;
}

.view {
    display: none;
    padding: 30px;
}

.view.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.ship-card {
    background: rgba(40,30,20,0.85);
    border: 1px solid rgba(200,180,120,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.ship-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.ship-image.person {
    background-size: contain;
    background-repeat: no-repeat;
}

.ship-content {
    padding: 15px;
}

.ship-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.ship-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #cbbf9c;
}

.ship-stats {
    font-size: 0.85rem;
    color: #a89c7a;
}

.ship-cost {
    margin-top: 8px;
    font-weight: bold;
    color: #ffd166;
}

.location-switcher {
    margin-bottom: 20px;
}

.location-switcher select {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(0,0,0,0.7);
    color: white;
}

#location-repair {
    color: #fa5f5f;
    padding-top: 5px;
    font-size: 14px;
}

.bought .ship-image { filter: grayscale(100%); }
