.treasure-view{min-width:0;background:linear-gradient(180deg,#101923 0,#0f151b 46%,#10171a 100%)}

/* Platform-wide scroll rails. Keep every drawer, dialog and game surface on the same dark UI. */
*{scrollbar-width:thin;scrollbar-color:#4b5862 #0e1419}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#0e1419;border-left:1px solid #222d35}
*::-webkit-scrollbar-thumb{min-height:42px;border:2px solid #0e1419;border-radius:4px;background:#4b5862}
*::-webkit-scrollbar-thumb:hover{background:#d6bd36}
*::-webkit-scrollbar-thumb:active{background:var(--yellow)}
*::-webkit-scrollbar-button{display:none;width:0;height:0}
*::-webkit-scrollbar-corner{background:#0e1419}

/* Platform form controls. Native light inputs break the arena's dark industrial UI. */
:root{color-scheme:dark}
dialog input:not([type="checkbox"]):not([type="file"]),dialog select,dialog textarea{width:100%;min-width:0;border:1px solid #3b4852;border-radius:0;background:#0d1419;color:#eef3f5;caret-color:var(--yellow);outline:0;transition:border-color .16s,background .16s,box-shadow .16s}
dialog input:not([type="checkbox"]):not([type="file"]),dialog select{height:44px;padding:0 12px}
dialog textarea{padding:12px;line-height:1.65;resize:vertical}
dialog input::placeholder,dialog textarea::placeholder{color:#6f7d86;opacity:1}
dialog input:not([type="checkbox"]):not([type="file"]):hover,dialog select:hover,dialog textarea:hover{border-color:#52616b;background:#101920}
dialog input:not([type="checkbox"]):not([type="file"]):focus,dialog select:focus,dialog textarea:focus{border-color:var(--yellow);background:#111a20;box-shadow:0 0 0 2px #f4d83d1c,inset 3px 0 #f4d83d}
dialog input:-webkit-autofill,dialog input:-webkit-autofill:hover,dialog input:-webkit-autofill:focus{-webkit-text-fill-color:#eef3f5;-webkit-box-shadow:0 0 0 1000px #0d1419 inset;transition:background-color 9999s ease-out}
dialog input[type="number"]{-moz-appearance:textfield}
dialog input[type="number"]::-webkit-inner-spin-button,dialog input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Exchange, profile, novel import and SVIP all share the same control language. */
.quantity-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;border:1px solid #3b4852;background:#0d1419;transition:border-color .16s,box-shadow .16s}.quantity-stepper:focus-within{border-color:var(--yellow);box-shadow:0 0 0 2px #f4d83d1c}.quantity-stepper>button{width:44px;height:48px;border:0;background:#202a32;color:#c9d2d7;display:grid;place-items:center}.quantity-stepper>button:first-child{border-right:1px solid #3b4852}.quantity-stepper>button:last-child{border-left:1px solid #3b4852}.quantity-stepper>button:hover{background:#2c3841;color:var(--yellow)}.quantity-stepper>button svg{width:16px}.quantity-stepper>#exchangeQuantity{height:48px;border:0;background:transparent;box-shadow:none;text-align:center;font:800 20px var(--display)}
.profile-dialog{max-height:min(92vh,780px);overflow-y:auto;scrollbar-gutter:stable}.profile-dialog>h2{margin-bottom:18px}.profile-overview{background:#11181e;padding:13px 48px 18px 13px}.profile-form label{display:grid;gap:7px;color:#aeb8bf;font-size:11px}.profile-form input{font-size:13px}.profile-form>.wide{height:44px}.password-field{position:relative;display:block;height:44px}.password-field input{height:44px;padding-right:48px}.password-visibility{right:1px;top:1px;width:42px;height:42px;border-left-color:#3b4852;background:#1a232b}.password-visibility:focus-visible{outline:1px solid var(--yellow);outline-offset:-2px}.security-form{padding-bottom:2px}
.novel-import-modal{border-color:#50606a;background:#121a20}.novel-import-modal .novel-title-field{display:grid;gap:7px;color:#aeb8bf;font-size:11px}.novel-file-name{min-height:68px;padding:12px 14px;border:1px dashed #53616b;background:#0e151a;display:flex;align-items:center;gap:12px;color:#aab5bb}.novel-file-name>svg{flex:0 0 30px;width:30px;height:30px;color:var(--yellow)}.novel-file-name>span{min-width:0;display:grid;gap:3px}.novel-file-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e9eef0;font-size:11px}.novel-file-name small{color:#75828a;font-size:9px}.novel-import-modal form>.primary{margin-top:2px;display:flex;align-items:center;justify-content:center;gap:8px}.novel-import-modal.importing .modal-close{pointer-events:none;opacity:.35}.novel-import-progress{display:grid;gap:8px;padding:12px 14px;border:1px solid #34424b;background:#0d1419}.novel-import-progress>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.novel-import-progress span{color:#c3cdd2;font-size:10px}.novel-import-progress strong{color:var(--yellow);font:900 11px var(--display)}.novel-import-progress progress{width:100%;height:8px;border:0;border-radius:0;background:#202b33;overflow:hidden}.novel-import-progress progress::-webkit-progress-bar{background:#202b33}.novel-import-progress progress::-webkit-progress-value{background:var(--yellow);transition:width .2s}.novel-import-progress progress::-moz-progress-bar{background:var(--yellow)}.novel-import-progress>small{color:#718089;font-size:8px}.novel-import-progress.error{border-color:#80434a;background:#26171a}.novel-import-progress.error strong,.novel-import-progress.error span{color:#ff9299}.novel-import-progress.error progress::-webkit-progress-value{background:#e45761}.novel-import-progress.error progress::-moz-progress-bar{background:#e45761}
.register-dialog>form{display:flex;flex-direction:column}.register-error{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:10px;margin:-8px 0 18px;padding:12px 14px;border:1px solid #a94f58;background:#2a171b;color:#ffb0b6;font-size:12px;font-weight:700;line-height:1.5}.register-error svg{width:19px;height:19px;color:#ff6f79}.register-error span{min-width:0;overflow-wrap:anywhere}
.svip-dialog{width:min(520px,calc(100vw - 28px));max-width:520px;border-color:#8d7830;background:linear-gradient(145deg,#171c20,#0d1215);box-shadow:0 30px 90px #000d,inset 0 0 46px #d8b8410d}.svip-dialog-mark{position:relative;width:54px;height:54px;margin-bottom:16px;border:1px solid #b99b36;background:#080b0d;color:#f1d45b;display:grid;place-items:center;box-shadow:0 0 22px #d8b84133}.svip-dialog-mark>svg{width:25px;fill:#f1d45b22}.svip-dialog-mark>span{position:absolute;right:-8px;top:-8px;width:25px;height:25px;border:1px solid #f1d45b;background:#171509;display:grid;place-items:center}.svip-dialog-mark>span svg{width:13px;fill:#f1d45b}.svip-dialog h2{margin-bottom:7px}.svip-mode-tabs{display:grid;grid-template-columns:1fr 1fr;margin:20px 0 14px;border:1px solid #3b4650}.svip-mode-tabs button{height:42px;border:0;background:#151d23;color:#8f9ba3;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:800}.svip-mode-tabs button+button{border-left:1px solid #3b4650}.svip-mode-tabs button.active{background:#2a2818;color:#f2d85a;box-shadow:inset 0 -3px #f2d85a}.svip-mode-tabs button:disabled{cursor:not-allowed;color:#536069;background:#11181d}.svip-mode-tabs svg{width:16px}.svip-mode-panel{min-height:154px;border:1px solid #303b43;background:#10171c;padding:16px}.svip-payment-panel{display:grid}.svip-mode-panel:not(form){display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;gap:17px}.svip-qr{position:relative;width:128px;height:128px;padding:8px;background:#e9e5d5}.svip-qr img{width:100%;height:100%;object-fit:contain}.svip-qr span{position:absolute;left:8px;right:8px;bottom:8px;padding:4px;background:#0c1115dc;color:#f4d83d;text-align:center;font-size:8px;font-weight:900}.svip-mode-panel>div:last-child b{font-size:13px}.svip-mode-panel>div:last-child p{margin:7px 0 0;color:#87949c;font-size:10px;line-height:1.65}.svip-mode-panel[hidden],.svip-mode-panel.hidden{display:none!important}#svipRedeemForm{align-content:center;gap:13px}#svipRedeemForm label{display:grid;gap:7px;color:#b3bdc2;font-size:11px}.svip-expiry{margin:12px 0 0;color:#7f8b93;font-size:9px;line-height:1.6}
.treasure-heading{align-items:flex-start}
.treasure-heading-actions{display:flex;align-items:center;gap:12px}
.treasure-heading .game-help{position:static;flex:0 0 40px;width:40px;height:40px}

/* Summon attribute relationship guide. */
.summon-heading{align-items:center}.summon-heading-tools{display:flex;align-items:flex-end;justify-content:flex-end;gap:16px;min-width:0}.attribute-guide{width:min(560px,45vw);min-width:430px;border:1px solid #34414a;background:linear-gradient(120deg,#121a20,#10161b);padding:8px 10px;box-shadow:inset 3px 0 #f4d83d1f}.attribute-guide-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.attribute-guide-head>span{display:flex;align-items:center;gap:6px;color:#edf2f4}.attribute-guide-head svg{width:14px;height:14px;color:var(--yellow)}.attribute-guide-head b{font:800 11px var(--display)}.attribute-guide-head strong{color:var(--yellow);font:800 9px var(--display)}.attribute-cycle{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap}.attribute-cycle>span{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:var(--attribute);box-shadow:none}.attribute-cycle>span svg{width:12px;height:12px}.attribute-cycle>span b{font:800 9px var(--display)}.attribute-cycle>svg{flex:0 0 12px;width:12px;height:12px;color:#66737c}.attribute-cycle>.attribute-loop{padding:0}.attribute-guide>small{margin-top:6px;display:flex;align-items:center;gap:5px;color:#829099;font-size:8px;white-space:nowrap}.attribute-guide>small svg{width:12px;height:12px;color:#72d7a5}
.treasure-heading-actions>div{display:flex;flex-direction:column;align-items:flex-end}
.treasure-heading-actions small,.treasure-panel small{color:#87949a;font-size:11px;text-transform:uppercase}
.treasure-heading-actions strong{font-size:22px;color:#eff8f2}
.treasure-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;min-width:0}
.treasure-map-shell{min-width:0;border:1px solid #2e4039;background:#0c1316;padding:14px;box-shadow:inset 0 0 0 1px #ffffff05}
.treasure-map-top{height:36px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#a9bbb2}
.treasure-map-top>span{display:flex;align-items:center;gap:7px;font-weight:700}
.treasure-map-top svg{width:17px}
#treasureBuffs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#treasureBuffs span{border:1px solid #3a5146;background:#16241e;color:#a9e3bd;padding:4px 7px;font-size:11px}
#treasureBuffs span.negative{border-color:#633d42;background:#29181c;color:#ff9b9f}
.treasure-board{display:grid;grid-template-columns:repeat(8,minmax(62px,1fr));gap:8px;min-width:590px;max-height:calc(100vh - 205px);overflow:auto;padding:4px 3px 10px;overscroll-behavior:contain;scrollbar-gutter:stable}
.treasure-cell{position:relative;aspect-ratio:1;border:1px solid #263b34;background:#15211d;color:#87978f;padding:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;overflow:hidden;transition:border-color .2s,background .2s,transform .2s}
.treasure-cell::after{content:"";position:absolute;right:-9px;top:50%;width:9px;height:1px;background:#3b5548}
.treasure-cell small{position:absolute;left:5px;top:3px;color:#5f7168;font-size:9px}
.treasure-cell svg{width:19px;height:19px}
.treasure-cell b{max-width:100%;font-size:10px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.treasure-cell.start{background:#173127;border-color:#4f9d73;color:#b9f4cf}
.treasure-cell.goal{background:#342b16;border-color:#d1a849;color:#ffe7a6}
.treasure-cell.event-ELITE{background:#28191c;border-color:#7d3b47;color:#ff9b9f}
.treasure-cell.event-PROP{background:#162a2a;border-color:#37716d;color:#8cddd3}
.treasure-cell.event-CHEST{background:#2a2517;border-color:#806f35;color:#f3d77a}
.treasure-cell.resolved{filter:saturate(.35);opacity:.48}
.treasure-cell.current{z-index:2;border-color:#fff4bd;background:#314237;color:#fff;transform:translateY(-3px);box-shadow:0 8px 18px #0008,0 0 0 2px #e6c95a55}
.treasure-runner{position:absolute;right:3px;bottom:3px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f4d657;color:#152019;box-shadow:0 2px 8px #0009}
.treasure-runner svg{width:13px;height:13px}
.treasure-panel{min-width:0;border-left:1px solid #2c3a35;padding-left:18px;display:flex;flex-direction:column;gap:14px}
.treasure-target{min-height:146px;display:grid;grid-template-columns:112px 1fr;align-items:center;border-bottom:1px solid #2a3934;padding-bottom:12px}
.treasure-target img{width:104px;height:104px;object-fit:contain;filter:drop-shadow(0 12px 13px #0009)}
.treasure-target.mystery img{filter:brightness(0) drop-shadow(0 0 11px #7cb99b66);opacity:.75}
.treasure-target h3{margin:4px 0;font-size:20px}
.treasure-target p{margin:0;color:#93a19b;font-size:12px;line-height:1.6}
.treasure-target .target-rarity{display:inline-flex;border:1px solid var(--target-rarity,#61716a);color:var(--target-rarity,#b8c3be);padding:3px 7px;font-weight:800;font-size:11px}
.treasure-target button{margin-top:9px;width:100%}.treasure-capture-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:7px}.treasure-capture-actions .secondary{padding-inline:10px}
.treasure-dice-console{display:grid;grid-template-columns:68px 1fr;align-items:center;gap:12px;background:#111c19;border:1px solid #2b4138;padding:10px}
.treasure-die{height:58px;position:relative;display:grid;place-items:center;border:1px solid #5b704f;background:#202a1e;color:#efdc7e}
.treasure-die svg{width:28px;height:28px}.treasure-die b{position:absolute;right:5px;bottom:2px;font-size:12px;color:#fff}
.treasure-die.rolling{animation:treasure-roll .55s ease}
.treasure-dice-console>div:last-child>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.treasure-dice-console button{min-width:0;padding-inline:8px;font-size:12px}
.treasure-team-head{display:flex;justify-content:space-between;align-items:end}
.treasure-team-head>div{display:flex;flex-direction:column}.treasure-team-head span{font-size:11px;color:#788781}
.treasure-team-selected{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;min-height:82px}
.treasure-selected-pet{min-width:0;border:1px solid var(--rarity,#405047);background:#101916;padding:5px;text-align:center;position:relative}
.treasure-selected-pet img{width:52px;height:52px;object-fit:contain}.treasure-selected-pet b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.treasure-team-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:212px;overflow:auto;overscroll-behavior:contain;padding-right:3px}
.treasure-pet-option{min-width:0;border:1px solid #2a3832;background:#101715;color:#dce7e1;padding:5px;position:relative}
.treasure-pet-option img{width:46px;height:46px;object-fit:contain}.treasure-pet-option b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.treasure-pet-option small{position:absolute;right:4px;top:3px;color:var(--rarity,#fff);font-weight:900}
.treasure-pet-option.selected{border-color:var(--rarity,#9fd5b6);background:#213027;box-shadow:inset 0 0 0 1px var(--rarity,#9fd5b6)}
.treasure-pet-option:disabled{opacity:.45}
.treasure-event-pop{position:fixed;left:50%;top:18%;z-index:180;transform:translate(-50%,-12px);width:min(390px,calc(100vw - 28px));display:grid;grid-template-columns:48px 1fr;gap:11px;align-items:center;border:1px solid #4c6157;background:#101a18f2;padding:13px;color:#f2f8f4;box-shadow:0 18px 45px #000b;animation:treasure-pop 3.2s both}
.treasure-event-pop.negative{border-color:#8b444a}.treasure-event-pop>i{width:48px;height:48px;display:grid;place-items:center;background:#263a31;color:#e8cf6c}.treasure-event-pop.negative>i{background:#3a2024;color:#ff9198}
.treasure-event-pop svg{width:24px}.treasure-event-pop b{display:block}.treasure-event-pop span{font-size:12px;color:#abb8b2}
.confirm-symbol.safe{background:#18352b;color:#8ee0b0}.safe-confirm{border:1px solid #4e9d73;background:#266849;color:#fff;padding:10px 16px;font-weight:800}.safe-confirm svg{transform:translateY(4px)}
.chat-title{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:clamp(10px,3vw,18px)}.chat-title>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-title #sharePetButton{margin-left:0}.chat-title .icon-command{width:42px;height:42px}
.profile-dialog{width:min(560px,calc(100vw - 28px));max-width:560px}.profile-overview{display:flex;align-items:center;gap:18px;padding:7px 0 20px;border-bottom:1px solid #303b44}.profile-overview>div{display:grid;gap:4px}.profile-overview small,.profile-form-heading small{color:#7f8b94;font:700 8px var(--display)}.profile-overview strong{font:800 17px var(--display)}.profile-avatar-editor{position:relative;width:86px;height:86px;flex:0 0 86px;border:2px solid var(--yellow);border-radius:50%;padding:3px;background:#1a232b;color:#10161b}.profile-avatar-editor img{width:100%;height:100%;border-radius:50%;object-fit:cover}.profile-avatar-editor>span{position:absolute;right:-2px;bottom:2px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);box-shadow:0 4px 12px #0008}.profile-avatar-editor svg{width:14px}.profile-form{display:grid;gap:11px;padding-top:20px}.profile-form+.profile-form{margin-top:20px;border-top:1px solid #303b44}.profile-form-heading{display:flex;align-items:center;gap:10px}.profile-form-heading>svg{width:34px;height:34px;padding:8px;background:#202a32;color:var(--yellow)}.profile-form-heading>span{display:grid;gap:2px}.profile-form-heading b{font:800 13px var(--display)}.password-field{position:relative;display:block}.password-field input{width:100%;padding-right:48px}.password-visibility{position:absolute;right:1px;top:1px;width:42px;height:40px;border:0;border-left:1px solid #34404a;background:#182028;color:#aeb9c0;display:grid;place-items:center}.password-visibility:hover{color:var(--yellow)}.password-visibility svg{width:17px}
.pet-recycle{width:100%;height:32px;margin-top:9px;border:1px solid #56636d;background:#202a32;color:#d9e1e5;display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;font-weight:800}.pet-recycle:hover{border-color:#87d6a9;color:#9ee7bd}.pet-recycle svg{width:13px;height:13px}.experience-fruit-item{background:linear-gradient(120deg,#14231d,#171e25);box-shadow:inset 3px 0 var(--quality),inset 0 0 28px #5bd79b0b}.experience-fruit-item .item-art{background:#0e1b16}.experience-fruit-item .item-art img{filter:drop-shadow(0 8px 10px #0008)}.experience-fruit-dialog{width:min(980px,calc(100vw - 28px));max-width:980px;max-height:90vh}.experience-fruit-heading{display:flex;align-items:center;gap:16px;padding:0 48px 18px 0;border-bottom:1px solid #334039}.experience-fruit-heading>img{width:72px;height:72px;object-fit:contain;background:#102018;padding:8px}.experience-fruit-heading h2{margin:1px 0 4px}.experience-fruit-heading span{color:#93a49b;font-size:12px}.experience-fruit-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:calc(90vh - 170px);overflow:auto;padding:18px 4px 4px 0;overscroll-behavior:contain}.experience-fruit-targets .pet-card{min-width:0}.experience-fruit-targets .pet-info>.primary{width:100%;margin-top:8px}
.ladder-item-dialog{box-sizing:border-box;width:min(980px,calc(100vw - 28px));max-width:980px;max-height:90vh;overflow:hidden;padding:28px;background:#121a20;border:1px solid #3a4650;color:#eef3f5;box-shadow:0 30px 90px #000d}.ladder-item-dialog[open]{display:flex;flex-direction:column}.ladder-item-dialog::backdrop{background:#05090dcf}.ladder-item-dialog>header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:0 48px 18px 0;border-bottom:1px solid #34414a}.ladder-item-dialog h2{margin:2px 0 5px;font-size:24px}.ladder-item-dialog header span{color:#91a0a8;font-size:11px}.ladder-item-dialog header>strong{border-left:3px solid var(--yellow);background:#1b242b;color:var(--yellow);padding:9px 12px;font:900 12px var(--display);white-space:nowrap}.ladder-item-options{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-height:calc(90vh - 190px);overflow-y:auto;overscroll-behavior:contain;padding:18px 4px 18px 0}.ladder-item-option{--item-color:#7594aa;position:relative;min-width:0;min-height:264px;border:1px solid #36434c;border-top:3px solid var(--item-color);background:#182128;color:#e8eef1;padding:12px 10px;display:flex;flex-direction:column;align-items:stretch;text-align:left;transition:transform .18s,border-color .18s,background .18s,box-shadow .18s}.ladder-item-option.quality-S{--item-color:#f05257}.ladder-item-option.quality-A{--item-color:#e0b94b}.ladder-item-option.quality-B{--item-color:#a26bea}.ladder-item-option.quality-C{--item-color:#4e9cda}.ladder-item-option:hover{transform:translateY(-2px);border-color:var(--item-color)}.ladder-item-option.selected{border-color:var(--item-color);background:#202b32;box-shadow:inset 0 0 0 2px var(--item-color),0 10px 24px #0007}.ladder-item-option.selected::after{content:'已携带';position:absolute;right:6px;top:6px;background:var(--item-color);color:#10161b;padding:3px 6px;font-size:8px;font-weight:900}.ladder-item-art{height:112px;display:grid;place-items:center;position:relative;background:#0f171c;border-bottom:1px solid #2d3941;margin-bottom:11px}.ladder-item-art img{width:86px;height:86px;object-fit:contain;filter:drop-shadow(0 9px 10px #0008)}.ladder-item-art b{position:absolute;left:5px;top:5px;color:var(--item-color);font:900 13px var(--display)}.ladder-item-option>strong{font-size:14px;color:#fff}.ladder-item-option>small{margin-top:6px;min-height:48px;color:#9ba8ae;font-size:10px;line-height:1.55}.ladder-item-option>em{margin-top:auto;color:var(--item-color);font-size:9px;font-style:normal;font-weight:800}.ladder-item-dialog>footer{flex:0 0 auto;border-top:1px solid #34414a;padding-top:14px;display:flex;align-items:center;justify-content:flex-end;gap:14px}.ladder-item-dialog>footer>span{color:#aeb9bf;font-size:11px}.ladder-item-dialog>footer .primary{min-width:220px;height:42px;display:flex;align-items:center;justify-content:center;gap:7px}.ladder-item-dialog>footer svg{width:16px}
@keyframes treasure-roll{25%{transform:rotate(12deg) scale(.9)}55%{transform:rotate(-14deg) scale(1.08)}100%{transform:none}}
@keyframes treasure-pop{0%{opacity:0;transform:translate(-50%,-20px)}12%,78%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-8px)}}
@media(max-width:980px){.treasure-layout{grid-template-columns:1fr}.treasure-map-shell{order:2}.treasure-panel{border-left:0;border-bottom:1px solid #2c3a35;padding:0 0 15px;display:grid;grid-template-columns:1fr 1fr}.treasure-target{grid-row:span 2}.treasure-team-head,.treasure-team-selected,.treasure-team-picker,#saveTreasureTeam{grid-column:1/-1}.treasure-board{max-height:440px}.treasure-team-picker{grid-template-columns:repeat(5,1fr)}}
@media(max-width:900px){.summon-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.summon-heading-tools{display:contents}.summon-heading .rate-note{grid-column:2;grid-row:1}.attribute-guide{grid-column:1/-1;grid-row:2;width:100%;min-width:0}.attribute-cycle{overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px;scrollbar-width:thin}.attribute-guide>small{white-space:normal}}
@media(max-width:640px){.treasure-heading{display:flex;align-items:flex-start}.treasure-heading .game-help{flex-basis:34px;width:34px;height:34px}.treasure-heading-actions>div{align-items:flex-start}.treasure-heading-actions strong{font-size:17px}.treasure-layout{gap:12px}.treasure-panel{display:flex}.treasure-target{min-height:125px;grid-template-columns:92px 1fr}.treasure-target img{width:86px;height:86px}.treasure-capture-actions{grid-template-columns:1fr}.treasure-capture-actions button{min-height:38px;margin-top:6px}.treasure-map-shell{padding:9px;margin-inline:-4px}.treasure-board{grid-template-columns:repeat(5,minmax(55px,1fr));min-width:315px;max-height:56vh;gap:6px}.treasure-cell{padding:3px}.treasure-cell b{font-size:9px}.treasure-team-picker{grid-template-columns:repeat(4,1fr);max-height:190px}.treasure-dice-console{grid-template-columns:60px 1fr}.treasure-dice-console>div:last-child>div{grid-template-columns:1fr}.treasure-event-pop{top:12%}.attribute-guide{padding:8px}.attribute-guide-head strong{font-size:8px}.attribute-cycle{gap:3px}.attribute-cycle>span{padding-inline:5px}.attribute-guide>small{font-size:7px}.chat-title{grid-template-columns:38px minmax(0,1fr) 38px;gap:10px}.chat-title .icon-command{width:38px;height:38px}.profile-dialog{width:calc(100vw - 18px);padding:23px 16px}.profile-avatar-editor{width:74px;height:74px;flex-basis:74px}.profile-form{padding-top:17px}.profile-form+.profile-form{margin-top:17px}.experience-fruit-dialog{width:calc(100vw - 18px);padding:22px 14px}.experience-fruit-heading>img{width:56px;height:56px}.experience-fruit-heading h2{font-size:21px}.experience-fruit-targets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:calc(90vh - 145px)}.experience-fruit-targets .pet-card{min-height:300px}.ladder-item-dialog{width:calc(100vw - 14px);max-height:94vh;padding:22px 12px 14px}.ladder-item-dialog>header{padding:0 42px 13px 0;display:block}.ladder-item-dialog h2{font-size:20px}.ladder-item-dialog header>strong{display:inline-block;margin-top:9px}.ladder-item-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:calc(94vh - 205px);padding:10px 3px 10px 0}.ladder-item-option{min-height:220px;padding:8px}.ladder-item-art{height:82px}.ladder-item-art img{width:66px;height:66px}.ladder-item-option>small{min-height:44px;font-size:9px}.ladder-item-dialog>footer{justify-content:space-between;gap:8px}.ladder-item-dialog>footer .primary{min-width:0;flex:1;height:40px;padding-inline:8px;font-size:11px}}
.ladder-battle-dialog.battle-locked .modal-close{display:none!important}
.profile-dialog .profile-overview{padding:13px 48px 18px 13px}.profile-dialog .password-field{height:44px}.profile-dialog .password-field input{height:44px}.profile-dialog .password-visibility{height:42px;border-left-color:#3b4852;background:#1a232b}
@media(max-width:640px){.profile-dialog{max-height:96dvh}.profile-dialog .profile-overview{gap:13px;padding:11px 40px 15px 10px}.profile-dialog .profile-overview strong{font-size:15px}.profile-form label{font-size:10px}.svip-dialog{width:calc(100vw - 18px);padding:24px 16px}.svip-mode-panel:not(form){grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px}.svip-qr{width:96px;height:96px}.svip-mode-tabs button{font-size:11px}.novel-import-modal{width:calc(100vw - 18px);padding:24px 16px}.quantity-stepper{grid-template-columns:42px minmax(0,1fr) 42px}.quantity-stepper>button{width:42px}}

/* 2026-08-14 arena, cards, shop, and treasure pass. */
.catalog-card .attribute-badge{left:5px;right:auto;top:4px}.catalog-card>b{right:5px;top:4px}
.up-pet{padding-top:34px}.up-pet>span{left:9px;top:9px}.up-pet>.attribute-badge{left:auto;right:9px;top:9px;max-width:calc(100% - 54px);overflow:hidden}.up-pet>.attribute-badge b{overflow:hidden;text-overflow:ellipsis}
.team-pet>.attribute-badge{left:5px;right:auto;top:5px;max-width:55px;overflow:hidden}.team-pet>.attribute-badge b{overflow:hidden;text-overflow:ellipsis}.team-pet>b{right:5px;top:5px}.team-pet .team-equipment-marks{right:5px;top:24px}
.team-pet>.team-speed{position:absolute;left:7px;right:auto;bottom:3px;display:block;padding:0;color:#89969e;font:700 7px/1 var(--display);white-space:nowrap}
.pet-card>.attribute-badge{right:11px;top:11px;max-width:88px;overflow:hidden}.pet-card>.pet-equipment-marks{right:11px;top:39px}.pet-card>.pet-level{right:12px;top:66px}

.shop-goods{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}.shop-goods article,.shop-goods article:nth-last-child(-n+2),.shop-goods article:last-child{grid-column:auto;min-height:168px;padding:15px;grid-template-columns:52px minmax(0,1fr);grid-template-rows:1fr 40px}.shop-goods article>button{height:40px}.shop-goods h3{font-size:16px}.shop-goods article>span{transform:scale(1.05)}
.fish-catalog{padding-top:8px;border-top:1px solid #303a43}.fish-entry{background:linear-gradient(150deg,#172630,#151d24)}.fish-entry img{filter:drop-shadow(0 9px 9px #0008)}

.battle-status{max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trainer-name{top:72px}.pet-hud{position:absolute;top:112px;width:min(270px,30%)}.battle-round{top:20px;max-width:42%}.battle-canvas{isolation:isolate}

.treasure-panel{padding:18px;border:1px solid #29465f;background:#10202d;box-shadow:inset 0 0 42px #183f5b35}.treasure-map-shell{background:#0d171b;border-color:#315366}.treasure-board{grid-template-columns:repeat(var(--treasure-columns,8),minmax(62px,1fr));grid-auto-rows:108px;height:354px;max-height:none;min-width:590px;overflow:hidden;align-content:start}.treasure-cell{height:108px;aspect-ratio:auto;background:#16251f;border-color:#315044}.treasure-cell.route-tone-0{background:#16261f;border-color:#345344}.treasure-cell.route-tone-1{background:#14252b;border-color:#2e5360}.treasure-cell.route-tone-2{background:#20261b;border-color:#4a5231}.treasure-cell.route-tone-3{background:#18212a;border-color:#374c5d}.treasure-cell.event-ELITE{background:#301b21;border-color:#94505b;color:#ffadb4}.treasure-cell.event-PROP{background:#152d31;border-color:#43817f;color:#92e7dc}.treasure-cell.event-CHEST{background:#312b18;border-color:#9a823d;color:#ffe086}.treasure-cell.start{background:#17382b;border-color:#63bd87;color:#c9f7da}.treasure-cell.goal{background:#3d3217;border-color:#e1ba55;color:#ffecad}.treasure-cell.visited:not(.current){box-shadow:inset 0 0 0 1px #7ccca133}.treasure-cell.current{transform:none;border-color:#fff1a8;background:#2f483b;box-shadow:inset 0 0 0 2px #f2d96b99,0 0 18px #e6ca5d55}.treasure-board.page-changing .treasure-cell{animation:treasure-page-in .42s cubic-bezier(.2,.75,.25,1) both}.treasure-board.page-changing .treasure-cell:nth-child(2n){animation-delay:.035s}
.treasure-runner{left:50%;right:auto;top:48%;bottom:auto;width:36px;height:43px;transform:translate(-50%,-50%);border-radius:0;background:transparent;color:#172019;box-shadow:none;filter:drop-shadow(0 5px 4px #0009)}.runner-face{position:absolute;z-index:2;left:7px;top:10px;width:22px;height:18px;border-radius:50%;display:grid;place-items:center;background:#ffd59a;color:#4c3020;font:900 8px sans-serif}.runner-hat{position:absolute;z-index:3;left:2px;top:3px;width:32px;height:7px;border-radius:50%;background:#e8bd4c;border:1px solid #6d5018}.runner-hat:before{content:'';position:absolute;left:8px;bottom:2px;width:16px;height:11px;border-radius:8px 8px 3px 3px;background:#f0ca5c;border:1px solid #6d5018}.runner-hat:after{content:'';position:absolute;left:5px;top:2px;width:22px;height:2px;background:#d95345}.runner-body{position:absolute;z-index:1;left:10px;top:25px;width:16px;height:15px;border-radius:6px 6px 3px 3px;background:#64a966;border:1px solid #244f31}.treasure-runner.walking{animation:treasure-runner-step .19s ease-in-out infinite alternate}
@keyframes treasure-page-in{from{opacity:0;transform:translateY(14px) scale(.96)}}@keyframes treasure-runner-step{to{transform:translate(-50%,-55%) rotate(3deg)}}

@media(max-width:1100px){.shop-goods{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-goods article,.shop-goods article:nth-last-child(-n+2),.shop-goods article:last-child{grid-column:auto}.treasure-panel{padding:14px}.pet-hud{width:min(250px,34%)}}
@media(max-width:640px){.catalog-card .attribute-badge{left:4px;right:auto}.up-pet{padding-top:27px}.up-pet>.attribute-badge{right:5px;top:5px;max-width:calc(100% - 42px)}.up-pet>span{left:5px;top:5px}.team-pet>.attribute-badge{max-width:48px}.pet-card>.attribute-badge{right:7px;top:7px;max-width:65px}.pet-card>.pet-equipment-marks{right:7px;top:34px}.pet-card>.pet-level{right:7px;top:61px}.shop-goods{grid-template-columns:1fr}.shop-goods article{min-height:148px}.fish-catalog .section-heading{align-items:flex-start;gap:8px}.fish-catalog .section-note{max-width:42%;text-align:right;font-size:9px}.trainer-name{top:68px}.pet-hud{top:102px;width:46%}.battle-round{top:12px;max-width:48%}.battle-status{left:8px;top:12px;max-width:25%;font-size:8px;padding-inline:7px}.treasure-panel{padding:12px;border-color:#29465f}.treasure-board{grid-template-columns:repeat(var(--treasure-columns,5),minmax(55px,1fr));grid-auto-rows:76px;height:254px;min-width:315px;max-height:none}.treasure-cell{height:76px}.treasure-runner{transform:translate(-50%,-50%) scale(.82)}.treasure-runner.walking{animation:treasure-runner-step-mobile .19s ease-in-out infinite alternate}@keyframes treasure-runner-step-mobile{to{transform:translate(-50%,-57%) scale(.82) rotate(3deg)}}}
@media(max-width:560px){.battle-canvas{height:calc(100dvh - 415px);min-height:250px}}
