/* ============================================================
   Skillz Market — dark Minecraft-flavoured dashboard
   ============================================================ */

:root {
  --bg: #090e10;
  --panel: #101a1d;
  --panel-2: #152125;
  --panel-3: #0c1416;
  --line: #22323a;
  --line-soft: #1a282e;
  --text: #e7f1ee;
  --muted: #8fa6a1;
  --dim: #6b807c;
  --accent: #4bd6a0;
  --accent-bright: #8df3cb;
  --accent-soft: rgba(75, 214, 160, 0.12);
  --gold: #f2c45c;
  --gold-soft: rgba(242, 196, 92, 0.12);
  --red: #ef7373;
  --red-soft: rgba(239, 115, 115, 0.12);
  --stock: #6f9fb8;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1100px 540px at 12% -8%, rgba(75, 214, 160, 0.13), transparent 62%),
    radial-gradient(900px 480px at 96% -4%, rgba(242, 196, 92, 0.08), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(1200px 700px at 50% -10%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 50% -10%, #000 20%, transparent 78%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--accent);
}

button {
  font-family: inherit;
}

svg {
  overflow: visible;
}

::selection {
  background: rgba(75, 214, 160, 0.3);
}

:focus-visible {
  outline: 2px solid rgba(75, 214, 160, 0.7);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #04120c;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ---------------- header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 13, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-cube {
  width: 28px;
  height: 28px;
  flex: none;
  filter: drop-shadow(0 5px 12px rgba(75, 214, 160, 0.35));
  transition: transform 0.18s ease;
}

.brand:hover .brand-cube {
  transform: translateY(-1px) rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-text strong {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 26, 29, 0.7);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.sync-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(75, 214, 160, 0.14);
}

.sync-pill[data-state="stale"] .dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 196, 92, 0.14);
}

.sync-pill[data-state="old"] .dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 115, 115, 0.14);
}

.sync-pill[data-state="pending"] .dot {
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ---------------- buttons / segmented controls ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #162226, #101a1d);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn:hover {
  border-color: #35505b;
  background: #18262b;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.btn.ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn.primary {
  border-color: rgba(75, 214, 160, 0.45);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.btn.primary:hover {
  background: rgba(75, 214, 160, 0.18);
}

.btn.is-busy svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
}

.seg button {
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.seg button:hover {
  color: var(--text);
}

.seg button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: #a9f3d5;
  box-shadow: inset 0 0 0 1px rgba(75, 214, 160, 0.28);
}

/* ---------------- banner ---------------- */

.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 196, 92, 0.34);
  border-radius: 9px;
  background: rgba(242, 196, 92, 0.08);
  color: #f3d79b;
  font-size: 12.5px;
}

.banner.error {
  border-color: rgba(239, 115, 115, 0.4);
  background: rgba(239, 115, 115, 0.09);
  color: #f7b1b1;
}

.banner .btn {
  margin-left: auto;
  flex: none;
}

/* ---------------- main ---------------- */

#app {
  padding: 24px 0 60px;
  min-height: 40vh;
}

#app:focus {
  outline: none;
}

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

