/* 테마 변수 */
:root {
    --bg: #0b1220;
    --card: #121a2b;
    --text: #eef3ff;
    --muted: #9db0d2;
    --accent: #0ea5e9;
}

* {
    box-sizing: border-box;
}

/* 기본 스타일 */
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, Noto Sans KR, sans-serif;
    background: var(--bg);
    color: var(--text);
}

header {
    padding: 14px 16px;
    position: sticky;
    top: 0;
    background: rgba(11, 18, 32, .7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #1e2a44;
}

header h1 { margin: 0; font-size: 18px; }

main { padding: 16px; max-width: 720px; margin: 0 auto; }

input[type="text"],
input[type="number"] {
    flex: 1;
    background: #0d1424;
    color: var(--text);
    border: 1px solid #213150;
    border-radius: 10px;
    padding: 10px 12px;
}

button {
    background: #10213a;
    color: var(--text);
    border: 1px solid #1e2f4f;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

button.accent { background: var(--accent); border-color: var(--accent); color: #001423; font-weight: 700; }
    

/* 레이아웃 유틸리티 */
.grid {
    display: grid;
    gap: 10px;
}

.row {
    display: flex;
    gap: 8px;
}

.card {
    background: var(--card);
    border: 1px solid #1e2a44;
    border-radius: 14px;
    padding: 14px;
}

/* 컴포넌트 */
.total {
    font-size: 18px;
    font-weight: 700;
}

.badge {
    background: #0b1e35;
    border: 1px solid #163154;
    color: #cfe5ff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.game {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid #1e2a44;
    border-radius: 10px;
    background: #0e1628;
}

.game .meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.num {
    min-width: 2.5em;
    text-align: center;
}

/* .game-item {
    background: white;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-item button {
    padding: 5px 10px;
} */


/* 유틸리티 */
.muted {
    color: var(--muted);
    font-size: 12px;
}

.danger { color:#ffb4b4; }
