.coronation-modal{width:min(96vw,500px)!important;max-height:94dvh;overflow:hidden}.coronation-modal .modal-content{padding:0!important;max-height:calc(94dvh - 48px);overflow-y:auto}.coronation-scene{position:relative;isolation:isolate;height:min(66dvh,650px);min-height:360px;overflow:hidden;background:#553024}.ceremony-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.ceremony-heading{position:absolute;top:3%;left:12%;right:12%;text-align:center;color:#fff1b7;text-shadow:0 2px 4px #3a120a;z-index:6;background:linear-gradient(90deg,transparent,#672d27b3,transparent);padding:6px}.ceremony-heading span{font-size:9px;letter-spacing:2px}.ceremony-heading h2{margin:3px 0;font-size:25px;color:inherit}.phoenix-throne{position:absolute;width:40%;height:30%;object-fit:contain;top:22%;left:30%;z-index:1}.ceremony-player{position:absolute;left:23%;width:54%;height:48%;bottom:29%;z-index:4;filter:drop-shadow(0 4px 3px #2c160f55)}.consort-scene .ceremony-player{bottom:27%}.ceremony-player .character{width:100%;height:100%;display:block}.phase-entrance .ceremony-player{animation:ceremony-enter 4.5s cubic-bezier(.23,.6,.3,1) both}.ceremony-guest{position:absolute;width:29%;height:calc(25% + var(--row)*3%);bottom:calc(40% - var(--row)*8%);z-index:calc(2 + var(--row));text-align:center}.ceremony-guest.guest-left{left:calc(8% - var(--row)*3%)}.ceremony-guest.guest-right{right:calc(8% - var(--row)*3%)}.ceremony-guest .character{width:100%;height:100%}.ceremony-guest span{position:absolute;bottom:2%;left:0;right:0;color:#fff3d0;font-size:8px;text-shadow:0 1px 3px #2e1808}.phase-congratulations .ceremony-guest{animation:ceremony-bow 2s ease-in-out}.ceremony-caption{position:absolute;bottom:2.5%;left:5%;right:5%;z-index:10;padding:12px 14px;text-align:center;background:linear-gradient(130deg,#5b2024ee,#873d38ed);border:2px double #e4c48a;border-radius:14px;color:#ffefc3;min-height:65px;box-shadow:0 6px 15px #32150940}.ceremony-caption strong{font-family:var(--serif);font-size:16px}.ceremony-caption p{font-size:12px;line-height:1.6;margin:5px 0}.ceremony-controls{padding:10px 18px;text-align:center;background:#f3e2c2}.ceremony-controls small{display:block;font-size:10px;margin-top:6px;color:#805c46}.coronation-decree{padding:32px 8% 20px;background:linear-gradient(100deg,#ddc08b,#fff2d2 18%,#f9e6bd 80%,#cba76b);text-align:center;color:#714734}.coronation-decree.empress-decree{border:7px double #b88b39;box-shadow:inset 0 0 40px #9b671838;background:radial-gradient(ellipse at top,#fff9de,#f8e6bb 70%)}.coronation-decree h2{color:#82332e;font-size:29px;margin:20px 0}.coronation-decree p{font-family:var(--serif);line-height:1.85;font-size:16px}.coronation-title{display:block;color:#923b35;font-size:23px}.coronation-decree .eyebrow{font-size:9px;letter-spacing:1px}.coronation-token{display:block;width:58%;height:160px;object-fit:contain;margin:12px auto 0}.coronation-decree small{display:block;margin:0 0 20px;color:#9d2e2d;font-family:var(--serif);font-size:18px}.shop-balance{display:flex;align-items:center;justify-content:space-between;padding:10px;background:#ead7b4;border-radius:8px}.shop-balance img{height:38px;width:48px;object-fit:contain}.shop-catalog,.supply-list{display:grid;gap:12px;margin:15px 0}.shop-product,.supply-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:center;padding:14px 10px;border:1px solid #be9860;border-radius:12px;background:linear-gradient(135deg,#fff6df,#eddbb8)}.shop-product img,.supply-card img{width:80px;height:90px;object-fit:contain}.shop-product h3,.supply-card h3{margin:0 0 5px;font-size:18px}.shop-product p,.supply-card p{font-size:12px;line-height:1.55;margin:4px 0 9px}.shop-product button,.supply-card button{min-height:38px;font-size:12px}.shop-odds{font-size:11px;line-height:1.65;padding:12px;border:1px dashed #b49368;border-radius:8px}.shop-receipt-art{width:140px;height:150px;object-fit:contain;display:block;margin:0 auto 12px}.home .stage-tools{position:absolute;right:3.6%;bottom:11.5%;z-index:6;display:flex;gap:6px;align-items:end}.home .stage-tools button{position:static;width:43px;height:43px;min-height:43px;padding:0;border:0;background:none;box-shadow:none;border-radius:50%;display:grid;place-items:center}.home .stage-tools button::before,.home .stage-tools button::after{display:none!important}.home .stage-tools img{width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 2px 2px #2c171a88)}.home .stage-tools button:focus-visible{outline:2px solid #fff1aa;outline-offset:2px}.home .stage-tools button:disabled{opacity:.45}@keyframes ceremony-enter{from{transform:translateY(115%) scale(1.12)}to{transform:translateY(0) scale(1)}}@keyframes ceremony-bow{50%{transform:translateY(4px) scaleY(.97)}}@media(prefers-reduced-motion:reduce){.phase-entrance .ceremony-player,.phase-congratulations .ceremony-guest{animation:none}}

.legacy-content>.reincarnation-balance{border:0;background:transparent;box-shadow:none;min-height:28px;padding:3px 8px;margin:2px 0 10px;font-size:12px;gap:7px}.legacy-content>.reincarnation-balance b{font-size:19px}.legacy-content>.reincarnation-balance .icon{width:16px;height:16px}.force-rebirth{background:linear-gradient(145deg,#bf3945,#922335)!important;color:#fff!important;font-size:18px;font-weight:700;min-height:62px;border:2px solid #e0aa79;border-radius:10px;box-shadow:inset 0 1px 0 #f9c3b15c,0 4px 10px #6e1e2a33;margin:0 0 16px}.force-rebirth:disabled{opacity:.45}.force-rebirth::after{opacity:.6}.force-rebirth:hover:not(:disabled){filter:brightness(1.09)}

.shop-modal{width:min(94vw,390px)!important}.shop-modal .section-title{padding:20px 0 14px;margin-bottom:6px}.shop-modal .section-title h2{font-size:27px}.shop-modal .section-title:before{height:22px;width:110px}.shop-modal .section-title:after{height:12px;width:170px}

.ceremony-invitation,.ceremony-dressing{padding:20px 18px;text-align:center;background:linear-gradient(135deg,#fff4d8,#e9d3ae)}.ceremony-invitation h2,.ceremony-dressing h2{font-size:25px;color:#793b41;margin:9px 0}.ceremony-invitation p{font-size:14px;line-height:1.7}.invited-npc{height:245px;margin:8px auto}.invited-npc .character,.ceremony-dressing-look .character{height:100%;width:100%}.ceremony-dressing-look{height:250px;max-width:220px;margin:auto}.ceremony-wardrobe{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:220px;overflow-y:auto;padding:8px 2px;margin:8px 0}.ceremony-clothing{display:flex;flex-direction:column;align-items:center;padding:5px!important;min-width:0;border:1px solid #c59f61!important;border-radius:7px;background:#f7e6c8!important;color:#684336!important;min-height:100px}.ceremony-clothing::after,.ceremony-clothing::before{display:none!important}.ceremony-clothing .item-art,.ceremony-clothing>svg,.ceremony-clothing>img{width:100%;height:75px;object-fit:contain}.ceremony-clothing span{font-size:10px;line-height:1.3;overflow-wrap:anywhere}.ceremony-clothing.chosen{outline:2px solid #a54c62;background:#f2d2ce!important}.ceremony-self span{background:#f3dce6;color:#703746!important;border:1px solid #e0ae74;border-radius:7px;text-shadow:none!important;padding:3px 1px}.ceremony-heading small{font-size:12px}.ceremony-invitation .eyebrow,.ceremony-dressing .eyebrow{font-size:10px}
