.expedition-portal{position:fixed;inset:0;isolation:isolate;z-index:10020;overflow:clip;background:#729ec4;color:#fff4d8;--ui-scale:1;font-family:var(--pixel-ui-font);font-weight:800}.expedition-portal[hidden]{display:none}.portal-backdrop{position:absolute;inset:0;z-index:-2;overflow:hidden;background:url('assets/backgrounds/oathbanner-fresco.fa8aba1e96ff8124.webp') center/cover no-repeat;image-rendering:pixelated;filter:none!important;transition:transform .86s ease}.portal-backdrop>.title-motion{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:max(100vw,calc(100vh * 1.776))!important;height:auto!important;max-width:none!important;pointer-events:none;filter:none!important}.portal-backdrop>.title-motion[hidden]{display:none!important}.expedition-portal[data-view=hall] .portal-backdrop{background-image:url('assets/ui-kit-v1/mmo-stage.webp');background-position:center top}.expedition-portal[data-view=hall] .title-motion{display:none!important}.expedition-portal:after{content:'';position:absolute;left:0;right:0;bottom:0;height:12%;z-index:-1;pointer-events:none;background:linear-gradient(transparent,#2418101f)}.portal-navigation{position:absolute;right:calc(20px * var(--ui-scale));top:calc(18px * var(--ui-scale));display:flex;align-items:center;gap:calc(10px * var(--ui-scale));z-index:5;background:none;border:0}.portal-navigation .pixel-icon{width:calc(47px * var(--ui-scale));height:calc(47px * var(--ui-scale));min-height:0}.portal-language small{position:absolute;right:-3px;bottom:-2px;font-weight:900;color:#fff4d8;font-size:12px;padding:1px 3px;background:#17243d;border:1px solid #cba65c;text-shadow:1px 1px #120b06}.portal-account-pill{height:calc(45px * var(--ui-scale));min-height:0;width:calc(225px * var(--ui-scale));padding:0 calc(18px * var(--ui-scale));background-image:url('assets/ui-kit-v1/capsule-gold.webp');color:#261306!important;text-shadow:0 1px #ffedb8;font-size:max(13px,calc(15px * var(--ui-scale)));overflow:hidden}.portal-account-pill img{width:25px;height:25px;flex:none}.portal-account-pill span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-notice{position:absolute;left:calc(38px * var(--ui-scale));bottom:calc(20px * var(--ui-scale));max-width:60vw;margin:0;color:#fff4d8;font-size:13px;text-shadow:1px 2px #120b06;pointer-events:none}.portal-content{position:absolute;inset:0;pointer-events:none}.portal-content button,.portal-content aside{pointer-events:auto}.portal-logo{position:absolute;left:calc(18px * var(--ui-scale));top:calc(100px * var(--ui-scale));width:calc(626px * var(--ui-scale));height:auto;image-rendering:pixelated}.portal-home-actions{position:absolute;left:calc(108px * var(--ui-scale));top:calc(535px * var(--ui-scale));width:calc(444px * var(--ui-scale));display:flex;align-items:center;flex-direction:column;gap:calc(23px * var(--ui-scale));pointer-events:auto}.portal-home-actions>.portal-primary{width:100%;height:calc(132px * var(--ui-scale));min-height:0;font-size:max(22px,calc(30px * var(--ui-scale)))}.portal-home-actions .portal-guest{width:calc(220px * var(--ui-scale));height:calc(60px * var(--ui-scale));font-size:max(15px,calc(20px * var(--ui-scale)))}.portal-offline-link{background:none;min-height:28px;font-size:15px;padding:0 10px;color:#fff4d8}.portal-secondary-actions{display:flex;gap:calc(8px * var(--ui-scale));width:100%}.portal-secondary-actions button{width:0;flex:1;min-width:0;padding:8px 13px;height:calc(58px * var(--ui-scale));font-size:max(12px,calc(16px * var(--ui-scale)))}
.portal-character-canvas{position:absolute;width:calc(600px * var(--ui-scale));height:calc(520px * var(--ui-scale));left:calc(var(--stage-foot-x) - 300px * var(--ui-scale));top:calc(var(--stage-foot-y) - 420px * var(--ui-scale));image-rendering:pixelated;pointer-events:none}.portal-character-copy{position:absolute;top:var(--stage-info-y);left:calc(var(--stage-foot-x) - 205px * var(--ui-scale));width:calc(410px * var(--ui-scale));min-height:calc(80px * var(--ui-scale));padding:calc(4px * var(--ui-scale)) calc(18px * var(--ui-scale));border:calc(8px * var(--ui-scale)) solid transparent;border-image:url('assets/ui-kit-v1/card-normal.webp') 50 fill /calc(8px * var(--ui-scale));display:flex;flex-direction:column;align-items:center;gap:calc(2px * var(--ui-scale));text-align:center;box-sizing:border-box}.portal-character-copy h1{font-size:calc(27px * var(--ui-scale));line-height:1;margin:0;color:#fff4d8;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.portal-character-profession{font-size:calc(17px * var(--ui-scale));line-height:1.1;white-space:nowrap}.portal-character-summary{font-size:calc(13px * var(--ui-scale));line-height:1.1;color:#ffe3a2;white-space:nowrap}.portal-enter{position:absolute;bottom:calc(12px * var(--ui-scale));left:calc(var(--stage-foot-x) - 188px * var(--ui-scale));width:calc(376px * var(--ui-scale));height:calc(94px * var(--ui-scale));min-height:0;font-size:calc(28px * var(--ui-scale))}.portal-return{position:absolute;left:calc(24px * var(--ui-scale));bottom:calc(24px * var(--ui-scale));width:calc(124px * var(--ui-scale));height:calc(61px * var(--ui-scale));min-width:0;min-height:0;font-size:calc(18px * var(--ui-scale));padding:6px 16px}
.portal-roster-list{position:absolute;right:calc(23px * var(--ui-scale));top:calc(83px * var(--ui-scale));width:calc(290px * var(--ui-scale));height:calc(788px * var(--ui-scale));background:url('assets/ui-kit-v1/roster-frame.webp') center/100% 100% no-repeat;border:0}.portal-roster-count{position:absolute;top:calc(100px * var(--ui-scale));left:0;right:0;text-align:center;color:#ffe4a2;font-size:calc(20px * var(--ui-scale))}.portal-character-cards{position:absolute;top:calc(140px * var(--ui-scale));left:calc(22px * var(--ui-scale));right:calc(22px * var(--ui-scale));height:calc(484px * var(--ui-scale));display:flex;flex-direction:column;gap:calc(14px * var(--ui-scale));overflow:auto;scrollbar-width:thin;scrollbar-color:#cba760 #17243d}.portal-character-card,.portal-character-empty{flex:none;min-height:calc(68px * var(--ui-scale));height:calc(68px * var(--ui-scale));min-width:0;width:100%;border:calc(11px * var(--ui-scale)) solid transparent;border-image:url('assets/ui-kit-v1/card-normal.webp') 50 fill /calc(11px * var(--ui-scale));padding:0 calc(4px * var(--ui-scale));background:none;display:flex;align-items:center;gap:calc(12px * var(--ui-scale));text-align:left}.portal-character-card.selected{border-image-source:url('assets/ui-kit-v1/card-selected.webp')}.portal-character-empty{border-image-source:url('assets/ui-kit-v1/card-empty.webp')}.portal-character-card img{width:calc(42px * var(--ui-scale));height:calc(42px * var(--ui-scale));object-fit:contain;flex:none;image-rendering:pixelated}.portal-character-card>span{min-width:0;flex:1}.portal-character-card strong{display:block;font-size:max(13px,calc(17px * var(--ui-scale)));line-height:1.1;white-space:normal;overflow-wrap:anywhere;font-weight:900}.portal-character-card small{display:block;font-size:max(11px,calc(14px * var(--ui-scale)));line-height:1.2;color:#fff0cc;margin-top:3px}.portal-create-button{position:absolute;top:calc(671px * var(--ui-scale));left:calc(23px * var(--ui-scale));width:calc(199px * var(--ui-scale));height:calc(63px * var(--ui-scale));font-size:max(12px,calc(18px * var(--ui-scale)));min-height:0;min-width:0;padding:8px 16px}.portal-roster-list>.pixel-icon{position:absolute;top:calc(682px * var(--ui-scale));left:calc(226px * var(--ui-scale));width:calc(40px * var(--ui-scale));height:calc(40px * var(--ui-scale));min-height:0}.portal-roster-coins{display:flex;align-items:center;gap:15px;border:7px solid transparent;border-image:url('assets/ui-kit-v1/button-iron.webp') 30 fill /7px;padding:2px 9px;height:calc(49px * var(--ui-scale));min-width:calc(290px * var(--ui-scale));font-size:12px}.portal-roster-coins>span{display:flex;align-items:center;gap:6px;white-space:nowrap}.portal-roster-coins img{width:20px;height:20px}.portal-roster-coins small{font-size:11px}.portal-roster-coins b{font-size:13px;font-variant-numeric:tabular-nums}
.portal-dialog{width:min(800px,94vw);overflow:auto}.portal-dialog form{display:flex;flex-direction:column;gap:10px}.portal-dialog form>button{align-self:center;min-width:220px}.portal-dialog label{font-size:13px}.portal-create-dialog{width:min(790px,94vw)}.portal-profession-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:10px 0 18px}.portal-profession-choices button{background:none;min-width:0;min-height:122px;display:flex;flex-direction:column;gap:10px;padding:14px 7px;border:10px solid transparent;border-image:url('assets/ui-kit-v1/card-normal.webp') 50 fill /10px}.portal-profession-choices button.selected{border-image-source:url('assets/ui-kit-v1/card-selected.webp')}.portal-profession-choices img{height:55px;width:55px;object-fit:contain}.portal-profession-choices strong{font-size:14px}.portal-mail-button{position:relative}.mail-unread-badge{position:absolute;right:0;top:0;background:#b33828;color:#fff4d8;border:2px solid #f2ba62;min-width:12px;height:12px;font-size:0;pointer-events:none}.mail-unread-badge[hidden]{display:none!important}.in-portal #accountDock,.in-portal>header,.in-portal #titleScreen,.in-portal #menu,.in-portal #bingbingGuide,.in-portal #characterCreator,.in-portal #characterHall{visibility:hidden!important}.in-portal #expeditionPortal{visibility:visible}.account-roster-enabled .profession-grid,.account-roster-enabled #editCharacterName,.account-roster-enabled #accountEntry{display:none!important}.in-portal .control-settings{z-index:20000}
.login-sequence .portal-logo:after{content:none}.login-sequence .portal-home:after{content:'';position:absolute;left:0;top:calc(245px * var(--ui-scale));width:calc(625px * var(--ui-scale));height:3px;pointer-events:none;background:linear-gradient(90deg,transparent,#ffedb7,transparent);animation:portal-sweep .86s both}.login-sequence .portal-stagger{animation:portal-arrive .55s .24s both}.login-sequence .portal-secondary-actions .portal-stagger{animation-duration:.3s}.login-sequence .portal-secondary-actions button:nth-child(1){animation-delay:.34s}.login-sequence .portal-secondary-actions button:nth-child(2){animation-delay:.44s}.login-sequence .portal-secondary-actions button:nth-child(3){animation-delay:.54s}.account-leaving{animation:portal-leave .15s both}@keyframes portal-sweep{0%{translate:-100% 5px;opacity:0}20%{opacity:.9}100%{translate:110% -5px;opacity:0}}@keyframes portal-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes portal-leave{to{opacity:0;transform:translateY(-8px) scale(.98)}}
@media(prefers-reduced-motion:reduce){.expedition-portal *,.account-leaving{animation:none!important;transition:none!important}.login-sequence .portal-home:after{display:none}}
.character-mail-window{width:min(1120px,95vw);overflow:hidden;display:none;flex-direction:column;gap:10px}.character-mail-window[open]{display:flex}.character-mail-window>header{font-weight:900}.mail-tabs{display:flex;gap:10px;flex:none}.mail-tabs button{min-width:135px}.mail-tabs button.selected{background-image:url('assets/ui-kit-v1/button-gold.webp');color:#261306;text-shadow:0 1px #ffedb8}.mail-inbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;flex:none}.mail-inbox-toolbar button{min-width:190px}.mail-layout{display:grid;grid-template-columns:258px minmax(0,1fr);gap:18px;min-height:350px;overflow:auto}.mail-list{display:flex;flex-direction:column;gap:9px;overflow:auto;max-height:440px;padding-right:5px;scrollbar-width:thin}.mail-list button{border:9px solid transparent;border-image:url('assets/ui-kit-v1/card-normal.webp') 50 fill /9px;background:none;display:flex;align-items:flex-start;flex-direction:column;gap:5px;padding:9px;min-width:0;min-height:88px;flex:none;text-align:left;white-space:normal}.mail-list button.selected{border-image-source:url('assets/ui-kit-v1/card-selected.webp')}.mail-list strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}.mail-list small,.mail-list span{font-size:11px}.mail-detail{min-height:350px;border:25px solid transparent;border-image:url('assets/ui-kit-v1/letter-paper.webp') 140 fill /45px;background:none;padding:14px 18px 28px;color:#3c291b;overflow:auto;max-height:500px}.mail-detail h2{color:#3c291b;font-size:24px;text-shadow:0 1px #fff1c3;margin:14px 0 20px}.mail-detail small,.mail-detail .portal-eyebrow{color:#67452c;font-size:12px}.mail-letter-body{min-height:65px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:700!important}.mail-attachments{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.mail-attachments span{background:#f9e1af;border:1px solid #9e6e36;padding:6px 9px;font-size:12px;color:#392616}.mail-detail button{min-width:230px;min-height:64px;max-width:100%;margin:15px auto 0;display:flex;color:#261306!important;text-shadow:0 1px #ffedb8}.mail-compose{display:flex;flex-direction:column;gap:8px;overflow:auto;max-height:620px;padding:0 10px}.mail-compose label{font-size:13px}.mail-compose textarea{min-height:65px;resize:vertical}.mail-transfer-rule{font-size:12px;line-height:1.6;color:#ffe3a6;margin:0 0 4px}.mail-compose-attachments{display:flex;flex-wrap:wrap;gap:10px;max-height:140px;overflow:auto}.mail-compose-attachments label{display:flex;align-items:center;gap:10px;border:6px solid transparent;border-image:url('assets/ui-kit-v1/card-normal.webp') 50 fill /6px;padding:5px 9px}.mail-compose-attachments input:not([type=checkbox]){width:80px}.mail-compose>button{min-width:250px;min-height:66px;align-self:center}.character-mail-window .portal-form-error{margin:0;flex:none}
@media(max-height:760px){.mail-layout{grid-template-columns:225px minmax(0,1fr);min-height:280px;max-height:400px}.mail-list{max-height:360px}.mail-detail{min-height:280px;max-height:380px;padding:10px 13px 20px}.mail-detail h2{font-size:20px;margin:10px 0 14px}.mail-detail button{min-height:55px}.mail-compose{max-height:455px;gap:5px}.mail-compose h3{margin:6px 0}.mail-compose-attachments{max-height:95px}.mail-tabs button{min-height:40px}.mail-inbox-toolbar button{min-height:40px}.mail-letter-body{min-height:45px}.mail-compose>button{min-height:56px}}

/* Additive collection honors: existing portraits and roster geometry are retained. */
.portal-character-copy h1:has(.portal-character-honor){display:flex;align-items:center;justify-content:center;gap:7px}.portal-character-honor{width:20px!important;height:20px!important;min-width:20px!important}.portal-character-card{position:relative}.portal-character-card>.portal-character-avatar-frame{position:absolute;flex:none;left:calc(0px * var(--ui-scale));top:50%;transform:translateY(-50%);width:calc(50px * var(--ui-scale));height:calc(50px * var(--ui-scale));min-width:0;max-width:none;margin:0;padding:0}.portal-character-card>.portal-character-avatar-frame[hidden]{display:none!important}

/* Uniformly scale the clip around its platform anchor; the player/UI do not move. */
.portal-backdrop>.portal-stage-video{position:absolute;left:0;top:0;right:auto;bottom:auto;display:block;max-width:none;max-height:none;object-fit:fill;transform:none;border:0;pointer-events:none;filter:none}
.portal-backdrop>.portal-stage-video[hidden]{display:none}
