:root{color-scheme:light;--navy:#062d49;--paper:#e6ddd2;--gold:#e9c774}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--navy);font-family:Arial,sans-serif;background-image:radial-gradient(ellipse at 50% 45%,#f8f3eccc,transparent 70%)}main{min-height:100svh;display:flex;align-items:center;justify-content:center;padding:24px 12px 96px}.invitation-area{width:min(100%,1100px);height:min(72svh,650px);display:flex;justify-content:center;align-items:center}#card-scene{display:block;position:relative;width:100%;height:100%;border:0;background:transparent;padding:0;cursor:pointer;touch-action:manipulation}#card-scene canvas{display:block;width:100%;height:100%;filter:drop-shadow(0 12px 10px #10243725)}.loading{font:14px Georgia,serif;color:var(--navy)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.floating-menu{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));right:calc(20px + env(safe-area-inset-right));z-index:20;display:flex;flex-direction:column;align-items:flex-end;gap:12px}#menu-toggle{width:58px;height:58px;border:1px solid #d0af6b;background:var(--navy);color:var(--gold);border-radius:50%;display:grid;place-items:center;box-shadow:0 6px 22px #062d4933;cursor:pointer}#menu-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}#menu-options{width:215px;padding:8px;background:#fffaf3;border:1px solid #b79d6b55;border-radius:20px;box-shadow:0 12px 40px #062d4929}#menu-options:not([hidden]){display:grid;animation:menu-in .18s ease-out}#menu-options button,#menu-options a{display:flex;align-items:center;gap:13px;width:100%;min-height:52px;border:0;border-radius:12px;background:none;color:var(--navy);font:14px Arial,sans-serif;text-align:left;text-decoration:none;padding:12px 14px;cursor:pointer}#menu-options span{font-size:23px;width:24px;text-align:center}#menu-options button:hover,#menu-options a:hover{background:#e6ddd266}.menu-backdrop{position:fixed;inset:0;z-index:10;background:#062d490a}button:focus-visible,a:focus-visible{outline:2px solid #a17b32;outline-offset:4px}dialog{width:min(680px,100%);height:90svh;max-height:90svh;border:0;border-radius:22px;padding:0;background:var(--paper);color:var(--navy);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 70px #0004}dialog::backdrop{background:#001c32aa;backdrop-filter:blur(5px)}.dialog-header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;background:#e6ddd2f5;padding:10px 14px 10px 22px;border-bottom:1px solid #062d491a}.dialog-header h1{font:20px Georgia,serif;margin:0}.dialog-header button{height:46px;width:46px;font-size:30px;color:var(--navy);background:none;border:0;border-radius:50%;cursor:pointer}.reading-panels{display:grid;gap:24px;padding:18px}.reading-panels svg{display:block;width:100%;height:auto}.reading-panels svg:not(:first-child){width:75%;margin:0 auto}@keyframes menu-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){main{padding:12px 8px 88px}.invitation-area{height:70svh}dialog{width:100%;max-width:100%;height:94svh;max-height:94svh;margin:auto 0 0;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}.reading-panels{padding:12px;gap:20px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.modal-details{padding:24px 22px 4px}.occasion{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:#80682e}.modal-details h2{font:26px Georgia,serif;margin:12px 0 20px}.modal-details dl{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0 0 24px}.modal-details dt{font-size:11px;color:#6b706e;margin-bottom:8px}.modal-details dd{margin:0;font-size:15px;line-height:1.6}.rsvp-action{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;min-height:52px;border-radius:12px;background:var(--navy);color:var(--gold);text-decoration:none;font-size:15px}.modal-details .map-title{font-size:20px;margin-top:28px;margin-bottom:12px}.modal-details iframe{display:block;width:100%;height:220px;border:0;border-radius:12px;background:#d3d0c7}.directions{display:inline-flex;align-items:center;min-height:48px;color:var(--navy);font-size:13px;text-underline-offset:4px}


/* The entire experience uses a landscape canvas, including navigation. */
html{overflow:hidden}
body{position:fixed;inset:0;width:100vw;height:100svh;overflow:hidden}
main{width:100%;height:100%;min-height:0;overflow:hidden;padding:16px 24px}
.invitation-area{width:min(calc(100% - 72px),1100px);height:100%;max-height:750px}
@media(orientation:portrait){
  body{inset:auto;top:0;left:0;width:100svh;height:100vw;transform-origin:top left;transform:rotate(90deg) translateY(-100%)}
  main{padding:12px 20px}
  .invitation-area{height:100%;width:calc(100% - 72px)}
  .floating-menu{right:calc(14px + env(safe-area-inset-bottom));bottom:14px;gap:8px}
  #menu-toggle{width:48px;height:48px}
  #menu-options{padding:6px;width:205px}
  #menu-options button,#menu-options a{min-height:48px}
  dialog{position:fixed;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg);width:min(680px,calc(100svh - 24px));max-width:none;height:calc(100vw - 24px);max-height:none;margin:0;border-radius:18px;padding-bottom:0}
  .dialog-header{padding:4px 14px 4px 22px}
  .modal-details{padding-top:12px}
}
@media(orientation:landscape) and (max-height:600px){
  .floating-menu{right:14px;bottom:14px}
  #menu-toggle{width:48px;height:48px}
  dialog{height:calc(100svh - 24px);max-height:calc(100svh - 24px)}
}

