/* Splash Screen - Glassy Transparent Overlay */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-logo {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.splash-headline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: headlineSlideIn 1s ease-out 0.3s both;
}

@keyframes headlineSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-headline-line {
    font-family: "Didact Gothic", sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.splash-headline-line:first-child {
    font-size: 32px;
}

.splash-headline-line:last-child {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.85);
}

.splash-continue-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 16px 32px;
    font-family: "Didact Gothic", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.2), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: buttonSlideIn 1s ease-out 0.6s both;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    justify-content: center;
}

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.splash-continue-btn:hover {
    background: rgba(255, 140, 0, 0.8);
    border-color: rgba(255, 140, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.splash-continue-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.splash-btn-text {
    position: relative;
    z-index: 2;
}

.splash-timer-ring {
    position: relative;
    width: 24px;
    height: 24px;
}

.splash-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.splash-timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

.splash-timer-progress {
    fill: none;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .splash-headline-line:first-child {
        font-size: 28px;
    }

    .splash-headline-line:last-child {
        font-size: 20px;
    }

    .splash-logo {
        height: 60px;
    }

    .splash-content {
        gap: 24px;
    }
}

/* Control Panel - Hidden */
.control-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
    cursor: default;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

.control-bar {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

/* Left straight section - Hidden */
.bar-left {
    display: none;
}

/* Right straight section - Hidden */
.bar-right {
    display: none;
}

/* Center curved section - Hidden */
.bar-center {
    display: none;
}

/* Toxicity label in center */
.center-toxicity-label {
    color: rgba(255, 255, 255, 0.95);
    font-family: "Didact Gothic", sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-top: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button container inside curved section */
.control-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    align-items: center;
    pointer-events: auto;
}

/* Control panel buttons - updated */
.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
    pointer-events: auto;
    font-family: "Didact Gothic", sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.9);
}

/* More Info button - Liquid Glass (Adjacent to slider) */
.btn-more-info {
    width: auto;
    height: 50px; /* Increased height to accommodate logo */
    border-radius: 25px; /* Adjusted to match new height */
    padding: 8px 20px; /* Adjusted padding for logo */
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* Logo styling within the button */
.btn-logo {
    height: 34px; /* Logo height within the button */
    width: auto; /* Maintain aspect ratio */
    max-width: 120px; /* Prevent logo from being too wide */
    object-fit: contain; /* Ensure logo scales properly without distortion */
    transition: filter 0.3s ease; /* Smooth filter transitions */
    filter: invert(100%);
}

/* Fallback text styling (hidden when logo loads successfully) */
.btn-fallback-text {
    display: none; /* Hidden by default when logo is present */
    font-family: "Didact Gothic", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Show fallback text when logo fails to load */
.btn-more-info.logo-failed .btn-fallback-text {
    display: block;
}

.btn-more-info.logo-failed .btn-logo {
    display: none;
}

/* Responsive logo sizing for smaller screens */
@media (max-width: 768px) {
    .btn-logo {
        height: 30px;
        max-width: 100px;
    }

    .btn-more-info {
        height: 46px;
        border-radius: 23px;
        padding: 6px 18px;
    }
}

.btn-more-info:hover {
    background: rgba(255, 140, 0, 1.0);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3), inset 0 4px 20px rgba(255, 255, 255, 0.293);
}

.btn-more-info:hover .btn-logo {
    filter: brightness(1.2) contrast(1.2); /* Enhance logo visibility on hover */
}

.btn-more-info:active {
    background: rgba(255, 120, 0, 0.9);
}

.btn-more-info:active .btn-logo {
    filter: brightness(1.1) contrast(1.1);
}



/* Modal Overlay */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.info-modal-overlay.active {
    display: flex;
}

/* Info Modal - Liquid Glass */
.info-modal {
    background: rgba(255, 255, 255, 0.15);
    /* border: 1px solid rgba(255, 255, 255, 0.25); */
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-modal-title {
    font-family: "Didact Gothic", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-modal-content {
    font-family: "Didact Gothic", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.info-modal-content p {
    margin: 10px 0;
}

/* Button colors */
.btn-donate-ctrl {
    background: #22c55e;
}



.btn-dump-ctrl {
    background: #ef4444;
}

/* Perspective control buttons - text style */
.perspective-buttons {
    position: fixed;
    bottom: 4px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 9998;
    pointer-events: auto;
    flex-direction: row;
}

.perspective-btn {
    display: none;
}

/* Bottom Controls Container - Groups slider and button */
.bottom-controls-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
    z-index: 10000;
}

/* Progress Timer Container - Liquid Glass Pill */
.progress-timer-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    min-height: 50px;
    pointer-events: auto;
}

/* Slide Counter */
.slide-counter {
    color: rgba(255, 255, 255, 0.95);
    font-family: "Didact Gothic", sans-serif;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    min-width: 45px;
    text-align: center;
}

/* Progress Timer Wrapper - Contains circle and button */
.progress-timer-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

/* Progress Timer Circle */
.progress-timer-circle {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.progress-timer-bg {
    stroke-dasharray: 125.66; /* 2 * PI * 20 */
    stroke-dashoffset: 0;
}

.progress-timer-bar {
    stroke-dasharray: 125.66; /* 2 * PI * 20 */
    stroke-dashoffset: 125.66; /* Start at 0% */
    transition: stroke-dashoffset 0.1s linear;
}

/* Pause/Play Button - Centered inside the circle */
.pause-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.pause-play-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.pause-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.pause-play-btn .pause-icon,
.pause-play-btn .play-icon {
    pointer-events: none;
}

/* Show/hide icons based on paused state */
.pause-play-btn.paused .pause-icon {
    display: none;
}

.pause-play-btn.paused .play-icon {
    display: block !important;
}



