.hobc-block-queue,
.hobc-block-queue * {
  box-sizing: border-box;
}

.hobc-block-queue {
  margin: 1.2rem 0;
}

.hobc-block-queue-panel,
.hobc-block-snapshot-card {
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.98), rgba(3, 4, 5, 0.98));
  border: 1px solid rgba(246, 185, 40, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(246, 185, 40, 0.04);
  color: #f7f5ed;
  overflow: hidden;
  padding: 14px;
}

.hobc-block-queue-head,
.hobc-block-snapshot-card > header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hobc-block-queue-head h2,
.hobc-block-snapshot-card h3 {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.hobc-block-queue-head p,
.hobc-block-snapshot-card p {
  color: rgba(247, 245, 237, 0.66);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0.28rem 0 0;
}

.hobc-block-queue-stats,
.hobc-block-snapshot-card dl {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  justify-content: flex-end;
  margin: 0;
}

.hobc-block-queue-stats > div,
.hobc-block-snapshot-card dl > div {
  align-items: baseline;
  display: inline-flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.hobc-block-queue-stats dt,
.hobc-block-snapshot-card dt {
  color: rgba(247, 245, 237, 0.54);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.hobc-block-queue-stats dd,
.hobc-block-snapshot-card dd {
  color: #ffd764;
  font-size: 0.78rem;
  font-weight: 950;
  margin: 0;
}

.hobc-block-queue-body {
  align-items: stretch;
  display: flex;
  gap: 0;
  min-height: 235px;
}

.hobc-block-card {
  background: #050505;
  border: 1px solid rgba(246, 185, 40, 0.24);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.hobc-block-card-main {
  border-color: rgba(246, 185, 40, 0.46);
  flex: 0 0 min(310px, 35vw);
}

.hobc-block-card-history {
  flex: 1 1 155px;
  min-width: 142px;
}

.hobc-block-card header,
.hobc-block-card footer {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  font-size: 0.68rem;
  gap: 0.5rem;
  justify-content: space-between;
  min-height: 32px;
  padding: 0.42rem 0.55rem;
}

.hobc-block-card header {
  border-bottom: 1px solid rgba(246, 185, 40, 0.13);
}

.hobc-block-card footer {
  border-top: 1px solid rgba(246, 185, 40, 0.13);
  color: rgba(247, 245, 237, 0.58);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.hobc-block-card-history footer {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.18rem;
  justify-content: center;
}

.hobc-block-card header strong {
  color: #fff;
  font-weight: 950;
}

.hobc-block-height-link {
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.hobc-block-height-link:hover,
.hobc-block-height-link:focus {
  color: #ffd764;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hobc-block-card header span,
.hobc-block-card footer strong {
  color: #ffd764;
  font-weight: 900;
}

.hobc-block-canvas-wrap {
  background: #030303;
  flex: 1;
  min-height: 176px;
  position: relative;
}

.hobc-block-card-main .hobc-block-canvas-wrap {
  min-height: 196px;
}

.hobc-block-card-history .hobc-block-canvas-wrap {
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  min-height: 0;
}

.hobc-block-canvas-wrap canvas,
.hobc-block-snapshot-canvas canvas,
.hobc-block-mosaic-image {
  display: block;
  height: 100%;
  min-height: inherit;
  width: 100%;
}

.hobc-block-mosaic-image {
  background: #030303;
  object-fit: contain;
}

.hobc-block-queue-divider {
  flex: 0 0 24px;
  margin: 0 6px;
  position: relative;
}

.hobc-block-queue-divider::before {
  border-left: 1px dashed rgba(246, 185, 40, 0.34);
  content: "";
  inset: 0 50% 0 auto;
  position: absolute;
}

.hobc-block-queue-divider::after {
  color: #f6b928;
  content: ">";
  font-weight: 900;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hobc-block-history {
  align-items: flex-start;
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 1px;
}

.hobc-block-empty,
.hobc-block-queue-unavailable p {
  align-items: center;
  color: rgba(247, 245, 237, 0.64);
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 180px;
  padding: 1rem;
  text-align: center;
}

.hobc-block-queue-tooltip {
  background: rgba(8, 9, 10, 0.97);
  border: 1px solid rgba(246, 185, 40, 0.42);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  color: #f7f5ed;
  font-size: 0.72rem;
  left: 0;
  line-height: 1.4;
  max-width: 235px;
  padding: 0.55rem 0.65rem;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 10000;
}

.hobc-block-queue-tooltip strong {
  color: #ffd764;
  display: inline-block;
  min-width: 86px;
}

.hobc-block-queue-tooltip[hidden] {
  display: none;
}

.hobc-block-flyer {
  border-radius: 1px;
  box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.24), 0 7px 16px rgba(0, 0, 0, 0.22);
  display: block;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  will-change: transform, opacity;
  z-index: 9998;
}

.hobc-block-snapshot {
  margin-top: 1rem;
}

.hobc-block-snapshot[hidden] {
  display: none;
}

.hobc-block-snapshot-card {
  padding: 12px;
}

.hobc-block-snapshot-canvas {
  aspect-ratio: 3 / 2;
  background: #030303;
  border: 1px solid rgba(246, 185, 40, 0.2);
  border-radius: 12px;
  height: auto;
  margin: 0 auto;
  max-width: 560px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hobc-block-snapshot-card .hobc-block-snapshot-note {
  color: rgba(247, 245, 237, 0.58);
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0.55rem auto 0;
  max-width: 560px;
  text-align: center;
  width: 100%;
}

@media (max-width: 980px) {
  .hobc-block-queue-head,
  .hobc-block-snapshot-card > header {
    display: block;
  }

  .hobc-block-queue-stats,
  .hobc-block-snapshot-card dl {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .hobc-block-card-main {
    flex-basis: 285px;
  }
}

@media (max-width: 720px) {
  .hobc-block-queue-body {
    display: block;
  }

  .hobc-block-card-main {
    width: 100%;
  }

  .hobc-block-queue-divider {
    height: 24px;
    margin: 6px 0;
  }

  .hobc-block-queue-divider::before {
    border-left: 0;
    border-top: 1px dashed rgba(246, 185, 40, 0.34);
    inset: 50% 0 auto;
  }

  .hobc-block-queue-divider::after {
    content: "v";
  }

  .hobc-block-history {
    padding-bottom: 8px;
  }

  .hobc-block-card-history {
    flex: 0 0 170px;
  }
}
