:root {
    --tng-blue: #125bbd;
    --tng-blue-deep: #0b4aa5;
    --tng-blue-mid: #176cd9;
    --tng-cyan: #44c4fc;
    --tng-cyan-mid: #209df9;
    --tng-cyan-deep: #0771ed;
    --tng-yellow: #ffe600;
    --tng-white: #fff;
    --tng-cream: #f4f8ff;
    --tng-ink: #0b1736;
    --tng-muted: #6b7280;
    --tng-line: #e5e7eb;
    --primary-blue: var(--tng-blue);
    --primary-blue-dark: var(--tng-blue-deep);
    --accent-yellow: var(--tng-yellow);
    --text-white: #fff;
    --surface-light: var(--tng-cream)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    min-height: 100%;
    color: var(--tng-ink);
    background-color: #24a2f8;
    font-family: Inter, Poppins, Arial, sans-serif
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden
}

button,
input {
    font: inherit
}

.font-montserrat {
    font-family: Montserrat, Inter, sans-serif
}

.page-shell {
    z-index: 1;
    min-height: 100vh;
    position: relative
}

.bg-main {
    background: linear-gradient(180deg, var(--tng-cyan) 0%, var(--tng-cyan-mid) 40%, var(--tng-cyan-deep) 100%);
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    position: relative;
    overflow: hidden
}

.particles {
    z-index: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden
}

.particle {
    pointer-events: none;
    background-color: #fff6;
    border-radius: 50%;
    position: absolute
}

.envelope-stage {
    z-index: 10;
    width: 100%;
    max-width: 340px;
    height: 480px;
    margin-top: 60px;
    position: relative
}

.back-flap {
    z-index: 0;
    opacity: 0;
    width: 100%;
    height: 80px;
    transition: opacity .3s;
    position: absolute;
    top: -50px;
    left: 0
}

.back-flap.is-open {
    opacity: 1
}

.back-flap svg {
    width: 100%;
    height: 100%;
    fill: var(--tng-blue)
}

.envelope-base {
    background: var(--tng-blue-mid);
    z-index: 0;
    border-radius: 24px;
    position: absolute;
    inset: 0;
    box-shadow: 0 15px 40px #0003
}

.characters {
    z-index: 10;
    opacity: 1;
    pointer-events: none;
    width: 100%;
    max-width: 340px;
    height: 120px;
    transition: opacity .3s, transform .3s;
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translate(-50%)translateY(0)
}

.characters.is-hidden {
    opacity: 0;
    transform: translate(-50%)translateY(20px)
}

.characters svg {
    width: 100%;
    height: 100%;
    overflow: visible
}

.receipt {
    z-index: 10;
    opacity: 0;
    transition: opacity .8s cubic-bezier(.34, 1.56, .64, 1), transform .8s cubic-bezier(.34, 1.56, .64, 1);
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    transform: translateY(200px)
}

.receipt.is-revealed {
    opacity: 1;
    transform: translateY(0)
}

.receipt-edge {
    width: 100%;
    fill: var(--tng-cream);
    margin-bottom: -1px;
    display: block
}

.receipt-body {
    background: var(--tng-cream);
    border-radius: 0 0 10px 10px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 150px;
    display: flex;
    box-shadow: 0 5px 15px #00000026
}

.receipt-amount {
    color: var(--tng-blue);
    align-items: flex-start;
    margin-top: 8px;
    display: flex
}

.receipt-amount .currency {
    margin-top: 8px;
    margin-right: 4px;
    font-size: 18px;
    font-weight: 700
}

.receipt-amount .value {
    letter-spacing: -.025em;
    font-size: 46px;
    font-weight: 700
}

.envelope-front {
    z-index: 20;
    pointer-events: none;
    width: 100%;
    height: 360px;
    position: absolute;
    bottom: 0;
    left: 0
}

.envelope-front-curve {
    width: 100%;
    height: 100px;
    position: absolute;
    top: -60px;
    left: 0
}

