@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brown: #2e2019;
    --brown-soft: #4b3428;
    --brown-card: #201610;
    --brown-card-dark: #140d0a;
    --gold: #c5a059;
    --gold-light: #f7e7c4;
    --gold-gradient: linear-gradient(135deg, #dfba73 0%, #c5a059 50%, #9e7a36 100%);
    --ink: #241a16;
    --white: #fff;
    --warm-white: #fbf9f6;
    --beige: #f3ece3;
    --border: #e7ded4;
    --muted: #746b65;
    --error: #8d2f23;
    --success: #2b7a4b;
    --radius-card: 16px;
    --radius-button: 14px;
    --shadow-soft: 0 12px 34px rgba(46, 32, 25, .055);
    --shadow-card: 0 20px 48px -10px rgba(32, 22, 16, 0.45);
    --font-main: "Playfair Display", "Calisto MT", Georgia, serif;
    --font-sub: "Alexandria", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --serif: var(--font-main);
    --sans: var(--font-sub);
}

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

html {
    color-scheme: light;
}

body {
    min-width: 320px;
    margin: 0;
    background: #f6f3ef;
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font: inherit;
    font-family: inherit;
}

button {
    color: inherit;
}

.noscript {
    padding: .75rem 1rem;
    background: var(--brown);
    color: var(--white);
    text-align: center;
}

.app-shell {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--white);
}

/* Header */
.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 2rem, 1180px);
    height: 84px;
    margin: 0 auto;
}

.brand-link {
    display: block;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 92px;
    height: auto;
    transition: transform 250ms ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.header-progress {
    display: flex;
    align-items: center;
    flex: 1;
    gap: .85rem;
    max-width: 600px;
    margin-left: 1.25rem;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--border);
}

.progress-track span {
    display: block;
    width: 33.33%;
    height: 100%;
    border-radius: inherit;
    background: var(--brown);
    transition: width 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-count {
    min-width: 48px;
    color: var(--muted);
    font-size: .74rem;
    letter-spacing: .04em;
    font-weight: 600;
}

.header-nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-card-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--brown);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    transition: all 200ms ease;
}

.header-card-btn:hover {
    border-color: var(--brown);
    background: var(--beige);
    transform: translateY(-1px);
}

.landing-existing-member {
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: .85rem;
}

.landing-existing-member a {
    color: var(--brown);
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease;
}

.landing-existing-member a:hover {
    color: var(--brown-soft);
    text-decoration: none;
}

/* Screens */
.screen {
    width: min(100% - 2rem, 1180px);
    min-height: calc(100svh - 84px);
    margin: 0 auto;
    padding: 2rem 0 3.5rem;
}

.screen.is-active {
    animation: enter 380ms ease both;
}

@keyframes enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    margin: 0 0 .9rem;
    color: var(--brown-soft);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}

h1 { font-size: clamp(3.2rem, 11vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 7vw, 4.4rem); }
h3 { font-size: clamp(1.8rem, 5.5vw, 3.2rem); }

p { line-height: 1.6; }

/* Buttons */
.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: .85rem 1.6rem;
    border: 0;
    border-radius: var(--radius-button);
    cursor: pointer;
    font-weight: 600;
    transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
    text-decoration: none;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:active:not(:disabled) {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.button-primary {
    background: var(--brown);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(46, 32, 25, .12);
}

.button-primary:hover:not(:disabled) {
    background: var(--brown-soft);
}

/* Landing CTA Animated Glow Border */
.landing-screen .button-primary {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: visible;
}

.landing-screen .button-primary::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: -2px;
    padding: 2px;
    border-radius: calc(var(--radius-button) + 2px);
    pointer-events: none;
    background: conic-gradient(from var(--landing-cta-outline-angle), transparent 0 244deg, rgba(188, 140, 92, .72) 260deg, rgba(247, 216, 177, .95) 278deg, rgba(255, 248, 232, 1) 300deg, rgba(247, 216, 177, .95) 322deg, rgba(188, 140, 92, .72) 340deg, transparent 354deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 4px rgba(255, 244, 225, .5));
    animation: landing-cta-outline 2.6s linear infinite;
}

