/* Self-contained styles for static hosting (display-only) */

:root {
  --bg: #090304;
  --card: rgba(45, 10, 12, 0.72);
  --text: #fff7e6;
  --muted: rgba(255, 227, 170, 0.72);
  --accent: #f4c542;
  --primary: #d21f2b;
  --danger: #ef4444;
  --border: rgba(244, 197, 66, 0.18);
  --border-strong: rgba(244, 197, 66, 0.32);
  --shadow-soft: 0 12px 22px rgba(0, 0, 0, 0.24);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(
      1200px 800px at 12% 0%,
      rgba(210, 31, 43, 0.35) 0%,
      rgba(9, 3, 4, 0) 60%
    ),
    radial-gradient(
      900px 700px at 100% 0%,
      rgba(244, 197, 66, 0.18) 0%,
      rgba(9, 3, 4, 0) 55%
    ),
    var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(210, 31, 43, 0.16),
    rgba(0, 0, 0, 0.08)
  );
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}

.logo {
  grid-row: span 2;
  height: 44px;
  width: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(
      14px 14px at 30% 25%,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0) 65%
    ),
    linear-gradient(135deg, rgba(244, 197, 66, 0.98), rgba(255, 219, 122, 0.72));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.logo svg {
  width: 28px;
  height: 28px;
}

.brand .title {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 750;
  letter-spacing: 0.2px;
  color: var(--accent);
}

.brand .subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.clock {
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 2vw, 34px);
  color: var(--accent);
  text-shadow: 0 0 22px rgba(244, 197, 66, 0.12);
}

.content {
  padding: 22px;
  padding-bottom: 86px;
}

.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--accent);
  margin: 0 0 10px 4px;
  font-size: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.dot.gold {
  background: linear-gradient(180deg, #ffe39c, var(--accent));
}

.dot.silver {
  background: linear-gradient(180deg, #f3f4f6, #bfc5cf);
}

.panel {
  position: relative;
  border-radius: var(--radius);
  padding: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 240px;
  height: 240px;
  opacity: 0.08;
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(14deg);
  pointer-events: none;
}

.panel.gold::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='70%25'%3E%3Cstop offset='0%25' stop-color='%23fff2bf'/%3E%3Cstop offset='55%25' stop-color='%23f4c542'/%3E%3Cstop offset='100%25' stop-color='%23b27b00'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='none' stroke='%23f4c542' stroke-width='10' opacity='0.9'%3E%3Ccircle cx='130' cy='120' r='78'/%3E%3Ccircle cx='130' cy='120' r='58' opacity='0.55'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='130' cy='120' r='68' fill='url(%23g)' opacity='0.85'/%3E%3C/g%3E%3C/svg%3E");
}

.panel.silver::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cdefs%3E%3CradialGradient id='s' cx='35%25' cy='30%25' r='70%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='55%25' stop-color='%23d1d5db'/%3E%3Cstop offset='100%25' stop-color='%238b93a1'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='none' stroke='%23e5e7eb' stroke-width='10' opacity='0.85'%3E%3Ccircle cx='132' cy='118' r='78'/%3E%3Ccircle cx='132' cy='118' r='58' opacity='0.5'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='132' cy='118' r='68' fill='url(%23s)' opacity='0.78'/%3E%3C/g%3E%3C/svg%3E");
}

.table {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.display .row {
  grid-template-columns: 1.85fr 0.9fr 0.9fr 1.1fr;
  column-gap: 16px;
  row-gap: 10px;
}

.row.head {
  border-top: none;
  background: linear-gradient(
    90deg,
    rgba(210, 31, 43, 0.22),
    rgba(244, 197, 66, 0.08)
  );
  font-weight: 700;
}

.row.empty {
  grid-template-columns: 1fr;
}

.cell.price {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
}

.cell.name .pname {
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 750;
  line-height: 1.18;
}

.cell.name .punit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.cell.note {
  color: var(--muted);
  font-size: 14px;
}

.display .cell.note {
  text-align: left;
  padding-left: 28px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.display .row.head .cell.note {
  padding-left: 28px;
  font-size: 16px;
}

.chart-wrap {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.tradingview-widget-container,
#tv_chart {
  width: 100%;
  height: 100%;
}

.bottom-bar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.bottom-left {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.ticker {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 18s linear infinite;
}

.ticker-item {
  color: rgba(255, 227, 170, 0.9);
  font-weight: 650;
  letter-spacing: 0.2px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

