#keiba-game-app {
    font-family: "Helvetica Neue", Arial, sans-serif;
    max_width: 600px;
    margin: 0 auto;
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 10px;
}

#keiba-game-app * {
    box-sizing: border-box;
}

.game-step {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.step-header {
    background: #2c3e50;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.step-content {
    padding: 20px;
}

.desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* ボタン類 */
.action-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

#keiba-game-app button {
    cursor: pointer;
    border-radius: 3px;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
}

.btn-next, .btn-main {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
}

.btn-back {
    background: #999;
    color: #fff;
}

.btn-vote {
    background: #d63638;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 30px;
}

.btn-small {
    background: #eee;
    border: 1px solid #ccc;
    padding: 4px 10px;
    font-size: 12px;
}

/* 馬リスト */
.horse-item {
    display: block;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.horse-item:hover { background: #fdfdfd; }
.horse-item input { margin-right: 10px; transform: scale(1.2); }

/* 券種グリッド */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.type-btn {
    background: #fff;
    border: 1px solid #0073aa;
    color: #0073aa;
    padding: 15px;
    font-size: 16px;
    position: relative;
    transition: all 0.2s;
}

.type-btn:hover {
    background: #eef7fb;
}

.badge {
    background: #d63638;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: 5px;
    right: 5px;
    display: none; /* 初期は非表示 */
}

/* 詳細リスト */
.scroll-box {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    background: #fafafa;
}

.comb-row {
    padding: 5px 0;
    border-bottom: 1px dashed #ccc;
}
.comb-row label {
    cursor: pointer;
    display: block;
}

/* 金額入力画面 */
.bulk-input-area {
    background: #e6f0f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.bet-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.bet-label { font-weight: bold; }

.total-area {
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
    margin: 20px 0;
    padding: 10px;
    background: #fffbe6;
    border: 1px solid #e1dcb3;
}