/**
 * GameLink V4.5 External Stylesheet
 * 公式レインボーカラーパレットおよびベーススタイル定義
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* --- 1. 公式カラーパレット定義 (LEGO / Rainbow) --- */
:root {
    --lego-red: #E3000B;
    --lego-orange: #FF8200;
    --lego-yellow: #FFE000;
    --lego-green: #00843D;
    --lego-blue: #005596;
    --lego-cyan: #00A3DA;
    --lego-purple: #6A2067;
}

/* --- 2. 基本スタイル --- */
body {
    background-color: #000000;
    margin: 0;
    overflow-x: hidden; /* スクロールを許可するように修正 */
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- 3. ローディング画面 --- */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top-color: #00A3DA;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* --- 4. アニメーション設定 --- */
.animate-in {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation-name: fadeIn; }

/* --- 5. スクロールバーのカスタマイズ --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* --- 6. 選択範囲 --- */
::selection {
    background: rgba(255, 255, 255, 0.1);
}