:root, [data-theme="blue"] {
    --bg-color: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --buy-color: #ef4444; 
    --sell-color: #3b82f6; 
    --accent: #f59e0b;
    --input-bg: rgba(0,0,0,0.3);
    --input-color: #ffffff;
    --input-border: rgba(255,255,255,0.2);
}

[data-theme="black"] {
    --bg-color: #000000;
    --panel-bg: rgba(25, 25, 25, 0.8);
    --text-main: #ffffff;
    --text-muted: #888888;
    --primary: #666666;
    --buy-color: #ff3333; 
    --sell-color: #3388ff; 
    --accent: #ffcc00;
    --input-bg: rgba(255,255,255,0.1);
    --input-color: #ffffff;
    --input-border: rgba(255,255,255,0.2);
}

[data-theme="white"] {
    --bg-color: #f3f4f6;
    --panel-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --primary: #6366f1;
    --buy-color: #dc2626; 
    --sell-color: #2563eb; 
    --accent: #d97706;
    --input-bg: rgba(0,0,0,0.05);
    --input-color: #1f2937;
    --input-border: rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem); /* Fluid Body Text */
}

#game-container {
    width: 98%;
    max-width: 1600px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(128,128,128,0.2);
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
header h1 { 
    font-weight: 900; 
    color: var(--accent); 
    white-space: nowrap; 
    font-size: clamp(1.2rem, 3vw + 0.8rem, 2rem); /* Fluid Title */
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.header-top-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-reset {
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.theme-selector {
    background: var(--panel-bg);
    color: var(--text-main);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    font-weight: bold;
    font-size: 0.85rem;
}

.badge { background: var(--primary); padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.2); white-space: nowrap;}

/* Progress Bar */
.progress-container { width: 100%; max-width: 250px; background: rgba(128,128,128,0.2); height: 10px; border-radius: 5px; position: relative; margin-top: 5px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), #fbbf24); width: 0%; transition: width 0.5s ease; }
#progress-text { position: absolute; top: -15px; right: 0; font-size: 0.75rem; color: var(--text-muted); font-weight: bold; }

/* News Ticker */
.news-ticker { margin-top: 10px; display: flex; align-items: center; gap: 15px; padding: 12px 20px !important; background: var(--panel-bg); border: 1px solid rgba(245, 158, 11, 0.3) !important; }
.news-label { background: #ef4444; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; animation: pulse 2s infinite; }
.news-content { font-size: 0.95rem; font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

.main-layout { 
    display: grid; 
    grid-template-columns: 1fr 450px; /* Fixed but wider leaderboard on PC */
    gap: 25px; 
    align-items: flex-start; 
}
@media (max-width: 1100px) { 
    .main-layout { grid-template-columns: 1fr 380px; } 
}
@media (max-width: 768px) { 
    .main-layout { display: flex; flex-direction: column; } 
}

.game-area { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.leaderboard { height: 100%; min-height: 500px; }

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(128,128,128,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.glass-panel h2 { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 15px; }

.market-board { text-align: left; padding: 20px !important; }
.stock-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.stock-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: rgba(128,128,128,0.05); border-radius: 12px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.stock-item:hover { background: rgba(128,128,128,0.1); border-color: var(--primary); }
.stock-item.active { background: rgba(59, 130, 246, 0.1); border-color: var(--primary); }
.finance-link { font-size: 0.8rem; text-decoration: none; color: var(--text-muted); opacity: 0.6; transition: 0.2s; }
.finance-link:hover { opacity: 1; transform: scale(1.2); }
.stock-item .name-group { display: flex; flex-direction: column; }
.stock-item .stock-name { font-weight: bold; font-size: clamp(1rem, 2vw + 0.5rem, 1.1rem); }
.stock-item .stock-sub { font-size: 0.75rem; color: var(--text-muted); }
.stock-item .price-group { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.stock-item .stock-price { 
    font-weight: 900; 
    font-size: clamp(1.1rem, 2.5vw + 0.6rem, 1.25rem); 
    white-space: nowrap; 
}
.stock-item .stock-change { font-size: 0.85rem; font-weight: bold; white-space: nowrap; }
.stock-item .stock-change.up { color: var(--buy-color); }
.stock-item .stock-change.down { color: var(--sell-color); }

.price { 
    font-size: clamp(2rem, 8vw + 1rem, 3.5rem); 
    font-weight: 900; 
    margin: 10px 0; 
    transition: color 0.3s ease; 
    white-space: nowrap;
}
.price.up { color: var(--buy-color); }
.price.down { color: var(--sell-color); }
.change-rate { font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem); font-weight: bold; }
.change-rate.up { color: var(--buy-color); }
.change-rate.down { color: var(--sell-color); }

.asset-grid-horizontal { display: flex; flex-direction: column; gap: 15px; }
.asset-item { display: flex; justify-content: space-between; font-size: 1.1rem; align-items: center; }
.highlight-cash { color: #10b981; font-weight: bold; border-bottom: 1px dashed rgba(16, 185, 129, 0.3); padding-bottom: 10px; } 

.portfolio-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.portfolio-item { background: rgba(128,128,128,0.05); padding: 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 5px; border: 1px solid rgba(128,128,128,0.1); }
.portfolio-item .top { display: flex; justify-content: space-between; font-weight: bold; }
.portfolio-item .mid { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); }
.portfolio-item .yield { font-weight: bold; }

.portfolio-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.portfolio-controls { display: flex; gap: 10px; align-items: center; }

.total-asset-badge { 
    background: var(--accent); 
    color: white; 
    padding: 6px 14px; 
    border-radius: 8px; 
    font-weight: 900; 
    font-size: clamp(0.85rem, 1.5vw + 0.5rem, 1.1rem); 
    white-space: nowrap;
}
.btn-sm { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 8px 14px; 
    border-radius: 8px; 
    font-size: clamp(0.75rem, 1vw + 0.6rem, 0.9rem); 
    font-weight: bold; 
    cursor: pointer; 
    transition: filter 0.2s; 
    white-space: nowrap;
}
.btn-sm:hover { filter: brightness(1.2); }

/* Collapsible Chart */
.collapsible-chart { height: 0; overflow: hidden; transition: height 0.3s ease-out, margin 0.3s ease; display: flex; justify-content: center; align-items: center; }
.collapsible-chart.expanded { height: 250px; margin-bottom: 20px; }
#portfolio-pie-chart { max-width: 250px; max-height: 250px; }

.highlight { color: var(--primary); font-size: 0.9em; }

/* Tooltip */
.tooltip-container { position: relative; display: inline-block; cursor: help; }
.info-icon { background: var(--text-muted); color: var(--bg-color); width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; }
.tooltip-content { 
    visibility: hidden; width: 200px; background: #1e293b; color: #fff; text-align: left; border-radius: 8px; padding: 10px; 
    position: absolute; z-index: 10; bottom: 125%; left: 50%; margin-left: -100px; opacity: 0; transition: opacity 0.3s;
    font-size: 0.8rem; line-height: 1.4; border: 1px solid var(--primary); pointer-events: none;
}
.tooltip-container:hover .tooltip-content { visibility: visible; opacity: 1; }

/* Tabs */
.tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.tabs input[type="radio"] { display: none; }
.tabs .tab {
    flex: 1; text-align: center; padding: 10px;
    background: rgba(128,128,128,0.2); border-radius: 8px;
    cursor: pointer; font-weight: bold; color: var(--text-muted); transition: 0.2s;
}
.tabs input[type="radio"]:checked + .tab { background: var(--primary); color: white; }

.trading-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.stock-selector { 
    flex: 1; 
    background: var(--input-bg); 
    color: var(--text-main); 
    border: 1px solid var(--input-border); 
    padding: 12px; 
    border-radius: 10px; 
    font-size: clamp(1rem, 1.5vw + 0.7rem, 1.1rem); 
    font-weight: bold; 
    cursor: pointer; 
    outline: none; 
}
.stock-selector:focus { border-color: var(--primary); }

.trading-inputs { display: flex; flex-direction: column; gap: 15px; }

.trading-controls .input-group {
    display: flex; align-items: center; background: var(--input-bg); border-radius: 8px; padding: 10px;
    border: 1px solid var(--input-border);
}
.trading-controls input { flex: 1; background: transparent; border: none; color: var(--input-color); font-size: 1.5rem; text-align: right; outline: none; }
.trading-controls .unit { margin-left: 10px; font-size: 1.2rem; color: var(--text-main); }

.button-group { display: flex; gap: 10px; }
.btn { 
    flex: 1; 
    padding: 15px; 
    font-size: 1.2rem; 
    font-weight: bold; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: transform 0.1s, filter 0.2s; 
    color: white; 
    position: relative; 
    overflow: hidden; 
}
.btn:active { transform: scale(0.98); }
.btn:hover { filter: brightness(1.1); }
.buy-btn { background-color: var(--buy-color); }
.sell-btn { background-color: var(--sell-color); }
.primary { background-color: var(--primary); }

/* Pending Orders */
#pending-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
#pending-list li {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(128,128,128,0.1); padding: 12px 15px; border-radius: 8px; font-size: 0.95rem; border-left: 4px solid var(--text-muted);
}
#pending-list li.type-buy { border-left-color: var(--buy-color); }
#pending-list li.type-sell { border-left-color: var(--sell-color); }
#pending-list li .cancel-btn {
    background: rgba(128,128,128,0.3); color: var(--text-main); border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s;
}
#pending-list li .cancel-btn:hover { background: #ef4444; color: white; }

#ranking-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
#ranking-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: rgba(128,128,128,0.1); border-radius: 8px; font-size: 0.95rem; }
#ranking-list li .rank { font-weight: bold; color: var(--accent); width: 25px; }
#ranking-list li .name { 
    flex: 1; 
    text-align: left; 
    margin: 0 10px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    color: var(--text-main);
    font-weight: 500;
    min-width: 0;
}
#ranking-list li .asset { font-weight: 800; color: #10b981; white-space: nowrap; margin-left: auto; }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: var(--panel-bg); backdrop-filter: blur(15px); padding: 40px; border-radius: 16px; text-align: center; border: 1px solid rgba(128,128,128,0.2); max-width: 400px; width: 90%; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transition: background 0.3s; }
.modal-content h2 { color: var(--accent); margin-bottom: 15px; }
.modal-content input { width: 100%; padding: 15px; margin: 20px 0; font-size: 1.2rem; border-radius: 8px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--input-color); text-align: center; }
.modal-content input:focus { outline: 2px solid var(--primary); }
.modal-content .notice { margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* Mobile Optimizations */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .header-top-row {
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
    }
    
    .progress-container {
        max-width: 100%;
        height: 12px; /* Slightly taller for visibility */
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 0.75rem;
        font-weight: 700;
    }
    
    .price { font-size: clamp(1.8rem, 10vw, 2.5rem); }
    
    header h1 { font-size: clamp(1.3rem, 5vw, 1.6rem); }
    
    .portfolio-header { 
        display: grid;
        grid-template-areas: 
            "title chart"
            "badge badge";
        gap: 12px;
        align-items: center;
    }
    .portfolio-header h2 { grid-area: title; margin-bottom: 0; font-size: clamp(1.1rem, 4vw, 1.3rem); }
    .portfolio-controls { 
        display: contents; /* Allows children to be placed in grid areas of parent */
    }
    #toggle-chart-btn { 
        grid-area: chart; 
        justify-self: end; 
        padding: 8px 12px; 
        font-size: 0.85rem; 
        min-width: fit-content;
    }
    .total-asset-badge { 
        grid-area: badge; 
        width: 100%; 
        padding: 10px; 
        font-size: 1rem; 
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .cancel-btn { padding: 10px 18px; font-size: 0.95rem; } /* Mobile optimized cancel button */
    
    .glass-panel { padding: 20px 15px; border-radius: 12px; width: 100%; }
    
    .stock-item { padding: 12px 15px; } /* More vertical space for touch */
    .stock-item .stock-name { font-size: 1rem; }
    .stock-item .stock-price { font-size: 1.1rem; }
    .stock-item .stock-change { font-size: 0.8rem; }
    
    .portfolio-list { grid-template-columns: 1fr; }
    
    .trading-header { flex-direction: column; gap: 10px; }
    .tabs { width: 100%; margin-bottom: 5px; gap: 8px; }
    .tabs .tab { padding: 12px; }
    .stock-selector { width: 100%; padding: 12px; font-size: 1.1rem; }
    
    .trading-controls input { font-size: 1.25rem; text-align: center; width: 100%; } /* Center align for better mobile fit */
    .trading-controls .unit { font-size: 1rem; margin-left: 5px; }
    .trading-controls .input-group { padding: 8px 12px; }
    
    /* AdSense Placeholder Spacing */
    .adsbygoogle {
        margin: 15px 0;
        background: rgba(0,0,0,0.05);
        min-height: 100px;
    }
}

/* 업데이트 로그 스타일 */
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.update-log-content {
    max-width: 500px !important;
    padding: 25px !important;
    text-align: left !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 10px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.update-scroll-area {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 스크롤바 디자인 */
.update-scroll-area::-webkit-scrollbar { width: 6px; }
.update-scroll-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.update-scroll-area::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.update-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--input-border);
}
.update-item:last-child { border-bottom: none; }

.update-item .version {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 8px;
}
.update-item .date {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.update-item ul {
    margin-top: 10px;
    list-style: none;
    padding-left: 5px;
}
.update-item li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}
.update-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 채팅 섹션 스타일 */
.chat-section {
    display: flex;
    flex-direction: column;
    height: 400px; /* 고정 높이 */
    padding: 20px !important;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

/* 채팅창 스크롤바 */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
.chat-messages::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.chat-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    background: rgba(128,128,128,0.1);
    padding: 5px;
    border-radius: 4px;
}

.chat-msg {
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-all;
}

.chat-msg .name {
    font-weight: bold;
    color: var(--accent);
    margin-right: 5px;
}

.chat-msg.mine .name {
    color: #10b981;
}

.chat-input-area {
    display: flex;
    gap: 8px;
}

#chat-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

#chat-input:focus { border-color: var(--primary); }

/* 일일 미션 스타일 */
.mission-content {
    max-width: 450px !important;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.mission-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--input-border);
    padding: 15px;
    border-radius: 12px;
    position: relative;
}

