/* Shared by the digital opening, its finished cover and the A6 sample. */
.seri-tenun-seal {
 display:inline-grid;place-items:center;box-sizing:border-box;
 border:3px double #c9ac69;border-radius:50%;background:#17392e;color:#ffe9b2;
 box-shadow:0 0 0 4px #c9ac692e,inset 0 0 0 3px #c9ac691a;
 font-family:'Cormorant Garamond',Georgia,serif;font-style:normal;font-weight:600;
}
#modal[data-pilot-theme="seri-tenun"] .cine-door::before,
body[data-print-theme="seri-tenun"] .art,
#modal[data-pilot-theme="seri-tenun"]:is(.tenun-step-flow,.istimewa.card-opening) .modal-inner::before {
 background:
  repeating-linear-gradient(45deg,transparent 0 9px,#c9ac693b 9px 10px),
  repeating-linear-gradient(-45deg,transparent 0 9px,#c9ac693b 9px 10px),
  radial-gradient(ellipse at center,#c9ac6966 0 8%,transparent 10%) center/26px 26px;
 mask-image:none;
}
#modal[data-pilot-theme="seri-tenun"] .cine-door::after {border-color:#c9ac698c}
#modal[data-pilot-theme="seri-tenun"] .cine-content {justify-content:center}
#modal[data-pilot-theme="seri-tenun"] .cine-content .cine-kicker {margin-top:0}
#modal[data-pilot-theme="seri-tenun"] .cine-names.long-names {font-size:clamp(24px,7vw,37px)}
#modal:is([data-pilot-theme="seri-tenun"],.istimewa) .cine-skip {
 min-height:44px;min-width:92px;background:#f8ebca;color:#17392e;font-weight:700;
}
/* The envelope opens over the guest's actual card. */
.tenun-envelope-seal {display:none}
#modal.istimewa {
 --tenun-panel-ease:cubic-bezier(.38,.04,.19,1);
}
#modal.istimewa .cine-door-left {z-index:2}
#modal.istimewa .tenun-envelope-seal {
 display:grid;position:absolute;z-index:1;top:45%;right:0;
 width:76px;height:76px;transform:translate(50%,-50%);
 font-size:29px;box-shadow:0 5px 18px #081a14a6,inset 0 0 0 3px #c9ac691a;
}
#modal.istimewa .cine-content {
 justify-content:flex-end;padding-bottom:max(48px,env(safe-area-inset-bottom));
}
#modal.istimewa .cine-content > :not(#guestToggle) {display:none}
#modal.istimewa #guestToggle {
 color:#17392e;background:#f8ebca;border-color:#c9ac69;
}
#modal.istimewa.card-opening .cinematic-cover {
 animation:none;background:transparent;
}
#modal.istimewa.card-opening .cine-content {visibility:hidden}
#modal.istimewa.card-opening .cine-door.cine-door-left {
 animation:tenun-left 3.65s var(--tenun-panel-ease) both;
}
#modal.istimewa.card-opening .cine-door.cine-door-right {
 animation:tenun-right 3.65s var(--tenun-panel-ease) both;
}
#modal.istimewa.card-opening .tenun-envelope-seal {
 animation:tenun-unseal .95s ease-in both;
}
#modal.istimewa .envelope-stage #modalCard {transition:none}
#modal.istimewa .envelope-stage {
 min-height:min(78dvh,640px);
}
#modal.istimewa.card-open #modalCard .card-copy > * {animation:none}
#modal.istimewa.card-opening #modalCard .card-copy > * {
 animation:cine-type-in .46s both;
 animation-delay:4.8s!important;
}
#modal.istimewa.card-opening #modalCard .card-copy > .top {
 animation:tenun-mark-in .6s 2.35s both!important;
}
#modal.istimewa.card-opening #modalCard .card-copy > :is(.tiny,.names) {animation-delay:3.35s!important}
#modal.istimewa.card-opening #modalCard .card-copy > .date {animation-delay:4.1s!important}
#modal.istimewa.card-opening .modal-inner > :not(.cinematic-cover,.close,.envelope-stage,#istimewaArtwork) {
 visibility:hidden;
}
#modal[data-pilot-theme="seri-tenun"][data-pilot-package="manis"].card-opening .cinematic-cover {animation:tenun-fade var(--tenun-duration) ease both}
#modal[data-pilot-theme="seri-tenun"][data-pilot-package="manis"].card-opening :is(.cine-content,.cine-door,.cine-halo) {animation:none}
#modal[data-pilot-theme="seri-tenun"][data-pilot-package="manis"].card-opening #modalCard {transition:none}
#modal[data-pilot-theme="seri-tenun"][data-pilot-package="manis"].card-opening #modalCard .card-copy>* {animation:none}
#modal[data-pilot-theme="seri-tenun"].card-open .envelope-stage {min-height:auto}
body[data-print-theme="seri-tenun"] .seal {margin-inline:auto}
@keyframes tenun-left {0%,18%{transform:translateX(0)}100%{transform:translateX(-104%)}}
@keyframes tenun-right {0%,18%{transform:translateX(0)}100%{transform:translateX(104%)}}
@keyframes tenun-unseal {
 0%,28%{opacity:1;transform:translate(50%,-50%)}
 100%{opacity:0;transform:translate(50%,-50%) scale(.84)}
}
@keyframes tenun-mark-in {from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
@keyframes tenun-fade {to{opacity:0}}
#modal[data-pilot-theme="seri-tenun"] .cine-content :is(.cine-date,.cine-venue,.cine-kicker,small) {
 color:inherit;opacity:1;
}
#modal[data-pilot-theme="seri-tenun"] .cine-content .cine-date {font-size:14px}
#modal[data-pilot-theme="seri-tenun"] .cine-content small {margin-bottom:0}
#modal[data-pilot-theme="seri-tenun"] :is(.cine-names,.cine-date,.cine-venue) {text-shadow:0 1px 5px var(--guest-paper)}
#modal[data-pilot-theme="seri-tenun"] .cine-content .cine-kicker {margin-bottom:16px}
#modal[data-pilot-theme="seri-tenun"] .cine-content .cine-rule {margin:16px 0 12px}
#modal[data-pilot-theme="seri-tenun"] .cine-monogram {flex-basis:auto}
@media(prefers-reduced-motion:reduce) {
 #modal.istimewa.card-opening #modalCard .card-copy > .top {animation:none!important}
}

