﻿:root {
    --gold: #d4af37;
    --bg-dark: #020617; 
    --fresh-blue: #b9f3ff; 
    --white: #ffffff;
}
body {
    background-color: var(--bg-dark);
    color: var(--gold);
    font-family: 'Sawarabi Mincho', serif;
    margin: 0; padding: 0;
    overflow: hidden; height: 100dvh;
    touch-action: none;
    user-select: none; -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 3s ease; 
}
.safe-area-inset {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}
#slider-container {
    padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
}
.breaker-slot-vertical {
    box-shadow: inset 10px 0 20px rgba(0,0,0,1), inset -2px 0 5px rgba(212,175,55,0.05);
    background: #020202;
    border: 1px solid #1a1a1a;
}
.lever-handle-v {
    background: linear-gradient(180deg, #444 0%, #111 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 1px 1px rgba(212,175,55,0.1);
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    transition: transform 0.1s, box-shadow 0.2s, background 0.3s;
}
.handle-ready {
    background: linear-gradient(180deg, var(--gold), #8a6d10) !important;
    border-color: #fff !important;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6) !important;
    animation: jitter 0.1s infinite;
}
.handle-ready::after {
    content: "PUSH";
    position: absolute; font-size: 10px; font-weight: bold; color: #000; letter-spacing: 0.2em;
    animation: pulse-text 0.8s infinite;
}
@keyframes jitter {
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50.5%, 0.5px); }
    100% { transform: translate(-49.5%, -0.5px); }
}
@keyframes pulse-text {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.screen-shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
.breathing-circle {
    width: 40px; height: 40px;
    background: white; border-radius: 50%;
    filter: blur(8px);
    box-shadow: 0 0 60px rgba(255,255,255,0.4);
    transition: none !important; 
    will-change: transform;
}
.light-particle {
    width: 2px; height: 180px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 1) 50%, transparent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    filter: blur(0.5px); opacity: 0; transform: scaleY(0);
    transition: all 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute; top: 30%;
}
.is-void .light-particle { opacity: 1; transform: scaleY(1); }
.end-intent-text {
    background: none; border: none; padding: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px; letter-spacing: 0.8em; font-weight: 300;
    opacity: 0; text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: opacity 4s ease;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    white-space: nowrap; cursor: pointer;
}
.is-end-active .end-intent-text { opacity: 1; }
.bg-end-faint {
    background: radial-gradient(circle at 50% 110%, #4a0404 0%, #1a0505 60%, #050505 100%) !important;
}
.hidden-state { display: none !important; }
.fade-in { animation: fadeIn 1.5s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#flash-overlay {
    position: fixed; inset: 0;
    background: var(--fresh-blue); opacity: 0;
    pointer-events: none; z-index: 100;
}
.do-flash { animation: flash-anim 0.8s ease-out forwards; }
@keyframes flash-anim { 0% { opacity: 1; } 100% { opacity: 0; } }
.btn-test {
    font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
    border: 1px solid rgba(212,175,55,0.2);
    color: rgba(212,175,55,0.4);
    padding: 8px 20px; border-radius: 2px;
    transition: all 0.3s;
}
@media (prefers-reduced-motion: reduce) {
    .handle-ready, .screen-shake, .do-flash { animation: none !important; }
    .fade-in { animation-duration: 0.1s; }
} /* 不足していたメディアクエリの閉じを補完 */