/* HEXDECK Expeditionen – UI layout 62E. No gameplay, requests or global styles changed. */
#hd-expedition {
  box-sizing:border-box;
  border:1px solid var(--hd-ui-border-color,#38435e);
  border-radius:11px;
  background:var(--hd-portal-window-bg,rgba(8,12,22,.35));
  padding:24px;
  color:var(--hd-text,#edf1fa);
}
#hd-expedition *, #hd-expedition *::before, #hd-expedition *::after { box-sizing:border-box; }
#hd-expedition .hd-expedition-pagehead { margin-bottom:14px; }
#hd-expedition .hd-expedition-beta-notice { margin:0 0 14px; }
#hd-expedition .hd-expedition-body {
  margin-top:0;
  border-top:0;
  padding-top:0;
}
#hd-expedition .hd-expedition-message {
  font-size:.85rem;
  margin:0 0 14px;
  color:var(--hd-accent-light,#d3e0fc);
}
#hd-expedition .hd-expedition-message:empty{display:none}
#hd-expedition .hd-expedition-status-online{color:#54df9b}
#hd-expedition .hd-expedition-status-offline{color:#ff7180}

#hd-expedition .hd-expedition-pagehead .hd-expedition-lead{
  font-size:1.08rem;
  line-height:1.55;
  color:#eef4ff;
  margin-top:8px;
}
#hd-expedition .hd-expedition-beta-notice{
  border:1px solid rgba(201,78,94,.82);
  background:linear-gradient(180deg,rgba(86,18,29,.55),rgba(37,10,18,.42));
  color:#ffd5db;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
#hd-expedition .hd-expedition-beta-notice strong{color:#ffb8c4}
#hd-expedition .hd-expedition-beta-notice [aria-hidden="true"]{color:#ff96a8}

/* Three equally sized cards. Same border width selected/unselected prevents image jitter. */
#hd-expedition .hd-expedition-cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:16px;
  width:80%;
  max-width:1056px;
  margin:18px 0 22px;
}
#hd-expedition .hd-expedition-fighter {
  appearance:none;
  padding:0;
  margin:0;
  min-width:0;
  width:100%;
  text-align:left;
  border:2px solid transparent;
  border-radius:12px;
  background:rgba(10,14,28,.72);
  color:inherit;
  cursor:pointer;
  display:grid;
  /* Override HEXDECK's global button centering, which made each card's
     content width depend on the name and star count. */
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto 1fr;
  justify-content:stretch;
  justify-items:stretch;
  align-content:stretch;
  align-items:stretch;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  transition:border-color .15s ease, background .15s ease;
  /* Visible border even when unselected, without changing layout size */
  outline:1px solid var(--hd-ui-border-color,#364462);
  outline-offset:-1px;
}
#hd-expedition .hd-expedition-fighter:hover { outline-color:var(--hd-ui-border-active,rgba(182,202,243,.75)); }
#hd-expedition .hd-expedition-fighter.is-selected {
  border-color:var(--hd-accent-light,#d3e0fc);
  outline-color:var(--hd-accent-light,#d3e0fc);
  background:rgba(61,86,136,.23);
}
#hd-expedition .hd-expedition-fighter:disabled { cursor:default; opacity:.92; }

/* The artwork is a fixed 2:3 slot. Absolutely-positioned img fills it edge to edge.
   Source artwork is 600x900. A source with a different ratio fills without letterboxing. */
#hd-expedition .hd-expedition-fighter-media {
  width:100%;
  aspect-ratio:2/3;
  height:auto;
  min-height:0;
  position:relative;
  overflow:hidden;
  background:rgba(14,18,34,.9);
  border-bottom:1px solid var(--hd-ui-border-inner,rgba(73,86,116,.45));
  line-height:0;
}
#hd-expedition .hd-expedition-fighter-media img {
  position:absolute;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center center;
  padding:0;
  margin:0;
  border:0;
}
#hd-expedition .hd-expedition-fighter-placeholder {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.86rem;
  font-weight:800;
  letter-spacing:.08em;
  color:#94a6c9;
  line-height:1.3;
}

/* Fixed rows make all text, stat boxes and IDs align regardless of name wrapping. */
#hd-expedition .hd-expedition-fighter-body {
  width:100%;
  min-width:0;
  padding:13px 12px 14px;
  display:grid;
  grid-template-rows:60px 20px 56px 16px;
  gap:9px;
  align-content:start;
  background:rgba(10,14,28,.12);
}
#hd-expedition .hd-expedition-fighter-header {
  min-width:0;
  height:60px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  overflow:hidden;
}
#hd-expedition .hd-expedition-fighter-name {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  overflow:hidden;
  min-width:0;
  flex:1;
  max-height:60px;
  font-size:.95rem;
  line-height:1.26;
  font-weight:800;
  overflow-wrap:anywhere;
}
#hd-expedition .hd-expedition-stars {
  flex:0 0 auto;
  color:#f3c978;
  letter-spacing:.02em;
  white-space:nowrap;
  font-size:.93rem;
}
#hd-expedition .hd-expedition-fighter-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid var(--hd-ui-border-active,rgba(116,186,255,.65));
  background:linear-gradient(180deg, rgba(18,58,107,.7), rgba(12,31,66,.75));
  color:#d8ecff;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
#hd-expedition .hd-expedition-fighter-bonus {
  display:flex;
  align-items:center;
  min-height:28px;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid var(--hd-ui-border-color,rgba(76,125,197,.55));
  background:linear-gradient(180deg, rgba(13,35,69,.78), rgba(9,22,45,.72));
  color:#d7e9ff;
  font-size:.72rem;
  line-height:1.3;
  font-weight:700;
}
#hd-expedition .hd-expedition-attack-label {
  min-width:0;
  height:20px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:.76rem;
  line-height:20px;
  color:#aebbd2;
  text-transform:uppercase;
  letter-spacing:.04em;
}
#hd-expedition .hd-expedition-stat-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  width:100%;
  height:56px;
}
#hd-expedition .hd-expedition-stat {
  min-width:0;
  height:56px;
  padding:8px 8px;
  border:1px solid var(--hd-ui-border-color,rgba(78,90,121,.55));
  border-radius:9px;
  background:rgba(17,23,42,.78);
  display:grid;
  grid-template-rows:14px 20px;
  align-content:center;
  gap:3px;
}
#hd-expedition .hd-expedition-stat-label {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  font-size:.63rem;
  line-height:14px;
  color:#9eb1d4;
  text-transform:uppercase;
  letter-spacing:.03em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#hd-expedition .hd-expedition-stat-value {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  font-size:.93rem;
  line-height:20px;
  font-weight:900;
  white-space:nowrap;
}
#hd-expedition .hd-expedition-fighter-id {
  font-size:.72rem;
  line-height:16px;
  color:#8d9dbc;
  overflow:hidden;
  white-space:nowrap;
}

/* Duration tiles also form a table-like grid with corresponding elements aligned. */
#hd-expedition .hd-expedition-duration-zone { max-width:1320px; }
#hd-expedition .hd-expedition-duration-helper {
  margin:7px 0 12px;
  color:#aebbd2;
  font-size:.78rem;
}
#hd-expedition .hd-expedition-durations {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:12px;
  width:100%;
  max-width:760px;
  margin:12px 0;
}
#hd-expedition .hd-expedition-duration {
  width:100%;
  min-width:0;
  min-height:152px;
  padding:12px;
  border:2px solid var(--hd-ui-border-color,#364462);
  border-radius:10px;
  background:rgba(10,14,28,.65);
  color:inherit;
  font-weight:800;
  cursor:pointer;
  text-align:left;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:22px 18px 25px minmax(35px,1fr);
  gap:6px;
  justify-content:stretch;
  justify-items:stretch;
  align-items:stretch;
  align-content:start;
}
#hd-expedition .hd-expedition-duration.is-selected {
  border-color:var(--hd-accent-light,#d3e0fc);
  background:rgba(61,86,136,.23);
}
#hd-expedition .hd-expedition-duration-title { font-size:1rem; line-height:22px; }
#hd-expedition .hd-expedition-duration-meta { font-size:.74rem; color:#aebbd2; text-transform:uppercase; letter-spacing:.05em; line-height:18px; }
#hd-expedition .hd-expedition-duration-note { font-size:.73rem; color:#d0dbf5; line-height:1.35; font-weight:500; }
#hd-expedition .hd-expedition-danger-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  height:23px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.65rem;
  font-weight:900;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.1);
}
#hd-expedition .hd-expedition-danger-badge.badge-low { background:rgba(59,143,86,.18); border-color:rgba(82,188,112,.38); color:#7ce89a; }
#hd-expedition .hd-expedition-danger-badge.badge-mid { background:rgba(95,122,183,.18); border-color:rgba(131,161,236,.38); color:#a6c4ff; }
#hd-expedition .hd-expedition-danger-badge.badge-high { background:rgba(181,124,44,.18); border-color:rgba(223,164,81,.4); color:#ffc977; }
#hd-expedition .hd-expedition-danger-badge.badge-veryhigh { background:rgba(170,78,54,.18); border-color:rgba(221,113,78,.4); color:#ff9b7e; }
#hd-expedition .hd-expedition-danger-badge.badge-deadly { background:rgba(184,58,78,.2); border-color:rgba(230,87,110,.45); color:#ff8da0; }
#hd-expedition .hd-expedition-danger-badge.badge-none { background:rgba(71,84,112,.18); border-color:rgba(97,112,146,.35); color:#adb6ca; }
#hd-expedition .hd-expedition-action {
  min-height:46px;
  padding:10px 18px;
  margin:14px 0;
  background:rgba(61,86,136,.35);
  border:1px solid var(--hd-accent-light,#b9caf3);
  border-radius:8px;
  color:inherit;
  font-weight:900;
  cursor:pointer;
}
#hd-expedition .hd-expedition-action:disabled { opacity:.5; cursor:default; }
#hd-expedition .hd-expedition-locked-summary { font-size:.8rem; color:#d3e0fc; margin:4px 0 0; }
#hd-expedition .hd-expedition-duration-warning { display:block; margin-top:6px; color:#adb6ca; font-size:.73rem; }
#hd-expedition .hd-expedition-refresh { display:block; margin-top:22px; font-size:.72rem; }

