html,body{margin:0;background:#152326}#home-backdrop{position:fixed;inset:0;contain:paint;isolation:isolate;background:#152326;background-position:center;background-size:cover;pointer-events:none}#home-backdrop[hidden]{display:none}#home-video{width:100%;height:100%;object-fit:cover;transform:translateZ(0);will-change:transform}#home-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#07111730,transparent 28%,transparent 60%,#071117aa)}.home-screen{position:relative;min-height:100svh;display:flex;align-items:flex-end;justify-content:center;box-sizing:border-box;padding:24px 20px 7vh}.home-controls{width:min(360px,100%)}.home-initial-logo{position:absolute;top:20px;left:36px;width:auto;height:145px;max-width:min(62vw,650px);object-fit:contain;object-position:left center}.home-primary{display:flex;justify-content:center}.home-start,.a1-shell .home-start{min-height:54px;padding:15px 30px;border:1px solid #f4dca8b0;border-radius:10px;background:#edcf91;color:#25332e;font:600 17px/1.3 system-ui,sans-serif;box-shadow:0 4px 22px #07111766;cursor:pointer}.home-start:hover,.a1-shell .home-start:hover{background:#ffe4ad;transform:translateY(-1px)}.home-start:focus-visible{outline:3px solid white;outline-offset:4px}.home-active .a1-shell{background:transparent}.home-active .a1-header{position:absolute;inset:0 0 auto;z-index:2;background:transparent;border:0;box-shadow:none}.home-active .a1-header-actions button{background:#15232688}.home-active #a1-main{padding:0}.home-has-saves{padding:14px;border:1px solid #e1d3af40;border-radius:14px;background:#142326e8;box-shadow:0 8px 32px #07111750}.home-screen .a1-save-slots{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}.a1-shell .home-screen .a1-save-slot{flex-direction:row;align-items:center;gap:7px;min-height:62px;padding:8px;border:1px solid #e1d3af25;border-radius:7px;background:#ffffff06;box-shadow:none}.a1-shell .home-screen .a1-save-slot[aria-pressed=true]{border-color:#efd499;background:#e7cf8b18}.home-slot-number{font:10px system-ui;color:#d4c7a5}.home-screen .a1-portrait,.home-slot-empty{width:28px;height:28px;flex-shrink:0}.home-slot-empty{display:grid;place-items:center;color:#c2b897}.home-slot-info{min-width:0;display:grid;gap:4px}.home-slot-info strong{font:600 12px system-ui;color:#eee9d9}.home-slot-info small{font:10px system-ui;color:#babdaf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-has-saves .home-start{width:100%;min-height:46px;padding:12px;font-size:15px}.home-tools{display:flex;justify-content:center;gap:18px;margin-top:9px}.a1-shell .home-tools button{padding:4px;min-height:24px;background:transparent;border:0;box-shadow:none;font:11px system-ui;color:#c2c4b7}@media(max-width:600px){#home-video{object-fit:contain}#home-backdrop{background-size:contain;background-repeat:no-repeat}.home-screen{padding-bottom:5vh}}@media(prefers-reduced-motion:reduce){#home-video{visibility:hidden}.home-start:hover{transform:none}}.home-controls:not(.home-has-saves){text-align:center}#app .home-screen{padding-bottom:24px}#app .home-has-saves{width:min(680px,100%)}#app .home-screen .a1-save-slots{grid-template-columns:repeat(4,minmax(0,1fr))}#app .home-has-saves .home-start{width:min(320px,100%)}.home-active #app .a1-header{position:absolute;background:transparent;border:0;box-shadow:none}#app .a1-shell .home-start{background:#edcf91;color:#25332e;border:1px solid #f4dca8b0;border-radius:10px;box-shadow:0 4px 22px #07111766}#app .a1-shell .home-start:hover{background:#ffe4ad}#app .a1-shell .home-tools button{background:transparent;border:0;border-radius:0;box-shadow:none}#app .a1-shell .home-screen .a1-save-slot{background:#ffffff06;border:1px solid #e1d3af25;border-radius:7px;box-shadow:none}#app .a1-shell .home-screen .a1-save-slot[aria-pressed=true]{border-color:#efd499;background:#e7cf8b18}@media(max-width:600px){#app .home-screen .a1-save-slots{grid-template-columns:1fr 1fr}}.home-screen,#app .home-screen{justify-content:flex-end;padding:28px 38px 38px}.home-controls{width:min(470px,100%)}.home-active #app .a1-header{height:184px;align-items:flex-start;padding:20px 36px}.home-active #app .a1-brand:has(.brand-logo){height:145px;max-width:min(62vw,650px);padding:0}.home-active #app .a1-brand .brand-logo{height:145px;max-height:145px}.home-active #app .a1-header-actions{padding-top:0}.home-start,#app .a1-shell .home-start{position:relative;width:100%;min-height:126px;display:flex;align-items:center;gap:17px;padding:19px 22px;border:4px solid #eac258;border-radius:9px;color:#fff5ce;background:linear-gradient(#4064a0,#253b6c);box-shadow:inset 0 0 0 2px #fff2ac,inset 0 0 0 5px #9b752c,0 6px #40361d,0 12px 30px #0009;cursor:pointer}.home-start:hover,#app .a1-shell .home-start:hover{background:linear-gradient(#507bb9,#304e83);transform:translateY(-3px)}.home-start-copy{display:grid;gap:8px;text-align:left}.home-start-copy small{font:700 10px/1.2 system-ui;letter-spacing:2px;color:#bfdbff}.home-start-label{font:800 clamp(20px,2vw,29px)/1.12 system-ui,sans-serif;letter-spacing:-.7px;text-shadow:0 3px #172943}.home-starter-medallion{display:grid;place-items:center;flex:0 0 72px;height:72px;border:3px solid #f2d77a;background:#162b49;box-shadow:inset 0 0 0 2px #936c34,0 3px #142139;border-radius:7px;transform:rotate(-5deg)}.home-starter-medallion img{width:60px;height:60px;image-rendering:pixelated}.home-gamepad{width:45px;flex:0 0 45px;margin-left:auto;color:#f4e4b3;filter:drop-shadow(0 3px #182946)}.home-gamepad svg{display:block;width:100%}#app .home-has-saves{width:min(470px,100%)}#app .home-has-saves .home-start{width:100%;min-height:116px;padding:14px}#app .home-screen .a1-save-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.home-start:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:none;box-shadow:0 0 25px 5px #f8d46b65;animation:home-invitation 2.6s ease-in-out infinite;will-change:opacity}@keyframes home-invitation{0%,to{opacity:0}50%{opacity:1}}@media(max-width:600px){.home-screen,#app .home-screen{padding:18px 16px 28px}.home-active #app .a1-header{padding:16px}.home-active #app .a1-brand:has(.brand-logo),.home-active #app .a1-brand .brand-logo{height:auto;max-height:100px}.home-start,#app .a1-shell .home-start{padding:16px 12px;gap:10px}.home-starter-medallion{flex-basis:55px;height:55px}.home-starter-medallion img{width:48px;height:48px}.home-gamepad{width:34px;flex-basis:34px}}@media(prefers-reduced-motion:reduce){.home-start,#app .a1-shell .home-start{animation:none}}.home-reduced .home-start,.home-reduced #app .a1-shell .home-start{animation:none}.home-start:after{content:"";position:absolute;inset:-5px;border:2px solid #f6d981;border-radius:11px;pointer-events:none;animation:home-invitation-ring 2.6s ease-out infinite}@keyframes home-invitation-ring{0%{transform:scale(1);opacity:.6}70%,to{transform:scale(1.055,1.15);opacity:0}}@media(prefers-reduced-motion:reduce){.home-start:after{animation:none;opacity:0}}.home-reduced .home-start:after{animation:none;opacity:0}@media(max-width:600px){.home-initial-logo{top:0;left:50%;transform:translate(-50%);width:min(84vw,400px);max-width:none;height:var(--home-mobile-header,110px);padding-block:12px;box-sizing:border-box;object-position:center}body:has(.home-screen){--home-mobile-header: clamp(92px, 28vw, 120px);background:#142c35}body:has(.home-screen):before{content:"";position:fixed;inset:0;pointer-events:none;background:repeating-linear-gradient(45deg,transparent 0 16px,#d9bb6520 16px 17px,transparent 17px 34px),repeating-linear-gradient(-45deg,transparent 0 16px,#9cc4c512 16px 17px,transparent 17px 34px),linear-gradient(#203e48,#10252f)}body:has(.home-screen) #app{position:relative;z-index:2}#home-backdrop{z-index:1;inset:var(--home-mobile-header, 110px) 0 auto;width:100%;height:auto;aspect-ratio:16 / 9;box-sizing:content-box;border-block:2px solid #bfa469;box-shadow:0 8px 22px #07111766;background-size:cover}#home-backdrop:after{display:none}#home-video{display:block;object-fit:contain}.home-active #app .a1-header{height:var(--home-mobile-header);padding:12px 20px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.home-active #app .a1-header-actions{display:none}.home-active #app .a1-brand:has(.brand-logo){width:min(84vw,400px);max-width:none;height:auto;justify-content:center}.home-active #app .a1-brand .brand-logo{width:100%;height:auto;max-height:92px;object-position:center}.home-screen,#app .home-screen{min-height:100svh;padding:calc(var(--home-mobile-header) + 56.25vw + 18px) 14px max(20px,env(safe-area-inset-bottom));align-items:stretch;justify-content:stretch}.home-controls,#app .home-has-saves{width:100%;min-width:0;display:flex;flex-direction:column;gap:12px}#app .home-has-saves{padding:10px;border:1px solid #d2b67588;border-radius:12px;background:#10232fe8}.home-primary{display:flex;flex:1;min-height:0}.home-controls:not(.home-has-saves)>.home-start{flex:1}.home-start,#app .a1-shell .home-start,#app .home-has-saves .home-start{width:100%;min-height:164px;flex-direction:column;justify-content:center;gap:16px;padding:24px 12px}.home-starter-medallion{flex:0 0 76px;width:76px;height:76px}.home-starter-medallion img{width:64px;height:64px}.home-start-copy{text-align:center;gap:9px}.home-start-label{font-size:clamp(23px,6.8vw,30px)}.home-gamepad{position:absolute;right:18px;top:18px;width:30px}#app .home-screen .a1-save-slots{gap:7px;margin:0}#app .a1-shell .home-screen .a1-save-slot{min-height:56px;padding:7px}.home-tools{margin:0;justify-content:space-around}.a1-shell .home-tools button{min-height:34px;font-size:12px}@media(max-height:700px){.home-start,#app .a1-shell .home-start,#app .home-has-saves .home-start{min-height:112px;flex-direction:row;gap:12px;padding:16px 10px}.home-starter-medallion{flex-basis:48px;width:48px;height:48px}.home-starter-medallion img{width:42px;height:42px}.home-start-copy{text-align:left}.home-start-label{font-size:21px}.home-gamepad{display:none}}}@media(max-width:600px){.home-active #app .a1-shell{background:transparent!important}.home-start{box-sizing:border-box}.home-screen .home-tools [data-action=import]{display:none}}@media(max-width:600px)and (max-height:700px){#app .home-has-saves{padding:8px;gap:8px}#app .a1-shell .home-screen .a1-save-slot{min-height:44px;padding:5px}#app .home-has-saves .home-start{min-height:80px;padding:12px 8px}#app .home-tools button{min-height:26px}}@media(prefers-reduced-motion:reduce){.home-start:before{animation:none;opacity:0}}.home-reduced .home-start:before{animation:none;opacity:0}#home-discover{display:none;position:relative;z-index:3;color:#eee9d7;background:url(../assets/ui/starter-wallpaper.svg) repeat,url(../assets/ui/paper-grain.svg),radial-gradient(ellipse at 50% 0,#37583e 0,#203d32 55%,#142e29);font:500 16px/1.5 var(--ui-font, "Chakra Petch", sans-serif);border-top:2px solid #d2ae5f}body:has(#app .home-screen) #home-discover:not([hidden]){display:block}#home-discover *{box-sizing:border-box}#home-discover .discover-wrap{max-width:1160px;margin:auto;padding:28px 24px 20px}#home-discover h1,#home-discover h2{margin:0;font-family:inherit;font-weight:700;letter-spacing:0;line-height:1.25;color:#fff;text-shadow:0 2px #0b1220}#home-discover h1{font-size:clamp(22px,3vw,28px)}#home-discover h2{font-size:20px}#home-discover p{margin:0;color:#dce5cf}#home-discover .discover-intro{margin-bottom:22px}#home-discover .discover-intro p{margin-top:8px;max-width:820px}#home-discover .discover-panel{overflow:hidden;--discover-heading: linear-gradient(120deg,#43634a,#294936);border:1px solid #ad8946;border-radius:8px;background:url(../assets/ui/paper-grain.svg),linear-gradient(120deg,#253e35,#1b302c);box-shadow:inset 0 0 0 2px #f1d892,inset 0 0 0 4px #82662e,0 4px #0b211ccc,0 10px 24px #071c2440;padding:5px;margin-bottom:20px;scroll-margin-top:16px}#home-discover .discover-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:url(../assets/ui/paper-grain.svg),var(--discover-heading);border-bottom:1px solid #d3b96a66}#home-discover .discover-panel>p{padding:12px 14px;font-size:15px}#home-discover a{color:#f0d58f;text-decoration:none}#home-discover a:hover{color:#fff5cf}#home-discover a:focus-visible,#home-discover summary:focus-visible{outline:3px solid #ffe0a2;outline-offset:-3px}#home-discover .discover-panel-heading a{font-size:13px;flex-shrink:0;padding:6px 10px;border:1px solid #d6b76c;border-radius:5px;background:#234438}#home-discover .discover-shot{display:block}#home-discover .discover-shot img{display:block;width:100%;height:auto;aspect-ratio:16 / 9}#home-discover .discover-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}#home-discover .discover-help details{margin:0 12px;border-bottom:1px solid #d1bb7540}#home-discover .discover-help details:last-child{border-bottom:0}#home-discover summary{padding:13px 2px;color:#eee9d7;cursor:pointer;font-weight:600}#home-discover summary::marker{color:#e2bd78}#home-discover details p{padding:0 2px 14px;font-size:15px;max-width:850px}#home-discover .discover-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}#home-discover .discover-footer small{color:#c5d6b7;font-size:12px}#home-discover .discover-return{padding:10px 16px;border:1px solid #e0bf6e;border-radius:6px;background:url(../assets/ui/paper-grain.svg),linear-gradient(#456b4c,#2a4838);box-shadow:inset 0 0 0 1px #f1d89266,0 3px #10271b99;font-size:14px;font-weight:700;color:#fff}#home-discover .discover-panel:has(#battle-title){--discover-heading: linear-gradient(120deg,#365d71,#294655)}#home-discover #skill-trees{--discover-heading: linear-gradient(120deg,#36635b,#264a44)}#home-discover .discover-help{--discover-heading: linear-gradient(120deg,#63573b,#48462f)}#home-discover .discover-panel-heading h2{color:#fff1c9}@media(max-width:650px){#home-discover .discover-wrap{padding:22px 12px 18px}#home-discover .discover-pair{grid-template-columns:1fr;gap:0}#home-discover .discover-panel-heading{padding:10px}#home-discover .discover-panel>p{padding:10px}#home-discover h2{font-size:19px}#home-discover .discover-footer{gap:8px}}#app>.home-screen .a1-save-slot{display:flex;align-items:center;gap:7px;min-height:62px;padding:8px;text-align:left;background:#ffffff06;border:1px solid #e1d3af25;border-radius:7px;cursor:pointer}#app>.home-screen .a1-save-slot[aria-pressed=true]{border-color:#efd499;background:#e7cf8b18}.home-start:disabled{cursor:progress}.home-start:disabled:before,.home-start:disabled:after{animation:none}#home-language{position:absolute;z-index:12;top:20px;right:36px}.language-control{display:flex;align-items:center;gap:.65em;font-size:14px}.a1-modal label.language-control{display:flex}.language-control select{max-width:15rem;min-height:36px;padding:5px 9px;font:inherit;border:1px solid #a5b7c5;border-radius:5px;color:#fff;background:#172737}#app #home-language{position:static}.home-active #app .a1-header:has(#home-language select){column-gap:16px}.home-active #app .a1-header-actions{gap:8px;flex-shrink:0}#home-language .language-control{display:grid;position:relative;margin:0;font:600 12px/1.2 var(--ui-font, system-ui, sans-serif)}#home-language .language-control:before{content:attr(data-language-name);visibility:hidden;box-sizing:border-box;min-height:44px;padding:10px 34px 10px 18px;border:1px solid transparent;white-space:pre}#home-language .language-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#home-language .language-control:after{content:"";position:absolute;right:15px;top:calc(50% - 4px);width:6px;height:6px;border:solid var(--ui-ink, #eee9d7);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}#home-language select{appearance:none;position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;min-height:44px;padding:10px 34px 10px 18px;border:1px solid var(--ui-line, #69757d);border-radius:14px;color:var(--ui-ink, #eee9d7);background:#36465488;font:inherit;box-shadow:inset 0 1px #d4c5a52b,inset 0 -2px #070d1699,0 2px #070d1699;text-shadow:0 1px 1px #060b1399;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease}#home-language select:hover{border-color:#c5b38a;background:var(--ui-hover, #475954);box-shadow:inset 0 1px #d4c5a52b,0 0 0 2px #d4c5a52b,0 3px #070d1699}#home-language select:focus-visible{outline:3px solid #d8ba7a;outline-offset:3px}#home-language option{color:var(--ui-ink, #eee9d7);background:#25313f}body:not(.home-active) #home-language{display:none}.language-status{position:fixed;z-index:10000;bottom:16px;left:50%;transform:translate(-50%);max-width:min(90vw,38rem);padding:10px 16px;color:#fff;background:#172737;border:1px solid #a5b7c5;border-radius:6px}@media(max-width:760px){#home-language .language-control:before,#home-language select{padding-inline:8px 24px}#home-language .language-control:after{right:10px}}@media(max-width:600px){#home-language{top:calc(var(--home-mobile-header, 110px) + 8px);right:8px}.home-active #app .a1-header-actions:has(#home-language select){display:flex;position:absolute;top:calc(100% + 8px);right:8px;gap:8px}.home-active #app .a1-notices{top:calc(var(--home-mobile-header, 110px) + 60px)}.language-control select{max-width:12rem}}:root[lang]{--ui-font: "Chakra Petch", "Pokerun Labels", sans-serif;--dialogue-font: var(--ui-font)}:root[lang=ja]{--ui-font: "Pokerun Japanese", "Pokerun Labels", sans-serif}:root[lang=ko]{--ui-font: "Pokerun Korean", "Pokerun Labels", sans-serif}:root[lang=zh-Hans]{--ui-font: "Pokerun Simplified", "Pokerun Labels", sans-serif}:root[lang=zh-Hant]{--ui-font: "Pokerun Traditional", "Pokerun Labels", sans-serif}:root[lang=ru]{--ui-font: "Pokerun Cyrillic", "Pokerun Labels", sans-serif}html:is([lang=ja],[lang=ko],[lang=zh-Hans],[lang=zh-Hant],[lang=ru]) :is(#app,#app *,#home-discover,#home-discover *,#home-language,#home-language *,#language-status){font-family:var(--ui-font)}html[lang=ko] :is(.a1-line-layout p,.a1-silent-action,.a1-thought,.a1-support-copy){word-break:keep-all;overflow-wrap:anywhere}html[lang=ko] #app .a1-story .a1-dialogue .a1-line-layout p{line-height:1.5}html[lang=ko] #app .skill-layout .move-detail .move-effect,html[lang=ko] #app .skill-layout .move-detail p[data-skill-text],html[lang=ko] .move-tooltip-description{word-break:keep-all;overflow-wrap:anywhere;line-height:1.5}html[lang=ko] #app .modal:has(.respec-dialog,.stance-options,.help-dialog){word-break:keep-all;overflow-wrap:anywhere}html[lang=ko] #app .modal:has(.respec-dialog,.stance-options,.help-dialog) h2,html[lang=ko] #app .modal .stance-options small{line-height:1.5}html:not([lang=en]) #app .skill-layout.family-authored .move-facts{grid-template-columns:repeat(2,minmax(0,1fr))}html:not([lang=en]) #app .skill-layout.family-authored .move-facts div:last-child{grid-column:auto;display:block}html:not([lang=en]) #app .skill-layout.family-authored .move-facts dd{min-width:0;overflow-wrap:anywhere}html:not([lang=en]) #app .skill-layout.family-authored .move-facts div:last-child dd{font-size:14.9px}html:not([lang=en]) #app .skill-layout .tree-node .node-label>:is([data-name],[data-skill-text]){min-width:0;overflow-wrap:anywhere}#app .player-identity b[data-name]{text-transform:uppercase}#app .modal:has(#save-json) label[for=save-json]{display:block;margin:6px 0 8px}html[lang=ko] #app .modal:has(#save-json,[data-gameplay="save.replace.title"]){word-break:keep-all;overflow-wrap:anywhere;line-height:1.5}html[lang=ko] #app :is(.toast,.a1-notices){word-break:keep-all;overflow-wrap:anywhere;line-height:1.5}
