:root{
  --night-1:#1b1055; --night-2:#3b1e8f; --night-3:#6c2bd0;
  --gold:#ffcf4a; --gold-deep:#f5a623;
  --cyan:#37e0ff; --cyan-deep:#12b3e8; --magenta:#ff5db1;
  --ink:#fff6e9; --bubble-ink:#2a1a5e;
  --ease-out:cubic-bezier(.16,1,.3,1);
  --pop:cubic-bezier(.34,1.56,.64,1);
  --font-ui:"Zen Kaku Gothic New","Hiragino Sans","Noto Sans JP",sans-serif;
  --font-round:"Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif;
  --font-mincho:"Zen Old Mincho","Hiragino Mincho ProN",serif;
}
*{box-sizing:border-box}
.genie-lamp-hero-wrap{color:var(--ink);font-family:var(--font-ui);-webkit-font-smoothing:antialiased}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}
button{font-family:inherit}

.hero{position:relative;width:100%;height:100%;min-height:480px;overflow:hidden;
  background:linear-gradient(180deg,var(--night-1) 0%,var(--night-2) 52%,var(--night-3) 100%);
  touch-action:pan-y;user-select:none}
.bg{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0}

/* 光の放射（擦り＆出現時に回る） */
.rays{position:absolute;left:50%;top:52%;width:200vmax;height:200vmax;
  transform:translate(-50%,-50%) rotate(0deg);z-index:0;opacity:0;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,
    rgba(255,207,74,.16) 0deg,rgba(255,207,74,0) 6deg 14deg);
  transition:top .8s var(--pop)}
.hero.is-summoned .rays{top:60%}

/* ランプ */
.stage{position:absolute;inset:0;z-index:2;cursor:grab}
.hero.is-rubbing .stage{cursor:grabbing}
.hero.is-summoned .stage{cursor:default;pointer-events:none}
.lamp-wrap{position:absolute;left:50%;top:52%;width:min(460px,80vw);
  transform:translate(-50%,-50%);will-change:transform}
.lamp-wrap img{width:100%;height:auto;display:block;
  filter:drop-shadow(0 20px 40px rgba(10,4,40,.5))}
.lamp-glow{position:absolute;left:50%;top:52%;width:min(620px,104vw);aspect-ratio:1/1;
  transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;z-index:1;opacity:0;
  background:radial-gradient(circle,rgba(255,207,74,.6),rgba(255,207,74,0) 60%)}

.gauge{position:absolute;left:50%;top:calc(52% + min(150px,26vw));transform:translateX(-50%);
  width:min(200px,50vw);height:6px;border-radius:999px;background:rgba(255,255,255,.14);
  overflow:hidden;opacity:0;transition:opacity .4s var(--ease-out);z-index:3}
.hero.is-rubbing .gauge,.gauge.has-progress{opacity:1}
.hero.is-summoned .gauge{opacity:0}
.gauge__fill{height:100%;width:0;border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--cyan));transition:width .18s var(--ease-out)}

/* 画面全体の白フラッシュ（出現の瞬間） */
.flash{position:absolute;inset:0;z-index:5;background:#fff;opacity:0;pointer-events:none}

.fx{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}

.loader{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:16px;
  background:var(--night-1);transition:opacity .7s var(--ease-out),visibility .7s;z-index:9}
.hero.is-ready .loader{opacity:0;visibility:hidden}
.loader__flame{width:12px;height:12px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 26px 7px rgba(255,207,74,.6);animation:flick 1.5s ease-in-out infinite}
.loader__label{font-size:13px;letter-spacing:.16em;color:rgba(255,246,233,.6)}
@keyframes flick{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.55);opacity:1}}

.hint{position:absolute;left:50%;bottom:clamp(20px,6vh,48px);transform:translateX(-50%);margin:0;
  display:flex;align-items:center;gap:10px;font-size:12.5px;letter-spacing:.14em;
  color:rgba(255,246,233,.62);white-space:nowrap;opacity:0;
  transition:opacity .6s var(--ease-out);pointer-events:none;z-index:3}