/* The border stays in place as each page of the card turns. */
#modal.istimewa {
 --tenun-gold:#c9ac69;
 --tenun-margin:clamp(9px,2.8vw,15px);
 --tenun-inset:calc(var(--tenun-margin) + 7px);
}
#modal:is(.tenun-step-flow,.istimewa.card-opening) .modal-inner {
 isolation:isolate;
 background:radial-gradient(ellipse at 50% 30%,#c9ac6914,transparent 66%),var(--guest-paper);
}
#modal:is(.tenun-step-flow,.istimewa.card-opening) .modal-inner::before {
 content:'';position:absolute;inset:0;pointer-events:none;
 mask-image:
  linear-gradient(to right,#000,transparent 23%,transparent 77%,#000),
  linear-gradient(to bottom,#000,transparent 22%,transparent 78%,#000);
 opacity:.48;
}
#modal:is(.tenun-step-flow,.istimewa.card-opening) .modal-inner::after {
 content:'';position:absolute;inset:var(--tenun-margin);pointer-events:none;z-index:1;
 border:3px double var(--tenun-gold);border-radius:46% 46% 21px 21px / 62px 62px 21px 21px;
 box-shadow:inset 0 0 20px #c9ac6919;
}
#modal.istimewa.card-opening #envelopeStage,
#modal.tenun-step-flow #envelopeStage.tenun-step-current {
 padding:0;display:flex;align-items:stretch;perspective:none;overflow-x:hidden;
}
#modal.istimewa.card-opening #envelopeStage {
 height:calc(100dvh - 116px);
}
#modal.istimewa.card-open #envelopeStage::after {display:none}
#modal.istimewa #modalCard {
 display:flex;outline:none;
}
#modal.istimewa #modalCard .invitation {
 min-height:0!important;padding:clamp(52px,10dvh,88px) clamp(25px,8vw,52px) 20px!important;
 background:transparent!important;border:0;border-radius:0;box-shadow:none;justify-content:safe center;
}
#modal.istimewa #modalCard .invitation > :not(.card-copy),
#modal.istimewa #modalCard [hidden] {display:none}
#modal.istimewa #modalCard .invitation::before,
#modal.istimewa #modalCard .invitation::after {display:none}
#modal.istimewa #modalCard .card-copy {
 background:none;color:var(--guest-ink);text-align:center;
}
#modal.istimewa #modalCard .card-copy :is(.tiny,.date) {color:inherit}
#modal.istimewa #modalCard .card-copy .top {opacity:1;margin-bottom:17px}
#modal.istimewa #modalCard .card-copy .names:not(.long-names) {
 font-size:clamp(50px,13.5vw,78px)!important;line-height:.98!important;
}
#modal.istimewa #modalCard .card-copy .date {
 display:block;width:fit-content;margin:20px auto 0;padding:9px 20px;
 border-block:1px solid var(--tenun-gold);font-size:12px;letter-spacing:.12em;
}
#modal.istimewa #modalCard .card-copy .bottom {display:none}
#modal.tenun-step-flow .modal-inner {
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto auto auto auto;
 overflow:hidden;scroll-behavior:auto;
}
#modal.tenun-step-flow .modal-inner > :not(.close,.tenun-step-nav,.tenun-step-support,.tenun-step-current,#invitationStory,#guestFooter,#guestNav,#youtubeGuest,#istimewaArtwork),
#modal.tenun-step-flow #envelopeStage:not(.tenun-step-current),
#modal.tenun-step-flow #invitationStory > :not(.tenun-step-current),
#modal.tenun-step-flow .tenun-step-support[hidden],
#modal.tenun-step-flow .tenun-step-nav button[hidden],
#modal.tenun-step-flow:not(:has(#guestSection.tenun-step-current)) #guestFooter,
#modal.tenun-step-flow #guestFooter[hidden] {display:none}
#modal.tenun-step-flow #invitationStory {display:contents}
#modal.tenun-step-flow .tenun-step-current {
 grid-area:1/1/2/-1;z-index:2;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;
 outline:none;scrollbar-width:thin;scroll-padding:24px;
 animation:tenun-step-in .7s cubic-bezier(.22,.7,.25,1) both;
}
#modal.tenun-step-flow.tenun-cover-step .tenun-step-current {animation:none}
#modal.tenun-step-flow .tenun-step-current:not(.envelope-stage) {
 display:flex;flex-direction:column;justify-content:safe center;
 padding:clamp(46px,8dvh,74px) clamp(27px,9vw,48px) 20px;
 background:transparent;border:0;text-align:center;color:var(--guest-ink);
}
#modal.tenun-step-flow .tenun-step-current::before {color:var(--tenun-gold);margin-bottom:12px}
#modal.tenun-step-flow .tenun-step-current h3 {
 font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;
 font-size:clamp(31px,9vw,42px);line-height:1.02;margin:8px 0 16px;
}
#modal.tenun-step-flow .tenun-step-current .story-reveal {opacity:1;transform:none;transition:none}
#modal.tenun-step-flow .story-eyebrow {color:inherit;letter-spacing:.18em}
#modal.tenun-step-flow .story-rule {background:var(--tenun-gold)}
#modal.tenun-step-flow .story-names {font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(32px,10vw,50px);line-height:1.05}
#modal.tenun-step-flow .story-names span {color:var(--tenun-gold);margin:5px 0;font-size:20px}
#modal.tenun-step-flow .story-parents {border-color:#c9ac6966;margin:12px 0;padding:6px 0}
#modal.tenun-step-flow .story-action {min-height:44px;border-color:var(--tenun-gold);margin-top:6px}
#modal.tenun-step-flow .tenun-featured-date {
 display:grid;gap:2px;width:fit-content;min-width:132px;margin:12px auto 10px;padding:19px 21px 14px;
 border:3px double var(--tenun-gold);border-radius:46% 46% 14px 14px / 36px 36px 14px 14px;
 font:500 21px/1.05 'Cormorant Garamond',Georgia,serif;
}
#modal.tenun-step-flow .tenun-featured-date span:nth-child(2) {font-size:clamp(52px,16vw,75px);line-height:.9}
#modal.tenun-step-flow .tenun-event-time {letter-spacing:.08em;margin-bottom:20px}
#modal.tenun-step-flow .countdown {margin:12px 0;gap:5px}
#modal.tenun-step-flow .countdown > div {border-color:#c9ac6977}
#modal.tenun-step-flow .countdown small {letter-spacing:0}
#modal.tenun-step-flow :is(.guest .btn,.tenun-step-nav #tenunNext) {background:#f8ebca;color:#17392e;border-color:var(--tenun-gold)}
#modal.tenun-step-flow .guest :is(input,select,textarea) {padding:9px 11px;min-height:38px}
#modal.tenun-step-flow .guest textarea {min-height:55px}
#modal.tenun-step-flow .guest input,.tenun-step-flow .guest select,.tenun-step-flow .guest textarea {font-size:16px}
#modal.tenun-step-flow .tenun-step-support {z-index:2;margin-block:0}
#modal.tenun-step-flow .guest-demo-label {grid-area:3/1/4/-1;font-size:9px;margin:0 0 4px}
#modal.tenun-step-flow .music-player {
 grid-area:2/1/3/2;justify-content:flex-start;min-width:0;
 gap:6px;border:0;background:none;padding:0 0 0 calc(var(--tenun-inset) + 3px);
}
#modal.tenun-step-flow .music-player :is(#musicTitle,label,#musicStatus) {
 position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}
