/* Quiz Game V2 - Optimized */
.quiz-page * { margin: 0; padding: 0; box-sizing: border-box; }

.quiz-page {
    --gold: #D9C083;
    --black: #000;
    --white: #fff;
    --bg-opacity: rgba(245, 245, 245, 0.60);
    
    /* Typography */
    --font-condensed: "BentonSansStdCondensedBlack", sans-serif;
    --font-bold: "BentonSansStdBold", sans-serif;
    
    /* Font Sizes */
    --fs-hero: 36px;
    --fs-body: 21px;
    --fs-button: 44px;
    --fs-oder: 24px;
    --fs-timer: 45px;
    
    /* Spacing */
    --spacing-sm: .8rem;
    --spacing-md: 1.667rem;
    --spacing-lg: 2.5rem;
    
    /* Sizes */
    --button-width: 400px;
    --button-width-mobile: 315px;
    --claim-large: 160px;
    --claim-small: 100px;
    
    /* Pixel Border */
    --pixel-corner: 8px;
    --pixel-side: 6px;
}

.quiz-page .site-main {
    background: var(--gold);
    color: var(--black);
    overflow-x: hidden;
    padding: 0;
}

/* ===== LAYOUT ===== */
.game-container {
    position: relative;
    min-height: 66.667vh;
}

.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* ===== CLAIM LOGO ===== */
.claim-logo {
    display: block;
    margin: var(--spacing-lg) auto 0;
    width: var(--claim-large);
    height: auto;
    transition: all 0.5s ease;
}

.claim-logo.small, .claim-logo.smaller {
    width: var(--claim-small);
    margin: var(--spacing-md) auto 0;
}

/* ===== CONTENT CONTAINERS (Start, Quiz, Result) ===== */
.start-content,
.quiz-content,
.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: var(--spacing-sm) 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.result-content {
    max-width: 700px;
    padding: var(--spacing-md) 1.5rem;
}

/* ===== INTRO/HEADER SECTIONS ===== */
.start-intro,
.quiz-header {
    margin-bottom: 10px;
    text-align: center;
}

.quiz-header {
    margin-bottom: 10px;
}

/* ===== TYPOGRAPHY ===== */
.start-title,
.quiz-title,
.result-title,
.result-card h2,
.result-cta h2 {
    font-size: var(--fs-hero);
    font-weight: normal;
    font-family: var(--font-condensed);
    margin-bottom: var(--spacing-sm);
    text-transform: none;
    color: var(--black) !important;
}

.result-title,
.result-card h2 {
    margin-bottom: var(--spacing-md);
}

.result-card h2 {
    text-align: center;
    hyphens: auto;
}

.start-text,
.quiz-subtitle,
.result-eyebrow,
.result-alias {
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--black) !important;
}

.result-eyebrow,
.result-alias {
    font-weight: normal;
    margin-bottom: var(--spacing-sm);
}

