:root {
    --pearl-white: #f5f5f5;
    --gold: #FFD700;
    --diamond-blue: #00d2ff;
    --sand: #edc9af;
    --mud: #795548;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

body {
    background-color: #050505;
    overflow: hidden;
    color: white;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(15px);
    transition: opacity 0.5s;
}

.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    max-width: 900px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

h1.glow-text {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.description {
    font-size: 1.4rem;
    color: #ccc;
    margin-bottom: 40px;
}

.tutorial {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #888;
}

.primary-btn {
    padding: 18px 50px;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 20px;
    border: none;
    background: linear-gradient(45deg, var(--diamond-blue), var(--gold));
    color: black;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.3);
}

.primary-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 45px rgba(255, 215, 0, 0.4);
}

#hud {
    position: fixed;
    top: 40px;
    left: 40px;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    pointer-events: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.money-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 35px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    display: inline-flex;
    flex-direction: column;
}

.label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #888;
}

.value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
}

.unit {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.location-badge {
    background: white;
    color: black;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.inventory-bar {
    position: fixed;
    bottom: 120px;
    left: 40px;
    display: flex;
    gap: 15px;
}

.inv-slot {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.action-dock {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 20px;
    pointer-events: all;
}

.dock-btn {
    padding: 20px 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dock-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: white;
}

.clams-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 30px 0;
    max-height: 400px;
    overflow-y: auto;
}

.clam-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 2rem;
    transition: 0.2s;
    border: 1px solid transparent;
}

.clam-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: var(--gold);
}

.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-weight: 700;
    border-radius: 15px;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--gold);
    color: black;
}

.luxury-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.luxury-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.luxury-item .icon {
    font-size: 2.5rem;
}

.luxury-item .info {
    flex: 1;
    text-align: left;
}

.luxury-item .name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.luxury-item .price {
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.buy-luxury-btn {
    padding: 10px 20px;
    background: var(--diamond-blue);
    border: none;
    border-radius: 10px;
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.buy-luxury-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.owned-luxury {
    position: fixed;
    top: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.owned-luxury .icon-badge {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.jewel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 30px 0;
}

.jewel-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    font-size: 1.2rem;
}

.jewel-item .price {
    color: var(--gold);
    font-weight: 700;
}

.sell-btn {
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    background: var(--gold);
    color: black;
    border: none;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
}

.secondary-btn {
    margin-top: 15px;
    background: transparent;
    color: #666;
    border: 1px solid #333;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
}