.hzbgs-page-hangqing-dashi {
  --hq-up: #e11d2e;
  --hq-down: #0f8a4b;
  --hq-danger: #c4292e;
  --hq-card: rgba(255, 255, 255, 0.92);
  --hq-ink: #1d1d1f;
  --hq-muted: #6e6e73;
  --hq-line: rgba(0, 0, 0, 0.08);
  --hq-accent: #0071e3;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(0, 113, 227, 0.12), transparent 58%),
    radial-gradient(900px 480px at 92% 0%, rgba(184, 146, 46, 0.12), transparent 55%),
    #f5f5f7;
}

.hq-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.hq-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.hq-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hq-ink);
}

.hq-hero p {
  margin: 8px 0 0;
  color: var(--hq-muted);
  font-size: 14px;
  max-width: 640px;
  line-height: 1.55;
}

.hq-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hq-mascot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hq-mascot-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hq-line);
  border-radius: 20px;
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hq-mascot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.hq-mascot-art {
  height: 120px;
  width: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, #f3f0ea 62%, #e8e4dc 100%);
  overflow: hidden;
}

.hq-mascot-art img {
  max-height: 112px;
  width: auto;
  height: auto;
  max-width: 92px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
  animation: hqMascotFloat 3.6s ease-in-out infinite;
}

.hq-mascot-card[data-mascot="tutu"] .hq-mascot-art img {
  animation-delay: 0.4s;
}

.hq-mascot-card[data-mascot="xixi"] .hq-mascot-art img {
  animation-delay: 0.8s;
}

@keyframes hqMascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hq-mascot-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.hq-mascot-role {
  font-size: 12px;
  color: var(--hq-accent);
  font-weight: 600;
  margin-top: 2px;
}

.hq-mascot-line {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--hq-muted);
  line-height: 1.45;
  min-height: 2.9em;
}

.hq-level-mascot {
  width: 64px;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
}

.hq-level-mascot img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.hq-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.hq-section-head h2 {
  margin-bottom: 6px;
}

.hq-section-buddy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.95);
  border: 1px solid var(--hq-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--hq-muted);
  white-space: nowrap;
}

.hq-section-buddy img {
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hq-quiz-host {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hq-quiz-host img {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hq-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.hq-stat-cash .v {
  color: #0f8a4b;
}

.hq-stat .v.is-up { color: var(--hq-up); }
.hq-stat .v.is-down { color: var(--hq-down); }

.hq-broke-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 159, 10, 0.35);
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.12), rgba(255, 255, 255, 0.92));
}

.hq-broke-banner[hidden] {
  display: none !important;
}

.hq-broke-banner img {
  max-height: 64px;
  width: auto;
}

.hq-broke-banner strong {
  display: block;
  font-size: 15px;
}

.hq-broke-banner p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--hq-muted);
  line-height: 1.45;
}

.hq-inventory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.hq-inv-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--hq-line);
  background: #fff;
  font-size: 13px;
}

.hq-inv-item em {
  font-style: normal;
  color: var(--hq-muted);
}

.hq-inv-value {
  font-size: 13px;
  color: var(--hq-muted);
  align-self: center;
}

.hq-mine-panel {
  width: min(920px, 100%);
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(255, 180, 80, 0.12), transparent 60%),
    #fff;
}

.hq-mine-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--hq-muted);
}

.hq-mine-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.hq-mine-hud > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.95);
  border: 1px solid var(--hq-line);
  font-weight: 600;
  color: var(--hq-ink);
}

.hq-mine-hud b {
  color: #0f8a4b;
}

.hq-mine-canvas-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 80, 40, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 34px rgba(80, 50, 20, 0.14);
  background: #c9a57a;
}

.hq-mine-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

.hq-mine-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 11px;
  color: rgba(40, 28, 16, 0.72);
  background: rgba(255, 248, 235, 0.82);
  border: 1px solid rgba(120, 80, 40, 0.15);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hq-mine-bag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  min-height: 28px;
  font-size: 12px;
  color: var(--hq-muted);
}