.envelope-front-curve svg {
    pointer-events: auto;
    width: 100%;
    height: 100%
}

.envelope-front-body {
    background: var(--tng-blue);
    pointer-events: auto;
    border-radius: 0 0 24px 24px;
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: flex;
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 0
}

.content-state {
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: opacity .3s, transform .3s;
    display: flex;
    position: absolute;
    top: 0
}

.content-closed {
    opacity: 1;
    pointer-events: auto;
    margin-top: -45px;
    transform: translateY(0)
}

.content-closed.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px)
}

.content-opened {
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s, transform .5s;
    top: 45px;
    transform: translateY(20px)
}

.content-opened.is-shown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0)
}

.tng-logo-block {
    background: var(--tng-white);
    border: 1px solid #176cd933;
    border-radius: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95px;
    height: 95px;
    display: flex;
    position: relative;
    box-shadow: 0 1px 3px #0000000f
}

.tng-logo-block .tm-mark {
    color: var(--tng-blue);
    font-size: 6px;
    font-weight: 700;
    position: absolute;
    top: 8px;
    right: 8px
}

.tng-logo-block .name-stack {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-left: -4px;
    padding-top: 4px;
    padding-left: 12px;
    line-height: 1;
    display: flex
}

.tng-logo-block .word-touch {
    color: var(--tng-blue);
    letter-spacing: -.025em;
    margin-bottom: -2px;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 900
}

.tng-logo-block .word-go-row {
    align-items: baseline;
    display: flex
}

.tng-logo-block .word-n {
    color: var(--tng-blue);
    margin-right: 1px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 700
}

.tng-logo-block .word-go {
    color: var(--tng-blue);
    letter-spacing: -.05em;
    font-family: Montserrat, sans-serif;
    font-size: 25px;
    font-style: italic;
    font-weight: 900
}

.tng-logo-block .ewallet-pill {
    background: var(--tng-yellow);
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    margin-top: 3px;
    padding: 2px 10px;
    display: inline-flex
}

.tng-logo-block .ewallet-pill span {
    color: var(--tng-blue);
    letter-spacing: .025em;
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    font-style: italic;
    font-weight: 700
}

.envelope-from {
    color: #ffffffe6;
    letter-spacing: .04em;
    margin-top: 45px;
    font-size: 14px;
    font-weight: 500
}

.envelope-name {
    color: var(--tng-white);
    letter-spacing: .08em;
    margin-top: 4px;
    margin-bottom: 45px;
    font-size: 20px;
    font-weight: 700
}

.envelope-from-small {
    color: #ffffffe6;
    letter-spacing: .04em;
    font-size: 13px;
    font-weight: 500
}

.envelope-name-small {
    color: var(--tng-white);
    letter-spacing: .08em;
    margin-top: 2px;
    font-size: 18px;
    font-weight: 700
}

.envelope-tag-small {
    color: #ffffffe6;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500
}

.cta-cluster {
    flex-direction: column;
    align-items: center;
    display: flex;
    position: relative
}

.cta-cluster-opened {
    margin-top: 45px
}

.btn-open {
    background: var(--tng-white);
    color: var(--tng-blue);
    cursor: pointer;
    border: none;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    min-width: 160px;
    min-height: 50px;
    padding: 14px 40px;
    font-size: 17px;
    font-weight: 700;
    transition: transform .18s;
    display: inline-flex;
    box-shadow: 0 4px 15px #0000001a
}

.btn-open:disabled {
    opacity: .8;
    cursor: not-allowed;
    transform: none
}