@media(max-width:1100px) {
  #hd-expedition .hd-expedition-cards { width:100%; max-width:800px; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  #hd-expedition { padding:9px; }
  #hd-expedition .hd-expedition-cards { width:100%; max-width:420px; grid-template-columns:minmax(0,1fr); }
  #hd-expedition .hd-expedition-durations { grid-template-columns:1fr; max-width:420px; }
}


/* PATCH 62G: cleaner cards and more prominent stats */
#hd-expedition .hd-expedition-fighter-body {
  grid-template-rows:48px 22px 36px 64px 16px;
  gap:10px;
  padding:14px 12px 14px;
}
#hd-expedition .hd-expedition-fighter-header {
  height:48px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
#hd-expedition .hd-expedition-fighter-name {
  max-height:48px;
  font-size:1.02rem;
  line-height:1.18;
  font-weight:900;
}
#hd-expedition .hd-expedition-fighter-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid var(--hd-ui-border-active,rgba(116,186,255,.65));
  background:linear-gradient(180deg, rgba(18,58,107,.7), rgba(12,31,66,.75));
  color:#d8ecff;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
#hd-expedition .hd-expedition-fighter-bonus {
  display:flex;
  align-items:center;
  min-height:28px;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid var(--hd-ui-border-color,rgba(76,125,197,.55));
  background:linear-gradient(180deg, rgba(13,35,69,.78), rgba(9,22,45,.72));
  color:#d7e9ff;
  font-size:.72rem;
  line-height:1.3;
  font-weight:700;
}
#hd-expedition .hd-expedition-attack-label {
  display:flex;
  align-items:center;
  min-height:22px;
  font-size:.78rem;
  color:#aebbd2;
  text-transform:uppercase;
  letter-spacing:.05em;
}
#hd-expedition .hd-expedition-stat-grid {
  gap:10px;
  height:64px;
}
#hd-expedition .hd-expedition-stat {
  height:64px;
  padding:9px 9px;
  grid-template-rows:16px 24px;
  gap:4px;
  border-color:var(--hd-ui-border-color,rgba(91,105,141,.62));
  background:linear-gradient(180deg, rgba(19,26,48,.92), rgba(13,19,36,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
#hd-expedition .hd-expedition-stat-label {
  font-size:.64rem;
  line-height:16px;
  color:var(--hd-accent-light,#d3e0fc);
  letter-spacing:.04em;
}
#hd-expedition .hd-expedition-stat-value {
  font-size:1.18rem;
  line-height:24px;
  font-weight:900;
}
#hd-expedition .hd-expedition-stat--life .hd-expedition-stat-value { color:#eaf1ff; }
#hd-expedition .hd-expedition-stat--damage .hd-expedition-stat-value { color:#ffd08f; }
#hd-expedition .hd-expedition-stat--stars .hd-expedition-stat-value { color:#f3c978; letter-spacing:.08em; }
#hd-expedition .hd-expedition-duration-zone {
  width:80%;
  max-width:1056px;
}
#hd-expedition .hd-expedition-durations {
  width:100%;
  max-width:none;
  gap:12px;
}
#hd-expedition .hd-expedition-duration {
  min-height:134px;
  padding:13px 14px;
  grid-template-rows:24px 20px 24px minmax(34px,1fr);
  gap:6px;
  align-content:start;
}
#hd-expedition .hd-expedition-duration-title,
#hd-expedition .hd-expedition-duration-meta {
  display:flex;
  align-items:center;
  gap:7px;
}
#hd-expedition .hd-expedition-duration-title { font-size:1rem; line-height:24px; }
#hd-expedition .hd-expedition-duration-meta {
  font-size:.76rem;
  line-height:20px;
  color:var(--hd-accent-light,#d3e0fc);
}
#hd-expedition .hd-expedition-duration-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  min-width:14px;
  opacity:.92;
}
#hd-expedition .hd-expedition-danger-badge { height:24px; }
#hd-expedition .hd-expedition-duration-note {
  font-size:.74rem;
  line-height:1.32;
}
@media(max-width:760px){
  #hd-expedition .hd-expedition-duration-zone { width:100%; max-width:none; }
}

/* PATCH 63 – isolated expedition test-run status (no new global rules). */
#hd-expedition .hd-expedition-run {
  width:80%;max-width:1056px;min-width:0;margin:12px 0 20px;
  padding:20px;border:1px solid var(--hd-ui-border-color,#38435e);
  border-radius:12px;background:rgba(9,14,28,.62);
}
#hd-expedition .hd-expedition-run-header h3{font-size:1.22rem;font-weight:900;margin:0 0 6px;}
#hd-expedition .hd-expedition-run-header p{font-size:.78rem;color:#b3c0d8;margin:0 0 16px;}
#hd-expedition .hd-expedition-run-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
#hd-expedition .hd-expedition-run-stat{
  padding:12px;border:1px solid var(--hd-ui-border-color,rgba(90,108,152,.53));border-radius:9px;
  background:rgba(20,29,51,.64);display:flex;flex-direction:column;gap:6px;
}
#hd-expedition .hd-expedition-run-stat small{font-size:.68rem;color:#aab9d4;letter-spacing:.04em;}
#hd-expedition .hd-expedition-run-stat strong{font-size:1.18rem;color:#edf3ff;}
#hd-expedition .hd-expedition-hp-track{height:10px;background:rgba(160,40,54,.3);border:1px solid rgba(161,70,85,.32);border-radius:100px;overflow:hidden;margin:14px 0 10px;}
#hd-expedition .hd-expedition-hp-fill{height:100%;background:linear-gradient(90deg,#c3485c,#ff8495);border-radius:100px;transition:width .3s ease;}
#hd-expedition .hd-expedition-run-clock,#hd-expedition .hd-expedition-upcoming,#hd-expedition .hd-expedition-result{color:#bac9e5;font-size:.82rem;line-height:1.5;margin:12px 0;}
#hd-expedition .hd-expedition-run-clock strong{color:#f1f4fc;font-size:.94rem;}
#hd-expedition .hd-expedition-event{border:1px solid rgba(206,148,78,.68);background:rgba(72,49,24,.2);border-radius:10px;padding:16px;margin:16px 0;}
#hd-expedition .hd-expedition-event h4{font-size:1rem;margin:0 0 8px;color:#f7cb83;}
#hd-expedition .hd-expedition-event p{font-size:.8rem;margin:8px 0;color:#e3d3b9;line-height:1.5;}
#hd-expedition .hd-expedition-event-expiry strong{color:#ffd297;font-weight:900;}
#hd-expedition .hd-expedition-event-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
#hd-expedition .hd-expedition-event-button{
  padding:10px 14px;min-height:40px;border:1px solid rgba(231,176,106,.64);
  border-radius:8px;background:rgba(123,83,43,.28);font-size:.76rem;font-weight:850;
  color:#fff1dd;cursor:pointer;
}
#hd-expedition .hd-expedition-event-button.is-skip{border-color:rgba(104,124,160,.65);background:rgba(20,30,51,.5);color:#c9d7f3;}
#hd-expedition .hd-expedition-event-button:disabled{opacity:.55;cursor:default;}
#hd-expedition .hd-expedition-run-history{border-top:1px solid var(--hd-ui-border-line,rgba(75,92,131,.55));margin-top:18px;padding-top:13px;}
#hd-expedition .hd-expedition-run-history h4{margin:0 0 10px;font-size:.82rem;letter-spacing:.05em;}
#hd-expedition .hd-expedition-run-entry{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid var(--hd-ui-border-line,rgba(65,77,103,.35));font-size:.76rem;line-height:1.35;color:#d3def1;}
#hd-expedition .hd-expedition-run-entry time{color:#88a8d6;font-weight:700;}
@media(max-width:760px){
  #hd-expedition .hd-expedition-run{width:100%;padding:14px;}
  #hd-expedition .hd-expedition-run-stats{grid-template-columns:1fr;}
  #hd-expedition .hd-expedition-run-entry{grid-template-columns:48px minmax(0,1fr);gap:6px;}
}