.invitation-copy{font-family:"Myanmar Text","Noto Sans Myanmar",sans-serif;font-size:16px;line-height:2}.invitation-copy h3{font-size:20px;font-weight:500;margin:20px 0 10px}.invitation-copy p{margin:0 0 16px}.invitation-english{font-size:15px;line-height:1.75;margin:0 0 26px;color:#42515a}.modal-details dt{line-height:1.7}.office-contact{font-size:13px;line-height:1.8;margin:16px 0}.office-contact a{color:var(--navy);text-underline-offset:3px}

.rsvp-deadline{margin:0 0 18px;padding:18px;border:1px solid #b79d6b99;border-left:4px solid #a17b32;border-radius:10px;background:#fff6dd}.rsvp-deadline strong{display:block;font-size:17px;line-height:1.5}.rsvp-deadline p{font-size:14px;line-height:1.7;margin:10px 0 0}.rsvp-deadline p[lang="my"]{font-family:"Myanmar Text","Noto Sans Myanmar",sans-serif;line-height:2}.contact-section{margin:28px 0}.contact-section h2{font-size:20px}.contact-list{list-style:none;padding:0;margin:0}.contact-list li+li{border-top:1px solid #062d491c}.contact-list a{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;min-height:56px;padding:14px 0;color:var(--navy);text-decoration:none;font-size:14px;line-height:1.5}.contact-list a span:last-child{white-space:nowrap;text-decoration:underline;text-underline-offset:4px}.contact-list a:hover{color:#826123}

.venue-room{font-size:15px;margin:0 0 16px;color:#42515a}.venue-photo{display:block;width:100%;height:auto;aspect-ratio:1360/907;object-fit:cover;border-radius:12px;margin-bottom:16px}

.anniversary-motto{font-size:13px;letter-spacing:1.2px;line-height:1.7;color:#80682e;margin:-10px 0 24px}

/* Warm tabletop beneath the original animated paper invitation. */
body{
  background-color:#765034;
  background-image:radial-gradient(ellipse at 45% 38%,#fff4de10 0%,#180d052e 100%),url('assets/walnut-table-v2.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
#card-scene canvas{filter:drop-shadow(2px 5px 3px #180c093d) drop-shadow(8px 20px 15px #180c0947)}
.loading{color:#ffedcb;text-shadow:0 1px 3px #0006}
#menu-toggle{box-shadow:0 5px 18px #160c0655}
/* Paint the table on the layout itself so portrait rotation covers every edge. */
html{background:#765034}
body{background:#765034}
main{
  background-color:#765034;
  background-image:radial-gradient(ellipse at 45% 38%,#fff4de10 0%,#180d052e 100%),url('assets/walnut-table-v2.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Official association seal, using the existing website asset. */
.association-logo{display:block;width:96px;height:96px;object-fit:contain;border-radius:50%;margin:0 auto 20px}
@media(max-height:600px){.association-logo{width:72px;height:72px;margin-bottom:14px}}

/* Keep the invitation scrollable without a visible scrollbar track. */
#invitation-dialog{scrollbar-width:none;-ms-overflow-style:none}
#invitation-dialog::-webkit-scrollbar{display:none;width:0;height:0}

/* Keep the association seal and anniversary introduction in one row. */
.invitation-brand{display:flex;align-items:center;gap:22px;margin:0 0 26px}
.invitation-brand .association-logo{flex:none;margin:0;width:88px;height:88px}
.invitation-brand-copy{min-width:0}
.invitation-brand .occasion{margin:0 0 10px;line-height:1.6}
.invitation-brand h2{margin:0 0 10px}
.invitation-brand .anniversary-motto{margin:0}
@media(max-width:600px){.invitation-brand{gap:14px}.invitation-brand .association-logo{width:64px;height:64px}.invitation-brand h2{font-size:23px}.invitation-brand .anniversary-motto{font-size:12px;letter-spacing:.6px}}

.card-preview{display:block;width:auto;height:90.909%;max-width:40.22%;object-fit:contain;margin:auto;filter:drop-shadow(8px 20px 15px #180c0947)}

/* Avoid the browser's blue touch overlay while opening and closing the card. */
#card-scene{-webkit-tap-highlight-color:transparent}

/* Decorative anniversary satin ribbon resting at the top-left of the table. */
.anniversary-ribbon{position:absolute;top:clamp(8px,2vh,20px);left:clamp(8px,2vw,24px);width:clamp(180px,28%,340px);height:auto;pointer-events:none;user-select:none;filter:drop-shadow(2px 5px 4px #180c0945);z-index:1}
@media(orientation:portrait){.anniversary-ribbon{width:clamp(150px,25%,250px);top:8px;left:10px}}
@media(orientation:landscape) and (max-height:600px){.anniversary-ribbon{width:clamp(150px,25%,250px);top:6px;left:10px}}

/* Phones use the supplied upright three-page invitation. */
.mobile-invitation{display:none}
@media(max-width:900px){
 body{position:fixed;inset:0;width:100%;height:100svh;transform:none}
 main{padding:64px 12px 76px}
 .invitation-area{display:none}
 .mobile-invitation{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;min-height:0;gap:8px}
 #mobile-card{display:flex;align-items:center;justify-content:center;min-height:0;flex:1;width:100%;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 #mobile-card img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 8px 24px #180c0940}
 #mobile-hint{flex:none;margin:0;color:#fff5dd;text-shadow:0 1px 3px #0009;font-size:12px;text-align:center}
 .anniversary-ribbon{width:160px;left:10px;top:4px}
 .floating-menu{right:16px;bottom:calc(14px + env(safe-area-inset-bottom))}
 dialog{position:fixed;inset:0;left:0;top:auto;transform:none;width:100%;max-width:100%;height:90svh;max-height:90svh;margin:auto 0 0;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
}

/* Photo-style tied bow: restrained scale and a close tabletop contact shadow. */
.anniversary-ribbon{width:clamp(120px,18vw,210px);top:12px;left:14px;filter:brightness(.82) saturate(.72) drop-shadow(1px 2px 1px #180c0938)}
@media(max-width:900px){.anniversary-ribbon{width:62px;top:3px;left:12px}}

/* Overlay the incoming page for a gentle crossfade without a blank frame. */
@media(max-width:900px){
 #mobile-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 #mobile-card img{grid-area:1 / 1;width:100%;height:100%;object-fit:contain;box-shadow:none;filter:drop-shadow(0 8px 12px #180c0940)}
 #mobile-hint{position:absolute}
}

/* Clip only the white outside the supplied paper edges; preserve printed pixels. */
@media(max-width:900px){
 #mobile-card img[src*="mobile-card-1-"]{clip-path:url(#mobile-cover-edge)}
 #mobile-card img[src*="mobile-card-2-"]{clip-path:url(#mobile-message-edge)}
 #mobile-card img[src*="mobile-card-3-"]{clip-path:url(#mobile-programme-edge)}
}
@media(max-width:900px){
 #mobile-card{container-type:size}
 #mobile-card img{width:min(100cqw,56.25cqh);height:auto;max-height:100%;justify-self:center;align-self:center;aspect-ratio:9 / 16}
}

/* The bow overlaps the upper-right paper edge, with the page kept in front. */
.anniversary-ribbon{left:auto;right:0;width:min(40vw,480px);top:-60px;z-index:0}
.invitation-area,.mobile-invitation{position:relative;z-index:1}
@media(max-width:900px){.anniversary-ribbon{right:auto;z-index:2}}
@media(max-width:900px){.anniversary-ribbon{z-index:0}}

/* Two hinged paper panels match the desktop card-opening interaction. */
@media(max-width:900px){
 #mobile-card{position:relative;isolation:isolate}
 .mobile-fold{position:absolute;display:block;perspective:1100px;pointer-events:none;z-index:3}
 .mobile-fold-panel{display:block;position:absolute;top:0;width:50%;height:100%;overflow:hidden;backface-visibility:hidden;transform-style:preserve-3d}
 .mobile-fold-left{left:0;transform-origin:left center}
 .mobile-fold-right{right:0;transform-origin:right center}
}
@media(max-width:900px){
 main{padding-left:6px;padding-right:6px}
 #mobile-card > img{width:min(100cqw,63cqh);max-height:none}
}

/* Normalize the cover's smaller printed bounds to the two inside pages. */
@media(max-width:900px){
 #mobile-card > img[src*="mobile-card-1-"]{transform:translateY(4.45%) scale(1.016,1.041);transform-origin:center}
}

/* The anniversary seal travels with the left cover, as on the desktop card. */
@media(max-width:900px){
 .mobile-fold-panel.mobile-fold-seal{width:100%;left:0;right:auto;overflow:visible}
 .mobile-fold-left.mobile-fold-seal{clip-path:url(#mobile-seal-left);z-index:2}
 .mobile-fold-right.mobile-fold-seal{clip-path:url(#mobile-seal-right);z-index:1}
}

/* Blue print beneath the left-mounted seal; keep the right cover solid. */
@media(max-width:900px){
 .mobile-fold-right.mobile-fold-seal::after{content:"";position:absolute;left:50.2%;top:29%;width:25%;height:21%;background:linear-gradient(to bottom,rgb(0 47 86) 0%,rgb(0 48 86) 1%,rgb(1 49 87) 2%,rgb(1 50 88) 3%,rgb(1 50 88) 4%,rgb(1 50 88) 5%,rgb(1 50 88) 6%,rgb(1 50 88) 7%,rgb(1 50 88) 8%,rgb(1 50 88) 9%,rgb(1 49 93) 10%,rgb(2 50 96) 11%,rgb(6 53 99) 12%,rgb(6 53 99) 13%,rgb(6 53 99) 14%,rgb(6 53 99) 15%,rgb(6 53 99) 16%,rgb(6 53 99) 17%,rgb(6 53 99) 18%,rgb(6 53 99) 19%,rgb(6 53 99) 20%,rgb(8 56 101) 21%,rgb(9 57 102) 22%,rgb(9 57 102) 23%,rgb(9 57 102) 24%,rgb(9 57 102) 25%,rgb(9 57 102) 26%,rgb(9 57 102) 27%,rgb(9 56 102) 28%,rgb(9 56 103) 29%,rgb(8 56 100) 30%,rgb(13 57 111) 31%,rgb(10 59 110) 32%,rgb(7 60 113) 33%,rgb(7 60 113) 34%,rgb(10 59 112) 35%,rgb(13 57 112) 36%,rgb(10 58 113) 37%,rgb(7 60 113) 38%,rgb(7 60 113) 39%,rgb(7 60 113) 40%,rgb(7 60 113) 41%,rgb(7 60 113) 42%,rgb(7 60 113) 43%,rgb(7 60 113) 44%,rgb(7 60 113) 45%,rgb(7 60 113) 46%,rgb(7 60 113) 47%,rgb(7 60 113) 48%,rgb(7 60 113) 49%,rgb(7 60 113) 50%,rgb(10 63 116) 51%,rgb(10 63 116) 52%,rgb(10 63 116) 53%,rgb(10 63 116) 54%,rgb(10 63 116) 55%,rgb(10 63 116) 56%,rgb(10 63 116) 57%,rgb(10 63 116) 58%,rgb(10 63 116) 59%,rgb(10 63 116) 60%,rgb(10 63 116) 61%,rgb(10 63 116) 62%,rgb(10 63 116) 63%,rgb(10 63 116) 64%,rgb(10 63 116) 65%,rgb(10 63 116) 66%,rgb(10 63 116) 67%,rgb(10 63 116) 68%,rgb(10 63 116) 69%,rgb(10 63 116) 70%,rgb(10 63 116) 71%,rgb(10 63 116) 72%,rgb(10 63 116) 73%,rgb(10 63 116) 74%,rgb(10 63 116) 75%,rgb(10 63 116) 76%,rgb(10 63 116) 77%,rgb(10 63 116) 78%,rgb(10 63 116) 79%,rgb(10 63 116) 80%,rgb(10 63 116) 81%,rgb(10 63 116) 82%,rgb(10 63 116) 83%,rgb(10 63 116) 84%,rgb(10 63 116) 85%,rgb(10 63 116) 86%,rgb(10 63 116) 87%,rgb(10 63 116) 88%,rgb(10 63 116) 89%,rgb(10 63 116) 90%,rgb(10 63 116) 91%,rgb(9 62 115) 92%,rgb(7 60 113) 93%,rgb(7 60 113) 94%,rgb(7 60 113) 95%,rgb(7 60 113) 96%,rgb(7 60 113) 97%,rgb(7 60 113) 98%,rgb(7 60 113) 99%,rgb(7 60 113) 100%);pointer-events:none}
}

/* Give the laptop card a little more room, retaining the full open-card framing. */
@media(min-width:901px){
 .invitation-area{width:min(100%,1200px);max-height:810px}
}

/* A gem lens toggles a modest reading zoom without advancing the card. */
#gem-zoom{position:absolute;right:70px;bottom:0;width:58px;height:58px;border:1px solid #d0af6b;background:var(--navy);color:var(--gold);border-radius:50%;display:grid;place-items:center;box-shadow:0 5px 18px #160c0655;cursor:pointer;-webkit-tap-highlight-color:transparent}
#gem-zoom svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#gem-zoom[aria-pressed="true"]{background:#e9c774;color:#062d49;box-shadow:0 0 0 3px #e9c77440,0 5px 18px #160c0655}
@media(max-width:900px){#gem-zoom{width:48px;height:48px;right:60px}}
@media(min-width:901px) and (max-height:600px){#gem-zoom{width:48px;height:48px;right:60px}}

/* Moveable jeweller's lens; the underlying card stays still while reading. */
#reading-lens{position:fixed;z-index:25;border:5px solid #15394c;border-radius:50%;pointer-events:none;box-shadow:0 0 0 2px #d2b46c,0 9px 24px #0007,inset 0 0 10px #e9c77440}
#reading-lens[hidden]{display:none}
#reading-lens canvas{display:block;width:100%;height:100%;border-radius:50%;background:#ffffff06}
#reading-lens::after{content:"";position:absolute;width:15px;height:60px;left:83%;top:84%;border:2px solid #b89852;border-radius:6px 6px 10px 10px;background:linear-gradient(90deg,#102c3f,#385263,#102c3f);transform:rotate(-40deg);transform-origin:top center;box-shadow:3px 5px 8px #0004}
.lens-active #mobile-card,.lens-active #card-scene{touch-action:none;cursor:crosshair}
