:root {
    --bg-dark: #0f1115;
    --primary: #f0f4ff;
    --accent: #5e5ce6;
    --accent-hover: #7b79ff;
    --secondary: #2c2c31;
    --text-muted: #8e8e93;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* アニメーションステージ */
.background-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0a 100%);
}

.bg-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
    filter: brightness(0.9) contrast(1.1);
}

#hairCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* ガラスモーフィズムUI */
.glass-ui {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 20;
    transition: transform 0.3s ease;
}

.glass-ui:hover {
    transform: translateX(-50%) translateY(-5px);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* コントロール */
.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

input[type="range"] {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(94, 92, 230, 0.5);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-premium {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-premium:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(94, 92, 230, 0.4);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(44, 44, 49, 0.5);
    color: var(--primary);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(60, 60, 65, 0.8);
}

footer {
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}