.hq-mine-chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 210, 120, 0.28), rgba(0, 113, 227, 0.1));
  border: 1px solid rgba(0, 113, 227, 0.16);
  color: #0b3c76;
  font-weight: 700;
}

.hq-stat {
  background: var(--hq-card);
  border: 1px solid var(--hq-line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.hq-stat .k {
  font-size: 12px;
  color: var(--hq-muted);
}

.hq-stat .v {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hq-ink);
}

.hq-level-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.hq-level-badge.hq-level-pop {
  animation: hqPop 0.55s ease;
}

@keyframes hqPop {
  0% { transform: scale(0.98); box-shadow: 0 0 0 rgba(0, 113, 227, 0); }
  40% { transform: scale(1.02); box-shadow: 0 12px 30px rgba(0, 113, 227, 0.18); }
  100% { transform: scale(1); }
}

.hq-level-symbol {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--hq-line);
  font-weight: 800;
  color: var(--hq-accent);
}

.hq-level-meta strong {
  display: block;
  font-size: 18px;
}

.hq-level-meta span,
.hq-level-meta em {
  display: block;
  font-style: normal;
  color: var(--hq-muted);
  font-size: 12px;
  margin-top: 2px;
}

.hq-level-track {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hq-level-track > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0071e3, #2f8cff);
  transition: width 0.45s ease;
}

.hq-section {
  background: var(--hq-card);
  border: 1px solid var(--hq-line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 88px;
}

.hq-section h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.hq-section .hq-sub {
  margin: 0 0 14px;
  color: var(--hq-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hq-howto {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  counter-reset: hqstep;
}

.hq-howto li {
  counter-increment: hqstep;
  position: relative;
  padding: 14px 14px 14px 48px;
  border-radius: 16px;
  background: rgba(245, 245, 247, 0.9);
  border: 1px solid var(--hq-line);
}

.hq-howto li::before {
  content: counter(hqstep);
  position: absolute;
  left: 12px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0071e3;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hq-howto strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.hq-howto span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hq-muted);
}

.hq-manual-h {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hq-glossary {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hq-glossary div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(245, 245, 247, 0.75);
  border: 1px solid var(--hq-line);
}

.hq-glossary dt {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.hq-glossary dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hq-muted);
}

.hq-manual-more {
  border: 1px solid var(--hq-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 6px 6px;
}

.hq-manual-more summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hq-ink);
}

.hq-manual-more summary::-webkit-details-marker {
  display: none;
}

.hq-manual-more summary::after {
  content: '展开';
  float: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--hq-accent);
}

.hq-manual-more[open] summary::after {
  content: '收起';
}

.hq-manual-more .hq-glossary {
  margin: 0 6px 8px;
}

.hq-desk {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 12px;
  min-height: 380px;
}

.hq-ticker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hq-tick {
  width: 100%;
  text-align: left;
  border: 1px solid var(--hq-line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--hq-ink);
}

.hq-tick:hover {
  border-color: rgba(0, 113, 227, 0.28);
}

