#gameMenuOpen{display:none}#gameMenu{max-width:400px;padding:22px}#gameMenu nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 0;overflow:visible}#gameMenu nav button{padding:14px;font-size:15px;white-space:normal}
body.portrait-gacha{--portrait-w:min(100vw,calc((100dvh - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * .562799));height:100vh;height:100dvh;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#51342f,#1e151b 70%);color:#f4e7e1}
.portrait-gacha .shell{height:100vh;height:100dvh;width:100%;max-width:none;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);display:flex;flex-direction:column}.portrait-gacha .shell>header,.portrait-gacha .game-heading{display:none}.portrait-gacha main{display:flex;flex-direction:column;min-height:0;height:100%;flex:1}.portrait-gacha .layout{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:0}
.portrait-gacha .layout>.cabinet{flex:none;width:var(--portrait-w);height:calc(var(--portrait-w) * 1.776833);min-height:0;border:0!important;border-radius:0;padding:0;box-shadow:0 0 90px #0006!important;background:none!important;overflow:hidden;display:block}
.portrait-gacha .ambient,.portrait-gacha .cabinet-top,.portrait-gacha #controls,.portrait-gacha .machine-caption,.portrait-gacha #status{display:none!important}.portrait-gacha #scene{width:100%;height:100%;min-height:0!important;border-radius:0;display:block;position:relative;overflow:hidden!important}.portrait-gacha .gacha-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;filter:none;opacity:1;transform:none}.portrait-gacha .gacha-shade,.portrait-gacha .orb{display:none}
.gacha-hotspot{position:absolute;left:9%;right:9%;top:87.7%;height:9.4%;z-index:20;background:transparent;border:0;border-radius:100px;color:transparent;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.gacha-hotspot:hover{box-shadow:inset 0 0 25px #fff2}.gacha-hotspot:focus-visible{outline:3px solid #fff1be;outline-offset:-5px}.gacha-hotspot:active{background:#fff1}.gacha-hotspot:disabled{opacity:1;cursor:default}
.portrait-gacha footer{height:48px;min-height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:4px;margin:0;border-top:1px solid #b9946d33;background:#241c20;padding:0 8px}.portrait-gacha footer>span{display:none}.portrait-gacha footer .text-button{font-size:13px;min-height:44px;padding:8px 11px;white-space:nowrap;color:#d7c3b6}.portrait-gacha #mobileInfoOpen,.portrait-gacha #gameMenuOpen{display:block}
/* While playing, retain the full photograph and avoid covering the face. */
.portrait-gacha .motion-stage{background:linear-gradient(transparent 0 65%,#29162155 85%,#25151b99)!important;border-radius:0}.portrait-gacha .motion-halo{inset:49% 0 auto 45%;width:50%;height:35%;opacity:.3;border:0;box-shadow:none;background:radial-gradient(ellipse,#fff1c52e,transparent 70%)}.portrait-gacha .motion-halo:after{display:none}.portrait-gacha .motion-object{height:13%;top:64%;left:73%;filter:drop-shadow(0 0 12px #fff4d399)}.portrait-gacha .motion-capsules{display:none!important}.portrait-gacha .motion-particles i{opacity:.3;font-size:12px!important;color:#fff2cc;text-shadow:0 0 8px #ffd9ad}
.portrait-gacha .motion-title{top:auto;bottom:16%;font-size:20px;color:#fff0d6;letter-spacing:1px;text-shadow:0 2px 7px #602f37}.portrait-gacha .motion-message{bottom:12%;font-size:13px;left:8%;right:8%;color:#fff2e5;text-shadow:0 2px 5px #35111f}.portrait-gacha .motion-track{display:none}.portrait-gacha .motion-interact{bottom:3.3%;left:10%;right:10%;height:8.8%}.portrait-gacha .motion-tap{width:100%;height:100%;min-height:44px;padding:6px 10px;border:1px solid #ffe0bb;border-radius:100px;background:linear-gradient(#f4b5ca,#cc7997);box-shadow:inset 0 1px 3px #fff6,0 4px 15px #52232c77;color:#fff9ed;font-size:clamp(15px,3.8vw,20px);text-shadow:0 1px 3px #9b4c6c;animation:tapBreathe 1.8s ease-in-out infinite alternate}
.portrait-gacha .motion-stage[data-waiting=true] .motion-object{height:13%;top:64%}.portrait-gacha .motion-photo{object-fit:contain;object-position:center;transform:scale(1.02)}.portrait-gacha .motion-stage[data-phase=omen] .motion-photo{opacity:1;transform:scale(1)}.portrait-gacha .motion-stage[data-phase=omen] .motion-object{visibility:hidden}.portrait-gacha .motion-stage[data-phase=ssr]{background:linear-gradient(#ffe9a022,transparent 65%,#421b2f88)!important}.portrait-gacha .motion-stage[data-phase=ssr] .motion-photo{opacity:1;transform:scale(1);object-fit:contain;object-position:center}.portrait-gacha .motion-stage[data-phase=ssr] .motion-title{display:none}.portrait-gacha .motion-stage[data-phase=ssr] .motion-message{bottom:5%;font-size:16px}.portrait-gacha .motion-stage[data-phase=ssr] .motion-halo{inset:0;width:100%;height:100%;opacity:.16;background:repeating-conic-gradient(from 0deg at 60% 55%,#fff1a944 0 8deg,transparent 8deg 30deg)}
/* The result stays in the same photographic world. */
#result.gacha-result{position:fixed;inset:0;margin:auto;width:min(94vw,calc((100dvh - 24px) * .562799));height:min(calc(94vw * 1.776833),calc(100dvh - 24px));max-width:540px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #e3bc90;border-radius:18px;background:#38222d;box-shadow:0 20px 100px #000a;overflow:hidden;animation:fade .5s ease-out both}
#result.gacha-result:before{display:none!important}.gacha-result-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%;z-index:0}.gacha-result .dialog-close{z-index:10;background:#342029a6;border:1px solid #ffedd455;border-radius:50%;width:36px;height:36px;padding:0;right:8px;top:8px;color:#fff1de}
.gacha-result .result-inner{position:absolute;left:0;right:0;bottom:0;padding:22px 22px 18px;z-index:3;border-top:1px solid #c79b7c;border-radius:24px 24px 0 0;background:linear-gradient(145deg,#fff6eb,#f4dce0);color:#743c50;box-shadow:0 -12px 40px #54253544;text-align:center;min-height:37%}.gacha-result .result-symbol,.gacha-result #resultBadge{display:none}.gacha-result .result-inner h2{font-size:clamp(22px,6vw,30px);font-weight:700;margin:0 0 12px;color:#a24d70;text-shadow:none}.gacha-result .result-inner>p:not(.muted){font-size:clamp(16px,4.5vw,21px);font-weight:500;line-height:1.7;margin:8px 0 12px}.gacha-result .result-inner .muted{color:#936b78;font-size:13px;line-height:1.5}.gacha-result .result-inner .gold-button{border:1px solid #c9957e;background:linear-gradient(#edb2c4,#cb7899);color:#fff7ed;box-shadow:inset 0 1px 1px #fff6,0 4px 12px #ad658533;min-height:46px;padding:12px;margin-top:10px;font-size:16px;border-radius:100px}.gacha-result .confetti{opacity:.4}
#result.gacha-result.jackpot[open]{display:flex;flex-direction:column;background:#422a2f;border-color:#f3d39a;box-shadow:0 0 40px #dfb97655,0 20px 100px #0008}.gacha-result.jackpot .gacha-result-image{position:relative;inset:auto;display:block;flex:1;min-height:0;height:0;object-fit:contain;object-position:center}.gacha-result.jackpot .result-inner{position:relative;flex-shrink:0;left:auto;right:auto;bottom:auto;min-height:0;padding:10px 18px 14px;border-radius:0;border-top:1px solid #e5bf8c;box-shadow:none}.gacha-result.jackpot[data-baked-prize=true] #resultTitle,.gacha-result.jackpot[data-baked-prize=true] #resultPrize{display:none}.gacha-result.jackpot .result-inner #resultTitle{font-size:25px;color:#a65565}.gacha-result.jackpot .result-inner .gold-button{margin-top:0}.gacha-result.jackpot .result-inner .muted{margin:0 0 7px}
@media(max-width:360px){.portrait-gacha footer .text-button{font-size:12px;padding:7px}.gacha-result .result-inner{padding:16px}.portrait-gacha .motion-title{font-size:17px}}

/* Shared celebration photo; only a real jackpot gets the jackpot heading. */
#result.gacha-result{container-type:inline-size}
#result.gacha-result.jackpot[open]{display:block}
#result.gacha-result .gacha-result-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
#result.gacha-result .result-inner{position:absolute;left:0;right:0;bottom:0;min-height:37%;padding:14px 18px 12px;border-radius:20px 20px 0 0;background:linear-gradient(145deg,#fff6eb,#f4dce0);border-top:1px solid #e5bf8c;box-shadow:0 -8px 25px #54253544}
#result.gacha-result .result-inner h2{margin:0 0 6px;font-size:clamp(20px,6cqw,28px)}
#result.gacha-result .result-inner>p:not(.muted){font-size:clamp(15px,4.8cqw,20px);line-height:1.45;margin:6px 0 8px}
#result.gacha-result .result-inner .muted{margin:4px 0;font-size:12px}
#result.gacha-result .result-inner .gold-button{margin-top:6px;min-height:44px;padding:10px 14px;font-size:15px}
#result.gacha-result.jackpot #resultTitle{display:none}
.gacha-win-heading{position:absolute;left:3%;right:3%;top:9%;margin:0;z-index:3;text-align:center;font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:clamp(28px,13cqw,68px);line-height:1.2;letter-spacing:.02em;font-weight:900;color:#e33169;-webkit-text-stroke:1px #fff1d6;text-shadow:0 2px 0 #9d5433,0 0 14px #ffefad,0 0 30px #ffc15b}
.portrait-gacha .motion-stage[data-phase=ssr] .motion-title{display:block;top:9%;bottom:auto;left:3%;right:3%;font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:clamp(28px,8vw,58px);font-weight:900;line-height:1.2;letter-spacing:.02em;color:#e33169!important;-webkit-text-stroke:1px #fff1d6;text-shadow:0 2px 0 #9d5433,0 0 14px #ffefad;animation:jackpotGreeting .7s ease-out both}
.portrait-gacha .motion-stage[data-phase=ssr] .motion-halo{display:none}
.portrait-gacha .motion-stage[data-phase=ssr] .motion-particles i{animation:particleDrift 2s ease-in-out infinite alternate;font-size:12px!important}
.gacha-result .confetti{mask-image:linear-gradient(90deg,#000,transparent 15% 85%,#000)}
@keyframes jackpotGreeting{from{opacity:0;transform:translateY(8px) scale(.9)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.portrait-gacha .motion-stage[data-phase=ssr] .motion-title{animation:none}}
#result.gacha-result.jackpot .result-inner{display:flex;flex-direction:column;justify-content:center}
.portrait-gacha .motion-stage[data-phase=ssr] .motion-title{font-size:clamp(28px,11vw,64px)}
.gacha-congrats[data-font=gothic]{font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif}
.gacha-congrats[data-font=mincho]{font-family:"Yu Mincho","Hiragino Mincho ProN",serif}
.gacha-congrats[data-font=rounded]{font-family:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN",sans-serif}
.gacha-congrats[data-font=handwritten]{font-family:"Klee One","UD Digi Kyokasho N-R",cursive;font-weight:600}
.gacha-congrats[data-font=cursive]{font-family:"Yuji Syuku","Yu Mincho",cursive;font-weight:400;font-style:italic}
#gachaFontPreview{text-align:center;font-size:26px;color:#fff0d6;margin:12px 0}
