@font-face {
    font-family: "Campaign Serif";
    src: url("serif.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}
@font-face {
    font-family: "Campaign Black";
    src: url("black.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Campaign Round";
    src: url("round.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Campaign Brush";
    src: url("brush.woff2") format("woff2");
    font-display: swap;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--outside);
    color: var(--ink);
    font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
h1,h2,p,figure { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.theme-figure {
    --paper: #eae9f7;
    --ink: #34305e;
    --accent: #a3a0c9;
    --dark: #343050;
    --soft: #f6f5ff;
    --outside: #d8d6e7;
    --display: "Campaign Serif", "Songti TC", serif;
}
.theme-plush {
    --paper: #fae7de;
    --ink: #8d3451;
    --accent: #df9a9d;
    --dark: #883752;
    --soft: #fff1e1;
    --outside: #ead2d2;
    --display: "Campaign Brush", "Kaiti TC", "DFKai-SB", serif;
}
.theme-baby {
    --paper: #dceef0;
    --ink: #27525d;
    --accent: #edb765;
    --dark: #2d6874;
    --soft: #fff4d1;
    --outside: #c8dfe0;
    --display: "Campaign Round", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.theme-crystal {
    --paper: #e6fff8;
    --ink: #102e32;
    --accent: #adffe7;
    --dark: #102e33;
    --soft: #f1f8ff;
    --outside: #0a2125;
    --display: "Campaign Black", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.selected-campaign {
    width: min(100%, 480px);
    min-height: 100vh;
    margin-inline: auto;
    container-type: inline-size;
    background: var(--paper);
    box-shadow: 0 10px 65px #1b162c30;
}
.first-view { overflow: hidden; }
.visual { position: relative; isolation: isolate; }
.mast { z-index: 1; position: relative; }
.event-stamp {
    display: flex;
    align-items: center;
    gap: .45em;
    font-size: clamp(.79rem,3.6cqi,1rem);
    font-weight: 750;
    letter-spacing: .095em;
    line-height: 1.2;
}
.event-stamp strong { font-weight: 850; white-space: nowrap; }
.store-title { overflow-wrap: anywhere; font: 700 15cqi/1.12 var(--display); }
.product-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-tag { font-size: clamp(.74rem,3.65cqi,1.02rem); line-height: 1.25; }
.product-tag strong { font-weight: 730; }
.product-tag > span { display: block; margin-bottom: 3px; font-size: .73em; font-weight: 680; letter-spacing: .07em; }
.offer { position: relative; padding: 4.5cqi 7cqi 5.5cqi; }
.free-heading h2 { display: flex; align-items: center; gap: 2.4cqi; }
.free-heading h2 span {
    width: 1.75em;
    padding: .3em .25em;
    flex: none;
    border: 1px solid currentColor;
    text-align: center;
    font-size: clamp(.71rem,3.3cqi,.95rem);
    line-height: 1.05;
}
.free-heading h2 strong { font: 720 14.1cqi/1.11 var(--display); white-space: nowrap; }
.entry-terms { margin-top: 3.3cqi; font-size: clamp(.75rem,3.55cqi,.97rem); line-height: 1.45; }
.claim-block { margin-top: 4.5cqi; }
.line-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .58em;
    width: 100%;
    min-height: clamp(46px,13.6cqi,62px);
    padding: 7px 12px;
    border: 1px solid transparent;
    color: var(--soft);
    background: var(--dark);
    text-align: center;
    text-decoration: none;
    font-size: clamp(1rem,4.45cqi,1.22rem);
    font-weight: 760;
    letter-spacing: .025em;
}
.line-cta:hover:not(:disabled) { filter: brightness(1.08); }
.line-cta::after { content: "→"; margin-inline-start: .4em; font-size: 1.25em; }
.line-cta:disabled { opacity: .72; }
.line-icon { width: 1.22em; height: 1.22em; flex: none; }
.claim-instructions,.consent { margin-top: 9px; font-size: .82rem; line-height: 1.55; }
.claim-instructions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .55em; }
.claim-instructions button { border: 0; background: transparent; color: inherit; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 7px; }
.consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; }
.store-event-info { display: inline-block; margin-top: 7px; color: inherit; font-size: .82rem; text-underline-offset: 3px; }

.editorial .visual { padding: 6cqi 0 0 6.6cqi; background: linear-gradient(145deg,var(--soft),var(--paper) 56%); }
.editorial .mast { padding-right: 6cqi; }
.editorial .event-stamp::before { content: "◈"; margin-inline-end: .3em; }
.editorial .event-stamp::after { content: ""; height: 1px; flex: 1; margin-left: .5em; background: linear-gradient(to right,var(--accent),transparent); }
.editorial .store-title { margin: .17em 0 .23em; font-weight: 600; letter-spacing: .025em; }
.editorial .product-stage { height: 83cqi; overflow: hidden; border-top-left-radius: 26cqi; border-top: 1px solid var(--accent); background: #8b8985; }
.editorial .product-stage img { object-position: 50% 52%; }
.editorial .product-tag { position: relative; width: fit-content; max-width: 89%; margin-top: -9cqi; padding: 2cqi 3.5cqi 2cqi 0; background: var(--paper); border-bottom: 1px solid var(--accent); }
.editorial .product-tag strong { font-family: var(--display); }
.editorial .free-heading h2 strong { font-weight: 560; letter-spacing: .035em; }
.editorial .line-cta { justify-content: flex-start; padding-inline: 4.3cqi; }
.editorial .line-cta::after { margin-inline-start: auto; }

.invitation .visual {
    min-height: 119cqi;
    background: repeating-linear-gradient(0deg,#6332290c 0px,transparent 1px,transparent 4px),var(--paper);
}
.invitation .visual::before { content: ""; position: absolute; inset: 3.4cqi 3.6cqi 19cqi; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.invitation .mast { padding: 7.2cqi 6.4cqi 0; min-height: 29cqi; }
.invitation .event-stamp { color: var(--ink); font: 400 9cqi/1 var(--display); transform: rotate(-2deg); transform-origin: left center; }
.invitation .event-stamp strong { margin-inline-start: .14em; font-weight: 400; }
.invitation .event-stamp span {
    width: 9.6cqi;
    height: 9.6cqi;
    display: grid;
    place-content: center;
    border: 1px solid var(--ink);
    outline: 1px solid var(--ink);
    outline-offset: 2px;
    text-align: center;
    font-size: 4cqi;
    line-height: .98;
    overflow-wrap: anywhere;
    padding-inline: .4em;
}
.invitation .store-title {
    position: absolute;
    right: 7cqi;
    top: -1.5cqi;
    width: 34.3cqi;
    min-height: 59cqi;
    padding: 8cqi 2cqi 5cqi;
    border-inline: 1px solid var(--accent);
    background: var(--paper);
    box-shadow: 4px 5px #321e353a;
    font: 400 7cqi/1.2 var(--display);
    text-align: center;
    transform: rotate(4deg);
}
.invitation .store-title-split { display: flex; justify-content: center; flex-direction: row-reverse; align-items: flex-start; gap: .1em; font-size: 13.5cqi; line-height: 1; }
.invitation .store-title-split span { writing-mode: vertical-rl; letter-spacing: .035em; }
.invitation .store-title-split span + span { margin-top: 8.5cqi; }
.invitation .product-stage {
    position: absolute;
    top: 28cqi;
    left: 1.6cqi;
    width: 95cqi;
    height: 92cqi;
    transform: rotate(-4deg);
    background: #fff;
    border: 1.55cqi solid var(--soft);
    box-shadow: 1px 3px var(--accent);
}
.invitation .product-stage img { object-fit: contain; padding-right: 11cqi; }
.invitation .product-tag { position: absolute; bottom: 11cqi; right: 5cqi; max-width: 71%; padding: 1.65cqi 2.2cqi; transform: rotate(4deg); background: var(--soft); border: 1px solid var(--accent); outline: 2px solid var(--paper); box-shadow: 4px 5px #40233b6f; }
.invitation .offer { isolation: isolate; color: var(--soft); margin-top: -8cqi; padding-top: 15cqi; }
.invitation .offer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); clip-path: polygon(0 9cqi,100% 0,100% 100%,0 100%); }
.invitation .offer::after { content: ""; position: absolute; inset: 10cqi 0 auto; border-top: 1px solid var(--accent); transform: skewY(-5deg); transform-origin: left; pointer-events: none; }
.invitation .free-heading h2 { transform: rotate(-3deg); }
.invitation .free-heading h2 strong { font-weight: 400; text-shadow: 1px 2px #502637; }
.invitation .line-cta { color: var(--ink); background: var(--paper); border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 3px; }
.invitation .line-cta:focus-visible { outline: 3px dashed var(--soft); }

.candy .visual { background: var(--paper); }
.candy .mast { padding: 4.6cqi 3.6cqi 5.2cqi; text-align: center; }
.candy .event-stamp { justify-content: center; }
.candy .event-stamp::before,.candy .event-stamp::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.candy .event-stamp strong { border-radius: 20px; padding: .17em .54em .28em; background: var(--dark); color: var(--soft); }
.candy .store-title { margin-top: .24em; letter-spacing: -.06em; text-shadow: 0 2px var(--soft), 0 5px var(--accent); transform: rotate(-2deg); }
.candy .store-title-split { display: flex; justify-content: center; align-items: baseline; gap: 1.5cqi; font-size: 12cqi; white-space: nowrap; }
.candy .store-title-split span + span { font-size: .64em; }
.candy .product-stage { padding: 4cqi 5.2cqi 8cqi; height: 88cqi; background: radial-gradient(circle at 5% 50%,var(--soft) 0 11%,transparent 11.5%),linear-gradient(142deg,var(--accent),#f6d197); }
.candy .product-stage img {
    border: 2px solid #fffdf2;
    border-radius: 45% 45% 22px 22px / 22% 22% 22px 22px;
    object-fit: contain;
    padding: 2cqi;
    background: #fff;
    box-shadow: 0 0 0 1px #51364339,3px 5px #51364327;
}
.candy .product-tag { position: absolute; bottom: 7cqi; right: 6cqi; max-width: 87%; padding: 1.45cqi 2.7cqi; border: 2px solid; border-radius: 22px; background: var(--soft); transform: rotate(-4deg); box-shadow: 2px 2px; }
.candy .offer { background: var(--soft); text-align: center; }
.candy .offer::before { content: ""; position: absolute; inset: -14px 0 auto; height: 15px; background: radial-gradient(ellipse at 50% 100%,var(--soft) 73%,transparent 76%) 0 0 / 39px 15px repeat-x; pointer-events: none; }
.candy .offer-category { font-size: clamp(.76rem,3.6cqi,.99rem); font-weight: 730; letter-spacing: .075em; }
.candy .free-heading h2 { justify-content: center; margin-top: 1.05cqi; }
.candy .free-heading h2 strong { letter-spacing: -.065em; text-shadow: 0 2px #fffdf2,0 5px var(--accent); }
.candy .free-heading h2 span { border-radius: 5px; }
.candy .line-cta { border: 1px solid var(--ink); border-radius: 32px; box-shadow: 0 4px var(--ink); }
.candy .line-cta::after { content: none; }
.candy .claim-instructions { justify-content: center; }
.candy .consent { text-align: left; }

.electric { color: var(--paper); background: var(--dark); }
.electric .visual {
    background: repeating-linear-gradient(124deg,#fff0 0 17px,#eefcf81a 18px,#fff0 19px 32px),radial-gradient(ellipse at 90% 55%,#214a46,var(--dark) 75%);
}
.electric .mast { padding: 6.5cqi 6cqi 6cqi; }
.electric .event-stamp { padding-bottom: 2.4cqi; border-bottom: 1px solid #b5ecdc83; font-style: italic; }
.electric .event-stamp strong { color: var(--accent); }
.electric .event-stamp::after { content: ""; height: 13px; width: 25px; margin-left: auto; background: repeating-linear-gradient(117deg,var(--accent) 0 4px,transparent 4px 7px); transform: skew(-10deg); }
.electric .store-title { margin-top: .16em; transform: skewY(-4deg); transform-origin: left center; color: #f8fffd; font: 900 16cqi/1.01 var(--display); letter-spacing: -.075em; }
.electric .store-title-split span { display: block; }
.electric .store-title-split span + span { background: linear-gradient(#fff 12%,#9fbbb9 48%,#e6efef 52%,#adc7c6 80%,#fff); background-clip: text; color: transparent; }
.electric .product-stage { margin-top: -4cqi; height: 73cqi; background: #eee9e8; clip-path: polygon(0 10%,100% 0,100% 91%,0 100%); }
.electric .product-stage img { object-position: 54% 50%; }
.electric .product-tag { position: absolute; right: 5.3cqi; bottom: 2.4cqi; max-width: 90%; background: var(--dark); padding: 1.4cqi 2.1cqi; border-left: 3px solid var(--accent); }
.electric .product-tag small { margin-inline-start: .45em; font-size: .7em; }
.electric .offer { padding-top: 0; }
.electric .free-heading { margin-inline: -7cqi; padding: 8cqi 6cqi; background: var(--accent); color: var(--ink); clip-path: polygon(0 12%,100% 0,100% 88%,0 100%); }
.electric .free-heading h2 { justify-content: center; transform: rotate(-3deg); }
.electric .free-heading h2 strong { font-weight: 900; letter-spacing: -.065em; }
.electric .line-cta { justify-content: flex-start; padding-left: 4cqi; padding-right: 0; background: var(--soft); color: var(--ink); }
.electric .line-cta::after { content: "↗"; display: grid; place-items: center; align-self: stretch; min-width: 14cqi; margin: -7px -1px -7px auto; background: var(--accent); border-left: 1px solid var(--ink); }

.selected-storefront,.info { margin-inline: 7cqi; }
.selected-storefront { display: flex; align-items: center; gap: 12px; padding-block: 18px; }
.selected-storefront img { width: 35%; height: auto; aspect-ratio: 1.65; object-fit: cover; border: 1px solid; }
.selected-storefront figcaption { display: grid; gap: 3px; }
.selected-storefront small { font-size: .75rem; }
.info { padding-bottom: max(22px,env(safe-area-inset-bottom)); }
.info details { border-top: 1px solid var(--accent); padding-block: 11px; }
.info summary { cursor: pointer; font-weight: 700; }
.details-body { margin-top: 7px; font-size: .87rem; line-height: 1.65; }
.details-body p + p { margin-top: 7px; }
.rules-copy { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-height: 690px) and (max-width: 500px) {
    .editorial .product-stage { height: 76cqi; }
    .invitation .offer { padding-top: 12.6cqi; }
    .candy .product-stage { height: 79cqi; }
    .electric .mast { padding-bottom: 4.1cqi; }
    .electric .store-title { font-size: 14.4cqi; }
    .electric .product-stage { height: 65cqi; }
    .electric .free-heading { padding-block: 6.4cqi; }
    .entry-terms { margin-top: 2.6cqi; }
    .claim-block { margin-top: 3.5cqi; }
}