.landing-screen .button-primary:hover::before,
.landing-screen .button-primary:focus-visible::before {
    animation-play-state: paused;
    filter: none;
}

@property --landing-cta-outline-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes landing-cta-outline {
    to { --landing-cta-outline-angle: 1turn; }
}

.button:focus-visible,
.back-button:focus-visible,
.option-card:has(input:focus-visible),
input:focus-visible {
    outline: 3px solid rgba(75, 52, 40, .35);
    outline-offset: 3px;
}

/* Landing Screen */
.landing-screen {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1.5rem;
    align-content: start;
    padding: 1rem 0 0;
}

.landing-strapline,
.landing-strapline-mobile,
.landing-strapline-desktop {
    display: none;
}

.landing-copy {
    position: relative;
    z-index: 2;
}

.landing-subhead {
    max-width: 32rem;
    margin: 1.2rem 0 1.6rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.landing-subhead strong {
    color: var(--brown-soft);
}

.landing-copy .button {
    width: 100%;
    min-height: 56px;
    font-size: .88rem;
}

.landing-visual {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.landing-visual picture,
.landing-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* Question Screens */
.question-screen {
    max-width: 1120px;
}

.question-form,
.question-form fieldset {
    min-height: 100%;
}

.question-form {
    display: flex;
    flex-direction: column;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.question-screen h2 {
    max-width: 900px;
    margin-bottom: 1.75rem;
}

.option-grid {
    display: grid;
    gap: .85rem;
}

.option-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
    position: relative;
    display: flex;
    min-height: 110px;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--white);
    cursor: pointer;
    transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.option-card:hover {
    border-color: #cab8a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 32, 25, .04);
}

.option-card:has(input:checked) {
    border-color: var(--brown);
    background: #fdfbf9;
    box-shadow: 0 8px 24px rgba(46, 32, 25, .07);
}

.option-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.option-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 18px;
    height: 18px;
    border: 1px solid #b3a499;
    border-radius: 50%;
    transition: all 200ms ease;
}

.option-card:has(input:checked) .option-check {
    border: 5px solid var(--brown);
    background: var(--white);
}

.option-icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: var(--beige);
    color: var(--brown-soft);
    transition: background-color 200ms ease, color 200ms ease;
}

.option-card:hover .option-icon {
    background: #ebe2d6;
}

.option-card:has(input:checked) .option-icon {
    background: var(--brown);
    color: var(--white);
}

.option-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.option-text {
    display: grid;
    gap: .25rem;
    padding-right: 1.25rem;
}

.option-text strong {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--brown);
}

.option-text small {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.35;
}

.screen-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
}

.screen-actions .button {
    min-width: 142px;
}

.back-button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.back-button:hover {
    background: var(--beige);
    border-color: #cab8a8;
}

.back-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

/* Calculating Interstitial */
.calculating-screen {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    min-height: calc(100svh - 120px);
}

.calculating-screen h2 {
    max-width: 680px;
    margin-bottom: .8rem;
}

.calculating-screen > p:last-child {
    max-width: 480px;
    color: var(--muted);
    font-size: 1.05rem;
}

.calculating-mark {
    display: flex;
    gap: .55rem;
    margin-bottom: 2rem;
}

.calculating-mark span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--brown);
    animation: pulse 900ms ease-in-out infinite alternate;
}

.calculating-mark span:nth-child(2) { animation-delay: 180ms; }
.calculating-mark span:nth-child(3) { animation-delay: 360ms; }

@keyframes pulse {
    to { opacity: .25; transform: translateY(-8px); }
}

/* Claim / Lead Capture Screen */
.claim-layout {
    display: grid;
    gap: 2.25rem;
    align-items: start;
}

.claim-intro > p:last-child {
    color: var(--muted);
    font-size: 1.05rem;
}

.claim-perk-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: .85rem 1.25rem;
    background: #fbf6ee;
    border: 1px solid #e5d5c5;
    border-radius: var(--radius-card);
}

.claim-perk-badge .perk-icon {
    font-size: 1.8rem;
}

.claim-perk-badge .perk-text strong {
    display: block;
    color: var(--brown);
    font-size: .95rem;
}

