:root {
    --gift-purple: #5b31cc;
    --gift-purple-deep: #29166f;
    --gift-yellow: #ffd23d;
    --gift-yellow-deep: #e8a900;
    --gift-white: #fff;
    --gift-ink: #281b50;
    --gift-muted: #665d82;
    --gift-surface: #f7f4ff;
    --gift-line: #dcd3f3;
    --gift-danger: #a3203f;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body,
button,
input,
textarea {
    font-family: "Lato", sans-serif;
}

body {
    color: var(--gift-ink);
    background: var(--gift-surface);
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--gift-yellow);
    outline-offset: 3px;
}

.gift-header {
    min-height: 86px;
    padding: 18px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--gift-white);
    background: var(--gift-purple-deep);
}

.gift-header img {
    width: clamp(156px, 17vw, 220px);
    display: block;
}

.gift-header nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-header nav a {
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.gift-header nav a:hover {
    background: rgba(255, 255, 255, .12);
}

.gift-footer {
    min-height: 86px;
    padding: 28px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #d9d1fa;
    background: var(--gift-purple-deep);
    font-size: 14px;
    font-weight: 700;
}

.gift-hero,
.gift-status-hero {
    color: var(--gift-white);
    background:
        radial-gradient(circle at 12% 20%, #35ded8 0 4px, transparent 5px),
        radial-gradient(circle at 92% 24%, #ffd23d 0 4px, transparent 5px),
        linear-gradient(135deg, #7b3ce5 0%, #4826a8 52%, #29166f 100%);
}

.gift-hero {
    min-height: 620px;
    padding: clamp(54px, 7vw, 94px) max(24px, calc((100vw - 1180px) / 2));
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
    align-items: center;
    gap: clamp(44px, 7vw, 96px);
}

.gift-hero-copy h1,
.gift-status-hero h1,
.gift-section-heading h2,
.gift-redeem-intro h1,
.gift-share-page h1,
.gift-result-actions h2,
.gift-print-controls h1 {
    margin: 0;
    font-family: "Baloo 2", sans-serif;
    font-weight: 800;
    line-height: .98;
}

.gift-hero-copy h1 {
    max-width: 610px;
    font-size: clamp(48px, 6vw, 78px);
}

.gift-hero-copy > p {
    max-width: 570px;
    margin: 22px 0;
    color: #e1d9ff;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
}

.gift-hero-copy ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
    list-style: none;
    color: #f1edff;
    font-weight: 800;
}

.gift-hero-copy li::before {
    content: "✓";
    margin-right: 9px;
    color: var(--gift-yellow);
}

.gift-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gift-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.gift-card-shell {
    width: 100%;
    container-type: inline-size;
}

.gift-card {
    --gift-card-unit: 10px;
    width: 100%;
    aspect-ratio: 13 / 8;
    position: relative;
    overflow: hidden;
    border: calc(var(--gift-card-unit) * .55) solid rgba(255, 255, 255, .92);
    border-radius: calc(var(--gift-card-unit) * 2.6);
    color: var(--gift-white);
    background: linear-gradient(135deg, var(--gift-start), var(--gift-end));
    box-shadow: 0 calc(var(--gift-card-unit) * 1.82) calc(var(--gift-card-unit) * 4.16) rgba(20, 5, 68, .34);
    text-align: left;
}

.gift-card-logo {
    width: 29%;
    position: absolute;
    top: 8%;
    left: 6%;
    z-index: 2;
}

.gift-card-copy {
    width: 58%;
    position: absolute;
    top: 28%;
    left: 6%;
    z-index: 2;
}

.gift-card-label {
    display: block;
    opacity: .9;
    font-size: calc(var(--gift-card-unit) * 1.092);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gift-card-copy h2 {
    margin: calc(var(--gift-card-unit) * .52) 0 calc(var(--gift-card-unit) * .156);
    overflow: hidden;
    font-family: "Baloo 2", sans-serif;
    font-size: calc(var(--gift-card-unit) * 2.964);
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-card-copy strong {
    max-height: calc(var(--gift-card-unit) * 5.304);
    overflow: hidden;
    display: -webkit-box;
    color: var(--gift-yellow);
    font-size: calc(var(--gift-card-unit) * 1.404);
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gift-card-sender {
    margin: calc(var(--gift-card-unit) * .572) 0 0;
    display: block;
    opacity: .94;
    font-size: calc(var(--gift-card-unit) * 1.17);
    font-weight: 800;
    line-height: 1.35;
}

.gift-card-stickers img {
    width: 18%;
    position: absolute;
    z-index: 2;
    filter: drop-shadow(0 calc(var(--gift-card-unit) * .52) calc(var(--gift-card-unit) * .624) rgba(17, 4, 54, .25));
}

.gift-card-stickers img:nth-child(1) {
    top: 12%;
    right: 19%;
    transform: rotate(-8deg);
}

.gift-card-stickers img:nth-child(2) {
    top: 35%;
    right: 3%;
    transform: rotate(9deg);
}

.gift-card-stickers img:nth-child(3) {
    right: 22%;
    bottom: 15%;
    transform: rotate(-4deg);
}

.gift-card-footer {
    position: absolute;
    z-index: 2;
    right: 6%;
    bottom: 7%;
    left: 6%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: calc(var(--gift-card-unit) * 1.04);
    font-size: calc(var(--gift-card-unit) * 1.118);
    font-weight: 900;
}

.gift-card-access {
    min-width: 0;
    display: grid;
    gap: calc(var(--gift-card-unit) * .16);
    line-height: 1.15;
}

.gift-card-access strong {
    font-size: calc(var(--gift-card-unit) * 1.22);
}

.gift-card-access small {
    overflow: hidden;
    opacity: .82;
    font-size: calc(var(--gift-card-unit) * .95);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-card-code {
    max-width: 100%;
    padding: calc(var(--gift-card-unit) * .416) calc(var(--gift-card-unit) * .936);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: calc(var(--gift-card-unit) * .936);
    letter-spacing: .08em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-card-decoration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
}

.gift-decoration-snow .gift-card-decoration-snow,
.gift-decoration-stars .gift-card-decoration-stars,
.gift-decoration-trees .gift-card-decoration-trees,
.gift-decoration-candy .gift-card-decoration-candy {
    display: block;
}

.gift-builder {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 84px 0 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
    align-items: start;
    gap: clamp(34px, 6vw, 78px);
}

.gift-section-heading {
    margin-bottom: 28px;
}

.gift-section-heading span {
    color: var(--gift-purple);
    font-weight: 900;
    text-transform: uppercase;
}

.gift-section-heading h2 {
    margin-top: 5px;
    font-size: clamp(38px, 5vw, 58px);
}

.gift-builder-form form,
.gift-fieldset {
    display: grid;
    gap: 18px;
}

.gift-fieldset {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--gift-line);
    border-radius: 24px;
    background: var(--gift-white);
    box-shadow: 0 12px 35px rgba(41, 22, 111, .07);
}

.gift-fieldset legend {
    padding: 0 8px;
    font-family: "Baloo 2", sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.gift-fieldset legend span {
    width: 29px;
    height: 29px;
    margin-right: 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gift-white);
    background: var(--gift-purple);
    font-size: 14px;
}

.gift-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gift-choice,
.gift-theme-choice,
.gift-sticker-choice,
.gift-age-options label {
    cursor: pointer;
}

.gift-choice input,
.gift-theme-choice input,
.gift-sticker-choice input,
.gift-age-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gift-choice {
    min-height: 92px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--gift-line);
    border-radius: 18px;
    text-align: center;
}

.gift-choice:has(input:checked),
.gift-sticker-choice:has(input:checked),
.gift-age-options label:has(input:checked) {
    border-color: var(--gift-purple);
    background: #f0eaff;
}

.gift-decoration-icon {
    width: 26px;
    height: 26px;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    color: var(--gift-ink);
}

.gift-decoration-choice:has(input:checked) .gift-decoration-icon {
    color: var(--gift-purple);
}

.gift-choice strong {
    margin: 0;
    display: block;
    font-size: 14px;
}

.gift-theme-choices,
.gift-sticker-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gift-theme-choice {
    display: grid;
    justify-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
}

.gift-theme-choice i {
    width: 52px;
    height: 52px;
    display: block;
    border: 4px solid var(--gift-white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gift-line);
}

.gift-theme-choice:has(input:checked) i {
    box-shadow: 0 0 0 4px var(--gift-purple);
}

.gift-sticker-choice {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 2px solid var(--gift-line);
    border-radius: 17px;
}

.gift-sticker-choice img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

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

.gift-fields label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 900;
}

.gift-field-wide,
.gift-fields .gift-button,
.gift-age-options,
.gift-fields .gift-check {
    grid-column: 1 / -1;
}

.gift-fields input,
.gift-fields textarea,
.gift-share-field input {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 2px solid var(--gift-line);
    border-radius: 13px;
    color: var(--gift-ink);
    background: var(--gift-white);
    font-weight: 700;
}

.gift-fields textarea {
    resize: vertical;
}

.gift-fields input:focus,
.gift-fields textarea:focus {
    border-color: var(--gift-purple);
    outline: 0;
}

.gift-fields label > span {
    float: right;
    color: var(--gift-muted);
    font-weight: 700;
}

.gift-help,
.gift-permanent-note {
    margin: 0;
    color: var(--gift-muted);
    font-size: 13px;
    line-height: 1.45;
}

.gift-terms-note {
    text-align: center;
}

.gift-terms-note a {
    color: var(--gift-purple);
    font-weight: 900;
}

.gift-error {
    color: var(--gift-danger);
}

.gift-alert,
.gift-subscription-warning {
    padding: 14px 16px;
    border-radius: 14px;
    color: #6d1630;
    background: #ffe5ed;
    font-weight: 700;
}

.gift-builder-preview {
    position: sticky;
    top: 24px;
}

.gift-checkout-summary {
    padding: 24px;
    display: grid;
    gap: 13px;
    border-radius: 24px;
    color: var(--gift-white);
    background: linear-gradient(135deg, #4826a8, #29166f);
}

.gift-checkout-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    font-weight: 900;
}

.gift-checkout-summary strong {
    color: var(--gift-yellow);
    font-family: "Baloo 2", sans-serif;
    font-size: 30px;
}

.gift-checkout-summary p {
    margin: 0;
    color: #ded6ff;
    font-size: 13px;
}

.gift-button {
    min-height: 54px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #3d2794;
    background: var(--gift-yellow);
    box-shadow: 0 5px 0 var(--gift-yellow-deep);
    font-family: "Baloo 2", sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.gift-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.gift-button:disabled {
    opacity: .68;
    cursor: wait;
}

.gift-button-secondary {
    border: 2px solid var(--gift-line);
    color: var(--gift-purple);
    background: var(--gift-white);
    box-shadow: none;
}

.gift-text-link {
    color: var(--gift-purple);
    font-weight: 900;
    text-align: center;
}

.gift-status-hero {
    padding: 70px 24px 130px;
    text-align: center;
}

.gift-status-hero h1 {
    font-size: clamp(46px, 6vw, 74px);
}

.gift-status-hero p {
    margin: 14px auto 0;
    color: #e3dcff;
    font-size: 18px;
}

.gift-status-pill {
    margin-bottom: 13px;
    padding: 6px 12px;
    display: inline-block;
    border-radius: 999px;
    color: #086454;
    background: #dff8ef;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gift-result-grid,
.gift-share-page,
.gift-redeem-page {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
}

.gift-result-grid {
    margin-top: -78px;
    padding-bottom: 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .8fr);
    align-items: start;
    gap: 30px;
}

.gift-result-card,
.gift-result-actions,
.gift-redeem-panel {
    padding: 27px;
    border-radius: 27px;
    background: var(--gift-white);
    box-shadow: 0 18px 50px rgba(41, 22, 111, .12);
}

.gift-code-box {
    margin-top: 20px;
    padding: 15px;
    border: 2px dashed var(--gift-purple);
    border-radius: 14px;
    color: var(--gift-purple);
    background: #f0eaff;
    font-family: "Baloo 2", sans-serif;
    font-size: clamp(19px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
}

.gift-result-actions {
    display: grid;
    gap: 14px;
}

.gift-result-actions h2 {
    font-size: 34px;
}

.gift-result-actions > p {
    margin: 0;
    color: var(--gift-muted);
    line-height: 1.5;
}

.gift-share-field {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 900;
}

.gift-share-field span {
    display: flex;
}

.gift-share-field input {
    border-radius: 13px 0 0 13px;
}

.gift-share-field button {
    padding: 0 14px;
    border: 0;
    border-radius: 0 13px 13px 0;
    color: var(--gift-white);
    background: var(--gift-purple);
    font-weight: 900;
    cursor: pointer;
}

.gift-share-page {
    min-height: calc(100vh - 172px);
    padding: 90px 0;
    display: grid;
    grid-template-columns: minmax(300px, .75fr) minmax(430px, 1.25fr);
    align-items: center;
    gap: 64px;
}

.gift-share-page h1 {
    font-size: clamp(46px, 6vw, 76px);
}

.gift-share-page > div:first-child > p {
    margin: 20px 0 28px;
    color: var(--gift-muted);
    font-size: 18px;
    line-height: 1.55;
}

.gift-card-copy p {
    color: var(--gift-white);
}

.gift-redeem-page {
    min-height: calc(100vh - 172px);
    padding: 82px 0 100px;
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(420px, 1fr);
    align-items: start;
    gap: clamp(42px, 7vw, 90px);
}

.gift-redeem-intro {
    padding-top: 50px;
}

.gift-redeem-intro h1 {
    font-size: clamp(46px, 6vw, 70px);
}

.gift-redeem-intro p {
    color: var(--gift-muted);
    font-size: 18px;
    line-height: 1.55;
}

.gift-redeem-panel {
    display: grid;
    gap: 20px;
}

.gift-redeem-panel .gift-card-shell {
    margin-bottom: 8px;
}

.gift-redeem-panel .gift-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gift-age-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.gift-age-options label {
    min-height: 92px;
    display: grid;
    place-items: center;
    border: 2px solid var(--gift-line);
    border-radius: 16px;
    font-family: "Baloo 2", sans-serif;
    font-weight: 800;
}

.gift-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
}

.gift-check input {
    width: 18px;
}

.gift-permanent-note {
    text-align: center;
}

.gift-complete-mark {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gift-white);
    background: #12a392;
    font-size: 52px;
    font-weight: 900;
}

.gift-redeem-panel > h2,
.gift-redeem-panel > p {
    margin: 0;
    text-align: center;
}

.gift-subscription-warning p {
    margin: 6px 0 0;
    line-height: 1.45;
}

.gift-print-controls {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 30px;
    text-align: center;
}

.gift-print-controls h1 {
    font-size: 48px;
}

.gift-print-controls > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.gift-handwritten-option {
    width: fit-content;
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gift-purple-deep);
    font-weight: 800;
    cursor: pointer;
}

.gift-handwritten-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--gift-purple);
}

.gift-print-sheet {
    width: min(900px, calc(100% - 48px));
    min-height: 1100px;
    margin: 0 auto 60px;
    padding: 70px;
    display: grid;
    align-content: center;
    gap: 60px;
    background: var(--gift-white);
    box-shadow: 0 12px 40px rgba(41, 22, 111, .12);
}

.gift-print-redemption {
    text-align: center;
}

.gift-print-single .gift-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.gift-folded-sheet {
    min-height: 620px;
    padding: 0;
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.gift-manual-duplex-note,
.gift-cut-guides,
.gift-fold-guide {
    display: none;
}

.gift-folded-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #aaa;
    text-align: center;
}

.gift-folded-panel .gift-card-shell {
    width: 100%;
}

.gift-folded-back img {
    width: 240px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 18px;
    background: var(--gift-purple-deep);
}

.gift-inside-message {
    gap: 22px;
}

.gift-inside-highlight {
    width: 100%;
    padding: 24px;
    border-radius: 20px;
    color: var(--gift-white);
    background: linear-gradient(135deg, #7b3ce5, #29166f);
}

.gift-inside-highlight p {
    margin: 0;
    font-family: "Baloo 2", sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
}

.gift-inside-highlight strong {
    margin-top: 12px;
    display: block;
    color: #ffd23d;
}

.gift-note-handwritten .gift-inside-highlight {
    visibility: hidden;
}

.gift-folded-back p,
.gift-inside-message h2 {
    margin: 0;
    color: #4d4764;
    font-size: 16px;
}

@media screen and (min-width: 901px) {
    .gift-folded-sheet {
        aspect-ratio: 297 / 210;
        min-height: 0;
        align-content: center;
        justify-content: center;
        grid-template-columns: repeat(2, 46.6667%);
        grid-template-rows: 42.8571%;
    }

    .gift-folded-panel {
        width: 100%;
        height: 100%;
        min-height: 0;
        border: 0;
    }

    .gift-folded-outside .gift-folded-panel:nth-of-type(2) {
        padding: 0;
    }

    .gift-folded-outside .gift-card-shell,
    .gift-folded-outside .gift-card {
        height: 100%;
    }

    .gift-folded-outside .gift-card {
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .gift-cut-guides {
        position: absolute;
        top: 28.5714%;
        left: 3.3333%;
        z-index: 3;
        display: block;
        width: 93.3333%;
        height: 42.8571%;
        overflow: visible;
        pointer-events: none;
    }

    .gift-cut-guides path {
        fill: none;
        stroke: #777284;
        stroke-width: .3;
        vector-effect: non-scaling-stroke;
    }

    .gift-fold-guide {
        position: absolute;
        inset: 0;
        z-index: 4;
        display: block;
        pointer-events: none;
    }

    .gift-fold-guide::before,
    .gift-fold-guide::after {
        content: "";
        position: absolute;
        left: 50%;
        height: 2.4%;
        border-left: 1px dashed #625c75;
    }

    .gift-fold-guide::before {
        top: 26.2%;
    }

    .gift-fold-guide::after {
        top: 71.4%;
    }

    .gift-fold-guide b {
        position: absolute;
        top: 23.3%;
        left: 50%;
        padding: 0 4px;
        color: #625c75;
        background: #fff;
        font-size: 10px;
        letter-spacing: .12em;
        line-height: 1;
        text-transform: uppercase;
        transform: translateX(-50%);
    }

    .gift-manual-duplex-note {
        position: absolute;
        right: 24px;
        bottom: 18px;
        left: 24px;
        margin: 0;
        display: block;
        color: #4d4764;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .gift-hero,
    .gift-share-page,
    .gift-redeem-page,
    .gift-result-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gift-hero {
        min-height: 0;
    }

    .gift-hero-copy {
        text-align: center;
    }

    .gift-hero-copy ul {
        justify-content: center;
    }

    .gift-builder {
        grid-template-columns: minmax(0, 1fr);
    }

    .gift-builder-preview {
        grid-row: 1;
        position: sticky;
        top: max(8px, env(safe-area-inset-top));
        z-index: 20;
        padding: 8px 0 12px;
        background: var(--gift-surface);
    }

    .gift-builder-preview > .gift-eyebrow {
        display: none;
    }

    .gift-result-grid {
        width: min(680px, calc(100% - 32px));
    }

    .gift-share-page,
    .gift-redeem-page {
        width: min(680px, calc(100% - 32px));
        padding: 54px 0 74px;
    }

    .gift-redeem-intro {
        padding-top: 0;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .gift-header {
        min-height: 72px;
        padding: 14px 16px;
    }

    .gift-header nav a:first-child {
        display: none;
    }

    .gift-header nav a {
        padding: 7px 9px;
        font-size: 13px;
    }

    .gift-header img {
        width: 140px;
    }

    .gift-hero {
        padding: 52px 18px 64px;
        grid-template-columns: minmax(0, 1fr);
    }

    .gift-hero-copy h1 {
        font-size: 48px;
    }

    .gift-builder {
        width: calc(100% - 28px);
        padding: 52px 0 70px;
    }

    .gift-fieldset,
    .gift-result-card,
    .gift-result-actions,
    .gift-redeem-panel {
        padding: 18px;
        border-radius: 20px;
    }

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

    .gift-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .gift-field-wide,
    .gift-fields .gift-button,
    .gift-age-options,
    .gift-fields .gift-check {
        grid-column: auto;
    }

    .gift-result-grid {
        margin-top: -74px;
    }

    .gift-share-page {
        gap: 38px;
    }

    .gift-footer {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .gift-print-sheet {
        width: calc(100% - 20px);
        min-height: 0;
        padding: 24px;
    }

    .gift-folded-sheet {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    html,
    body {
        width: 297mm;
        min-width: 0 !important;
        margin: 0;
        background: #fff;
    }

    .gift-header,
    .gift-footer,
    .gift-print-controls {
        display: none !important;
    }

    .gift-print-sheet {
        width: 297mm;
        height: 210mm;
        min-height: 210mm;
        margin: 0;
        padding: 10mm;
        overflow: hidden;
        break-after: page;
        box-shadow: none;
    }

    .gift-print-sheet:last-child {
        break-after: auto;
    }

    .gift-print-single {
        justify-items: center;
    }

    .gift-print-single .gift-card-shell {
        width: 190mm;
        max-width: 100%;
    }

    .gift-folded-sheet {
        width: 297mm;
        height: 210mm;
        min-height: 210mm;
        padding: 0;
        align-content: center;
        justify-content: center;
        grid-template-columns: repeat(2, 140mm);
        grid-template-rows: 90mm;
    }

    .gift-cut-guides {
        position: absolute;
        top: 60mm;
        left: 8.5mm;
        z-index: 3;
        display: block;
        width: 280mm;
        height: 90mm;
        overflow: visible;
        pointer-events: none;
    }

    .gift-cut-guides path {
        fill: none;
        stroke: #777284;
        stroke-width: .3;
        vector-effect: non-scaling-stroke;
    }

    .gift-folded-panel {
        width: 140mm;
        height: 90mm;
        min-height: 0;
        padding: 10mm;
        border: 0;
    }

    .gift-folded-panel .gift-card-shell {
        width: 100%;
        max-width: none;
        height: 100%;
    }

    .gift-inside-message {
        gap: 5mm;
    }

    .gift-inside-highlight {
        padding: 6mm 7mm;
        border-radius: 4mm;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .gift-inside-highlight p {
        font-size: 17pt;
    }

    .gift-inside-highlight strong {
        margin-top: 2mm;
        font-size: 10pt;
    }

    .gift-folded-back p,
    .gift-inside-message h2 {
        font-size: 12pt;
    }

    .gift-folded-outside .gift-folded-panel:nth-of-type(2) {
        padding: 0;
    }

    .gift-folded-outside .gift-folded-panel:nth-of-type(2) .gift-card-shell {
        width: 140mm;
        height: 90mm;
    }

    .gift-fold-guide {
        position: absolute;
        inset: 0;
        z-index: 4;
        display: block;
        pointer-events: none;
    }

    .gift-fold-guide::before,
    .gift-fold-guide::after {
        content: "";
        position: absolute;
        left: 50%;
        height: 5mm;
        border-left: .3mm dashed #625c75;
    }

    .gift-fold-guide::before {
        top: 55mm;
    }

    .gift-fold-guide::after {
        top: 150mm;
    }

    .gift-fold-guide b {
        position: absolute;
        top: 49mm;
        left: 50%;
        padding: 0 1mm;
        color: #625c75;
        background: #fff;
        font-family: "Lato", sans-serif;
        font-size: 7pt;
        font-weight: 900;
        letter-spacing: .12em;
        line-height: 1;
        text-transform: uppercase;
        transform: translateX(-50%);
    }

    .gift-manual-duplex-note {
        position: absolute;
        right: 8mm;
        bottom: 6mm;
        left: 8mm;
        margin: 0;
        display: block;
        color: #4d4764;
        font-size: 7.5pt;
        line-height: 1.1;
        text-align: center;
    }

    .gift-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .gift-folded-panel .gift-card {
        height: 100%;
        aspect-ratio: auto;
    }
}
