/* ---------- Basics ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

:root {
    --yellow: #ffe14d;
    --gold: #ffb400;
    --black: #111111;
    --gray: #1c1c1c;
    --white: #ffffff;
    /* How much of the paint shows below the hero when the page first loads. */
    --drip-show: 150px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: clip;
    font-family: 'Rubik', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
}

section {
    padding: 100px 24px;
}

h2 {
    font-family: 'Bungee', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 48px;
}

/* ---------- Header ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 10;
}

header a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

header .logo {
    font-family: 'Bungee', sans-serif;
    font-size: 1.4rem;
    color: var(--yellow);
}

/* ---------- Hero ---------- */
#hero {
    position: relative;
    z-index: 1;
    /* Stops short of the bottom of the screen so the paint is showing from the start. */
    min-height: calc(100vh - 68px - var(--drip-show));
    min-height: calc(100svh - 68px - var(--drip-show));
    padding-top: 32px;
    padding-bottom: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--yellow), var(--gold));
}

/* Drawn by drips.js, hanging off the bottom of the hero. */
#drips {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* Shirt section content sits above the drips. */
#shirt > * {
    position: relative;
    z-index: 2;
}

#hero img {
    width: 100%;
    max-width: 700px;
    max-width: min(700px, 52svh);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #231f20;
    margin-bottom: 32px;
    border: 6px solid var(--white);
    box-shadow: 12px 12px 0 var(--black);
}

/* Row of bouncing arrows hinting there's more below. */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    display: flex;
    gap: min(40px, 7.5vw);
    padding: 8px;
}

/* Each span is one down arrow: a shaft (::before) and a chevron head (::after). */
.scroll-cue span {
    position: relative;
    width: 14px;
    height: 26px;
    filter: drop-shadow(2px 2px 0 var(--black));
    animation: arrow-bounce 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s);
}

.scroll-cue span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 22px;
    background: var(--yellow);
    border-radius: 2px;
    transform: translateX(-50%);
}

.scroll-cue span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 11px;
    height: 11px;
    border-right: 4px solid var(--yellow);
    border-bottom: 4px solid var(--yellow);
    transform: translateX(-50%) rotate(45deg);
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue span {
        animation: none;
    }
}

#hero h1 {
    font-family: 'Bungee', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--yellow);
    text-shadow: 5px 5px 0 var(--black);
}

#hero p {
    font-size: 1.3rem;
    margin: 12px 0 28px;
}

/* ---------- Button ---------- */
.btn {
    display: inline-block;
    font-family: 'Bungee', sans-serif;
    font-size: 1.2rem;
    padding: 16px 36px;
    background: var(--yellow);
    color: var(--white);
    text-decoration: none;
    border: 4px solid var(--black);
    box-shadow: 6px 6px 0 var(--black);
    transition: transform 0.1s, box-shadow 0.1s;
}

@media (hover: hover) {
    .btn:hover {
        transform: translate(3px, 3px);
        box-shadow: 3px 3px 0 var(--black);
    }
}

.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--black);
}

/* Every few seconds, buy buttons move to draw the eye. Each one has its own move. */
.btn-attention {
    animation: btn-wiggle 3.5s ease-in-out infinite;
}

.btn-attention:hover,
.btn-attention:active,
.btn-attention:focus-visible {
    animation: none;
}

/* Hero Buy Now: quick left-right wiggle. */
@keyframes btn-wiggle {
    0%, 78%, 100% {
        transform: rotate(0) scale(1);
    }
    82% {
        transform: rotate(-4deg) scale(1.06);
    }
    86% {
        transform: rotate(4deg) scale(1.06);
    }
    90% {
        transform: rotate(-3deg) scale(1.04);
    }
    94% {
        transform: rotate(2deg) scale(1.02);
    }
}

/* Shirt card Get Yours: hops up and lands with a little squash. */
.btn-hop {
    animation-name: btn-hop;
    animation-duration: 3s;
}

@keyframes btn-hop {
    0%, 75%, 100% {
        transform: translateY(0) scale(1, 1);
    }
    80% {
        transform: translateY(2px) scale(1.04, 0.94);
    }
    86% {
        transform: translateY(-14px) scale(0.97, 1.04);
    }
    92% {
        transform: translateY(0) scale(1.04, 0.95);
    }
    96% {
        transform: translateY(-4px) scale(1, 1);
    }
}

