:root {
    --bg-color: #0f172a;
    --card-color: #1e293b;
    --accent-color: #f43f5e;
    --text-color: #f8fafc;
    --success-color: #10b981;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 90%;
    max-width: 400px;
    padding-top: 40px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.hidden { display: none !important; }

/* 入力・カードUI */
.card-ui {
    background: var(--card-color);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

input[type="number"] {
    background: #0f172a;
    border: 2px solid var(--accent-color);
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 10px;
    width: 60px;
    text-align: center;
}

/* ボタン */
.btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
    cursor: pointer;
}

.btn:active { transform: scale(0.95); }
.btn:disabled { background: #475569; box-shadow: none; }

/* 確認用カード */
.card-display {
    width: 100%;
    height: 300px;
    background: var(--card-color);
    border: 4px solid var(--accent-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    touch-action: none;
}

.number-view { font-size: 6rem; font-weight: 900; display: none; }
.hint-text { opacity: 0.6; font-size: 0.9rem; }
.badge { background: var(--accent-color); padding: 5px 20px; border-radius: 20px; display: inline-block; }

/* プレイ画面 */
.field-area {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    min-height: 100px;
    margin-bottom: 30px;
}

.field-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.field-card {
    background: white;
    color: var(--bg-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-list { list-style: none; padding: 0; }
.player-item {
    background: var(--card-color);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}