:root {
    --aadi-red: #C41E3A;
    --aadi-gold: #F5B400;
    --aadi-green: #2E7D32;
    --aadi-cream: #FFF8E7;
    --aadi-deep: #7A1020;
    --aadi-text: #1F2937;
}

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

html, body {
    margin: 0;
    min-height: 100%;
}

.aadi-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(245, 180, 0, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 45% at 95% 15%, rgba(196, 30, 58, 0.18), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(46, 125, 50, 0.15), transparent 55%),
        linear-gradient(165deg, #FFF8E7 0%, #FFE8C8 40%, #FFF3E0 100%);
}

#aadi-confetti {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.aadi-shell {
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.aadi-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 1.25rem 1.15rem 1.4rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(196, 30, 58, 0.12);
    overflow: hidden;
    text-align: center;
}

.aadi-atmosphere { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.leaf {
    position: absolute;
    width: 18px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #66BB6A, #2E7D32);
    opacity: 0.28;
}
.leaf-1 { top: 12%; left: 6%; transform: rotate(-30deg); }
.leaf-2 { top: 18%; right: 8%; transform: rotate(40deg) scaleX(-1); }
.dot { position: absolute; width: 8px; height: 8px; border-radius: 999px; opacity: 0.45; }
.dot-1 { background: var(--aadi-gold); top: 30%; left: 10%; }
.dot-2 { background: var(--aadi-red); bottom: 22%; right: 12%; }
.dot-3 { background: var(--aadi-green); bottom: 18%; left: 16%; }

.aadi-logo {
    position: relative;
    z-index: 2;
    height: 3.25rem;
    width: auto;
    margin: 0 auto 0.75rem;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(196, 30, 58, 0.15));
}

.aadi-step { position: relative; z-index: 2; }
.aadi-step.hidden { display: none; }

.aadi-eyebrow {
    margin: 0 0 0.4rem;
    display: inline-flex;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFF3CD, #FFE8A3);
    color: #9A6B00;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.aadi-title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--aadi-deep);
}

.aadi-sub {
    margin: 0.45rem auto 0;
    max-width: 18rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: #6B7280;
}

.wheel-wrap {
    position: relative;
    width: min(100%, 320px);
    margin: 1rem auto 1.1rem;
    aspect-ratio: 1;
}

.wheel-disk {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    will-change: transform;
    transform: rotate(0deg);
    transition: none;
}

.wheel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    filter: drop-shadow(0 14px 28px rgba(196, 30, 58, 0.22));
}

.wheel-pointer {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--aadi-red);
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--aadi-gold);
    border: 2px solid #fff;
}

.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFF7D6, var(--aadi-gold));
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    z-index: 4;
    pointer-events: none;
}

.aadi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.aadi-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.aadi-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--aadi-red), #E11D48);
    box-shadow: 0 10px 28px rgba(196, 30, 58, 0.35);
}

.aadi-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.aadi-btn-ghost {
    margin-top: 0.55rem;
    color: var(--aadi-deep) !important;
    background: #fff;
    border: 2px solid rgba(196, 30, 58, 0.2);
}

.aadi-note {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9CA3AF;
}

.result-badge {
    display: inline-flex;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    color: #166534;
    font-size: 0.8rem;
    font-weight: 800;
}

.result-badge-muted {
    background: #F3F4F6;
    color: #4B5563;
}

.result-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-reward {
    margin: 0.35rem 0 1rem;
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    font-weight: 800;
    color: var(--aadi-red);
    line-height: 1.2;
}

.claim-form { text-align: left; }
.claim-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4B5563;
    text-align: center;
}

.claim-input {
    width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 2px solid #F3E8C8;
    background: #FFFDF7;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
    outline: none;
}

.claim-input:focus {
    border-color: var(--aadi-gold);
    box-shadow: 0 0 0 4px rgba(245, 180, 0, 0.2);
}

.claim-error {
    margin: -0.25rem 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #DC2626;
    text-align: center;
}

.claim-error.hidden { display: none; }

.code-card, .visit-card {
    margin: 0 auto 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #FFFDF5, #FFF3D6);
    border: 1px solid rgba(245, 180, 0, 0.35);
}

.code-label, .visit-label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9A6B00;
}

.code-value {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--aadi-deep);
    user-select: all;
}

.visit-date {
    margin: 0.3rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--aadi-red);
}

.visit-tag {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--aadi-green);
}

.voucher-note {
    margin: 0 auto 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.voucher-note.hidden,
.visit-card.hidden {
    display: none;
}

.claim-capture {
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.15rem 0.15rem;
}

.capture-logo {
    display: block;
    height: 2.75rem;
    width: auto;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.screenshot-prompt {
    display: block;
    margin: 0.15rem 0 0;
    color: #0369A1;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.btn-download-claim {
    margin-bottom: 0.15rem;
}

.aadi-expired-card {
    text-align: center;
}

.aadi-social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.aadi-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #FFFDF7;
    border: 1px solid rgba(196, 30, 58, 0.15);
    color: var(--aadi-deep) !important;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
}

.aadi-social-link .aadi-social-icon,
.aadi-social-link svg.aadi-social-icon {
    display: block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    flex: 0 0 16px;
    overflow: hidden;
}

.aadi-social-link span {
    white-space: nowrap;
}

.claim-image-preview {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.72);
    -webkit-overflow-scrolling: touch;
}

.claim-image-preview-card {
    width: min(100%, 22rem);
    max-height: 90dvh;
    overflow: auto;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #FFF8E7;
    text-align: center;
}

.claim-image-preview-tip {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.4;
}

.claim-image-preview-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.85rem;
    margin: 0 0 0.85rem;
    -webkit-touch-callout: default;
    user-select: none;
}

.claim-image-preview-close {
    margin-top: 0;
}

@media (max-height: 720px) {
    .aadi-logo { height: 2.6rem; }
    .wheel-wrap { width: min(100%, 260px); margin: 0.65rem auto 0.85rem; }
    .aadi-title { font-size: 1.25rem; }
}