/* PATCH 63A: manual tester-only fast-forward without any extra polling. */
#hd-expedition .hd-expedition-test-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:12px 0 8px}
#hd-expedition .hd-expedition-test-step{margin:0;max-width:100%;white-space:normal}
#hd-expedition .hd-expedition-test-controls small{display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;flex:1 1 250px;line-height:1.4}
/* PATCH 64: Adventure scene UI — CSS/symbols/existing fighter art only. */
#hd-expedition .hd-exp64-run{width:100%;max-width:1260px;padding:20px 22px;background:rgba(8,12,25,.7)}
#hd-expedition .hd-exp64-run-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}
#hd-expedition .hd-exp64-run-head small{color:var(--hd-accent-light,#d3e0fc);letter-spacing:.12em;font-size:.68rem;font-weight:800}
#hd-expedition .hd-exp64-run-head h3{margin:5px 0;font-size:1.35rem;line-height:1.25;letter-spacing:.02em}
#hd-expedition .hd-exp64-run-head p{margin:0;color:#aab9d4;font-size:.78rem}
#hd-expedition .hd-exp64-state{border:1px solid var(--hd-ui-border-color,#3d5375);padding:8px 12px;border-radius:99px;font-size:.7rem;font-weight:900;white-space:nowrap;background:#101b2c}
#hd-expedition .hd-exp64-state.running{color:#88e6b0}
#hd-expedition .hd-exp64-state.victory{color:#a6edba;border-color:#296d4a}
#hd-expedition .hd-exp64-state.defeat{color:#ff93a2;border-color:#8d3c51}
#hd-expedition .hd-exp64-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#hd-expedition .hd-exp64-tile{display:flex;align-items:center;gap:11px;padding:14px 13px;min-height:78px;border:1px solid var(--hd-ui-border-color,#2b4061);border-radius:10px;background:linear-gradient(135deg,rgba(20,31,54,.85),rgba(8,13,26,.75));min-width:0}
#hd-expedition .hd-exp64-tile-icon{font-size:1.4rem;color:#c5a2f7;min-width:24px;text-align:center}
#hd-expedition .hd-exp64-tile.is-life .hd-exp64-tile-icon{color:#ff8ca3}
#hd-expedition .hd-exp64-tile-copy{display:grid;gap:6px;min-width:0}
#hd-expedition .hd-exp64-tile-copy small{color:var(--hd-accent-light,#d3e0fc);font-size:.64rem;letter-spacing:.06em}
#hd-expedition .hd-exp64-tile-copy strong{font-size:1.15rem;line-height:1.1;color:#edf4ff;overflow-wrap:anywhere}
#hd-expedition .hd-exp64-meter{background:rgba(136,54,78,.3);border-radius:100px;height:8px;overflow:hidden;border:1px solid rgba(100,115,156,.35)}
#hd-expedition .hd-exp64-meter-fill{height:100%;background:linear-gradient(90deg,#ca3f68,#ff809e);transition:width .18s ease}
#hd-expedition .hd-exp64-meter.is-enemy .hd-exp64-meter-fill{background:linear-gradient(90deg,#8d55ce,#c9a4ff)}
#hd-expedition .hd-exp64-remaining{margin:10px 0 18px;display:inline-flex;align-items:center;gap:13px;padding:14px 18px;min-width:235px;max-width:100%;border:1px solid var(--hd-ui-border-color,#465a80);border-radius:10px;background:linear-gradient(105deg,rgba(27,40,69,.95),rgba(14,21,38,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
#hd-expedition .hd-exp64-remaining-icon{font-size:1.75rem;line-height:1;color:#c5a5ef;flex:0 0 auto}
#hd-expedition .hd-exp64-remaining-copy{display:grid;gap:5px;min-width:0}
#hd-expedition .hd-exp64-remaining-copy small{font-size:.68rem;font-weight:850;letter-spacing:.075em;color:var(--hd-accent-light,#d3e0fc)}
#hd-expedition .hd-exp64-remaining strong{display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;font-size:1.45rem;line-height:1.15;font-weight:900;color:#f4e9ff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#hd-expedition .hd-exp64-run-result.lost .hd-exp67-loss-values{font-weight:800;color:#f9c4d0}
@media(max-width:420px){#hd-expedition .hd-exp64-remaining{width:100%;min-width:0}#hd-expedition .hd-exp64-remaining strong{font-size:1.25rem}}
#hd-expedition .hd-exp64-scene-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
#hd-expedition .hd-exp64-scene-head h4{font-size:.94rem;letter-spacing:.04em;margin:0;color:#f7f3fb}
#hd-expedition .hd-exp64-head-icon{color:#e5a3dd}
#hd-expedition .hd-exp64-scene-tag{font-size:.64rem;color:var(--hd-accent-light,#d3e0fc);background:#121d32;border:1px solid var(--hd-ui-border-color,#34435e);padding:5px 8px;border-radius:7px}
#hd-expedition .hd-exp64-battle{border:1px solid rgba(181,82,128,.5);border-radius:12px;padding:18px;margin:17px 0;background:radial-gradient(ellipse at 50% 35%,rgba(69,34,83,.22),transparent 65%),rgba(9,12,24,.75)}
#hd-expedition .hd-exp64-duel{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:stretch;gap:10px}
#hd-expedition .hd-exp64-duelist{display:grid;grid-template-columns:minmax(95px,36%) minmax(0,1fr);gap:12px;border:1px solid var(--hd-ui-border-color,#334360);border-radius:10px;padding:10px;background:rgba(18,25,43,.86);min-width:0}
#hd-expedition .hd-exp64-portrait{aspect-ratio:2/3;width:100%;max-height:235px;min-width:0;overflow:hidden;border-radius:7px;border:1px solid var(--hd-ui-border-inner,rgba(141,155,190,.3));background:#10162a;display:flex;justify-content:center;align-items:center}
#hd-expedition .hd-exp64-portrait img{display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;width:100%;height:100%;object-fit:contain}
#hd-expedition .hd-exp64-image-fallback{font-size:3rem;color:var(--hd-accent-light,#d3e0fc)}
#hd-expedition .hd-exp64-duelist-data{display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:0}
#hd-expedition .hd-exp64-duelist-data small{color:var(--hd-accent-light,#d3e0fc);font-size:.68rem;letter-spacing:.03em}
#hd-expedition .hd-exp64-duelist-data strong{font-size:1rem;line-height:1.25;overflow-wrap:anywhere}
#hd-expedition .hd-exp64-duelist-data b{font-size:.92rem;color:#f4eaf7}
#hd-expedition .hd-exp64-card-credit{line-height:1.3;font-size:.62rem!important;opacity:.9}
#hd-expedition .hd-exp64-vs{display:flex;align-items:center;justify-content:center;font-size:2rem;color:#f0a3c6;font-weight:900;text-shadow:0 0 25px rgba(233,62,133,.55)}
#hd-expedition .hd-exp64-battle-report{margin-top:13px;border:1px solid var(--hd-ui-border-color,#34415e);border-radius:11px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;background:linear-gradient(180deg,rgba(16,23,41,.84),rgba(10,15,28,.92))}
#hd-expedition .hd-exp64-combat-flow{display:grid;gap:10px;min-width:0}
#hd-expedition .hd-exp64-round-pill{justify-self:start;padding:5px 10px;border-radius:999px;border:1px solid var(--hd-ui-border-color,#5c668a);background:#151f37;color:#f4d8ff;font-size:.68rem;font-weight:900;letter-spacing:.08em}
#hd-expedition .hd-exp64-combat-title{font-size:.95rem;line-height:1.35;color:#eef4ff;overflow-wrap:anywhere}
#hd-expedition .hd-exp64-combat-blows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#hd-expedition .hd-exp64-combat-hit{border:1px solid var(--hd-ui-border-color,#374563);border-radius:9px;padding:11px 12px;background:rgba(20,29,48,.82);font-size:.79rem;line-height:1.4;color:#d7e1f5;min-height:58px;display:flex;align-items:center}
#hd-expedition .hd-exp64-combat-hit.is-hero{border-color:rgba(80,124,203,.55);box-shadow:inset 0 0 0 1px rgba(80,124,203,.08)}
#hd-expedition .hd-exp64-combat-hit.is-enemy{border-color:rgba(153,95,201,.52);box-shadow:inset 0 0 0 1px rgba(153,95,201,.08)}
#hd-expedition .hd-exp64-combat-result{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border-radius:10px;flex:0 0 auto;border:1px solid #277451;background:rgba(16,69,46,.24);color:#a9f8c4;font-size:.78rem;min-width:214px}
#hd-expedition .hd-exp64-combat-result.lost{border-color:#a44055;background:rgba(103,26,43,.24);color:#ffadbb}
#hd-expedition .hd-exp64-combat-result[hidden]{display:none}
#hd-expedition .hd-exp64-battle-note{display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;margin-top:10px;font-size:.72rem;color:#9badcb}
#hd-expedition .hd-exp64-event{border:1px solid #916b42;border-radius:12px;padding:18px;background:linear-gradient(110deg,rgba(90,55,26,.2),rgba(15,20,33,.9));margin:18px 0}
#hd-expedition .hd-exp64-event.is-shrine{border-color:#7857ac;background:linear-gradient(110deg,rgba(64,34,102,.25),rgba(13,17,30,.9))}
#hd-expedition .hd-exp64-event.is-room{border-color:#91516d;background:linear-gradient(110deg,rgba(93,28,52,.25),rgba(13,17,30,.9))}
#hd-expedition .hd-exp64-event-body{display:grid;grid-template-columns:165px minmax(0,1fr) 132px;gap:18px;align-items:center}
#hd-expedition .hd-exp64-event-emblem{border:1px solid rgba(165,132,79,.48);border-radius:10px;min-height:176px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:radial-gradient(circle at center,rgba(190,134,63,.2),transparent 75%);color:#efc278}
#hd-expedition .is-shrine .hd-exp64-event-emblem{color:#c7a2ff;background:radial-gradient(circle at center,rgba(133,75,201,.25),transparent 75%)}
#hd-expedition .is-room .hd-exp64-event-emblem{color:#ff9fac;background:radial-gradient(circle at center,rgba(172,52,70,.2),transparent 75%)}
#hd-expedition .hd-exp64-event-emblem span{font-size:3.5rem}
/* PATCH 70A: shared artwork for the chest and all shrine variants. */
#hd-expedition .hd-exp64-event-artwork{display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;width:min(100%,148px);height:140px;object-fit:contain;object-position:center;filter:drop-shadow(0 5px 14px rgba(0,0,0,.35))}
#hd-expedition .hd-exp64-event-emblem:has(.hd-exp64-event-artwork){padding:8px;gap:5px}
@media(max-width:580px){#hd-expedition .hd-exp64-event-artwork{height:115px;width:min(100%,130px)}}
#hd-expedition .hd-exp64-event-emblem small{font-size:.68rem;font-weight:900;letter-spacing:.06em;text-align:center}
#hd-expedition .hd-exp64-event-copy{min-width:0}
#hd-expedition .hd-exp64-event-copy>small{font-size:.67rem;color:#b5a0d8;letter-spacing:.07em;font-weight:800}
#hd-expedition .hd-exp64-event-copy h3{font-size:1.15rem;margin:8px 0}
#hd-expedition .hd-exp64-event-copy p{font-size:.79rem;color:#d4dded;line-height:1.45;margin:0 0 14px}
#hd-expedition .hd-exp64-event-risks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font-size:.75rem}
#hd-expedition .hd-exp64-event-risks span{border:1px solid var(--hd-ui-border-color,#414968);border-radius:8px;padding:11px;line-height:1.35;background:#10182b}
#hd-expedition .hd-exp64-risk-positive{color:#f5cb78}
#hd-expedition .hd-exp64-risk-negative{color:#f1a3af}
#hd-expedition .hd-exp64-event-timer{min-width:0;text-align:center;display:flex;flex-direction:column;gap:9px;border-left:1px solid #4a3954;padding-left:12px}
#hd-expedition .hd-exp64-event-timer small{font-size:.65rem;color:#d1b6d8}
#hd-expedition .hd-exp64-event-timer strong{font-size:1.42rem;color:#ffc0cb;overflow-wrap:anywhere}
#hd-expedition .hd-expedition-event-actions{gap:10px;margin-top:14px}
#hd-expedition .hd-expedition-event-button{font-weight:850;padding:12px 14px;background:#594020;border-color:#d9a35d;color:#fff0d5}
#hd-expedition .is-shrine .hd-expedition-event-button:not(.is-skip){background:#432768;border-color:#a081d4}
#hd-expedition .is-room .hd-expedition-event-button:not(.is-skip){background:#622c40;border-color:#c2667a}
#hd-expedition .hd-exp64-travel{border:1px solid var(--hd-ui-border-color,#344563);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:7px;background:rgba(20,27,48,.62);margin-top:16px}
#hd-expedition .hd-exp64-travel strong{font-size:1rem}
#hd-expedition .hd-exp64-travel span{font-size:.8rem;color:#adbbd2}
#hd-expedition .hd-exp64-run-result{margin:14px 0;border:1px solid #367b57;border-radius:9px;padding:14px;display:flex;flex-direction:column;gap:8px;background:rgba(27,85,53,.2);color:#b5efc4}
#hd-expedition .hd-exp64-run-result.lost{border-color:#a0445c;background:rgba(104,36,55,.2);color:#f5aabb}
#hd-expedition .hd-exp64-outcome{margin:16px 0;border:1px solid var(--hd-ui-border-color,#3e5477);border-radius:10px;padding:14px 16px;display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:center;background:linear-gradient(180deg,rgba(19,28,47,.85),rgba(12,18,33,.95))}
#hd-expedition .hd-exp64-outcome.is-positive{border-color:#37805d;background:linear-gradient(180deg,rgba(21,59,43,.45),rgba(12,18,33,.95));}
#hd-expedition .hd-exp64-outcome.is-negative{border-color:#9f4b61;background:linear-gradient(180deg,rgba(78,26,38,.45),rgba(12,18,33,.95));}
#hd-expedition .hd-exp64-outcome.is-warning{border-color:#a06d45;background:linear-gradient(180deg,rgba(92,54,26,.42),rgba(12,18,33,.95));}
#hd-expedition .hd-exp64-outcome-icon{width:56px;height:56px;border-radius:12px;border:1px solid rgba(122,139,181,.38);display:flex;align-items:center;justify-content:center;font-size:1.6rem;background:rgba(18,28,48,.86)}
#hd-expedition .hd-exp64-outcome-copy{display:grid;gap:5px;min-width:0}
#hd-expedition .hd-exp64-outcome-copy small{font-size:.66rem;letter-spacing:.08em;color:#b9c7de;font-weight:800}
#hd-expedition .hd-exp64-outcome-copy strong{font-size:1rem;color:#f0f5ff;overflow-wrap:anywhere}
#hd-expedition .hd-exp64-outcome-copy span{font-size:.82rem;color:#d0dbef;line-height:1.35}
#hd-expedition .hd-exp64-timeline{margin-top:22px}
#hd-expedition .hd-exp64-timeline h4{font-size:.93rem;margin-bottom:10px}
#hd-expedition .hd-exp64-history-row{grid-template-columns:50px 26px minmax(0,1fr);align-items:center;gap:10px;padding:11px 6px;min-height:42px}
#hd-expedition .hd-exp64-history-icon{color:#c49dd9;text-align:center;font-size:1.04rem}
@media(max-width:1080px){
 #hd-expedition .hd-exp64-event-body{grid-template-columns:120px minmax(0,1fr)}
 #hd-expedition .hd-exp64-event-emblem{min-height:145px}
 #hd-expedition .hd-exp64-event-timer{grid-column:1/-1;border-left:0;border-top:1px solid #4a3954;padding:10px 0 0;flex-direction:row;justify-content:center;gap:14px}
 #hd-expedition .hd-exp64-duelist{grid-template-columns:38% minmax(0,1fr)}
}
@media(max-width:760px){
 #hd-expedition .hd-exp64-run{padding:13px}
 #hd-expedition .hd-exp64-run-head{align-items:flex-start}
 #hd-expedition .hd-exp64-run-head h3{font-size:1rem}
 #hd-expedition .hd-exp64-state{font-size:.6rem;padding:6px}
 #hd-expedition .hd-exp64-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #hd-expedition .hd-exp64-tile{min-height:65px;padding:9px}
 #hd-expedition .hd-exp64-tile-copy strong{font-size:.95rem}
 #hd-expedition .hd-exp64-duel{grid-template-columns:1fr;gap:10px}
 #hd-expedition .hd-exp64-vs{font-size:1.3rem;line-height:1}
 #hd-expedition .hd-exp64-duelist{grid-template-columns:90px minmax(0,1fr)}
 #hd-expedition .hd-exp64-battle-report{grid-template-columns:1fr}
 #hd-expedition .hd-exp64-combat-blows{grid-template-columns:1fr}
 #hd-expedition .hd-exp64-combat-result{min-width:0}
 #hd-expedition .hd-exp64-outcome{grid-template-columns:1fr;justify-items:start}
 #hd-expedition .hd-exp64-outcome-icon{width:48px;height:48px}
 #hd-expedition .hd-exp64-event-body{grid-template-columns:1fr}
 #hd-expedition .hd-exp64-event-emblem{min-height:110px}
 #hd-expedition .hd-exp64-event-emblem span{font-size:2.5rem}
 #hd-expedition .hd-exp64-event-risks{grid-template-columns:1fr}
 #hd-expedition .hd-exp64-event-timer{grid-column:auto}
 #hd-expedition .hd-exp64-history-row{grid-template-columns:43px 24px minmax(0,1fr);gap:7px}
}
@media(prefers-reduced-motion:reduce){#hd-expedition .hd-exp64-meter-fill{transition:none}}


/* PATCH 64B – align with tower, portrait-fit battle frames, compact timeline. */
#hd-expedition { padding:24px 12px 24px; }
#hd-expedition .hd-exp64-run { max-width:none; width:100%; }
/* Hero/opponent card art uses original 600x900 ratio – never pad beside image. */
#hd-expedition .hd-exp64-duelist {
  grid-template-columns:minmax(0,36%) minmax(0,1fr);
  align-content:center;
  align-items:center;
}
#hd-expedition .hd-exp64-portrait {
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  width:100%;
  max-height:none;
  height:auto;
  aspect-ratio:2 / 3;
  align-self:center;
  min-width:0;
  overflow:hidden;
  line-height:0;
}
#hd-expedition .hd-exp64-portrait img {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center;
  margin:0;
  padding:0;
}
#hd-expedition .hd-exp64-log-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 7px;
}
#hd-expedition .hd-exp64-log-head h4 { margin:0; }
#hd-expedition .hd-exp64-log-toggle {
  border:1px solid var(--hd-ui-border-color,#344762);
  border-radius:7px;
  background:rgba(22,31,52,.85);
  color:var(--hd-accent-light,#d3e0fc);
  font-size:.68rem;
  font-weight:800;
  padding:8px 11px;
  cursor:pointer;
}
#hd-expedition .hd-exp64-history-row { min-height:35px; padding:7px 5px; }
@media (max-width:1080px){
  #hd-expedition .hd-exp64-duelist { grid-template-columns:minmax(0,38%) minmax(0,1fr); }
}
@media (max-width:760px){
  #hd-expedition { padding:12px 9px 16px; }
  #hd-expedition .hd-exp64-duelist { grid-template-columns:90px minmax(0,1fr); }
}

/* PATCH 67: Backpack under status, above the combat/event stage. */
#hd-expedition .hd-exp67-bag{margin:15px 0;border:1px solid var(--hd-ui-border-color,#374765);border-radius:10px;background:linear-gradient(120deg,rgba(19,30,53,.82),rgba(9,14,28,.9));overflow:hidden}
#hd-expedition .hd-exp67-bag.is-lost{border-color:#925268}
#hd-expedition .hd-exp67-bag-trigger{appearance:none;display:flex;width:100%;min-width:0;align-items:center;gap:14px;padding:15px;border:0;background:none;color:#eff4ff;cursor:pointer;text-align:left;justify-content:stretch}
#hd-expedition .hd-exp67-bag-trigger:hover{background:rgba(86,104,151,.13)}
#hd-expedition .hd-exp67-bag-icon{display:flex;align-items:center;justify-content:center;font-size:1.55rem;width:40px;height:40px;background:#172442;border:1px solid var(--hd-ui-border-color,#475a81);border-radius:10px;color:#ecc37b;flex:0 0 auto}
#hd-expedition .hd-exp67-bag-copy{flex:1;min-width:0;display:grid;gap:5px}
#hd-expedition .hd-exp67-bag-copy strong{font-size:.88rem;letter-spacing:.03em}
#hd-expedition .hd-exp67-bag-copy small{color:var(--hd-accent-light,#d3e0fc);font-size:.72rem}
#hd-expedition .hd-exp67-bag-summary{font-size:.66rem;color:#d3c19a;font-weight:900;letter-spacing:.04em;white-space:nowrap}
#hd-expedition .hd-exp67-bag-arrow{font-size:1.15rem;color:var(--hd-accent-light,#d3e0fc)}
#hd-expedition .hd-exp67-bag-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:0 15px 14px}
#hd-expedition .hd-exp67-bag-tile{display:flex;align-items:center;gap:10px;min-width:0;padding:11px;border:1px solid var(--hd-ui-border-color,#3b4b69);border-radius:9px;background:rgba(11,18,34,.8)}
#hd-expedition .hd-exp67-bag-currency-icon{display:flex;align-items:center;justify-content:center;color:#f2c979;font-size:1.3rem;width:28px}
#hd-expedition .hd-exp67-bag-tile.is-splitter .hd-exp67-bag-currency-icon{color:#a3c6ff}
#hd-expedition .hd-exp67-bag-tile.is-siegel .hd-exp67-bag-currency-icon{color:#c99df7}
#hd-expedition .hd-exp67-bag-tile>div{display:grid;gap:4px;min-width:0}
#hd-expedition .hd-exp67-bag-tile small{font-size:.65rem;color:var(--hd-accent-light,#d3e0fc)}
#hd-expedition .hd-exp67-bag-tile strong{font-size:1.15rem;color:#fff;overflow-wrap:anywhere}
#hd-expedition .hd-exp67-bag-note{grid-column:1/-1;margin:0;font-size:.72rem;line-height:1.45;color:var(--hd-text,#edf1fa)}
#hd-expedition .hd-exp64-battle-report{align-items:start}
#hd-expedition .hd-exp64-combat-result{align-self:start}
@media(max-width:700px){
 #hd-expedition .hd-exp67-bag-details{grid-template-columns:1fr}
 #hd-expedition .hd-exp67-bag-summary{display:none}
}


/* PATCH 67A – Stable three-column combat row: two hits + reserved outcome slot. */
#hd-expedition .hd-exp64-battle-report {
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
}
#hd-expedition .hd-exp64-combat-flow { min-width:0; }
#hd-expedition .hd-exp64-combat-blows {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(210px,.75fr);
  align-items:stretch;
  gap:10px;
}
#hd-expedition .hd-exp64-combat-hit,
#hd-expedition .hd-exp64-combat-result {
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-height:68px;
  align-self:stretch;
}
#hd-expedition .hd-exp64-combat-result { justify-content:center; }
/* Keep the grid slot during playback; hiding the outcome must not resize the two hits. */
#hd-expedition .hd-exp64-combat-result[hidden] {
  display:flex;
  visibility:hidden;
}
@media(max-width:760px){
  #hd-expedition .hd-exp64-combat-blows { grid-template-columns:minmax(0,1fr); }
  #hd-expedition .hd-exp64-combat-hit,
  #hd-expedition .hd-exp64-combat-result { min-height:58px; height:auto; }
  #hd-expedition .hd-exp64-combat-result[hidden] { display:none; }
}