/* Order card Buy Now: a glint of light sweeps across it. */
.btn-attention.btn-shine {
    position: relative;
    overflow: hidden;
    animation: none;
}

.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: btn-shine 3s ease-in-out infinite;
}

.btn-shine:hover::after,
.btn-shine:active::after {
    animation: none;
}

@keyframes btn-shine {
    0%, 60% {
        left: -60%;
    }
    85%, 100% {
        left: 130%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-attention,
    .btn-shine::after {
        animation: none;
    }
}

/* ---------- Shirt section ---------- */
#shirt {
    /* Close enough that the longest drips run down past the heading. */
    padding-top: 120px;
    background: var(--black);
}

#shirt h2 {
    color: var(--yellow);
}

.shirt-card {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: var(--gray);
    border: 4px solid var(--yellow);
    box-shadow: 12px 12px 0 var(--yellow);
}

.shirt-card + .shirt-card {
    margin-top: 64px;
}

.shirt-mockup {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    background: linear-gradient(135deg, var(--yellow), var(--gold));
    border: 4px solid var(--black);
}

.shirt-mockup img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(8px 8px 0 var(--black));
}

.shirt-info {
    flex: 1;
    min-width: 260px;
}

.shirt-info h3 {
    font-family: 'Bungee', sans-serif;
    font-size: 1.8rem;
    color: var(--yellow);
}

.shirt-info .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--yellow);
    margin: 8px 0 16px;
}

.shirt-info p {
    margin-bottom: 14px;
}

.shirt-info .sizes {
    font-weight: 700;
    margin-bottom: 28px;
}

/* ---------- Story section ---------- */
#story {
    background: var(--yellow);
    color: var(--black);
    text-align: center;
}

#story h2 {
    color: var(--black);
}

#story p {
    max-width: 650px;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}

.story-photo {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--black);
    box-shadow: 8px 8px 0 var(--black);
}

/* ---------- Footer ---------- */
footer {
    padding: 48px 24px;
    background: var(--black);
    text-align: center;
    border-top: 4px solid var(--yellow);
}

footer .logo {
    font-family: 'Bungee', sans-serif;
    font-size: 1.6rem;
    color: var(--yellow);
    margin-bottom: 12px;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--yellow);
}

footer .small {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 16px;
}

/* ---------- Order section ---------- */
#order {
    background: var(--black);
}

#order h2 {
    color: var(--yellow);
    text-shadow: 4px 4px 0 var(--black);
}

.order-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 32px;
    text-align: center;
    background: var(--gray);
    border: 4px solid var(--yellow);
    box-shadow: 12px 12px 0 var(--yellow);
}

.order-card h3 {
    font-family: 'Bungee', sans-serif;
    font-size: 1.6rem;
    color: var(--yellow);
}

.order-card .price {
    font-family: 'Bungee', sans-serif;
    font-size: 3rem;
    color: var(--yellow);
    line-height: 1.2;
    margin: 8px 0 16px;
}

.order-card .sizes {
    font-weight: 700;
    letter-spacing: 1px;
}

.order-card .note {
    opacity: 0.7;
    margin-bottom: 28px;
}

.btn-block {
    display: block;
    width: 100%;
}

.order-perks {
    list-style: none;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px dashed var(--black);
    text-align: left;
    display: inline-block;
}

.order-perks li {
    margin-bottom: 8px;
}

.order-perks li::before {
    content: "✓";
    color: var(--yellow);
    font-weight: 700;
    margin-right: 10px;
}

/* ---------- Order page ---------- */
#checkout {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--yellow), var(--gold));
}

#checkout h2 {
    color: var(--yellow);
    text-shadow: 4px 4px 0 var(--black);
}

.checkout-card {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: var(--gray);
    border: 4px solid var(--black);
    box-shadow: 12px 12px 0 var(--black);
}

.checkout-card img {
    flex: 1;
    min-width: 260px;
    max-width: 440px;
    width: 100%;
}

.checkout-options {
    flex: 1;
    min-width: 260px;
}

.checkout-options h3 {
    font-family: 'Bungee', sans-serif;
    font-size: 1.8rem;
    color: var(--yellow);
}

.checkout-options .price {
    font-family: 'Bungee', sans-serif;
    font-size: 2.4rem;
    color: var(--yellow);
    line-height: 1.2;
    margin-bottom: 24px;
}

