/* 漓江路亚志 — 挂机版补充样式
 * 状态轨 / 回线进度 / 大物警示 / 渔获流 / 挂机操作台
 */

/* ---------- 大物压边 ---------- */
.big-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(201, 79, 54, 0) 42%, rgba(150, 40, 26, 0.5) 100%);
  transition: opacity 0.35s ease;
}
.big-vignette.on { opacity: 1; animation: vigPulse 1.1s ease-in-out infinite alternate; }
@keyframes vigPulse { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- 挂机状态面板 ---------- */
.idle-panel {
  position: relative;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 4;
  width: 100%;
  padding: 0.86em 1.05em 0.95em;
  font-size: var(--hud-fs);
  background: rgba(5, 22, 22, 0.72);
  border: 1px solid rgba(224, 216, 186, 0.16);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
}
.idle-head {
  display: flex;
  align-items: baseline;
  gap: 0.67em;
  margin-bottom: 0.76em;
}
.idle-dot {
  width: 0.57em;
  height: 0.57em;
  background: #7FBF9B;
  box-shadow: 0 0 0 3px rgba(127, 191, 155, 0.16);
  animation: dotBlink 1.6s ease-in-out infinite;
}
.idle-dot.off { background: #8A958B; box-shadow: none; animation: none; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.idle-head em {
  font-style: normal;
  font-size: 0.81em;
  letter-spacing: 0.16em;
  color: rgba(190, 205, 190, 0.62);
}
.idle-head b {
  font-family: var(--serif);
  font-size: 1.43em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #F2EAD4;
  margin-left: auto;
}

.speed-row {
  display: flex;
  align-items: center;
  gap: 0.57em;
  margin: 0 0 0.76em;
  padding: 0.48em 0.57em;
  background: rgba(224, 216, 186, 0.07);
  border: 1px solid rgba(224, 216, 186, 0.14);
}
.speed-row .speed-label {
  font-size: 0.81em;
  letter-spacing: 0.12em;
  color: rgba(190, 205, 190, 0.66);
  flex: none;
}
.speed-row .speed-tabs {
  display: flex;
  gap: 0.29em;
  flex: none;
}
.speed-row .speed-tabs button {
  padding: 0.19em 0.67em;
  font-family: inherit;
  font-size: 0.95em;
  letter-spacing: 0.08em;
  color: rgba(224, 216, 186, 0.72);
  background: rgba(5, 22, 22, 0.5);
  border: 1px solid rgba(224, 216, 186, 0.2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.speed-row .speed-tabs button:hover { color: #F2EAD4; border-color: rgba(224, 216, 186, 0.42); }
.speed-row .speed-tabs button.on {
  color: #12221E;
  background: #D8C48E;
  border-color: #E7D6A8;
  font-weight: 700;
}
.speed-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.76em;
  letter-spacing: 0.04em;
  color: rgba(190, 205, 190, 0.6);
  white-space: nowrap;
}

/* 钓层：紧跟在收线速度下面的一行 */
.layer-row { margin-top: -3px; }
.layer-row .layer-tabs button {
  min-width: 2.3em;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
.layer-row .layer-tabs button:disabled {
  cursor: default;
  opacity: 0.4;
}
.layer-row.is-off { background: rgba(224, 216, 186, 0.03); }
.layer-row.is-off .speed-label { opacity: 0.6; }
.layer-row.is-off .layer-tabs button.on {
  color: rgba(242, 234, 212, 0.7);
  background: rgba(216, 196, 142, 0.22);
  border-color: rgba(231, 214, 168, 0.3);
  font-weight: 400;
}

.budget-row {
  display: flex;
  align-items: center;
  gap: 0.57em;
  margin: 0 0 0.76em;
  padding: 0 0.57em;
}
.budget-row .budget-label {
  font-size: 0.81em;
  letter-spacing: 0.12em;
  color: rgba(190, 205, 190, 0.66);
  flex: none;
}
.budget-row .budget-bar {
  position: relative;
  flex: 1;
  height: 0.38em;
  min-width: 3.8em;
  background: rgba(4, 18, 18, 0.62);
  border: 1px solid rgba(224, 216, 186, 0.16);
  overflow: hidden;
}
.budget-row .budget-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #8FA98C, #D8C48E);
  transition: width 0.4s linear;
}
.budget-row.is-low .budget-bar i {
  background: linear-gradient(90deg, #A65A3F, #D08A5E);
}
.budget-row.is-low #budgetText { color: #E0A278; }
.budget-row em {
  flex: none;
  font-style: normal;
  font-size: 0.76em;
  letter-spacing: 0.03em;
  color: rgba(224, 216, 186, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.step-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.38em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-rail li {
  display: flex;
  flex-direction: column;
  gap: 0.38em;
  font-size: 0.86em;
  letter-spacing: 0.02em;
  color: rgba(180, 197, 183, 0.42);
  transition: color 0.2s;
}
.step-rail li i {
  display: block;
  height: 0.29em;
  background: rgba(160, 182, 168, 0.2);
  transition: background 0.25s, box-shadow 0.25s;
}
.step-rail li.done { color: rgba(210, 220, 205, 0.6); }
.step-rail li.done i { background: rgba(190, 210, 192, 0.45); }
.step-rail li.on { color: #F0DFB2; }
.step-rail li.on i {
  background: #D9C38B;
  box-shadow: 0 0 0 1px rgba(217, 195, 139, 0.35), 0 0 8px rgba(217, 195, 139, 0.45);
  animation: stepPulse 1.4s ease-in-out infinite;
}
@keyframes stepPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- 回线进度 ---------- */
.haul-track {
  position: relative;
  height: 12px;
  margin: 2px 0 5px;
  background: #082021;
  border: 1px solid rgba(190, 210, 196, 0.22);
  overflow: hidden;
}
.haul-fill {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, #7FB79B 0 6px, #6AA189 6px 8px);
  transition: width 0.12s linear;
}
.fight-hud.danger .haul-fill { background: repeating-linear-gradient(90deg, #D9583A 0 6px, #C0452C 6px 8px); }
.haul-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(6, 22, 22, 0.55) 24px 25px);
}
.haul-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(200, 214, 198, 0.7);
  margin-bottom: 6px;
}
.haul-meta b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: #EFE2BC; }

.fight-hud { width: 272px; }
.fight-hud.big { border-color: rgba(201, 79, 54, 0.62); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4), 0 0 22px rgba(201, 79, 54, 0.18); }
.fight-hud .tension-track { margin-bottom: 7px; }
.fight-hud .tension-track::after {
  content: '';
  position: absolute;
  right: 12%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(230, 120, 80, 0.5);
}

/* ---------- 大物警示 ---------- */
.big-alert {
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: 6;
  transform: translate(-50%, -50%) scale(0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
}
.big-alert.show { animation: bigIn 2.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes bigIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  22% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -56%) scale(1.02); }
}
.big-alert span {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #FBEFD4;
  text-shadow: 0 3px 0 rgba(120, 34, 20, 0.55), 0 0 26px rgba(201, 79, 54, 0.55);
  padding: 0 10px;
}
.big-alert small {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #F0E0C2;
  padding: 3px 10px;
  background: rgba(90, 26, 18, 0.72);
  border: 1px solid rgba(240, 210, 170, 0.28);
}
.big-alert.legendary span { color: #FFE9A8; text-shadow: 0 3px 0 rgba(120, 74, 12, 0.6), 0 0 34px rgba(217, 164, 65, 0.75); }
.big-alert.legendary small { background: rgba(84, 60, 12, 0.78); border-color: rgba(240, 210, 130, 0.45); }

/* ---------- 渔获流（左下，压在鱼线条上方） ---------- */
.catch-feed {
  position: absolute;
  left: 16px;
  bottom: calc(14px + 3.3em);
  z-index: 5;
  width: 21.3em;
  font-size: var(--hud-fs);
  display: flex;
  flex-direction: column;
  gap: 0.38em;
}
.feed-title {
  display: flex;
  align-items: baseline;
  gap: 0.48em;
  justify-content: flex-start;
  font-size: 0.81em;
  letter-spacing: 0.12em;
  color: rgba(190, 205, 190, 0.55);
  padding: 0 0.19em 0.29em;
}
.feed-title b {
  font-family: var(--mono);
  font-size: 1.14em;
  font-weight: 400;
  color: #E9DDB8;
  margin-left: auto;
}
.feed-title i {
  font-style: normal;
  font-size: 0.76em;
  color: rgba(217, 195, 139, 0.7);
}
.feed-empty {
  font-size: 0.9em;
  letter-spacing: 0.1em;
  text-align: left;
  color: rgba(190, 205, 190, 0.42);
  padding: 0.48em 0.76em;
  border-left: 2px solid rgba(190, 205, 190, 0.2);
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 0.76em;
  padding: 0.29em 0.67em 0.29em 0.38em;
  background: rgba(5, 22, 22, 0.6);
  border-left: 2px solid rgba(190, 205, 190, 0.35);
  animation: feedIn 0.34s ease-out;
}
@keyframes feedIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
/* 搏鱼面板固定在右上，鱼获缩到两行，免得压住 */
#sceneWrap.is-fighting .catch-feed .feed-row:nth-child(n+4) { display: none; }
.feed-row.r-rare { border-left-color: #D9A441; }
.feed-row.r-legendary { border-left-color: #E2743F; background: rgba(46, 24, 12, 0.66); }
.feed-row.fail { border-left-color: rgba(201, 79, 54, 0.7); opacity: 0.86; }
.feed-row.r-junk { border-left-color: rgba(138, 149, 139, 0.75); opacity: 0.9; }
.fish-tip.is-lock { color: #C9A96A; }
.feed-row.r-junk img { filter: grayscale(0.35); }
.feed-row.r-junk b { color: rgba(226, 221, 200, 0.8); }
.feed-row img {
  width: 2.86em;
  height: 1.9em;
  object-fit: contain;
  image-rendering: auto; /* 原图是插画，缩到这么小交给浏览器平滑 */
  flex: none;
}
.feed-x {
  width: 2.86em;
  text-align: center;
  font-size: 1.05em;
  color: #C97A62;
  flex: none;
}
/* 缩略图取不到时的文字兜底，占位宽度与 .feed-x 一致，行高不跳 */
.feed-alt {
  width: 2.86em;
  height: 1.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.05em;
  font-weight: 700;
  color: rgba(226, 221, 200, 0.55);
  flex: none;
}
.feed-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.feed-main b {
  font-family: var(--serif);
  font-size: 1.05em;
  font-weight: 700;
  color: #EFE7D1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-main span { font-family: var(--mono); font-size: 0.81em; color: rgba(200, 214, 198, 0.6); }
.feed-row i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.86em;
  color: #D9C38B;
}

/* ---------- 浮动小提示 ---------- */
.float-note {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 6;
  transform: translate(-50%, 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 14px;
  background: rgba(6, 24, 24, 0.82);
  border: 1px solid rgba(216, 206, 178, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 78%;
}
.float-note.in { opacity: 1; transform: translate(-50%, 0); }
.float-note b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #EFE7D1;
  white-space: nowrap;
}
.float-note span {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(214, 222, 206, 0.72);
  text-align: center;
}
.float-note.bad { border-color: rgba(201, 79, 54, 0.5); }
.float-note.bad b { color: #F3C4B2; }

/* ---------- 操作台 ---------- */
.dock { gap: 16px; }
.ops {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(232, 225, 200, 0.14);
}
.ops-actions { display: flex; gap: 8px; }

/* ---------- 自动钓控制台（船坞内 · 红色助力左侧） ---------- */
.ops .idle-panel {
  position: static;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "head head"
    "speed layer"
    "rail rail";
  align-items: center;
  gap: 3px 10px;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px 6px;
  background: rgba(4, 20, 20, 0.52);
  border: 1px solid rgba(224, 216, 186, 0.15);
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: border-color 0.2s;
}
.ops .idle-panel:hover { border-color: rgba(224, 216, 186, 0.3); }
.ops .idle-panel .idle-head {
  grid-area: head;
  margin: 0;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}
.ops .idle-panel .idle-dot { width: 5px; height: 5px; box-shadow: 0 0 0 2px rgba(127, 191, 155, 0.14); }
.ops .idle-panel .idle-head em { font-size: 9.5px; letter-spacing: 0.1em; white-space: nowrap; }
.ops .idle-panel .idle-head b { font-size: 13.5px; margin-left: 0; letter-spacing: 0.04em; white-space: nowrap; }
.ops .idle-panel .idle-eta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: #D9C38B;
}
.ops .idle-panel #budgetRow {
  margin: 0 0 0 auto;
  padding: 0;
  gap: 5px;
}
.ops .idle-panel #budgetRow .budget-label { font-size: 9px; letter-spacing: 0.06em; }
.ops .idle-panel #budgetRow .budget-bar { display: none; }
.ops .idle-panel #budgetRow em { font-size: 9px; white-space: nowrap; }
.ops .idle-panel .speed-row,
.ops .idle-panel .layer-row {
  margin: 0;
  padding: 2px 6px;
  gap: 5px;
  background: rgba(224, 216, 186, 0.06);
}
.ops .idle-panel #speedRow { grid-area: speed; }
.ops .idle-panel #layerRow { grid-area: layer; }
.ops .idle-panel .speed-row .speed-label { font-size: 9px; letter-spacing: 0.04em; }
.ops .idle-panel .speed-row .speed-tabs { gap: 2px; }
.ops .idle-panel .speed-row .speed-tabs button { padding: 1px 6px; font-size: 10px; letter-spacing: 0; line-height: 1.35; }
.ops .idle-panel .speed-row em { display: none; }
.ops .idle-panel .layer-row .layer-tabs button { min-width: 20px; padding: 1px 0; }
.ops .idle-panel .step-rail { grid-area: rail; gap: 4px; }
.ops .idle-panel .step-rail li { font-size: 8px; gap: 2px; letter-spacing: 0.02em; }
.ops .idle-panel .step-rail li i { height: 2px; }
.btn-boost, .btn-auto {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  padding: 0 13px;
  border: 1.5px solid;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s, box-shadow 0.08s, opacity 0.15s;
  white-space: nowrap;
}
.btn-boost { background: #C94F36; color: #FFF3DD; border-color: #8E3523; }
.btn-auto { background: #234B45; color: #EAF0DC; border-color: #3E6A60; }
.btn-boost .ico, .btn-auto .ico { width: 18px; height: 18px; }
.btn-boost span, .btn-auto span { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.15; }
.btn-boost small, .btn-auto small {
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.btn-boost:hover:not(:disabled), .btn-auto:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4); }
.btn-boost:active:not(:disabled), .btn-auto:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4); }
.btn-boost:disabled { opacity: 0.45; filter: grayscale(0.5); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3); }
.btn-boost.cooling { background: #4A3B30; border-color: #6B5344; }

.chip-btn { position: relative; }
.chip-btn.has-new::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  background: #D9A441;
  box-shadow: 0 0 0 2px rgba(6, 24, 24, 0.9);
  animation: dotBlink 1.8s ease-in-out infinite;
}

/* ---------- 面板附加 ---------- */
.gear-note-strip {
  padding: 7px 11px;
  margin-bottom: 10px;
  font-size: 10px;
  line-height: 1.6;
  color: #4F5C51;
  background: rgba(233, 226, 206, 0.65);
  border-left: 3px solid #B49A5E;
}
.gear-note-strip b { font-family: var(--mono); font-weight: 400; color: #1B2927; }

.meta-chip.warn { color: #8E3523; border-color: rgba(201, 79, 54, 0.4); background: rgba(201, 79, 54, 0.08); }

.offline-box { display: flex; flex-direction: column; gap: 12px; }
/* 结算摘要：时长 + 额度关系 + 渔获 + 掉落，一句话讲完 */
.offline-sum {
  font-size: 12px;
  line-height: 1.75;
  color: #1B2927;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(35, 48, 44, 0.18);
  overflow-wrap: anywhere;
}
.offline-over { margin: 0; font-size: 10.5px; line-height: 1.7; color: #8A6A2C; }
.offline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(35, 48, 44, 0.16);
  border: 1px solid rgba(35, 48, 44, 0.16);
}
.offline-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #F2EBD9;
}
.offline-grid span { font-size: 9.5px; letter-spacing: 0.12em; color: #7A8478; }
.offline-grid b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
  color: #1B2927;
}
.offline-grid b em { font-style: normal; font-family: var(--sans); font-size: 10px; color: #6E7A6C; }
.offline-grid b .ico { width: 16px; height: 16px; color: #A87B25; }
.offline-note { margin: 0; font-size: 10.5px; line-height: 1.7; color: #5E6A5E; }
.sheet-offline { max-width: 420px; }

/* 挂机补结算掉出来的装备：一件一行，左边一条品质色，点进去看参数 */
.offline-drops {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(35, 48, 44, 0.16);
  border: 1px solid rgba(35, 48, 44, 0.16);
}
.od-head {
  padding: 8px 12px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #7A8478;
  background: #EDE5D2;
}
.od-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 19px;
  font-family: inherit;
  text-align: left;
  background: #F2EBD9;
  border: 0;
  cursor: pointer;
}
/* 品质竖条：以前是 `border-left: 3px solid var(--q)`，色芯直接压在米色底上，
   白 #d8d8d8 只有 1.20、黄 #ffd23f 只有 1.21 —— 两档跟底色糊成一片，
   而且整行只有这一处承载档位颜色（行内原先没有徽章）。
   现在改成「深色轨道里嵌一条品质色芯」：外层 7px 的 #1B2927 轨道对底色 12.68，
   色芯四周都有深色包边，各档对轨道 4.26~10.58，白档从 1.20 提到 10.58（8.8 倍）。
   品质色本身一个色值都没改，改的是它跟什么挨着。 */
.od-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: #1B2927;
}
.od-row::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 1px;
  background: var(--q, #B4A88C);
}
.od-row:hover { background: #F6EFDF; }
.od-name { font-size: 12.5px; color: #1B2927; }
/* 结算行徽章：原先这个面板根本没有徽章，白色只剩一条看不见的竖条。
   徽章自带 var(--q) 实底 + #10201F 深字（各档 4.76~11.80，全部过 4.5），
   等于给每一档补了一处与底色无关的颜色锚点。 */
.od-row .q-badge { margin-left: 6px; vertical-align: 1px; }
/* 品质名不能再拿 --q 当文字色：这个面板是 #F2EBD9 米色浅底，
   六档品质色压上去的对比度是 白1.20 / 蓝2.32 / 黄1.21 / 紫2.76 / 橙1.96 / 红2.97，
   全部低于小字号 4.5 的底线 —— 白档 ΔL*=6.8、黄档 ΔL*=7.3，两档几乎贴在底色上，
   玩家在结算面板里根本读不出「白」和「黄」，只会看见相对深一点的蓝。
   这就是「一晚上只出蓝装」那条反馈的真实来源（掉落本身正常）。
   所以文字一律改深色，品质色只留在左侧 3px 竖条 + q-badge 徽章上，
   颜色信息一点没少，但六档都读得出来。 */
.od-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: #43524C; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .ops { gap: 9px; padding-left: 10px; }
  .ops .idle-panel { padding: 4px 8px 5px; }
  .btn-boost, .btn-auto { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 940px) {
  .ops .idle-panel #budgetRow { display: none; }
}

@media (max-width: 860px) {
  .catch-feed { left: 12px; bottom: calc(12px + 3.3em); width: 194px; }
  .ops .idle-panel { max-width: 232px; }
  .ops .idle-panel .idle-head b { font-size: 12.5px; }
  .btn-boost span, .btn-auto span { display: none; }
  .btn-boost, .btn-auto { width: 48px; padding: 0; justify-content: center; }
}

@media (max-width: 860px) {
  .ops .idle-panel .speed-row em { display: none; }
  .ops .idle-panel .speed-row .speed-tabs button { padding: 1px 5px; }
}

@media (max-width: 720px) {
  .catch-feed { display: none; }

  .fight-hud {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 8px 10px;
  }
  .fight-hud .fight-name { font-size: 14px; }
  .fight-hud .haul-track { height: 10px; }

  .big-alert { top: 40%; }
  .big-alert span { font-size: 36px; }
  .big-alert small { font-size: 9px; }

  .float-note { top: 36%; padding: 6px 11px; }
  .float-note b { font-size: 13px; }
  .float-note span { font-size: 9px; }

  .dock { gap: 8px; }
  .ops {
    padding-left: 0;
    border-left: 0;
    gap: 8px;
    width: 100%;
  }
  .ops .idle-panel { width: auto; flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "speed" "layer" "rail"; }
  .btn-boost, .btn-auto { width: auto; height: 48px; padding: 0 10px; }
  .btn-boost span, .btn-auto span { display: flex; }
  .toast { bottom: 176px; }
}

@media (max-width: 720px) and (orientation: portrait) {
  .ops .idle-panel { padding: 5px 8px 6px; gap: 3px 8px; }
  .ops .idle-panel .idle-head em { font-size: 8px; }
  .ops .idle-panel .idle-head b { font-size: 11.5px; }
  .ops .idle-panel .speed-row .speed-tabs button { font-size: 9.5px; padding: 1px 4px; }
  .ops .idle-panel .step-rail li { font-size: 7.5px; gap: 2px; }
  .fight-hud { bottom: 6px; left: 6px; right: 6px; padding: 5px 8px 6px; }
  .fight-hud .fight-top { margin-bottom: 4px; }
  .fight-hud .fight-bottom { display: none; }
  .fight-hud .haul-meta { margin-bottom: 4px; }
  .big-alert { top: 46%; }
  .big-alert span { font-size: 30px; letter-spacing: 0.16em; }
  .big-alert small { font-size: 8.5px; padding: 2px 8px; }
  .float-note { top: 40%; max-width: 90%; }
  .btn-boost, .btn-auto { height: 54px; }
  .btn-boost span, .btn-auto span { font-size: 12px; }
  .toast { bottom: 210px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .ops .idle-panel { padding: 4px 8px 5px; gap: 3px 8px; }
  .catch-feed { left: 10px; bottom: calc(10px + 3.3em); }
  .catch-feed .feed-row:nth-child(n+4) { display: none; }
  .btn-boost, .btn-auto { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .idle-dot, .step-rail li.on i, .big-vignette.on { animation: none !important; }
}

/* ---------- 成就入口 ---------- */
.chip-btn em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #94AFA4;
}
.chip-btn.has-new em { color: #D9A441; }

/* ---------- 成就面板（纸面） ---------- */
.ach-top {
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(35, 48, 44, 0.055);
  border: 1px solid rgba(35, 48, 44, 0.22);
}
.ach-list { display: flex; flex-direction: column; gap: 8px; }
.ach-row {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 252, 240, 0.5);
  border: 1px solid rgba(35, 48, 44, 0.16);
}
.ach-row.done {
  background: rgba(217, 164, 65, 0.1);
  border-color: rgba(166, 120, 40, 0.4);
}
.ach-ico {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #4A5A4E;
  background: rgba(35, 48, 44, 0.05);
  border: 1px solid rgba(35, 48, 44, 0.22);
}
.ach-ico .ico { width: 18px; height: 18px; }
.ach-row.done .ach-ico {
  color: #E7C877;
  background: #23302C;
  border-color: #23302C;
}
.ach-main { flex: 1; min-width: 0; }
.ach-title { display: flex; align-items: center; gap: 8px; }
.ach-title b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.ach-title i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #8A6A22;
  padding: 1px 5px;
  border: 1px solid rgba(166, 120, 40, 0.5);
}
.ach-main p { margin: 2px 0 6px; font-size: 11px; color: #6A7468; }
.ach-bar { height: 4px; background: rgba(35, 48, 44, 0.14); }
.ach-bar i { display: block; height: 100%; background: var(--seal); transition: width 0.4s; }
.ach-row.done .ach-bar i { background: #23302C; }
.ach-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #5E6A5E;
}
.ach-reward { display: inline-flex; align-items: center; gap: 3px; color: #8A6A22; }
.ach-reward .ico { width: 12px; height: 12px; }

@media (max-width: 720px) {
  .ach-row { padding: 9px 10px; gap: 9px; }
  .ach-ico { flex-basis: 30px; height: 30px; }
  .ach-title b { font-size: 14px; }
  .ach-main p { font-size: 10.5px; }
}

/* ---------- 未知鱼种 ---------- */
.fight-name.is-unknown {
  letter-spacing: 0.2em;
  color: #A9C2B6;
}
.fight-name.is-unknown::before {
  content: '?';
  margin-right: 4px;
  color: #D9A441;
}
.big-alert.huge span { letter-spacing: 0.32em; color: #FFE2C6; }
.big-alert.huge small { background: rgba(104, 26, 16, 0.8); }

/* ---------- 中央揭示层：中鱼揭晓 / 成就达成 ---------- */
.reveal {
  position: fixed;
  inset: 0;
  padding: 20px;
  z-index: 70;
  display: grid;
  place-items: center;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.reveal[hidden] { display: none; }
.reveal.is-on { opacity: 1; }
.reveal-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(4, 20, 20, 0.55), rgba(2, 12, 12, 0.9) 78%);
}
.reveal-card {
  position: relative;
  width: min(420px, calc(100% - 36px));
  padding: 16px 18px 18px;
  text-align: center;
  color: #F0E7CE;
  background: linear-gradient(180deg, rgba(19, 48, 44, 0.97), rgba(8, 26, 25, 0.98));
  border: 2px solid #2E4A44;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.16), 0 20px 46px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.9);
  opacity: 0;
  isolation: isolate;
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.reveal.is-on .reveal-card { transform: none; opacity: 1; }
.reveal-card.is-legendary,
.reveal-card.is-ach {
  border-color: #8A6A22;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.45), 0 0 64px rgba(217, 164, 65, 0.24), 0 20px 46px rgba(0, 0, 0, 0.6);
}

.rv-glow {
  position: absolute;
  left: 50%;
  top: 86px;
  width: 250px;
  height: 230px;
  margin-left: -125px;
  border-radius: 50%;
  background: var(--rc, #9FBFB2);
  z-index: -1;
  opacity: 0.18;
  filter: blur(32px);
  pointer-events: none;
}
.rv-glow.is-gold { background: #D9A441; opacity: 0.22; }

.rv-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--rc, #9FBFB2);
}
.rv-tag.is-gold { color: #E7C877; }
.rv-tag .ico { width: 12px; height: 12px; }

.rv-art {
  position: relative;
  height: 176px;
  margin: 4px 0 0;
  display: grid;
  place-items: center;
}
.rv-art img {
  max-height: 168px;
  max-width: 92%;
  object-fit: contain;
  image-rendering: auto; /* 原图是插画，不做最近邻 */
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.55));
  animation: rvPop 0.52s cubic-bezier(0.16, 1.3, 0.36, 1) both;
}
@keyframes rvPop {
  from { transform: scale(0.7); opacity: 0; }
  62% { transform: scale(1.04); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}
.rv-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 9px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #FFF6E2;
  background: var(--seal);
  border: 1px solid #8E3523;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.32);
}

.rv-name {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #F5EDD8;
}
.is-legendary .rv-name { color: #F7DFA0; }
.rv-weight {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 1px;
}
.rv-weight b {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #F2D98A;
}
.rv-weight span { font-size: 11px; color: #A9B8AC; }

.rv-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.rv-chip {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  color: #D9C38B;
  background: rgba(217, 195, 139, 0.07);
  border: 1px solid rgba(217, 195, 139, 0.26);
}
.rv-chip.is-gold { color: #2A2418; background: #D9A441; border-color: #D9A441; }

.rv-btn {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: #1A2320;
  background: #D9C38B;
  border: 0;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  transition: background 0.14s, transform 0.1s, box-shadow 0.1s;
}
.rv-btn:hover { background: #EBD9A8; }
.rv-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); }
.rv-btn:focus-visible { outline: 2px solid #F2D98A; outline-offset: 2px; }

.rv-hint {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #7E948A;
}
.rv-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(217, 195, 139, 0.14);
}
.rv-timer i { display: block; width: 0; height: 100%; background: rgba(217, 195, 139, 0.55); }

/* 成就内容 */
.rv-ach-one { position: relative; padding: 2px 0 4px; }
.rv-ach-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #E7C877;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.4);
}
.rv-ach-ico.is-big { width: 58px; height: 58px; margin: 12px auto 12px; }
.rv-ach-ico .ico { width: 22px; height: 22px; }
.rv-ach-one h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: #F7DFA0;
}
.rv-ach-one p { margin: 5px 0 9px; font-size: 11.5px; letter-spacing: 0.02em; color: #A9B8AC; }
.rv-reward { font-family: var(--mono); font-size: 13px; color: #E7C877; }
.rv-ach-count {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: #F7DFA0;
}
.rv-ach-list { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.rv-ach-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  background: rgba(217, 164, 65, 0.06);
  border: 1px solid rgba(217, 164, 65, 0.22);
}
.rv-ach-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-ach-txt b {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #F0E7CE;
}
.rv-ach-txt span { font-size: 10px; color: #9DAEA2; }
.rv-ach-row i { font-style: normal; font-family: var(--mono); font-size: 12px; color: #E7C877; }

@media (max-width: 720px) {
  .reveal-card { width: calc(100% - 28px); padding: 14px 14px 16px; }
  .rv-art { height: 148px; }
  .rv-art img { max-height: 140px; }
  .rv-name { font-size: 25px; }
  .rv-weight b { font-size: 28px; }
  .rv-btn { height: 42px; font-size: 14px; }
  .rv-ach-one h2 { font-size: 21px; }
}

@media (max-height: 520px) {
  .reveal-card { padding: 10px 14px 12px; }
  .rv-art { height: 116px; }
  .rv-art img { max-height: 110px; }
  .rv-name { font-size: 21px; }
  .rv-weight b { font-size: 23px; }
  .rv-btn { margin-top: 10px; height: 36px; }
  .rv-hint, .rv-timer { display: none; }
  .rv-ach-ico.is-big { width: 46px; height: 46px; margin: 8px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-art img { animation: none; }
}
