:root {
    color-scheme: light;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    --ink: #162b25;
    --ink-muted: #4c5b52;
    --pine: #18392f;
    --paper: #f1eee5;
    --card: #fffdf6;
    --line: #d9d8cc;
    --accent: #92422a;
}
* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 78% 1%, var(--glow, #e7e9de) 0%, transparent 62%), var(--paper);
    color: var(--ink);
}
p, h1, h2, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid #357c6b;
    outline-offset: 4px;
}
.site { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 80px;
    padding-bottom: 1px;
}
.masthead-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .1em;
    overflow-wrap: anywhere;
}
.gift-mark {
    position: relative;
    display: inline-block;
    width: 21px;
    height: 21px;
    flex: none;
    border: 1px solid var(--pine);
    border-radius: 50%;
}
.gift-mark::before {
    position: absolute;
    inset: 4px;
    border: 1px solid var(--pine);
    border-radius: 50%;
    content: "";
}
.gift-mark::after {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}
.preview-label {
    flex: none;
    padding: .28rem .6rem;
    border: 1px solid #bdc5b8;
    border-radius: 999px;
    color: #40544b;
    font-size: .78rem;
    letter-spacing: .08em;
}
.product-page main { padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
.hero {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    grid-template-rows: minmax(min-content, 1.1fr) minmax(min-content, .9fr);
    grid-template-areas: "copy photo" "action photo";
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--card);
    box-shadow: 0 21px 58px #29352312, 0 2px 6px #29352308;
}
.hero-copy {
    grid-area: copy;
    padding: 30px clamp(16px, 3.8vw, 54px) 12px;
    align-self: end;
}
.hero-copy h1 span {
    display: flex;
    align-items: center;
    gap: .6em;
    color: var(--accent);
    font-size: clamp(1.08rem, 2.3vw, 1.56rem);
    font-weight: 800;
    letter-spacing: .17em;
    line-height: 1.3;
}
.hero-copy h1 span::before { width: 25px; height: 1px; background: var(--accent); content: ""; }
.hero-copy h1 strong {
    display: block;
    margin-top: .09em;
    color: var(--ink);
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", "Microsoft JhengHei", serif;
    font-size: clamp(2.65rem, 5.75vw, 4.8rem);
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.16;
}
.hero-line {
    margin-top: .7rem;
    color: var(--ink-muted);
    font-size: clamp(.94rem, 1.65vw, 1.11rem);
    line-height: 1.6;
}
.product-plate {
    grid-area: photo;
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 13px;
    background: var(--plate, #132b24);
}
.product-frame {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--plate, #152a22);
}
.poster-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}
.product-plate figcaption {
    padding: .55rem .8rem .58rem;
    border-top: 1px solid #ffffff26;
    color: #f6eee5;
    font-size: .76rem;
    letter-spacing: .07em;
    text-align: right;
}
.participate {
    grid-area: action;
    align-self: start;
    padding: 10px clamp(16px, 3.8vw, 54px) 32px;
    width: 100%;
}
.line-cta {
    display: flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 13px;
    border: 1px solid var(--pine);
    border-radius: 9px;
    color: #fffdf5;
    background: var(--pine);
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-align: center;
    text-decoration: none;
}
.line-cta:hover { background: var(--hover, #245242); }
.line-cta:disabled { border-color: var(--line); color: var(--ink); background: var(--paper); cursor: default; }
.line-icon { display: block; width: 42px; height: 42px; flex: none; object-fit: contain; }
.participate-note { margin-top: 8px; color: var(--ink-muted); font-size: .875rem; line-height: 1.48; text-align: center; text-wrap: balance; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; color: var(--ink-muted); font-size: .875rem; line-height: 1.55; }
input[type=checkbox] { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--pine); }
.info {
    margin-top: 15px;
    padding: 12px clamp(18px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink-muted);
    font-size: .95rem;
    line-height: 1.7;
}
summary { padding-block: 6px; color: var(--ink); font-weight: 750; cursor: pointer; }
details + details { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.details-body { padding: 4px 0 8px; }
.details-body p + p { margin-top: 7px; }
.rules-copy { white-space: pre-line; }
.handoff { width: min(420px, calc(100% - 34px)); padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.handoff a { display: inline-block; margin-top: 18px; padding: 10px 17px; border-radius: 6px; background: var(--pine); color: #fff; font-weight: 700; text-decoration: none; }
.handoff-page { display: grid; place-items: center; padding: 20px; }
.handoff h1 { margin-bottom: 12px; font-size: 1.6rem; }
@media (max-width: 740px) {
    .site { width: min(460px, calc(100% - 30px)); }
    .masthead { min-height: 55px; }
    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas: "copy" "photo" "action";
        padding: 10px;
        border-radius: 16px;
    }
    .hero-copy { padding: 11px 10px 14px; }
    .hero-copy h1 span { font-size: 1.08rem; }
    .hero-copy h1 span::before { width: 20px; }
    .hero-copy h1 strong { font-size: clamp(2.6rem, 11.55vw, 3.45rem); }
    .hero-line { margin-top: .38rem; font-size: .89rem; }
    .product-plate { border-radius: 9px; }
    .product-plate figcaption { padding: .4rem .6rem; }
    .participate { padding: 10px 0 1px; }
    .line-cta { min-height: 58px; padding-block: 6px; }
}
@media (max-width: 360px) {
    .site { width: calc(100% - 24px); }
    .masthead { min-height: 48px; }
    .hero-copy { padding: 8px 7px 12px; }
    .hero-copy h1 strong { font-size: 2.48rem; }
}
.theme-figure {
    --paper:#efedf7; --card:#fdfbff; --glow:#e1e1f6; --line:#dcd8ed;
    --pine:#343159; --ink:#262347; --ink-muted:#554f6e; --accent:#a14932; --plate:#3a3554; --hover:#4c467a;
}
.theme-crystal {
    --paper:#f2ebf5; --card:#fffafd; --glow:#e7dbee; --line:#e0d2e8;
    --pine:#513956; --ink:#38283c; --ink-muted:#654c68; --accent:#8a426c; --plate:#503951; --hover:#67496c;
}
.theme-plush {
    --paper:#f6ece2; --card:#fffbf5; --glow:#f4ddcb; --line:#ead4c2;
    --pine:#663c2e; --ink:#472d25; --ink-muted:#67534a; --accent:#a8472a; --plate:#694536; --hover:#7b4a36;
}
.theme-baby {
    --paper:#eef1e8; --card:#fdfbf2; --glow:#e0ebd8; --line:#d7dfce;
    --pine:#3d594b; --ink:#243b32; --ink-muted:#496055; --accent:#67583c; --plate:#3e574c; --hover:#4e6c5c;
}
.product-page .preview-label { border-color: var(--line); color: var(--ink-muted); }
.product-page .gift-mark { border-radius: 5px; transform: rotate(45deg) scale(.78); }
.product-page .gift-mark::before { border-radius: 1px; }
