:root {
    --dark-red: #600000;
    --red: #8a0000;
    --gold-light: #ECDFC0;
    --gold-dark: #CEAD5C;
    --white: #ffffff;
    --black: #000000;
    --timer-color: transparent;
    --timer-warning: #ff0000;
    --option-gap-desktop: 20px;
    --option-gap-tablet: 15px;
    --option-gap-mobile: 8px;
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-90deg); }
}

body {
    font-family: 'Sofia Sans', sans-serif;
    background-color: #000;
    background-image: url('assets/background_ggif.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Background Frame Overlay */
.bg-frame-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 98%;
    background-image: url('assets/bg_frame.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

/* Hide bg-frame-overlay in result screen */
.result-screen .bg-frame-overlay {
    display: none;
}

/* Result Frame Overlay */
.result-frame-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg_frame.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    display: block;
}

.result-screen .result-frame-overlay {
    display: block;
}

.bg-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rotation Warning Screen */
#rotation-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.rotation-icon {
    width: 80px;
    height: 150px;
    border: 4px solid var(--gold-dark);
    border-radius: 12px;
    margin: 20px auto;
    position: relative;
    animation: rotateToLandscape 1.5s infinite;
    transform-origin: center;
}

@keyframes rotateToLandscape {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(0deg); }
    80% { transform: rotate(-90deg); }
    100% { transform: rotate(-90deg); }
}

.rotation-content {
    max-width: 80%;
}

.rotation-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--gold-light);
}

.rotation-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.rotate-icon {
    width: 80px;
    height: 80px;
    border: 4px solid var(--gold-dark);
    border-radius: 8px;
    margin: 20px auto;
    position: relative;
    animation: rotate 1.5s infinite alternate;
}

.rotate-icon:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 60px;
    border: 4px solid var(--gold-dark);
    border-radius: 4px;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.hidden {
    display: none;
}

/* Logo */
.logo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    z-index: 20;
    text-align: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* Logo untuk mobile */
@media (max-height: 700px) {
    .logo {
        width: 150px;
        top: 10px;
    }
}

@media (max-height: 500px) {
    .logo {
        width: 120px;
        top: 5px;
    }
}

