/* Isolated collage edition: paper layers decorate stable, readable controls. */
body:has(.collage-edition){background:#eeeae1}
body:has(.collage-edition) header.top{background:#fffdf9;border:0}
body:has(.collage-edition) .page{background:#fffdf9;max-width:1160px;margin:0 auto 40px;padding:44px 48px 56px;box-shadow:0 12px 35px #2949360b}
body:has(.collage-edition) .hero{position:relative;align-items:center;max-width:865px;margin-inline:auto;gap:clamp(24px,4vw,56px);padding:8px 0 20px;grid-template-columns:minmax(0,1fr) minmax(300px,360px)}
body:has(.collage-edition) .hero .market-luck-title{font-size:clamp(28px,8.5vw,48px);margin:0 0 20px}


body:has(.collage-edition) .round-tabs{gap:14px;margin:10px 0 38px;align-items:center}
body:has(.collage-edition) .round-tabs button{border-radius:2px;border:1px solid #d5d6c9;background:#fffdf9;padding:12px 20px;box-shadow:3px 4px 0 #e8e8dd;position:relative}
body:has(.collage-edition) .round-tabs button:nth-child(2){transform:rotate(1.5deg)}
body:has(.collage-edition) .round-tabs button:nth-child(3){transform:rotate(-1deg)}
body:has(.collage-edition) .round-tabs button.active{background:#f3cb39;color:#294936;border-color:#f3cb39;box-shadow:4px 5px 0 #294936;transform:rotate(-2deg)}
.collage-edition .participant-journey{gap:68px}
.collage-edition .participant-journey .participation{position:relative;background:#f8f5ec;border-radius:0;border:1px solid #dedfce;padding:38px 32px 28px;box-shadow:7px 8px 0 #e8eddf}
.collage-edition .participation:before{content:'';position:absolute;top:-12px;right:35px;width:78px;height:25px;background:repeating-linear-gradient(90deg,#e8796970 0 9px,#f9ddd4b0 9px 18px);transform:rotate(5deg)}
.collage-edition .participant-journey .participation h2{display:table;background:#294936;color:#fffdf9;padding:7px 15px;margin:-56px 0 22px;font-size:25px;transform:rotate(-2deg);box-shadow:4px 4px 0 #f3cb39}
.collage-edition #ticket-access>summary{font-size:15px}
.collage-edition .participant-journey #join-form input{border-radius:3px;background:#fffdf9}
.collage-edition .participant-journey #join-form button{border-radius:4px;box-shadow:3px 3px 0 #294936}
.collage-edition .watch-heading{display:table;background:#f3cb39;padding:6px 15px;transform:rotate(-1deg);box-shadow:5px 5px 0 #f9ddd4;margin-bottom:20px}
.collage-edition .watch-copy{margin-bottom:32px}
.collage-edition .participant-journey .stage-head h2{font-size:22px}
.collage-edition .participant-journey .timeline{background:#f8f5ec;border-radius:0;padding:20px 24px;border-left:4px solid #e87969}
.collage-edition .slot-stage{position:relative;isolation:isolate;margin-top:40px;margin-bottom:30px}
.collage-edition .slot-stage:before{content:'';position:absolute;z-index:-1;inset:14px 14px 72px 0;background:#fff1be;transform:rotate(-3deg);border:1px solid #f0d77a}
.collage-edition .participant-journey .winners{background:#f6f6ed;padding:26px 28px;position:relative;box-shadow:5px 6px 0 #e2e7dc;margin-top:36px}
.collage-edition .winners>h3{display:table;background:#294936;color:#fffdf9;margin:-40px 0 20px;padding:5px 12px;transform:rotate(1deg)}
.collage-edition .participant-journey .winner{background:none;border-radius:0;border-bottom:1px dashed #d6d9cb;padding:12px 0;margin:0}
.collage-edition .participant-journey .winner:last-child{border-bottom:0}
body:has(.collage-edition) .next-round-guide{gap:28px 36px;margin-top:68px}
body:has(.collage-edition) .next-round-guide>h3{display:table;justify-self:start;background:#294936;color:#fffdf9;padding:6px 14px;transform:rotate(-2deg);box-shadow:4px 4px 0 #f3cb39}
body:has(.collage-edition) .next-round-guide article{background:#fff1be;border-radius:0;padding:26px;position:relative;box-shadow:5px 6px 0 #ece5ce;transform:rotate(-.6deg)}
body:has(.collage-edition) .next-round-guide article:nth-of-type(2){background:#f9ddd4;transform:rotate(.8deg);box-shadow:5px 6px 0 #edc7bb}
body:has(.collage-edition) .next-round-guide .tag{background:#fffdf9;border-radius:0;padding:4px 8px}
body:has(.collage-edition) .next-round-guide article h3{font-size:21px}
body:has(.collage-edition) .next-round-guide .guide-action{border-radius:3px;background:#fffdf9;border:1px solid #294936;box-shadow:2px 2px 0 #294936}
body:has(.collage-edition) .rules{margin-top:46px}
body.big-screen:has(.collage-edition){background:#fffdf9}
body.big-screen .collage-edition .slot-stage:before{display:none}
@media(max-width:767px){body:has(.collage-edition) .page{padding:34px 20px 40px;margin-bottom:0}body:has(.collage-edition) .hero{grid-template-columns:1fr;gap:28px;padding-bottom:26px}body:has(.collage-edition) .round-tabs{gap:9px;margin-bottom:40px}body:has(.collage-edition) .round-tabs button{padding:10px 12px;font-size:12px}.collage-edition .participant-journey .participation{padding:34px 18px 22px}.collage-edition .participant-journey .participation h2{font-size:22px;margin-top:-50px}.collage-edition .watch-heading{font-size:22px}.collage-edition .participant-journey .timeline{padding:18px}.collage-edition .participant-journey .winners{padding:24px 18px}.collage-edition .slot-stage:before{inset:16px 10px 100px -5px}body:has(.collage-edition) .next-round-guide article{transform:none!important}body:has(.collage-edition) .next-round-guide{gap:24px}.collage-edition .participant-journey{gap:48px}}

/* Let the machine's rounded housing provide depth without a paper backing. */
.collage-edition .slot-stage:before{display:none}
.collage-edition .slot-machine{box-shadow:0 5px 0 #ca7893,0 15px 26px #854d6317}

/* Ticket heading: coral paper with a forest-green offset edge. */
.collage-edition .participant-journey .participation h2{background:#e87969;color:#294936;box-shadow:4px 4px 0 #294936}

/* A light paper label, with coral tape rather than a heavy color block. */
.collage-edition .participant-journey .participation h2{position:relative;background:#fffdf9;color:#294936;box-shadow:2px 3px 0 #dedfd3;border:1px solid #dedfd3;padding:10px 20px;transform:rotate(-1deg);font-size:25px}
.collage-edition .participant-journey .participation h2:before{content:'';position:absolute;left:18px;top:-9px;width:48px;height:15px;background:#e87969b3;transform:rotate(-5deg)}
@media(max-width:767px){.collage-edition .participant-journey .participation h2{font-size:22px;padding:9px 15px}}

/* Shape rhythm: paper content, pill navigation, generous separation. */
body:has(.collage-edition) .round-tabs{gap:12px;margin-top:18px;margin-bottom:68px}
body:has(.collage-edition) .round-tabs button,
body:has(.collage-edition) .round-tabs button:nth-child(2),
body:has(.collage-edition) .round-tabs button:nth-child(3){border-radius:999px;transform:none;box-shadow:none;padding:11px 21px;min-height:46px;white-space:nowrap;background:transparent;border:1px solid #cfd5c7;color:#596852}
body:has(.collage-edition) .round-tabs button.active{border-radius:999px;transform:none;box-shadow:none;background:#f3cb39;border-color:#f3cb39;color:#294936}
body:has(.collage-edition) .round-tabs button:hover:not(.active){background:#f4f2e9;border-color:#9ba993}
@media(max-width:767px){body:has(.collage-edition) .round-tabs{gap:10px;margin-top:14px;margin-bottom:56px}body:has(.collage-edition) .round-tabs button{padding:10px 15px;font-size:12px;min-height:44px}}

/* Round navigation is centered as one group, including wrapped rows. */
body:has(.collage-edition) .round-tabs{justify-content:center}

/* Unopened rounds offer an announcement, without revealing the round content. */
body.round-pending .participant-journey,body.round-pending .next-round-guide,body.round-pending .rules,body.round-pending .footer{display:none!important}
body:has(.collage-edition) .round-tabs button.pending-round,
body:has(.collage-edition) .round-tabs button.pending-round.active{background:#eeeee8;color:#777c72;border-color:#dedfd7;box-shadow:none}
body:has(.collage-edition) .round-tabs button.pending-round.active{border-color:#929b8b}
.pending-sticker{position:relative;max-width:620px;margin:0 auto 60px;padding:44px 34px;background:#fff1be;text-align:center;transform:rotate(-1deg);box-shadow:6px 7px 0 #f9ddd4}
.pending-sticker:before{content:'';position:absolute;top:-12px;left:calc(50% - 36px);width:72px;height:23px;background:#e8796970;transform:rotate(5deg)}
.pending-sticker>span{font-size:13px;color:#596852}.pending-sticker h2{font:700 26px/1.6 'PingFang SC',system-ui,sans-serif;margin:14px 0;color:#294936}.pending-sticker p{font-size:14px;line-height:1.9;color:#596852;margin:0}
@media(max-width:767px){.pending-sticker{padding:32px 22px;margin-bottom:36px}.pending-sticker h2{font-size:22px}}


/* Centered prize text inside the curved ribbon silhouette. */
.workshop-gift {
  position:relative; isolation:isolate; display:grid; align-items:center;
  justify-self:center; width:100%; max-width:420px; min-width:0;
  aspect-ratio:930 / 910; padding:19% 12% 6%; text-align:center;
}
.gift-frame-art {transform:rotate(-3deg);position:absolute; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none}
.gift-letter {position:relative; min-width:0; color:#354b3e}
.gift-letter h2 {
  margin:5px 0 10px; color:#294936;
  font:750 clamp(19px,2vw,26px)/1.35 'PingFang SC',system-ui,sans-serif; text-wrap:balance;
}
.gift-letter h2 span {display:block;font-size:.68em;margin-top:3px;letter-spacing:.08em}
.gift-year {margin:0;color:#845345;font:16px/1.4 Hand,'PingFang SC',sans-serif}
.gift-benefit {display:flex;justify-content:center;align-items:center;gap:10px;margin:0 0 11px}
.gift-benefit b {background:#ffe18a;color:#374734;border-radius:5px;padding:1px 10px;font-size:15px}
.gift-benefit s {color:#73695c;font-size:14px}
.gift-purpose,.gift-date {margin:0;font-size:14px;line-height:1.6;text-wrap:balance}
.gift-date {margin-top:8px;border-top:1px dashed #e6b7a6;padding-top:7px;font-size:13px;color:#586455}
/* The desktop wordmark forms a stepped, two-line lockup beside the bow. */
.market-intro {position:relative;min-width:0}
.hero-ink {position:absolute;display:block;height:auto;pointer-events:none}
.intro-stroke {width:88px;top:-32px;left:-32px;transform:rotate(-7deg)}
.ribbon-trail {width:clamp(105px,12vw,155px);right:-27%;bottom:-45px;transform:rotate(-7deg)}
.bow-strokes {width:47px;top:1%;right:0;transform:rotate(9deg)}
.market-intro .muted {margin:0;font-size:14px;line-height:1.65}
@media (min-width:768px) {
  .market-intro {justify-self:center;width:max-content;max-width:100%}
  body:has(.collage-edition) .hero .market-luck-title {
    display:grid;grid-template-columns:auto auto;gap:0 12px;justify-content:start;
    align-items:baseline;width:max-content;padding:0;margin:0 0 21px;
    font-size:clamp(54px,5.8vw,78px);line-height:1.15;
  }
  .market-intro .market-luck-name {grid-column:1 / -1;margin-bottom:12px}
  .market-intro .market-luck-divider {justify-self:end;padding-left:.92em;font-size:.74em}
  .market-intro .market-luck-name svg {height:18px;bottom:-8px}
}
@media (min-width:768px) and (max-width:940px) {
  body:has(.collage-edition) .hero {grid-template-columns:minmax(0,1fr) minmax(300px,.91fr);gap:24px}
}
@media (max-width:767px) {
  body:has(.collage-edition) .hero {max-width:420px;gap:18px}
  body:has(.collage-edition) .hero .market-luck-title {gap:8px;padding-right:0;font-size:clamp(26px,8.15vw,40px)}
  .market-intro {padding-top:20px}
  .intro-stroke {width:50px;left:2px;top:0}
  .ribbon-trail {width:68px;right:1%;bottom:-28px}
  .bow-strokes {width:32px;right:0;top:3%}
  .gift-frame-art {transform:rotate(-2deg)}
  .market-intro .muted {font-size:13px}
}
.gift-purpose span,.gift-date span {display:inline-block}

#round2-list .letter-rule {line-height:1.95;margin:0 0 .85rem}
.letter-rule-mark {
  padding-bottom:.16em;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6Q43 2 82 4T158 5Q191 2 224 5T298 4' fill='none' stroke='%23f3c62e' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position:left bottom;
  background-size:100% .42em;
  background-repeat:no-repeat;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
.write-letter-link {
  display:inline-flex;align-items:center;gap:.45em;min-height:44px;
  margin:0 0 1rem;padding:0 .35em 0 0;color:#294936;
  font-size:16px;font-weight:600;text-decoration:none;
}
.write-letter-link[hidden] {display:none}
.write-letter-link > span {border-bottom:1px dashed #ba7963;padding-bottom:1px}
.write-letter-link:hover > span {border-bottom-style:solid}
.write-letter-link:hover .write-letter-arrow {transform:translateX(2px)}
.write-letter-link:focus-visible {outline:2px solid #876343;outline-offset:3px;border-radius:3px}

body.round-pending:has(#round2-list:not([hidden])) .participant-journey {display:grid!important}

body.round-pending #round2-list:not([hidden]) ~ .stage {display:none}