#modal.tenun-step-flow .music-player button {
 color:inherit;background:none;border:1px solid #c9ac6977;min-height:40px;padding:6px 9px;
}
#modal.tenun-step-flow #musicVolume {width:clamp(35px,12vw,60px);accent-color:var(--tenun-gold)}
#modal.tenun-step-flow .motion-toolbar {grid-area:2/2/3/3;margin-right:calc(var(--tenun-inset) + 3px);padding:0}
#modal.tenun-step-flow .motion-toolbar span {display:none}
#modal.tenun-step-flow .motion-toolbar button {min-height:40px}
#modal.tenun-step-flow #guestFooter {
 grid-area:3/1/4/-1;justify-self:end;z-index:2;padding:0 calc(var(--tenun-inset) + 3px) 3px;font-size:0;
}
#modal.tenun-step-flow #guestFooter span {margin:0;font-size:10px}
#modal .tenun-step-nav[hidden] {display:none}
#modal.tenun-step-flow .tenun-step-nav {
 grid-area:4/1/5/-1;z-index:2;display:grid;gap:6px;justify-items:center;justify-content:center;
 width:auto;height:auto;max-width:none;margin:0;border:0;background:none;color:inherit;
 padding:4px calc(var(--tenun-inset) + 4px) 6px;
}
.tenun-step-nav > span {font-size:11px;letter-spacing:.05em}
.tenun-step-nav > div {display:flex;gap:8px;justify-content:center;width:100%}
.tenun-step-nav button {
 min-height:44px;padding:8px 19px;border:1px solid var(--tenun-gold);border-radius:24px;background:transparent;color:inherit;
}
.tenun-step-nav #tenunNext {font-weight:700}
@keyframes tenun-step-in {
 from{opacity:0;translate:0 12px}
 to{opacity:1;translate:0 0}
}

