/* === START SCREEN CSS START === */
/* === START SCREEN CSS START === */
/* === START SCREEN CSS START === */

#start-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    cursor: pointer;
    overflow: hidden;
}

#start-screen.fade-out {
    animation: start-fadeout 1.2s var(--transition-function) forwards;
}

@keyframes start-fadeout {
    0% { opacity: 1; }
    30% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Background Image */
.start-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.start-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
    transform: scale(1.05);
    animation: start-bg-drift 20s ease-in-out infinite alternate;
}

@keyframes start-bg-drift {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

/* Overlay Gradient */
.start-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.7) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.8) 100%);
}

/* Content Layer */
.start-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    animation: start-content-in 1s var(--transition-function) 0.3s forwards;
}

@keyframes start-content-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.start-header {
    display: flex;
    justify-content: flex-start;
}

.start-flowchart {
    margin-left: auto;
}

.start-leave {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s var(--transition-function);
    cursor: pointer;
}

.start-leave:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Center Content */
.start-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
}

.start-title {
    font-family: 'Archivo Narrow', var(--font-primary);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
    max-width: 800px;
}

/* Warning Boxes */
.start-warning {
    max-width: 500px;
    width: 100%;
}

.warning-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.warning-box.unverified {
    border-color: rgba(255, 179, 34, 0.3);
    background: linear-gradient(180deg, rgba(255, 179, 34, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.warning-box.verified {
    border-color: rgba(74, 222, 128, 0.3);
}

.warning-header {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.2rem;
}

.warning-box.unverified .warning-icon {
    color: #ffb322;
}

.warning-box.verified .warning-icon {
    color: #4ade80;
}

.warning-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.warning-box.unverified .warning-label {
    color: #ffb322;
}

.warning-box.verified .warning-label {
    color: #4ade80;
}

.warning-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.warning-badge.age-rating {
    background: rgba(255, 70, 70, 0.2);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff6b6b;
}

.rating-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Tips */
.start-tips {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.tip-item i {
    font-size: 1rem;
    opacity: 0.7;
}

/* Footer / Prompt */
.start-footer {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

.start-prompt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-prompt span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: prompt-breathe 3s ease-in-out infinite;
}

@keyframes prompt-breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.prompt-pulse {
    position: absolute;
    width: 200px;
    height: 50px;
    border-radius: var(--radius-full);
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: prompt-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes prompt-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

/* Loading State (shown initially) */
.start-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    transition: opacity 0.5s var(--transition-function);
}

.start-loading span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.start-loading span::after {
    content: '';
    animation: loading-dots 1.5s steps(4, end) infinite;
}

.start-loading.ready {
    opacity: 0;
    pointer-events: none;
}

/* Mobile */
@media screen and (max-width: 800px) {
    .start-content {
        padding: 1.5rem;
    }
    
    .start-center {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .warning-box {
        padding: 1.25rem;
    }
    
    .start-tips {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .start-prompt span {
        font-size: 0.85rem;
    }
}

.start-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: black;
    transition: opacity 0.5s var(--transition-function);
}

.start-loading .loading-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.start-loading .loading-dots {
    width: 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.start-loading .loading-dots::after {
    content: '.';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* === START SCREEN CSS END === */
/* === START SCREEN CSS END === */
/* === START SCREEN CSS END === */

/* === SCENE LOADING INDICATOR === */
.scene-loading {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    transition: opacity 0.5s var(--transition-function);
}

.scene-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.scene-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
}

.scene-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 179, 34, 0.2);
    border-top-color: #ffb322;
    border-radius: 50%;
    animation: scene-spin 1s linear infinite;
}

@keyframes scene-spin {
    to { transform: rotate(360deg); }
}

.scene-loading-text {
    font-family: 'Archivo Narrow', var(--font-primary);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scene-loading-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 280px;
}

/* === END SCREEN === */
#end-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    background: black;
    animation: end-fadein 3s ease 0.5s forwards;
}

@keyframes end-fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#end-screen .start-bg img {
    opacity: 0.15;
    filter: brightness(0.3) saturate(0.5) blur(2px);
}

#end-screen .start-content {
    animation: end-content-rise 2s ease 1.5s forwards;
    opacity: 0;
}

@keyframes end-content-rise {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

#end-screen .start-center {
    gap: 2rem;
}

#end-screen .start-title {
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-shadow: 0 0 60px rgba(255,255,255,0.3);
}

#end-screen .start-footer {
    animation: end-footer-fade 1.5s ease 3.5s forwards;
    opacity: 0;
}

@keyframes end-footer-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* === PREMIUM LOADING BAR === */
.progress-container {
    width: 320px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.05),
        inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    background-size: 200% 100%;
    width: 0%;
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.1);
    animation: bar-shimmer 2s ease-in-out infinite;
    transition: width 0.15s ease-out;
}