/* PATCH 67C: compact expedition utilities, unchanged gameplay. */
#hd-expedition .hd-exp68-utility-row{
  display:grid;
  grid-template-columns:minmax(220px,max-content) minmax(0,1fr);
  align-items:start;
  gap:12px;
  margin:12px 0 18px;
}
#hd-expedition .hd-exp68-utility-row .hd-exp64-remaining,
#hd-expedition .hd-exp68-utility-row .hd-exp67-bag{
  margin:0;
  min-width:0;
}
#hd-expedition .hd-exp68-utility-row .hd-exp64-remaining{
  height:auto;
  align-self:start;
  min-width:235px;
}
#hd-expedition .hd-exp68-utility-row .hd-exp67-bag{
  width:100%;
  align-self:start;
}
#hd-expedition .hd-exp68-utility-row .hd-exp67-bag-trigger{
  min-height:0;
  height:auto;
}
#hd-expedition .hd-exp68-footer{margin-top:17px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
#hd-expedition .hd-exp68-footer .hd-expedition-action{margin:0}
#hd-expedition .hd-exp68-footer .hd-expedition-upcoming{margin:0}
@media(max-width:760px){
  #hd-expedition .hd-exp68-utility-row{grid-template-columns:1fr}
  #hd-expedition .hd-exp68-utility-row .hd-exp64-remaining{min-width:0}
}


