@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Rajdhani:wght@600;700&display=swap');

#kosei-ds-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

#kosei-ds-overlay canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#kosei-ds-road {
    z-index: 4;
}

#kosei-ds-text {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#kosei-ds-badge {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .5em;
    color: #e8c84a;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .35s ease-out, transform .35s ease-out;
    background: rgba(232, 200, 74, 0.1);
    border: 1px solid rgba(232, 200, 74, 0.35);
    padding: 4px 20px;
    margin-bottom: 16px;
}

#kosei-ds-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: clamp(26px, 5vw, 52px);
    color: #fff;
    opacity: 0;
    transform: scale(1.55) translateY(10px);
    transition: opacity .38s ease-out, transform .38s ease-out;
    text-align: center;
    white-space: nowrap;
    letter-spacing: .04em;
    text-shadow: 0 2px 40px rgba(255,255,255,.15);
}

#kosei-ds-divider {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8c84a 40%, #e8c84a 60%, transparent);
    margin: 14px auto;
    transition: width .55s ease-out;
}

#kosei-ds-sub {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 1.8vw, 17px);
    color: rgba(255, 255, 255, .75);
    letter-spacing: .35em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .32s ease-out, transform .32s ease-out;
    margin-top: 2px;
}

#kosei-ds-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
}

#kosei-ds-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #e8c84a;
    width: 0;
    z-index: 25;
    transition: none;
}

#kosei-ds-skip {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 30;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    font-family: sans-serif;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 16px;
    border-radius: 3px;
    background: rgba(0,0,0,.4);
    transition: color .2s, border-color .2s;
}

#kosei-ds-skip:hover {
    color: #fff;
    border-color: rgba(255,255,255,.55);
}

#kosei-ds-overlay.kosei-ds-out {
    opacity: 0;
    transition: opacity .65s ease-out;
    pointer-events: none;
}