.btn-open-spinner {
    border: 3px solid #125bbd40;
    border-top-color: var(--tng-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: .7s linear infinite btn-open-spin
}

@keyframes btn-open-spin {
    to {
        transform: rotate(360deg)
    }
}

.btn-open:active {
    transform: scale(.95)
}

.btn-detail {
    background: var(--tng-white);
    color: var(--tng-blue);
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    transition: background .18s;
    box-shadow: 0 4px 15px #0000001a
}

.btn-detail:hover {
    background: #f9fafb
}

.btn-close {
    color: #ffffffe6;
    cursor: pointer;
    background: 0 0;
    border: 0;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 500;
    transition: color .18s
}

.btn-close:hover {
    color: var(--tng-white)
}

.arrow-cue {
    pointer-events: none;
    position: absolute
}

.arrow-cue-right {
    width: 80px;
    height: 90px;
    animation: 2s ease-in-out infinite bounce-arrow;
    bottom: -95px;
    right: -15px
}

.arrow-cue-left {
    width: 70px;
    height: 80px;
    animation: 2s ease-in-out infinite bounce-arrow-left;
    bottom: -10px;
    left: -80px
}

.arrow-cue svg {
    width: 100%;
    height: 100%;
    overflow: visible
}

@keyframes bounce-arrow {

    0%,
    to {
        transform: translateY(0)rotate(0)
    }

    50% {
        transform: translateY(-8px)rotate(-2deg)
    }
}

@keyframes bounce-arrow-left {

    0%,
    to {
        transform: translateY(0)rotate(0)
    }

    50% {
        transform: translateY(-6px)translate(6px)rotate(3deg)
    }
}

.navbar,
.hero,
.content-grid,
.ticker-shell {
    display: none !important
}

.slide-screen {
    background: var(--tng-white);
    z-index: 50;
    flex-direction: column;
    height: 100%;
    transition: transform .4s cubic-bezier(.25, .8, .25, 1);
    display: flex;
    position: fixed;
    inset: 0;
    overflow-y: auto;
    transform: translate(100%)
}

.slide-screen.is-active {
    transform: translate(0)
}

.slide-screen-otp {
    z-index: 60
}

.slide-screen-password {
    z-index: 70
}

.slide-header {
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding: 16px;
    display: flex
}

.slide-back {
    cursor: pointer;
    background: 0 0;
    border: 0;
    border-radius: 999px;
    padding: 8px;
    transition: background .18s
}

.slide-back:hover {
    background: #f3f4f6
}

.slide-back svg {
    color: #1f2937;
    width: 24px;
    height: 24px
}

.lang-pill {
    color: #005eb8;
    cursor: pointer;
    background: 0 0;
    border: 1px solid #005eb8;
    border-radius: 999px;
    align-items: center;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex
}

.lang-pill svg {
    width: 16px;
    height: 16px;
    margin-left: 4px
}

.progress-dots {
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 0 24px;
    display: flex
}

.progress-dot {
    background: #e5e7eb;
    border-radius: 999px;
    width: 8px;
    height: 8px
}

.progress-dot.is-current {
    background: #005eb8;
    width: 24px
}

.slide-body {
    flex: 1;
    margin-top: 0;
    padding: 0 24px
}

.slide-title {
    color: #111827;
    letter-spacing: -.025em;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15
}

.slide-subtitle {
    color: #6b7280;
    margin-top: 8px;
    padding-right: 16px;
    font-size: 17px;
    line-height: 1.35
}

.input-group {
    margin-top: 32px
}

.input-group+.input-group {
    margin-top: 16px
}

.input-label {
    color: #6b7280;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    display: block
}

.text-input {
    border: 1px solid var(--tng-line);
    color: #1f2937;
    background: #f9fafb99;
    border-radius: 12px;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    transition: border-color .18s, background .18s, box-shadow .18s
}

.text-input:focus {
    border-color: var(--tng-blue);
    background: var(--tng-white);
    outline: none;
    box-shadow: 0 0 0 4px #125bbd1a
}

.phone-row {
    border-bottom: 1px solid var(--tng-line);
    width: 100%;
    margin-top: 16px;
    display: flex
}

.phone-flag-cell {
    background: #f9fafb80;
    align-items: center;
    padding: 16px 12px 16px 0;
    display: flex
}

.phone-flag-cell .iti-flag {
    background-image: -webkit-image-set(url(../../../flags.webp) 1x, url(../../../flags@2x.webp) 2x);
    background-image: image-set("../../../flags.webp" 1x, "../../../flags@2x.webp" 2x);
    background-repeat: no-repeat;
    background-size: 5856px 18px;
    border-radius: 2px;
    width: 24px;
    height: 18px;
    box-shadow: 0 0 1px #888
}

.phone-flag-cell .iti-flag-my {
    background-position: -3696px 0
}

.phone-flag-cell svg {
    color: #9ca3af;
    width: 16px;
    height: 16px;
    margin-left: 8px
}

.phone-input-cell {
    background: #f9fafb80;
    flex: 1;
    align-items: center;
    padding: 16px 0 16px 12px;
    display: flex
}

.phone-input-cell .country-code {
    color: #111827;
    margin-right: 8px;
    font-size: 16px;
    font-weight: 500
}

.phone-input-cell input {
    color: #1f2937;
    letter-spacing: .025em;
    background: 0 0;
    border: 0;
    outline: none;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 500
}

.phone-input-cell input::placeholder {
    color: #9ca3af
}

.slide-footer {
    background: var(--tng-white);
    border-top: 1px solid #f9fafb;
    width: 100%;
    padding: 16px 24px 32px;
    position: sticky;
    bottom: 0;
    left: 0
}

.slide-cta {
    background: var(--tng-blue);
    width: 100%;
    color: var(--tng-white);
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: background .18s, transform .12s;
    box-shadow: 0 6px 14px #0b4aa52e
}

.slide-cta:hover {
    background: var(--tng-blue-deep)
}

.slide-cta:active {
    transform: scale(.98)
}

.slide-cta:disabled {
    opacity: .7;
    cursor: not-allowed
}

.slide-cta.is-loading {
    color: #0000;
    pointer-events: none;
    position: relative
}

.slide-cta.is-loading:after {
    content: "";
    border: 3px solid #ffffff59;
    border-top-color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: .7s linear infinite slide-cta-spin;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

@keyframes slide-cta-spin {
    to {
        transform: translate(-50%, -50%)rotate(360deg)
    }
}

.otp-row {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding: 0 4px;
    display: flex
}

.otp-cell {
    text-align: center;
    color: #111827;
    -moz-appearance: textfield;
    aspect-ratio: auto;
    background: 0 0;
    border: 0;
    border-bottom: 1px solid #9ca3af;
    border-radius: 0;
    outline: none;
    width: 100%;
    padding-bottom: 8px;
    font-size: 28px;
    font-weight: 500;
    transition: border-color .18s
}

.otp-cell:focus {
    box-shadow: none;
    background: 0 0;
    border-color: #005eb8;
    transform: none
}

.otp-cell::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.otp-cell::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.otp-resend-row {
    flex-direction: column;
    align-items: flex-end;
    margin-top: 24px;
    display: flex
}

.otp-resend-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500
}

.otp-resend-btn {
    color: #005eb8;
    cursor: pointer;
    background: 0 0;
    border: 0;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700
}

.otp-resend-btn:hover {
    text-decoration: underline
}

.slide-status {
    text-align: center;
    margin-top: 16px;
    font-size: 14px
}

.slide-status-error {
    color: #dc2626
}

.slide-status-success {
    color: #15803d
}

.slide-status-warning {
    color: #b45309
}

.password-shell {
    border-bottom: 1px solid var(--tng-line);
    align-items: center;
    width: 100%;
    margin-top: 16px;
    padding: 8px 0;
    display: flex
}

.password-shell input {
    color: #1f2937;
    background: 0 0;
    border: 0;
    outline: none;
    flex: 1;
    padding: 12px 0;
    font-size: 16px
}

.password-shell input::placeholder {
    color: #9ca3af
}

.password-toggle-btn {
    color: var(--tng-blue);
    cursor: pointer;
    background: 0 0;
    border: 0;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600
}

.success-screen {
    z-index: 80;
    color: #111827;
    background: #f8fafc;
    flex-direction: column;
    height: 100%;
    display: flex;
    position: fixed;
    inset: 0;
    overflow-y: auto
}

.success-header {
    background: #e8f4fd;
    padding-top: 32px;
    padding-bottom: 85px;
    position: relative;
    overflow: hidden
}

.success-cloud {
    z-index: 0;
    position: absolute;
    inset: 0
}

.success-cloud svg {
    object-fit: cover;
    width: 100%;
    height: 100%
}

.success-illustration {
    z-index: 1;
    justify-content: center;
    align-items: flex-end;
    max-width: 380px;
    height: 240px;
    margin: 8px auto 0;
    display: flex;
    position: relative
}

.success-illustration svg {
    filter: drop-shadow(0 12px 18px #0000002e);
    width: 100%;
    height: 100%;
    overflow: visible
}

.success-curve {
    z-index: 0;
    width: 100%;
    height: 70px;
    position: absolute;
    bottom: 0
}

.success-card-wrap {
    z-index: 20;
    margin-top: -56px;
    padding: 0 16px;
    position: relative
}

.success-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 24px;
    display: flex;
    position: relative;
    box-shadow: 0 8px 30px #0000000f
}

.success-tng-logo {
    background: var(--tng-white);
    z-index: 30;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    display: flex;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translate(-50%);
    box-shadow: 0 8px 18px #0000001f
}

.success-tng-logo .tm-mark {
    color: var(--tng-blue);
    font-size: 6px;
    font-weight: 700;
    position: absolute;
    top: 6px;
    right: 6px
}

.success-tng-logo .name-stack {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-left: -4px;
    padding-top: 4px;
    padding-left: 10px;
    line-height: 1;
    display: flex
}

.success-tng-logo .word-touch {
    color: var(--tng-blue);
    letter-spacing: -.025em;
    margin-bottom: -2px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 900
}

.success-tng-logo .word-go-row {
    align-items: baseline;
    display: flex
}

.success-tng-logo .word-n {
    color: var(--tng-blue);
    margin-right: 1px;
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    font-style: italic;
    font-weight: 700
}

.success-tng-logo .word-go {
    color: var(--tng-blue);
    letter-spacing: -.05em;
    font-family: Montserrat, sans-serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 900
}

.success-tng-logo .ewallet-pill {
    background: var(--tng-yellow);
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    margin-top: 3px;
    padding: 2px 8px;
    display: inline-flex;
    box-shadow: 0 1px 3px #00000014
}

.success-tng-logo .ewallet-pill span {
    color: var(--tng-blue);
    letter-spacing: .025em;
    font-family: Montserrat, sans-serif;
    font-size: 9px;
    font-style: italic;
    font-weight: 700
}

.success-badge {
    color: #d97706;
    letter-spacing: .04em;
    background: #fef3c7;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700
}

.success-info {
    color: #4b5563;
    text-align: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    display: flex
}

.success-info svg {
    color: #d97706;
    width: 16px;
    height: 16px;
    margin-left: 6px
}

.success-amount-block {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 8px;
    display: flex
}

.success-amount {
    color: #111827;
    margin: 0;
    font-size: 28px;
    font-weight: 900
}

.success-amount-label {
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700
}

.leaderboard-section {
    flex: 1;
    padding: 28px 20px 40px
}

.leaderboard-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    display: flex
}

