/* Original leaf artwork and proportions; compact content determines card height. */
.original-glass::before{display:none!important}.glass-outline{border-image-repeat:stretch}.glass-surface{background:rgba(8,43,31,.68)}
.original-check{position:absolute;width:24px;height:24px;right:2px;top:2px;z-index:7;pointer-events:none}.role-card.selected::after{display:none}
.character-layout{grid-template-columns:minmax(250px,.82fr) minmax(350px,1.18fr);align-items:start;gap:18px;max-width:900px;margin:0 auto}
#role-cards{align-self:start;align-items:start;grid-auto-rows:auto;gap:11px}
.role-card,.role-card.selected{height:166px;min-height:0;max-height:none;padding:19px 10px 14px;gap:3px;justify-content:flex-start;align-self:start}
.role-card .card-portrait{width:66px;height:66px;margin:0 auto 4px;padding:4px;border:0;background:#0a342988;box-shadow:none;overflow:visible;isolation:isolate}
.role-card .card-portrait::after{content:'';position:absolute;inset:0;background:url('classic-assets/frame-v4-circle.9246978e0b90-lossless.webp') center/100% 100% no-repeat;z-index:2;pointer-events:none}.role-card .card-portrait img{border-radius:50%;width:100%;height:100%;object-fit:contain}
.role-card .role-name{font-size:12px;line-height:1.4;margin:2px 0}.role-card .role-job{font-size:9px;padding:1px 10px;line-height:1.3}.role-card .role-level{font-size:11px;margin-top:3px}
.profile{grid-template-columns:minmax(135px,.9fr) minmax(0,1.1fr);grid-template-rows:auto 1fr;padding:23px 22px 20px;gap:15px 12px;min-height:0;align-content:start;overflow:visible}
.profile-heading{grid-column:1/-1;grid-template-columns:44px minmax(0,1fr);padding-bottom:10px;gap:10px}.profile-avatar{width:42px;height:42px;box-shadow:none}.profile h2{font-size:20px;line-height:1.4}.profile p{font-size:10px;margin-top:2px}
.profile-model-stage{grid-column:1;grid-row:2;align-self:center;gap:5px;width:100%;height:auto;overflow:visible}.model-circle{width:140px;max-width:100%;border:0;box-shadow:none;background:radial-gradient(circle,#64865d66,#0b342766)}.model-circle::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:url('classic-assets/frame-v4-circle.9246978e0b90-lossless.webp') center/100% 100% no-repeat;border-radius:50%}
.model-circle #profile-model{inset:auto;left:50%;top:50%;max-width:none;max-height:none;object-fit:fill;filter:none;transform-origin:center}
.model-profession{font-size:10px;line-height:1.3;letter-spacing:1px}.model-gender{gap:3px}.model-gender button{font-size:9px;padding:3px 7px}
.profile .stats{grid-column:2;grid-row:2;padding:0 9px;margin:0;align-self:center;border-color:#b2c4a544;background:#072d2152}.profile .stats>div{display:block;padding:8px 0}.profile .stats dt{font-size:10px;line-height:1.4}.profile .stats dd{font-size:14px;margin-top:3px;line-height:1.4}
/* A single submenu belongs to the upper Adventurer Center tile, like the old portal. */
.hero-nav{overflow:visible;z-index:18}.adventure-menu{position:relative;display:flex;min-width:0;height:100%;z-index:25}.adventure-menu>.adventure-trigger{width:100%;height:100%;margin:0;flex:1}
.adventure-menu .adventure-nav{position:absolute;right:0;bottom:calc(100% + 4px);top:auto;left:auto;display:grid;grid-template-columns:1fr;gap:0;width:172px;max-width:calc(100vw - 30px);margin:0;padding:12px 9px;border:0;border-radius:10px;background:rgba(12,47,35,.75);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 25px #071f1b66;z-index:30}
.adventure-menu .adventure-nav::after{content:'';position:absolute;left:0;right:0;bottom:-6px;height:7px;background:transparent}
.adventure-menu .adventure-nav a{position:relative;display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:30px;height:auto;padding:6px 13px;margin:0;border:0;border-radius:4px;background:transparent;backdrop-filter:none;box-shadow:none;transform:none;font-size:12px;line-height:1.5;font-weight:500;color:#f1e6c9;gap:7px;z-index:1}
.adventure-menu .adventure-nav a::before{content:'·';color:#dac986;font-size:16px;line-height:1}.adventure-menu .adventure-nav a::after{display:none}.adventure-menu .adventure-nav a:hover,.adventure-menu .adventure-nav a:focus-visible,.adventure-menu .adventure-nav a.selected{background:#c7b9642b;color:#fff2c7;transform:none;outline:none;text-shadow:none}
.adventure-menu .adventure-trigger:focus-visible{outline:2px solid #d6bd77;outline-offset:3px}
/* Legible glass controls across the page, with preserved original action artwork. */
.wide-content #viewport,.news-section,.home-discover,.home-ranking{background:rgba(245,243,224,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 1px #fff9,0 10px 28px #082d2533}
.mall-recipient-bar strong,.recipient-chevron{color:#f1e8cf!important}.mall-recipient-bar .character-portrait{background:transparent}
.mall-view-tabs button,.mall-controls button,.news-tabs button,.tabs button,.pill{background:linear-gradient(#2b5648d9,#153c31dc);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid #9cba9b80;color:#f1e6c8;box-shadow:inset 0 1px #ffffff15,0 2px 5px #15372715;transition:background .16s,border-color .16s}
.mall-view-tabs button.selected,.mall-controls button.selected,.news-tabs button.selected,.tabs button.selected,.pill.selected{background:linear-gradient(#8c874955,#4c683b88);border-color:#bba66c;color:#fff0bc}.mall-view-tabs button:hover,.mall-controls button:hover,.news-tabs button:hover,.tabs button:hover,.pill:hover{background:#3d6a4fdc;border-color:#b7c99c}
.mall-add-button{background:linear-gradient(#527446b8,#2d563dc9);color:#fff0cf;border-color:#b4bb89;box-shadow:inset 0 1px #fff2}.mall-add-button i{background:#244b34;color:#f8edcb;border-color:#b6bb86}.mall-add-button:hover{background:#537044;color:#fff5d7}
.auth-tabs button,.model-gender button{box-shadow:inset 0 1px #ffffff12;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
@media(max-width:1100px){.character-layout{grid-template-columns:1fr;max-width:620px}.profile{grid-template-columns:minmax(135px,.9fr) minmax(0,1.1fr)}#role-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.role-card,.role-card.selected{height:164px;padding:18px 6px 12px}.role-card .role-name{font-size:11px}}
@media(max-width:850px){#role-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.adventure-menu .adventure-nav{width:160px}.adventure-menu .adventure-nav a{font-size:11px;padding:6px 12px}}
@media(max-width:600px){.character-layout{gap:14px}.profile{grid-template-columns:minmax(115px,.9fr) minmax(0,1.1fr);padding:22px 17px 20px;gap:12px 9px}.profile h2{font-size:18px}.model-circle{width:128px}.profile .stats{padding:0 7px}.profile .stats dd{font-size:12px}.profile .stats dt{font-size:9px}.role-card,.role-card.selected{height:160px}.role-card .card-portrait{width:63px;height:63px}.adventure-menu .adventure-nav{bottom:calc(100% + 4px);width:155px;padding:9px 7px}.adventure-menu .adventure-nav a{min-height:28px;font-size:11px;line-height:1.5;padding:5px 10px;justify-content:flex-start}.adventure-menu>.adventure-trigger{justify-content:center}}
.original-glass:is(.panel,.mall-item,.cart-items,.cart-summary,.fortune-details>section,.pity-panel){color:#f2e6c8}
.original-glass:is(.panel,.mall-item,.cart-items,.cart-summary,.fortune-details>section,.pity-panel) :is(h2,h3,dt,dd,label,.mall-category,.product-caption,.prize-row,.ordinary-item-name,.pity-panel-heading,.pity-panel-bottom,.pity-reset-reason){color:#e2dfbf}
.original-glass:is(.panel,.mall-item,.cart-items,.cart-summary,.fortune-details>section,.pity-panel)>p{color:#c3d3b7}
.original-glass .v-price{color:#f0d79d}.original-glass .cart-line h2{color:#f5e7bb}.original-glass .cart-line-body>small{color:#c4d0b5}.original-glass .cart-delivery-note{color:#bccaad}.original-glass .download-symbol{color:#e1ce8a}
.adventure-menu .adventure-nav{background:none;box-shadow:none}.adventure-menu .adventure-nav>.glass-outline{z-index:0}.adventure-menu .adventure-nav>.glass-surface{z-index:-1}
/* Old animation bitmaps render at native size. Shorten the header to the
   visible art instead of enlarging its 1012 x 303 canvas to fill extra height. */
.masthead{height:305px}.hero-art{bottom:52px}.original-motion{width:1012px!important;min-width:0!important;height:303px!important;max-width:none!important;left:auto!important;right:0!important;top:0!important;bottom:auto!important;aspect-ratio:1012/303;transform:none!important}
.hero-archer{width:310px;right:230px;top:-20px}.hero-mage{width:335px;right:0;top:-29px}.hero-fairy{height:100px;right:470px;top:74px}.hero-user-model{height:137px;width:94px;bottom:-4px}.hero-user-model-1{height:130px;width:90px;bottom:0}.hero-user-model-2{height:120px;width:95px;bottom:3px}.hero-brand{width:275px;top:22px}.hero-scene-controls{bottom:73px}
@media(max-width:1100px){.masthead{height:305px}.hero-brand{width:245px}.hero-archer{width:300px;right:220px}.hero-mage{width:320px}.hero-fairy{right:450px}}
@media(max-width:850px){.masthead{height:292px}.hero-art{bottom:66px}.original-motion{width:904px!important;height:270.664px!important}.hero-archer{width:280px;right:180px}.hero-mage{width:300px;right:-20px}.hero-brand{width:210px;top:20px}.hero-fairy{display:none}.hero-scene-controls{bottom:94px}}
@media(max-width:600px){.masthead{height:299px}.hero-art{bottom:89px}.original-motion{width:840px!important;height:251.502px!important}.hero-brand{width:158px;left:10px;top:12px}.hero-archer{width:202px;right:98px;top:20px}.hero-mage{width:230px;right:-25px;top:0}.hero-user-model{height:95px;width:63px;bottom:0}.hero-user-model-1{height:92px;width:61px}.hero-user-model-2{height:88px;width:61px}.hero-scene-controls{bottom:101px}}
/* 2026-11-16：選單同按鈕之間有 4px 空隙，原本 .adventure-nav::after 嘅橋被 overflow:hidden 剪走，滑鼠經過空隙就收埋。改喺外層補一條隱形橋。 */.adventure-menu.is-open::before{content:"";position:absolute;right:0;bottom:100%;width:max(100%,240px);max-width:calc(100vw - 20px);height:14px;background:transparent;z-index:24}
