.ro-battle {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  isolation: isolate;
  background: #90ac59;
  color: #243752;
  font: 14px/1.45 "Nunito", "Microsoft JhengHei", system-ui, sans-serif;
  user-select: none;
  overscroll-behavior: contain;
  touch-action: none;
}
.ro-battle *, .ro-battle *::before, .ro-battle *::after { box-sizing: border-box; }
.ro-battle [hidden] { display: none !important; }
.rb-field { width: 100%; height: 100%; display: block; image-rendering: pixelated; cursor: crosshair; }
.rb-card {
  background: linear-gradient(150deg, #fbfdff 4%, #e3edf7 100%);
  border: 1px solid #49607a;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #fff9, 0 3px 0 #384e5a50, 0 6px 17px #25371729;
}
.rb-hud, .rb-stage, .rb-hint, .rb-pause { position: absolute; }
.rb-hud {
  left: max(14px, env(safe-area-inset-left));
  top: max(14px, env(safe-area-inset-top));
  width: clamp(164px, 22vw, 226px);
  padding: 9px 13px 10px;
  pointer-events: none;
}
.rb-who { display: flex; align-items: baseline; gap: 8px; margin: 0 0 5px; }
.rb-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: #263d52; }
.rb-lv { color: #4a6985; font: bold 11px/1.1 Consolas, monospace; margin-left: auto; white-space: nowrap; }
.rb-meter { display: grid; grid-template-columns: 23px 1fr; align-items: center; gap: 4px; }
.rb-meter + .rb-meter { margin-top: 3px; }
.rb-meter small { font: bold 9px/1 Consolas, monospace; color: #456078; }
.rb-track { height: 8px; background: #738490; border: 1px solid #4a6070; border-radius: 2px; overflow: hidden; }
.rb-casting {
  position:absolute;top:calc(100% + 4px);left:0;width:100%;padding:4px 7px;color:#fff;
  background:linear-gradient(135deg,#26364cf2,#344a65eb);border:1px solid #a5b7cc;
  border-radius:5px;box-shadow:0 1px 4px #1923345c;pointer-events:none;
  max-height:30vh;overflow:hidden;
}
.rb-cast-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:4px;font:600 11px/1.35 "Microsoft JhengHei",sans-serif;}
.rb-cast-row + .rb-cast-row {margin-top:3px;}
.rb-cast-row span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rb-cast-row small {font-size:10px;color:#d2f7ec;font-variant-numeric:tabular-nums;}
.rb-cast-row progress {grid-column:1 / -1;width:100%;height:4px;border:none;border-radius:4px;background:#182332;accent-color:#76e0c1;}
.rb-cast-row progress::-webkit-progress-bar {background:#182332;border-radius:4px;}
.rb-cast-row progress::-webkit-progress-value {background:linear-gradient(90deg,#50a7b2,#9ef2ca);border-radius:4px;}
.rb-fill { display: block; height: 100%; width: 100%; background: linear-gradient(#ffc4a8, #dc6d56 60%); transition: width .12s linear; }
.rb-exp { background: linear-gradient(#c3faf1, #52ac9f 60%); }
.rb-stage {
  left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%);
  display: grid; justify-items: center; min-width: 142px; padding: 6px 16px 8px;
  border: 1px solid #d6e3bc99; border-radius: 8px;
  background: #243d3ee6; color: #fdffe8; box-shadow: 0 2px 5px #36452b2b; pointer-events: none;
}
.rb-stage span { font-size: 11px; letter-spacing: .12em; color: #e3eadd; font-weight: 700; }
.rb-stage time { font: 700 23px/1.1 Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.rb-kills { margin-top: 2px; font-size: 10px; color: #d4e0d4; }
.ro-battle button { font: inherit; cursor: pointer; touch-action: manipulation; }
.ro-battle button:focus-visible { outline: 3px solid #ffcf64; outline-offset: 3px; }
.rb-pause {
  right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top));
  height: 38px; min-width: 42px; font-weight: bold !important; color: #354b61;
}
.rb-hint {
  bottom: max(15px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border: 1px solid #ecf4cd70; border-radius: 20px;
  color: #fff; background: #263d3cc9; pointer-events: none; white-space: nowrap; font-size: 12px;
}
.rb-touch-hint { display: none; }
.field-stick { position:fixed; pointer-events:none; z-index:5; box-sizing:border-box; width:116px; height:116px; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle,#ffffff14 40%,#ffffff38); border:2px solid #ffffff8c; box-shadow:0 0 0 1px #3a559a66; }
.field-stick i { position:absolute; left:50%; top:50%; box-sizing:border-box; width:50px; height:50px; border-radius:50%; background:radial-gradient(circle at 40% 35%,#fff,#c9d6f6 55%,#8ea6dc); border:2px solid #6f8fd8; box-shadow:0 3px 8px #00000073; opacity:.85; }
.rb-shade { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: #172c3d75; }
.rb-window { width: min(100%, 420px); overflow: auto; max-height: 100%; }
.rb-title { margin: 0; padding: 7px 14px; background: linear-gradient(#8facce, #658bae 45%, #5c7b9e); border-bottom: 1px solid #476383; color: white; text-shadow: 0 1px 1px #384c65; font-size: 14px; }
.rb-window-body { padding: 16px; }
.rb-description { color: #536782; margin: 0 0 13px; font-size: 14px; }
.rb-choices { display: grid; gap: 9px; }
.rb-option {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; text-align: left;
  color: #28394b; background: linear-gradient(#fff, #e4edf8); border: 1px solid #a2b6c9;
  border-radius: 5px; box-shadow: inset 0 0 0 1px #fff9, 0 2px 0 #c6d2e0;
}
.rb-option:hover { border-color: #557fa9; background: #f5fbff; }
.rb-option b, .rb-option small { display: block; }
.rb-option small { color: #536780; font-size: 12px; }
.rb-key { background: #d6e4f1; border: 1px solid #97b0ca; border-radius: 4px; padding: 1px 6px; color: #55728b; font: bold 12px Consolas, monospace; }
.rb-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rb-btn { padding: 7px 15px; border: 1px solid #809ab0; border-radius: 5px; background: linear-gradient(#fff, #d8e4ef); color: #364e62; }
.rb-primary { color: white; border-color: #486d94; background: linear-gradient(#7da3cd, #507aa7); font-weight: bold !important; }
.rc-ally { margin-top: 6px; padding-top: 4px; border-top: 1px solid #8fa9bd80; font-size: 11px; color: #36756c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-upgrades, .rc-message { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
.rc-upgrades { bottom: max(10px, env(safe-area-inset-bottom)); padding: 9px 16px; max-width: calc(100% - 16px); }
.rc-upgrades b { display: block; font-size: 12px; margin-bottom: 6px; color: #385e87; }
.rc-upgrades .rb-actions { flex-wrap: nowrap; justify-content: center; gap: 5px; }
.rc-upgrades .rb-btn { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
.rc-message { top: 33%; background: #324658ea; border: 1px solid #c8d8d6; color: white; border-radius: 6px; padding: 8px 14px; width: max-content; max-width: 90%; }
.expedition .rb-hud {top:12px;left:30px;display:flex;align-items:center;width:min(292px,27vw);min-height:72px;border:1px solid #8594ae;border-radius:12px;background:linear-gradient(#fbfdff,#dde2ed);padding:0 9px 3px 62px;box-shadow:0 2px 5px #25314d60,inset 0 0 0 2px #fff8}
.expedition .rb-field{position:relative}
.ex-portrait{position:absolute;width:76px;height:76px;left:-22px;top:50%;transform:translateY(-50%);z-index:1}
.ex-face {width:100%;height:100%;image-rendering:pixelated;background:linear-gradient(#a6b5db,#e0e5f1 75%,#999fbe);border:3px solid #f7fbff;outline:1px solid #657596;border-radius:50%;box-shadow:inset 0 0 0 2px #748aaf}
.ex-portrait .rb-lv{position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);padding:2px 9px;border:2px solid #eef5fc;border-radius:12px;background:linear-gradient(#92a4cf,#455f94);color:#fff;box-shadow:0 0 0 1px #6b7896;font:800 10px/1.1 Arial,sans-serif}
.ex-vitals {width:100%;min-width:0}.ex-vitals .rb-who {display:flex;align-items:baseline;justify-content:flex-start;gap:4px;color:#fff;text-shadow:0 1px 2px #405175;font-size:12px;background:linear-gradient(#a6bce2,#5772a4);margin:-3px -9px 5px -42px;border-radius:10px 10px 0 0;padding:3px 5px 3px 42px;height:25px}
.ex-vitals .rb-who strong {color:inherit;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-job{font-size:11px;flex:none}
.ex-meter {position:relative;height:16px;margin:3px 0 0;overflow:hidden;border:1px solid #7585a0;border-radius:9px;background:#383e51;text-align:center;line-height:13px}
.ex-meter i {position:absolute;inset:0 auto 0 0;--hp-l:inherit;background:linear-gradient(90deg,hsl(216 75% calc(var(--hp-l,62%) - 10%)),hsl(212 85% var(--hp-l,62%)) 70%,hsl(206 95% calc(var(--hp-l,62%) + 14%)))}
.ex-meter.low i{animation:ex-hp-low .7s ease-in-out infinite alternate}@keyframes ex-hp-low{to{filter:brightness(1.5)}}
.ex-weather{color:#d8e2ff;font:700 11px/1.2 "Microsoft JhengHei",system-ui,sans-serif;text-shadow:0 1px 2px #18233c,0 0 3px #18233c}.ex-weather:empty{display:none}
.ex-meter span {position:relative;font:bold 10px/13px Arial,sans-serif;color:white;text-shadow:0 1px 2px #111}
.ex-xp-row{display:flex;gap:5px;align-items:center;color:#374259;font:750 10px/1.4 Arial,sans-serif;margin-top:4px}.ex-xp-value{min-width:35px;text-align:right;white-space:nowrap}
.ex-meter-xp{height:8px;flex:1;margin:0}.ex-meter-xp i {background:linear-gradient(#a9dbff,#4b9fdf)}
.expedition .rb-stage {top:9px;left:50%;background:transparent;box-shadow:none;border:0;min-width:0;padding:0;display:flex;align-items:center;gap:6px;flex-direction:column}
.expedition .rb-stage time,.expedition .rb-stage .ex-chip {background:linear-gradient(#fff,#edf0fa);border-radius:18px;color:#293c66;border:1px solid #99a3bc;box-shadow:0 2px 5px #27314d55,inset 0 0 0 1px #fffa}
.expedition .rb-stage time{font:bold 24px/1.18 "Segoe UI",Arial,sans-serif;letter-spacing:1px;text-align:center;min-width:110px;padding:0 12px;font-variant-numeric:tabular-nums}
.ex-chip-row,.ex-filter {display:flex;align-items:center;gap:4px}
.expedition .rb-stage .ex-chip{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin:0;padding:3px 9px;white-space:nowrap;font:700 12px/1.4 "Microsoft JhengHei",system-ui,sans-serif;letter-spacing:0}
.ex-chip img{width:17px;height:17px;object-fit:contain;image-rendering:pixelated}.ex-wallet{color:#514c82}.ex-wallet small{font-size:10px;color:#64697c;margin-left:5px}
.ex-filter label{pointer-events:auto;cursor:pointer}.ex-filter input{width:13px;height:13px;margin:0;accent-color:#5b71a4}
.expedition .rb-stage .ex-filter[hidden] {display:none}
.ex-filter button {pointer-events:auto;border:0;border-radius:9px;background:#e1e9fb;color:#354770;padding:3px 8px;cursor:pointer;font:inherit}
.ex-filter button:focus-visible {outline:2px solid #315d9c}
.ex-map {position:absolute;right:12px;top:12px;width:clamp(106px,14.5vw,165px);border:2px solid #a6afc1;background:#edf2ff;border-radius:9px;overflow:hidden;box-shadow:0 3px 12px #252b4170;color:#fff}
.ex-map-heading {background:linear-gradient(#8fa7d4,#476295);font-size:11px;font-weight:750;text-align:center;line-height:24px;white-space:nowrap;text-shadow:0 1px 2px #38476b}
.ex-map-image {position:relative;aspect-ratio:1;background:#3b453e;overflow:hidden}.ex-map-image img{width:100%;height:100%;display:block;object-fit:fill;transform-origin:0 0;image-rendering:pixelated}
.ex-map-image i {position:absolute;width:6px;height:6px;background:#ffde42;border-radius:50%;border:1px solid #714b19;transform:translate(-50%,-50%)}
.ex-tools {position:absolute;bottom:4px;right:4px;display:flex;gap:3px}
.ex-tools button {height:23px;min-width:23px;padding:0 4px;border:1px solid #7487a2;border-radius:7px;font-weight:900;background:#eef2ffed;color:#334a79}
.ex-boss {position:absolute;left:50%;top:94px;transform:translateX(-50%);width:min(300px,45vw);padding:4px 8px;text-align:center;color:white;background:#26182dcc;border-radius:8px;font-size:12px}
.ex-boss div {height:5px;background:#592b33;border-radius:3px;margin-top:3px;overflow:hidden}.ex-boss i{display:block;height:100%;background:linear-gradient(#ffae92,#f64859)}
.ex-notice {position:absolute;top:26%;left:50%;transform:translateX(-50%);padding:5px 14px;border-radius:9px;background:#233351d9;text-align:center;color:white;font-weight:750;white-space:nowrap}
.ex-loot-feed{position:absolute;right:12px;top:207px;display:grid;justify-items:end;gap:3px;pointer-events:none}.ex-loot-line{display:flex;align-items:center;gap:4px;padding:3px 7px;border-radius:6px;background:#233351d9;color:white;font-weight:650}.ex-loot-line img{height:22px;image-rendering:pixelated}.ex-loot-reveal{display:grid;justify-items:center;gap:4px;margin:0 0 14px}.ex-loot-reveal img{width:74px;image-rendering:pixelated}
.ex-bottom {position:absolute;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;flex-direction:column-reverse;align-items:center;gap:6px;pointer-events:none}
.ex-skillbar,.ex-itembar {display:flex;align-items:center;gap:4px;padding:4px 6px;border-radius:13px;border:1px solid #98a8c2;box-shadow:0 2px 8px #17203266;background:#f5f7ffe8}
.ex-itembar {border:0;padding:0;background:none;box-shadow:none}
.ex-slot {position:relative;display:grid;place-items:center;width:40px;height:40px;border:1px solid #a6b3cc;border-radius:8px;background:#e5eaf5;color:#455776;font-family:Arial,sans-serif;font-weight:800;font-size:10px}
.ex-slot img {width:28px;height:28px;object-fit:contain;image-rendering:pixelated}
.ex-slot b {position:absolute;bottom:0;right:2px;color:white;text-shadow:0 1px 3px black;font-size:11px}
.ex-empty {color:#92a2bf;font-size:18px;border-style:dashed}.ex-basic{margin-right:4px}
.expedition .rb-hint {bottom:90px}
.ex-pause-options {display:grid;gap:8px;margin:10px 0 16px}.ex-quality {font-size:13px}.ex-quality select {font:inherit}
.expedition .rb-shade{z-index:3}
.expedition.ex-picking .rb-shade{background:radial-gradient(ellipse at 50% 46%,#101925ed,#060810f5)}
.expedition.ex-picking .rb-window {width:min(760px,96vw);max-height:96dvh;overflow:auto;color:#f2f4ff;background:transparent;border:0;box-shadow:none;text-align:center}
.expedition.ex-picking .rb-title {font:bold clamp(18px,3vw,28px)/1.2 'Microsoft JhengHei',sans-serif;background:none;border:0;color:white;text-shadow:0 2px 4px #58607d}
.expedition.ex-picking .rb-window-body {padding:0 6px 10px;display:block}
.ex-level-summary,.ex-choice-title,.ex-choice-count {margin:5px 0;color:#f4f7ff;font-size:14px}
.ex-choice-count{display:inline-block;background:#e5eafe;border:1px solid #becbe5;color:#4d5e80;border-radius:8px;padding:5px 11px;font-weight:700;font-size:12px;margin:5px 0 14px}
.ex-choice-list{display:flex;justify-content:center;align-items:stretch;gap:clamp(5px,2vw,20px);margin:20px 0 6px}
.ex-choice {position:relative;flex:1;max-width:210px;min-width:0;height:clamp(165px,36vh,292px);padding:24px 5px 14px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;border:2px solid #91acde;border-radius:15px;background:linear-gradient(#dce6ff,#fff 48%,#edf2fd);box-shadow:0 2px 14px #8194ff44;color:#314565;text-align:center}
.ex-choice img{width:clamp(36px,6vw,68px);height:clamp(36px,6vw,68px);object-fit:contain;image-rendering:pixelated;padding:6px;border-radius:50%;border:2px solid #aabfe0;background:radial-gradient(#fff,#ecf3ff,#bdcdeb)}
.ex-choice strong{font-size:clamp(13px,2.15vw,20px)}.ex-choice span{border-top:1px solid #d2dcea;width:80%;padding-top:8px;font-size:13px}
.ex-choice kbd{position:absolute;left:8px;top:8px;padding:1px 5px;border-radius:4px;background:#fff;color:#687ba3;font-size:10px}
.ex-choice-kind{font-weight:bold;color:#68799c;font-size:12px}
.ex-card-effect{display:block;font-size:clamp(11px,1.2vw,14px);line-height:1.45;color:#304765;font-weight:600;white-space:normal}
.ex-equipped{display:inline-flex;align-items:center;gap:3px;padding:8px 10px}.ex-equipped span{display:grid;place-items:center;width:30px;height:30px;border:1px dashed #acb9c8;border-radius:8px;background:#f6f7fa;color:#a6b0c1}.ex-equipped img{width:26px;height:26px;image-rendering:pixelated}
.ex-choice[data-quality]{--quality:#96a0b4;max-width:218px;height:clamp(182px,37vh,310px);gap:8px;padding:26px 10px 14px;border-color:var(--quality)}
.ex-choice[data-quality="1"]{--quality:#579e5f}.ex-choice[data-quality="2"]{--quality:#3b77dc}.ex-choice[data-quality="3"]{--quality:#985ab8}.ex-choice[data-quality="4"]{--quality:#bd8930}
.ex-choice[data-quality] img{width:clamp(38px,7.4vw,78px);height:clamp(38px,7.4vw,78px);padding:12px;margin-bottom:2px}
.ex-choice[data-quality] strong{line-height:1.2}.ex-choice[data-quality] .ex-choice-kind{font-size:13px;color:#64718a}
.ex-quality-badge{position:absolute;left:50%;transform:translateX(-50%);top:-12px;border:2px solid #e9efff;background:var(--quality);color:#fff;border-radius:14px;padding:2px 12px;white-space:nowrap;font-size:12px}
.ex-choice[data-quality]:focus-visible{outline:2px solid #dbe7ff;outline-offset:2px;box-shadow:0 0 18px var(--quality)}.ex-choice[data-quality]:hover{transform:translateY(-4px);box-shadow:0 0 24px var(--quality)}
.ex-first-card{position:absolute;right:2px;top:12px;padding:2px 8px;color:#fff;background:#e76f94;border-radius:4px;transform:rotate(28deg);font-size:11px}
.ex-card-tip{margin:24px 0 0;color:#d7deed;font-size:13px}
.ex-choice[data-quality="1"]{border-color:#80ad82}.ex-choice[data-quality="2"]{border-color:#6387d0}.ex-choice[data-quality="3"]{border-color:#ae76d9}.ex-choice[data-quality="4"]{border-color:#d8a552}
.ex-choice:hover,.ex-choice:focus-visible {border-color:#6ba4ff;box-shadow:0 0 20px #7aa8ff80;transform:translateY(-2px)}
.ex-card-tools{display:flex;flex-direction:column;gap:2px}.ex-card-tools button{font-size:11px;padding:1px 3px}
.ex-animate .ex-choice{animation:ex-reveal .22s ease-out both}@keyframes ex-reveal{from{opacity:.2;transform:rotateY(-45deg)}to{opacity:1;transform:rotateY(0)}}
@media(max-width:590px){.expedition .rb-hud{width:42%;left:5px;top:6px;gap:3px;padding:3px}.ex-face{width:30px;height:36px}.expedition .rb-stage{left:56%;top:6px}.expedition .rb-stage time{font-size:16px}.expedition .rb-stage small{font-size:9px}.ex-stage-name{display:none}.ex-map{right:5px;top:6px;width:75px}.ex-map b{font-size:8px}.ex-tools{gap:1px;right:1px;bottom:0}.ex-tools button{min-width:18px;height:19px;font-size:11px}.ex-slot{width:33px;height:33px}.ex-meter span{font-size:8px}.ex-boss{top:75px}.ex-choice-list{gap:5px}.ex-choice{padding-top:20px}.ex-notice{font-size:12px}}
@media(prefers-reduced-motion:reduce){.ex-animate .ex-choice{animation:none}}
@media (pointer: coarse) {
  .rb-key-hint { display: none; } .rb-touch-hint { display: inline; }
}
@media (max-width: 590px) {
  .rb-hud { left: max(8px, env(safe-area-inset-left)); top: max(8px, env(safe-area-inset-top)); width: 37%; padding: 7px 8px; }
  .rb-who { gap: 2px; } .rb-who strong { font-size: 13px; } .rb-lv { font-size: 10px; }
  .rb-stage { left: 61%; min-width: 88px; padding: 4px 8px; top: max(8px, env(safe-area-inset-top)); }
  .rb-stage time { font-size: 19px; }
  .rb-pause { right: max(8px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); }
  .rb-hint { font-size: 10px; }
}
@media (max-height: 420px) {
  .rb-window-body { padding: 10px; } .rb-choices { gap: 5px; } .rb-option { padding: 5px 9px; }
  .rb-hint { bottom: 4px; }
}
.expedition.story-dialog .rb-shade{align-items:flex-end;padding:14px 12px 6vh;background:linear-gradient(transparent 0%,transparent 45%,#12233a60)}
.expedition.story-dialog .rb-window{width:min(580px,95vw);max-height:42vh}
.expedition.story-dialog .rb-window-body{min-height:94px;padding:11px 15px;display:flow-root}
.expedition.story-dialog .rb-description{font-size:.98rem;line-height:1.55;margin:1px 0 9px;color:#293e65}
.expedition.story-dialog .rb-btn{margin:3px 4px 1px 0}
.story-fade{position:absolute;inset:0;background:#000;pointer-events:none;z-index:8}
.expedition.story-film .rb-shade{z-index:12}
.expedition.story-between-lines .rb-shade{visibility:hidden}
.expedition.story-film :is(.rb-hud,.rb-stage,.ex-map,.ex-field-pause,.ex-notice,.ex-boss,.ex-bottom,.ex-loot-feed,.rb-hint,.rb-stick){visibility:hidden}
.expedition.story-film::before,.expedition.story-film::after{content:"";position:absolute;left:0;right:0;height:9vh;background:#000;z-index:9;pointer-events:none;animation:story-bar-in .4s ease-out both}
.expedition.story-film::before{top:0;transform-origin:top}.expedition.story-film::after{bottom:0;transform-origin:bottom}
@keyframes story-bar-in{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.expedition.story-spoken .rb-shade{display:block;padding:0;background:none;cursor:pointer}
.expedition.story-spoken .rb-window{--face:72px;zoom:var(--hud-zoom,1);position:absolute;left:50%;bottom:calc(9vh + 14px);transform:translateX(-50%);width:min(640px,calc(100vw - 24px));display:grid;grid-template-columns:var(--face) 1fr;column-gap:12px;align-items:start;max-height:none;padding:12px 14px 22px;border-radius:14px;background:linear-gradient(#fafbfff7,#e8ecf6f5);border:1px solid #8995ac;box-shadow:0 0 0 2px #ffffff80,0 6px 18px #0000008c;overflow:visible}
.expedition.story-spoken .rb-title{grid-area:1/2;margin:0 0 3px;padding:0;background:none;border:none;color:#40557b;text-shadow:none;font-size:16px;font-weight:900;text-align:left}
.expedition.story-spoken .rb-window-body{display:contents}
.expedition.story-spoken .story-face{grid-area:1/1/3/2;float:none;margin:0;width:var(--face);height:var(--face);border-radius:50%;border:2px solid #728cbc;background:radial-gradient(circle at 50% 35%,#fff,#dfe7f8 55%,#b3c6ec)}
.expedition.story-spoken .rb-description{grid-area:2/2;margin:0;min-height:3em;font-size:16px;line-height:1.45;color:#253453;overflow-wrap:anywhere}
.expedition.story-spoken .story-next{position:absolute;right:14px;bottom:6px;margin:0;padding:0;min-width:0;min-height:0;width:auto;height:auto;border:none;border-radius:0;background:none;box-shadow:none;color:#65728a;font-size:11px;font-weight:800;animation:story-next-pulse 1s ease-in-out infinite}
@keyframes story-next-pulse{50%{opacity:.35}}
@media(max-width:720px),(max-height:500px){
 .expedition.story-spoken .rb-window{--face:52px;bottom:calc(9vh + 6px);padding:8px 10px 18px}
 .expedition.story-spoken .rb-description{font-size:14px}
}
@media(pointer:coarse){.story-next span{display:none}}
.story-face{float:left;width:57px;height:72px;object-fit:contain;margin-right:11px;image-rendering:pixelated}
.expedition .story-objective{white-space:normal}
@media(max-width:980px){
  .ex-chip-row{position:absolute;top:80px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 12px);justify-content:center}
  .ex-boss{top:122px}
}
@media(max-width:590px){
  .expedition .rb-hud{left:14px;top:7px;width:40%;min-height:51px;padding:0 5px 2px 34px}
  .ex-portrait{left:-10px;width:41px;height:44px}.ex-face{width:100%;height:100%;border-width:2px}
  .ex-portrait .rb-lv{font-size:8px;padding:1px 4px;bottom:-3px}
  .ex-vitals .rb-who{height:17px;padding:1px 2px 1px 20px;margin:-1px -5px 3px -20px;gap:2px}
  .ex-vitals .rb-who strong,.ex-job{font-size:9px}.ex-meter:not(.ex-meter-xp){height:12px;line-height:8px}
  .ex-xp-row{font-size:8px;gap:2px;margin-top:3px}.ex-xp-value{min-width:24px}.ex-meter-xp{height:5px}
  .expedition .rb-stage{left:0;top:8px;width:100%;transform:none}.expedition .rb-stage time{font-size:16px;min-width:64px}
  .ex-chip-row{top:64px;left:5px;transform:none;flex-wrap:wrap;max-width:calc(100vw - 94px);width:max-content;justify-content:flex-start;gap:2px}
  .ex-filter{gap:2px}.expedition .rb-stage .ex-chip{font-size:9px;padding:2px 4px;gap:2px}
  .ex-chip img{width:12px;height:12px}.ex-wallet small{font-size:8px;margin-left:1px}.ex-filter input{width:10px;height:10px}
  .ex-map{width:77px}.ex-map-heading{font-size:8px;line-height:11px;white-space:normal;padding:2px}
  .ex-map .ex-stage-name{display:inline}.ex-map .ex-coords{display:block}.ex-boss{top:104px}
}
.ex-no-flip{display:block;margin:0 0 4px auto;font-size:.78rem}.ex-no-flip:disabled{opacity:.64}
.expedition.ex-picking .rb-window:has(.ex-draft-skills){position:relative}
.expedition.ex-picking .rb-window:has(.ex-draft-skills) .rb-title{letter-spacing:.06em}
.ex-draft-skills{display:inline-flex;align-items:center;gap:4px;padding:7px 10px;border-radius:12px}
.ex-draft-skills .ex-slot{width:34px;height:34px}.ex-draft-skills .ex-slot img{width:27px;height:27px}
.ex-level-summary{display:inline-block;padding:4px 11px;border:1px solid #e2ebff;border-radius:24px;background:#d8e7ff;color:#344768;font-weight:700}
.ex-choice[data-fresh]{--quality:#7fb2ff;border-color:var(--quality)}
.ex-choice[data-fresh] .ex-choice-kind{min-height:29px;width:88%;border-bottom:1px solid #cbd7ee;padding-bottom:7px}
@media(min-width:680px){.ex-no-flip{position:absolute;right:9px;top:3px}.ex-choice-list:has([data-fresh]){margin-top:22px}}
@media(max-width:460px){.ex-draft-skills{gap:2px;padding:5px}.ex-draft-skills .ex-slot{width:27px;height:27px}.ex-draft-skills .ex-slot img{width:22px;height:22px}}
.rd-toggle{display:grid;place-items:center;cursor:pointer}.rd-toggle[aria-expanded=true]{background:#486caa;color:#fff}
.rc-map .rd-toggle{position:absolute;right:2px;bottom:2px;border:1px solid #7487a2;border-radius:5px;background:#edf2ff;color:#32466b;padding:3px}
.rd-panel{position:absolute;z-index:2;top:calc(44px + clamp(106px,14.5vw,165px));right:12px;width:min(305px,42vw);color:#233453;overflow:hidden;font-size:12px}
.rb-coop .rd-panel{top:calc(56px + clamp(62px,10vw,112px));right:8px}
.rd-head{padding:4px 8px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#96add2,#6885b2);color:white;text-shadow:0 1px 2px #344e74}
.rd-mode{font:inherit;padding:0 5px;color:#243957;background:#edf3ff;border:1px solid #5b759a;border-radius:4px;cursor:pointer}
.rd-list{padding:5px;overflow:auto;max-height:min(34dvh,320px);scrollbar-width:thin;touch-action:pan-y}
.rd-row{position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;gap:5px;margin:2px 0;background:#e1e8f4;min-height:20px;padding:2px 5px;line-height:1.25;border-radius:2px;overflow:hidden;color:#172845;font-variant-numeric:tabular-nums}
.rd-row::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--fill);z-index:-1;background:var(--tint,#a9c1e8)}
.rd-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.rd-figures{white-space:nowrap;font-weight:700;font-size:.92em}
.rd-player{display:block;opacity:.78}.rd-total{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #abbacb;padding:4px 3px 0;margin-top:4px}.rd-empty{margin:4px}.rd-result .rd-list{max-height:240px}
.rd-detail{white-space:pre-line;padding:6px 9px;background:#e1e9f4;border-top:1px solid #a1b2c9;font-size:11px}
@media(max-width:590px){.rd-panel{top:112px;right:4px;width:min(242px,57vw);font-size:10px}.rb-coop .rd-panel{right:4px}.ex-tools{gap:1px}.ex-map .ex-tools .rd-toggle{position:fixed;top:85px;right:6px}.rd-list{padding:3px}}