.claim-perk-badge .perk-text small {
    color: var(--muted);
    font-size: .8rem;
}

.claim-form {
    width: 100%;
    max-width: 620px;
}

.claim-form > label {
    display: block;
    margin: 1.1rem 0 .45rem;
    font-size: .84rem;
    font-weight: 650;
    color: var(--brown);
}

.label-hint {
    font-size: .76rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: .35rem;
}

.input-wrap {
    position: relative;
}

.input-wrap > span {
    position: absolute;
    top: 50%;
    left: 1rem;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--brown);
    transform: translateY(-50%);
}

.input-wrap svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.input-wrap input {
    width: 100%;
    min-height: 54px;
    padding: .8rem 1rem .8rem 3.1rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    font-size: .95rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.input-wrap input:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(46, 32, 25, .1);
}

.input-wrap input::placeholder {
    color: #a59a92;
}

.input-wrap input[aria-invalid="true"] {
    border-color: var(--error);
}

.form-message {
    min-height: 1.4rem;
    margin: .8rem 0 -.35rem;
    color: var(--error);
    font-size: .84rem;
}

.claim-form .screen-actions .button {
    flex: 1;
}

/* ========================================================
   THANKS SCREEN & DIGITAL LOYALTY CARD (LUXURY APPLE WALLET)
   ======================================================== */
.thanks-screen {
    display: grid;
    align-content: center;
    justify-items: center;
    grid-auto-rows: max-content;
    text-align: center;
    padding: 3rem 1.5rem 5rem;
    border-radius: 28px;
    background: radial-gradient(circle at 50% 10%, #2a1b13 0%, #160e0a 60%, #0b0604 100%);
    color: #fcf9f5;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(223, 186, 115, 0.2);
}

.thanks-screen .eyebrow {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0 0 1.25rem;
    color: #dfba73;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .38em;
    text-transform: uppercase;
}

.thanks-screen .eyebrow::before,
.thanks-screen .eyebrow::after {
    width: clamp(35px, 8vw, 76px);
    height: 1px;
    content: '';
    background: rgba(223, 186, 115, 0.4);
}

.thanks-screen h2 {
    max-width: 18ch;
    color: #ffffff;
    font-family: var(--serif);
    font-size: clamp(2.3rem, 6.5vw, 4.2rem);
    line-height: 1.05;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.thanks-drink-wrap {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
}

.thanks-drink {
    display: inline-flex;
    width: fit-content;
    max-width: calc(100vw - 2rem);
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 0;
    padding: .85rem 2.2rem;
    border: 1.5px solid rgba(223, 186, 115, 0.5);
    border-radius: 999px;
    background: rgba(223, 186, 115, 0.12);
    color: #f8e5bd;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 4.8vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(223, 186, 115, .2);
}

.thanks-drink svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: #dfba73;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.thanks-drink-desc {
    max-width: 32rem;
    margin: 0;
    color: #c9b9ac;
    font-size: .95rem;
    font-style: italic;
}

.thanks-reward {
    display: grid;
    justify-items: center;
    gap: .4rem;
    margin: 2.2rem 0 1.5rem;
}

.thanks-reward-prefix {
    margin: 0;
    color: #dfba73;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.thanks-discount {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 5.2vw, 2.9rem);
    color: #ffffff;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.thanks-reward-sub {
    margin: .2rem 0 0;
    color: #cbbbae;
    font-size: 1.05rem;
}

.thanks-reward-sub strong {
    color: #dfba73;
}

/* ========================================================
   THE OBSIDIAN & GOLD VIP LOYALTY PASS (APPLE WALLET PASS)
   ======================================================== */
.loyalty-card-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 1.5rem auto 2.5rem;
    perspective: 1200px;
}

.loyalty-card {
    position: relative;
    border-radius: 24px;
    padding: 2.2rem 1.85rem 1.95rem;
    background: 
        radial-gradient(circle at 90% 0%, rgba(223, 186, 115, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 10% 100%, rgba(223, 186, 115, 0.08) 0%, transparent 40%),
        linear-gradient(155deg, #221610 0%, #150d09 55%, #0b0604 100%);
    color: #ffffff;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(223, 186, 115, 0.15);
    border: 1.5px solid rgba(223, 186, 115, 0.45);
    overflow: hidden;
    text-align: left;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 400ms ease;
}

/* Top Holographic Shine Line */
.loyalty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), #dfba73, transparent);
    z-index: 2;
}

