@font-face {font-family:'RO Nunito';font-style:normal;font-weight:600 900;font-display:swap;src:url('/assets/interface/fonts/XRXV3I6Li01BKofIOOaBXso.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face {font-family:'RO Nunito';font-style:normal;font-weight:600 900;font-display:swap;src:url('/assets/interface/fonts/XRXV3I6Li01BKofIMeaBXso.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face {font-family:'RO Nunito';font-style:normal;font-weight:600 900;font-display:swap;src:url('/assets/interface/fonts/XRXV3I6Li01BKofIOuaBXso.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face {font-family:'RO Nunito';font-style:normal;font-weight:600 900;font-display:swap;src:url('/assets/interface/fonts/XRXV3I6Li01BKofIO-aBXso.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family:'RO Nunito';font-style:normal;font-weight:600 900;font-display:swap;src:url('/assets/interface/fonts/XRXV3I6Li01BKofINeaB.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root {
  font-family: 'Nunito','Microsoft JhengHei','Noto Sans TC',sans-serif;
  color: #273551;
  background: #241d32;
  font-size: 16px;
  font-synthesis: none;
}
* {box-sizing:border-box}
body {margin:0}
button,input,select {font:inherit}
button {cursor:pointer}
button:disabled {cursor:default;opacity:.6}
button:focus-visible,a:focus-visible {outline:3px solid #efa82c;outline-offset:2px}
.world-backdrop {position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#18112c90,#25182c29 29%,#29172a35 69%,#26172c80),url('/assets/interface/tower.jpg') 75% center / cover no-repeat}
.boot-message {margin:40vh auto;color:white;text-align:center}
.entry-screen,.menu-screen,.result-screen {min-height:100vh;min-height:100dvh;position:relative;isolation:isolate;display:grid;place-items:center;padding:74px 6vw 110px}
.entry-screen {grid-template-columns:minmax(0,1fr) minmax(355px,420px);gap:4vw}
@media(min-width:821px) and (min-height:601px) {.entry-screen {padding-top:96px;padding-bottom:96px}}
.game-brand {width:min(100%,460px);display:grid;justify-items:center;text-align:center;gap:10px;color:white}
.brand-logo {width:clamp(280px,32vw,480px);max-width:100%;height:auto;filter:drop-shadow(0 5px 8px #121633bd)}
.brand-subtitle {font-weight:900;letter-spacing:.035em;color:#2d467c;background:#fffc;padding:4px 14px;border-radius:24px;box-shadow:0 2px 8px #15244933}
.brand-beta {color:#fff;background:#405eaa;font:800 12px/1.25 'Arial',sans-serif;padding:2px 10px;border-radius:12px}
.news-card {width:min(100%,430px);text-align:left;margin-top:6px;border:1px solid #8597cf8a;border-radius:12px;padding:12px 15px;background:linear-gradient(120deg,#191b39ef,#141c32df);box-shadow:0 9px 18px #0c132848;color:#f5f7ff}
.news-card strong {display:inline-block;background:linear-gradient(#ffe49a,#ffc541);border-radius:15px;padding:3px 10px;color:#493009;font-size:.83rem}
.news-card p {margin:7px 0 9px;line-height:1.5;font-size:.9rem;font-weight:bold}
.more-news {font-size:.79rem;border-radius:16px;border:1px solid #caa86994;background:#6c512b70;color:#ffedb4;padding:4px 10px}
.entry-tools {position:absolute;z-index:2;right:16px;top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;gap:7px}
.pill {background:#fffffff0;border:1px solid #e1e5ee;border-radius:20px;color:#30466e;box-shadow:0 2px 6px #08152825;padding:6px 12px;font-size:.8rem;font-weight:800;min-height:30px}
.pill:hover,.tab:hover,.light-button:hover {background:#fff;filter:brightness(1.035)}
.game-window,#guide {background:linear-gradient(#fff,#edf2fc);border:1px solid #7c91bb;border-radius:13px;overflow:hidden;box-shadow:0 14px 40px #15234966,inset 0 0 0 1px #fff}
.entry-window {width:100%}
.window-title {min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;color:#fff;background:linear-gradient(180deg,#a5bce9 0%,#7f9ad0 48%,#6683be 54%,#405e9f 100%);text-shadow:0 1px 2px #284171}
.window-title h1,.window-title h2,.window-title h3 {font-size:1.08rem;margin:0;font-weight:800}
.window-title h1:before,.window-title h2:before,.window-title h3:before {content:'◆';font-size:.65em;vertical-align:middle;margin-right:.55rem;color:#fff}
.entry-body {padding:16px clamp(16px,2vw,29px) 18px}
.entry-tabs {display:flex;border:1px solid #d1d9eb;background:#e9eef9;border-radius:12px;padding:4px;gap:3px;margin-bottom:10px}
.tab {flex:1;border:none;background:transparent;color:#536581;font-weight:700;font-size:.88rem;border-radius:9px;padding:8px 2px;min-height:35px}
.tab[aria-pressed=true] {background:white;color:#263e79;box-shadow:0 1px 4px #5f79a94d}
.entry-list {display:grid;gap:8px}
.entry-feature {background:#eaeefa;border:1px solid #d2dbed;border-radius:11px;display:flex;align-items:center;gap:13px;text-align:left;min-height:50px;padding:9px 12px;font-size:.87rem;line-height:1.45;font-weight:650}
.item-icon {width:26px;height:26px;object-fit:contain;image-rendering:pixelated;flex:none}
.ro-primary,.light-button {border:1px solid #5774ad;border-radius:10px;box-shadow:inset 0 1px #e4ecff,0 2px 0 #304f8a;font-weight:800;color:white;text-shadow:0 1px 2px #344f86;background:linear-gradient(#a8c3f7,#799ce0 52%,#587bc1);padding:9px 17px}
.ro-primary:hover {filter:brightness(1.06)}
.ro-primary:active,.light-button:active {transform:translateY(1px)}
.entry-action {width:100%;margin-top:13px;min-height:48px;font-size:1.07rem}
.light-button {color:#314978;text-shadow:none;border-color:#a0b1d0;box-shadow:inset 0 1px #fff,0 2px 0 #95a5c1;background:linear-gradient(#fff,#e1e8f7);font-size:.88rem}
.game-form {display:grid;gap:9px}
.game-form label {display:grid;gap:4px;font-size:.85rem;font-weight:800;color:#394c77}
.game-form input {background:#fff;border:1px solid #aab9d5;border-radius:7px;padding:9px 11px;width:100%;color:#253247;min-height:39px;box-shadow:inset 0 1px 3px #526a9717}
.game-form input:focus {outline:2px solid #88abdf}
.inline-error {color:#9b2837;font-weight:700;font-size:.87rem;line-height:1.45;margin:0}
.inline-error:empty {display:none}
.note-text {font-size:.85rem;color:#52617c;line-height:1.5;margin:0}
.entry-foot {position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:0;right:0;display:grid;justify-content:center;justify-items:center;gap:5px;padding:0 20px;text-align:center}
.entry-foot p,.foot-link {margin:0;background:#ffffffe8;color:#3c4f71;border-radius:8px;font-size:.76rem;line-height:1.5;padding:5px 14px;font-weight:650}
.foot-link {border:0;color:#3b5795;padding:4px 10px}
#guide {width:min(calc(100% - 28px),505px);padding:0;color:#263653}
#guide::backdrop {background:#151c398c}
.dialog-close {color:white;background:#5276b4;border:1px solid #d4e2fb;border-radius:5px;line-height:1;font-size:1.2rem;padding:1px 6px}
.guide-body {padding:20px;line-height:1.65}
.guide-body h3 {font-size:1rem;margin:12px 0 3px;color:#385489}
.guide-body h3:first-child {margin-top:0}
.guide-body p {margin:0 0 10px;font-size:.93rem}
.guide-body a {color:#324f93}
.menu-screen,.result-screen {display:flex;flex-direction:column;justify-content:center;gap:15px;padding:60px 16px 30px}
.menu-logo {display:block;width:min(215px,54vw);filter:drop-shadow(0 4px 8px #15172b85)}
.roster-window {width:min(640px,100%)}
.menu-body {padding:18px;display:grid;gap:14px}
.menu-head,.menu-actions,.roster-stat {display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.menu-head p {margin:0;font-size:.86rem;color:#56657e}
.slots {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.slot {height:136px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;background:linear-gradient(#f7faff,#e4ecf9);border:1px solid #c4cfe2;border-radius:9px;color:#3c527c;padding:5px;min-width:0}
.slot strong {max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.slot img {height:70px;max-width:95%;object-fit:contain;image-rendering:pixelated}
.slot small {font-size:.77rem}
.slot[aria-pressed=true],.job[aria-pressed=true] {border:2px solid #637fc0;background:linear-gradient(#e9f2ff,#dce7ff);box-shadow:inset 0 0 0 2px #fff}
.slot-empty {border-style:dashed;color:#697a99}
.slot-empty span {font:normal 30px/1 Georgia,serif}
.roster-stat {background:#e8edf8;border:1px solid #d1d9ea;border-radius:8px;padding:10px;font-size:.86rem}
.create-body {display:grid;grid-template-columns:145px 1fr;gap:18px;align-items:stretch}
.paper-doll {display:grid;place-content:center;justify-items:center;gap:12px;border:1px solid #c3cfee;border-radius:10px;background:radial-gradient(ellipse at 50% 70%,#daf3ff,transparent 45%),linear-gradient(#c8d6f0,#f9fbff);min-height:180px;font-weight:bold;color:#324e85}
.paper-doll img {height:100px;width:96px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 4px 1px #697c9329)}
.job-list {display:flex;gap:5px}
.job {flex:1;min-height:36px;background:#edf2fc;border:1px solid #bac7df;padding:5px 2px;border-radius:7px;color:#304a76;font-weight:700}
.result-window {width:min(425px,100%)}
.results-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.results-grid div {background:#e9eefa;border:1px solid #d1daec;border-radius:8px;padding:10px}
.results-grid dt {font-size:.8rem;color:#516483}
.results-grid dd {font-size:1.25rem;font-weight:800;margin:3px 0 0;color:#314c83}
@media(max-width:820px) {
  .entry-screen {display:flex;flex-direction:column;justify-content:center;gap:15px;padding:65px 15px 18px}
  .brand-logo {width:min(275px,65vw)}
  .game-brand {gap:5px}
  .brand-subtitle {font-size:.84rem}
  .news-card,.brand-beta {display:none}
  .entry-window {max-width:420px}
  .entry-tools {right:10px;top:10px}
  .entry-foot {position:static;padding:0;margin-top:6px}
  .entry-foot p {font-size:.7rem}
  .world-backdrop {background-position:68% center}
}
@media(max-width:480px) {
  .menu-body {padding:12px}
  .slots {gap:5px}
  .slot {height:114px;font-size:.85rem}
  .slot img {height:56px}
  .create-body {grid-template-columns:86px 1fr;gap:9px}
  .paper-doll img {max-width:78px}
}
@media(max-height:600px) and (min-width:821px) {
  .entry-screen {padding-top:47px;padding-bottom:75px}
  .brand-logo {max-width:300px}
  .entry-feature {min-height:40px}
}
.roster-full,.adventure-window {width:min(940px,100%)}
.roster-full {max-width:800px}
.roster-full .slots {grid-template-columns:repeat(5,minmax(0,1fr))}
.roster-full .slot {height:clamp(86px,15vh,150px);gap:1px}
.roster-full .slot-empty {background:repeating-linear-gradient(45deg,#f4f7fc 0 6px,#eaf0f8 6px 12px);color:#7585a5}
.slot canvas {height:58%;max-width:100%;object-fit:contain;image-rendering:pixelated}
.cc-layout {display:grid;grid-template-columns:minmax(145px,.75fr) minmax(0,1.55fr);gap:15px}
.cc-preview {text-align:center;padding:10px;border:1px solid #c3cfe5;border-radius:10px;background:linear-gradient(#d8e8fb,#f0f5fa 55%,#fbfbff)}
.cc-preview canvas {max-width:100%;width:100%;image-rendering:pixelated}
.cc-info {margin:10px 0;padding:9px;background:#f5f8ff;border:1px solid #c8d4ea;border-radius:7px;font-size:.86rem}
.cc-info p {margin:7px 0}.cc-skills {display:flex;gap:4px;justify-content:center;flex-wrap:wrap}.cc-skills img {width:24px;height:24px;image-rendering:pixelated}
.cc-choices,.character-nav {display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.cc-preview .cc-choices {justify-content:center}
.cc-choices button,.cc-stat button,.character-nav button {padding:5px 8px}
.cc-choices [aria-pressed=true],.character-nav [aria-pressed=true] {background:#476db1;color:#fff}
.cc-swatch {border-radius:100%;width:23px;height:23px;border:1px solid #8291ab}
.cc-swatch[aria-pressed=true] {outline:2px solid #324f80;outline-offset:1px}
.cc-label {color:#354e7b;font-size:.85rem}
.cc-attributes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.cc-stat {display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:.82rem;padding:2px 4px;background:#edf1fa;border-radius:5px}.cc-stat small{font-size:.69rem}
.wide-guide#guide {width:min(1020px,96vw)}.wide-guide .guide-body {max-height:80dvh;overflow:auto}
.expedition-columns {display:grid;grid-template-columns:minmax(240px,1fr) minmax(220px,1.4fr);gap:16px;align-items:start}
.expedition-list {display:grid;gap:6px;max-height:55vh;overflow:auto}
.stage-button {border:1px solid #bccce0;background:#eef3fd;color:#334260;display:flex;align-items:center;text-align:left;gap:8px;border-radius:8px;padding:4px 7px}
.stage-button[aria-pressed=true] {border-color:#476eab;box-shadow:inset 0 0 0 1px #638fcd;background:#e1ebff}
.stage-button img {width:55px;height:40px;object-fit:cover;border-radius:5px}
.stage-button span {flex:1;display:grid;font-size:.87rem}.stage-button small {font-size:.73rem}
.stage-cover {width:100%;max-height:145px;object-fit:cover;border-radius:7px}
.expedition-detail h3,.expedition-detail h4,.expedition-detail p {margin:5px 0}.expedition-detail p {font-size:.85rem}
.stage-bosses {display:flex;gap:5px;flex-wrap:wrap}.stage-bosses span {display:grid;justify-items:center;font-size:.78rem;padding:4px;background:#e6edf7;border-radius:6px;min-width:51px}.stage-bosses img{width:45px;height:45px;object-fit:contain;image-rendering:pixelated}
.difficulty-row {display:grid;align-items:center;grid-template-columns:6.5em 1fr 4em;gap:12px;font-size:.95rem}.difficulty-row input{width:100%}
@media(max-width:640px){
  .cc-layout {grid-template-columns:minmax(0,1fr)}.cc-preview {display:grid;grid-template-columns:1fr 1.6fr;align-items:center}.cc-preview canvas {max-height:95px;object-fit:contain}.cc-preview .cc-info {grid-column:2;grid-row:1/3}.cc-preview .cc-choices:last-child {grid-column:1/-1}
  .roster-full .slots {grid-template-columns:repeat(3,minmax(0,1fr));max-height:48dvh;overflow:auto}
  .expedition-columns {grid-template-columns:1fr}.expedition-list{max-height:170px}.stage-cover{max-height:90px}
}
.stylist-preview {text-align:center;background:linear-gradient(#d7e6f9,#f7faff);border-radius:8px}.stylist-preview canvas{image-rendering:pixelated}.result-stage{margin:0;text-align:center}.damage-summary{padding:10px;border:1px solid #b7c4d5;border-radius:7px;background:#f0f5fc}.damage-summary h3,.damage-summary p{margin:3px 0}.damage-row{display:grid;grid-template-columns:minmax(75px,1fr) 2fr minmax(45px,auto);gap:7px;align-items:center;font-size:.85rem}.damage-row progress{width:100%;accent-color:#5687bc}.damage-row b{text-align:right}
.frozen-map {position:fixed;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none;filter:brightness(.58);z-index:-1}
.result-screen{padding:15px}.result-screen .result-window{width:min(530px,100%);max-height:94dvh;overflow-y:auto}.result-screen .menu-body{gap:8px;padding:12px 16px}.result-stage{font-size:1rem}.result-screen .results-grid{grid-template-columns:repeat(auto-fit,minmax(83px,1fr));gap:3px}.result-screen .results-grid div{padding:4px 5px;text-align:center;border-radius:4px}.result-screen .results-grid dt{font-size:.72rem}.result-screen .results-grid dd{font-size:.92rem}.result-experience{display:grid;gap:3px;font-weight:700}.result-experience progress{width:100%;height:.65rem;accent-color:#469fc8}.result-experience progress:last-child{accent-color:#3db98d}
.trade-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.trade-side{padding:9px;border:1px solid #c3cfe1;background:#edf2f9;border-radius:5px}.trade-side small{display:block}.trade-side ul,.trade-form ul{margin:4px 0;padding-left:18px}.trade-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:10px 0}.trade-form input{width:6em}.trade-form ul{width:100%}.trade-form label{display:flex;gap:5px;align-items:center}