/* PATCH 67D – readable timeline category symbols. Display only. */
#hd-expedition .hd-exp64-history-row .hd-exp64-history-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:7px;
  background:rgba(90,102,141,.10);
  border:1px solid transparent;
  font-size:1rem;
  line-height:1;
}
#hd-expedition .hd-exp64-history-row.is-battle .hd-exp64-history-icon{color:#bda2ec;border-color:rgba(151,119,216,.20);background:rgba(119,79,170,.12)}
#hd-expedition .hd-exp64-history-row.is-chest .hd-exp64-history-icon{color:#f6c36e;border-color:rgba(229,170,72,.35);background:rgba(181,117,29,.13)}
#hd-expedition .hd-exp64-history-row.is-shrine .hd-exp64-history-icon{color:#d19aff;border-color:rgba(172,108,230,.34);background:rgba(114,61,167,.16)}
#hd-expedition .hd-exp64-history-row.is-room .hd-exp64-history-icon{color:#88c7ed;border-color:rgba(98,171,225,.32);background:rgba(46,108,150,.15)}
#hd-expedition .hd-exp64-history-row.is-trap .hd-exp64-history-icon{color:#ffa085;border-color:rgba(232,116,92,.32);background:rgba(170,66,41,.15)}
#hd-expedition .hd-exp64-history-row.is-victory .hd-exp64-history-icon{color:#83e8b0;border-color:rgba(65,173,115,.30);background:rgba(39,125,74,.17)}
#hd-expedition .hd-exp64-history-row.is-defeat .hd-exp64-history-icon{color:#ff8aa7;border-color:rgba(212,73,104,.34);background:rgba(143,39,65,.17)}
#hd-expedition .hd-exp64-history-row.is-victory>span:last-child{color:#b4f2cf}
#hd-expedition .hd-exp64-history-row.is-defeat>span:last-child{color:#f6b1bf}


/* PATCH 67H — guaranteed rewards are shown inside the existing duration choices.
   All values are previews; the authoritative payout remains in RunEngine.php. */
#hd-expedition .hd-expedition-duration{
  grid-template-rows:24px 20px 24px minmax(38px,1fr) auto;
  min-height:228px;
}
#hd-expedition .hd-expedition-duration-reward{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  min-width:0;
  padding:10px 0 0;
  border-top:1px solid rgba(116,132,166,.30);
}
#hd-expedition .hd-expedition-duration-reward-title{
  font-size:.63rem;
  line-height:1.3;
  color:#a9e5bf;
  font-weight:900;
  letter-spacing:.055em;
}
#hd-expedition .hd-expedition-duration-reward-values{
  display:flex;
  gap:4px 12px;
  flex-wrap:wrap;
}
#hd-expedition .hd-expedition-duration-reward-item{
  white-space:nowrap;
  font-size:.72rem;
  color:#ecf2ff;
  font-weight:750;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
#hd-expedition .hd-expedition-duration-reward-item b{color:#edc977;font-size:.84rem;}
#hd-expedition .hd-expedition-duration-reward-item:nth-child(2) b{color:#9abcf9;}
#hd-expedition .hd-expedition-duration-reward-item:nth-child(3) b{color:#cb9ef5;}
#hd-expedition .hd-expedition-duration-reward-bonus{
  font-size:.68rem;
  line-height:1.35;
  color:#9fb0ca;
  font-weight:500;
}
/* Category text accents also apply to already saved log entries. */
#hd-expedition .hd-exp64-history-row.is-chest>span:last-child{color:#f3d69b}
#hd-expedition .hd-exp64-history-row.is-shrine>span:last-child{color:#d6b3ff}
#hd-expedition .hd-exp64-history-row.is-room>span:last-child{color:#a2d8f5}
#hd-expedition .hd-exp64-history-row.is-trap>span:last-child{color:#ffb19c}
#hd-expedition .hd-exp64-history-row.is-battle>span:last-child{color:#d5d9ef}
#hd-expedition .hd-exp64-history-row.is-victory>span:last-child{color:#b4f2cf}
#hd-expedition .hd-exp64-history-row.is-defeat>span:last-child{color:#f6b1bf}
@media(max-width:760px){
 #hd-expedition .hd-expedition-duration{min-height:222px}
}

/* PATCH 67I: unobtrusive initial loading; no added PHP polling. */
#hd-expedition .hd-exp67i-loading {
  display:flex;align-items:center;gap:12px;min-height:70px;
  padding:15px 17px;border:1px solid rgba(75,93,133,.5);
  border-radius:10px;background:rgba(14,21,40,.6);
  color:#c3d1ee;font-size:.82rem;
}
#hd-expedition .hd-exp67i-loading-icon {font-size:1.5rem;color:#b6a0e9}