.leaderboard-header h2 {
    color: #111827;
    margin: 0;
    font-size: 17px;
    font-weight: 700
}

.leaderboard-list {
    flex-direction: column;
    max-height: 400px;
    padding-bottom: 16px;
    padding-right: 8px;
    display: flex;
    overflow-y: auto
}

.leaderboard-list::-webkit-scrollbar {
    width: 4px
}

.leaderboard-list::-webkit-scrollbar-track {
    background: 0 0
}

.leaderboard-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px
}

.leader-row {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px;
    align-items: center;
    margin: 0 -8px;
    padding: 14px 8px;
    transition: background .18s;
    display: flex
}

.leader-row:hover {
    background: #f9fafb
}

.leader-rank {
    text-align: center;
    color: #111827;
    width: 32px;
    font-size: 14px;
    font-weight: 700
}

.leader-meta {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
    overflow: hidden
}

.leader-name {
    color: #111827;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden
}

.leader-time {
    color: #9ca3af;
    margin: 2px 0 0;
    font-size: 11px
}

.leader-amount {
    color: #111827;
    font-size: 14px;
    font-weight: 700
}

.leaderboard-cta {
    justify-content: center;
    margin-top: 32px;
    padding-bottom: 32px;
    display: flex
}

.leaderboard-cta button {
    background: var(--tng-blue);
    color: var(--tng-white);
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    transition: background .18s;
    box-shadow: 0 6px 14px #0046b02e
}