.hero h1 {
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.hero .sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero .sub strong {
  color: var(--text);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 33, 37, 0.75), rgba(13, 21, 23, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-head .panel-note {
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
}

.muted {
  color: var(--dim);
}

/* ---------------- movers ---------------- */

.movers {
  margin-bottom: 16px;
}

.movers-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 16px 16px;
}

.mover-col h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.mover-col h3 .count {
  font-family: var(--mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  border-color: #35505b;
  background: #18272c;
}

.chip .thumb {
  width: 20px;
  height: 20px;
  flex: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.chip .pct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.chip.up .pct {
  color: var(--accent);
}

.chip.down .pct {
  color: var(--red);
}

.movers-empty {
  font-size: 12px;
  color: var(--dim);
  padding: 4px 0;
}

/* ---------------- market toolbar / table ---------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 460px;
}

.search svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--dim);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 9px 46px 9px 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-3);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search input::placeholder {
  color: var(--dim);
}

.search input:focus {
  border-color: rgba(75, 214, 160, 0.55);
  box-shadow: 0 0 0 3px rgba(75, 214, 160, 0.11);
}

.search kbd {
  position: absolute;
  right: 9px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0a1214;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  pointer-events: none;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--dim);
}

.select select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-3);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.market-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.market-table thead th {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #0d171a;
  text-align: left;
  white-space: nowrap;
}

.market-table thead th button {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}

.market-table thead th button:hover {
  color: var(--text);
}

.market-table thead th[aria-sort] button .arrow {
  font-size: 9px;
  letter-spacing: 0;
}

.market-table thead th[aria-sort="ascending"] button,
.market-table thead th[aria-sort="descending"] button {
  color: var(--accent);
}

.market-table th.num button {
  justify-content: flex-end;
}

.market-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.12s ease;
}

.market-table tbody tr:last-child {
  border-bottom: 0;
}

.market-table tbody tr:hover {
  background: rgba(75, 214, 160, 0.055);
}

.market-table tbody td {
  padding: 7px 14px;
  vertical-align: middle;
}

.market-table td.num {
  text-align: right;
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  min-width: 0;
}

.item-link:hover .item-name {
  color: var(--accent);
}

.item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.12s ease;
}

.item-icon {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--h, 160) 38% 30%);
  border-radius: 6px;
  background: hsl(var(--h, 160) 42% 17%);
  color: hsl(var(--h, 160) 72% 78%);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}

.price-buy {
  color: #9df3cd;
}

.price-sell {
  color: #f7d795;
}

.price-fee {
  color: #d8b0a4;
}

.price-stock {
  color: #cfe0dd;
}

.price-value {
  color: #b9cbc7;
}

mark {
  padding: 0 1px;
  border-radius: 3px;
  background: rgba(242, 196, 92, 0.22);
  color: #ffe6ac;
}

.empty-row td {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
}

.empty-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.pager-info {
  font-size: 11.5px;
  color: var(--dim);
  font-family: var(--mono);
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager-controls .btn {
  padding: 6px 10px;
  font-size: 12px;
}

.pager-page {
  min-width: 68px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------------- item view ---------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.big-icon {
  width: 56px;
  height: 56px;
}

.icon-fallback.big-icon {
  font-size: 24px;
  border-radius: 10px;
}

.item-head h1 {
  font-size: clamp(21px, 2.8vw, 29px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--dim);
  font-size: 11.5px;
  flex-wrap: wrap;
}

.item-meta .sep {
  opacity: 0.5;
}

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

.stat {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 37, 0.82), rgba(13, 21, 23, 0.9));
}

.stat .label {
  margin-bottom: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.stat .value {
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stat .hint {
  margin-top: 3px;
  overflow: hidden;
  color: var(--dim);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stat.buy .value {
  color: #8ff0c9;
}

.stat.sell .value {
  color: #f6d490;
}

.stat.fee .value {
  color: #f0b09d;
}

.stat.up .value {
  color: var(--accent);
}

.stat.down .value {
  color: var(--red);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* chart */

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.chart-head h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-wrap text {
  fill: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.055);
}

.chart-grid line.base {
  stroke: rgba(255, 255, 255, 0.12);
}

.stock-area {
  fill: rgba(111, 159, 184, 0.09);
}

.stock-line {
  fill: none;
  stroke: rgba(111, 159, 184, 0.42);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.line-buy {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(75, 214, 160, 0.22));
}

.line-sell {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}

.chart-dots .dot-buy {
  fill: #08110f;
  stroke: var(--accent);
  stroke-width: 2;
}

.chart-dots .dot-sell {
  fill: #150f04;
  stroke: var(--gold);
  stroke-width: 1.8;
}

.chart-capture {
  cursor: crosshair;
}

.chart-hover .cross {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart-hover .dot-stock {
  fill: var(--stock);
  stroke: #091013;
  stroke-width: 1.5;
}

.chart-hover .dot-buy {
  fill: var(--accent);
  stroke: #08110f;
  stroke-width: 2;
}

.chart-hover .dot-sell {
  fill: var(--gold);
  stroke: #150f04;
  stroke-width: 2;
}

.icon-fallback.thumb {
  border-radius: 4px;
  font-size: 10px;
}

.chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 136px;
  padding: 8px 10px;
  border: 1px solid #2c424a;
  border-radius: 8px;
  background: #0a1214;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  font-size: 11px;
  pointer-events: none;
  transform: translate(-50%, -112%);
}

.chart-tip .time {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 10px;
  white-space: nowrap;
}

.chart-tip .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
}

.chart-tip .row span:first-child {
  color: var(--muted);
  font-family: var(--sans);
}

.chart-tip .row.buy span:last-child {
  color: #9df3cd;
}

.chart-tip .row.sell span:last-child {
  color: #f7d795;
}

.chart-tip .row.stock span:last-child {
  color: #b9d3df;
}

.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 13px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 11px;
  flex-wrap: wrap;
}