.loyalty-card.is-activated {
    border-color: rgba(223, 186, 115, 0.85);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 45px rgba(223, 186, 115, 0.35);
    animation: cardGlow 1.2s ease forwards;
}

@keyframes cardGlow {
    0% { transform: scale(0.98); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Card Header */
.loyalty-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(223, 186, 115, 0.18);
}

.loyalty-brand {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.loyalty-logo {
    width: 90px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .98;
}

.loyalty-subbrand {
    font-size: .65rem;
    letter-spacing: .28em;
    color: #dfba73;
    font-weight: 700;
}

.loyalty-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(223, 186, 115, 0.12);
    border: 1px solid rgba(223, 186, 115, 0.35);
    font-size: .74rem;
    font-weight: 700;
    color: #f7e7c4;
    letter-spacing: .02em;
}

.loyalty-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dfba73;
    box-shadow: 0 0 10px #dfba73;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(0.85); }
}

.loyalty-status-badge.active {
    background: rgba(43, 122, 75, 0.25);
    border-color: rgba(64, 185, 115, 0.5);
    color: #79f2af;
}

.loyalty-status-badge.active .status-dot {
    background: #40b973;
    box-shadow: 0 0 12px #40b973;
}

/* Cardholder Info */
.loyalty-card-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 1.4rem 0 1.5rem;
}

.member-label {
    display: block;
    font-family: var(--sans);
    font-size: .66rem;
    color: #a49488;
    letter-spacing: .2em;
    font-weight: 700;
    margin-bottom: .35rem;
}

.member-label {
    font-family: var(--sans);
    font-size: .66rem;
    color: #a49488;
    letter-spacing: .16em;
    font-weight: 700;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.member-name {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: .02em;
}

.member-pass {
    display: inline-block;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 700;
    color: #dfba73;
    letter-spacing: .12em;
    background: rgba(223, 186, 115, 0.1);
    padding: .25rem .65rem;
    border-radius: 8px;
    border: 1px solid rgba(223, 186, 115, 0.25);
}

/* Stamps Section */
.loyalty-stamps-section {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(223, 186, 115, 0.22);
    border-radius: 18px;
    padding: 1.25rem 1.15rem 1.15rem;
    margin-bottom: 1.35rem;
    backdrop-filter: blur(10px);
}

.stamps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
    padding: 0 .2rem;
}

.stamps-title {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .22em;
    color: #dfba73;
    text-transform: uppercase;
}

.stamps-count {
    font-size: .76rem;
    color: #ded1c7;
    font-weight: 600;
}

/* 5-Stamp Grid (Zero Overflow, Perfectly Balanced) */
.stamps-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .35rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.stamp-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: .75rem .15rem .65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.stamp-slot .stamp-badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(223, 186, 115, 0.3);
    margin-bottom: .4rem;
    transition: all 300ms ease;
    flex-shrink: 0;
}

.stamp-slot .stamp-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.stamp-slot .stamp-number {
    display: none;
}

.stamp-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0 .1rem;
    overflow: hidden;
}

