:root{--view:100dvh;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--vignette:#25162d}
html,body{height:100%;width:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{position:relative;min-width:280px;min-height:0}.festival-scene{background-image:linear-gradient(180deg,#29193545 0%,transparent 30%,transparent 62%,#2818306e),var(--stage-scene,url(assets/festival.webp));background-position:center;background-size:cover}.in-plaza .festival-scene{background-image:linear-gradient(0deg,#2515318c 0%,#331d2808 32%,transparent 70%,#3d254e4d 100%),url(assets/sanctuary.webp);background-position:center 59%}.festival-scene:after{box-shadow:inset 0 0 80px #29102a30}
.kingdom{position:relative;height:var(--view);width:min(100%,1380px);margin:auto;isolation:isolate}.sanctuary-hud{position:absolute;inset:calc(13px + var(--safe-top)) 3.5% auto;display:flex;align-items:center;justify-content:space-between;z-index:3;pointer-events:none}.sanctuary-hud button,.home-counters{pointer-events:auto}.passport{display:flex;align-items:center;gap:9px;background:linear-gradient(100deg,#3c2947f2,#533848da);box-shadow:inset 0 1px 0 #f8d6a54d,0 2px 2px #341b3a99;border:1.5px solid #c39b77;border-radius:12px 24px 24px 12px;padding:2px 14px 2px 2px;text-align:left;max-width:240px}.passport-art{display:block;position:relative;width:46px;height:46px;border-radius:11px;padding:0;background:radial-gradient(#e8afbd,#82516b);border:2px solid #ffe2a7;outline:1px solid #6e4b51;overflow:hidden}.passport-art img{width:100%;height:100%;object-fit:cover;transform:scale(1.15);transform-origin:50% 12%}.passport-art[data-frame=sakura]{box-shadow:0 0 10px #f593c1}.passport-art[data-frame=moonfire]{box-shadow:0 0 10px #ffc172}.passport-art[data-frame=prism]{box-shadow:0 0 10px #96e1eb}.passport-name{min-width:0;display:grid;gap:1px}.passport-name>b{font-size:15px;line-height:1.1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.passport-name small{font-size:11px;letter-spacing:.2px;color:#efc996}.home-counters{display:flex;align-items:center;gap:9px}.life-purse,.home-counters .coin-purse{display:flex;align-items:center;justify-content:center;gap:4px;background:linear-gradient(135deg,#443047ed,#332437f5);color:#ffe9bb;border:1.5px solid #c7a27d;border-radius:22px;min-width:66px;height:36px;padding:2px 10px 2px 4px;box-shadow:inset 0 1px 2px #fff1af24,0 2px 3px #2a193780;font-size:16px;font-weight:1000}.life-purse>span{display:block;width:29px;height:29px}.home-counters .round-button,.battle-settings{background:linear-gradient(145deg,#785d79,#483247);border:1.5px solid #dfb98c;box-shadow:inset 0 0 0 2px #755a69,0 2px 2px #2d1e39}.home-counters .round-button{width:37px;height:37px}
.pass-rail{position:absolute;left:50%;top:calc(19px + var(--safe-top));transform:translateX(-50%);width:clamp(240px,27vw,352px);height:42px;display:flex;align-items:center;gap:7px;border:2px solid #e3ba85;border-radius:12px;background:linear-gradient(100deg,#765270f7,#573c59fa);box-shadow:inset 0 0 0 2px #ad7d80,0 3px 0 #704953,0 5px 9px #36233e66;padding:3px 8px}.pass-rail>img{height:49px;width:43px;object-fit:contain;filter:drop-shadow(0 2px 2px #332635)}.pass-rail>img.pass-chest{height:46px;width:43px}.pass-rail-body{flex:1;display:flex;flex-direction:column;gap:3px}.pass-rail-body>span{display:flex;justify-content:space-between;align-items:center;line-height:1.05;gap:7px}.pass-rail-body b{font-size:13px;color:#ffe6bb}.pass-rail-body small{font-size:10px;color:#ead3df}.pass-track,.power-track{position:relative;display:block;background:#302137;border:1px solid #bb8c92;box-shadow:inset 0 2px 3px #140e1c;border-radius:14px;overflow:hidden;height:8px}.pass-track>i,.power-track>i{display:block;height:100%;background:linear-gradient(#ffd8a0,#e49f71);border-radius:inherit;transition:width .3s}
.sanctuary-title{position:absolute;left:50%;transform:translateX(-50%);top:12.3%;width:clamp(215px,28vw,382px);height:13.8%;max-height:116px;filter:drop-shadow(0 5px 4px #48364899)}.sanctuary-title img{width:100%;height:100%;object-fit:contain}
.festival-orbits{position:absolute;display:flex;flex-direction:column;justify-content:space-between;gap:10px;top:25%;bottom:23%;z-index:2}.orbit-left{left:clamp(15px,6vw,94px)}.orbit-right{right:clamp(15px,6vw,94px)}.event-badge{--badge:#b15f86;--deep:#783d68;position:relative;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-height:0;height:31%;width:clamp(82px,9.4vw,130px);padding:0;filter:drop-shadow(0 4px 2px #35213e6b);transition:filter .18s,translate .18s}.event-badge:hover{filter:drop-shadow(0 0 8px #fff0ad80) brightness(1.1);translate:0 -2px}.badge-face{position:relative;display:grid;place-items:center;width:min(80%,10.8dvh);aspect-ratio:1;border:3px solid #edcf93;border-radius:30% 30% 37% 37%;outline:1.5px solid #895b53;background:radial-gradient(ellipse at 40% 25%,color-mix(in srgb,var(--badge) 75%,white),var(--badge) 60%,var(--deep));box-shadow:inset 0 0 0 2px #593a5370,inset 0 3px 4px #fff1c070,0 0 16px color-mix(in srgb,var(--badge) 60%,transparent)}.badge-face:after{content:"";position:absolute;top:3%;right:1%;width:10px;height:13px;background:#ffedbd;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:badge-twinkle 3s ease infinite alternate}.badge-face img{position:absolute;width:112%;height:112%;top:-9%;left:-6%;object-fit:contain;filter:drop-shadow(0 2px 1px #35213e6a)}.event-badge b{position:relative;z-index:1;margin-top:-11px;display:block;min-width:80%;padding:4px 9px 5px;line-height:1.05;text-align:center;font-size:clamp(11px,1.04vw,15px);font-weight:1000;letter-spacing:-.2px;white-space:nowrap;background:linear-gradient(color-mix(in srgb,var(--badge) 80%,white),var(--deep));border:1px solid #f8ce9c;border-radius:5px 5px 9px 9px;color:#fff2d8;box-shadow:inset 0 1px 0 #fff3d44d,0 2px 0 #5b3c51;text-shadow:0 1px 2px #4c294e}.event-badge small{font-size:10px;color:#ffebc8;line-height:1;margin-top:3px;background:#38233ae0;border:1px solid #b28a7f;border-radius:7px;padding:2px 6px}.amber-badge{--badge:#d09155;--deep:#94603e}.mint-badge{--badge:#6ba99f;--deep:#406c73}.lilac-badge{--badge:#a887c9;--deep:#6f508c}.blue-badge{--badge:#688fa9;--deep:#495d79}.rose-badge{--badge:#9a80b2;--deep:#694775}.blue-badge .badge-face img{width:117%;height:128%;top:-17%;left:-9%;object-position:center top}
.sanctuary-guardian{position:absolute;left:50%;bottom:26%;transform:translateX(-50%);height:44%;width:min(58vw,410px);padding:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;cursor:pointer;isolation:isolate}.guardian-sprite{display:block;width:100%;height:100%;aspect-ratio:1;filter:drop-shadow(0 5px 3px #4a2f4655)}.sanctuary-guardian>.guardian-sprite{height:auto;max-height:calc(100% - 15px);width:auto;max-width:100%;aspect-ratio:270/320}.dais-shadow{position:absolute;left:9%;right:9%;bottom:12px;height:12%;border-radius:50%;background:radial-gradient(ellipse,#57355272,transparent 71%);z-index:-1}.guardian-plate{display:inline-flex;align-items:center;gap:8px;padding:4px 19px;background:linear-gradient(90deg,transparent,#39233cef 16%,#543447e8 84%,transparent);border-radius:14px;margin-top:-4px;color:#ffebc3;text-shadow:0 1px 2px #311b34;font-size:15px;line-height:1}.guardian-plate i{width:4px;height:4px;transform:rotate(45deg);background:#f4c087}.journey-launch{position:absolute;left:50%;bottom:calc(9.7% + var(--safe-bottom));transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;text-align:center;gap:5px}.journey-launch>small{color:#fff0cc;font-size:10px;letter-spacing:2.2px;text-shadow:0 1px 3px #2c1d32,0 0 6px #2c1d32;font-weight:1000}.play-stage{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;min-width:clamp(205px,24vw,310px);min-height:clamp(48px,7dvh,69px);border:3px solid #f9d69b;border-radius:19px;color:#fff9df;background:linear-gradient(165deg,#a3d883,#78b66e 44%,#579a62 60%,#438660);box-shadow:0 0 0 2px #76544e,inset 0 0 0 2px #c4da9b,inset 0 3px 0 2px #e1efab,0 5px 0 2px #426847,0 7px 10px #3020367a;font-size:clamp(23px,2.7vw,34px);font-weight:1000;letter-spacing:-.9px;text-shadow:0 2px #527550,0 3px 2px #50704b}.play-stage:hover{filter:brightness(1.08)}.play-glyph{height:21px;width:17px;background:linear-gradient(120deg,#fffbd3,#f9df9b);clip-path:polygon(0 0,100% 50%,0 100%)}.journey-launch>span{font-size:13px;color:#fff1d5;font-weight:900;text-shadow:0 1px 3px #261d31,0 0 6px #261d31}
.sanctuary-dock{position:absolute;bottom:calc(7px + var(--safe-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:end;justify-content:space-around;width:min(510px,96%);padding:2px 9px;border:2px solid #c99c7a;border-radius:18px;background:linear-gradient(#61405cfa,#3b2b45fa);box-shadow:inset 0 1px 0 #e6b49e80,0 3px 0 #553947,0 5px 9px #261a3080}.sanctuary-dock button{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;gap:0;font-size:11px;line-height:1;font-weight:900;color:#e4c9d8;padding:4px 3px;height:49px;justify-content:flex-end;border-radius:10px}.sanctuary-dock button>span{width:29px;height:29px;margin-bottom:2px;filter:drop-shadow(0 2px 1px #38243f)}.sanctuary-dock .dock-home{border:1px solid #d7ac8e;background:linear-gradient(#a87587,#855267);color:#fff2cc;height:55px;margin-top:-7px;box-shadow:inset 0 1px 0 #f7dac091}.sanctuary-dock .dock-home>span{width:36px;height:36px}.sanctuary-dock button:hover{background-color:#8d688355}
.battle{--ratio:1;--board-space:min(55vw,calc((100dvh - 172px - var(--safe-top) - var(--safe-bottom))*var(--ratio)),645px);height:var(--view);width:100%;padding:calc(var(--safe-top) + 10px) 12px calc(var(--safe-bottom) + 8px);display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.battle-settings{position:absolute;right:max(15px,env(safe-area-inset-right));top:calc(14px + var(--safe-top));height:39px;width:39px;z-index:4}.battle-title{text-align:center;margin:0 0 13px;filter:drop-shadow(0 2px 4px #2c1838b5)}.battle-title h1{font-size:clamp(27px,5.1dvh,46px);line-height:1.06;font-weight:1000;letter-spacing:-1px;text-shadow:0 2px #714650,0 4px #35243d,0 5px 6px #26132b}.battle-title .level-eyebrow{font-size:10px;letter-spacing:1.7px;margin-bottom:4px}.battle-layout{display:grid;grid-template-columns:clamp(135px,15vw,210px) var(--board-space) clamp(130px,13vw,185px);gap:clamp(16px,2.6vw,45px);align-items:center;justify-content:center;width:max-content;max-width:100%}.battle .board-column{grid-column:2;grid-row:1;width:100%;order:0}.battle .score-bar{margin:11px 4px 0;height:34px}.battle-stats{display:flex;flex-direction:column;gap:15px;grid-column:3;grid-row:1}.battle .level-hud{display:block}.battle .goal-area{padding:10px 7px 12px}.battle .goals{flex-wrap:wrap;gap:7px 11px}.battle .goal-token{min-width:32px}.battle .goal-token img{width:clamp(26px,3.8dvh,39px);height:clamp(26px,3.8dvh,39px)}.battle-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px}.battle .hint-button,.move-gift{position:static;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:12px;min-height:30px;background:#3a293ff0;border:1.5px solid #c6a483;border-radius:15px;padding:4px 10px;color:#f6e7d6}.move-gift [data-icon]{width:18px;height:18px}.battle .instruction-bar{margin-top:10px;font-size:12px}
.guardian-rail{display:flex;flex-direction:column;align-items:center;grid-column:1;grid-row:1;width:100%;align-self:center}.battle-character{position:relative;display:flex;justify-content:center;width:100%;height:min(31dvh,255px);z-index:1}.battle-character>i{position:absolute;bottom:-2px;left:6%;right:6%;height:12%;border-radius:50%;background:radial-gradient(ellipse,#fce5b091,transparent 69%)}.battle-character .guardian-sprite{height:100%;width:auto;max-width:106%}.guardian-meter{position:relative;text-align:center;width:100%;border:2px solid #deb388;border-radius:15px;box-shadow:inset 0 0 0 2px #916477,0 3px 0 #543c4e,0 5px 8px #38243f75;background:linear-gradient(145deg,#714252f7,#39293ff7);padding:12px}.guardian-kicker{font-size:9px;letter-spacing:1.8px;color:#e9c996;font-weight:1000}.guardian-meter h2{font-weight:1000;font-size:23px;line-height:1.05;letter-spacing:-.5px;margin:3px 0}.guardian-meter>small{font-size:12px;color:#f4d1df}.power-track{height:16px;margin:8px 0;line-height:14px}.power-track>i{background:linear-gradient(#fac3ea,#ce78ac);height:100%}.power-track strong{font-size:10px;line-height:14px;position:absolute;inset:0;font-weight:1000;color:white;text-shadow:0 1px 2px #301c32}.guardian-meter>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:100%;border-radius:9px;border:1px solid #c79996;background:linear-gradient(#81586d,#63445c);font-size:13px;color:#f5d8d7;min-height:30px}.guardian-meter>button [data-icon]{width:19px;height:19px}.guardian-meter>button:disabled{opacity:.75}.guardian-meter>button.ready{background:linear-gradient(#f6cd83,#d29b65);color:#4e2f48;border-color:#ffdf9a;box-shadow:0 0 12px #fac28288,0 2px 0 #855660}.guardian-meter>button.armed{background:linear-gradient(#e693ad,#b76892);color:white}
.guardian-shelf{text-align:center}.shelf-hero{height:clamp(115px,22dvh,185px);display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(ellipse at 50% 70%,#a67b9061,transparent 59%)}.shelf-hero .guardian-sprite{width:auto;height:100%;max-width:80%}.shelf-tabs{display:flex;gap:7px;justify-content:center;margin:10px 0}.shelf-tabs button{height:43px;width:43px;padding:1px;border:1px solid #9c7784;border-radius:10px;background:#402d48;overflow:hidden}.shelf-tabs button[aria-pressed=true]{border:2px solid #ffe0a3;background:#946278;box-shadow:0 0 8px #f1b97f75}.shelf-tabs img{width:100%;height:100%;object-fit:cover;object-position:center 10%;transform:scale(1.5);transform-origin:center 10%}.power-copy{max-width:370px;margin:auto;font-size:14px;line-height:1.45;color:#f5d9df}.power-copy strong{display:block;color:#ffe3b1;font-size:16px;margin:3px 0}.shelf-meta{color:#dcb8cb;font-size:12px;margin:6px 0 0}.kingdom-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.kingdom-menu button{padding:10px 5px;border:1px solid #ab8492;border-radius:12px;background:linear-gradient(140deg,#74526c,#432f49);color:#ffe5c6;font-size:14px;display:flex;align-items:center;flex-direction:column;gap:5px}.kingdom-menu img{width:100%;height:min(13dvh,92px);object-fit:contain}.offer-info{text-align:center}.offer-info>.offer-art{width:150px;height:140px;object-fit:contain;margin:6px auto}.shop-note{margin:12px auto 0;text-align:center;font-size:12px;color:#dfc1d0}.actions{row-gap:7px}.modal-sub{max-width:420px}
dialog{scrollbar-width:none;max-height:calc(100dvh - 20px)}dialog::-webkit-scrollbar{display:none}.dialog-shell{padding-top:25px;padding-bottom:20px}
@keyframes badge-twinkle{0%,26%{opacity:.2;scale:.65}80%,100%{opacity:1;scale:1.2}}
@media(max-width:800px){.sanctuary-hud{inset-inline:14px}.passport-name{max-width:105px}.passport-name>b{font-size:13px}.pass-rail{width:235px}.battle{--board-space:min(58vw,calc((100dvh - 157px)*var(--ratio)))}.battle-layout{grid-template-columns:clamp(90px,16vw,130px) var(--board-space) clamp(83px,15vw,130px);gap:10px}.guardian-meter{padding:8px 5px}.battle .move-area{padding:9px 3px}.battle .ornament-label{font-size:10px}.battle .ornament-label i{display:none}.battle .goal-area h2{font-size:12px}.guardian-meter h2{font-size:19px}}
@media(max-width:610px) and (orientation:portrait){.sanctuary-hud{inset:calc(7px + var(--safe-top)) 10px auto}.passport{padding:1px 9px 1px 1px;gap:5px;border-radius:10px 18px 18px 10px}.passport-art{width:36px;height:36px;border-radius:9px}.passport-name{max-width:92px}.passport-name>b{font-size:11px}.passport-name small{font-size:9px}.home-counters{gap:5px}.home-counters .coin-purse,.life-purse{height:29px;min-width:44px;font-size:13px;padding:1px 6px 1px 2px}.home-counters .coin-purse img,.life-purse>span{width:24px;height:24px}.home-counters .round-button{height:29px;width:29px}.pass-rail{top:calc(55px + var(--safe-top));width:min(84%,350px);height:35px}.pass-rail>img,.pass-rail>img.pass-chest{height:39px;width:36px}.pass-rail-body b{font-size:12px}.pass-rail-body small{font-size:9px}.sanctuary-title{top:max(14.2%,calc(93px + var(--safe-top)));width:62%;height:10.7%}.festival-orbits{top:29%;bottom:29%;gap:7px}.orbit-left{left:7px}.orbit-right{right:7px}.event-badge{width:clamp(64px,18vw,90px);height:31%}.badge-face{width:min(78%,8.3dvh);border-width:2px}.event-badge b{font-size:10px;padding:3px 4px;margin-top:-6px;white-space:normal;max-width:100%}.event-badge small{font-size:8px;line-height:1;padding:2px 4px}.sanctuary-guardian{height:40%;width:56%;bottom:27%}.guardian-plate{font-size:13px}.journey-launch{bottom:calc(12% + var(--safe-bottom));gap:5px}.journey-launch>small{font-size:9px}.play-stage{min-width:180px;min-height:49px;font-size:25px;border-radius:15px}.journey-launch>span{font-size:12px}.sanctuary-dock{width:calc(100% - 12px);bottom:calc(5px + var(--safe-bottom));border-radius:13px;padding:2px 5px}.sanctuary-dock button{height:45px;font-size:10px;padding:3px 1px}.sanctuary-dock .dock-home{height:50px}.battle{--board-space:min(94vw,calc((100dvh - 247px - var(--safe-top) - var(--safe-bottom))*var(--ratio)));padding:calc(7px + var(--safe-top)) 7px calc(5px + var(--safe-bottom));justify-content:center}.battle-title{margin:0 0 8px}.battle-title h1{font-size:27px}.battle-title .level-eyebrow{font-size:9px;margin:0}.battle-settings{width:29px;height:29px;right:8px;top:calc(8px + var(--safe-top))}.battle-layout{width:min(96vw,490px);grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:8px 6px;align-items:stretch}.battle .board-column{grid-column:1/-1;grid-row:2;width:var(--board-space);max-width:100%;justify-self:center}.guardian-rail{grid-column:1;grid-row:1;display:flex;flex-direction:row;align-items:center;justify-content:end;position:relative;padding-left:30%;align-self:stretch}.battle-character{position:absolute;left:-2px;bottom:4px;width:41%;height:92%;z-index:1;pointer-events:none}.battle-character .guardian-sprite{width:100%;height:auto;object-fit:contain;align-self:end}.guardian-meter{padding:5px 4px 5px 11px;border-width:1px;border-radius:9px}.guardian-kicker{font-size:7px;letter-spacing:1px}.guardian-meter h2{font-size:14px;margin:0}.guardian-meter>small{font-size:9px;line-height:1;display:block}.power-track{height:11px;margin:3px 0}.power-track strong{font-size:8px;line-height:9px}.guardian-meter>button{min-height:19px;font-size:9px;border-radius:6px}.guardian-meter>button [data-icon]{width:12px;height:12px}.battle-stats{grid-row:1;grid-column:2;gap:3px;justify-content:center}.battle .level-hud{display:flex;justify-content:space-evenly;align-items:center;padding:4px 2px}.battle .move-area{padding:2px 3px}.battle .move-area>strong{font-size:27px}.battle .ornament-label,.battle .goal-area h2{font-size:8px;letter-spacing:.5px}.battle .goal-area{padding:2px 3px}.battle .goals{margin-top:2px;gap:2px 5px;max-width:115px}.battle .goal-token{min-width:0}.battle .goal-token img{width:19px;height:19px}.battle .goal-token strong{font-size:11px}.battle .seam{width:1px;height:26px;margin:0}.battle-tools{justify-content:center}.battle-tools .hint-button,.move-gift{min-height:20px;font-size:9px;padding:1px 6px;gap:2px}.battle-tools .hint-button [data-icon],.move-gift [data-icon]{width:13px;height:13px}.battle .score-bar{height:28px;margin-top:7px}.battle .instruction-bar{font-size:10px;margin-top:6px;padding:1px 9px}.battle .hint-button kbd{display:none}.shelf-tabs button{width:37px;height:37px}}
@media(max-height:625px) and (orientation:portrait){.sanctuary-title{height:9.6%}.festival-orbits{top:31%;bottom:26%}.festival-orbits .event-badge:last-child small{display:none}.sanctuary-guardian{bottom:25%;height:38%}.journey-launch{bottom:11%;gap:3px}.journey-launch>small{display:none}.play-stage{min-height:41px}.sanctuary-dock button{height:37px}.sanctuary-dock .dock-home{height:43px}.sanctuary-dock button>span{height:23px;width:23px}.battle{--board-space:min(93vw,calc((100dvh - 190px)*var(--ratio)))}.battle .instruction-bar{display:none}}
@media(orientation:landscape) and (max-height:550px){.sanctuary-hud{inset-block-start:5px}.passport-art{height:31px;width:31px}.passport-name>b{font-size:11px}.pass-rail{top:7px;height:29px;width:210px}.pass-rail>img,.pass-rail>img.pass-chest{height:32px;width:29px}.sanctuary-title{top:14%;height:14%;width:200px}.festival-orbits{top:22%;bottom:18%}.event-badge{width:79px}.event-badge b{font-size:9px}.event-badge small{display:none}.badge-face{width:min(60%,11dvh)}.sanctuary-guardian{bottom:26%;height:44%}.journey-launch{bottom:13%;gap:2px}.journey-launch>small{display:none}.play-stage{min-height:34px;min-width:150px;border-width:2px;font-size:19px;border-radius:11px}.journey-launch>span{font-size:9px}.sanctuary-dock{bottom:2px;width:365px;padding:1px 6px;border-radius:10px}.sanctuary-dock button{height:32px;font-size:9px}.sanctuary-dock button>span{height:19px;width:19px}.sanctuary-dock .dock-home{height:37px}.sanctuary-dock .dock-home>span{height:24px;width:24px}.battle{--board-space:min(52vw,calc((100dvh - 84px)*var(--ratio)));padding:3px}.battle-title{margin:0 0 4px}.battle-title h1{font-size:21px}.battle-title .level-eyebrow{font-size:8px;margin:0}.battle .score-bar{height:23px;margin-top:5px}.battle .instruction-bar{display:none}.battle-character{height:32dvh}.guardian-meter{padding:3px 6px}.guardian-meter h2{font-size:15px}.guardian-meter .guardian-kicker{font-size:7px}.guardian-meter>small{font-size:9px}.power-track{margin:3px 0;height:12px}.guardian-meter>button{min-height:23px}.battle .move-area>strong{font-size:34px}.battle .goal-area{padding:3px 4px 6px}}
@media(prefers-reduced-motion:reduce){.guardian-sprite,.badge-face:after{animation:none!important}}.calm .guardian-sprite,.calm .badge-face:after{animation:none}
/* Keep every idle frame at its painted 270 × 320 aspect ratio. The centered
   home sprite needs a dimension even when the atlas only paints its background. */
.sanctuary-guardian>.guardian-sprite{flex:none;width:min(100%,calc(35dvh - 12px));height:auto;max-height:none;aspect-ratio:27/32}
@supports(container-type:size){.sanctuary-guardian{container-type:size}.sanctuary-guardian>.guardian-sprite{width:min(100cqw,calc((100cqh - 22px)*.84375))}}
.guardian-plate{flex:none;white-space:nowrap}
body:not(.in-plaza) .festival-scene{background-image:linear-gradient(180deg,#29193526 0%,transparent 32%,transparent 67%,#2818304a),var(--wide-stage, var(--stage-scene,url(assets/festival.webp)));background-position:center,var(--scene-desktop-x,50%) var(--scene-desktop-y,50%)}
@media(orientation:portrait){body:not(.in-plaza) .festival-scene{background-image:linear-gradient(180deg,#29193512,transparent 30%,transparent 68%,#2818303f),var(--stage-scene,url(assets/festival.webp));background-position:center,var(--scene-phone-x,50%) var(--scene-phone-y,50%)}}
@media(orientation:landscape) and (max-height:550px){.pass-rail{width:clamp(182px,26vw,226px);gap:3px;padding-inline:5px}.pass-rail-body b{font-size:11px;white-space:nowrap}.pass-rail-body small{font-size:8px;white-space:nowrap}.pass-rail-body>span{gap:3px}.pass-rail>img,.pass-rail>img.pass-chest{width:26px;height:30px}}