.hero.is-ready .hint{opacity:1}
.hero.is-rubbing .hint,.hero.is-summoned .hint{opacity:0}
.hint__icon{width:26px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);
  animation:swipe 2.2s ease-in-out infinite}
@keyframes swipe{0%,100%{transform:translateX(-6px);opacity:.35}50%{transform:translateX(6px);opacity:1}}
.hint__sp{display:none}
@media (hover:none) and (pointer:coarse){.hint__pc{display:none}.hint__sp{display:inline}}

/* ===== 案内役（梶浦さん） ===== */
.guide{position:absolute;left:clamp(2%,6vw,10%);bottom:0;z-index:4;
  width:min(360px,44vw);pointer-events:none;
  opacity:0;transform:translateY(60px) scale(.9);filter:blur(6px)}
.guide.is-in{opacity:1;transform:translateY(0) scale(1);filter:blur(0);
  transition:opacity .8s var(--ease-out),transform 1s var(--pop),filter .8s var(--ease-out)}
.guide img{width:100%;height:auto;display:block;
  filter:drop-shadow(0 -6px 40px rgba(55,224,255,.4))}
.guide::after{content:"";position:absolute;left:50%;bottom:6%;transform:translateX(-50%);
  width:74%;height:6%;border-radius:50%;
  background:radial-gradient(ellipse,rgba(55,224,255,.5),transparent 70%);filter:blur(8px);z-index:-1}

/* 案内役の吹き出し（右上に大きく） */
.guide-bubble{position:absolute;z-index:5;right:clamp(4%,6vw,9%);top:clamp(8%,12vh,18%);
  width:min(440px,62vw);padding:24px 28px;border-radius:26px;background:var(--ink);
  color:var(--bubble-ink);box-shadow:0 20px 50px rgba(10,4,40,.5);
  opacity:0;transform:translateY(20px) scale(.9);pointer-events:none}
.guide-bubble.is-in{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;
  transition:opacity .5s var(--pop),transform .5s var(--pop)}
/* しっぽ（左下＝案内役の方を指す） */
.guide-bubble::after{content:"";position:absolute;bottom:-16px;left:34px;
  border-left:14px solid transparent;border-right:14px solid transparent;border-top:18px solid var(--ink)}
.guide-bubble__label{display:block;font-size:11px;font-weight:700;letter-spacing:.24em;
  color:var(--gold-deep);margin-bottom:8px}
.guide-bubble__text{margin:0 0 4px;font-family:var(--font-round);font-weight:700;
  font-size:clamp(16px,2.4vw,21px);line-height:1.6;color:var(--bubble-ink)}
