/* ==========================================================
   スロットゲーム専用のスタイル
   (共通の見た目は game-points-core プラグインのCSSを使っています)
   ========================================================== */

.sl-points-row {
    margin-bottom: 14px;
}

/* ---------- テスト用エリア(確認が終わったらHTML側から削除してください) ---------- */
.sl-test-area {
    display: none; /* テスト用エリアは非表示。再び表示したい時はこの行を削除してください */
    margin-top: 20px;
    padding: 12px;
    border: 2px dashed #d9534f;
    border-radius: 10px;
    background: #fff5f5;
    text-align: center;
}

.sl-test-label {
    font-size: 12px;
    color: #d9534f;
    font-weight: bold;
    margin-bottom: 8px;
}

.sl-test-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    border: 2px dashed #d9534f;
    border-radius: 20px;
    background: #fff;
    color: #d9534f;
    cursor: pointer;
    margin: 4px;
}

.sl-test-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- ベット選択 ---------- */
.sl-bet-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
}

.sl-bet-label {
    font-size: 13px;
    color: #888;
    margin-right: 4px;
}

.sl-bet-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
}

.sl-bet-btn.active {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.sl-bet-cost {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

/* ---------- 3x3のマス全体を囲む外枠(ラベル列 + マス目) ---------- */
.sl-grid-outer {
    display: flex;
    gap: 6px;
    max-width: 300px;
    margin: 0 auto 10px;
}

/* ---------- 左側の①②③ライン番号 ---------- */
.sl-line-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
}

.sl-line-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #f39c12;
    border: 2px solid transparent;
    border-radius: 8px;
}

.sl-line-label.sl-win-line-label {
    color: #2e9e44;
    background: #eafbea;
}

/* ---------- 3x3のマス本体(斜めライン表示のため position:relative) ---------- */
.sl-grid {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* ---------- 斜めライン(④⑤)の線(SVG) ---------- */
.sl-diag-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.sl-diag-line {
    stroke: #f39c12;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.45;
    vector-effect: non-scaling-stroke;
}

.sl-diag-line.sl-win-diag-line {
    stroke: #2e9e44;
    opacity: 1;
}

/* ---------- 斜めライン(④⑤)のラベル(マスの角に小さく表示) ---------- */
.sl-diag-label {
    position: absolute;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #f39c12;
    background: #fff;
    border: 1px solid #f39c12;
    border-radius: 50%;
    pointer-events: none;
}

.sl-diag-label-3 {
    top: -9px;
    left: -9px;
}

.sl-diag-label-4 {
    top: -9px;
    right: -9px;
}

.sl-diag-label.sl-win-line-label {
    color: #2e9e44;
    border-color: #2e9e44;
    background: #eafbea;
}

.sl-line-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #f39c12;
    border: 2px solid transparent;
    border-radius: 8px;
}

.sl-lines-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 14px;
}

.sl-cell {
    aspect-ratio: 1 / 1;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.sl-cell.sl-win-cell {
    border-color: #2e9e44;
    background: #eafbea;
}

.sl-result {
    min-height: 24px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 12px;
}

/* ---------- チェリーラッシュ中の状態表示(ボタンの外に出す説明文) ---------- */
.sl-rush-status {
    min-height: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 6px;
}

/* ---------- チェリーラッシュ中の演出(背景が変わり、ふわっと光る) ---------- */
.ghub-game-wrap.sl-rush-mode {
    background: linear-gradient(135deg, #fff0f0, #fff8e1);
    box-shadow: 0 0 0 2px #ff6b6b, 0 0 24px rgba(255, 107, 107, 0.55);
    animation: sl-rush-pulse 1.4s ease-in-out infinite;
}

.sl-rush-mode .sl-grid .sl-cell {
    border-color: #ff9f43;
}

@keyframes sl-rush-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #ff6b6b, 0 0 18px rgba(255, 107, 107, 0.45);
    }
    50% {
        box-shadow: 0 0 0 2px #ffb347, 0 0 32px rgba(255, 179, 71, 0.75);
    }
}

.sl-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sl-auto-btn.sl-auto-on {
    background: #fff;
    color: #f39c12;
    border: 2px solid #f39c12;
}

.sl-auto-settings-btn {
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
}

.sl-auto-setting-row {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.sl-auto-setting-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.sl-auto-setting-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 0;
}

.sl-paytable {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.6;
}

/* ---------- 配当表・ルールを見るボタン ---------- */
.sl-help-row {
    text-align: center;
    margin-top: 10px;
}

.sl-help-btn {
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    color: #666;
    cursor: pointer;
}

/* ---------- 配当表・ルールのポップアップ(別画面表示) ---------- */
.sl-help-overlay {
    display: none; /* JSで開いた時だけ表示する */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sl-help-overlay.sl-help-open {
    display: flex;
}

.sl-help-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.sl-help-title {
    margin: 0 0 12px;
    font-size: 16px;
    text-align: center;
}

.sl-help-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