.chart-foot .caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-foot .caption .hint {
  color: #5d706c;
  font-size: 10.5px;
}

.legend {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  display: inline-block;
  width: 11px;
  height: 3px;
  border-radius: 2px;
}

.legend .sw-buy {
  background: var(--accent);
}

.legend .sw-sell {
  background: var(--gold);
}

.legend .sw-stock {
  background: var(--stock);
}

.chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 240px;
  padding: 24px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

.chart-empty strong {
  color: var(--muted);
  font-size: 13px;
}

/* seven day panel */

.seven-body {
  padding: 10px 16px 14px;
}

.metric-group {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.metric-group:last-child {
  border-bottom: 0;
}

.metric-group h3 {
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.metric-group.sell h3 {
  color: var(--gold);
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 12px;
}

.metric-row .k {
  color: var(--dim);
}

.metric-row .v {
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* snapshots */

.snap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.snap-table th {
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: #0d171a;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.snap-table th.num,
.snap-table td.num {
  text-align: right;
}

.snap-table td {
  padding: 8px 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  white-space: nowrap;
}

.snap-table tbody tr:first-child td {
  border-top: 0;
}

.snap-table td.time {
  color: var(--muted);
  font-family: var(--sans);
}

.snap-foot {
  display: flex;
  justify-content: center;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------- states ---------------- */

.state-card {
  padding: 46px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(16, 26, 29, 0.5);
  color: var(--muted);
  text-align: center;
}

.state-card h1 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 20px;
}

.state-card p {
  font-size: 13px;
}

.state-card .actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.skel {
  display: inline-block;
  height: 11px;
  border-radius: 5px;
  background: linear-gradient(90deg, #162328 25%, #1d2e34 37%, #162328 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.skel-row td {
  padding: 12px 14px;
}

.skel-row .bar {
  display: block;
  height: 11px;
  border-radius: 5px;
  background: linear-gradient(90deg, #152227 25%, #1c2c32 37%, #152227 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

/* ---------------- footer ---------------- */

.site-foot {
  margin-top: 20px;
  padding: 16px 0 30px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 11.5px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

.site-foot a:hover {
  color: var(--accent);
}

.rate {
  font-family: var(--mono);
  font-size: 10.5px;
}

.noscript {
  padding: 24px;
  color: var(--red);
  text-align: center;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .movers-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .head-inner {
    height: 56px;
  }

  .docs-link {
    display: none;
  }

  .brand-text span {
    display: none;
  }

  .col-fee,
  .col-value {
    display: none;
  }

  .market-table {
    min-width: 0;
  }

  .market-table thead th button,
  .market-table tbody td {
    padding-left: 12px;
    padding-right: 12px;
  }

  .item-icon {
    width: 24px;
    height: 24px;
  }

  .search kbd {
    display: none;
  }

  .search input {
    padding-right: 12px;
  }

  .hero .sub {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 14px;
  }

  #app {
    padding-top: 18px;
  }

  .sync-pill span:last-child {
    display: none;
  }

  .sync-pill {
    padding: 6px 8px;
  }

  .brand-text strong {
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    padding: 11px 12px;
  }

  .search {
    flex-basis: 100%;
    max-width: none;
  }

  .toolbar-right {
    width: 100%;
    justify-content: flex-end;
  }

  .pager {
    justify-content: center;
  }

  .snap-table th,
  .snap-table td {
    padding-left: 12px;
    padding-right: 12px;
  }

  .chart-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .chart-foot {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