/* PATCH 69A: bonus preview under the original 3-card grid. */
#hd-expedition .hd-expedition-bonus-preview{
  width:80%;max-width:1056px;margin:-6px 0 18px;padding:11px 13px;
  display:grid;gap:5px;border-radius:9px;
  border:1px solid rgba(109,132,180,.48);background:rgba(17,26,47,.72);
}
#hd-expedition .hd-expedition-bonus-preview strong{font-size:.74rem;color:#cde1ff;letter-spacing:.04em}
#hd-expedition .hd-expedition-bonus-preview span{font-size:.79rem;color:#e3eafa;line-height:1.45}
#hd-expedition .hd-expedition-bonus-preview small{font-size:.72rem;color:#aab8d3;line-height:1.4}
@media(max-width:1100px){#hd-expedition .hd-expedition-bonus-preview{width:100%;max-width:800px}}
@media(max-width:760px){#hd-expedition .hd-expedition-bonus-preview{width:100%;max-width:420px}}

/* PATCH 70: five readable shrine identities, shared art slot reserved for future image. */
#hd-expedition .hd-exp64-event.is-shrine-life{border-color:#3d956b}
#hd-expedition .hd-exp64-event.is-shrine-power{border-color:#c55d5d}
#hd-expedition .hd-exp64-event.is-shrine-protection{border-color:#5a94d5}
#hd-expedition .hd-exp64-event.is-shrine-curse{border-color:#9d62b6}
#hd-expedition .hd-exp64-event.is-shrine-luck{border-color:#d6ad4d}
#hd-expedition .hd-exp64-event.is-shrine-life .hd-exp64-event-emblem{color:#86e5b4}
#hd-expedition .hd-exp64-event.is-shrine-power .hd-exp64-event-emblem{color:#ff9d96}
#hd-expedition .hd-exp64-event.is-shrine-protection .hd-exp64-event-emblem{color:#99c8ff}
#hd-expedition .hd-exp64-event.is-shrine-luck .hd-exp64-event-emblem{color:#ffe19b}

/* PATCH 70D: display server-verified shield on the existing LP meter. */
#hd-expedition .hd-exp70d-shield-track{position:relative;overflow:hidden}
#hd-expedition .hd-exp70d-shield-fill{position:absolute;top:0;bottom:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#357ddb,#70d7ff);border-radius:100px;box-shadow:0 0 6px rgba(86,185,255,.55);transition:left .2s ease,width .2s ease}
#hd-expedition .hd-exp70d-shield-label{display:inline-block;margin:0 0 10px;color:#83cbff;font-size:.73rem;font-weight:900;letter-spacing:.015em}
#hd-expedition .hd-exp64-duelist-data .hd-exp70d-shield-label{margin:1px 0 0}

/* PATCH 71: visible reserved slot for server-owned expedition-exclusive card drops. */
#hd-expedition .hd-exp71-card-slot{grid-column:1/-1;border:1px solid #65508a;border-radius:9px;background:linear-gradient(115deg,rgba(56,32,90,.32),rgba(11,18,34,.82));padding:13px;display:grid;gap:10px;min-width:0}
#hd-expedition .hd-exp71-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:850;font-size:.73rem;color:#dcc3ff;letter-spacing:.035em}
#hd-expedition .hd-exp71-card-heading small{color:#bca4d6;font-size:.66rem;white-space:nowrap}
#hd-expedition .hd-exp71-card-empty,#hd-expedition .hd-exp71-card-row{display:flex;align-items:center;gap:10px;border:1px dashed #51466e;border-radius:7px;padding:11px;color:#bac6dc;font-size:.76rem;min-width:0}
#hd-expedition .hd-exp71-card-row{border-style:solid;justify-content:space-between;color:#f0e5ff}
#hd-expedition .hd-exp71-card-row small{color:#e8c678}
#hd-expedition .hd-exp71-card-symbol{font-size:1.15rem;color:#cba8ff;flex:none}
#hd-expedition .hd-exp71-card-placeholder{min-width:0}

/* PATCH 71A: simulated exclusive card finds never appear as actual payouts. */
#hd-expedition .hd-exp71a-preview-label { color:#f1bd71; font-weight:700; font-size:.64rem; letter-spacing:.025em; }
#hd-expedition .hd-exp71a-source { color:#9cadca; font-size:.64rem; }

/* PATCH 71B: two compact visual card finds side by side; no change to payouts. */
#hd-expedition .hd-exp71b-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
#hd-expedition .hd-exp71b-card-item{display:grid;grid-template-columns:84px minmax(0,1fr);gap:13px;align-items:center;min-width:0;padding:10px;border:1px solid #52446f;border-radius:8px;background:rgba(8,12,27,.52)}
#hd-expedition .hd-exp71b-card-art{width:84px;aspect-ratio:2/3;overflow:hidden;border:1px solid #77629b;border-radius:6px;background:#171426;display:flex;align-items:center;justify-content:center}
#hd-expedition .hd-exp71b-card-art img{display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;width:100%;height:100%;object-fit:cover}
#hd-expedition .hd-exp71b-card-art-fallback{font-size:1.8rem;color:#cda9ff}
#hd-expedition .hd-exp71b-card-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;overflow-wrap:anywhere}
#hd-expedition .hd-exp71b-card-index{font-size:.59rem;color:#a99ac7;font-weight:800;letter-spacing:.05em}
#hd-expedition .hd-exp71b-card-name{font-size:.8rem;line-height:1.3;color:#f0e7ff}
#hd-expedition .hd-exp71b-card-stars{font-size:.9rem;color:#f2cf7b;letter-spacing:.08em}
#hd-expedition .hd-exp71b-card-origin{font-size:.69rem;color:#bbc8e4}
#hd-expedition .hd-exp71b-card-example{font-size:.63rem;color:#a89bbd}
#hd-expedition .hd-exp71b-card-info .hd-exp71a-preview-label{font-size:.62rem}
@media(max-width:820px){#hd-expedition .hd-exp71b-card-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){#hd-expedition .hd-exp71b-card-item{grid-template-columns:70px minmax(0,1fr);gap:9px}#hd-expedition .hd-exp71b-card-art{width:70px}}

/* PATCH 72: preview-only rare-item row, same three-column backpack grid. */
#hd-expedition .hd-exp72-rare-title{grid-column:1/-1;color:#d6b8fd;font-weight:900;font-size:.72rem;letter-spacing:.035em;padding:5px 0 0}
#hd-expedition .hd-exp72-rare-tile.is-glueckslos .hd-exp67-bag-currency-icon{color:#8bddab}
#hd-expedition .hd-exp72-rare-tile.is-goldlos .hd-exp67-bag-currency-icon{color:#f1cb75}
#hd-expedition .hd-exp72-rare-tile.is-rahmenkiste .hd-exp67-bag-currency-icon{color:#c99df7}


/* PATCH 110: Expeditionsbonus unter den Stat-Feldern und optisch deutlicher */
#hd-expedition .hd-expedition-fighter-body {
  grid-template-rows:48px 22px 64px 52px;
  gap:10px;
}
#hd-expedition .hd-expedition-fighter-bonus {
  display:grid;
  grid-template-rows:auto auto;
  align-content:center;
  gap:4px;
  min-height:52px;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(112, 196, 255, .72);
  background:
    linear-gradient(180deg, rgba(22, 62, 120, .92), rgba(11, 32, 70, .94)),
    radial-gradient(circle at top right, rgba(106,196,255,.20), transparent 45%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 0 1px rgba(72,132,214,.14),
    0 8px 20px rgba(5,16,36,.25);
}
#hd-expedition .hd-expedition-fighter-bonus-label {
  display:block;
  font-size:.62rem;
  line-height:1.1;
  color:#beddff;
  letter-spacing:.09em;
  text-transform:uppercase;
  font-weight:900;
}
#hd-expedition .hd-expedition-fighter-bonus-value {
  display:block;
  font-size:.86rem;
  line-height:1.25;
  color:#ffffff;
  font-weight:900;
}
#hd-expedition .hd-expedition-fighter-bonus.is-empty {
  border-color:rgba(78,90,121,.35);
  background:linear-gradient(180deg, rgba(16, 21, 39, .42), rgba(11, 16, 31, .38));
  box-shadow:none;
}
#hd-expedition .hd-expedition-fighter-bonus.is-empty::before {
  content:'';
}
@media(max-width:760px) {
  #hd-expedition .hd-expedition-fighter-body {
    grid-template-rows:48px 22px 64px 52px;
  }
}


/* PATCH 111: Expeditionsbonus vereinfachen und farblich stärker hervorheben */
#hd-expedition .hd-expedition-fighter-bonus {
  border:1px solid rgba(123, 232, 168, .80);
  background:
    linear-gradient(180deg, rgba(18, 78, 54, .96), rgba(10, 52, 37, .96)),
    radial-gradient(circle at top right, rgba(171,255,208,.16), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 0 1px rgba(81, 184, 123, .18),
    0 8px 20px rgba(6, 28, 18, .28);
}
#hd-expedition .hd-expedition-fighter-bonus-label {
  color:#d8ffe9;
}
#hd-expedition .hd-expedition-fighter-bonus-value {
  color:#ffffff;
  font-size:.92rem;
}
#hd-expedition .hd-expedition-fighter-bonus.is-empty {
  border-color:rgba(78,90,121,.35);
  background:linear-gradient(180deg, rgba(16, 21, 39, .42), rgba(11, 16, 31, .38));
  box-shadow:none;
}