@keyframes bar-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Glowing pulse effect on the leading edge */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: edge-pulse 1.5s ease-in-out infinite;
}

@keyframes edge-pulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
}

.no-transition {
    transition: none !important;
}

/* Enhanced subtext with smooth fade */
.scene-loading-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    min-height: 1.4em;
    margin-top: 12px;
    transition: opacity 0.4s ease;
    font-style: italic;
}

/* Preparing state - pulsing dot animation */
.scene-loading-text.preparing::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-left: 8px;
    animation: preparing-pulse 1s ease-in-out infinite;
}

@keyframes preparing-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Smooth reset animation - fade out, jump, fade in */
.progress-bar-fill.resetting {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.progress-container.resetting {
    opacity: 0.5;
    transition: opacity 0.3s ease-out;
}

/* ============================== */
/* === GUEST UX MODALS START === */
/* ============================== */

/* === SHARED MODAL STYLES === */
.guest-modal,
.session-paused,
.welcome-back {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.guest-modal.active,
.session-paused.active,
.welcome-back.active {
    opacity: 1;
    pointer-events: all;
}

.guest-modal-backdrop,
.session-paused-backdrop,
.welcome-back-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* === GUEST DISCLAIMER MODAL === */
.guest-modal-card {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: linear-gradient(180deg, 
        rgba(18, 18, 22, 0.98) 0%, 
        rgba(10, 10, 14, 0.99) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 1.75rem;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
}

.guest-modal.active .guest-modal-card {
    transform: scale(1) translateY(0);
}

.guest-modal-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 179, 34, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.guest-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: rgba(255, 179, 34, 0.08);
    border: 1px solid rgba(255, 179, 34, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffb322;
    animation: ghost-float 3s ease-in-out infinite;
}

@keyframes ghost-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.guest-modal-title {
    font-family: 'Archivo Narrow', var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

/* Warning Items */
.guest-modal-warnings {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.guest-warning-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: left;
}

.guest-warning-item i {
    width: 20px;
    text-align: center;
    color: rgba(255, 179, 34, 0.7);
    font-size: 0.85rem;
}

/* Buttons */
.guest-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    outline: none;
}

.guest-btn-primary {
    background: linear-gradient(135deg, #ffb322 0%, #e6a01f 100%);
    color: black;
    box-shadow: 0 4px 20px rgba(255, 179, 34, 0.25);
}

.guest-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 179, 34, 0.35);
}

.guest-btn-primary:active {
    transform: scale(0.98);
}

.guest-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.guest-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.guest-btn-ghost:active {
    transform: scale(0.98);
}

/* === SESSION PAUSED OVERLAY === */
.session-paused-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    max-width: 380px;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.session-paused.active .session-paused-content {
    transform: scale(1);
}

.session-paused-icon {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 179, 34, 0.2);
    border-radius: 50%;
    animation: pause-ring-pulse 2s ease-in-out infinite;
}

@keyframes pause-ring-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.4;
    }
}

.session-paused-icon > i {
    font-size: 2rem;
    color: #ffb322;
    filter: drop-shadow(0 0 15px rgba(255, 179, 34, 0.4));
}

.session-paused-title {
    font-family: 'Archivo Narrow', var(--font-primary);
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.session-paused-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.session-paused-subtext {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.5rem;
}

.session-paused-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.session-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    outline: none;
    min-width: 240px;
}

.session-btn-primary {
    background: linear-gradient(135deg, #ffb322 0%, #e6a01f 100%);
    color: black;
    box-shadow: 0 4px 25px rgba(255, 179, 34, 0.3);
}

.session-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 179, 34, 0.4);
}

.session-btn-primary:active {
    transform: scale(0.98);
}

.session-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

.session-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* === WELCOME BACK OVERLAY === */
.welcome-back-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    max-width: 360px;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-back.active .welcome-back-content {
    transform: scale(1);
}

.welcome-back-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #4ade80;
    animation: welcome-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes welcome-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.welcome-back-title {
    font-family: 'Archivo Narrow', var(--font-primary);
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.welcome-back-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.welcome-back-actions {
    display: flex;
    justify-content: center;
}

.welcome-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    outline: none;
}

.welcome-btn-primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: black;
    box-shadow: 0 4px 25px rgba(74, 222, 128, 0.3);
}

.welcome-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 222, 128, 0.4);
}

.welcome-btn-primary:active {
    transform: scale(0.98);
}