.hq-tick.is-on {
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

.hq-tick-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.hq-tick-name {
  font-weight: 700;
  font-size: 14px;
}

.hq-tick-chg {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hq-tick.is-up .hq-tick-chg { color: var(--hq-up); }
.hq-tick.is-down .hq-tick-chg { color: var(--hq-down); }

.hq-tick-price {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hq-tick-pos {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--hq-muted);
}

.hq-chart-pane {
  background: #161a22;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

.hq-quote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 12px 14px 8px;
  color: rgba(255, 255, 255, 0.88);
}

.hq-quote-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.hq-quote-name small {
  margin-left: 6px;
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.hq-quote-px {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.hq-quote-px.is-up,
.hq-quote-chg.is-up { color: #ff5a63; }
.hq-quote-px.is-down,
.hq-quote-chg.is-down { color: #3dd68c; }

.hq-quote-chg {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hq-quote-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.hq-chart-wrap {
  position: relative;
  padding: 0 8px 8px;
}

.hq-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 360px;
}

.hq-predict-row.is-focus {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

.hq-asset-card {
  border-radius: 16px;
  border: 1px solid var(--hq-line);
  background: #fff;
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hq-asset-card:hover {
  transform: translateY(-2px);
}

.hq-asset-card.is-up {
  border-color: rgba(225, 29, 46, 0.32);
}

.hq-asset-card.is-down {
  border-color: rgba(15, 138, 75, 0.32);
}

.hq-asset-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.hq-asset-name {
  font-weight: 700;
  font-size: 15px;
}

.hq-asset-name span {
  color: var(--hq-muted);
  font-weight: 600;
  font-size: 12px;
}

.hq-asset-unit,
.hq-asset-open {
  color: var(--hq-muted);
  font-size: 11px;
  margin-top: 2px;
}

.hq-asset-chg {
  font-size: 13px;
  font-weight: 700;
}

.hq-asset-card.is-up .hq-asset-chg { color: var(--hq-up); }
.hq-asset-card.is-down .hq-asset-chg { color: var(--hq-down); }

.hq-asset-price {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hq-price-flash {
  animation: hqFlash 0.35s ease;
}

@keyframes hqFlash {
  from { opacity: 0.55; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

.hq-spark {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  display: block;
}

.hq-predict-list {
  display: grid;
  gap: 10px;
}

.hq-predict-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 245, 247, 0.9);
  border: 1px solid var(--hq-line);
}

.hq-trade-row {
  grid-template-columns: 88px 1fr auto auto auto;
}

.hq-trade-row.has-pos {
  grid-template-columns: 88px 1fr auto;
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.04);
}

.hq-predict-name {
  font-weight: 700;
}

.hq-predict-name small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--hq-muted);
  margin-top: 2px;
}

.hq-pos-live {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--hq-muted);
}

.hq-pos-side {
  font-weight: 700;
}

.hq-pos-side.is-up { color: var(--hq-up); }
.hq-pos-side.is-down { color: var(--hq-down); }

.hq-pos-pnl {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hq-pos-pnl.is-up { color: var(--hq-up); }
.hq-pos-pnl.is-down { color: var(--hq-down); }

.hq-trade-need {
  font-size: 12px;
  color: var(--hq-muted);
  text-align: right;
  line-height: 1.35;
}

.hq-trade-need em {
  display: block;
  font-style: normal;
  font-size: 11px;
  opacity: 0.85;
}

.hq-dir-group {
  display: flex;
  gap: 8px;
}

.hq-dir-btn,
.hq-btn {
  border: 1px solid var(--hq-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--hq-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hq-dir-btn:hover,
.hq-btn:hover {
  transform: translateY(-1px);
}

.hq-dir-btn.active.up {
  background: rgba(225, 29, 46, 0.1);
  border-color: rgba(225, 29, 46, 0.35);
  color: var(--hq-up);
}

.hq-dir-btn.active.down {
  background: rgba(15, 138, 75, 0.1);
  border-color: rgba(15, 138, 75, 0.32);
  color: var(--hq-down);
}

.hq-dir-btn:disabled,
.hq-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.hq-btn.primary {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.28);
  color: #0b3c76;
}

.hq-btn.accent {
  background: #0071e3;
  border-color: #0071e3;
  color: #fff;
}

.hq-btn.ghost {
  background: rgba(255, 255, 255, 0.8);
}

.hq-btn.danger {
  background: rgba(196, 41, 46, 0.08);
  border-color: rgba(196, 41, 46, 0.22);
  color: #8a1b15;
}

.hq-lot-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hq-lot-k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hq-muted);
}

.hq-lot-ctrl {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: visible;
}

.hq-lot-step,
.hq-lot-trigger {
  border: 0;
  background: transparent;
  color: var(--hq-ink);
  cursor: pointer;
  font-family: inherit;
}

.hq-lot-step {
  width: 32px;
  font-size: 16px;
  font-weight: 500;
  color: var(--hq-muted);
  border-radius: 12px;
}

.hq-lot-step:hover:not(:disabled) {
  color: var(--hq-accent);
  background: rgba(0, 113, 227, 0.06);
}

.hq-lot-trigger {
  min-width: 76px;
  padding: 7px 8px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid var(--hq-line);
  border-right: 1px solid var(--hq-line);
}

.hq-lot-trigger b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hq-lot-trigger span {
  font-size: 11px;
  color: var(--hq-muted);
  font-weight: 600;
}

.hq-lot-caret {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid #8e8e93;
  align-self: center;
  transition: transform 0.18s ease;
}

.hq-lot-picker.is-open .hq-lot-caret {
  transform: rotate(180deg);
}

.hq-lot-picker.is-open .hq-lot-ctrl {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.hq-lot-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hq-lot-opt {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  color: var(--hq-ink);
}

.hq-lot-opt b {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.hq-lot-opt em {
  font-style: normal;
  font-size: 11px;
  color: var(--hq-muted);
}

.hq-lot-opt:hover {
  background: rgba(0, 113, 227, 0.08);
}

.hq-lot-opt.is-selected {
  background: #0071e3;
  color: #fff;
}

.hq-lot-opt.is-selected em {
  color: rgba(255, 255, 255, 0.78);
}

.hq-lot-picker.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hq-lot-step:disabled,
.hq-lot-trigger:disabled {
  cursor: not-allowed;
}

.hq-predict-actions,
.hq-boost-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hq-level-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.hq-level-chip {
  border-radius: 14px;
  border: 1px solid var(--hq-line);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0.45;
}

.hq-level-chip.unlocked {
  opacity: 1;
  background: #fff;
}

.hq-level-chip.current {
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.hq-level-chip strong {
  font-size: 14px;
  color: var(--hq-accent);
}

.hq-level-chip span {
  font-size: 12px;
  font-weight: 600;
}

.hq-level-chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--hq-muted);
}

.hq-article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hq-article-card {
  border: 1px solid var(--hq-line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hq-article-card h3 {
  margin: 0;
  font-size: 15px;
}

.hq-article-card p {
  margin: 0;
  color: var(--hq-muted);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

.hq-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hq-settle {
  border-radius: 16px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  background: rgba(0, 113, 227, 0.06);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #16324f;
}

.hq-history-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr 0.7fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hq-line);
  font-size: 13px;
}

.hq-footnote {
  margin-top: 8px;
  color: var(--hq-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hq-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.hq-modal.show {
  display: flex;
}

.hq-modal-panel {
  width: min(720px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--hq-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.hq-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hq-modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.hq-quiz-tip {
  color: var(--hq-muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.hq-quiz-q {
  border: 1px solid var(--hq-line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafafa;
}

.hq-quiz-q-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.hq-quiz-opt {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
}

.hq-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.hq-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2600;
  max-width: min(90vw, 420px);
  text-align: center;
}

.hq-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hq-error {
  color: var(--hq-danger);
  padding: 20px;
}

.hq-game-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1100px) {
  .hq-howto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hq-desk {
    grid-template-columns: 1fr;
  }
  .hq-ticker {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .hq-tick {
    min-width: 148px;
    flex: 0 0 auto;
  }
  .hq-article-list,
  .hq-inventory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hq-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hq-level-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hq-mascot-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hq-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hq-article-list,
  .hq-inventory,
  .hq-status {
    grid-template-columns: 1fr;
  }
  .hq-broke-banner {
    flex-wrap: wrap;
  }
  .hq-history-row {
    grid-template-columns: 1fr 1fr;
  }
  .hq-level-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hq-predict-row,
  .hq-trade-row,
  .hq-trade-row.has-pos {
    grid-template-columns: 1fr;
  }
  .hq-trade-need {
    text-align: left;
  }
  .hq-howto,
  .hq-glossary {
    grid-template-columns: 1fr;
  }
  .hq-section-head {
    flex-direction: column;
  }
  .hq-level-badge {
    flex-wrap: wrap;
  }
}
