:root{color-scheme:dark;--bg:#0f1119;--panel:#1a1e2b;--panel2:#212637;--edge:#34394b;--light:#f1e9d8;--muted:#a1a8b9;--gold:#e8bd71;--green:#79c9ad;--red:#ec8e8a;--blue:#8baae8}
*{box-sizing:border-box}body{margin:0;color:var(--light);font:14px/1.65 system-ui,"Yu Gothic",Meiryo,sans-serif;background:radial-gradient(ellipse 650px 440px at 45% -100px,#36354c55,transparent),#10121a}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,canvas:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:2px}a{color:var(--gold);text-decoration:none}a:hover{text-decoration:underline}
.topbar{height:70px;background:#151724e8;border-bottom:1px solid #303547;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,48px);gap:12px}.brand{display:flex;align-items:center;gap:13px}.mark{font-size:27px;background:#42344b;border:1px solid #796584;color:#f3c98d;width:43px;height:43px;display:grid;place-items:center;border-radius:9px}.eyebrow{color:#bbb09a;letter-spacing:.2em;font-size:10px;font-weight:700}.brand b{font-family:Georgia,serif;font-size:19px;letter-spacing:.04em;display:block;line-height:1.3}.brand .jp{font:600 11px/1.2 system-ui,"Yu Gothic",sans-serif;color:#bfb3a0;margin-left:8px;letter-spacing:0}.header-right{display:flex;align-items:center;gap:16px}.header-right button{font-size:12px}.ghost,.textlink{background:none;border:0;color:#b8b5c0;padding:5px}.ghost:hover,.textlink:hover{color:#fff}.online{display:flex;gap:8px;align-items:center;font-size:11px;color:#c6d0c6}.led{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7dcaa2;box-shadow:0 0 9px #7dcaa255}
.layout{max-width:1690px;margin:auto;padding:30px clamp(10px,2.6vw,42px) 35px}.headline{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.headline h1{font:700 clamp(25px,3vw,37px)/1.3 "Yu Mincho",Georgia,serif;margin:3px 0 6px}.headline p{margin:0;color:#b1b5c1;font-size:13px}.update-card{border:1px solid #565062;background:#2624369c;border-radius:8px;padding:10px 18px;min-width:210px}.update-card span{font-size:10px;letter-spacing:.13em;color:#d2b788;display:block}.update-card b{font-size:16px;display:block}.update-card small{font-size:11px;color:#acacbc}
.dashboard{display:grid;grid-template-columns:minmax(218px,252px) minmax(530px,1fr) minmax(260px,320px);gap:14px;align-items:start}.panel,.stage{background:#191e2a;border:1px solid var(--edge);border-radius:9px;box-shadow:0 16px 38px #0003;overflow:hidden}.side{padding:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#ddc391;font:bold 10px/1.5 system-ui;letter-spacing:.15em}.section-head span:last-child{letter-spacing:0;font-weight:400;color:#adb5bc}.section-sep{border-top:1px solid #353a49;padding-top:14px;margin-top:16px;margin-bottom:12px}.hero-face{display:flex;gap:12px;align-items:center;margin-top:14px}.portrait{width:67px;height:67px;flex-shrink:0;border-radius:6px;display:grid;place-items:center;background:#37354c;color:#f7c979;border:1px solid #655974;font-size:34px}.name{font-size:14px;font-weight:800}.muted{font-size:11px;color:#9e9eb2}.level{display:flex;gap:12px;align-items:center;color:#f0d397;font-size:11px;margin-top:3px}.level strong{font:700 23px Georgia}.level #rankTag{color:#9daec1}
.meter-box{margin-top:17px}.meter-row{display:flex;justify-content:space-between;gap:9px;font-size:11px;margin:10px 0 4px;color:#afb2c4}.meter-row b{color:#ebece9}.meter{height:7px;border-radius:5px;background:#343945;overflow:hidden}.meter>div{height:100%;background:#cf776c;width:0;transition:width .2s}.meter.mp>div{background:#7ba0d4}.meter.xp>div{background:#c9b06f}.stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:18px}.stats>div{padding:8px;background:#232a39;border:1px solid #384050;border-radius:5px;display:flex;align-items:center;justify-content:space-between}.stats span{color:#b4b4c6;font-size:10px}.stats b{font-size:15px;color:#ead19b}.resource-row{display:flex;justify-content:space-between;gap:5px;margin-top:13px;font-size:11px;color:#dfbf80}.slots{display:grid;gap:6px}.slot{display:flex;text-align:left;align-items:center;gap:10px;border:1px solid #384050;background:#222838;color:#e9e6dd;border-radius:6px;width:100%;padding:8px}.slot:hover{background:#2b3345}.slot>span{font-size:19px;color:#ddb878;width:22px;text-align:center}.slot div{min-width:0}.slot small{display:block;font-size:10px;color:#9ba4b3}.slot b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px}.growth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.growth-grid button{border:1px solid #444658;border-radius:5px;background:#292c3c;color:#e2d6bf;font-size:11px;padding:7px 4px}.growth-grid button:disabled{opacity:.45;cursor:default}.hint{font-size:10px;color:#9098a8;margin:11px 0 0}
.stage{background:#131827}.map-top{padding:13px 16px;border-bottom:1px solid #353e51;display:flex;align-items:center;justify-content:space-between;gap:8px}.floor-block b{font-size:17px;display:block}.floor-right{display:flex;align-items:center;gap:18px}.f-number{display:flex;align-items:baseline;gap:5px;color:#e9c17c}.f-number b{font:700 30px Georgia}.f-number small{font-size:10px;letter-spacing:.1em}.threat{border:1px solid #6b644f;padding:4px 9px;border-radius:20px;color:#ded0a2;font-size:11px}.threat.boss{color:#f7b9a1;border-color:#d46964;background:#4c2525}
.canvas-wrap{position:relative;overflow:hidden;background:#191d2d}.canvas-wrap canvas{display:block;width:100%;max-width:100%;height:auto;image-rendering:pixelated;touch-action:manipulation}.legend{position:absolute;left:12px;bottom:11px;display:flex;gap:10px;flex-wrap:wrap;max-width:90%;background:#111523c9;padding:6px 10px;border-radius:6px;border:1px solid #5b5262a2;color:#d4d1db;font-size:10px;pointer-events:none}.symbol-stair{color:#9cd6ff}.symbol-chest{color:#f3ce89}.symbol-altar{color:#e4a4f1}
.float-message{position:absolute;top:24px;left:50%;transform:translateX(-50%);padding:10px 18px;border:1px solid #7b7aa8;background:#21213fe9;color:#f5e4b9;border-radius:7px;opacity:0;pointer-events:none;transition:opacity .25s;white-space:normal;max-width:90%;text-align:center;font-size:13px;z-index:3}.float-message.shown{opacity:1}.overlay-banner{position:absolute;inset:0;background:#10111ee0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center;z-index:2}.overlay-banner h2{font:700 32px "Yu Mincho",Georgia,serif;color:#e9c47c}.overlay-banner p{color:#c6bac2}.overlay-banner button{background:#b0884e;border:1px solid #edcc90;color:#17141c;font-weight:800;padding:11px 24px;border-radius:7px}.overlay-banner[hidden]{display:none}
.actionbar{padding:12px;display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #353e51;flex-wrap:wrap}.actions{display:flex;gap:5px;flex-wrap:wrap}.actions button,.retreat{display:flex;align-items:center;gap:5px;border:1px solid #4a4b5e;border-radius:6px;background:#2b2d40;color:#f0e9da;padding:8px;font-size:12px}.actions button b{font-size:15px;color:#dfc08b}.actions button small{display:block;color:#99a5b8;font-size:9px;line-height:1}.actions button.primary{background:#645039;border-color:#b39159}.actions button:hover,.retreat:hover{background:#484257}.retreat{color:#cfbbba;font-size:11px}.actions button:disabled{opacity:.4;cursor:default}
.movement{display:flex;justify-content:space-between;align-items:center;background:#1e2535;padding:9px 14px;border-top:1px solid #303849;gap:8px}.move-help,.interaction-hint{color:#b7b3bd;font-size:11px}.move-help span{color:#e3be77;font-size:10px;letter-spacing:.15em;margin-right:7px}.dpad{display:grid;justify-items:center;gap:4px}.dpad>div{display:flex;gap:4px}.dpad button{background:#373b55;border:1px solid #6d6375;border-radius:6px;color:#fff;width:39px;height:30px}.journal{padding:12px 15px;background:#181c28;border-top:1px solid #353849}.journal-title{display:flex;justify-content:space-between;font-size:11px;color:#dcc08e}.journal-title span{color:#8e95a7}.journal ol{list-style:none;margin:7px 0 0;padding:0;height:111px;overflow:auto}.journal li{font-size:11px;margin:3px 0;padding-left:10px;border-left:2px solid #5d5e76;color:#c6cad1}.journal li.hit{border-color:#ca7f79}.journal li.loot{border-color:#d3b46d}.journal li.growth{border-color:#74bd9d}
.right{display:flex;flex-direction:column;min-height:440px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #3b4053}.tabs button{font-size:12px;color:#aeb3c2;padding:14px 3px;border:0;background:#212535;border-bottom:2px solid transparent}.tabs button.active{background:#29283c;color:#ffe0a4;border-color:#edb76c}.tab-body{padding:15px;min-height:350px;max-height:720px;overflow:auto}.tab-hint{font-size:11px;color:#9ca7b9;margin:0 0 13px}.item-list{display:grid;gap:7px}.inventory-item{border:1px solid #40485d;border-radius:7px;padding:9px 8px;display:flex;gap:8px;background:#23283a}.inventory-item .glyph{width:33px;height:33px;background:#33374b;border-radius:6px;display:grid;place-items:center;font-size:19px;color:#e8bb7c}.item-info{flex:1;min-width:0}.item-info b{display:block;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.item-info small{font-size:10px;color:#b1b4c4}.inventory-item .item-actions{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-top:6px}.mini-btn{background:#414054;color:#f7e0b4;border:1px solid #68607e;border-radius:4px;padding:3px 7px;font-size:10px}.mini-btn:disabled{opacity:.35}.rarity-0{color:#dde0e5}.rarity-1{color:#89cfe1}.rarity-2{color:#ccadf6}.rarity-3{color:#f2c377}.rarity-4{color:#f09a97}.empty{color:#b3b3c2;text-align:center;padding:34px 12px;font-size:12px}.filter-row{display:flex;justify-content:space-between;gap:7px;margin-bottom:12px}.filter-row select{background:#292d3d;color:#ebddc6;border:1px solid #565364;border-radius:4px;padding:5px;min-width:100px}.filter-row span{font-size:11px;color:#adb5bd}.craft-slot{padding:11px;border:1px dashed #686073;border-radius:6px;background:#29283a;color:#e4d1b2;text-align:center;margin:11px 0}.craft-go{width:100%;background:#73583d;border:1px solid #c59b65;border-radius:7px;color:#fff0ce;font-weight:700;padding:10px}.craft-go:disabled{opacity:.4}.talent{padding:12px;margin-bottom:10px;border:1px solid #454257;border-radius:7px;background:#252a3a}.talent h3{font-size:13px;margin:0;color:#e8c78b}.talent p{font-size:11px;color:#b6b8cb;margin:3px 0 9px}.talent button{font-size:11px;padding:4px 10px;background:#4e485a;color:#f2e4c9;border:1px solid #6c687a;border-radius:4px}.codex-item{padding:8px;border-bottom:1px solid #3a3e4e;font-size:12px}.codex-item small{display:block;color:#9eacba}.feed-panel{margin-top:auto;border-top:1px solid #3e3f52;background:#212636;padding:15px}.feed-panel>div:first-child{display:flex;gap:8px;align-items:center;font-size:11px;color:#d6d1ea;letter-spacing:.05em}.feed-panel p{font-size:11px;color:#adb4c8;line-height:1.7}.feed-stats{display:flex;justify-content:space-between;gap:5px;font-size:10px;color:#c4c9dc}.feed-panel button{margin-top:12px;background:#34364b;border:1px solid #605b78;border-radius:5px;color:#dad9f0;padding:7px 9px;font-size:11px;width:100%}
.below{margin-top:26px;border-top:1px solid #434052;padding-top:23px;display:flex;justify-content:space-between;align-items:center;gap:14px}.below h2{font:700 24px "Yu Mincho",Georgia,serif;margin:4px 0}.below p{max-width:800px;color:#a8acbb;font-size:12px;line-height:1.8}.badge-line{display:flex;gap:7px;flex-wrap:wrap}.badge-line span{border:1px solid #575067;color:#ceb995;font-size:11px;border-radius:20px;padding:6px 12px;white-space:nowrap}
footer{max-width:1690px;margin:auto;padding:24px 35px;border-top:1px solid #303548;display:flex;justify-content:space-between;flex-wrap:wrap;color:#8b96aa;font-size:11px}
dialog{width:min(510px,94vw);border:1px solid #706080;border-radius:10px;background:#222434;color:#ece9ea;box-shadow:0 25px 80px #000a;padding:0}dialog::backdrop{background:#090a11cd}.modal-head{padding:17px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #404153}.modal-head h2{font-size:17px;margin:0}.icon-button{background:transparent;color:white;border:0;font-size:24px}.modal-body{padding:18px 21px;font-size:13px;line-height:1.8}.modal-bottom{padding:15px 21px;border-top:1px solid #424354;text-align:right}.modal-bottom button{background:#625070;color:#f4e7e2;border:1px solid #806b88;padding:7px 16px;border-radius:5px}
@media(max-width:1350px){.dashboard{grid-template-columns:230px minmax(450px,1fr) 265px;gap:9px}.layout{padding-left:12px;padding-right:12px}.actions button{padding:6px;font-size:11px}.side{padding:12px}}@media(max-width:1090px){.dashboard{grid-template-columns:225px minmax(0,1fr)}.right{grid-column:1/-1}.tab-body{min-height:210px;max-height:350px}.feed-panel{margin:0}.headline{margin-bottom:17px}}@media(max-width:730px){.topbar{padding:0 12px;height:65px}.header-right{gap:6px}.header-right .online{display:none}.header-right .ghost{font-size:10px;padding:3px}.brand b{font-size:14px}.brand .jp{font-size:9px}.brand .eyebrow{font-size:8px}.mark{width:35px;height:35px;font-size:21px}.headline{flex-direction:column;align-items:stretch}.headline h1{font-size:27px}.update-card{width:100%}.dashboard{grid-template-columns:1fr}.stage{grid-row:1}.side{grid-row:2}.right{grid-row:3}.layout{padding:16px 8px}.map-top{padding:10px}.canvas-wrap canvas{width:100%}.legend{left:5px;bottom:5px;gap:5px;padding:4px;font-size:8px}.actionbar{padding:7px}.actions{width:100%;justify-content:space-around}.actions button{flex:1;min-width:45px;justify-content:center;padding:6px 2px}.actions button b{display:none}.actions button span{font-size:10px}.retreat{margin-left:auto}.move-help{font-size:9px}.interaction-hint{max-width:90px;font-size:10px}.section-head{font-size:11px}.hero{padding:16px}.growth-grid{grid-template-columns:repeat(4,1fr)}.below{align-items:flex-start;flex-direction:column}.tab-body{max-height:650px}.panel{border-radius:7px}}