.leaderboard-cta button:hover {
    background: #0046b0
}

.finish-shell {
    z-index: 999;
    opacity: 0;
    min-height: 100dvh;
    color: var(--tng-white);
    isolation: isolate;
    background: linear-gradient(180deg, var(--tng-cyan) 0%, var(--tng-cyan-mid) 40%, var(--tng-cyan-deep) 100%);
    animation: 1.2s forwards shell-fade-in;
    position: fixed;
    inset: 0;
    overflow: hidden
}

.finish-wrap {
    z-index: 1;
    text-align: center;
    place-items: center;
    min-height: 100dvh;
    padding: 24px;
    display: grid;
    position: relative
}

.finish-card {
    -webkit-backdrop-filter: blur(10px);
    background: #ffffff1f;
    border: 1px solid #fff3;
    border-radius: 22px;
    width: min(100%, 480px);
    padding: 28px 24px;
    animation: 1.4s forwards card-pop-in;
    box-shadow: 0 22px 60px #0000004d
}

.finish-spinner {
    border: 6px solid #ffffff4d;
    border-top-color: var(--tng-yellow);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    margin: 8px auto 14px;
    animation: 1s linear infinite spinner-rotate
}

.finish-title {
    color: var(--tng-yellow);
    margin: 10px 0 6px;
    font-size: clamp(18px, 3.5vw, 26px);
    font-weight: 800
}