.checkout-options fieldset {
    border: none;
    margin-bottom: 24px;
}

.checkout-options legend {
    font-weight: 700;
    margin-bottom: 10px;
}

.size-group {
    margin: 14px 0 8px;
    font-size: 0.9rem;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-options label {
    position: relative;
}

.size-options input {
    position: absolute;
    opacity: 0;
}

.size-options span {
    display: block;
    min-width: 56px;
    padding: 10px 14px;
    text-align: center;
    font-family: 'Bungee', sans-serif;
    border: 3px solid var(--white);
    cursor: pointer;
}

.size-options input:checked + span {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
    box-shadow: 4px 4px 0 var(--yellow);
}

.size-options input:focus-visible + span {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.qty {
    display: flex;
}

.qty button,
.qty input {
    width: 52px;
    height: 48px;
    font: 700 1.3rem 'Rubik', sans-serif;
    text-align: center;
    border: 3px solid var(--white);
    background: transparent;
    color: var(--white);
}

.qty button {
    cursor: pointer;
}

.qty input {
    border-left: none;
    border-right: none;
    -moz-appearance: textfield;
}

.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 20px 0;
    margin-bottom: 24px;
    border-top: 2px dashed var(--black);
    border-bottom: 2px dashed var(--black);
}

.summary dd {
    text-align: right;
    font-weight: 700;
}

.checkout-options .btn {
    cursor: pointer;
}

.form-message {
    min-height: 1.6em;
    margin-top: 16px;
    color: var(--yellow);
    font-weight: 700;
}

/* ---------- Button burst ---------- */
.burst {
    position: fixed;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 100;
}

/* ---------- Laptops ---------- */
/* Hero sized from the screen height, so it fills the screen with the paint's waves at the bottom. */
@media (min-width: 1000px) {
    #hero {
        min-height: calc(100vh - 68px - 18px);
        min-height: calc(100svh - 68px - 18px);
    }

    #hero img {
        max-width: min(60svh, 62vw);
        margin-bottom: 3svh;
    }

    #hero h1 {
        font-size: min(12svh, 9vw);
        line-height: 1.1;
    }

    #hero p {
        font-size: 3svh;
        margin: 1.5svh 0 3svh;
    }

    #hero .btn {
        font-size: 2.6svh;
        padding: 1.8svh 4.5svh;
    }

    .scroll-cue {
        transform: translateX(-50%) scale(1.3);
        transform-origin: bottom;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
    section {
        padding: 64px 16px;
    }

    #shirt {
        padding-top: 72px;
    }

    /* Tall enough that only the tips of the paint's waves peek up from the bottom of the screen. */
    #hero {
        min-height: calc(100vh - 68px - 18px);
        min-height: calc(100svh - 68px - 18px);
        padding-top: 16px;
        padding-bottom: 64px;
    }

    /* iPhones only: Safari's bar floats over the page, so the color runs to the end of the
       screen behind it, while the arrows stay above the bar. */
    @supports (-webkit-touch-callout: none) {
        #hero {
            min-height: calc(100lvh - 68px - 18px);
        }

        .scroll-cue {
            bottom: calc(6px + 100lvh - 100svh);
        }
    }

    h2 {
        margin-bottom: 32px;
    }

    #hero img {
        border-width: 4px;
        box-shadow: 8px 8px 0 var(--black);
    }

    .shirt-card,
    .checkout-card,
    .order-card {
        gap: 28px;
        padding: 24px 20px;
        box-shadow: 8px 8px 0 var(--yellow);
    }

    .checkout-card {
        box-shadow: 8px 8px 0 var(--black);
    }

    .shirt-mockup {
        padding: 16px;
    }

    .shirt-info,
    .checkout-options,
    .checkout-card img {
        flex-basis: 100%;
        min-width: 0;
    }

    .shirt-info {
        text-align: center;
    }

    .story-photo {
        width: 160px;
        height: 160px;
    }

    .burst svg {
        top: -7px;
        width: 54px;
        height: 14px;
    }

    .size-options {
        gap: 8px;
    }

    .size-options label {
        flex: 1 1 0;
    }

    .size-options span {
        min-width: 0;
        padding: 10px 4px;
        font-size: 0.9rem;
    }
}