.guide-bubble__sub{margin:8px 0 0;font-size:clamp(12px,1.7vw,13.5px);
  line-height:1.7;color:#5a4a8e}

/* 3つの願いボタン */
.wishes{position:absolute;left:50%;bottom:clamp(20px,6vh,52px);transform:translateX(-50%);z-index:6;
  display:flex;gap:clamp(10px,2vw,20px);flex-wrap:wrap;justify-content:center;
  padding:0 14px;pointer-events:none;visibility:hidden}
.wishes.is-visible{visibility:visible}
.wish-btn{pointer-events:auto;position:relative;width:clamp(112px,20vw,158px);
  padding:18px 14px 16px;border:0;border-radius:20px;cursor:pointer;text-align:center;
  background:linear-gradient(160deg,rgba(255,255,255,.24),rgba(255,255,255,.07));
  border:1.5px solid rgba(255,246,233,.38);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 14px 34px rgba(10,4,40,.4),inset 0 1px 0 rgba(255,255,255,.4);
  color:var(--ink);opacity:0;transform:translateY(24px) scale(.85);
  transition:transform .25s var(--pop),box-shadow .25s var(--ease-out),
             background .25s,border-color .25s}
.wishes.is-visible .wish-btn{opacity:1;transform:translateY(0) scale(1)}
.wishes.is-visible .wish-btn:nth-child(1){transition-delay:.05s}
.wishes.is-visible .wish-btn:nth-child(2){transition-delay:.15s}
.wishes.is-visible .wish-btn:nth-child(3){transition-delay:.25s}
.wish-btn:hover{transform:translateY(-6px) scale(1.04);border-color:var(--gold);
  box-shadow:0 20px 40px rgba(245,166,35,.35),inset 0 1px 0 rgba(255,255,255,.5)}
.wish-btn.is-active{border-color:var(--cyan);
  background:linear-gradient(160deg,rgba(55,224,255,.3),rgba(55,224,255,.1))}
.wish-btn__num{display:block;font-family:var(--font-mincho);font-size:30px;font-weight:700;
  line-height:1;color:var(--gold);text-shadow:0 2px 14px rgba(255,207,74,.5);margin-bottom:8px}
.wish-btn__label{display:block;font-family:var(--font-round);font-weight:700;
  font-size:13.5px;letter-spacing:.06em}
.wish-btn__hint{display:block;font-size:10px;letter-spacing:.12em;
  color:rgba(255,246,233,.6);margin-top:5px}

/* 格言ポップアップ（案内役の吹き出しとして大きく） */
.saying{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;
  padding:24px;pointer-events:none;opacity:0;visibility:hidden}
.saying.is-open{opacity:1;visibility:visible;pointer-events:auto}
.saying__backdrop{position:absolute;inset:0;background:rgba(12,6,40,.55);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.saying__card{position:relative;max-width:min(540px,88vw);padding:38px 40px 32px;border-radius:30px;
  text-align:center;background:var(--ink);color:var(--bubble-ink);
  box-shadow:0 30px 70px rgba(10,4,40,.6);
  transform:translateY(24px) scale(.84);opacity:0;
  transition:transform .5s var(--pop),opacity .35s var(--ease-out)}
.saying.is-open .saying__card{transform:translateY(0) scale(1);opacity:1}
/* しっぽ（左下＝案内役の方向） */
.saying__card::after{content:"";position:absolute;bottom:-16px;left:14%;
  border-left:16px solid transparent;border-right:16px solid transparent;border-top:18px solid var(--ink)}
.saying__num{display:inline-block;font-family:var(--font-mincho);font-weight:700;
  font-size:13px;letter-spacing:.2em;color:var(--gold-deep);margin-bottom:16px;
  padding:5px 18px;border-radius:999px;background:rgba(245,166,35,.12)}
.saying__logo{display:block;width:min(150px,40vw);height:auto;margin:0 auto 16px}
.saying__logo[hidden]{display:none}
.saying__text{margin:0;font-family:var(--font-mincho);font-weight:700;
  font-size:clamp(20px,3.4vw,29px);line-height:1.7;letter-spacing:.03em;color:var(--bubble-ink)}
.saying__sub{margin:18px 0 0;font-family:var(--font-round);font-weight:500;
  font-size:clamp(12.5px,1.9vw,14.5px);line-height:1.85;color:#5a4a8e}
.saying__close{margin-top:24px;padding:10px 28px;border:0;border-radius:999px;cursor:pointer;
  font-family:var(--font-round);font-weight:700;font-size:13px;letter-spacing:.06em;color:#3a1500;
  background:linear-gradient(120deg,var(--gold),var(--gold-deep));
  box-shadow:0 8px 20px rgba(245,166,35,.35);transition:transform .2s var(--pop)}
.saying__close:hover{transform:translateY(-2px) scale(1.04)}
.saying__link{display:flex;align-items:center;justify-content:center;width:min(340px,100%);
  min-height:56px;margin:24px auto 0;padding:10px 24px;border:3px solid #201513;border-radius:999px;
  color:#201513;background:#f7b700;font-family:var(--font-round);font-size:15px;font-weight:900;
  text-decoration:none;box-shadow:6px 7px 0 #159bd3;transition:transform .2s var(--pop),box-shadow .2s var(--pop)}
.saying__link:hover,.saying__link:focus-visible{transform:translate(-2px,-3px);box-shadow:9px 11px 0 #e52620}

/* Final mobile control clearance */
@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .replay{
    top:12px;
    right:12px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:72px!important;
  }
  .genie-lamp-hero-wrap .guide-bubble__text{
    overflow-wrap:normal;
    word-break:keep-all;
  }
}

/* 2026-07-29 final SP clearance: keep “最初から” above the speech bubble */
@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .replay{
    top:12px;
    right:12px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:72px!important;
  }
  .genie-lamp-hero-wrap .guide-bubble__text{
    overflow-wrap:normal;
    word-break:keep-all;
  }
}

.replay{position:absolute;right:16px;top:16px;z-index:8;padding:8px 16px;border-radius:999px;
  border:1.5px solid rgba(255,246,233,.3);background:rgba(27,16,85,.5);color:rgba(255,246,233,.8);
  font-size:12px;letter-spacing:.08em;cursor:pointer;opacity:0;transition:opacity .5s var(--ease-out)}
.hero.is-summoned .replay{opacity:1}

@media (max-width:720px){
  .guide{width:min(220px,42vw);left:2%}
  .guide-bubble{right:3%;top:6%;width:64vw;padding:16px 18px}
}
@media (prefers-reduced-motion:reduce){.loader__flame,.hint__icon{animation:none}}

/* SinSingroup layout tuning */
.genie-lamp-hero-wrap .stage{
  pointer-events:none;
  cursor:default;
}
.genie-lamp-hero-wrap{
  height:105vh!important;
  min-height:720px!important;
  max-height:980px;
}
.genie-lamp-hero-wrap .lamp-wrap{
  pointer-events:auto;
  cursor:grab;
  touch-action:pan-y;
  -webkit-user-select:none;
  user-select:none;
}
.genie-lamp-hero-wrap .lamp-wrap img,
.genie-lamp-hero-wrap .guide img{
  pointer-events:none;
  -webkit-user-drag:none;
  user-select:none;
}
.genie-lamp-hero-wrap .hero.is-rubbing .lamp-wrap{cursor:grabbing}
.genie-lamp-hero-wrap .hint{
  top:calc(52% + min(190px,33vw));
  bottom:auto;
  gap:14px;
  width:max-content;
  max-width:94%;
  font-family:var(--font-round);
  font-size:clamp(22px,2.35vw,38px);
  font-weight:700;
  line-height:1.25;
  letter-spacing:.02em;
  color:var(--ink);
  text-align:center;
  text-shadow:0 4px 24px rgba(10,4,40,.8);
}
.genie-lamp-hero-wrap .hint__icon{
  width:clamp(38px,5vw,74px);
  height:3px;
}
.genie-lamp-hero-wrap .guide{
  left:clamp(3%,6vw,8%);
  width:min(440px,38vw);
}
.genie-lamp-hero-wrap .guide-bubble{
  right:auto;
  left:clamp(290px,30vw,430px);
  top:13%;
  width:min(440px,38vw);
}
.genie-lamp-hero-wrap .guide-bubble::after{left:28px}
.genie-lamp-hero-wrap .wishes{
  right:4%;
  left:auto;
  bottom:clamp(22px,5vh,48px);
  width:min(58vw,720px);
  padding:0;
  transform:none;
  flex-wrap:nowrap;
}

@media (max-width:720px){
  .genie-lamp-hero-wrap{
    height:900px!important;
    min-height:900px!important;
    max-height:none;
  }
  .genie-lamp-hero-wrap .lamp-wrap{
    top:42%;
    width:min(430px,92vw);
  }
  .genie-lamp-hero-wrap .lamp-glow{
    top:42%;
  }
  .genie-lamp-hero-wrap .gauge{
    top:calc(42% + min(145px,31vw));
  }
  .genie-lamp-hero-wrap .hint{
    top:calc(42% + min(185px,40vw));
    width:94%;
    max-width:94%;
    justify-content:center;
    white-space:normal;
    font-size:clamp(21px,6vw,30px);
  }
  .genie-lamp-hero-wrap .hint__icon{display:none}
  .genie-lamp-hero-wrap .guide{
    left:-5%;
    bottom:98px;
    width:min(320px,66vw);
  }
  .genie-lamp-hero-wrap .guide-bubble{
    top:6%;
    right:3%;
    left:auto;
    width:min(64vw,390px);
    padding:16px 18px;
  }
  .genie-lamp-hero-wrap .guide-bubble::after{
    right:auto;
    left:22px;
  }
  .genie-lamp-hero-wrap .wishes{
    right:12px;
    left:12px;
    bottom:16px;
    width:auto;
    gap:8px;
    flex-wrap:nowrap;
  }
  .genie-lamp-hero-wrap .wish-btn{
    width:calc((100vw - 48px)/3);
    min-width:0;
    padding:13px 6px 12px;
    border-radius:15px;
  }
  .genie-lamp-hero-wrap .wish-btn__num{
    margin-bottom:5px;
    font-size:23px;
  }
  .genie-lamp-hero-wrap .wish-btn__label{
    font-size:clamp(10px,3vw,13px);
    line-height:1.35;
  }
  .genie-lamp-hero-wrap .wish-btn__hint{
    margin-top:3px;
    font-size:8px;
    letter-spacing:.04em;
  }
}

/* Comic-style reveal, aligned with the SinSingroup visual language */
.genie-lamp-hero-wrap .guide-bubble,
.genie-lamp-hero-wrap .wish-btn,
.genie-lamp-hero-wrap .saying__card,
.genie-lamp-hero-wrap .saying__close{
  font-family:SinSinJP,"Zen Kaku Gothic New","Hiragino Sans",sans-serif;
}
.genie-lamp-hero-wrap .guide img{
  filter:drop-shadow(12px 8px 0 #e52620)
         drop-shadow(-10px -3px 0 #0c94d2)
         drop-shadow(0 20px 38px rgba(10,4,40,.55));
}
.genie-lamp-hero-wrap .guide.is-in{
  transition:none;
  animation:genie-comic-in 1.05s cubic-bezier(.22,1.35,.34,1) both;
}
.genie-lamp-hero-wrap .guide-bubble{
  border:5px solid #201513;
  border-radius:34px;
  background:#fffaf0;
  box-shadow:10px 11px 0 #e52620,-8px -6px 0 #0c94d2,0 25px 55px rgba(10,4,40,.5);
  transform-origin:left bottom;
}
.genie-lamp-hero-wrap .guide-bubble.is-in{
  transition:none;
  animation:comic-bubble-in .78s cubic-bezier(.22,1.45,.34,1) both;
}
.genie-lamp-hero-wrap .guide-bubble::after{
  bottom:-25px;
  border-left-width:19px;
  border-right-width:19px;
  border-top:25px solid #201513;
}
.genie-lamp-hero-wrap .guide-bubble::before{
  content:"";
  position:absolute;
  z-index:2;
  left:30px;
  bottom:-15px;
  border-left:14px solid transparent;
  border-right:14px solid transparent;
  border-top:19px solid #fffaf0;
}
.genie-lamp-hero-wrap .guide-bubble__label{
  display:inline-block;
  margin-bottom:12px;
  padding:5px 12px;
  border-radius:999px;
  background:#f4b400;
  color:#201513;
  font-weight:900;
}
.genie-lamp-hero-wrap .guide-bubble__text{
  font-family:inherit;
  font-size:clamp(19px,2.3vw,28px);
  font-weight:900;
  line-height:1.35;
  letter-spacing:-.04em;
  color:#201513;
}
.genie-lamp-hero-wrap .guide-bubble__sub{
  font-weight:700;
  color:#201513;
}
.genie-lamp-hero-wrap .wish-btn{
  border:4px solid #201513;
  background:#fffaf0;
  color:#201513;
  box-shadow:7px 8px 0 #e52620,-4px -3px 0 #0c94d2;
}
.genie-lamp-hero-wrap .wishes.is-visible .wish-btn{
  animation:wish-comic-in .62s cubic-bezier(.22,1.55,.34,1) both;
}
.genie-lamp-hero-wrap .wishes.is-visible .wish-btn:nth-child(1){animation-delay:.05s}
.genie-lamp-hero-wrap .wishes.is-visible .wish-btn:nth-child(2){animation-delay:.15s}
.genie-lamp-hero-wrap .wishes.is-visible .wish-btn:nth-child(3){animation-delay:.25s}
.genie-lamp-hero-wrap .wish-btn:hover{
  border-color:#201513;
  background:#f4b400;
  box-shadow:11px 12px 0 #e52620,-6px -5px 0 #0c94d2;
}
.genie-lamp-hero-wrap .wish-btn__num{color:#e52620;text-shadow:none}
.genie-lamp-hero-wrap .wish-btn__label{font-family:inherit;font-weight:900}
.genie-lamp-hero-wrap .wish-btn__hint{color:#201513;font-weight:700}
.genie-lamp-hero-wrap .saying__backdrop{
  background:rgba(26,10,72,.72);
}
.genie-lamp-hero-wrap .saying__card{
  overflow:visible;
  border:6px solid #201513;
  border-radius:38px;
  background:#fffaf0;
  box-shadow:13px 15px 0 #e52620,-10px -8px 0 #0c94d2,0 32px 70px rgba(10,4,40,.6);
}
.genie-lamp-hero-wrap .saying.is-open .saying__card{
  animation:saying-comic-in .74s cubic-bezier(.2,1.55,.35,1) both;
}
.genie-lamp-hero-wrap .saying__num{
  background:#f4b400;
  color:#201513;
  font-family:inherit;
  font-weight:900;
}
.genie-lamp-hero-wrap .saying__text{
  font-family:inherit;
  font-weight:900;
  color:#201513;
}
.genie-lamp-hero-wrap .saying__sub{
  font-family:inherit;
  font-weight:700;
  color:#201513;
}
.genie-lamp-hero-wrap .saying__close{
  border:3px solid #201513;
  background:#f4b400;
  color:#201513;
  font-weight:900;
  box-shadow:5px 6px 0 #201513;
}
@keyframes genie-comic-in{
  0%{opacity:0;transform:translate(-30%,45%) rotate(-16deg) scale(.25);filter:blur(15px)}
  58%{opacity:1;transform:translate(4%,-3%) rotate(4deg) scale(1.08);filter:blur(0)}
  76%{transform:translate(-2%,1%) rotate(-2deg) scale(.96)}
  100%{opacity:1;transform:none;filter:blur(0)}
}
@keyframes comic-bubble-in{
  0%{opacity:0;transform:translate(-35%,35%) rotate(-9deg) scale(.18)}
  52%{opacity:1;transform:translate(4%,-4%) rotate(3deg) scale(1.1)}
  72%{transform:translate(-2%,2%) rotate(-1deg) scale(.96)}
  100%{opacity:1;transform:none}
}
@keyframes wish-comic-in{
  0%{opacity:0;transform:translateY(55px) rotate(-12deg) scale(.2)}
  62%{opacity:1;transform:translateY(-8px) rotate(3deg) scale(1.08)}
  100%{opacity:1;transform:none}
}
@keyframes saying-comic-in{
  0%{opacity:0;transform:rotate(-12deg) scale(.12)}
  58%{opacity:1;transform:rotate(4deg) scale(1.09)}
  76%{transform:rotate(-2deg) scale(.97)}
  100%{opacity:1;transform:none}
}

@media(max-width:720px){
  .genie-lamp-hero-wrap .guide img{
    filter:drop-shadow(7px 5px 0 #e52620)
           drop-shadow(-6px -2px 0 #0c94d2)
           drop-shadow(0 14px 24px rgba(10,4,40,.52));
  }
  .genie-lamp-hero-wrap .guide-bubble{
    border-width:4px;
    box-shadow:6px 7px 0 #e52620,-5px -4px 0 #0c94d2;
  }
  .genie-lamp-hero-wrap .guide-bubble__text{font-size:clamp(17px,5.3vw,23px)}
  .genie-lamp-hero-wrap .wish-btn{
    border-width:3px;
    box-shadow:4px 5px 0 #e52620,-3px -2px 0 #0c94d2;
  }
  .genie-lamp-hero-wrap .saying__card{
    padding:30px 22px 26px;
    border-width:5px;
    box-shadow:8px 9px 0 #e52620,-6px -5px 0 #0c94d2;
  }
}

/* Reserve the top-right controls area on tablet and mobile */
@media(max-width:1024px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:15%;
  }
}
@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:12%;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide{
    top:34%;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wishes{
    top:44%;
  }
}

/* Final responsive positioning: top-anchor the portrait and never stretch wish cards */
.genie-lamp-hero-wrap .hero.is-summoned .guide{
  top:3%;
  bottom:auto;
  left:5%;
  width:min(440px,35vw);
}
.genie-lamp-hero-wrap .hero.is-summoned .wishes{
  top:52%;
  right:4%;
  bottom:auto;
  left:auto;
  width:min(760px,57vw);
}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn{
  flex:1 1 0;
  width:auto;
  min-height:150px;
  max-width:220px;
  padding:20px 14px;
}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn__num{font-size:38px}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn__label{font-size:17px}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn__hint{font-size:11px}

@media(max-width:1024px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{top:15%}
}
@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:12%;
    right:3%;
    left:auto;
    width:94vw;
    max-width:none;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble::after{
    right:28px;
    left:auto;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble::before{
    right:30px;
    left:auto;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide{
    top:34%;
    right:-9%;
    bottom:auto;
    left:auto;
    width:min(330px,63vw);
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wishes{
    top:44%;
    right:auto;
    bottom:auto;
    left:3%;
    width:54vw;
    flex-direction:column;
    gap:12px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn{
    flex:none;
    width:100%;
    min-height:108px;
    max-width:none;
    padding:13px 12px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__num{
    left:14px;
    font-size:36px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__label{
    margin-left:42px;
    font-size:clamp(15px,4.3vw,19px);
    line-height:1.25;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__hint{
    margin-top:6px;
    margin-left:42px;
    font-size:clamp(10px,2.8vw,12px);
    line-height:1.3;
  }
}

/* Must remain last: reserve the SP top-right control area. */
@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .replay{
    top:12px;
    right:12px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:72px;
  }
  .genie-lamp-hero-wrap .guide-bubble__text{
    overflow-wrap:normal;
    word-break:keep-all;
  }
}

/* Top clearance must win over the component's earlier layout rules */
@media(max-width:1024px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{top:15%}
}
@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{top:12%}
  .genie-lamp-hero-wrap .hero.is-summoned .guide{top:34%}
  .genie-lamp-hero-wrap .hero.is-summoned .wishes{top:44%}
}

/* Keep the face visible and place the wishes directly below the speech */
.genie-lamp-hero-wrap .hero.is-summoned .guide{
  bottom:-16%;
}
.genie-lamp-hero-wrap .hero.is-summoned .wishes{
  top:52%;
  bottom:auto;
  align-items:stretch;
}
.genie-lamp-hero-wrap .wishes.is-visible .wish-btn{
  animation-fill-mode:backwards;
  overflow:hidden;
  transition:transform .28s cubic-bezier(.22,1.45,.34,1),
             box-shadow .28s ease,
             background .28s ease;
}
.genie-lamp-hero-wrap .wish-btn::before{
  content:"";
  position:absolute;
  z-index:0;
  top:-35%;
  bottom:-35%;
  left:-55%;
  width:34%;
  background:linear-gradient(90deg,transparent,#fff9,transparent);
  transform:skewX(-18deg);
  transition:left .5s ease;
  pointer-events:none;
}
.genie-lamp-hero-wrap .wish-btn>*{position:relative;z-index:1}
.genie-lamp-hero-wrap .wish-btn:hover,
.genie-lamp-hero-wrap .wish-btn:focus-visible{
  transform:translateY(-11px) rotate(-2deg) scale(1.055);
  background:#f4b400;
  box-shadow:13px 15px 0 #e52620,-8px -6px 0 #0c94d2;
}
.genie-lamp-hero-wrap .wish-btn:nth-child(2):hover,
.genie-lamp-hero-wrap .wish-btn:nth-child(2):focus-visible{
  transform:translateY(-11px) rotate(2deg) scale(1.055);
}
.genie-lamp-hero-wrap .wish-btn:hover::before,
.genie-lamp-hero-wrap .wish-btn:focus-visible::before{left:125%}

@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide{
    left:-8%;
    bottom:-8%;
    width:min(330px,64vw);
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:4%;
    right:3%;
    width:70vw;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wishes{
    top:39%;
    right:3%;
    bottom:auto;
    left:auto;
    width:48vw;
    flex-direction:column;
    align-items:stretch;
    gap:11px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn{
    width:100%;
    min-height:94px;
    max-width:none;
    padding:10px 9px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__num{
    position:absolute;
    left:12px;
    top:50%;
    margin:0;
    transform:translateY(-50%);
    font-size:30px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__label,
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__hint{
    margin-left:34px;
  }
  .genie-lamp-hero-wrap .wish-btn:hover,
  .genie-lamp-hero-wrap .wish-btn:focus-visible,
  .genie-lamp-hero-wrap .wish-btn:nth-child(2):hover,
  .genie-lamp-hero-wrap .wish-btn:nth-child(2):focus-visible{
    transform:translateX(-7px) rotate(-1deg) scale(1.025);
  }
}

/* After rubbing: compose the scene only with the genie, speech and wishes */
.genie-lamp-hero-wrap .hero.is-summoned .guide{
  left:4%;
  bottom:-2%;
  width:min(520px,44vw);
}
.genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
  top:10%;
  right:4%;
  left:auto;
  width:min(600px,50vw);
  padding:clamp(22px,2.4vw,34px);
}
.genie-lamp-hero-wrap .hero.is-summoned .wishes{
  right:4%;
  bottom:6%;
  left:auto;
  width:min(760px,57vw);
  gap:clamp(10px,1.5vw,18px);
}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn{
  flex:1 1 0;
  width:auto;
  max-width:210px;
}

@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:5%;
    right:4%;
    left:auto;
    width:72vw;
    max-width:430px;
    padding:17px 18px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide{
    left:-4%;
    bottom:88px;
    width:min(350px,70vw);
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wishes{
    right:10px;
    bottom:14px;
    left:10px;
    width:auto;
    gap:7px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn{
    width:calc((100vw - 42px)/3);
    max-width:none;
  }
}

/* Final overrides — verified against PC and mobile captures */
.genie-lamp-hero-wrap .hero.is-summoned .guide{
  top:3%;
  bottom:auto;
  left:5%;
  width:min(440px,35vw);
}
.genie-lamp-hero-wrap .hero.is-summoned .wishes{
  top:52%;
  right:4%;
  bottom:auto;
  left:auto;
  width:min(760px,57vw);
}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn{
  flex:1 1 0;
  width:auto;
  min-height:150px;
  max-width:220px;
  padding:20px 14px;
}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn__num{font-size:38px}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn__label{font-size:17px}
.genie-lamp-hero-wrap .hero.is-summoned .wish-btn__hint{font-size:11px}

@media(max-width:720px){
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble{
    top:3%;
    right:3%;
    left:auto;
    width:94vw;
    max-width:none;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble::after{
    right:28px;
    left:auto;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide-bubble::before{
    right:30px;
    left:auto;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .guide{
    top:30%;
    right:-9%;
    bottom:auto;
    left:auto;
    width:min(330px,63vw);
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wishes{
    top:40%;
    right:auto;
    bottom:auto;
    left:3%;
    width:54vw;
    flex-direction:column;
    gap:12px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn{
    flex:none;
    width:100%;
    min-height:108px;
    max-width:none;
    padding:13px 12px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__num{
    left:14px;
    font-size:36px;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__label{
    margin-left:42px;
    font-size:clamp(15px,4.3vw,19px);
    line-height:1.25;
  }
  .genie-lamp-hero-wrap .hero.is-summoned .wish-btn__hint{
    margin-top:6px;
    margin-left:42px;
    font-size:clamp(10px,2.8vw,12px);
    line-height:1.3;
  }
}
