/* KILOX — game screen styles (P1: the line). Mobile-first. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--void);
  color: var(--ice);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.x { color: var(--long); }
.num { font-family: var(--font-mono); }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline);
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-shrink: 0;
}

.monogram-sm {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
}

/* ---- asset switcher ---- */
.assets {
  display: flex;
  gap: var(--s1);
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.assets::-webkit-scrollbar { display: none; }

.assets button {
  appearance: none;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}

.assets button:hover { color: var(--ice); }

.assets button.active {
  color: var(--void);
  background: var(--long);
  border-color: var(--long);
}

/* ---- feed status ---- */
.feed-status {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  color: var(--muted);
}

.feed-status[data-state="live"] {
  color: var(--long);
  border-color: rgba(0, 230, 118, 0.35);
}

.feed-status[data-state="reconnecting"] {
  color: var(--short);
  border-color: rgba(255, 61, 90, 0.35);
}

/* ---- price readout ---- */
.readout {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s2);
}

.price {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.delta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.delta.up { color: var(--long); }
.delta.down { color: var(--short); }

/* ---- chart stage ---- */
.stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background:
    radial-gradient(120% 90% at 72% 38%, rgba(0, 230, 118, 0.045) 0%, rgba(0, 230, 118, 0) 55%),
    radial-gradient(140% 110% at 50% 30%, #111726 0%, var(--void) 62%);
}

.stage::after {
  /* vignette — pulls the eye to the line */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(105% 85% at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.38) 100%);
}

#chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- footer ---- */
.foot {
  padding: var(--s2) var(--s4);
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 480px) {
  .brand-name { display: none; }
  .price { font-size: 32px; }
}