#modal .guest-nav [hidden] {display:none}
#modal.tenun-step-flow #guestNav {
 grid-area:5/1/6/-1;z-index:2;position:static;
 grid-template-columns:repeat(auto-fit,minmax(40px,1fr));gap:2px;
 margin:0 calc(var(--tenun-inset) + 3px);
 padding:3px 0 max(calc(var(--tenun-inset) + 2px),env(safe-area-inset-bottom));
 color:inherit;background:none;box-shadow:none;border-top:1px solid #c9ac6955;
}
#modal.tenun-step-flow #guestNav button {
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
 min-height:44px;min-width:0;padding:2px 0;font-size:clamp(8px,2.35vw,11px);
 background:none;color:inherit;
}
#modal.tenun-step-flow #guestNav button[hidden] {display:none}
#modal.tenun-step-flow #guestNav b {color:var(--tenun-gold);line-height:1}
#modal.tenun-step-flow #youtubeGuest:not([hidden]) {
 position:absolute;z-index:12;inset:auto var(--tenun-inset) var(--tenun-inset);
 padding:18px;max-height:calc(100% - 2 * var(--tenun-inset));overflow:auto;
 visibility:hidden;pointer-events:none;
 background:var(--guest-paper);border:1px solid var(--tenun-gold);border-radius:14px;
 box-shadow:0 8px 32px #0008;
}
#modal.tenun-step-flow.tenun-player-open #youtubeGuest:not([hidden]) {
 visibility:visible;pointer-events:auto;
}
.tenun-player-close {
 min-height:44px;padding:6px 15px;color:inherit;background:transparent;
 border:1px solid var(--tenun-gold);border-radius:24px;
}