/* ---------- Yellow and black theme ---------- */
.btn { color: var(--black); }
#hero .btn { background: var(--black); color: var(--yellow); border-color: var(--black); box-shadow: 6px 6px 0 var(--white); }
#hero h1 { color: var(--black); text-shadow: 5px 5px 0 var(--white); }
/* A soft white 90s Memphis pattern over the yellow fade, on the first page and Get Yours. */
#hero { background: url("images/memphis.svg"), linear-gradient(135deg, var(--yellow), var(--gold)); }
#hero p { color: var(--black); font-weight: 700; }
/* Subheadline in 90s computer-screen pixel letters, with a blinking block cursor. */
#hero p { font-family: 'VT323', monospace; font-weight: 400; font-size: 2.1rem; line-height: 1.1; text-wrap: balance; max-width: 92vw; }
#hero p::after { content: ""; display: inline-block; width: 0.5em; height: 0.85em; margin-left: 0.15em; vertical-align: -0.08em; background: var(--black); animation: cursor-blink 1s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (max-width: 600px) { #hero p { font-size: 1.65rem; } }
@media (min-width: 1000px) { #hero p { font-size: 4.4svh; } }
@media (prefers-reduced-motion: reduce) { #hero p::after { animation: none; } }
#hero img { border-color: var(--black); box-shadow: 12px 12px 0 var(--white); }
.scroll-cue span { filter: none; }
.scroll-cue span::before { background: var(--black); }
.scroll-cue span::after { border-right-color: var(--black); border-bottom-color: var(--black); }
#shirt h2 { color: var(--yellow); }
#story { background: #efe6d2; }
#order { background: url("images/memphis.svg"), linear-gradient(135deg, var(--yellow), var(--gold)); }
#order h2 { color: var(--black); text-shadow: 4px 4px 0 var(--white); }
.order-card { box-shadow: 12px 12px 0 var(--black); }
#checkout h2 { color: var(--black); text-shadow: 4px 4px 0 var(--white); }
.price { color: var(--white) !important; }
.size-options input:checked + span { box-shadow: 4px 4px 0 var(--white); }
.summary, .order-perks { border-color: #555555 !important; }
@media (max-width: 600px) {
    #hero h1 { text-shadow: 3px 3px 0 var(--white); }
    #checkout h2 { text-shadow: 2px 2px 0 var(--white); }
}


/* Reward burst pieces (see burst.js). */
.burst-drop { position: absolute; border-radius: 50%; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); }
.burst-bit { position: absolute; width: 8px; height: 14px; top: -7px; outline: 1px solid rgba(0, 0, 0, 0.4); }
.burst-word { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: 'Bungee', sans-serif; font-size: 2rem; color: var(--white); -webkit-text-stroke: 2px var(--black); text-shadow: 3px 3px 0 var(--black); }
@media (max-width: 600px) { .burst-word { font-size: 1.6rem; } }

/* ---------- Limited run (see stock.js) ---------- */
.shirt-mockup { position: relative; }
.shirt-card { position: relative; }
.stock-star, .limited-star { overflow: visible; filter: drop-shadow(4px 4px 0 var(--black)); }
.stock-star polygon, .limited-star polygon { fill: var(--white); stroke: var(--black); stroke-width: 3; stroke-linejoin: round; }
.stock-star text, .limited-star text { font-family: 'Bungee', sans-serif; font-size: 15px; text-anchor: middle; fill: var(--black); }
.stock-star { position: absolute; z-index: 3; top: -42px; right: -30px; width: 120px; height: 120px; animation: star-pulse 1.6s ease-in-out infinite; }
@keyframes star-pulse { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.08); } }
@media (max-width: 600px) { .stock-star { width: 96px; height: 96px; top: -34px; right: -14px; } }
@media (prefers-reduced-motion: reduce) { .stock-star { animation: none; transform: rotate(-8deg); } }