.mission-item.completed {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.mission-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mission-title {
    font-weight: bold;
    font-size: 0.95rem;
}

.mission-reward {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: bold;
}

.mission-progress-container {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.mission-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.completed .mission-progress-bar {
    background: #10b981;
}

.mission-status-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.mission-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* 버튼 클릭 이펙트 */
.btn:active {
    transform: scale(0.95);
    filter: brightness(1.2);
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 룰렛 스타일 */
.roulette-content {
    max-width: 450px !important;
    overflow: hidden;
}

.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

#roulette-wheel-box {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 8px solid var(--panel-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.wheel {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1);
    background: conic-gradient(
        #ef4444 0deg 51.4deg, 
        #3b82f6 51.4deg 102.8deg, 
        #10b981 102.8deg 154.2deg, 
        #f59e0b 154.2deg 205.6deg, 
        #8b5cf6 205.6deg 257deg, 
        #ec4899 257deg 308.4deg, 
        #64748b 308.4deg 360deg
    );
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent);
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.roulette-result-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    min-height: 1.5em;
    color: var(--text-main);
}

/* 숫자와 단위 줄바꿈 방지 */
.stock-price, .stock-change, .total-asset-badge, .asset-item .value {
    white-space: nowrap !important;
}

/* 터치 친화적 버튼 */
.btn, .btn-sm {
    min-height: 44px; /* iOS 터치 표준 */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .update-log-content {
        width: 95%;
        padding: 20px !important;
    }
    .update-scroll-area {
        max-height: 60vh;
    }
    #roulette-wheel-box {
        width: 200px;
        height: 200px;
    }
}