/* Keep the selected card's existing decoration around the premium pages. */
#istimewaArtwork {display:none}
#modal.istimewa:is(.card-opening,.tenun-step-flow) #istimewaArtwork:not(:empty) {
 display:block;position:absolute;inset:0;pointer-events:none;overflow:hidden;
 mask-image:radial-gradient(ellipse at center,transparent 32%,#000 78%);
 opacity:.8;
}
#modal.istimewa #istimewaArtwork .invitation {
 width:100%;height:100%;min-height:0;margin:0;padding:0!important;
 border:0;box-shadow:none;animation:none;
}
#modal.istimewa #istimewaArtwork .invitation > *,
#modal.istimewa #istimewaArtwork .invitation::after {animation:none}
#modal.istimewa:not([data-pilot-theme="seri-tenun"]) #modalCard .invitation {
 padding:clamp(45px,8dvh,74px) clamp(28px,9vw,54px) 18px!important;
}
#modal.istimewa:not([data-pilot-theme="seri-tenun"]) #modalCard .card-copy .names:not(.long-names) {
 font-size:clamp(44px,11vw,65px)!important;
}
#modal.istimewa #modalCard .card-copy .long-names {
 font-size:clamp(27px,7vw,42px)!important;overflow-wrap:anywhere;
}
#modal.istimewa:not([data-pilot-theme="seri-tenun"]) .tenun-envelope-seal,
.istimewa-seal {
 color:var(--guest-ink);background:var(--guest-paper);border:3px double var(--tenun-gold);
 border-radius:50%;font-family:'Cormorant Garamond',Georgia,serif;letter-spacing:0;
}
.istimewa-seal {
 display:inline-grid;place-items:center;width:44px;height:44px;font-size:20px;
}
#modal.istimewa:not([data-pilot-theme="seri-tenun"]) .cine-door::before {
 background:repeating-linear-gradient(112deg,transparent 0 4px,#c9ac691c 5px 6px),
 linear-gradient(135deg,#c9ac692b,transparent 68%);
}
#modal.istimewa:not([data-pilot-theme="seri-tenun"]) .cine-door::after {border-color:#c9ac69aa}
