/* ===== CSS Variables ===== */
:root {
    /* 属性色 */
    --color-refess: #f0c040;
    --color-lawtia: #8040c0;
    --color-gowen: #d04040;
    --color-falkow: #4080d0;

    /* ステータス変化 */
    --color-stat-up: #4080d0;
    --color-stat-down: #d04040;

    /* UI基本色 */
    --color-bg: #1a1a2e;
    --color-bg-light: #252540;
    --color-bg-card: #2d2d4a;
    --color-primary: #4a90d9;
    --color-primary-hover: #5da0e9;
    --color-text: #ffffff;
    --color-text-muted: #aaaaaa;
    --color-border: #3a3a5a;
    --color-success: #40c060;
    --color-error: #d04040;
    --color-warning: #f0c040;

    /* カードサイズ */
    --card-width: 80px;
    --card-height: 120px;

    /* フォント */
    --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

/* ===== Connection Status ===== */
.connection-status {
    position: fixed;
    bottom: 8px;
    left: 8px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    z-index: 1000;
}

.connection-status.connected {
    background-color: rgba(64, 192, 96, 0.2);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.connection-status.disconnected {
    background-color: rgba(208, 64, 64, 0.2);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}
