.expedition {
  --hud-zoom: 1;
  --hud-panel: linear-gradient(180deg, rgba(250,251,255,.94), rgba(232,236,246,.92));
  --hud-title: linear-gradient(180deg,#97b1e6 0%,#7d9ad6 45%,#5f7fc0 55%,#3a559a 100%);
  --hud-border: #6b7ba8;
  --hud-shadow: 0 2px 8px #0006, inset 0 1px #fff;
  font: 600 12px/normal "RO Nunito","Segoe UI",Tahoma,Verdana,"Microsoft JhengHei","PingFang TC","Noto Sans TC",sans-serif;
}
@media (min-width:1280px) and (min-height:760px) and (pointer:fine) { .expedition { --hud-zoom:1.15; } }
@media (min-width:1600px) and (min-height:880px) and (pointer:fine) { .expedition { --hud-zoom:1.35; } }
@media (min-width:2200px) and (min-height:1200px) and (pointer:fine) { .expedition { --hud-zoom:1.55; } }
@media (min-width:2800px) and (min-height:1500px) and (pointer:fine) { .expedition { --hud-zoom:1.85; } }
.expedition :is(.rb-hud,.rb-stage,.ex-map,.ex-skillbar,.ex-itembar,.ex-boss,.ex-loot-feed,.rd-panel) { zoom:var(--hud-zoom); }
.expedition .ex-buffs { position:absolute; left:12px; top:92px; display:flex; gap:4px; pointer-events:auto; zoom:var(--hud-zoom); }
.expedition .buff { position:relative; width:30px; height:30px; overflow:hidden; border-radius:8px; display:flex; align-items:center; justify-content:center; background:linear-gradient(#f7f8fc,#e3e7f2); border:1px solid #8b96b8; box-shadow:inset 0 0 0 2px var(--c),0 0 6px var(--c),0 1px 2px #0003; }
.expedition .buff img { width:22px; height:22px; image-rendering:pixelated; }
.expedition .buff .cd { position:absolute; inset:0; pointer-events:none; background:conic-gradient(rgba(10,14,30,.55) calc(var(--p,0) * 360deg),transparent 0); }
.expedition .buff :is(.bs,.bt) { position:absolute; color:white; font-size:10px; font-weight:900; text-shadow:0 1px 1px #000,0 0 2px #000,0 0 3px #000c; }
.expedition .buff .bs { left:1px; top:-1px; }
.expedition .buff .bt { right:2px; bottom:0; }
.expedition .buff.ending { animation:buff-end .4s ease-in-out infinite alternate; }
@keyframes buff-end { to { opacity:.35; } }
@media(max-width:720px),(max-height:500px) { .expedition .ex-buffs { top:74px; left:8px; } }
@media(max-width:440px) { .expedition .ex-buffs { top:78px; left:8px; flex-wrap:wrap; max-width:calc(100vw - 140px); } }
.expedition .rb-hud {
  left:12px; top:12px; width:310px; min-height:0; padding:0; display:flex; align-items:center; gap:0;
  border:0; border-radius:0; background:none; box-shadow:none;
}
.expedition .ex-portrait {
  position:relative; inset:auto; transform:none; flex:none; width:72px; height:72px;
  border:2px solid #6f8fd8; border-radius:50%; background:radial-gradient(circle at 50% 35%,#fff,#dfe7f8 55%,#b3c6ec);
  box-shadow:0 0 0 2px white,0 3px 8px #0006,inset 0 -6px 12px #3a559a40;
}
.expedition .ex-face { display:block; width:100%; height:100%; border:0; outline:0; background:none; box-shadow:none; }
.expedition .ex-portrait .rb-lv { bottom:-7px; padding:1px 8px; font-family:inherit; font-weight:800; font-size:10px; line-height:normal; border:1px solid #2f4a8a; }
.expedition .ex-vitals {
  width:auto; min-width:0; flex:1; margin-left:-36px; padding:0 10px 7px 46px; overflow:hidden;
  background:var(--hud-panel); border:1px solid var(--hud-border); border-left:0; border-radius:0 12px 12px 0; box-shadow:var(--hud-shadow);
}
.expedition .ex-vitals .rb-who {
  display:block; height:auto; margin:0 -10px 0 -46px; padding:3px 10px 3px 46px; border-radius:0; border-bottom:1px solid #2f4a8a;
  background:var(--hud-title); font-size:12px; font-weight:800; line-height:normal; color:#fff; text-shadow:1px 1px 0 #1d2d57;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.expedition .rb-who strong { font-size:inherit; font-weight:inherit; }
.expedition .ex-job { font-size:11px; font-weight:700; color:#e3ecff; }
.expedition .ex-meter:not(.ex-meter-xp) { height:16px; margin-top:6px; border:1px solid #2a2e38; border-radius:8px; }
.expedition .ex-meter span { position:absolute; inset:0; display:grid; place-items:center; font:800 10px/1 "Segoe UI",sans-serif; }
.expedition .ex-xp-row { gap:5px; margin-top:4px; font-family:inherit; font-size:10px; font-weight:900; line-height:normal; }
.expedition .ex-xp-value { min-width:36px; font-variant-numeric:tabular-nums; }
.expedition .ex-meter-xp { margin:0; height:7px; }
.expedition .rb-stage { left:50%; right:auto; top:10px; width:auto; transform:translateX(-50%); gap:5px; align-items:center; }
.expedition .rb-stage time { min-width:0; padding:1px 20px; font-family:inherit; font-size:24px; font-weight:900; line-height:1.15; }
.expedition .rb-stage :is(time,.ex-chip),.expedition .ex-skillbar { background:var(--hud-panel); border:1px solid var(--hud-border); box-shadow:var(--hud-shadow); }
.expedition .ex-chip-row { position:static; width:auto; max-width:none; transform:none; flex-flow:row nowrap; gap:5px; }
.expedition .ex-filter { display:contents; }
.expedition .rb-stage .ex-chip { padding:2px 10px; font:800 12px/normal "Segoe UI","Microsoft JhengHei",sans-serif; }
.expedition .ex-wallet img { width:14px; height:14px; }
.expedition .ex-map { left:auto; right:12px; top:12px; width:160px; border:1px solid var(--hud-border); border-radius:10px; }
.expedition .ex-map-heading { padding:4px 10px; font-size:11px; font-weight:800; line-height:normal; white-space:nowrap; text-overflow:ellipsis; overflow:hidden;
  background:var(--hud-title); border-bottom:1px solid #2f4a8a; letter-spacing:.3px; }
.expedition .ex-map .ex-stage-name { font:inherit; }
.expedition .ex-map .ex-coords { display:inline; font-weight:700; color:#e3ecff; }
.expedition .ex-map .ex-tools { right:4px; bottom:4px; gap:3px; }
.expedition .ex-map .ex-tools button { margin:0; padding:0; min-width:0; width:22px; height:22px; font-size:14px; }
.expedition .ex-map .rd-toggle { position:absolute; inset:auto auto 4px 4px; margin:0; padding:0; width:22px; height:22px; border:1px solid var(--hud-border); border-radius:7px; }
.expedition .ex-field-pause { position:absolute; z-index:1; right:calc(180px * var(--hud-zoom)); top:12px;
  display:grid; place-items:center; width:32px; height:32px; min-width:0; padding:0; border:1px solid var(--hud-border);
  border-radius:50%; background:var(--hud-panel); box-shadow:var(--hud-shadow); color:#24418e; cursor:pointer; font-size:16px; }
.expedition.rb-coop .rc-map { aspect-ratio:auto; }
.expedition.rb-coop .rc-ally { position:absolute; top:136px; left:12px; width:200px; margin:0; padding:4px 8px;
  border:1px solid var(--hud-border); border-radius:8px; background:var(--hud-panel); zoom:var(--hud-zoom); }
.expedition .ex-bottom { display:contents; }
.expedition :is(.ex-skillbar,.ex-itembar) { position:absolute; left:50%; transform:translateX(-50%); pointer-events:auto; }
.expedition.ex-touch :is(.ex-skillbar,.ex-itembar) { pointer-events:none; }
.expedition .ex-skillbar { bottom:12px; gap:6px; padding:6px; border-radius:16px; }
.expedition .ex-itembar { bottom:86px; gap:4px; }
.expedition .ex-skillbar .ex-slot { width:46px; height:46px; margin:0; border-radius:12px; }
.expedition .ex-skillbar .ex-slot img { width:32px; height:32px; }
.expedition .ex-skillbar {
  display:flex; align-items:center; border:1px solid var(--hud-border); background:var(--hud-panel); box-shadow:var(--hud-shadow);
}
.expedition .ex-skillbar .ex-slot {
  flex:none; display:flex; align-items:center; justify-content:center; overflow:hidden; font:inherit;
  background:linear-gradient(#f7f8fc,#e3e7f2); border:1px solid #8b96b8; box-shadow:inset 0 1px #fff,0 1px 2px #0003;
}
.expedition .ex-slot .cd,.expedition .ex-slot .cdt { position:absolute; inset:0; pointer-events:none; }
.expedition .ex-slot .cd { background:conic-gradient(transparent calc((1 - var(--p,0)) * 360deg),#0a0e1e9e 0); }
.expedition .ex-slot .cdt { display:grid; place-items:center; font-size:14px; font-weight:900; color:white;
  text-shadow:0 1px 1px black,0 0 2px black,0 0 3px #000c; }
.expedition .ex-slot .lvl { position:absolute; right:2px; bottom:2px; min-width:13px; padding:0 3px; border-radius:6px;
  text-align:center; font-size:10px; font-weight:900; line-height:13px; color:white; background:#3a559ad9; }
.expedition .ex-skillbar .ex-basic { border-color:#3a5bb4; border-radius:50%; background:linear-gradient(#f3f7ff,#d3e0f8); }
.expedition .ex-skillbar .ex-passive { border-color:#6fa8cf; background:linear-gradient(#f4faff,#dbecf8); }
.expedition .ex-skillbar .ex-empty { background:#ffffff80; border:1px dashed #a9b4d2; box-shadow:none; }
.expedition .ex-empty span { color:#a9b4d2; font-size:18px; font-weight:800; }
.expedition .ex-skillbar .ready { box-shadow:inset 0 0 0 1px #8fd0ff,0 0 6px #8fd0ffb3,0 1px 2px #0003; }
.expedition .ex-skillbar .ready .cd { display:none; }
.expedition .ex-skillbar .cast { animation:battle-slot-cast .25s ease-out; }
@keyframes battle-slot-cast { from {box-shadow:0 0 14px 4px #d6ecff;filter:brightness(1.7)} to {filter:none} }
.expedition .ex-skillbar .slot-sep { width:1px; align-self:stretch; margin:4px 2px; background:linear-gradient(transparent,#8b96b8,transparent); }
/* Keep the textual equivalent of the world-space chant strips available to assistive technology. */
.expedition .rb-casting { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.expedition .rb-hint { display:none; }
@media (pointer:coarse) {
  .expedition :is(.ex-skillbar,.ex-itembar) { pointer-events:none; }
  .expedition .rb-hud { left:max(10px,env(safe-area-inset-left)); top:max(10px,env(safe-area-inset-top)); }
  .expedition .ex-skillbar { bottom:max(10px,env(safe-area-inset-bottom)); }
}
@media (max-width:720px), (max-height:500px) {
  .expedition { --hud-col:112px; --hud-right:max(10px,env(safe-area-inset-right)); --hud-top:max(8px,env(safe-area-inset-top)); }
  .expedition .rb-hud { width:222px; }
  .expedition .ex-portrait { width:58px; height:58px; }
  .expedition .ex-portrait .rb-lv { bottom:-6px; padding:0 6px; }
  .expedition .ex-vitals { padding:0 8px 4px 37px; margin-left:-29px; }
  .expedition .ex-vitals .rb-who { font-size:11px; margin:0 -8px 0 -37px; padding:2px 8px 2px 37px; }
  .expedition .ex-job { font-size:10px; }
  .expedition .ex-meter:not(.ex-meter-xp) { height:14px; }
  .expedition .ex-xp-row { margin-top:3px; }
  .expedition .ex-map { width:var(--hud-col); top:var(--hud-top); right:var(--hud-right); border-radius:12px; }
  .expedition .ex-field-pause { top:var(--hud-top); right:calc(var(--hud-right) + var(--hud-col) + 8px); width:46px; height:46px; }
  .expedition.rb-coop .rc-ally { left:8px; top:118px; width:160px; }
  .expedition .ex-map .ex-tools button,.expedition .ex-map .rd-toggle { width:20px; height:20px; font-size:13px; }
  .expedition .rb-stage { left:auto; right:var(--hud-right); top:calc(var(--hud-top) + var(--hud-col) + 24px);
    transform:none; width:var(--hud-col); align-items:stretch; gap:4px; }
  .expedition .rb-stage time { padding:0; font-size:18px; }
  .expedition .ex-chip-row { flex-flow:column; align-items:stretch; gap:3px; }
  .expedition .rb-stage .ex-chip { font-size:11px; padding:1px 8px; }
  .expedition .ex-wallet { display:grid!important; grid-template-columns:auto auto; justify-content:center; }
  .expedition .ex-cost { grid-column:1 / -1; text-align:center; }
  .expedition .ex-tools .rd-toggle { position:static; }
  .expedition .ex-skillbar { gap:4px; padding:4px; border-radius:14px; }
  .expedition .ex-skillbar .ex-slot { width:38px; height:38px; border-radius:10px; }
  .expedition .ex-skillbar .ex-basic { border-radius:50%; }
  .expedition .ex-skillbar .slot-sep { margin:4px 1px; }
  .expedition .ex-skillbar .ex-slot img { width:26px; height:26px; }
  .expedition .ex-itembar { gap:3px; bottom:72px; }
}
@media (pointer:coarse) and (max-width:720px), (pointer:coarse) and (max-height:500px) {
  .expedition .ex-itembar { bottom:calc(max(10px,env(safe-area-inset-bottom)) + 62px); }
}
@media (max-width:440px) {
  .expedition .rb-hud { width:calc(100vw - 196px); min-width:168px; }
  .expedition .ex-vitals { padding-right:6px; }
  .expedition .ex-xp-value { min-width:28px; }
}
@media (max-height:500px) { .expedition { --hud-col:92px; } }
#pause[hidden] { display:none!important; }
#pause .small-window { width:290px; }
#pause .small-window .ro-body { display:flex;flex-direction:column;gap:4px;padding:14px 18px; }
#pause .small-window .center { text-align:center; }
#pause .pause-settings { display:flex;flex-flow:column;gap:4px; }
#pause .pause-settings .ex-pause-options { display:flex;flex-flow:column; }