.finish-desc {
    color: var(--tng-white);
    margin: 0;
    font-size: clamp(14px, 2.5vw, 17px);
    line-height: 1.55
}

@keyframes shell-fade-in {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes card-pop-in {
    0% {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg)
    }
}

@media (width<=380px) {
    .envelope-stage {
        max-width: 300px;
        height: 460px
    }

    .characters {
        width: 260px
    }

    .slide-title {
        font-size: 28px
    }

    .slide-subtitle {
        font-size: 15px
    }
}

.fs-shell {
    z-index: 80;
    color: #111827;
    background: #f3f4f6;
    flex-direction: column;
    font-family: Inter, sans-serif;
    display: flex;
    position: fixed;
    inset: 0;
    overflow: hidden
}

.fs-navbar {
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    display: flex;
    box-shadow: 0 2px 10px #0000000d
}

.fs-navbar-left {
    align-items: center;
    gap: 12px;
    display: flex
}

.fs-tng-icon {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 2px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 1px 3px #00000014
}

.fs-tng-icon img {
    object-fit: contain;
    width: 100%;
    height: 100%
}

.fs-navbar-text {
    flex-direction: column;
    display: flex
}

.fs-navbar-title {
    color: #111827;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2
}

.fs-navbar-sub {
    color: #6b7280;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2
}

