*,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --bg: #ffffff;
            --surface: #F4F6FA;
            --surface2: #E8EDF5;
            --border: rgba(0, 0, 0, 0.07);
            --border2: rgba(0, 0, 0, 0.11);
            --blue: #1565C0;
            --blue2: #1E88E5;
            --blueGlow: rgba(21, 101, 192, 0.1);
            --text: #0D0D0D;
            --muted: #7A8499;
            --muted2: #B0B8C8;
            --green: #38A13D;
            --red: #E53935;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100dvh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            -webkit-font-smoothing: antialiased;
        }

        body::before {
            content: '';
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: 500px;
            height: 400px;
            pointer-events: none;
            z-index: 0;
        }

        .app {
            width: 100%;
            max-width: 430px;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            padding: 0 20px 64px;
            position: relative;
            z-index: 1;
        }

        @keyframes up {
            from {
                opacity: 0;
                transform: translateY(18px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes popIn {
            from {
                opacity: 0;
                transform: scale(0.82);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            18% {
                transform: translateX(-7px);
            }

            36% {
                transform: translateX(7px);
            }

            54% {
                transform: translateX(-5px);
            }

            72% {
                transform: translateX(5px);
            }
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }

        #s1 {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        #s2 {
            display: none;
            flex-direction: column;
            align-items: center;
        }

        .topbar {
            width: 100%;
            display: flex;
            justify-content: center;
            padding: 26px 0 0;
            animation: up 0.4s ease both;
        }

        .brand-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--surface);
            border: 1px solid var(--border2);
            border-radius: 100px;
            padding: 8px 16px 8px 10px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            letter-spacing: -0.1px;
        }

        .brand-chip img {
            width: 22px;
            height: 22px;
            border-radius: 6px;
            object-fit: cover;
        }

        .live-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--green);
            animation: blink 1.8s ease-in-out infinite;
        }

        .hero-wrap {
            margin-top: -95px;
            width: 380px;
            height: 380px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: up 0.4s 0.07s ease both;
        }

        .hero-wrap::before {
            content: '';
            position: absolute;
            width: 170px;
            height: 170px;
            border-radius: 50%;
            background: radial-gradient(ellipse, rgba(21, 101, 192, 0.09) 0%, transparent 65%);
        }

        .hero-wrap img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            position: relative;
            z-index: 1;
        }

        .hero-badge {
            position: absolute;
            bottom: 20px;
            right: 100px;
            background: #38A13D;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.2px;
            padding: 5px 12px;
            border-radius: 10px;
            box-shadow: 0 4px 18px rgba(21, 101, 192, 0.35);
            z-index: 2;
            white-space: nowrap;
        }

        .s1-heading {
            font-size: 30px;
            font-weight: 900;
            letter-spacing: -1.2px;
            line-height: 1.16;
            text-align: center;
            margin-top: 22px;
            animation: up 0.4s 0.11s ease both;
        }

        .s1-heading em {
            font-style: normal;
            background: linear-gradient(130deg, var(--blue), var(--blue2));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .s1-sub {
            font-size: 14px;
            font-weight: 400;
            color: var(--muted);
            line-height: 1.65;
            text-align: center;
            margin-top: 10px;
            padding: 0 8px;
            animation: up 0.4s 0.15s ease both;
        }

        .rule {
            width: 100%;
            height: 1px;
            background: var(--border);
            margin: 28px 0 22px;
            animation: up 0.4s 0.18s ease both;
        }

        .form-block {
            width: 100%;
            animation: up 0.4s 0.21s ease both;
        }

        .lbl {
            display: block;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 10px;
        }

        .name-input {
            width: 100%;
            background: var(--surface);
            border: 1.5px solid var(--border2);
            border-radius: 14px;
            padding: 17px 18px;
            font-family: 'Inter', sans-serif;
            font-size: 17px;
            font-weight: 600;
            color: var(--text);
            outline: none;
            caret-color: var(--blue);
            transition: border-color .18s, box-shadow .18s, background .18s;
            margin-bottom: 12px;
        }

        .name-input::placeholder {
            font-weight: 400;
            font-size: 15px;
            color: var(--muted2);
        }

        .name-input:focus {
            border-color: var(--blue);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
        }

        .name-input.shake {
            border-color: var(--red) !important;
            box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1) !important;
            animation: shake 0.38s ease;
        }

        .cta {
            width: 100%;
            background: var(--blue);
            border: none;
            border-radius: 14px;
            padding: 18px;
            font-family: 'Inter', sans-serif;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: -0.2px;
            color: #fff;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 22px rgba(21, 101, 192, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
            transition: transform .14s, box-shadow .14s, background .14s;
        }

        .cta::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 52%);
            pointer-events: none;
        }

        .cta:hover {
            background: #1976D2;
            box-shadow: 0 6px 30px rgba(21, 101, 192, 0.38);
        }

        .cta:active {
            transform: scale(0.976);
            box-shadow: 0 2px 12px rgba(21, 101, 192, 0.2);
        }

        .stats {
            width: 100%;
            margin-top: 14px;
            display: grid;
            grid-template-columns: 1fr 1px 1fr 1px 1fr;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            animation: up 0.4s 0.26s ease both;
        }

        .stat {
            padding: 16px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
        }

        .sv {
            font-size: 18px;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .sl {
            font-size: 10.5px;
            font-weight: 500;
            color: var(--muted);
        }

        .ss {
            background: var(--border);
        }

        .s2-hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 36px;
        }

        .check {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(145deg, #43A047, #2E7D32);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            box-shadow: 0 8px 30px rgba(56, 161, 61, 0.3);
            animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
            margin-bottom: 18px;
            color:white;
        }

        .s2-eyebrow {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 6px;
            animation: up 0.4s 0.1s ease both;
        }

        .s2-heading {
            font-size: 26px;
            font-weight: 900;
            letter-spacing: -0.8px;
            text-align: center;
            animation: up 0.4s 0.13s ease both;
        }

        .s2-sub {
            font-size: 13.5px;
            color: var(--muted);
            text-align: center;
            margin-top: 8px;
            animation: up 0.4s 0.16s ease both;
        }

        .ticket-wrap {
            width: 100%;
            margin-top: 26px;
            position: relative;
            animation: popIn 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }

        .ticket-wrap::before,
        .ticket-wrap::after {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            background: var(--bg);
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
        }

        .ticket-wrap::before {
            left: -11px;
        }

        .ticket-wrap::after {
            right: -11px;
        }

        .ticket {
            background: var(--surface);
            border: 1.5px solid var(--border2);
            border-radius: 20px;
            overflow: hidden;
        }

        .ticket-top {
            background: var(--blue);
            border-bottom: 1.5px dashed rgba(255, 255, 255, 0.2);
            padding: 26px 24px 22px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .ticket-top::before {
            content: '';
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 280px;
            height: 180px;
            background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
            pointer-events: none;
        }

        .t-eyebrow {
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.65);
            margin-bottom: 14px;
        }

        .t-code {
            font-size: 34px;
            font-weight: 900;
            letter-spacing: 4px;
            color: #ffffff;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
            margin-bottom: 16px;
            font-variant-numeric: tabular-nums;
        }

        .t-expiry {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #ffffff;
            font-size: 12px;
            font-weight: 600;
            padding: 5px 14px;
            border-radius: 5px;
        }

        .ticket-bot {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            background: #ffffff;
        }

        .t-icon {
            width: 40px;
            height: 40px;
            border-radius: 5px;
            flex-shrink: 0;
            background: var(--blueGlow);
            border: 1px solid rgba(21, 101, 192, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .t-shop {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--text);
        }

        .t-shop-sub {
            font-size: 12px;
            color: var(--muted);
            margin-top: 2px;
        }

        .info-rows {
            width: 100%;
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            animation: up 0.4s 0.3s ease both;
        }

        .ir {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 16px 18px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .ir-icon {
            width: 40px;
            height: 40px;
            border-radius: 5px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .o {
            background: rgba(21, 101, 192, 0.08);
            border: 1px solid rgba(21, 101, 192, 0.18);
        }

        .b {
            background: rgba(21, 101, 192, 0.06);
            border: 1px solid rgba(21, 101, 192, 0.15);
        }

        .g {
            background: rgba(56, 161, 61, 0.08);
            border: 1px solid rgba(56, 161, 61, 0.2);
        }

        .ir strong {
            font-size: 13.5px;
            font-weight: 700;
            display: block;
            margin-bottom: 3px;
            color: var(--text);
        }

        .ir span {
            font-size: 12.5px;
            color: var(--muted);
            line-height: 1.55;
        }

        .footnote {
            margin-top: 28px;
            font-size: 12px;
            color: var(--muted2);
            text-align: center;
            line-height: 1.6;
            animation: up 0.4s 0.38s ease both;
        }

        .footnote a {
            color: var(--muted);
            text-decoration: none;
            border-bottom: 1px solid var(--border);
        }

        #confetti {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 9999;
            width: 100%;
            height: 100%;
        }

.ticket-top {
    position: relative;
    padding: 0 0 22px;   /* remove top padding — image fills it */
    overflow: hidden;
}

.ticket-hero-img {
    width: 100%;
    height: 180px;          /* adjust to taste */
    object-fit: cover;
    object-position: center top;  /* show the top of your 9:16 image */
    display: block;
    margin-bottom: 18px;
}

/* keep the text below the image readable */
.ticket-top .t-eyebrow,
.ticket-top .t-code,
.ticket-top .t-expiry {
    position: relative;
    z-index: 1;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;       /* stick to left */
    background: #ffffff;
    border: 1.5px solid #25D366;
    border-radius: 12px;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #128C7E;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 4px;
    transition: transform .14s, box-shadow .14s, background .14s;
}

.share-btn:active {
    transform: scale(0.97);
    background: #f0fff4;
    box-shadow: 0 1px 6px rgba(37, 211, 102, 0.15);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to { --angle: 360deg; }
}

.input-glow-wrap {
    border-radius: 15px;
    padding: 2px;
    background: conic-gradient(
        from var(--angle),
        #1565C0, #38A13D, #7ECEF8, #1565C0
    );
    animation: rotateBorder 2.5s linear infinite;
    margin-bottom: 12px;
}

.name-input {
    width: 100%;
    background: var(--surface);
    border: none;                  /* border now handled by wrapper */
    border-radius: 13px;           /* 1px less than wrapper */
    padding: 17px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    outline: none;
    caret-color: var(--blue);
    transition: background .18s;
    margin-bottom: 0;              /* moved to wrapper */
}

/* stop animation on focus, show solid blue */
.name-input:focus {
    background: #ffffff;
}

.name-input:focus + * ,
.input-glow-wrap:has(.name-input:focus) {
    animation-play-state: paused;
    background: var(--blue);
}

.s2-hero {
    position: relative;
    overflow: hidden; /* clips clouds that bleed out */
}

.s2-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    opacity: 0.55;
    filter: drop-shadow(0 2px 8px rgba(100, 200, 240, 0.3));
}

.c1 { width: 140px; top: -10px; left: 10px; top:60px; animation: floatCloud 5s ease-in-out infinite; }
.c2 { width: 100px; top: 10px; right: 10px;  animation: floatCloud 6s ease-in-out 1.5s infinite; }
.c3 { width: 120px; bottom: 20px; right: -10px; animation: floatCloud 7s ease-in-out 3s infinite; }

@keyframes floatCloud {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

/* make all s2-hero content sit above clouds */
.s2-hero > *:not(.s2-clouds) {
    position: relative;
    z-index: 1;
}

.loc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.loc-popup-box {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 20px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.loc-popup-icon { font-size: 40px; margin-bottom: 10px; }

.loc-popup-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.loc-popup-msg {
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.loc-popup-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-btn-allow {
    background: linear-gradient(135deg, #0A84FF, #0060df);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.loc-btn-close {
    background: #f2f2f7;
    color: #444;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}