:root {
    color-scheme: dark;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    --ivory: #f5efdd;
    --quiet: #c7d3c6;
    --pine: #0b211c;
    --panel: #122e25;
    --brass: #c5ae7d;
}
* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ivory);
    background: radial-gradient(ellipse at 50% 18%, #274338 0%, #112920 44%, #081713 90%);
}
p, h1, h2 { margin: 0; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid #efe1ae;
    outline-offset: 4px;
}
.site {
    width: min(100%, 508px);
    margin: 0 auto;
    background: var(--pine);
    box-shadow: 0 14px 80px #0007;
}
.poster {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    background: #142c21;
}
.poster-photo { display: block; width: 100%; height: auto; }
.poster::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, #0b211c70, transparent 43%, transparent 80%, #08181270);
    content: "";
    pointer-events: none;
}
.poster-copy {
    position: absolute;
    z-index: 1;
    top: 8%;
    inset-inline: 8%;
    text-align: left;
    text-shadow: 0 2px 16px #071712b0;
}
.campaign-label {
    display: inline-block;
    max-width: 100%;
    padding: .22em .78em .24em;
    border: 1px solid #d4c69c9c;
    border-radius: 1px;
    overflow-wrap: anywhere;
    color: #f3dfad;
    font-size: .77rem;
    font-size: clamp(.72rem, 3.05cqi, .9rem);
    font-weight: 700;
    letter-spacing: .13em;
}
h1 { margin-top: .17em; }
h1 span {
    display: block;
    color: #e5cea0;
    font-size: clamp(1.42rem, 6.35vw, 2.05rem);
    font-size: clamp(1.26rem, 6.35cqi, 2.05rem);
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.23;
}
h1 strong {
    display: block;
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: clamp(2.8rem, 13.5vw, 4.28rem);
    font-size: clamp(2.55rem, 13.5cqi, 4.28rem);
    letter-spacing: .065em;
    line-height: 1.13;
}
.poster-line {
    width: fit-content;
    margin-top: .5em;
    padding-top: .55em;
    border-top: 1px solid #c5ae7db0;
    color: #e2e6d5;
    font-size: .86rem;
    font-size: clamp(.8rem, 3.75cqi, 1.08rem);
    letter-spacing: .075em;
}
.viewfinder {
    position: absolute;
    z-index: 1;
    inset: 3.8% 4.8% 4.5%;
    pointer-events: none;
    opacity: .72;
    --corner: linear-gradient(var(--brass), var(--brass));
    background: var(--corner) left top / 19px 1px, var(--corner) left top / 1px 19px,
                var(--corner) right top / 19px 1px, var(--corner) right top / 1px 19px,
                var(--corner) left bottom / 19px 1px, var(--corner) left bottom / 1px 19px,
                var(--corner) right bottom / 19px 1px, var(--corner) right bottom / 1px 19px;
    background-repeat: no-repeat;
}
.image-note {
    position: absolute;
    z-index: 1;
    bottom: 6.7%;
    inset-inline: 8%;
    color: #d7dccb;
    font-size: .78rem;
    letter-spacing: .07em;
    text-align: right;
}
.participate {
    padding: 11px 7% calc(13px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #536754;
    background: #142b23;
    text-align: center;
}
.line-cta {
    display: flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 8px 12px;
    border: 1px solid #f2e2b5;
    border-radius: 8px;
    color: #15271d;
    background: #f6efda;
    font-size: clamp(1.02rem, 4.5vw, 1.18rem);
    font-weight: 800;
    letter-spacing: .055em;
    text-decoration: none;
}
.line-cta:hover { background: #fff7df; }
.line-cta:disabled { border-color: #748172; color: #e9ece1; background: #253a30; cursor: default; }
.line-icon { display: block; width: 42px; height: 42px; object-fit: contain; flex: none; }
.participate-note { margin-top: 8px; color: var(--quiet); font-size: .875rem; line-height: 1.45; text-wrap: balance; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; color: var(--quiet); font-size: .86rem; line-height: 1.55; text-align: left; }
input[type=checkbox] { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: #b7d4aa; }
.info { padding: 15px 7% max(21px, env(safe-area-inset-bottom)); border-top: 1px solid #607463; color: var(--quiet); font-size: .91rem; line-height: 1.7; }
summary { padding: 6px 0; color: var(--ivory); font-weight: 700; cursor: pointer; }
.details-body { padding: 4px 0 10px; }
.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 #8e9d82; border-radius: 12px; background: var(--panel); color: var(--ivory); }
.handoff a { display: inline-block; margin-top: 18px; padding: 10px 17px; border-radius: 6px; color: #15271d; background: var(--ivory); font-weight: 700; text-decoration: none; }
.handoff-page { display: grid; place-items: center; padding: 20px; }
.handoff h1 { margin: 0 0 12px; font-size: 1.6rem; }
@media(min-width: 551px) {
    .site { margin: 20px auto; overflow: hidden; border: 1px solid #617863; border-radius: 10px; }
}
@media(max-width: 550px) {
    .camera-page { min-height: 100svh; background: var(--pine); }
}
@media(max-width: 550px) and (orientation: portrait) {
    .site { width: min(100%, max(268px, calc((100svh - var(--cta-space, 122px) - env(safe-area-inset-bottom, 0px)) * 2 / 3))); box-shadow: none; }
}
@media(max-width: 360px) {
    .site { --cta-space: 143px; }
    .viewfinder { inset: 3.1% 4.8% 4.5%; }
    .poster-copy { top: 6.4%; }
}