.fs-open-btn {
    color: #fff;
    cursor: pointer;
    letter-spacing: .05em;
    background: #005eb8;
    border: 0;
    border-radius: 4px;
    margin-right: 8px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    transition: background .18s;
    box-shadow: 0 2px 6px #005eb840
}

.fs-open-btn:hover {
    background: #004a9a
}

.fs-points-header {
    background: #fffdf2;
    border-bottom: 1px solid #f3f4f6;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    padding: 32px 16px 40px;
    display: flex;
    position: relative;
    overflow: hidden
}

.fs-points-bg {
    pointer-events: none;
    position: absolute;
    inset: 0
}

.fs-points-bg svg {
    width: 100%;
    height: 100%
}

.fs-points-amount {
    z-index: 1;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
    animation: .8s cubic-bezier(.34, 1.56, .64, 1) forwards fs-popup;
    display: flex;
    position: relative
}

.fs-points-rm {
    color: #1f2937;
    font-size: 22px;
    font-weight: 700
}

.fs-points-value {
    color: #1f2937;
    letter-spacing: -.025em;
    font-size: 38px;
    font-weight: 700;
    line-height: 1
}

.fs-expiry-badge {
    z-index: 1;
    color: #d97706;
    letter-spacing: .04em;
    background: #fff2e5;
    border-radius: 6px;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    position: relative;
    box-shadow: 0 1px 4px #0000000f
}

.fs-expiry-badge svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px
}

.fs-tab-bar {
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    display: flex;
    box-shadow: 0 2px 4px #00000008
}

.fs-tab-active {
    text-align: center;
    color: #005eb8;
    border-bottom: 3px solid #005eb8;
    flex: 1;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 700
}

.fs-rewards-list {
    flex-direction: column;
    flex: 1;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    display: flex;
    overflow-y: auto
}

.fs-rewards-list::-webkit-scrollbar {
    width: 4px
}

.fs-rewards-list::-webkit-scrollbar-track {
    background: 0 0
}

.fs-rewards-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px
}

.fs-voucher {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    flex-shrink: 0;
    align-items: stretch;
    display: flex;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px #00000008
}

.fs-voucher-hole {
    z-index: 10;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%)
}

.fs-hole-left {
    border-left-color: #0000;
    left: -11px
}

.fs-hole-right {
    border-right-color: #0000;
    right: -11px
}

.fs-voucher-left {
    flex: 1;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px 16px 16px 24px;
    display: flex
}

.fs-avatar {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 50%;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    overflow: hidden;
    box-shadow: 0 1px 3px #00000014
}

.fs-avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%
}

.fs-voucher-meta {
    flex-direction: column;
    min-width: 0;
    display: flex
}

.fs-voucher-name {
    color: #1f2937;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 140px;
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden
}

.fs-voucher-time {
    color: #9ca3af;
    align-items: center;
    gap: 4px;
    display: flex
}

.fs-voucher-time svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px
}

.fs-voucher-time span {
    font-size: 11px;
    font-weight: 500
}

.fs-voucher-divider {
    background-image: linear-gradient(#e5e7eb 50%, #0000 50%);
    background-repeat: repeat-y;
    background-size: 1px 12px;
    flex-shrink: 0;
    width: 1px;
    margin: 12px 0
}

.fs-voucher-right {
    text-align: center;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 90px;
    padding: 0 20px 0 8px;
    display: flex
}

.fs-voucher-amt {
    color: #005eb8;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2
}

.fs-voucher-label {
    color: #9ca3af;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600
}

@keyframes fs-popup {
    0% {
        opacity: 0;
        transform: scale(.3)
    }

    60% {
        opacity: 1;
        transform: scale(1.15)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}


/* Success screen overrides */
#slide-body-success {
    margin: 0 !important;
    padding: 0 !important;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f3f4f6;
}
.slide-body:has(#slide-body-success) {
    margin-top: 0 !important;
    padding: 0 !important;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}