/* =====================================================
   SCUELA SLOT - Base Styles
   カワイイテーマのスロットゲーム
===================================================== */

:root {
    /* カワイイカラーパレット */
    --primary-pink: #ff6b9d;
    --primary-purple: #c44dff;
    --primary-blue: #4d9fff;
    --accent-yellow: #ffd93d;
    --accent-orange: #ff8c42;
    --accent-green: #6bcb77;
    
    /* ダークテーマ */
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-slot: #0f0f23;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    
    /* GOGO!ランプカラー */
    --gogo-glow: #ff0044;
    --gogo-shadow: 0 0 60px #ff0044, 0 0 100px #ff0044, 0 0 140px #ff0044;
    
    /* グラデーション */
    --gradient-pink: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    --gradient-rainbow: linear-gradient(135deg, #ff6b9d, #c44dff, #4d9fff, #6bcb77, #ffd93d);
    
    /* シャドウ */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.4);
    
    /* フォント */
    --font-main: 'Zen Maru Gothic', sans-serif;
    
    /* サイズ */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =====================================================
   共通コンポーネント
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-pink);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

/* =====================================================
   アニメーション
===================================================== */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 68, 0.5); }
    50% { box-shadow: var(--gogo-shadow); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Toast notification */
.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    min-width: 220px;
    max-width: 280px;
    padding: 12px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
    border-left: 4px solid var(--primary-blue);
}

.toast.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.positive { border-color: var(--accent-green); }
.toast.negative { border-color: var(--accent-orange); }
.toast.info { border-color: var(--primary-blue); }

/* Modal popup for credit transfer */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    min-width: 260px;
    max-width: 340px;
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
    border: 2px solid rgba(255,255,255,0.08);
}

.modal-overlay.visible .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card .modal-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.modal-card .modal-body {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =====================================================
   レスポンシブ
===================================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .card {
        padding: 16px;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}
