/* ガチャ専用のスタイル(共通の見た目は game-points-core のCSSを使っています) */

.gc-points-row { margin-bottom: 12px; }
.gc-cost { text-align: center; font-size: 13px; color: #888; margin-bottom: 14px; }
.gc-cost strong { color: #2e9e44; }

/* カプセル(高さを固定して、表示が上下にずれないようにしています) */
.gc-capsule-box { text-align: center; margin-bottom: 6px; }
.gc-capsule {
    width: 120px; height: 120px; line-height: 120px; margin: 0 auto;
    font-size: 56px; font-weight: bold; text-align: center;
    background: #fff; border: 3px solid #ddd; border-radius: 50%;
    box-sizing: border-box; overflow: hidden; white-space: nowrap;
}
.gc-capsule.gc-small { font-size: 34px; }
.gc-capsule.gc-spinning { border-color: #f39c12; }
.gc-rank { height: 22px; line-height: 22px; margin-top: 6px; font-size: 14px; font-weight: bold; color: #888; }

/* ランクごとの色 */
.gc-capsule.gc-rank-miss { border-color: #d9534f; color: #d9534f; background: #fff5f5; }
.gc-capsule.gc-rank-N { border-color: #aaa; color: #666; }
.gc-capsule.gc-rank-R { border-color: #4a90d9; color: #4a90d9; background: #f0f7ff; }
.gc-capsule.gc-rank-SR { border-color: #9b59b6; color: #9b59b6; background: #f8f0ff; }
.gc-capsule.gc-rank-SSR { border-color: #f39c12; color: #e67e22; background: #fff8e1; box-shadow: 0 0 14px rgba(243, 156, 18, 0.6); }
.gc-capsule.gc-rank-UR { border-color: #d9534f; color: #d9534f; background: #fff0f0; box-shadow: 0 0 20px rgba(255, 107, 107, 0.75); }

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

/* 直近の結果 */
.gc-history { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; min-height: 22px; margin-bottom: 12px; }
.gc-chip { padding: 2px 7px; font-size: 11px; font-weight: bold; border-radius: 10px; background: #eee; color: #666; }
.gc-chip.gc-chip-plus { background: #eafbea; color: #2e9e44; }
.gc-chip.gc-chip-minus { background: #fdeceb; color: #d9534f; }

.gc-controls { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.gc-auto-btn.gc-auto-on { background: #fff; color: #f39c12; border: 2px solid #f39c12; }

.gc-sub-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.gc-sub-btn {
    padding: 8px 14px; font-size: 12px; border: 1px solid #ccc; border-radius: 20px;
    background: #fff; color: #666; cursor: pointer;
}
.gc-sub-btn.gc-sound-off { background: #eee; color: #999; }

/* ポップアップ */
.gc-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;
}
.gc-overlay.gc-open { display: flex; }
.gc-modal {
    position: relative; background: #fff; border-radius: 16px; padding: 24px 20px;
    max-width: 380px; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); text-align: left;
}
.gc-modal-title { margin: 0 0 12px; font-size: 16px; text-align: center; }
.gc-close-btn {
    position: absolute; top: 10px; right: 12px; border: none; background: none;
    font-size: 18px; color: #999; cursor: pointer; line-height: 1;
}
.gc-setting-row { margin-bottom: 10px; font-size: 14px; }
.gc-setting-note { font-size: 12px; color: #888; margin: 10px 0 0; }
.gc-rules { font-size: 13px; line-height: 1.7; color: #555; }
.gc-rule-plus { color: #2e9e44; }
.gc-rule-minus { color: #d9534f; }

.gc-version { text-align: right; font-size: 10px; color: #ccc; margin-top: 8px; }
