:root{
  --gold:#ffd36b; --amber:#ff9f43; --pink:#ff7eb6; --violet:#8b6bff;
  --glass-b:rgba(255,255,255,.30);
  --font:'Noto Sans Myanmar','Padauk','Myanmar Text',system-ui,sans-serif;
  --serif:'Noto Serif Myanmar','Noto Sans Myanmar','Padauk',serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;min-height:100vh;min-height:100dvh}
body{font-family:var(--font);
color:#fff;overflow-x:hidden;background:#150d3b;
-webkit-tap-highlight-color:transparent}
button{font-family:inherit;color:inherit}

/* ================= backgrounds ================= */
.bg{position:fixed;inset:0;z-index:0;opacity:0;
  transition:opacity 1s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bg-a1{background-image:url('A1.jpg')} 
.bg-a2{background-image:url('A2.jpg')}
.bg-a3{background-image:url('A3.jpg')}

body[data-page=welcome] .bg-a1,
body[data-page=draw]    .bg-night,
body[data-page=wish]    .bg-a2,
body[data-page=thanks]  .bg-a3{
  opacity: 1;
  animation: bgfloat 26s ease-in-out infinite alternate;
}

@keyframes bgfloat{
  from{transform: scale(1)}
  to{transform: scale(1.03)}
}

.bg-night{background:
radial-gradient(ellipse at 50% 112%,rgba(255,150,70,.55),
transparent 60%),
linear-gradient(180deg,#0b0730,#1f0f5c 50%,#5b2a86)}

.bg-overlay{position:fixed;inset:0;z-index:2;pointer-events:none;transition:opacity .8s;
background:
radial-gradient(ellipse at 50% 0%,rgba(255,190,90,.18),transparent 55%),
linear-gradient(180deg,rgba(20,10,60,.10) 0%,rgba(20,10,60,.05) 38%,rgba(20,8,55,.72) 100%)}
body[data-page=draw] .bg-overlay{background:radial-gradient(ellipse at 50% 0%,rgba(255,190,90,.12),transparent 55%),linear-gradient(180deg,rgba(10,5,40,.25),rgba(10,5,40,.1) 60%,rgba(10,5,40,.35))}

#sparkles{position:fixed;inset:0;z-index:3;pointer-events:none}

.moon{position:fixed;top:5vh;right:8vw;width:clamp(70px,12vw,140px);aspect-ratio:1;
border-radius:50%;z-index:3;opacity:0;transition:opacity 1s;
background:radial-gradient(circle at 35% 35%,#fffdf0,#ffe9a8 60%,#ffd36b);
box-shadow:0 0 40px 12px rgba(255,220,130,.45),0 0 120px 40px rgba(255,200,100,.25);
animation:moonpulse 6s ease-in-out infinite}
body[data-page=draw] .moon{opacity:.95}
@keyframes moonpulse{50%{box-shadow:0 0 60px 20px rgba(255,220,130,.6),0 0 160px 60px rgba(255,200,100,.3)}}

.orbs i{position:fixed;z-index:3;border-radius:50%;pointer-events:none;
filter:blur(26px);opacity:.45;
background:radial-gradient(circle,rgba(255,170,90,.9),transparent 70%);
animation:orb 14s ease-in-out infinite alternate}
.orbs i:nth-child(1){width:260px;height:260px;left:-60px;top:20%}
.orbs i:nth-child(2){width:200px;height:200px;right:-40px;top:45%;
background:radial-gradient(circle,rgba(255,126,182,.8),transparent 70%);
animation-delay:-4s}
.orbs i:nth-child(3){width:300px;height:300px;left:30%;bottom:-120px;
background:radial-gradient(circle,rgba(139,107,255,.8),transparent 70%);animation-delay:-8s}
.orbs i:nth-child(4){width:140px;height:140px;left:12%;top:60%;
animation-delay:-2s}
.orbs i:nth-child(5){width:180px;height:180px;right:20%;top:8%;
background:radial-gradient(circle,rgba(255,211,107,.8),transparent 70%);
animation-delay:-6s}
.orbs i:nth-child(6){width:120px;height:120px;right:6%;
bottom:12%;background:radial-gradient(circle,rgba(255,126,182,.8),transparent 70%);
animation-delay:-10s}
@keyframes orb{from{transform:translate(0,0) scale(1)}to{transform:translate(40px,-60px) scale(1.25)}}

/* ================= glass ================= */
.glass{
  background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.06));
  border:1px solid var(--glass-b);
  backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%);
  box-shadow:0 10px 40px rgba(10,5,40,.45),inset 0 1px 0 rgba(255,255,255,.4),0 0 34px rgba(255,190,100,.18);
}
.floaty{animation:floaty 5s ease-in-out infinite}
.floaty.d2{animation-delay:-1.6s}.floaty.d3{animation-delay:-3.2s}
@keyframes floaty{50%{transform:translateY(-9px)}}

/* ================= pages ================= */
.page{position:fixed;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;
  padding:max(14px,env(safe-area-inset-top)) 12px 48px;overflow-y:auto;overflow-x:hidden;
  opacity:0;visibility:hidden;transform:translateY(24px) scale(.985);
  transition:opacity .7s ease,transform .7s ease,visibility .7s}
.page.on{opacity:1;visibility:visible;transform:none}
#pg-draw,#pg-draw *{pointer-events:none}     
.page-top{margin-top:4px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;width:100%}
.page-bottom{margin-top:auto;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding-top:14px}

.logo-badge {
  width: clamp(90px, 22vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff !important; 
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 
              0 0 30px 8px rgba(255, 211, 107, 0.8), 
              0 0 70px 20px rgba(255, 180, 90, 0.4);
  animation: floaty 6s ease-in-out infinite;
}

.logo-badge img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.logo-badge.small {
  width: clamp(54px, 12vw, 74px);
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 
              0 0 20px 5px rgba(255, 211, 107, 0.7);
}

.kicker {
  font-size: clamp(0.9rem, 3.5vw, 1.15rem) !important;        
  font-weight: 700 !important;          
  color: #ffdf85 !important;            
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 
               0 0 20px rgba(255, 165, 0, 0.5) !important; 
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin-bottom: 4px;
}

.card.glass, .glass {
  background: rgba(20, 10, 2, 0.2) !important; 
  backdrop-filter: blur(2px) saturate(100%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(100%) !important;
  border: 1px solid rgba(255, 220, 139, 0.25) !important;
}

.title{line-height:1.4}
.title span{
font:800 clamp(1.1rem, 4.2vw, 35px)/1.4 var(--serif);
background:linear-gradient(90deg,#fff4c9,#ffd36b,#ff9f43,#ff7eb6,#ffd36b,#fff4c9);background-size:250% auto;
-webkit-background-clip:text;background-clip:text;color:transparent;
filter:drop-shadow(0 2px 14px rgba(255,150,60,.65));animation:shine 7s linear infinite}
@keyframes shine{to{background-position:250% center}}

.card{padding:14px 18px;border-radius:20px;font-size:clamp(14px,3.8vw,19px);line-height:1.7;max-width:560px;width:92vw;margin:0 auto}
.card b{color:var(--gold);font-size:1.15em;text-shadow:0 0 14px rgba(255,190,80,.9)}

.hint{font-size:clamp(12px,3.2vw,15px);color:#ffeab8;padding:8px 14px;border-radius:999px;background:rgba(0,0,0,.28);animation:hint 2.4s ease-in-out infinite}
.hint .hand{display:inline-block;animation:tap 1.4s ease-in-out infinite}
@keyframes hint{50%{box-shadow:0 0 24px rgba(255,211,107,.55);transform:translateY(-3px)}}
@keyframes tap{50%{transform:translateY(-6px) scale(1.15)}}

/* ================= buttons ================= */
.btn-main{position:relative;overflow:hidden;border:0;cursor:pointer;padding:13px 28px;border-radius:999px;font:800 clamp(15px,4vw,19px) var(--font);color:#4a2400;
background:linear-gradient(135deg,#fff1b8,#ffd36b 45%,#ffa23d);
box-shadow:0 8px 28px rgba(255,160,60,.6),0 0 40px rgba(255,211,107,.55),inset 0 2px 0 rgba(255,255,255,.7);
transition:transform .25s,box-shadow .25s;animation:btnpulse 2.6s ease-in-out infinite}
.btn-main:hover{transform:translateY(-3px) scale(1.04)}
.btn-main:active{transform:scale(.97)}
.btn-main .shine{position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.8),transparent);transform:skewX(-20deg);animation:sweep 3.2s ease-in-out infinite}
@keyframes sweep{0%{left:-60%}55%,100%{left:130%}}
@keyframes btnpulse{50%{box-shadow:0 8px 34px rgba(255,160,60,.8),0 0 60px rgba(255,211,107,.8),inset 0 2px 0 rgba(255,255,255,.7)}}

.btn-glass{cursor:pointer;padding:10px 18px;border-radius:999px;font:600 14px var(--font);
background:linear-gradient(135deg,rgba(255,255,255,.25),rgba(255,255,255,.08));border:1px solid var(--glass-b);
backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 6px 22px rgba(10,5,40,.4),0 0 20px rgba(255,190,100,.2);transition:.25s}
.btn-glass:hover{transform:translateY(-2px);box-shadow:0 0 30px rgba(255,211,107,.6)}
.btn-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}

/* ================= lanterns (rising) ================= */
#lantern-layer{position:fixed;inset:0;z-index:5;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .8s}
body[data-page=draw] #lantern-layer{opacity:1}
.lantern{position:absolute;bottom:-150px;width:var(--w,64px);height:calc(var(--w,64px)*1.3);
pointer-events:auto;cursor:pointer;touch-action:manipulation;animation:rise var(--dur,16s) linear forwards;will-change:transform}
.lantern::before{content:"";position:absolute;inset:-18px} 

.lantern .sway{width:100%;height:100%;position:relative;animation:sway var(--sway,4s) ease-in-out infinite alternate;transform-origin:50% 100%}
.lantern .body{position:absolute;inset:8% 0 12%;border-radius:46% 46% 40% 40%/38% 38% 48% 48%;
background:radial-gradient(ellipse at 50% 62%,#fffbe0 0%,#ffe08a 28%,var(--c1,#ffa63d) 62%,var(--c2,#e2561f) 100%);
box-shadow:0 0 22px 6px var(--glow,rgba(255,166,61,.65)),0 0 60px 18px var(--glow,rgba(255,166,61,.35)),inset 0 -8px 14px rgba(160,40,0,.35);
animation:flicker var(--flick,2.2s) ease-in-out infinite alternate}
.lantern .body::before,.lantern .body::after{content:"";position:absolute;top:0;bottom:0;width:1.5px;background:rgba(160,50,0,.25)}
.lantern .body::before{left:33%}.lantern .body::after{right:33%}
.lantern .cap{position:absolute;left:18%;right:18%;height:9%;border-radius:4px;background:linear-gradient(#ffe9a8,#c98a2b)}
.lantern .cap.t{top:4%}.lantern .cap.b{bottom:10%}
.lantern .tassel{position:absolute;left:50%;bottom:-2%;width:2px;height:12%;background:linear-gradient(#ffd36b,transparent);transform:translateX(-50%)}
.lantern:hover .body{filter:brightness(1.25);box-shadow:0 0 34px 10px rgba(255,211,107,.9),0 0 90px 30px rgba(255,166,61,.5)}
.lantern.popped{animation:none;pointer-events:none;transition:transform .5s ease,opacity .5s ease;transform:translateY(-20px) scale(2.2);opacity:0}
@keyframes rise{from{transform:translateY(0)}to{transform:translateY(calc(-100vh - 320px))}}
@keyframes sway{from{transform:translateX(-20px) rotate(-5deg)}to{transform:translateX(20px) rotate(5deg)}}
@keyframes flicker{from{filter:brightness(.95)}to{filter:brightness(1.18)}}

/* ================= wishes page ================= */
.wish-list{width:min(94vw,560px);display:flex;flex-direction:column;gap:12px}
.wish{cursor:pointer;text-align:center;padding:14px 18px;border-radius:20px;font-size:clamp(14px,3.8vw,17px);line-height:1.7;color:#fff7e0;transition:transform .25s,box-shadow .25s;position:relative}
.wish::after{content:"💫ထိလိုက်ပါ 💫";position:absolute;right:14px;bottom:4px;font-size:10px;color:var(--gold);opacity:.9}
.wish:hover{box-shadow:0 0 40px rgba(255,211,107,.7),0 10px 40px rgba(10,5,40,.45)}
.wish:active{transform:scale(.98)}

/* ================= thanks page ================= */
.thanks-card{
  width: min(88vw, 480px) !important;
  max-height: 82vh !important;
  overflow: hidden !important;
  text-align: center !important;
  padding: 14px 16px !important;
  font-size: clamp(12px, 1.35vw, 15px) !important;
  line-height: 1.45 !important;
  color: #fff7e0 !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  
  /* Glassmorphism Background & Border */
  background: rgba(20, 10, 2, 0.35) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  border: 1px solid rgba(255, 220, 139, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 40px rgba(10, 5, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}


.thanks-card p{
  margin-bottom: 8px !important; 
}
.thanks-card .personal{
  color: #ffd9ea !important;
  font-weight: 600 !important;
}

.thanks-card .sign{
  color: var(--gold) !important;
  margin-top: 4px !important;
  font-size: .9em !important;
}

/* ကွန်ပျူတာ screen တွင် အောက်ခြေခလုတ်များ ကတ်ပြားအတွင်း အနေတော်ဝင်ဆံ့စေရန် */
.thanks-card .btn-row, 
.thanks-card div:has(button) {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 6px !important;
  width: 100% !important;
}

.thanks-card button, 
.thanks-card .btn-glass {
  padding: 6px 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* ================= modals ================= */
.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:12px;visibility:hidden;opacity:0;transition:opacity .35s,visibility .35s}
.modal.open{visibility:visible;opacity:1}
.modal-backdrop{position:absolute;inset:0;background:rgba(10,5,35,.62);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.panel{position:relative;width:min(92vw,440px);max-height:86vh;
overflow-y:auto;overflow-x:hidden;padding:22px 18px 18px;border-radius:26px;text-align:center;
transform:translateY(30px) scale(.9);transition:transform .5s cubic-bezier(.2,1.3,.4,1);
box-sizing: border-box;}
.modal.open .panel{transform:none}



.panel::before{content:"";position:absolute;inset:-2px;border-radius:28px;z-index:-1;
background:conic-gradient(from 0deg,#ffd36b,#ff7eb6,#8b6bff,#ffd36b);
filter:blur(12px);opacity:.55;animation:spin 8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.panel h2, .panel .percent-display, #pNum {
  word-break: break-word;
  overflow-wrap: break-word;
}

.panel-lantern{width:46px;height:60px;margin:0 auto 6px;border-radius:46% 46% 40% 40%/38% 38% 48% 48%;
background:radial-gradient(ellipse at 50% 62%,#fffbe0,#ffe08a 30%,#ffa63d 65%,#e2561f);box-shadow:0 0 24px 8px rgba(255,166,61,.7);animation:floaty 3s ease-in-out infinite}
.p-small{color:var(--gold);font-weight:600;font-size:clamp(0.85rem, 3vw, 1rem)}
.p-line{font-size:clamp(12px,2.8vw,15px);margin-top:3px;line-height:1.6}
.percent{display:flex;justify-content:center;align-items:baseline;line-height:1;margin:3px 0}
.percent span{font:700 clamp(70px,20vw,110px) 'Cinzel Decorative',var(--font);
background:linear-gradient(180deg,#fffbe0,#ffd36b 50%,#ff9f43);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 20px rgba(255,190,80,.8))}
.percent em{font:700 40px 'Cinzel Decorative',var(--font);font-style:normal;color:#ffd36b;text-shadow:0 0 14px rgba(255,190,80,.9)}
.p-main{font-size:clamp(18px,4.5vw,24px);font-weight:800;margin-bottom:8px}
.code{display:inline-block;padding:7px 14px;border-radius:999px;background:rgba(0,0,0,.3);border:1px dashed rgba(255,211,107,.75);
font-size:13px}
.code b{color:var(--gold);letter-spacing:1.5px;font-size:1.05em}
.note{margin:12px 0 14px;font-size:13px;line-height:1.7;color:#fff1d6}

.choice{position:relative;width:min(92vw,420px);display:flex;flex-direction:column;gap:14px;align-items:stretch;text-align:center;padding:8px 4px}
.choice .close{position:absolute;top:-38px;right:0;width:32px;height:32px;border-radius:50%;border:1px solid var(--glass-b);background:rgba(255,255,255,.14);color:#fff;font-size:20px;cursor:pointer}
.choice-title{font:800 clamp(16px,4.5vw,20px) var(--serif);color:var(--gold);text-shadow:0 0 16px rgba(255,190,80,.8);margin-bottom:2px}
.choice-btn{cursor:pointer;padding:16px 18px;border-radius:22px;font:700 clamp(15px,4vw,18px) var(--font);line-height:1.5;transition:box-shadow .25s}
.choice-btn span{font-size:1.35em;margin-right:6px;vertical-align:-2px}
.choice-btn:hover{box-shadow:0 0 44px rgba(255,211,107,.75),0 10px 40px rgba(10,5,40,.45)}

/* ================= footer ================= */
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 2px;
  z-index: 8;
  text-align: center;
  font-size: 10px;
  line-height: 1.3;
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  background: linear-gradient(0deg, rgba(15,8,45,.85), transparent);
  pointer-events: none;
}

/* =========================================================
   CLEAN RESPONSIVE FIXES FOR MOBILE & DESKTOP
   ========================================================= */

.badge, .promo-title, .sub-title, .kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: 92vw;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width:900px) and (min-aspect-ratio:3/2) {
  .bg { background-position: center 16%; }
}

@media (prefers-reduced-motion:reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.page, body, html {
  min-height: 100vh;
  min-height: 100dvh;
}

/* =========================================================
   DESKTOP THANKS CARD (ကွန်ပျူတာအတွက် သီးသန့် အနေအထား)
   ========================================================= */
@media (min-width: 521px) {
  .thanks-card {
    width: min(88vw, 480px) !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: clamp(12px, 1.35vw, 15px) !important;
    line-height: 1.45 !important;
    color: #fff7e0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
   
    background: rgba(20, 10, 2, 0.35) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    border: 1px solid rgba(255, 220, 139, 0.3) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(10, 5, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }

  .thanks-card p {
    margin-bottom: 5px !important;
  }

  .thanks-card .btn-row,
  .thanks-card div:has(button) {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: 100% !important;
  }

  .thanks-card button,
  .thanks-card .btn-glass {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }
}

/* =========================================================
   MOBILE SPECIFIC OVERRIDES (ဖုန်းအတွက် သီးသန့် အနေအထား)
   ========================================================= */
@media (max-width: 520px) {
  .moon { top: 2.5vh; right: 4vw; width: 65px; }
 
  .foot {
    font-size: 9px !important;
    line-height: 1.2 !important;
    padding: 2px 4px calc(2px + env(safe-area-inset-bottom)) !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card {
    padding: 10px 12px;
    width: 94vw;
  }

  h1, .title, .promo-title {
    font-size: clamp(0.95rem, 3.8vw, 1.2rem) !important;
    white-space: nowrap !important;
    text-align: center;
  }
 
  p, span, .subtitle, .sub-title {
    font-size: clamp(0.72rem, 3vw, 0.85rem) !important;
    line-height: 1.3 !important;
  }
 
  .btn-main, .choice-btn, button {
    font-size: 0.82rem !important;
    padding: 10px 14px !important;
  }

  .panel {
    width: 94vw;
    padding: 16px 12px;
    max-height: 80vh;
    border-radius: 20px;
  }

  .percent span {
    font-size: clamp(50px, 16vw, 80px) !important;
  }
 
  .percent em {
    font-size: 30px !important;
  }

  .panel h2, .p-main {
    font-size: 0.99rem !important;
    white-space: normal !important;
  }

  .p-line, .note {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }
 
  .code {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }

  .hint {
    font-size: 10.5px !important;
    padding: 5px 8px !important;
    width: 90vw !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
  }

  .panel, .percent, .percent span, .percent em {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .modal.open .panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform 0.3s ease !important;
  }
  /* --- Mobile Page & Layout Flow Fixes --- */
  .page {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: max(16px, env(safe-area-inset-top)) !important;
    padding-bottom: 30px !important;
  }

  .page-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    gap: 8px !important;
  }

  .thanks-card {
    width: 94vw !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    margin: 10px auto !important;
    padding: 14px 12px !important;
  }

  .wish-list {
    width: 94vw !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 4px !important;
    margin-bottom: 20px !important;
  }
  
  .wish {
    padding: 12px 16px !important;
    font-size: clamp(12px, 3.4vw, 14px) !important;
    line-height: 1.5 !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 520px) {
  /* Modal ပွင့်လာတဲ့အခါ နောက်ခံကတ်တွေကို မထိန်းနိုင်အောင် pointer-events ပိတ်ခြင်း */
  .modal {
    pointer-events: none !important;
  }

  .modal.open {
    pointer-events: auto !important;
  }

  /* Modal ထဲက panel နဲ့ ခလုတ်များကိုမူ ပုံမှန်အတိုင်း နှိပ်၍ရစေရန် */
  .modal .panel, .modal button {
    pointer-events: auto !important;
    z-index: 99999 !important;
  }

  /* ဆုတောင်းကတ်များ (Wish cards) - Modal ပိတ်နေချိန်တွင် လွတ်လွတ်လပ်လပ် နှိပ်၍ရစေရန် */
  .wish-list {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  .wish {
    position: relative !important;
    z-index: 11 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    /* ကတ်အရွယ်အစားကို အနည်းငယ် ပိုကြီးပြီး နှိပ်ရလွယ်ကူစေရန် padding ကို တိုးမြှင့်ခြင်း */
    padding: 16px 18px !important;
    margin-bottom: 8px !important;
  }
}

/* =========================================
   PHONE-ONLY WISHES
   ========================================= */

.mobile-wish {
  display: none;
}

@media (max-width: 520px) {

  #pg-wish .wish-list {
    display: none !important;
  }

  #pg-wish .mobile-wish {
    width: 94vw;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
  }

  #pg-wish .mobile-wish-card {
    width: 100%;
    min-height: 180px;
    padding: 28px 22px;
    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #fff7e0;

    box-sizing: border-box;
  }

  #pg-wish .mobile-wish-text {
    width: 100%;
  }

  #pg-wish .mobile-wish-next {
    min-width: 180px;
    padding: 12px 22px;

    border: 1px solid rgba(255,255,255,.30);
    border-radius: 999px;

    background: rgba(255,255,255,.14);
    color: #fff7e0;

    font-family: inherit;
    font-size: 14px;
    cursor: pointer;

    box-shadow:
      0 8px 25px rgba(10,5,40,.35),
      inset 0 1px 0 rgba(255,255,255,.30);

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  #pg-wish .mobile-wish-next:active {
    transform: scale(.96);
  }

  #pg-wish .mobile-wish-count {
    font-size: 12px;
    color: var(--gold);
    opacity: .9;
  }
}

/* Emoji fix */
.emoji {
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif !important;

  font-style: normal !important;
  font-weight: normal !important;

  color: initial !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;

  -webkit-text-fill-color: initial !important;

  filter: none !important;
  display: inline-block;
}