/* PATCH 130: 20-second server-authoritative escape decision. */
#hd-expedition .hd-exp130-retreat{border-color:#528d77;background:linear-gradient(120deg,rgba(18,70,53,.35),rgba(11,21,32,.96))}
#hd-expedition .hd-exp130-retreat-body{display:grid;gap:12px}
#hd-expedition .hd-exp130-retreat-body h3{margin:0;color:#c0f5d7;font-size:1.18rem}
#hd-expedition .hd-exp130-retreat-body p{margin:0;color:#e0eaf1;line-height:1.5}
#hd-expedition .hd-exp130-retreat .hd-expedition-event-actions{display:flex;gap:10px;flex-wrap:wrap}
#hd-expedition .hd-exp130-retreat .hd-exp130-leave{background:#205b41;color:#edfff2;border-color:#77c69a}
#hd-expedition .hd-exp130-retreat .hd-exp64-event-timer{text-align:left;border:0;padding:0;align-items:flex-start}


/* PATCH 132: compact backpack layout on desktop. */
@media(min-width:1200px){
 #hd-expedition .hd-exp67-bag-details{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
 #hd-expedition .hd-exp67-bag-tile{padding:10px;min-height:76px}
 #hd-expedition .hd-exp67-bag-currency-icon{width:24px;font-size:1.15rem}
 #hd-expedition .hd-exp67-bag-tile small{font-size:.61rem}
 #hd-expedition .hd-exp67-bag-tile strong{font-size:1.02rem}
 #hd-expedition .hd-exp72-rare-title{display:none}
}
@media(min-width:1200px) and (max-width:1360px){
 #hd-expedition .hd-exp67-bag-details{gap:8px}
 #hd-expedition .hd-exp67-bag-tile{padding:9px}
 #hd-expedition .hd-exp67-bag-currency-icon{width:22px;font-size:1.05rem}
 #hd-expedition .hd-exp67-bag-tile strong{font-size:.95rem}
}

/* PATCH 134 – Expedition panels use the same lighter translucent glass feeling as tower panels. */
#hd-expedition .hd-exp64-run,
#hd-expedition .hd-exp67-bag,
#hd-expedition .hd-exp64-battle,
#hd-expedition .hd-exp64-event,
#hd-expedition .hd-exp64-travel,
#hd-expedition .hd-exp64-outcome,
#hd-expedition .hd-exp64-battle-report,
#hd-expedition .hd-exp64-duelist,
#hd-expedition .hd-exp64-tile,
#hd-expedition .hd-exp64-remaining,
#hd-expedition .hd-exp67-bag-tile,
#hd-expedition .hd-exp64-combat-hit,
#hd-expedition .hd-exp64-combat-result,
#hd-expedition .hd-exp64-run-result,
#hd-expedition .hd-exp64-event-risks span,
#hd-expedition .hd-exp64-event-timer,
#hd-expedition .hd-exp64-event-emblem,
#hd-expedition .hd-exp64-outcome-icon,
#hd-expedition .hd-exp67-bag-icon,
#hd-expedition .hd-exp64-round-pill,
#hd-expedition .hd-exp64-scene-tag,
#hd-expedition .hd-exp64-state,
#hd-expedition .hd-exp64-log-toggle,
#hd-expedition .hd-expedition-duration,
#hd-expedition .hd-expedition-stat,
#hd-expedition .hd-expedition-fighter,
#hd-expedition .hd-expedition-fighter-body,
#hd-expedition .hd-expedition-fighter-bonus {
  backdrop-filter:blur(7px) saturate(112%);
  -webkit-backdrop-filter:blur(7px) saturate(112%);
}

#hd-expedition .hd-exp64-run{
  background:rgba(12,11,19,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
#hd-expedition .hd-exp64-tile{
  background:linear-gradient(135deg,rgba(20,31,54,.62),rgba(8,13,26,.54));
}
#hd-expedition .hd-exp64-remaining{
  background:linear-gradient(105deg,rgba(27,40,69,.68),rgba(14,21,38,.58));
}
#hd-expedition .hd-exp64-battle{
  background:radial-gradient(ellipse at 50% 35%,rgba(69,34,83,.18),transparent 65%),rgba(9,12,24,.58);
}
#hd-expedition .hd-exp64-duelist{
  background:rgba(18,25,43,.62);
}
#hd-expedition .hd-exp64-battle-report{
  background:linear-gradient(180deg,rgba(16,23,41,.62),rgba(10,15,28,.62));
}
#hd-expedition .hd-exp64-combat-hit{
  background:rgba(20,29,48,.58);
}
#hd-expedition .hd-exp64-combat-result{
  background:rgba(16,69,46,.18);
}
#hd-expedition .hd-exp64-combat-result.lost{
  background:rgba(103,26,43,.18);
}
#hd-expedition .hd-exp64-event{
  background:linear-gradient(110deg,rgba(90,55,26,.14),rgba(15,20,33,.56));
}
#hd-expedition .hd-exp64-event.is-shrine{
  background:linear-gradient(110deg,rgba(64,34,102,.16),rgba(13,17,30,.56));
}
#hd-expedition .hd-exp64-event.is-room{
  background:linear-gradient(110deg,rgba(93,28,52,.16),rgba(13,17,30,.56));
}
#hd-expedition .hd-exp64-event-risks span,
#hd-expedition .hd-exp64-scene-tag,
#hd-expedition .hd-exp64-round-pill,
#hd-expedition .hd-exp64-state,
#hd-expedition .hd-exp64-log-toggle,
#hd-expedition .hd-exp67-bag-icon,
#hd-expedition .hd-exp64-outcome-icon{
  background:rgba(16,24,42,.52);
}
#hd-expedition .hd-exp64-event-emblem{
  background:radial-gradient(circle at center,rgba(190,134,63,.17),transparent 75%),rgba(16,21,36,.24);
}
#hd-expedition .is-shrine .hd-exp64-event-emblem{
  background:radial-gradient(circle at center,rgba(133,75,201,.18),transparent 75%),rgba(16,21,36,.24);
}
#hd-expedition .is-room .hd-exp64-event-emblem{
  background:radial-gradient(circle at center,rgba(172,52,70,.16),transparent 75%),rgba(16,21,36,.24);
}
#hd-expedition .hd-exp64-event-timer{
  background:rgba(16,20,35,.14);
}
#hd-expedition .hd-exp64-travel{
  background:rgba(20,27,48,.46);
}
#hd-expedition .hd-exp64-run-result{
  background:rgba(27,85,53,.16);
}
#hd-expedition .hd-exp64-run-result.lost{
  background:rgba(104,36,55,.16);
}
#hd-expedition .hd-exp64-outcome{
  background:linear-gradient(180deg,rgba(19,28,47,.58),rgba(12,18,33,.60));
}
#hd-expedition .hd-exp64-outcome.is-positive{
  background:linear-gradient(180deg,rgba(21,59,43,.24),rgba(12,18,33,.60));
}
#hd-expedition .hd-exp64-outcome.is-negative{
  background:linear-gradient(180deg,rgba(78,26,38,.24),rgba(12,18,33,.60));
}
#hd-expedition .hd-exp64-outcome.is-warning{
  background:linear-gradient(180deg,rgba(92,54,26,.24),rgba(12,18,33,.60));
}
#hd-expedition .hd-exp67-bag{
  background:linear-gradient(120deg,rgba(19,30,53,.58),rgba(9,14,28,.60));
}
#hd-expedition .hd-exp67-bag-tile{
  background:rgba(11,18,34,.50);
}
#hd-expedition .hd-expedition-fighter{
  background:rgba(10,14,28,.54);
}
#hd-expedition .hd-expedition-fighter.is-selected{
  background:rgba(61,86,136,.17);
}
#hd-expedition .hd-expedition-fighter-body{
  background:rgba(10,14,28,.08);
}
#hd-expedition .hd-expedition-fighter-bonus{
  background:linear-gradient(180deg, rgba(13,35,69,.54), rgba(9,22,45,.50));
}
#hd-expedition .hd-expedition-stat{
  background:linear-gradient(180deg, rgba(19,26,48,.58), rgba(13,19,36,.58));
}
#hd-expedition .hd-expedition-duration{
  background:linear-gradient(180deg,rgba(16,24,42,.56),rgba(10,15,28,.52));
}


/* PATCH 135 – consistent, transparent expedition glass panels.
   Inner panels must NOT blur the motif behind them: blur looks like opacity
   when applied repeatedly to nested panels. Keep artwork and contrast intact. */
