/* ===== Fonts ===== */
@font-face {
    font-family: 'Bounded';
    src: url('fonts/Bounded-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muller';
    src: url('fonts/muller-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muller';
    src: url('fonts/muller-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset & Base ===== */
* {
    font-family: 'Muller', sans-serif;
}

h1, h2, h3, .screen-title {
    font-family: 'Bounded', sans-serif !important;
}

.screen-title {
    margin-top: 40px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.27;
    margin-bottom: 8px;
    text-align: center;
    color: #FFFFFF;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Muller', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a0533;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

select {
    font-family: inherit;
}

#app {
    width: 100%;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
}

/* ===== Screen Base ===== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.screen.active {
    display: flex;
    animation: screenIn 0.35s ease both;
}

@keyframes screenIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===================================
   Screen: Старт
   =================================== */

.screen--start {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background-attachment: fixed;
}

/* --- Background --- */
.start-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #1a0533;
}

.start-bg__cosmic {
    position: absolute;
    top: -30px;
    left: -10px;
    right: -10px;
    bottom: 0;
    z-index: 1;
}

.start-bg__cosmic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* --- Content area --- */
.start-content {
    position: relative;
    z-index: 5;
    margin-top: auto;
    margin-bottom: 15vh;
    padding: 0 20px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.start-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.start-text__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.start-label {
    font-family: 'Muller', sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
    color: #FBA640;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-title {
    font-family: 'Bounded', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.27;
    color: #fff;
    text-align: center;
}

.start-desc {
    font-family: 'Muller', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 284px;
}

/* --- CTA --- */
.start-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    width: 100%;
    height: 58px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    background: #FF9719;
    color: #000;
    background-image:
        linear-gradient(135deg, rgba(138, 56, 245, 0) 0%, rgba(138, 56, 245, 0.3) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow:
        inset -3px -4px 4px rgba(255, 255, 255, 0.33),
        0 0 40px rgba(255, 151, 25, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary-fixed.btn-primary:active {
    transform: translateX(-50%) scale(0.97);
}

.btn-primary__text {
    font-family: 'Muller', sans-serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1;
    color: #000;
}

.btn-primary__icon {
    width: 19px;
    height: 20px;
    color: #000;
    flex-shrink: 0;
}

/* Timer */
.start-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.5;
}

.start-timer__icon {
    width: 14px;
    height: 14px;
    color: #fff;
    flex-shrink: 0;
}

.start-timer__text {
    font-family: 'Muller', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.54;
    color: #fff;
}

/* --- Footer --- */
.start-footer {
    display: none;
}

.start-footer__btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #FF9719;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.start-footer__btn:active {
    opacity: 0.7;
}

.start-footer__logo {
    display: flex;
    align-items: center;
}

.start-footer__logo img {
    height: 12px;
    width: auto;
    opacity: 1;
}

/* ===================================
   Screen: Пол (Gender)
   =================================== */

.screen--gender {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: #1a0533 url('assets/bg/starry_bg.png') center center / cover no-repeat;
    background-attachment: local;
}

/* --- Background overlay (hidden, using CSS bg now) --- */
.gender-bg {
    display: none;
}

/* --- Global Progress bar --- */
.global-progress {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
    z-index: 200;
    display: none;
    align-items: center;
    gap: 8px;
}

.global-progress__track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.global-progress__fill {
    height: 100%;
    background: #FF9719;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.global-progress__pct {
    font-family: 'Muller', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    min-width: 28px;
    text-align: right;
    flex-shrink: 0;
}

/* Hide inline progress bars (legacy) */
.progress-bar {
    display: none !important;
}

/* --- Gender content --- */
.gender-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 100px 20px 0;
    gap: 32px;
}

.gender-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gender-title {
    font-family: 'Bounded', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.27;
    color: #fff;
    text-align: center;
}

.gender-desc {
    font-family: 'Muller', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

/* --- Gender cards --- */
.gender-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gender-card {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.gender-card:active {
    transform: scale(0.97);
}

.gender-card.selected {
    filter: brightness(1.15);
}

.gender-card__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Screen: ДР (Birthdate)
   =================================== */

.screen--birthdate {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: #1a0533 url('assets/bg/starry_bg.png') center center / cover no-repeat;
    background-attachment: local;
    flex-direction: column;
}

.birthdate-body {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 100px 20px 90px;
    gap: 24px;
}

.birthdate-body .gender-title {
    margin-top: 0;
}

.birthdate-body .gender-desc {
    font-size: 15px;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.6);
}

.birthdate-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Date selects --- */
.date-row {
    display: flex;
    gap: 8px;
}

.date-sel-wrap {
    flex: 1;
    position: relative;
}

.date-sel-wrap.month { flex: 1.4; }
.date-sel-wrap.year { flex: 1; }

.date-sel {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 28px 14px 8px;
    color: #ffffff;
    font-family: 'Muller', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-align-last: center;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    min-height: 44px;
    cursor: pointer;
}

.date-sel.placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.date-sel:not(.placeholder) {
    color: #ffffff;
    font-weight: 500;
}

.date-sel:focus {
    border-color: rgba(251, 166, 64, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.date-sel.filled {
    border-color: rgba(251, 166, 64, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.date-sel option {
    background: #1a0540;
}

.date-sel-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    pointer-events: none;
    opacity: 0.5;
}

/* --- Info box (SVG image) --- */
.info-box-svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
}

/* --- Fixed primary button --- */
.btn-primary-fixed {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    z-index: 100;
}

/* --- Social proof --- */
.social-proof {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 151, 25, 0.7);
    max-width: 100%;
    line-height: 1.4;
}

.social-proof img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Birthdate next button --- */
.btn-birthdate-next {
    margin-top: 8px;
}

/* --- Drag line --- */
.drag-line {
    position: relative;
    z-index: 5;
    width: 140px;
    height: 5px;
    border-radius: 10px;
    background: #fff;
    margin: 8px auto;
    margin-bottom: env(safe-area-inset-bottom, 10px);
    flex-shrink: 0;
}


/* ===================================
   Global Footer (fixed)
   =================================== */

.global-footer {
    position: fixed;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
}

.footer-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.footer-btn img {
    display: block;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 12px;
    width: auto;
}

.footer-spacer {
    width: 40px;
    height: 40px;
}

.drag-line-wrap {
    position: fixed;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1001;
    max-width: 430px;
    margin: 0 auto;
}

.drag-line-wrap .drag-line {
    width: 134px;
    height: 5px;
    background: #fff;
    border-radius: 3px;
    opacity: 0.5;
    margin: 0;
    position: static;
    flex-shrink: initial;
}

/* ===================================
   Inner screens (all except start/gender)
   =================================== */

.screen--inner {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: #1a0533 url('assets/bg/starry_bg.png') center center / cover no-repeat;
    background-attachment: local;
}

.screen--inner.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===================================
   Screen: Result (scrollable)
   =================================== */

.screen--result {
    position: relative;
    min-height: 100vh;
    background: #1a0533 url('assets/bg/starry_bg.png') center center / cover no-repeat;
    background-attachment: local;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen--result.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#result-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ===================================
   Interstitial screen (analyzing)
   =================================== */

/* Analyzing screen — sun_moon_circle image + text */
.analyzing-layout {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.analyzing-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(280px, 72vw);
    height: auto;
    z-index: 0;
    opacity: 0.8;
    animation: imgPulse 5s ease-in-out infinite;
}

@keyframes imgPulse {
    0%, 100% { opacity: 0.8;  transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.95; transform: translateX(-50%) scale(1.03); }
}

.analyzing-text {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 24px;
    z-index: 1;
}

.analyzing-text .screen-title {
    margin-top: 0;
    font-size: 22px;
    white-space: nowrap;
    text-align: center;
}

/* Legacy interstitial (kept for any reuse) */
.interstitial-screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.interstitial-content {
    position: absolute;
    top: 62%; left: 0; right: 0;
    text-align: center;
    padding: 0 24px;
    z-index: 1;
}

.interstitial-content .screen-title {
    margin-top: 0;
    font-size: 22px;
    white-space: nowrap;
    text-align: center;
}

.screen-subtitle {
    font-family: 'Muller', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.interstitial-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 17px;
    margin-top: 12px;
    transition: opacity 0.4s;
    height: 48px;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* ===================================
   Stub screen body
   =================================== */

.stub-body {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 100px 20px 0;
    gap: 24px;
}

/* ===================================
   Option cards (stub screens)
   =================================== */

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opt-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    text-align: left;
    cursor: pointer;
}

.opt-card:active {
    background: rgba(251, 166, 64, 0.08);
    border-color: rgba(251, 166, 64, 0.5);
    transform: scale(0.98);
}

.opt-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(106, 13, 173, 0.15);
    border: 1px solid rgba(106, 13, 173, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.opt-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.opt-body {
    flex: 1;
}

.opt-title {
    font-family: 'Bounded', sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.opt-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}


/* ===================================
   Answer card (new question screens)
   =================================== */

.question-screen {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.signs-header,
.question-header {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 24px;
    text-align: center;
}

.answer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    min-height: 80px;
    transition: border-color 0.2s, background 0.2s;
}

.answer-card:active {
    background: rgba(251, 166, 64, 0.08);
    border-color: rgba(251, 166, 64, 0.5);
}

.answer-card .answer-icon img,
.answer-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.answer-title {
    font-family: 'Muller', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.2;
}

/* ===================================
   Answer modal (signs screen)
   =================================== */

.answer-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.answer-modal {
    background: #2D1F5E;
    border-radius: 24px;
    padding: 32px 24px;
    width: calc(100% - 48px);
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.answer-modal-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.answer-modal-title {
    font-family: 'Bounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.answer-modal-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.answer-modal-btn {
    width: 100%;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ===================================
   Loading / Analyzing
   =================================== */

.loading-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.orb-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 13, 173, 0.4) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.orb-ring1 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(106, 13, 173, 0.35);
    animation: spinSlow 15s linear infinite;
}

.orb-ring2 {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px solid rgba(106, 13, 173, 0.2);
    animation: spinSlow 10s linear infinite reverse;
}

.orb-inner {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(106, 13, 173, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.loading-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    padding: 0 12px;
    transition: color 0.3s;
}

.loading-title {
    font-family: 'Bounded', sans-serif;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.loading-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

/* ===================================
   Result Prep screen
   =================================== */

.result-prep-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
    text-align: center;
    gap: 8px;
}

.result-prep-star {
    font-size: 64px;
    animation: starPulse 2s ease-in-out infinite;
    margin-bottom: 8px;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.result-prep-bar {
    width: 60%;
    max-width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.result-prep-bar__fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FF9719, #FBA640, #FFD700);
    border-radius: 4px;
    transition: width 2.5s ease;
}

/* ===================================
   Biorhythm card
   =================================== */

.bio-card {
    width: 100%;
    max-width: 352px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 24px;
}

/* Cycles chart SVG */
.cycles-chart {
    width: 100%;
    max-height: 160px;
    display: block;
}

.cycles-marker {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards 1.8s;
}

.bio-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.cycles-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cycles-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(12px);
    animation: fadeSlideUp 0.4s ease forwards;
}

.cycles-legend-row:nth-child(1) { animation-delay: 2.0s; }
.cycles-legend-row:nth-child(2) { animation-delay: 2.3s; }
.cycles-legend-row:nth-child(3) { animation-delay: 2.6s; }

.cycles-legend-row img {
    flex-shrink: 0;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.cycles-bottom-text {
    text-align: center;
    color: #fff;
    font-family: 'Muller', sans-serif;
    font-size: 13px;
    margin-top: 12px;
    opacity: 0;
    animation: fadeSlideUp 0.4s ease forwards 3.0s;
}

/* ===================================
   Checklist (final loading)
   =================================== */

.checklist-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 360px;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.chk-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    height: 28px;
}

.chk-item.done {
    color: #fff;
}

.chk-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.chk-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    will-change: opacity;
    transition: opacity 0.5s ease;
}

.chk-icon .chk-clock {
    opacity: 0.35;
}

.chk-icon .chk-check {
    opacity: 0.001;
}

.chk-item.done .chk-clock {
    opacity: 0;
}

.chk-item.done .chk-check {
    opacity: 1;
}

/* ===================================
   Email input
   =================================== */

.email-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
    min-height: 52px;
}

.email-input:focus {
    border-color: rgba(251, 166, 64, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-skip-text {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    cursor: pointer;
}

/* ===================================
   Result screen
   =================================== */

.result-hero {
    text-align: center;
    padding: 12px 20px 8px;
    position: relative;
    z-index: 1;
}

.result-hero .archetype-icon {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 8px !important;
}

.result-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 12px;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.archetype-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    margin: 0 auto 16px;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-name {
    font-family: 'Bounded', sans-serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
}

.result-tagline {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.result-zodiac {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Stat boxes */
.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 20px 12px;
}

.stat-box {
    border-radius: 16px;
    padding: 10px 12px;
    backdrop-filter: blur(4px);
    position: relative;
    border: none;
    background: rgba(255, 255, 255, 0.05);
}

.stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.15) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.stat-box.gold {
    background: rgba(255, 255, 255, 0.05);
}

.stat-box.purple {
    background: rgba(255, 255, 255, 0.05);
}

.stat-lbl {
    font-family: 'Muller', sans-serif;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.5);
}

.stat-val {
    font-family: 'Muller', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
}

/* Bonus card */
.bonus-card {
    margin: 0 20px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 20px;
    padding: 12px 16px;
    text-align: center;
    position: relative;
}

.bonus-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.15) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bonus-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    margin-bottom: 4px;
    position: relative;
}

.bonus-amount {
    font-family: 'Bounded', sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
    position: relative;
    color: #C3FF00;
}

.bonus-min {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
    position: relative;
}

.promo-box {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.promo-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1;
}

.promo-code {
    color: #FF9719;
    font-family: 'Bounded', sans-serif;
    font-size: 18px;
    line-height: 1;
}

.bonus-teaser {
    font-family: 'Muller', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FF9719;
    margin-bottom: 4px;
    position: relative;
}

.bonus-timer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    position: relative;
}

/* Result actions */
.result-actions {
    padding: 0 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-share {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Muller', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 0;
    width: 100%;
}

.btn-share:active {
    color: rgba(255, 255, 255, 0.65);
}

/* ===================================
   CTA button (result, modal)
   =================================== */

.btn-cta {
    width: 100%;
    min-height: 56px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF9719 0%, #FBA640 50%, #FFD700 100%);
    color: #1a0500;
    font-family: 'Bounded', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(251, 166, 64, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 49px;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    pointer-events: none;
}

.btn-cta:active {
    transform: scale(0.97);
    box-shadow: 0 2px 12px rgba(251, 166, 64, 0.3);
}

.btn-cta.pulse {
    animation: pulseCta 2.5s ease-in-out infinite;
}

/* Secondary button */
.btn-secondary {
    width: 100%;
    min-height: 44px;
    border-radius: 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:active {
    color: rgba(255, 255, 255, 0.65);
}

/* ===================================
   Modal
   =================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: linear-gradient(135deg, rgba(60, 20, 90, 0.95), rgba(30, 10, 60, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px 24px 24px;
    text-align: center;
    width: 100%;
    max-width: 340px;
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-title {
    font-family: 'Bounded', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #fff;
    margin: 0 0 12px 0;
}

.modal-text {
    font-family: 'Muller', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    height: 58px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    background: #FF9719;
    background-image:
        linear-gradient(135deg, rgba(138, 56, 245, 0) 0%, rgba(138, 56, 245, 0.3) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow:
        inset -3px -4px 4px rgba(255, 255, 255, 0.33),
        0 0 40px rgba(255, 151, 25, 0.15);
    font-family: 'Muller', sans-serif;
    font-weight: 500;
    font-size: 19px;
    color: #000;
    cursor: pointer;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.modal-btn:active {
    transform: scale(0.97);
}

/* ===================================
   Keyframes
   =================================== */

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes pulseCta {
    0%, 100% { box-shadow: 0 4px 20px rgba(251, 166, 64, 0.35); }
    50% { box-shadow: 0 6px 40px rgba(251, 166, 64, 0.6); }
}

@keyframes bounceIn {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUpItem {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* ===================================
   Reduced motion
   =================================== */

/* ===================================
   Planet screen
   =================================== */

.planet-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 160px;
    min-height: 100%;
    box-sizing: border-box;
}

.planet-header {
    text-align: center;
    margin-bottom: 24px;
}

.planet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.planet-card {
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    aspect-ratio: 170 / 192;
    overflow: hidden;
}

.planet-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.planet-card:active {
    opacity: 0.8;
}


/* ===================================
   Reduced motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Small screens (iPhone SE, etc.)
   =================================== */

@media (max-height: 700px) {
    /* Smaller question titles */
    .screen-title {
        font-size: 22px;
        margin-top: 24px;
        margin-bottom: 6px;
    }

    .screen-subtitle {
        font-size: 13px;
        margin-top: 4px;
    }

    /* Compact question headers */
    .question-header,
    .signs-header {
        min-height: 120px;
        padding-bottom: 16px;
    }

    /* Compact answer cards */
    .answer-card {
        padding: 12px 16px;
        min-height: unset;
        gap: 12px;
    }

    .answer-card .answer-icon img,
    .answer-card img {
        width: 40px;
        height: 40px;
    }

    .answer-title {
        font-size: 17px;
    }

    /* Less gap between cards */
    .answer-list {
        gap: 8px;
    }

    /* Compact stub body */
    .stub-body {
        padding-top: 80px;
        gap: 16px;
    }

    /* Gender content tighter */
    .gender-content {
        padding-top: 80px;
    }

    /* Planet screen */
    .planet-screen {
        padding-top: 40px;
        padding-bottom: 140px;
    }

    .planet-header {
        margin-bottom: 16px;
    }

    /* Result screen compact */
    .result-hero {
        padding-top: 8px;
        padding-bottom: 4px;
    }

    .result-name {
        font-size: 24px;
    }

    .bonus-amount {
        font-size: 32px;
    }

    .result-actions {
        padding-bottom: 60px;
    }
}

@media (max-height: 600px) {
    .screen-title {
        font-size: 20px;
        margin-top: 16px;
    }

    .answer-card {
        padding: 10px 14px;
    }

    .answer-list {
        gap: 6px;
    }

    .question-header,
    .signs-header {
        min-height: 100px;
        padding-bottom: 12px;
    }

    .planet-screen {
        padding-top: 32px;
    }

    .planet-grid {
        gap: 8px;
    }
}
