/* --- Quiz Components --- */
.quiz-header-bar {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.btn-back-arrow {
    background: white;
    border: 1px solid #E2E8F0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-back-arrow:hover {
    background: #F7FAFC;
    transform: scale(1.05);
}

.progress-track {
    flex: 1;
    height: 8px;
    background: #EDF2F7;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2C3E50;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.progress-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-sub);
    font-size: 1rem;
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.quiz-content-layout {
    flex: 1;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quiz-image-area {
    /* Deprecated/Hidden */
    display: none;
}

/* Question Area */
.quiz-question-text {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 4rem;
    color: var(--text-main);
    width: 100%;
    text-align: center;
    word-break: auto-phrase;
    /* Japanese auto line break goodness if supported, else normal */
}

/* Binary Options (O/X) */
.quiz-options-binary {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    width: 100%;
}

.btn-binary {
    width: 160px;
    height: 160px;
    border-radius: 28px;
    background: white;
    border: 3px solid #E2E8F0;
    /* Revert to border */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none;
    /* Shadowless as requested */
}

.btn-binary:hover {
    transform: translateY(-5px);
    border-color: #CBD5E0;
    box-shadow: none;
}

.btn-binary:active {
    transform: translateY(0);
}

.btn-binary.yes {
    color: #E53E3E;
    background: white;
    /* Keep white bg */
}

.btn-binary.no {
    color: #3182CE;
    background: white;
    /* Keep white bg */
}


/* --- Feedback Screen Layout --- */
.feedback-grid {
    display: grid;
    grid-template-columns: 1.2fr 400px;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    align-items: center;
    padding: 2rem;
}

.feedback-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.feedback-result-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.feedback-icon-large {
    font-size: 5rem;
}

.feedback-icon-large.correct {
    color: #E53E3E;
}

.feedback-icon-large.incorrect {
    color: #3182CE;
}

.feedback-titles-group {
    display: flex;
    flex-direction: column;
}

.feedback-main-text {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.feedback-sub-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.feedback-desc {
    font-size: 1.1rem;
    color: var(--text-sub);
    line-height: 1.8;
    margin-top: 1rem;
}

.feedback-lottie {
    width: 200px;
    height: 200px;
    margin-top: 2rem;
    /* Align bottom left */
}

/* Feedback Right Card */
.feedback-right-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    border: 2px solid #E2E8F0;
    height: fit-content;
}

.fine-display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-sub);
}

.fine-amount {
    font-size: 2.5rem;
    color: #E53E3E;
    font-family: var(--font-heading);
}

.fine-unit {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-left: 0.5rem;
}

.btn-next-black {
    background: black;
    color: white;
    width: 100%;
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-next-black:hover {
    transform: scale(1.02);
}

.btn-abort-white {
    background: white;
    color: var(--text-main);
    width: 100%;
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #CBD5E0;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-abort-white:hover {
    background: #F7FAFC;
}


/* --- Result Screen Layout --- */
.result-header-title {
    position: absolute;
    top: 2rem;
    /* or relative if grid allows */
    left: 0;
    font-size: 2rem;
    font-weight: 900;
}

.result-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.result-grid-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.result-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.result-lottie-trophy {
    width: 320px;
    height: 320px;
}

.score-stars-box {
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E2E8F0;
    border-radius: 0;
    padding: 0 0 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-label {
    font-weight: 700;
    font-size: 1.2rem;
}

.stars-display {
    color: #ECC94B;
    font-size: 1.8rem;
    display: flex;
    gap: 0.2rem;
}

.score-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Result Right is same card style as feedback */
.ticket-icons-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: 3rem;
}

.ticket-icon-small {
    font-size: 1.5rem;
    color: #3182CE;
}