/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: #100C24;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== WRAPPER ===== */
.wrapper {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-width: 320px;
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #100C24;
}

.wrapper.hidden {
    display: none;
}

/* ===== BACKGROUND IMAGE ===== */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/bg.png') center top / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.wrapper > *:not(.bg-image):not(.deco) {
    position: relative;
    z-index: 1;
}

/* ===== DECORATIVE MONEY IMAGES ===== */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.deco-money-right {
    top: 30px;
    right: 0px;
}

.deco-money-left-1 {
    top: 70px;
    left: 0px;
}

.deco-money-left-2 {
    top: 220px;
    left: 0px;
}


/* ===== LOGO ===== */
.logo {
    width: 100%;
    text-align: center;
    padding-top: 12px;
    margin-bottom: 0;
}

.logo img {
    width: 148px;
    height: auto;
}

/* ===== HEADER TEXT (Screen 1) ===== */
.header-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
    width: 299.52px;
    padding-top: 12px;
    margin-bottom: 20px;
}

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

.header-text h1 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
}

.header-text .subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
    text-align: center;
    color: #FFFFFF;
}

.prize-amount {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 68px;
    line-height: 68px;
    text-align: center;
    letter-spacing: -1.5px;
    background: linear-gradient(180deg, #FBE69E 0%, #DFAF53 50%, #B8862F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ZODIAC GRID (3 columns) ===== */
.zodiac-section {
    width: 343px;
    max-width: calc(100% - 18px);
    padding-bottom: 40px;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
    column-gap: 0;
    justify-items: center;
}

/* ===== ZODIAC ITEM ===== */
.zodiac-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.zodiac-circle {
    width: 88px;
    height: 88px;
    border-radius:50%;
    background: radial-gradient(70.71% 70.71% at 50% 50%, #131B33 0%, #060913 100%);
    border: 1px dashed #555555;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zodiac-circle img {
    width: 130px;
    height: 130px;
    mix-blend-mode: screen;
    opacity: 0.85;
    border-radius:50%;
}

/* Zodiac label pill */
.zodiac-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: #D4B452;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0.26px;
    color: #0B0720;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* ===== ACTIVE / SELECTED STATE ===== */
.zodiac-item.selected .zodiac-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1px solid rgba(220, 179, 101, 0.5);
    box-shadow: 0px 0px 24px rgba(220, 179, 101, 0.4), inset 0px 0px 16px 1px rgba(220, 179, 101, 0.2);
}

.zodiac-item.selected .zodiac-circle img {
    width: 130px;
    height: 130px;
    border: 1px solid #000000;
}

.zodiac-item.selected .zodiac-label {
    background: #FBE69E;
    color: #000000;
}

/* ===== FOOTER DECORATION ===== */
.footer-deco {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 14px 0;
}

.footer-sun-img {
    width: 240px;
    height: auto;
    opacity: 0.7;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 28px 20px;
}

.disclaimer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* ===============================
   SCREEN 2: LOADING
   =============================== */
.loading-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 30px;
}

.loading-wait {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.loading-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 38px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #FBE69E 0%, #DFAF53 50%, #B8862F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 48px;
}

.progress-bar {
    width: 260px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #D4B452, #FBE69E, #DFAF53);
    border-radius: 3px;
    transition: width 0.15s linear;
}

.progress-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #DFAF53;
}

/* ===============================
   SCREEN 3: RESULT
   =============================== */
.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 24px;
}

.result-welcome {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.result-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 28px;
    color: #FFFFFF;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.result-prize {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 68px;
    line-height: 68px;
    text-align: center;
    letter-spacing: -1.5px;
    background: linear-gradient(180deg, #FBE69E 0%, #DFAF53 50%, #B8862F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.result-hurry {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

.claim-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    height: 52px;
    background: linear-gradient(135deg, #D4B452 0%, #FBE69E 50%, #DFAF53 100%);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    color: #0B0720;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: 0px 4px 20px rgba(212, 180, 82, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.claim-btn:active {
    transform: scale(0.96);
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0px 4px 20px rgba(212, 180, 82, 0.4); }
    50% { box-shadow: 0px 4px 32px rgba(212, 180, 82, 0.7); }
}

.claim-btn {
    animation: pulse-btn 2s ease-in-out infinite;
}

.result-agree {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
    max-width: 280px;
}

.result-agree a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 359px) {
    .header-block {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-text h1 {
        font-size: 20px;
        line-height: 26px;
    }

    .prize-amount {
        font-size: 56px;
        line-height: 56px;
    }

    .zodiac-section {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .zodiac-circle {
        width: 76px;
        height: 76px;
        border-radius: 38px;
    }

    .zodiac-circle img {
        width: 76px;
        height: 76px;
        border-radius: 38px;
    }

    .zodiac-label {
        font-size: 11px;
        padding: 5px 12px;
    }

    .loading-title {
        font-size: 26px;
        line-height: 32px;
    }

    .result-prize {
        font-size: 56px;
        line-height: 56px;
    }
}
