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

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

/* ---------- 勝ち・負けの連続ランプ ---------- */
.jk-lamp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.jk-lamp-label {
    font-size: 12px;
    color: #888;
    width: 40px;
    text-align: right;
}

.jk-lamp {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e5e5;
    border: 1px solid #ddd;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.jk-lamp-win.jk-lamp-on {
    background: #2e9e44;
    border-color: #2e9e44;
    box-shadow: 0 0 6px rgba(46, 158, 68, 0.7);
}

.jk-lamp-draw.jk-lamp-on {
    background: #888;
    border-color: #888;
    box-shadow: 0 0 6px rgba(136, 136, 136, 0.7);
}

.jk-lamp-lose.jk-lamp-on {
    background: #d9534f;
    border-color: #d9534f;
    box-shadow: 0 0 6px rgba(217, 83, 79, 0.7);
}

.jk-lamp-blink {
    animation: jk-lamp-flash 0.6s ease-in-out 2;
}

@keyframes jk-lamp-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

/* ---------- 勝ちラッシュ中の状態表示・背景演出(スロットのラッシュ演出を参考) ---------- */
.jk-rush-status {
    min-height: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 6px;
}

.ghub-game-wrap.jk-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: jk-rush-pulse 1.4s ease-in-out infinite;
}

@keyframes jk-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);
    }
}

.jk-result {
    min-height: 26px;
    font-size: 17px;
    margin-bottom: 12px;
}

.jk-battle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.jk-battle-side {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jk-battle-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.jk-battle-hand {
    font-size: 48px;
    line-height: 1;
}

.jk-battle-vs {
    font-size: 14px;
    color: #aaa;
    font-weight: bold;
}

.jk-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.jk-btn {
    flex: 1;
    max-width: 110px;
    height: 96px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.jk-btn-emoji {
    font-size: 28px;
    line-height: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jk-btn-label {
    font-size: 14px;
    line-height: 1;
    height: 18px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jk-btn:hover {
    border-color: #f39c12;
    transform: translateY(-2px);
}

.jk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- オートボタン・オート設定 ---------- */
.jk-controls-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

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

.jk-sound-btn.jk-sound-off {
    background: #eee;
    color: #999;
    border-color: #ccc;
}

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

.jk-help-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

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

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

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

.jk-auto-setting-row {
    margin-bottom: 10px;
    font-size: 14px;
}

.jk-auto-setting-note {
    font-size: 12px;
    color: #888;
    margin: 10px 0 0;
}