.stamp-meta strong {
    font-family: var(--sans);
    font-size: clamp(0.55rem, 1.8vw, 0.68rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stamp-meta small {
    font-size: clamp(0.5rem, 1.5vw, 0.58rem);
    color: #b5a498;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stamp-status-tag {
    margin-top: .4rem;
    display: inline-block;
    padding: .15rem .35rem;
    border-radius: 99px;
    font-size: .54rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(255, 255, 255, 0.08);
    color: #cbbbae;
    white-space: nowrap;
}

/* Stamp 1: Unlocked Golden State */
.stamp-slot.is-unlocked {
    background: linear-gradient(180deg, rgba(223, 186, 115, 0.22) 0%, rgba(197, 160, 89, 0.08) 100%);
    border: 1.5px solid #dfba73;
    box-shadow: 0 0 18px rgba(223, 186, 115, 0.25);
}

.stamp-slot.is-unlocked .stamp-badge {
    background: linear-gradient(135deg, #f7e6bb 0%, #dfba73 50%, #b88a38 100%);
    border: none;
    box-shadow: 0 0 16px rgba(223, 186, 115, 0.5);
}

.stamp-slot.is-unlocked .stamp-status-tag {
    background: #dfba73;
    color: #170e0a;
}

/* Locked Stamps: Clean Frosted Appearance (No messy blur!) */
.stamp-slot.is-locked {
    opacity: .85;
}

.stamp-slot.is-locked .stamp-badge {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(223, 186, 115, 0.2);
}

.stamp-slot.is-locked .stamp-meta strong {
    color: #e2d7ce;
}

.stamp-slot.is-locked .stamp-meta small {
    color: #8c7d72;
}

.stamp-slot.is-locked .stamp-status-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #9e8e82;
}

/* Revealed State Upon Activation */
.stamp-slot.is-locked.is-revealed {
    opacity: 1;
    animation: stampReveal 500ms ease forwards;
}

.stamp-slot.is-locked.is-revealed .stamp-badge {
    background: rgba(223, 186, 115, 0.18);
    border-color: #dfba73;
}

.stamp-slot.is-locked.is-revealed .stamp-status-tag {
    background: rgba(223, 186, 115, 0.25);
    color: #f7e7c4;
}

@keyframes stampReveal {
    0% { transform: scale(0.92); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Card Activation Box & Radiant Gold Button */
.loyalty-card-activation {
    text-align: center;
    padding: .5rem 0 .25rem;
}

.activation-teaser {
    margin: 0 0 1.15rem;
    font-size: .88rem;
    color: #e5d7cc;
    line-height: 1.45;
    background: rgba(223, 186, 115, 0.08);
    border: 1px solid rgba(223, 186, 115, 0.2);
    padding: .75rem 1rem;
    border-radius: 12px;
}

.lock-pulse {
    display: inline-block;
    animation: lockHop 1.8s ease infinite;
}

@keyframes lockHop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.button-activate {
    width: 100%;
    min-height: 56px;
    background: linear-gradient(135deg, #f7e6bb 0%, #dfba73 50%, #c49641 100%);
    color: #170e0a;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .03em;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(223, 186, 115, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.button-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(223, 186, 115, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, #fff0c9 0%, #ebd08d 50%, #d4a54c 100%);
}

.btn-sparkle {
    font-size: 1.25rem;
}

/* Barcode Section (After Activation) */
.loyalty-card-barcode-wrap {
    padding-top: 1rem;
    border-top: 1px dashed rgba(223, 186, 115, 0.3);
    animation: enter 450ms ease forwards;
}

.barcode-visual {
    width: 100%;
    height: 56px;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.barcode-bars {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #111 0px,
        #111 2px,
        transparent 2px,
        transparent 4px,
        #111 4px,
        #111 7px,
        transparent 7px,
        transparent 8px,
        #111 8px,
        #111 10px,
        transparent 10px,
        transparent 13px,
        #111 13px,
        #111 16px,
        transparent 16px,
        transparent 18px
    );
}

.barcode-code {
    text-align: center;
    margin-top: .5rem;
    font-family: 'SF Mono', monospace;
    font-size: .88rem;
    letter-spacing: .25em;
    color: #dfba73;
    font-weight: 700;
}

.card-wallet-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
}

.wallet-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(223, 186, 115, 0.45);
    background: rgba(223, 186, 115, 0.15);
    color: #f7e7c4;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 200ms ease;
}

.wallet-btn:hover {
    background: rgba(223, 186, 115, 0.28);
    border-color: #dfba73;
    transform: translateY(-1px);
}

.wallet-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.wallet-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.wallet-btn svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Redemption Instructions (Dark Luxury Glassmorphic) */
.thanks-instructions {
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    gap: .85rem;
    text-align: left;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(223, 186, 115, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.inst-num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7e6bb 0%, #dfba73 100%);
    color: #170e0a;
    font-size: .88rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(223, 186, 115, 0.4);
}

.instruction-item p {
    margin: 0;
    font-size: .94rem;
    color: #f7ede3;
    line-height: 1.45;
}

.instruction-item p strong {
    color: #dfba73;
}

.thanks-signoff {
    margin: 2.5rem 0 0;
    color: #dfba73;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.done-button {
    margin-top: 2rem;
    padding: .35rem .85rem .5rem;
    border: 0;
    border-bottom: 1px solid rgba(223, 186, 115, 0.4);
    background: transparent;
    color: #dfba73;
    font-size: .88rem;
    letter-spacing: .25em;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease;
}

.done-button:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* Confetti Canvas */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

/* Utility */
.visually-hidden,
.sr-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

[hidden] {
    display: none !important;
}

/* Responsive Media Queries */
@media (min-width: 620px) {
    .site-header {
        width: min(100% - 4rem, 1180px);
        height: 96px;
    }
    .brand-logo { width: 108px; }
    .screen {
        width: min(100% - 4rem, 1180px);
        min-height: calc(100svh - 96px);
        padding: 2.5rem 0 4rem;
    }
}

@media (min-width: 900px) {
    .app-shell {
        width: calc(100% - 2rem);
        min-height: calc(100svh - 2rem);
        margin: 1rem auto;
        border: 1px solid rgba(231, 222, 212, .85);
        border-radius: 8px;
        box-shadow: var(--shadow-soft);
    }
    .site-header { height: 96px; }
    .brand-logo { width: 112px; }
    .screen { min-height: calc(100svh - 8.15rem); padding: 2rem 0 3rem; }
    
    .app-shell:has(.header-progress[hidden]) {
        width: 100%;
        min-height: 100svh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .app-shell:has(.header-progress[hidden]) .site-header {
        width: min(calc(100% - 8rem), 1980px);
        height: 170px;
    }
    .app-shell:has(.header-progress[hidden]) .brand-logo { width: 190px; }
    
    .landing-screen {
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        margin: -170px 0 0;
        padding: 170px 6vw 0;
        display: flex;
        align-items: center;
        background-image: url('../images/banner-desktop.webp');
        background-position: center;
        background-size: cover;
    }
    .landing-strapline {
        position: absolute;
        top: 84px;
        right: 6vw;
        display: block;
        margin: 0;
        color: var(--brown-soft);
        font-size: .74rem;
        font-weight: 700;
        letter-spacing: .32em;
    }
    .landing-strapline-desktop { display: inline; }
    .landing-copy {
        width: 48%;
        align-self: center;
    }
    .landing-copy h1 {
        font-size: clamp(4.6rem, 7.2vw, 8rem);
        line-height: .92;
    }
    .landing-subhead {
        font-size: 1.15rem;
        margin: 1.5rem 0 2rem;
    }
    .landing-copy .button {
        width: clamp(280px, 28vw, 420px);
        min-height: 64px;
        font-size: 1.1rem;
    }
    .landing-visual { display: none; }
    
    .option-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .option-card {
        min-height: 175px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    .option-text { padding: 0; }
    .option-text strong { font-size: 1.32rem; }
    .question-form { justify-content: center; }
    .question-screen h2 { margin-bottom: 2.2rem; }
    
    .claim-screen { display: grid; align-content: center; }
    .claim-layout { grid-template-columns: .95fr 1.05fr; gap: 5rem; align-items: center; }
}

@media (max-width: 619px) {
    .site-header:has(.header-progress[hidden]) {
        height: 112px;
        justify-content: center;
    }
    .site-header:has(.header-progress[hidden]) .brand-logo {
        width: 160px;
        transform: translateY(3.8rem);
    }
    .screen.landing-screen {
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        margin: -112px 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        padding: 112px 1.25rem 0;
        background-image: url('../images/banner-mobile.webp');
        background-position: center -8rem;
        background-size: auto 125%;
        background-repeat: no-repeat;
        background-color: #f6f1ea;
    }
    .site-header { height: 76px; }
    .brand-logo { width: 84px; }
    .screen { min-height: calc(100svh - 76px); padding-top: 1.5rem; }
    
    .option-grid-4 .option-card {
        min-height: 140px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: .65rem;
        padding: .85rem;
    }
    .option-grid-4 .option-text { padding: 0; }
    .option-grid-4 .option-text strong { font-size: 1rem; }
    
    .landing-strapline {
        display: block;
        position: absolute;
        z-index: 2;
        top: 12.8rem;
        left: 0;
        width: 100%;
        margin: 0;
        color: var(--brown-soft);
        font-size: clamp(.64rem, 2.7vw, .74rem);
        font-weight: 700;
        letter-spacing: .2em;
        text-align: center;
    }
    .landing-strapline::after {
        display: block;
        width: 5rem;
        height: 2px;
        margin: 1.2rem auto 0;
        content: '';
        background: #a96f43;
    }
    .landing-strapline-mobile { display: inline; }
    .landing-copy {
        margin-top: 9.8rem;
        text-align: center;
    }
    .landing-copy h1 {
        font-size: clamp(1.9rem, 8.5vw, 2.3rem);
        line-height: 1.02;
    }
    .landing-copy h1 br { display: none; }
    .landing-subhead {
        font-size: .92rem;
        margin: .9rem 0 1.2rem;
    }
    .landing-copy .button {
        width: 82vw;
        min-height: 56px;
    }
    .landing-visual { display: none; }
    
    .loyalty-card {
        padding: 1.25rem .95rem !important;
        border-radius: 20px !important;
    }
    .loyalty-stamps-section {
        padding: .85rem .75rem !important;
        border-radius: 16px !important;
    }
    .stamps-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: .25rem;
    }
    .stamp-slot {
        padding: .5rem .1rem .4rem;
    }
    .stamp-slot .stamp-badge {
        width: 32px;
        height: 32px;
    }
    .stamp-slot .stamp-icon {
        font-size: 1rem;
    }
    .stamp-meta strong {
        font-size: .65rem;
    }
    .stamp-meta small {
        font-size: .56rem;
    }
    .stamp-status-tag {
        font-size: .55rem;
        padding: .12rem .3rem;
    }
}

/* ========================================================
   Already Registered Modal Pop-Up (3-Second Direct)
   ======================================================== */
.already-registered-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: modalFadeIn 250ms ease forwards;
}

.already-registered-modal[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 4, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-card {
    position: relative;
    width: min(100%, 420px);
    background: radial-gradient(circle at 50% 0%, #2f1e16 0%, #1a100b 70%, #120a07 100%);
    border: 1.5px solid #dfba73;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(223, 186, 115, 0.25);
    border-radius: 22px;
    padding: 2rem 1.65rem 1.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalPopIn 320ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(223, 186, 115, 0.15);
    border: 2px solid #dfba73;
    display: grid;
    place-items: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 25px rgba(223, 186, 115, 0.4);
}

.modal-tag {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    border-radius: 99px;
    background: rgba(223, 186, 115, 0.14);
    border: 1px solid rgba(223, 186, 115, 0.35);
    color: #dfba73;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .75rem;
    color: #fff;
}

.modal-title-highlight {
    display: block;
    color: #dfba73;
    background: linear-gradient(135deg, #dfba73 0%, #f7e7c4 50%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(223, 186, 115, 0.35));
}

.modal-desc {
    font-size: .88rem;
    color: #cfbeaf;
    line-height: 1.45;
    margin: 0 0 1.35rem;
}

.modal-timer-box {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(223, 186, 115, 0.2);
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.timer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .84rem;
    color: #f7e7c4;
    font-weight: 600;
    margin-bottom: .55rem;
}

.timer-label strong {
    color: #dfba73;
    font-size: 1.1rem;
}

.timer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #40b973;
    box-shadow: 0 0 8px #40b973;
    animation: liveBlink 1s infinite ease-in-out;
}

.timer-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.timer-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient, linear-gradient(135deg, #dfba73 0%, #c5a059 100%));
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(223, 186, 115, 0.6);
    transition: width 50ms linear;
}

.btn-modal-direct {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    background: var(--gold-gradient, linear-gradient(135deg, #dfba73 0%, #c5a059 100%));
    color: #170e0a;
    font-size: .96rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(223, 186, 115, 0.4);
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn-modal-direct:active {
    transform: scale(0.98);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.88) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

