@font-face{font-family:Wenkai;src:url('assets/wenkai.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}html{height:100%;background:#43463f;color:#504432;font-family:Wenkai,'Noto Serif SC',serif}body{margin:0;height:100%;overflow:hidden}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #967d50;outline-offset:2px}[hidden]{display:none!important}img{max-width:100%}#app{width:100%;max-width:620px;height:100dvh;margin:auto;display:flex;flex-direction:column;gap:6px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#eee4ce url('assets/paper.webp') center/cover;box-shadow:0 0 60px #0004;overflow:hidden}.game-header{flex:none}.brand{height:58px;width:100%;object-fit:contain;display:block;margin:0 auto 4px}.identity{display:flex;align-items:center;gap:5px;height:36px}.identity-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.identity .btn{width:50px;flex:none;padding:2px;height:31px;min-height:31px;font-size:14px}.header-progress{height:5px;background:#cfc2a5;margin-top:4px}.header-progress i{display:block;height:100%;background:#b08745;transition:width .5s}.global-status{height:25px;font-size:12px;color:#567567;line-height:25px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}main{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#ac96764f transparent;padding-bottom:5px}main[data-page=mine],main[data-page=camp]{display:flex;flex-direction:column;gap:6px;overflow:hidden;padding:0}.btn,.tabs button,.service-button,.mobile-nav button{border:1px solid #a88b5e;background:#f3e8d5 url('assets/button-original.webp') center/100% 100%;border-radius:0;min-height:40px;padding:7px 10px;font-size:16px;text-align:center}.btn:hover,.tabs button:hover,.service-button:hover{filter:brightness(.98)}.btn.primary,.tabs button.active,.mobile-nav button.active{background:#eee3cc url('assets/primary-original.webp') center/100% 100%;color:#823c2c;border-color:#8f6746}.btn.small{min-height:32px;font-size:14px;padding:4px 8px}.btn.wide{width:100%;margin:6px 0}.btn.dark{color:#3a5848}.scene-controls{flex:none;display:flex;gap:6px;height:44px}.scene-controls button{flex:1;min-width:0;font-size:16px;padding:4px}.mobile-nav{display:flex;gap:3px;flex:none;height:50px}.mobile-nav button{flex:1;min-width:0;font-size:17px;padding:3px}.mobile-nav .nav-seal{display:none}.boot{position:fixed;inset:0;background:#eee3cd;display:flex;justify-content:center;align-items:center;flex-direction:column;z-index:90}.boot img{width:280px}.boot small{font-size:13px;color:#9b8667}.boot p{font-size:20px}.camp-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none}.service-button{height:clamp(70px,10dvh,104px);padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.service-button img{width:100%;height:calc(100% - 27px);object-fit:contain}.service-button span{font-size:18px;line-height:25px}.service-button:nth-child(-n+2){color:#8d3929}.tournament-entry{height:40px;min-height:40px;flex:none;font-size:16px;padding:4px}.camp-scene{flex:1;min-height:100px;position:relative;border:1px solid #9b845b;background:#c9c3ac url('assets/camp-original.webp') center/cover}.camp-plaque{position:absolute;left:6px;top:6px;border:1px solid #988257;padding:5px 8px;font-size:23px;background:#f6e9cde8}.camp-sign{position:absolute;right:6px;top:6px}.camp-trial{position:absolute;left:6px;bottom:6px;height:38px;min-height:38px;font-size:14px;padding:4px 9px}.mine-location{display:flex;align-items:center;gap:8px;height:54px;flex:none}.mine-location strong{font-size:24px;font-weight:400;min-width:90px}.mine-location>div{flex:1;min-width:0;border-left:1px solid #ae946d;padding-left:8px;font-size:12px;line-height:1.7}.mine-location>div span{display:block}.mine-location>div span span{display:inline}.mine-location b{font-weight:400}.text-button{padding:0;border:0;background:transparent;color:#88663d;font-size:13px;white-space:nowrap}.insight{height:26px;min-height:26px;font-size:12px;padding:2px;flex:none;width:100%}.scene{flex:1;min-height:120px;position:relative;overflow:hidden;background:#27372f url('assets/mine-original.webp') center/cover;border:1px solid #8a7958}.scene-top{position:absolute;top:10px;left:10px;font-size:18px;color:#efdfbd;text-shadow:0 1px 3px #000;z-index:3}.scene-top b{font-weight:400}.hero-sprite{position:absolute;left:0;bottom:70px;width:65%;aspect-ratio:1;background:url('assets/miner.webp') 0 0/400% 200%;filter:drop-shadow(0 7px 5px #0005);z-index:2}.hero-sprite.working{animation:mine 1.2s steps(4) infinite}@keyframes mine{to{background-position-x:133.333%}}.enemy-art{position:absolute;right:0;bottom:82px;width:38%;height:48%;object-fit:contain;filter:drop-shadow(0 8px 6px #0008)}.enemy-art.hit{animation:hit .3s}@keyframes hit{50%{transform:translateX(5px);filter:brightness(1.5)}}.scene-bottom{position:absolute;left:5px;right:5px;bottom:5px;display:grid;grid-template-columns:1fr 1fr;gap:6px;z-index:4}.hp-card{height:66px;min-width:0;background:#f6edd9e8;padding:5px;color:#6b5533;font-size:12px;line-height:1.5}.hp-card>span{display:inline}.hp-card small{font-size:10px;display:block;margin-top:3px}.bar{height:5px;background:#cabd9f;overflow:hidden;margin:4px 0}.bar i{height:100%;width:0;display:block;background:#9d7f45;transition:width .5s linear}.hpbar i{background:#66785d}.enemybar i{background:#a26a4b}.scene-task{position:absolute;left:7px;top:40px;z-index:5;background-color:#f2e6cedd;font-size:12px!important;min-height:26px!important;padding:2px 6px!important}.mining-chat{height:28px;min-height:28px;flex:none;border:1px solid #b6a27f;background:#f4e8d199;text-align:left;font-size:12px;color:#826d4d;padding:3px 7px}.resource-line{height:30px;min-height:30px;flex:none;display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:5px}.resource-line b{font-weight:400}.mining-rate{height:22px;flex:none;display:flex;justify-content:space-between;color:#5d7968;font-size:11px;gap:8px;overflow:hidden;white-space:nowrap}.mining-rate #current-tip{overflow:hidden;text-overflow:ellipsis}.tabs{display:flex;gap:5px;margin:0 0 8px;flex-wrap:wrap}.tabs button{flex:1;min-width:0;font-size:15px;min-height:40px;padding:4px 5px}.role-tabs{gap:0;flex-wrap:nowrap;position:sticky;top:0;z-index:5;background:#eee3cd}.role-tabs button{font-size:14px;min-height:44px;padding:2px}.portrait{width:100%;height:200px;object-fit:contain;display:block}.role-name{text-align:center;font-size:22px;font-weight:400;margin:5px 0 10px}.attribute-points{text-align:center;color:#527361;font-size:17px;margin:8px 0}.allocation-tabs button{min-height:36px;font-size:13px}.attribute-row{display:flex;align-items:center;justify-content:space-between;height:48px;gap:8px;font-size:18px}.attribute-row .btn{width:90px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 0}.stat{padding:6px;text-align:center;border:1px solid #ab916d77;background:#f4ead647}.stat small{font-size:12px;color:#927b59}.stat strong{display:block;font-weight:400;font-size:18px;margin-top:3px}.stat em{font-size:10px;font-style:normal;margin-left:2px}.panel,.item-card{border:1px solid #ad946b;background:#f6edda88;padding:12px;margin:8px 0}.panel h3{font-size:18px;font-weight:400;margin:3px 0 8px}.panel-heading{display:flex;justify-content:space-between;align-items:center;font-size:20px;font-weight:400;margin:0 0 12px}.panel-heading small{font-size:12px;color:#8b7757}.hint{font-size:14px;line-height:1.8;color:#8b7759}.notice-box{font-size:13px;line-height:1.8;color:#8c7757;border:1px solid #ac966d77;background:#eee2c47a;padding:10px;margin:8px 0 12px}.page-heading{font-size:24px;font-weight:400;margin:8px 0 12px}.group-heading{font-size:17px;font-weight:400;border-bottom:1px solid #ad946b77;padding-bottom:5px;margin:13px 0 7px;color:#8d623d}.more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.more-grid.two{grid-template-columns:repeat(2,1fr)}.menu-button{height:73px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:15px}.menu-button span{font-size:23px;color:#9c7650}.more-grid.two .menu-button{height:48px;flex-direction:row}.form-row,.action-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:10px 0}.field{border:1px solid #ac946a;background:#fbf2dfb8;padding:7px 9px;min-height:39px;max-width:100%;min-width:0;font-size:15px}.field.loadout-name{flex:1;width:100px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.item-card{display:flex;flex-direction:column;margin:0;min-width:0}.item-card h3{font-size:19px;font-weight:400;margin:5px 0 8px}.item-card p{font-size:13px;line-height:1.7;color:#8a7353;flex:1}.item-card .btn{font-size:14px;padding:5px}.tag,.book-type{font-size:12px;color:#9b7950}.book-stage{font-size:13px;margin:5px 0}.book-card.equipped{background:#d5dec882}.book-empty{text-align:center;padding:32px 12px;border:1px solid #ae977164}.book-empty h3{font-weight:400}.empty-symbol{font-size:46px;color:#ab9779}.section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:5px 0 8px}.section-head h2{font-size:22px;font-weight:400;margin:0}.eyebrow{display:none}.equipment-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.equipment-slots .panel{padding:9px 5px;text-align:center}.equipment-slots p{font-size:12px}.equipment-slots .btn{font-size:12px;padding:4px;width:100%}.realm-panel{text-align:center;padding:25px 14px}.realm-grade{font-size:40px;color:#8d5a35}.inventory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.bag-cell{border:1px solid #af9871;background:#f4e9d67d;display:flex;flex-direction:column;align-items:center;padding:7px 2px}.bag-cell img{height:50px;width:100%;object-fit:contain}.bag-cell b{font-size:14px;font-weight:400;margin:3px 0}.bag-cell span{font-size:11px;color:#8d7551}.gene-stage-label{font-size:21px;font-weight:400;margin:20px 0 4px}.gene-card{grid-column:1/-1}.gene-card.selected{border:2px solid #78835e;background:#d5dec54d}.dungeon-grid{display:flex;flex-direction:column;gap:12px}.dungeon-card{position:relative;min-height:160px;background:#eee4cc;border:1px solid #ad9263;padding:0;overflow:hidden}.dungeon-card .dungeon-cover{height:58px;padding:13px 18px;background-size:cover;background-position:center}.dungeon-card .dungeon-cover h3{font-size:26px;color:#6c4a28;margin:0;text-shadow:0 1px 3px #fff}.dungeon-card:nth-child(1) .dungeon-cover{background-image:url('assets/dungeon-personal.webp')}.dungeon-card:nth-child(2) .dungeon-cover{background-image:url('assets/dungeon-story.webp')}.dungeon-card:nth-child(3) .dungeon-cover{background-image:url('assets/dungeon-weekly.webp')}.dungeon-card .card-body{padding:10px 12px;display:flex;flex-direction:column;gap:5px}.dungeon-card .card-body p{margin:0;font-size:13px;line-height:1.7}.dungeon-card .notice-box{margin:0;padding:6px;font-size:12px}.dungeon-card .btn{min-height:38px}.dungeon-card .tag{font-size:12px}.battle-panel{padding:14px;border:1px solid #8e7956;background:#f5ead6cf;margin-bottom:10px}.battle-panel h3{font-size:22px;font-weight:400}.battle-art{height:145px;display:block;margin:auto}.bar-meta{display:flex;justify-content:space-between;font-size:13px;margin:7px 0}.battle-panel .bar{height:7px}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #b7a28050;font-size:16px}.toggle-row input{accent-color:#6d795a;width:20px;height:20px}.progress{margin:12px 0}.quality-2{color:#517b4e}.quality-3{color:#407b94}.quality-4{color:#90679b}.quality-5{color:#b08432}.toast{position:fixed;left:50%;bottom:85px;transform:translateX(-50%);background:#394c3dee;color:#fff3d7;max-width:min(90vw,540px);padding:12px 17px;font-size:14px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s;line-height:1.6}.toast.visible{opacity:1}dialog{border:1px solid #9b8052;background:#eee3cc url('assets/paper.webp') center/cover;color:#55452f;width:calc(100% - 28px);max-width:540px;max-height:85dvh;padding:22px;overflow:auto}dialog::backdrop{background:#16221999}.dialog-title{font-size:25px;font-weight:400;margin:4px 0 14px}dialog p{font-size:15px;line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:18px}.onboarding{display:flex;align-items:center;gap:16px}.onboarding>img{width:100px;height:200px;object-fit:contain}.onboarding input{width:100%;margin-top:8px}.intro-tag{font-size:12px;color:#987c55}.journey-step{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #ac987556}.step-num{border:1px solid #a1845b;padding:3px 7px}.journey-step b{display:block;font-weight:400}.journey-step small{font-size:12px;color:#9a805d}.journey-step.done{opacity:.5}.warning{color:#9a4432!important}.log time{font-size:11px}.log p{font-size:13px}.item-art{height:70px;object-fit:contain}.setting-section{padding-bottom:15px}.section-gap{margin-top:15px}
@media(max-height:730px){#app{gap:4px;padding-top:6px;padding-bottom:6px}.brand{height:45px;margin-bottom:0}.global-status{height:20px;line-height:20px;font-size:11px}.identity{height:32px}.camp-services .service-button{height:68px}.camp-services .service-button span{font-size:16px}.mine-location{height:47px}.mine-location strong{font-size:21px;min-width:78px}.mine-location>div{font-size:11px}.scene-controls{height:40px}.mobile-nav{height:46px}.resource-line{height:27px;min-height:27px;font-size:12px}.mining-rate{height:19px;font-size:10px}.scene-bottom{gap:4px}.hp-card{height:60px;font-size:11px}.hero-sprite{bottom:63px}.enemy-art{bottom:72px}}@media(max-width:350px){#app{padding-left:8px;padding-right:8px}.identity-text{font-size:12px}.identity .btn{width:43px;font-size:12px}.service-button span{font-size:16px}.mobile-nav button{font-size:16px}.role-tabs button{font-size:12px}.stat strong{font-size:16px}.mining-rate{font-size:9px}.equipment-slots .btn{font-size:11px}.card-grid{gap:5px}.item-card{padding:9px}.item-card h3{font-size:17px}.portrait{height:180px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.original-dungeon-list{display:flex;flex-direction:column;gap:12px;padding-top:4px}.original-dungeon{display:flex;align-items:center;min-height:120px;height:clamp(110px,17dvh,170px);border:1px solid #a88b5e;background-size:cover;background-position:center;padding:10px;gap:8px}.original-dungeon.personal{background-image:url('assets/dungeon-personal.webp')}.original-dungeon.story{background-image:url('assets/dungeon-story.webp')}.original-dungeon.weekly{background-image:url('assets/dungeon-weekly.webp')}.dungeon-info{flex:1;min-width:0;text-align:center}.dungeon-info h3{font-size:28px;color:#75502e;font-weight:400;margin:0 0 8px;text-shadow:0 1px 3px #fff}.dungeon-info>span{font-size:12px;display:block;margin-top:5px}.dungeon-info .field{padding:3px;min-height:30px;font-size:13px;max-width:90px}.dungeon-meta{display:flex;gap:7px;align-items:center;justify-content:center;font-size:18px}.dungeon-meta .tag{font-size:12px;border:1px solid #947647;padding:5px}.dungeon-actions{display:flex;flex-direction:column;gap:6px;width:30%;flex:none}.dungeon-actions .btn{min-height:34px;font-size:14px;padding:4px 2px}.dungeon-hint{text-align:center;font-size:12px}.signin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.signin-grid .panel{margin:0;padding:9px}.signin-grid .panel p{font-size:12px;margin:4px 0}.signin-grid .claimed{opacity:.5}@media(max-width:350px){.dungeon-info h3{font-size:24px}.dungeon-meta{font-size:16px}.dungeon-actions .btn{font-size:12px}.original-dungeon{padding:7px;gap:4px}}
.btn.primary,.tabs button.active,.mobile-nav button.active{color:#f7e4b7;text-shadow:0 1px 2px #3c1b10}.hero-sprite.working{animation-name:mine-eight;animation-timing-function:steps(1)}@keyframes mine-eight{0%{background-position:0 0}12.5%{background-position:33.333% 0}25%{background-position:66.667% 0}37.5%{background-position:100% 0}50%{background-position:0 100%}62.5%{background-position:33.333% 100%}75%{background-position:66.667% 100%}87.5%{background-position:100% 100%}}
.hero-sprite{height:min(calc(100% - 80px),60vw,350px);width:auto;max-width:65%;aspect-ratio:1}
.hero-sprite{height:min(calc((100% - 70px)*1.4),65vw,420px);aspect-ratio:8/9;transform-origin:0 100%}.scene-controls button{white-space:nowrap;font-size:14px}@media(max-width:350px){.scene-controls button{font-size:12px}}
@keyframes mine-nine{0%{background-position:0 0;transform:translate(0,0) scaleX(1)}12.5%{background-position:33.333% 0;transform:translate(1.318%,0) scaleX(.9653)}25%{background-position:66.667% 0;transform:translate(-13.38%,-.174%) scaleX(.9464)}37.5%{background-position:100% 0;transform:translate(-11.43%,-.347%) scaleX(.9429)}50%{background-position:0 100%;transform:translate(-.39%,6.076%) scaleX(.9296)}62.5%{background-position:33.333% 100%;transform:translate(1.27%,6.076%) scaleX(.9231)}75%{background-position:66.667% 100%;transform:translate(-1.172%,6.076%) scaleX(.9135)}87.5%{background-position:100% 100%;transform:translate(-1.611%,5.035%) scaleX(1.0096)}}
/* Artwork already supplies its frame; no second rectangular border behind it. */
.btn,.tabs button,.service-button,.mobile-nav button,.btn.primary,.tabs button.active,.mobile-nav button.active{border-color:transparent;box-shadow:none}
main[data-page=bag]{display:flex;flex-direction:column;gap:6px;overflow:hidden;padding-bottom:0}.bag-heading{font-size:18px;font-weight:400;margin:0;flex:none}.bag-tools{display:flex;gap:6px;flex:none}.bag-tools button{flex:1;min-height:32px;height:32px;font-size:13px}.bag-receipt{font-size:12px;color:#6a8064;margin:0;flex:none}.bag-tabs{margin:0;flex:none}.bag-tabs button{height:34px;min-height:34px;font-size:13px}.original-bag-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(var(--bag-rows),minmax(0,1fr));gap:5px}.bag-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px;min-width:0;min-height:0;overflow:hidden;border:1px solid #ac987577;background:#f4e9d5 url('assets/bag-cell.webp') center/100% 100%;font-family:inherit;color:#665032;cursor:pointer}.bag-item img{height:calc(100% - 36px);min-height:18px;max-height:100px;width:90%;object-fit:contain;pointer-events:none}.bag-item>span{font-size:12px;line-height:16px;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bag-item small{font-size:11px;line-height:14px}.bag-item.empty{cursor:default;opacity:.65}.bag-pages{flex:none;height:34px;display:flex;gap:9px;justify-content:center;align-items:center;font-size:13px}.bag-pages button{min-height:30px;height:30px;font-size:13px;width:92px}.bag-item:focus-visible{outline:2px solid #a08350;outline-offset:-3px}

/* Account entry uses the existing paper and button artwork. */
.boot:has(#auth-box){justify-content:flex-start;overflow-y:auto;padding:20px 0;gap:4px}.boot:has(#auth-box)>img{width:200px;flex:none}.boot:has(#auth-box)>p{margin:4px}.boot:has(#auth-box)>small{display:none}#auth-box{flex:none;background:#eee4ce url(assets/paper.webp) center/cover}#auth-box label{display:block;font-size:14px;margin:10px 0}#auth-box .field{display:block;width:100%;margin:5px 0}#auth-box p{font-size:14px;line-height:1.6}#auth-box .btn{margin-top:8px}#auth-box .action-row{display:flex;flex-wrap:wrap;gap:8px}textarea.field{font:inherit;overflow-wrap:anywhere;resize:none}