.limited-toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; width: 380px; display: flex; align-items: center; gap: 14px; padding: 14px 18px 18px 12px; color: var(--black); text-decoration: none; background: var(--yellow); border: 4px solid var(--black); box-shadow: 8px 8px 0 var(--white); overflow: hidden; transform: translateX(calc(100% + 40px)); transition: transform 0.5s cubic-bezier(.2, 1.3, .4, 1); }
.limited-toast.show { transform: translateX(0); }
.limited-toast .limited-star { position: static; flex: none; width: 92px; height: 92px; margin: -4px 0 -4px -2px; animation: star-pulse 1.6s ease-in-out infinite; }
.limited-text { font-size: 0.95rem; line-height: 1.35; }
.limited-text strong { display: block; font-family: 'Bungee', sans-serif; font-weight: 400; font-size: 1.05rem; line-height: 1.2; margin-bottom: 4px; }
.limited-text u { font-weight: 700; white-space: nowrap; }
/* Shrinking bar along the bottom shows it's about to go away. */
.limited-timer { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--black); transform-origin: left; }
.limited-toast.show .limited-timer { animation: toast-timer var(--toast-ms) linear forwards; }
.limited-toast.held .limited-timer { animation-play-state: paused; }
@keyframes toast-timer { to { transform: scaleX(0); } }
@media (max-width: 600px) {
    /* A small ticket that slides in from the right and tucks into the top-right corner. */
    .limited-toast { left: auto; right: 10px; top: 80px; bottom: auto; width: 252px; gap: 8px; padding: 8px 12px 12px 16px; }
    .limited-toast .limited-star { width: 54px; height: 54px; margin: -2px 0; }
    .limited-toast .limited-text { padding-left: 9px; font-size: 0.72rem; line-height: 1.3; }
    .limited-toast .limited-text strong { font-size: 0.7rem; margin-bottom: 2px; }
    .limited-toast .limited-timer { height: 4px; }
}
@media (prefers-reduced-motion: reduce) { .limited-toast { transition: none; } .limited-toast .limited-star { animation: none; } }
.stock-note { font-weight: 700; color: var(--yellow); margin-top: -16px; margin-bottom: 24px !important; }
.size-options span small { display: block; font-family: 'Rubik', sans-serif; font-size: 0.68rem; font-weight: 700; margin-top: 2px; color: var(--yellow); }
.size-options input:checked + span small { color: var(--black); }
.size-options label { display: flex; }
.size-options span { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.size-options span small { white-space: nowrap; }
.size-options span.sold-out { opacity: 0.35; border-style: dashed; cursor: not-allowed; }
.size-options span.sold-out small { color: var(--white); }
@media (max-width: 600px) { .size-options span small { font-size: 0.6rem; } }
.stock-warning { min-height: 1.4em; margin-top: 12px; font-weight: 700; color: var(--yellow); }

/* The limited-run pop-up, as a vintage cream ticket. */
.limited-toast { padding-left: 24px; color: #3a2a12; background: none; border: none; box-shadow: none; overflow: visible; filter: drop-shadow(6px 6px 0 var(--gold)); }
/* The ticket paper, with a half circle cut out of each end so it looks torn off a roll.
   The page shows through the cutouts, and the gold shadow follows the cut edge. */
.limited-toast::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff6d6;
    -webkit-mask: radial-gradient(circle at 0 50%, transparent 13px, #000 13.5px) left / 50.5% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 13px, #000 13.5px) right / 50.5% 100% no-repeat;
    mask: radial-gradient(circle at 0 50%, transparent 13px, #000 13.5px) left / 50.5% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 13px, #000 13.5px) right / 50.5% 100% no-repeat; }
.limited-toast .limited-text { padding-left: 14px; border-left: 3px dashed #3a2a12; }
.limited-toast .limited-text strong { color: #3a2a12; }
.limited-toast .limited-star polygon { fill: var(--yellow); stroke: #3a2a12; }
.limited-toast .limited-star text { fill: #3a2a12; }
.limited-toast .limited-timer { left: 14px; right: 14px; width: auto; background: #3a2a12; }

/* ---------- Payment step (see pay.js) ---------- */
.pay-card { display: block; margin-top: 40px; }
.pay-card[hidden] { display: none; }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pay-head h3 { font-family: 'Bungee', sans-serif; font-size: 1.5rem; color: var(--yellow); }
.pay-edit { font: inherit; font-weight: 700; color: var(--white); background: none; border: none; text-decoration: underline; cursor: pointer; }
.pay-order { margin: 6px 0 22px; font-weight: 700; }
.pay-label { display: block; margin: 22px 0 8px; font-weight: 700; }
.pay-input { width: 100%; padding: 12px; font: inherit; font-size: 16px; color: var(--white); background: var(--black); border: 3px solid var(--white); border-radius: 0; }
.pay-input:focus { outline: none; border-color: var(--yellow); box-shadow: 4px 4px 0 var(--yellow); }
.pay-card .summary { margin-top: 26px; }
.summary-total { font-weight: 700; font-size: 1.15rem; }
.pay-secure { margin-top: 14px; font-size: 0.85rem; opacity: 0.7; text-align: center; }
.checkout-card.locked { opacity: 0.75; }

/* ---------- Thank-you page ---------- */
#thanks { min-height: 70vh; display: flex; align-items: center; justify-content: center; background: url("images/memphis.svg"), linear-gradient(135deg, var(--yellow), var(--gold)); }
.thanks-card { max-width: 560px; padding: 40px 32px; text-align: center; background: var(--gray); border: 4px solid var(--black); box-shadow: 12px 12px 0 var(--white); }
.thanks-card h2 { color: var(--yellow); margin-bottom: 12px; }
.thanks-card p { margin-bottom: 16px; }
.thanks-big { font-family: 'VT323', monospace; font-size: 1.8rem; line-height: 1.1; color: var(--yellow); }
.thanks-status { font-weight: 700; }
.nowrap { white-space: nowrap; }
.phone-break { display: none; }
/* The receipt line always fits on one line; on phones the text shrinks with the screen to fit. */
.thanks-card .thanks-receipt { white-space: nowrap; margin-bottom: 4px; }
@media (max-width: 600px) { .thanks-card { padding: 32px 18px; } .thanks-card .thanks-receipt { font-size: min(1rem, 4.35vw); } }
@media (max-width: 600px) { .phone-break { display: inline; } .thanks-card .btn { line-height: 1.25; } }
.thanks-card a:not(.btn) { color: var(--yellow); font-weight: 700; }
/* Order progress: video-game checkpoints along a pixel trail. Each .cp sits exactly on the
   trail (left/top set in thanks.html); its flag stands on that point. */
.track { position: relative; height: 180px; margin: 4px 0 22px; }
.track-trail { position: absolute; left: 0; top: 70px; width: 100%; height: 80px; overflow: visible; }
.track path { fill: none; vector-effect: non-scaling-stroke; }
.track-line { stroke: #666666; stroke-width: 5; stroke-dasharray: 5 7; }
.track-done { stroke: var(--yellow); stroke-width: 5; stroke-dasharray: 5 7; animation: track-draw 0.9s ease-out; }
@keyframes track-draw { from { opacity: 0; } }
.cp { position: absolute; width: 0; height: 0; }
.cp-icon { position: absolute; left: -9px; bottom: -3px; width: 24px; height: 30px; overflow: visible; }
.cp-pole { fill: #888888; }
.cp-flag { fill: #333333; stroke: #777777; stroke-width: 1.5; }
.cp b { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-family: 'VT323', monospace; font-weight: 400; font-size: 1.25rem; letter-spacing: 1px; color: #999999; }
.cp.up b { bottom: 32px; }
.cp.down b { top: 6px; }
.cp.cleared .cp-pole { fill: var(--white); }
.cp.cleared .cp-flag { fill: var(--yellow); stroke: var(--yellow); transform-origin: 4px 6px; animation: flag-wave 0.8s steps(2) infinite; }
.cp.cleared b { color: var(--yellow); }
@keyframes flag-wave { 50% { transform: scaleY(0.75) skewY(-8deg); } }
.cp.goal .cp-icon { left: -12px; width: 26px; height: 26px; }
.cp-house { fill: #333333; stroke: #777777; stroke-width: 1.5; }
.cp-door { fill: #777777; }
.cp.goal b { transform: translateX(-75%); }
/* Bouncing arrow over the current checkpoint. */
.cp-here { position: absolute; left: 0; bottom: 64px; transform: translateX(-30%); white-space: nowrap; font-family: 'VT323', monospace; font-size: 1.05rem; line-height: 1; color: var(--black); background: var(--yellow); padding: 2px 6px; animation: here-bounce 0.9s steps(2) infinite; }
.cp-here::after { content: ""; position: absolute; left: 30%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--yellow); }
@keyframes here-bounce { 50% { translate: 0 -4px; } }
@media (max-width: 600px) { .cp b { font-size: 1.1rem; } .cp-here { font-size: 0.95rem; } }
@media (prefers-reduced-motion: reduce) { .track-done, .cp.cleared .cp-flag, .cp-here { animation: none; } }
