:root {
    --bg-base: #f4f7f6;
    --bg-game: #0a0a12;
    --text-base: #2c3e50;
    --text-game: #e0e0e0;
    --accent-base: #3498db;
    --accent-game: #9b59b6;
    --card-base: #ffffff;
    --card-game: #1a1a2e;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    transition: background 0.5s ease;
    overflow-x: hidden;
}

.view {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-bottom: 100px;
    box-sizing: border-box;
}

#base-view {
    background: var(--bg-base);
    color: var(--text-base);
}

#game-view {
    background: var(--bg-game);
    color: var(--text-game);
}

.hidden {
    display: none !important;
}

.profile-card {
    width: 100%;
    max-width: 500px;
    background: var(--card-base);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.game-card {
    background: var(--card-game);
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.3);
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--accent-base);
}

.real-avatar { background-image: url('https://i.imgur.com/8K5M6eA.png'); }
.game-avatar { 
    background-image: url('https://i.imgur.com/Fc2yOfI.png');
    border-color: var(--accent-game);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.info-item span {
    font-size: 0.8em;
    color: #888;
}

.info-item p {
    margin: 5px 0 0;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.stat-box {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
}

.game-card .stat-box {
    background: #16213e;
}

.quest-list {
    margin-top: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #eee;
    border-radius: 8px;
    cursor: pointer;
}

.game-card .quest-item {
    background: #0f3460;
}

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

/* Disqus Comments */
#comments-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

.game-card #comments-section {
    border-top-color: #333;
}

/* Gem Toggle */
#gem-toggle-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#gem-button {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #bb86fc, #6200ee);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

#gem-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(187, 134, 252, 0.9);
}

#gem-button::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}