.logo-small {
    width: 180px;
    margin-bottom: 10px;
    margin-top: 32px;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 10px;
    padding-top: env(safe-area-inset-top, 5px);
    padding-bottom: env(safe-area-inset-bottom, 5px);
    padding-left: env(safe-area-inset-left, 10px);
    padding-right: env(safe-area-inset-right, 10px);
    overflow: hidden;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.welcome-screen h1 {
    margin-bottom: 20px;
    font-size: 32px;
    color: transparent;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
}

.welcome-screen h2 {
    margin-top: 15px;
    font-size: 28px;
    color: transparent;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
}

.welcome-screen p {
    margin-bottom: 20px;
    font-size: 16px;
    max-width: 500px;
    color: var(--gold-light);
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.btn-primary {
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    color: #000;
    border: none;
    padding: 12px 35px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(206, 173, 92, 0.4), 0 0 15px rgba(206, 173, 92, 0.2);
    display: block;
    min-width: 160px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    animation: shineEffect 3s infinite;
}

@keyframes shineEffect {
    0% {
        left: -100%;
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(206, 173, 92, 0.4), 0 0 15px rgba(206, 173, 92, 0.2);
    }
    40% {
        left: 100%;
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(206, 173, 92, 0.7), 0 0 25px rgba(206, 173, 92, 0.4);
    }
    100% {
        left: -100%;
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(206, 173, 92, 0.4), 0 0 15px rgba(206, 173, 92, 0.2);
    }
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(206, 173, 92, 0.7), 0 0 30px rgba(206, 173, 92, 0.5);
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(206, 173, 92, 0.4);
    transition: all 0.1s ease;
}

@media (max-height: 500px) {
    .welcome-screen h1 {
        margin-bottom: 10px;
        font-size: 28px;
    }
    
    .welcome-screen h2 {
        margin-top: 10px;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .welcome-screen p {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .button-container {
        margin-top: 10px;
    }
    
    .btn-primary {
        padding: 8px 25px;
        font-size: 14px;
        min-width: 120px;
    }
}

/* Media Query untuk rasio 20:9 (smartphone modern) */
@media (min-aspect-ratio: 20/9) {
    /* Welcome Screen */
    .welcome-content {
        max-width: 500px;
        transform: translate(-50%, -55%);
    }
    
    .welcome-screen h1 {
        margin-bottom: 10px;
        font-size: 28px;
    }
    
    .welcome-screen h2 {
        margin-top: 10px;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .welcome-screen p {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    /* Tutorial Screen */
    .tutorial-content {
        max-width: 500px;
        max-height: 70dvh;
        padding: 15px;
        transform: translate(-50%, -50%);
    }
    
    .tutorial-content li {
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    /* Quiz Screen */
    .quiz-content {
        transform: translate(-50%, -60%);
        max-height: 85dvh;
    }
    
    .progress-container {
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .question-counter {
        font-size: 14px;
        top: 5px;
        right: 5px;
        padding-right: 8px;
    }
    
    .question-text {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .options-container {
        gap: 6px;
    }
    
    .option {
        aspect-ratio: 1/1;
        min-width: 85px;
        max-width: 140px;
    }
    
    .option-text {
        padding: 4px 3px;
        font-size: 14px;
    }
}

/* Media Query untuk rasio ultrawide dan landscape */
@media (min-aspect-ratio: 2/1) {
    .logo {
        width: 100px;
        top: 5px;
    }
    
    .welcome-content {
        max-width: 450px;
        transform: translate(-50%, -55%);
    }
    
    .tutorial-content {
        max-width: 450px;
        max-height: 65dvh;
        transform: translate(-50%, -55%);
    }
    
    .quiz-content {
        transform: translate(-50%, -60%);
        max-height: 80dvh;
    }
    
    .option {
        width: calc(33.333% - 8px);
        max-width: 140px;
        min-width: 80px;
        aspect-ratio: 1/0.9;
    }
    
    .progress-container {
        margin-top: 10px;
    }
    
    .question-counter {
        top: 4px;
        right: 5px;
        font-size: 13px;
        padding-right: 5px;
    }
}

/* Tutorial Screen */
.tutorial-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    padding: 0 10px;
    padding-top: env(safe-area-inset-top, 5px);
    padding-bottom: env(safe-area-inset-bottom, 5px);
    padding-left: env(safe-area-inset-left, 10px);
    padding-right: env(safe-area-inset-right, 10px);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.tutorial-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    margin: 10px auto;
    border: 2px solid var(--gold-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 80vh;
    max-height: 80dvh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

.tutorial-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: transparent;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;  
}

.tutorial-content ul {
    text-align: left;
    margin: 8px 0 8px 15px;
    list-style-type: none;
    overflow-y: auto;
    padding-right: 8px;
    flex: 1;
}

.tutorial-content li {
    margin-bottom: 8px;
    font-size: 15px;
    position: relative;
    padding-left: 22px;
}

.tutorial-content li:before {
    content: "•";
    color: var(--gold-dark);
    font-size: 22px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Quiz Screen */
.quiz-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0 10px;
    padding-top: env(safe-area-inset-top, 5px);
    padding-bottom: env(safe-area-inset-bottom, 5px);
    padding-left: env(safe-area-inset-left, 10px);
    padding-right: env(safe-area-inset-right, 10px);
    overflow: hidden;
    position: relative;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 5px;
    height: auto;
    max-height: 95vh;
    max-height: 95dvh;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    overflow: visible;
}

.progress-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
    margin-top: 20px;
}

.question-counter {
    font-size: 16px;
    font-weight: 500;
    color: var(--gold-light);
    position: absolute;
    top: 8px;
    right: 5px;
    z-index: 15;
    text-align: right;
    padding-right: 10px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
    border-radius: 3px;
    width: 0;
    transition: width 0.3s ease;
}

.timer-container {
    position: absolute;
    top: 45px;
    right: 0;
    z-index: 15;
    transform: scale(0.85);
    transform-origin: top right;
    visibility: hidden;
}

.timer-frame {
    width: 45px;
    height: 45px;
    background-image: url('assets/countdown_frame.png');
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer {
    font-size: 20px;
    font-weight: bold;
    color: var(--gold-light);
}

.timer.warning {
    color: var(--timer-warning);
    animation: pulse 0.7s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin-bottom: 10px;
    max-width: 800px;
    padding: 0 5px;
}

/* Result Screen - Redesigned */
.result-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    background-color: #5C1A1B;
    background-image: url('assets/background_result.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.result-screen .logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 60px;
    z-index: 10;
}

.result-screen .logo img {
    height: 100%;
    width: auto;
}

.result-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    height: calc(100vh - 100px);
    margin: 0 auto;
    position: relative;
    z-index: 5;
    gap: 2%;
}

.persona-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* Rectangle Decorative Elements */
.rectangle-left {
    position: absolute;
    top: 0;
    left: 0;
    height: 150%;
    width: 50%;
    z-index: 2;
    background-image: url('assets/rectangle_left.png');
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
}

.rectangle-right {
    position: absolute;
    top: 0;
    right: 0;
    height: 150%;
    width: 50%;
    z-index: 2;
    background-image: url('assets/rectangle_right.png');
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
}

/* Persona Container */
.persona-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 5;
    padding: 15px;
    width: 45%;
    text-align: left;
    padding-right: 5%;
    padding-left: 0;
    margin-left: 0;
    order: 1;
    max-width: 60%;
    padding-top: env(safe-area-inset-top, 15px);
    padding-bottom: env(safe-area-inset-bottom, 15px);
    padding-left: env(safe-area-inset-left, 15px);
}

/* .persona-intro, #result-title, .persona-tagline, .persona-stats-title, .persona-stat-item {
    width: 100%;
    text-align: center;
} */

.persona-stats {
    position: relative;
    z-index: 5;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

#result-title {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Sofia Sans Extra Condensed', 'Sofia Sans', sans-serif;
    background: linear-gradient(to top right, #A67936, #E3C870, #F8E9C5, #E3C870);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2px;
    text-transform: uppercase;
    text-align: center;
}

.persona-tagline {
    font-size: 14px;
    font-style: italic;
    color: #FFFFFF;
    margin-bottom: 12px;
    max-width: 100%;
    text-align: left;
    white-space: pre-line;
}

/* Style khusus untuk setiap persona */
.persona-tagline.social-superstar,
.persona-tagline.calm-cool,
.persona-tagline.brilliant-charmer {
    text-align: left;
    padding-left: 0;
}

.persona-stats-title {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.persona-stat-item {
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 6px;
    text-align: center;
}

/* Right Side Content */
.qr-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    width: 45%;
    padding: 15px;
    padding-left: 15%;
    margin-right: 0;
    order: 2;
    text-align: right;
    padding-top: env(safe-area-inset-top, 15px);
    padding-bottom: env(safe-area-inset-bottom, 15px);
    padding-right: env(safe-area-inset-right, 15px);
}

.qr-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #FFFFFF;
    white-space: pre-line;
}

.download-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-btn {
    width: 200px;
    height: 50px;
    background-image: url('assets/download.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.back-btn {
    width: 200px;
    height: 50px;
    background-image: url('assets/back-to-home.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 5;
}

.back-btn:hover {
    transform: translateY(-3px);
}

/* Options Container */
.options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding-bottom: 10px;
    width: 98%;
    max-width: 900px;
    overflow: visible;
    max-height: none;
    padding: 2px;
}

/* Styling untuk Option */
.option {
    position: relative;
    width: calc(33.333% - 10px);
    max-width: 150px;
    min-width: 80px;
    height: auto;
    aspect-ratio: 1/1.1;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    flex-shrink: 1;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.answer-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 115%;
    background-image: url('assets/answer_frame.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 3;
}

.click-effect {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.click-effect.active {
    display: none;
    opacity: 0;
    animation: none;
}

.option.selected {
    box-shadow: none;
}

.option.selected .option-text {
    background: linear-gradient(to bottom, #630304, #360307);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Hapus animasi highlight */
.option.selected {
    animation: none;
}

/* Hapus hover effect */
.option:hover {
    transform: none;
}

.option:hover .answer-frame{
    width: 100%;
    height: 115%;
    background-image: url('assets/answer_frame.png');
}

.option:hover .option-text{
    background: linear-gradient(to bottom, #630304, #360307);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.option-text {
    padding: 5px 3px;
    text-align: center;
    color: transparent;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25%;
    position: relative;
    z-index: 15;
    width: 100%;
}

.option-image {
    width: 95%;
    height: 70%;
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: right;
    z-index: 1060;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    padding: 0 20px;
}

.loading-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.loading-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--gold-light);
    text-transform: uppercase;
}

.loading-bar-container {
    width: 80%;
    max-width: 400px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gold-dark);
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
    border-radius: 8px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.calculating-stats {
    width: 80%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 25;
}

.stat-item {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 1px solid var(--gold-dark);
    color: white;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
    margin-bottom: 5px;
}

.stat-item.active {
    opacity: 1;
    transform: translateY(0);
    animation: glow 1.5s ease-in-out 1;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(206, 173, 92, 0.4); }
    50% { box-shadow: 0 0 15px rgba(206, 173, 92, 0.7); }
    100% { box-shadow: 0 0 5px rgba(206, 173, 92, 0.4); }
}

/* Specific style for Brilliant Charmer to ensure visibility */
#loading-stat-3 {
    margin-bottom: 15px;
    font-weight: 700;
    border-width: 2px;
    background-color: rgba(0, 0, 0, 0.6);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculating-message {
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 30px;
    height: 20px;
}

/* User Info Screen Styles */
.user-info-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
}

.user-info-content {
    background-color: #1D1D1D;
    border: 2px solid var(--gold-dark);
    border-radius: 10px;
    padding: 16px;
    width: 70%;
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: 5%;
}

.user-info-content h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #FFFFFF;
    font-size: 12px;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--gold-dark);
    background-color: #2D2D2D;
    color: #FFFFFF;
    font-size: 15px;
    border-radius: 5px;
}

.form-text {
    display: block;
    color: var(--gold-light);
    font-size: 12px;
    margin-top: 4px;
}

.gender-options {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.gender-option {
    display: flex;
    align-items: center;
}

.gender-option input[type="radio"] {
    margin-right: 6px;
    accent-color: var(--gold-dark);
}

.gender-option label {
    margin-bottom: 0;
}

.user-info-content .button-container {
    margin-top: 15px;
}

.user-info-content .btn-primary {
    padding: 8px 16 px;
    font-size: 12px;
    min-width: 80px;
} 