/* Local deposit presentation. Payment form hooks and configured amounts stay intact. */
.modal-shell[data-modal="deposit"] .modal-card--deposit {
    width: min(100%, 420px);
    padding: 14px 20px 20px;
    border-radius: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.modal-shell[data-modal="deposit"] .modal-close {
    --modal-close-size: 44px;
    --modal-close-inset: 10px;
    --modal-close-radius: 50%;
    --modal-close-transform: none;
    top: -10px;
    right: -8px;
    background: #1b2421;
    display: grid;
    place-items: center;
    padding: 0;
    touch-action: manipulation;
}

.modal-shell[data-modal="deposit"] .modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-shell[data-modal="deposit"] .deposit-raffle {
    position: relative;
    display: grid;
    grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(171, 213, 103, 0.3);
    border-radius: 20px;
    margin-bottom: 32px;
    background: radial-gradient(ellipse at 0 0, rgba(112, 167, 76, 0.14), transparent 70%), linear-gradient(135deg, #1b2421, #111614);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 20px rgba(0, 0, 0, 0.12);
}

.modal-shell[data-modal="deposit"] .deposit-raffle-media,
.modal-shell[data-modal="deposit"] .deposit-raffle-copy {
    min-width: 0;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-media img {
    display: block;
    width: 100%;
    max-width: 110px;
    margin-inline: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-timing {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    justify-items: center;
    gap: 5px;
    margin-top: 5px;
    text-align: center;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-deadline {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.25;
    color: #e7eae3;
}

.modal-shell[data-modal="deposit"] .deposit-raffle .deposit-countdown {
    gap: 3px;
    width: 100%;
}

.modal-shell[data-modal="deposit"] .deposit-raffle .deposit-countdown span {
    min-width: 0;
    flex: 1 1 0;
    max-width: 30px;
    width: 30px;
    height: 28px;
    border-radius: 8px;
    color: #ecffe7;
    background: #273e2b;
    border: 1px solid rgba(137, 202, 107, 0.24);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.modal-shell[data-modal="deposit"] .deposit-raffle .deposit-countdown b {
    font-size: 12px;
    color: #b1c4af;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy {
    text-align: left;
    container-type: inline-size;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy h4 {
    margin: 0 0 6px;
    font-weight: 400;
    line-height: 1.08;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy h4 span {
    display: block;
    margin-bottom: 8px;
    padding-right: 30px;
    color: #f6f4f1;
    font-size: 17px;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy h4 strong {
    color: var(--gold);
    font-family: "Titan One Local", "Lilita One Local", Arial, sans-serif;
    font-weight: 400;
    font-size: 25px;
    white-space: nowrap;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-model {
    display: inline-block;
    vertical-align: middle;
    margin-block: 2px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: var(--gold);
    color: #172019;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy p {
    margin: 0;
    color: #cbd2cc;
    font-size: 13px;
    line-height: 1.3;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy p + p {
    margin-top: 6px;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy h4 span,
.modal-shell[data-modal="deposit"] .deposit-raffle-copy .deposit-raffle-audience {
    font-family: inherit;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
    line-height: 1.15;
    color: #f6f4f1;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy .deposit-raffle-invitation {
    color: var(--gold);
    font-weight: 700;
}

.modal-shell[data-modal="deposit"] .deposit-raffle-copy .deposit-raffle-highlight {
    color: #ffffff;
    margin-bottom: 0;
}

.modal-shell[data-modal="deposit"] .modal-copy--deposit {
    margin: 0 0 18px;
    text-align: left;
}

.modal-shell[data-modal="deposit"] .modal-copy--deposit h3 {
    justify-content: flex-start;
    gap: 8px;
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.08;
}

.modal-shell[data-modal="deposit"] .home-deposit-form {
    gap: 16px;
}

.modal-shell[data-modal="deposit"] .quick-amount-grid {
    isolation: isolate;
    gap: 20px 12px;
    margin-top: 8px;
}

.modal-shell[data-modal="deposit"] .quick-amount-button {
    min-height: 68px;
    border-radius: 20px;
    padding: 18px 12px 16px;
    align-items: baseline;
    gap: 6px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.16);
    touch-action: manipulation;
}

.modal-shell[data-modal="deposit"] .deposit-choice-currency {
    font-size: 17px;
    font-weight: inherit;
}

.modal-shell[data-modal="deposit"] .deposit-choice-value {
    font-size: 28px;
    font-weight: inherit;
}

.modal-shell[data-modal="deposit"] .deposit-choice-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 18px;
    height: 18px;
    visibility: hidden;
    pointer-events: none;
}

.modal-shell[data-modal="deposit"] .is-active .deposit-choice-check {
    visibility: visible;
}

.modal-shell[data-modal="deposit"] .quick-amount-button:active {
    transform: translateY(2px);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.16);
}

.modal-shell[data-modal="deposit"] .quick-amount-button .deposit-bonus-badge {
    top: -10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: 0;
    width: max-content;
    max-width: calc(100% - 8px);
    padding: 5px 7px;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.15;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.16);
}

.modal-shell[data-modal="deposit"] .register-field--deposit-value {
    gap: 8px;
    margin-top: 6px;
}

/* Short, tap-triggered reward accent. No looping particles or input interception. */
.modal-shell[data-modal="deposit"] .quick-amount-button.is-active .deposit-bonus-badge {
    background: linear-gradient(180deg, #ffed87, #ffd447);
    color: #24321b;
    box-shadow: inset 0 -2px 0 rgba(151, 99, 7, 0.22), 0 3px 9px rgba(255, 212, 71, 0.22);
}

.modal-shell[data-modal="deposit"] .quick-amount-button.is-bonus-burst {
    z-index: 2;
    animation: deposit-bonus-pop 550ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.modal-shell[data-modal="deposit"] .is-bonus-burst::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 2px solid #ffe68a;
    border-radius: inherit;
    pointer-events: none;
    animation: deposit-bonus-ring 650ms ease-out both;
}

.modal-shell[data-modal="deposit"] .deposit-bonus-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    margin: -5px 0 0 -3px;
    border-radius: 2px;
    background: #ffe478;
    pointer-events: none;
    animation: deposit-bonus-confetti 850ms ease-out both;
}

.modal-shell[data-modal="deposit"] .deposit-bonus-particle:nth-of-type(even) {
    background: #fff7cc;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.modal-shell[data-modal="deposit"] .deposit-bonus-face {
    display: none;
    position: absolute;
    inset: 14px 8px 6px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    font-style: normal;
    text-align: center;
    pointer-events: none;
}

.modal-shell[data-modal="deposit"] .is-bonus-selected {
    border-color: #e4c95d;
    background: radial-gradient(ellipse at top, rgba(255, 224, 112, 0.15), transparent 85%), linear-gradient(180deg, #2b7130, #205123);
}

.modal-shell[data-modal="deposit"] .is-bonus-selected > .deposit-choice-currency,
.modal-shell[data-modal="deposit"] .is-bonus-selected > .deposit-choice-value {
    visibility: hidden;
}

.modal-shell[data-modal="deposit"] .is-bonus-selected .deposit-bonus-face { display: grid; }

.modal-shell[data-modal="deposit"] .deposit-bonus-face__from {
    color: #e0edda;
    font-size: clamp(10px, 3.1vw, 12px);
    line-height: 1.1;
    font-weight: 600;
    white-space: nowrap;
}

.modal-shell[data-modal="deposit"] .deposit-bonus-face__total {
    color: #ffe478;
    font-family: "Titan One Local", "Lilita One Local", Arial, sans-serif;
    font-size: clamp(23px, 6.7vw, 28px);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.modal-shell[data-modal="deposit"] .deposit-bonus-face__total small {
    font-family: inherit;
    font-size: 0.52em;
}

.modal-shell[data-modal="deposit"] .is-bonus-selected .deposit-choice-check {
    top: 3px;
    right: 5px;
    width: 12px;
    height: 12px;
    color: #fff4bc;
}

.modal-shell[data-modal="deposit"] .is-bonus-burst .deposit-bonus-face {
    animation: deposit-bonus-reveal 400ms ease-out both;
}

@keyframes deposit-bonus-pop {
    0% { transform: scale(1); }
    22% { transform: scale(0.96); }
    55% { transform: scale(1.06); }
    78% { transform: scale(0.99); }
    100% { transform: scale(1); }
}

@keyframes deposit-bonus-ring {
    from { transform: scale(0.96); opacity: 0.85; }
    to { transform: scale(1.16); opacity: 0; }
}

@keyframes deposit-bonus-confetti {
    0% { transform: translate(0, 0) rotate(0); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translate(var(--bonus-x), var(--bonus-y)) rotate(var(--bonus-turn)); opacity: 0; }
}

@keyframes deposit-bonus-reveal {
    from { transform: translateY(6px) scale(0.97); opacity: 0.4; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .modal-shell[data-modal="deposit"] .quick-amount-button.is-bonus-burst,
    .modal-shell[data-modal="deposit"] .is-bonus-burst::after,
    .modal-shell[data-modal="deposit"] .deposit-bonus-particle,
    .modal-shell[data-modal="deposit"] .is-bonus-burst .deposit-bonus-face {
        animation: none;
    }
    .modal-shell[data-modal="deposit"] .deposit-bonus-particle { display: none; }
}

.modal-shell[data-modal="deposit"] .deposit-input-wrap {
    display: block;
    position: relative;
}

.modal-shell[data-modal="deposit"] .register-field--deposit-value input:not([type="hidden"]) {
    min-height: 52px;
    border: 1px solid #565b63;
    border-radius: 16px;
    padding: 8px 54px 8px 14px;
    background: #292c30;
    color: #f3f4f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: left;
    font-size: 22px;
    line-height: 1.2;
}

.modal-shell[data-modal="deposit"] .register-field--deposit-value input:not([type="hidden"]):focus {
    border-color: #9da6b1;
    outline: 2px solid rgba(157, 166, 177, 0.3);
    outline-offset: 2px;
    box-shadow: none;
}

.modal-shell[data-modal="deposit"] .deposit-edit-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #c1c7cf;
    cursor: text;
}

.modal-shell[data-modal="deposit"] .deposit-edit-icon svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.modal-shell[data-modal="deposit"] .deposit-limits-copy {
    margin: -6px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
}

.modal-shell[data-modal="deposit"] .modal-primary--submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 58px;
    padding: 12px 18px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #50bf44, #43ad39);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.06em;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.18);
    touch-action: manipulation;
    transform-origin: center;
    animation: auth-signup-pulse 1.6s ease-in-out infinite;
}

/* Same clipped reflection as signup, with a shorter interval. */
.modal-shell[data-modal="deposit"] .modal-primary--submit::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -40%;
    left: 0;
    width: 42%;
    height: 180%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 25%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.16) 75%, transparent);
    opacity: 0;
    transform: translateX(-150%) skewX(-20deg);
    animation: auth-signup-shine 2.8s ease-in-out infinite;
}

.modal-shell[data-modal="deposit"] .modal-primary--submit:active {
    transform: translateY(2px);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.18);
}

.modal-shell[data-modal="deposit"] .modal-primary--submit:is(:active, :focus-visible, :disabled, [aria-busy="true"]),
.modal-shell[data-modal="deposit"] .modal-primary--submit:is(:active, :focus-visible, :disabled, [aria-busy="true"])::after {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .modal-shell[data-modal="deposit"] .modal-primary--submit,
    .modal-shell[data-modal="deposit"] .modal-primary--submit::after {
        animation: none;
    }
}

@media (max-width: 360px) {
    .modal-shell[data-modal="deposit"] .deposit-raffle {
        padding: 10px;
        gap: 10px;
    }

    .modal-shell[data-modal="deposit"] .deposit-raffle-copy h4 strong {
        font-size: clamp(18px, 6.5vw, 23px);
    }

    .modal-shell[data-modal="deposit"] .deposit-raffle-copy p {
        font-size: 12px;
        margin-bottom: 0;
    }

    .modal-shell[data-modal="deposit"] .deposit-raffle-copy h4 span,
    .modal-shell[data-modal="deposit"] .deposit-raffle-copy .deposit-raffle-audience {
        font-size: 15px;
    }

    .modal-shell[data-modal="deposit"] .deposit-raffle .deposit-countdown span {
        flex: 1 1 0;
        max-width: 28px;
        height: 28px;
        font-size: clamp(12px, 4.2vw, 15px);
    }

    .modal-shell[data-modal="deposit"] .modal-card--deposit {
        padding-inline: 14px;
        border-radius: 28px;
    }

    .modal-shell[data-modal="deposit"] .quick-amount-grid {
        gap: 20px 10px;
    }

    .modal-shell[data-modal="deposit"] .quick-amount-button {
        padding-inline: 8px;
    }

    .modal-shell[data-modal="deposit"] .deposit-choice-value {
        font-size: 25px;
    }

    .modal-shell[data-modal="deposit"] .deposit-choice-currency {
        font-size: 14px;
    }

    .modal-shell[data-modal="deposit"] .register-field--deposit-value input:not([type="hidden"]) {
        padding-left: 12px;
        font-size: 20px;
    }
}

/* Fit this one sentence to its column; keep the other headings and paragraphs intact. */
.modal-shell[data-modal="deposit"] .deposit-raffle-copy .deposit-raffle-audience {
    font-size: clamp(8px, calc(4.5vw - 4px), 14px);
    font-size: min(14px, 8cqi);
    white-space: nowrap;
}
