/* Signature: arcade cabinet with a report card screen */
.cabinet {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  max-width: 420px;
  width: 100%;
  justify-self: end;
}
.cabinet__marquee {
  background: color-mix(in srgb, var(--brand) 70%, #000);
  color: #fff;
  text-align: center;
  padding: 0.9rem 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-bottom: 4px solid var(--ink);
}
.cabinet__marquee span {
  display: inline-block;
  border: 1px dashed currentColor;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius);
}
.cabinet__screen {
  margin: 1rem;
  padding: 1rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: calc(var(--radius) * 2);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.05) 3px 4px),
    #18181b;
}
.cabinet__label {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f472b6;
}
.cabinet__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.cabinet__table th,
.cabinet__table td {
  padding: 0.45rem 0;
  border-bottom: 1px dotted #52525b;
  text-align: left;
  vertical-align: top;
}
.cabinet__table th {
  color: #a1a1aa;
  font-weight: 500;
  width: 38%;
  padding-right: 0.75rem;
}
.cabinet__table td { color: #f4f4f5; font-weight: 600; }
.cabinet__table tr:last-child th,
.cabinet__table tr:last-child td { border-bottom: 0; }
.cabinet__deck {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.4rem 1.1rem;
  border-top: 1px solid var(--border);
}
.cabinet__stick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 0 -4px var(--muted);
  margin-right: auto;
}
.cabinet__btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--border);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero headline: keep the domain on one line, break only between words */
.hero__body { min-width: 0; }
.hero__body h1 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  overflow-wrap: normal;
  word-break: keep-all;
}

/* Tags and prices on record cards: no overlap, no truncation */
.tag {
  display: inline-block;
  line-height: 1.4;
  margin-bottom: 4px;
}
[class*="price"] {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  text-overflow: clip;
  max-height: none;
}

/* Findings list */
.findings {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.9rem;
}
.findings li { line-height: 1.55; }
.findings li::marker { color: var(--brand); font-weight: 700; }
.findings .tag { margin-right: 0.4rem; }

/* Market chart */
.chart-card { overflow: visible; }
.mkt-chart { display: block; width: 100%; }
.chart-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px dotted var(--border);
}
.chart-row:last-child { border-bottom: 0; }
.chart-name { display: grid; gap: 0.1rem; min-width: 0; }
.chart-label { color: var(--ink); font-size: 0.95rem; font-weight: 600; overflow-wrap: anywhere; }
.chart-sub { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.chart-bars { display: grid; gap: 0.45rem; min-width: 0; }
.chart-line { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.chart-bar {
  display: block;
  flex: none;
  height: 18px;
  width: var(--w);
  max-width: 100%;
  border-radius: 3px;
}
.chart-bar--base { background: var(--border); }
.chart-bar--fc { background: var(--brand); }
.chart-val {
  color: var(--ink);
  font-size: 0.85rem;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0.25rem;
}
.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.swatch--base { background: var(--border); }
.swatch--fc { background: var(--brand); margin-left: 0.75rem; }

@media (max-width: 720px) {
  .cabinet { justify-self: stretch; max-width: none; }
  .hero__body h1 { font-size: clamp(1.25rem, 5.6vw, 1.9rem); }
}
@media (max-width: 640px) {
  .chart-row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .chart-line { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .chart-val { font-size: 0.875rem; white-space: normal; overflow-wrap: anywhere; }
}