#hd-expedition .hd-expedition-pagehead,
#hd-expedition .hd-exp64-run,
#hd-expedition .hd-exp64-tile,
#hd-expedition .hd-exp64-remaining,
#hd-expedition .hd-exp67-bag,
#hd-expedition .hd-exp67-bag-tile,
#hd-expedition .hd-exp64-battle,
#hd-expedition .hd-exp64-duelist,
#hd-expedition .hd-exp64-event,
#hd-expedition .hd-exp130-retreat,
#hd-expedition .hd-exp64-outcome,
#hd-expedition .hd-exp64-battle-report,
#hd-expedition .hd-exp64-run-result,
#hd-expedition .hd-exp64-travel,
#hd-expedition .hd-exp71-card-slot,
#hd-expedition .hd-exp71b-card-item,
#hd-expedition .hd-expedition-fighter,
#hd-expedition .hd-expedition-duration,
#hd-expedition .hd-expedition-stat {
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
/* Section shells: let the same background motif shine through as in the tower. */
#hd-expedition .hd-expedition-pagehead {background:rgba(10,12,23,.21)}
#hd-expedition .hd-exp64-run {background:rgba(9,11,21,.16)}
#hd-expedition .hd-exp64-summary .hd-exp64-tile {
  background:linear-gradient(135deg,rgba(20,31,54,.30),rgba(8,13,26,.24));
}
#hd-expedition .hd-exp64-remaining {
  background:linear-gradient(105deg,rgba(27,40,69,.34),rgba(14,21,38,.25));
}
#hd-expedition .hd-exp67-bag {
  background:linear-gradient(120deg,rgba(19,30,53,.27),rgba(9,14,28,.24));
}
#hd-expedition .hd-exp67-bag-tile {background:rgba(11,18,34,.24)}
#hd-expedition .hd-exp64-battle {
  background:radial-gradient(ellipse at 50% 35%,rgba(69,34,83,.12),transparent 65%),rgba(9,12,24,.22);
}
#hd-expedition .hd-exp64-duelist {background:rgba(18,25,43,.27)}
#hd-expedition .hd-exp64-battle-report {background:rgba(10,15,28,.24)}
#hd-expedition .hd-exp64-travel {background:rgba(20,27,48,.24)}
#hd-expedition .hd-exp64-run-result {background:rgba(27,85,53,.11)}
#hd-expedition .hd-exp64-run-result.lost {background:rgba(104,36,55,.11)}
#hd-expedition .hd-exp64-outcome {background:rgba(12,18,33,.26)}
#hd-expedition .hd-exp64-outcome.is-positive {background:rgba(21,59,43,.22)}
#hd-expedition .hd-exp64-outcome.is-negative {background:rgba(78,26,38,.22)}
#hd-expedition .hd-exp64-outcome.is-warning {background:rgba(92,54,26,.22)}
#hd-expedition .hd-exp64-event {background:rgba(55,37,24,.22)}
#hd-expedition .hd-exp64-event.is-shrine {background:rgba(41,29,63,.22)}
#hd-expedition .hd-exp64-event.is-room {background:rgba(61,24,42,.22)}
#hd-expedition .hd-exp130-retreat {background:rgba(15,49,37,.23)}
#hd-expedition .hd-exp71-card-slot {
  background:linear-gradient(115deg,rgba(56,32,90,.20),rgba(11,18,34,.25));
}
#hd-expedition .hd-exp71b-card-item {background:rgba(8,12,27,.23)}
#hd-expedition .hd-expedition-fighter {background:rgba(10,14,28,.30)}
#hd-expedition .hd-expedition-fighter.is-selected {background:rgba(61,86,136,.16)}
#hd-expedition .hd-expedition-duration {background:rgba(16,24,42,.29)}
#hd-expedition .hd-expedition-stat {background:rgba(19,26,48,.30)}
/* Keep the small controls legible, without obscuring the surrounding panels. */
#hd-expedition .hd-exp64-combat-hit {background:rgba(20,29,48,.27)}
#hd-expedition .hd-exp64-event-risks span {background:rgba(16,24,42,.29)}
#hd-expedition .hd-exp64-outcome-icon {background:rgba(16,24,42,.35)}
#hd-expedition .hd-exp67-bag-icon {background:rgba(16,24,42,.35)}
#hd-expedition .hd-exp64-state {background:rgba(16,24,42,.35)}
#hd-expedition .hd-exp64-scene-tag {background:rgba(16,24,42,.35)}

/* Override the old global blur rule for nested expedition elements. */
#hd-expedition .hd-exp64-tile,
#hd-expedition .hd-exp67-bag-tile,
#hd-expedition .hd-exp64-combat-hit,
#hd-expedition .hd-exp64-event-risks span,
#hd-expedition .hd-exp64-outcome-icon,
#hd-expedition .hd-exp67-bag-icon,
#hd-expedition .hd-exp64-scene-tag,
#hd-expedition .hd-exp64-state {
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* Header status boxes and inner expedition details also share the same finish. */
#hd-expedition .hd-tower-head-stat {background:rgba(13,15,27,.27)}
#hd-expedition .hd-expedition-fighter-body {background:rgba(10,14,28,.04)}
#hd-expedition .hd-expedition-fighter-bonus {background:rgba(12,48,34,.34)}
#hd-expedition .hd-expedition-fighter-bonus.is-empty {background:rgba(16,21,39,.18)}
#hd-expedition .hd-exp64-event-emblem {background:rgba(24,24,39,.18)}
#hd-expedition .hd-exp64-outcome-icon {background:rgba(16,24,42,.30)}


/* PATCH 138 – Exact tower-style transparency hierarchy.
   V77 tower uses a transparent outer dashboard, 30%-opaque sections and
   48%-opaque inset cards. Expedition previously retained the globally
   themed 80%-opaque parent, making every nested panel look opaque. */
#hd-expedition {
  background:transparent !important;
  background-image:none !important;
}
/* Same surface alpha as tower pagehead, overview panes and combat view. */
#hd-expedition .hd-expedition-pagehead,
#hd-expedition .hd-exp64-run,
#hd-expedition .hd-exp64-battle,
#hd-expedition .hd-exp67-bag,
#hd-expedition .hd-exp64-remaining,
#hd-expedition .hd-exp64-event,
#hd-expedition .hd-exp64-event.is-shrine,
#hd-expedition .hd-exp64-event.is-room,
#hd-expedition .hd-exp130-retreat,
#hd-expedition .hd-exp64-travel,
#hd-expedition .hd-exp64-outcome,
#hd-expedition .hd-exp64-outcome.is-positive,
#hd-expedition .hd-exp64-outcome.is-negative,
#hd-expedition .hd-exp64-outcome.is-warning,
#hd-expedition .hd-exp64-run-result,
#hd-expedition .hd-exp64-run-result.lost,
#hd-expedition .hd-exp71-card-slot {
  background:rgba(8,12,22,.30) !important;
  background-image:none !important;
}
/* An expedition combat panel is equivalent to a tower side panel. */
#hd-expedition .hd-exp64-duelist,
#hd-expedition .hd-exp64-battle-report,
#hd-expedition .hd-exp64-event-body,
#hd-expedition .hd-exp64-event-risks span {
  background:rgba(8,12,22,.30) !important;
  background-image:none !important;
}
/* Inset cards match tower fighter/enemy cards: readable .48 alpha. */
#hd-expedition .hd-exp64-summary .hd-exp64-tile,
#hd-expedition .hd-exp67-bag-tile,
#hd-expedition .hd-exp71b-card-item,
#hd-expedition .hd-expedition-fighter,
#hd-expedition .hd-expedition-stat,
#hd-expedition .hd-expedition-duration,
#hd-expedition .hd-exp64-combat-hit {
  background:rgba(8,12,22,.48) !important;
  background-image:none !important;
}
/* Keep category/selection highlights but no additional opaque base. */
#hd-expedition .hd-expedition-fighter.is-selected {
  background:rgba(42,55,87,.48) !important;
}
#hd-expedition .hd-expedition-fighter-body {
  background:transparent !important;
}
/* Nested glass must not blur the wallpaper repeatedly. */
#hd-expedition .hd-expedition-pagehead,
#hd-expedition .hd-exp64-run,
#hd-expedition .hd-exp64-battle,
#hd-expedition .hd-exp64-summary .hd-exp64-tile,
#hd-expedition .hd-exp64-duelist,
#hd-expedition .hd-exp67-bag,
#hd-expedition .hd-exp67-bag-tile,
#hd-expedition .hd-expedition-fighter,
#hd-expedition .hd-expedition-stat,
#hd-expedition .hd-expedition-duration,
#hd-expedition .hd-exp64-event,
#hd-expedition .hd-exp130-retreat,
#hd-expedition .hd-exp71-card-slot {
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}


/* PATCH 204: compact recent run summary under the expedition protocol. */
#hd-expedition .hd-exp72-recent{border-top:1px solid var(--hd-ui-border-line,rgba(75,92,131,.55));padding-top:13px}
#hd-expedition .hd-exp72-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,42%);gap:14px;align-items:center;padding:8px 10px;border:1px solid var(--hd-ui-border-color,#344762);border-radius:10px;background:rgba(11,18,34,.78);margin-top:10px}
#hd-expedition .hd-exp72-row.is-win{box-shadow:inset 3px 0 rgba(73,176,112,.42)}
#hd-expedition .hd-exp72-row.is-loss{box-shadow:inset 3px 0 rgba(197,78,95,.40)}
#hd-expedition .hd-exp72-main{display:grid;gap:3px;min-width:0}
#hd-expedition .hd-exp72-badge{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:0;border:0;background:none;border-radius:0;font-size:.72rem;font-weight:900;letter-spacing:.08em}
#hd-expedition .hd-exp72-badge.is-win{color:#baf2cb}
#hd-expedition .hd-exp72-badge.is-loss{color:#f5bcc7}
#hd-expedition .hd-exp72-title{font-size:.84rem;line-height:1.35;color:var(--hd-text,#edf1fa);overflow-wrap:anywhere}
#hd-expedition .hd-exp72-summary{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;min-width:0;line-height:1.3}
#hd-expedition .hd-exp72-meta{font-size:.75rem;font-weight:850;color:var(--hd-accent-light,#d3e0fc)}
#hd-expedition .hd-exp72-loot{display:grid;gap:3px;justify-items:end;text-align:right;min-width:0}
#hd-expedition .hd-exp72-loot small{font-size:.66rem;font-weight:800;letter-spacing:.06em;color:var(--hd-accent-light,#d3e0fc)}
#hd-expedition .hd-exp72-loot-text{font-size:.78rem;line-height:1.45;color:var(--hd-text,#edf1fa);overflow-wrap:anywhere}
#hd-expedition .hd-exp72-row.is-loss .hd-exp72-loot-text{color:#f1c1cb}
@media (max-width:760px){
  #hd-expedition .hd-exp72-row{grid-template-columns:1fr;gap:10px}
  #hd-expedition .hd-exp72-loot{justify-items:start;text-align:left}
}
