* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Malgun Gothic', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    width: 950px;
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 20px;
}

header {
    text-align: center;
    border-bottom: 2px solid #3a3a3a;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.gold-display {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    margin-top: 10px;
}

main {
    display: flex;
    gap: 20px;
}

section {
    flex: 1;
    background-color: #333333;
    padding: 15px;
    border-radius: 8px;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

/* 창고 UI */
.storage-box {
    background-color: #222;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.storage-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
    color: #00ffcc;
}
.progress-bar {
    width: 100%;
    height: 14px;
    background-color: #444;
    border-radius: 7px;
    overflow: hidden;
}
.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #00ffcc;
    transition: width 0.05s linear;
}

/* 액션 버튼 배치 */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.main-btn {
    flex: 1;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.main-btn:hover { background-color: #45a049; }

.collect-btn { background-color: #ff9800; }
.collect-btn:hover { background-color: #f57c00; }

.forge-btn { background-color: #e64a19; width: 100%; margin-bottom: 20px; }
.forge-btn:hover { background-color: #d84315; }

.upgrade-container h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #bbb;
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #444;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.item-title {
    font-weight: bold;
    font-size: 14px;
}
.item-desc {
    font-size: 11px;
    color: #aaa;
}

.upgrade-item button {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}
.upgrade-item button:hover { background-color: #1e88e5; }

.upgrade-item span:last-child {
    font-size: 13px;
    min-width: 50px;
    text-align: right;
    color: #ffea00;
}

.weapon-status {
    text-align: center;
    margin: 40px 0;
}

.weapon-title {
    font-size: 24px;
    font-weight: bold;
    color: #00e5ff;
}

.weapon-level {
    font-size: 28px;
    color: #ffea00;
    margin-top: 5px;
}

.enhance-info {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

.log-box {
    background-color: #222;
    padding: 10px;
    border-radius: 4px;
    height: 70px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}