/* === MOBILE RESPONSIVE === */
@media screen and (max-width: 480px) {
    .guest-modal-card {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        max-width: 92%;
    }
    
    .guest-modal-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    .guest-modal-title {
        font-size: 1.35rem;
    }
    
    .guest-modal-warnings {
        padding: 0.85rem;
    }
    
    .guest-warning-item {
        font-size: 0.85rem;
    }
    
    .session-paused-content,
    .welcome-back-content {
        padding: 1.5rem;
    }
    
    .session-paused-title,
    .welcome-back-title {
        font-size: 1.5rem;
    }
    
    .session-paused-text,
    .welcome-back-text {
        font-size: 0.95rem;
    }
    
    .session-btn,
    .welcome-btn {
        min-width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================== */
/* ===  GUEST UX MODALS END  === */
/* ============================== */

/* Close button for guest modal */
.guest-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.guest-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
}

.guest-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* ============================== */
/* === OUT OF GEMS OVERLAY === */
/* ============================== */

.gems-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gems-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.gems-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gems-overlay-content {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    background: linear-gradient(180deg, 
        rgba(18, 18, 22, 0.95) 0%, 
        rgba(10, 10, 14, 0.98) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gems-overlay.active .gems-overlay-content {
    transform: scale(1) translateY(0);
}

/* Gem Icon */
.gems-overlay-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.gem-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gem-empty i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    animation: gem-fade 2s ease-in-out infinite;
}

@keyframes gem-fade {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.95); }
}

.gem-crack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: crack-pulse 2s ease-in-out infinite;
}

@keyframes crack-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.2; }
}

/* Text */
.gems-overlay-title {
    font-family: 'Archivo Narrow', var(--font-primary);
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.gems-overlay-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Buttons */
.gems-overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gems-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    outline: none;
    text-decoration: none;
}

/* Primary - Green gem style */
.gems-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.gems-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.gems-btn-primary:active {
    transform: scale(0.98);
}

.gems-btn-primary i {
    color: rgba(255, 255, 255, 0.9);
}

/* Golden button */
.gems-btn-golden {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: black;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.gems-btn-golden:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
}

.gems-btn-golden:active {
    transform: scale(0.98);
}

.gems-btn-golden i {
    color: rgba(0, 0, 0, 0.8);
}

/* Ghost button */
.gems-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.gems-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.gems-btn-ghost:active {
    transform: scale(0.98);
}

/* Hint */
.gems-overlay-hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(245, 158, 11, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gems-overlay-hint i {
    font-size: 0.9rem;
}

/* Mobile */
@media screen and (max-width: 480px) {
    .gems-overlay-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .gems-overlay-title {
        font-size: 1.5rem;
    }
    
    .gems-overlay-text {
        font-size: 0.95rem;
    }
    
    .gems-btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }
}

.skip-button:hover { background: rgba(255,255,255,0.2) !important; color: white !important; }
.skip-button:active { transform: scale(0.95); }

/* Add this to play.php styles */
.choice-locked {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important; /* Golden border hint */
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle gold sheen effect on hover */
.choice-locked:hover {
    border-color: rgba(255, 215, 0, 0.8) !important;
    background: rgba(255, 215, 0, 0.1) !important;
    color: #fff !important;
}

/* Ensure the freeform input looks clickable when locked */
.freeform input:disabled {
    background: rgba(0,0,0,0.5);
    color: #aaa;
    border-color: rgba(255, 215, 0, 0.3);
}

/* --- PREMIUM UI STYLES --- */

/* 1. The Locked Input Field */
.freeform-locked-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Softer corners */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.freeform-locked-container input:disabled {
    background: rgba(20, 20, 20, 0.6) !important; /* Dark glass */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    cursor: pointer !important;
    padding-left: 40px; /* Space for icon */
}

/* Golden specific styling */
.freeform-locked-container.is-golden input:disabled {
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(60, 50, 0, 0.4) 100%) !important;
    color: #e2c768 !important; /* Muted Gold */
}

.freeform-locked-container:active {
    transform: scale(0.98);
}

/* 2. The Locked Choices */
.choice-locked {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.choice-locked.is-golden {
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    color: #c5a026 !important; /* Darker gold text */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
}

.choice-locked:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.choice-locked.is-golden:hover {
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
    color: #ffd700 !important;
}

/* Hides the real input when we want to show the banner */
.freeform.locked-mode input, 
.freeform.locked-mode button {
    display: none !important;
}

/* The sleek banner that replaces the input */
.locked-action-banner {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Glass Effect */
    background: rgba(40, 40, 40, 0.6);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.locked-action-banner:hover {
    transform: translateY(-1px);
    background: rgba(60, 60, 60, 0.7);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.locked-action-banner:active {
    transform: scale(0.98);
}

/* Golden Variant */
.locked-action-banner.is-golden {
    background: linear-gradient(90deg, rgba(30, 25, 10, 0.7) 0%, rgba(60, 50, 0, 0.5) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.locked-action-banner.is-golden:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

/* Icon styling */
.banner-icon {
    font-size: 1.1em;
}

@media screen and (max-width: 900px) {
    .locked-action-banner {
        font-size: 0.8rem;
    }
}