.result-alias {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* ===== BUTTONS ===== */
.answer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.oder-text {
    font-size: var(--fs-oder);
    font-weight: 400;
}

.answer-btn, 
.start-btn {
    position: relative;
    background: var(--white);
    border: none;
    padding: 17px 10px;
    font-size: var(--fs-button);
    line-height: 1;
    font-weight: normal;
    font-family: var(--font-condensed);
    cursor: pointer;
    width: var(--button-width);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(0);
}

.start-btn {
    opacity: 1;
}

.answer-btn.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Pixel Border Spans */
.pixel-tl, .pixel-tr, .pixel-bl, .pixel-br {
    position: absolute;
    background: var(--black);
    width: var(--pixel-corner);
    height: var(--pixel-side);
}

.pixel-tl { top: 0; left: 0; }
.pixel-tr { top: 0; right: 0; }
.pixel-bl { bottom: 0; left: 0; }
.pixel-br { bottom: 0; right: 0; }

.pixel-top, .pixel-bottom {
    position: absolute;
    background: var(--black);
    height: var(--pixel-side);
    left: var(--pixel-corner);
    right: var(--pixel-corner);
}

.pixel-top { top: calc(var(--pixel-side) * -1); }
.pixel-bottom { bottom: calc(var(--pixel-side) * -1); }

.pixel-left, .pixel-right {
    position: absolute;
    background: var(--black);
    width: var(--pixel-side);
    top: var(--pixel-side);
    bottom: var(--pixel-side);
}

.pixel-left { left: calc(var(--pixel-side) * -1); }
.pixel-right { right: calc(var(--pixel-side) * -1); }

/* ===== ANIMATIONS ===== */
.answer-btn.slide-in-left,
.start-btn.slide-in-left {
    animation: slideInLeft 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.answer-btn.slide-in-right,
.start-btn.slide-in-right {
    animation: slideInRight 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-150px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(150px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.answer-btn.selected,
.start-btn.selected {
    animation: pressInEffect 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
    background-color: var(--white) !important;
}

@keyframes pressInEffect {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        transform: scale(0.92);
        opacity: 0.8;
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(0.88);
        opacity: 0.5;
        box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4);
    }
}

.result-content {
    transform: translateX(100%);
    opacity: 0;
    transition: none;
}

.result-content.slide-in-right {
    animation: slideInRightFull 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRightFull {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== SKIP LINK ===== */
.skip-q-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-bold);
    font-weight: normal;
}

.skip-q-link:hover {
    text-decoration: none;
    color: var(--black);
}

/* ===== TIMER ===== */
.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 10px auto 40px;
    font-size: var(--fs-timer);
    font-weight: normal;
    font-family: var(--font-condensed);
}

.timer-digit {
    width: 88px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 8px;
    position: relative;
    z-index: 2;
}

.timer-digit::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -4px;
    pointer-events: none;
    z-index: -1;
    border-radius: 10px;
    background: var(--bg-opacity);
}

.timer-sep {
    margin-left: 10px;
    margin-right: 18px;
}

/* ===== QUIZ MIDDLE ===== */
.quiz-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* ===== RESULT SECTIONS ===== */
.result-type-image {
    width: 100%;
    height: auto;
    max-width: 280px;
    margin: 0 auto var(--spacing-md);
    display: block;
}

.result-card {
    background: var(--white);
    padding: 10px var(--spacing-md);
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section h3 {
    font-size: 26px;
    font-weight: normal;
    font-family: var(--font-condensed);
    margin-bottom: 0.5rem;
}

.result-section p {
    line-height: 1.6;
}

.result-cta {
    margin-top: var(--spacing-lg);
}

.result-cta .btn {
    font-size: 1.5rem;
    padding: 20px;
}

.cta-button {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-sm) 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-section {
    text-align: center;
    margin-bottom: 1.5rem;
}
.share-section h2 {
    font-size: var(--fs-hero);
    font-weight: normal;
    font-family: var(--font-condensed);
    margin-bottom: var(--spacing-sm);
    text-transform: none;
    color: var(--black) !important;
}
.share-section p {
    font-size: .8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .answer-btn, .start-btn {
        width: var(--button-width-mobile);
        font-size: 30px;
    }
    
    .claim-logo {
        margin: 10px auto 0;
    }
    
    .timer-display {
        margin: 10px auto 30px;
    }
}

@media (max-width: 400px) {
    .answer-btn, .start-btn {
        font-size: 26px;
        padding: 10px;
    }
    
    .timer-display {
        font-size: 30px;
        margin: 10px auto 20px;
    }
    
    .claim-logo {
        width: 124px;
    }
    
    .start-content, 
    .quiz-content {
        padding: 10px;
    }
    
    .start-text, 
    .quiz-subtitle {
        font-size: 16px;
    }
    
    .quiz-header {
        margin-bottom: 0;
    }
    
    .answer-wrapper {
        gap: 10px;
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .answer-wrapper {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .answer-btn:hover, .start-btn:hover {
        background: transparent;
        transform: translateY(-3px);
    }
}