:root {
  color-scheme: dark;
  --bg: #070604;
  --panel: rgba(18, 13, 9, 0.94);
  --panel-strong: #1d130d;
  --sand: #c99758;
  --sand-soft: #ead3a5;
  --spice: #d96f2d;
  --violet: #7d55b5;
  --green: #78c38d;
  --red: #c95b53;
  --muted: #8e765e;
  --line: rgba(211, 150, 84, 0.28);
  --line-faint: rgba(211, 150, 84, 0.12);
  --motion-sync: 620ms;
  --motion-sync-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --table-head-height: 34px;
}

* {
  box-sizing: border-box;
  scrollbar-color: #c99758 #100905;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

::-webkit-scrollbar-track {
  border: 1px solid rgba(201, 151, 88, 0.16);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(53, 31, 15, 0.7), rgba(0, 0, 0, 0.48)),
    #090604;
}

::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid #090604;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #5a3519 0%, #d6a65e 18%, #f0d090 38%, #8f5729 58%, #d5a259 78%, #402314 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 176, 0.28),
    inset 0 0 10px rgba(56, 30, 10, 0.72),
    0 0 8px rgba(201, 151, 88, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(90deg, #6d421f 0%, #ecc174 18%, #fff0b8 38%, #a86933 58%, #e2b166 78%, #4b2b17 100%);
}

::-webkit-scrollbar-corner {
  background: #090604;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    linear-gradient(rgba(7, 6, 4, 0.88), rgba(7, 6, 4, 0.94)),
    repeating-linear-gradient(90deg, rgba(201, 151, 88, 0.04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(201, 151, 88, 0.035) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 22% 18%, rgba(217, 111, 45, 0.18), transparent 28rem),
    var(--bg);
  color: #f3dec0;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(125, 85, 181, 0.12) 48%, transparent 49%),
    radial-gradient(circle at 50% 0, rgba(234, 211, 165, 0.06), transparent 28rem);
  mix-blend-mode: screen;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: calc(100vw - clamp(12px, 1.2vw, 28px));
  margin: 0 auto;
  padding: 10px 0 28px;
}

.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 426;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background: #080604;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.banner::before,
.banner::after,
.exchange-frame::after {
  position: absolute;
  content: "";
}

.banner::before {
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(234, 211, 165, 0.18);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.52);
}

.banner::after,
.exchange-frame::after {
  left: 50%;
  bottom: -6px;
  width: 17px;
  height: 17px;
  border: 2px solid #3d2116;
  background: linear-gradient(135deg, #21140d, #6d3da1 48%, #21140d 52%);
  box-shadow: 0 0 0 2px rgba(201, 151, 88, 0.45);
  transform: translateX(-50%) rotate(45deg);
  z-index: 4;
}

.banner::after {
  display: none;
}

.ticker-collapse-toggle {
  position: relative;
  z-index: 8;
  display: grid;
  width: 29px;
  height: 29px;
  margin: -14.5px auto -14.5px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
}

.ticker-collapse-toggle::before {
  content: none;
}

.jewel-canvas {
  position: absolute;
  inset: -9px;
  z-index: 1;
  width: calc(100% + 18px);
  height: calc(100% + 18px);
  pointer-events: none;
}

.ticker-collapse-toggle:hover,
.ticker-collapse-toggle:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 10px rgba(164, 85, 255, 0.48));
}

body.ticker-collapsed .ticker-collapse-toggle::before {
  content: none;
}

body.ticker-collapsed .ticker-collapse-toggle::after {
  content: none;
}

@keyframes chevron-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(201, 151, 88, 0.42),
      0 0 12px rgba(125, 85, 181, 0.2),
      0 0 0 rgba(234, 211, 165, 0);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(234, 211, 165, 0.58),
      0 0 20px rgba(125, 85, 181, 0.52),
      0 0 18px rgba(234, 211, 165, 0.18);
  }
}

@keyframes jewel-inner-glow {
  0%,
  100% {
    opacity: 0.78;
    box-shadow:
      inset 0 0 6px rgba(235, 205, 255, 0.24),
      inset 0 0 10px rgba(125, 85, 181, 0.34),
      0 0 7px rgba(125, 85, 181, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow:
      inset 0 0 8px rgba(244, 223, 255, 0.48),
      inset 0 0 15px rgba(150, 89, 214, 0.54),
      0 0 12px rgba(150, 89, 214, 0.36);
  }
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.58));
}

.banner .banner-logo {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 3;
  width: min(48%, 560px);
  height: auto;
  max-height: 36%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.78));
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.banner-disclaimer {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 1.25vw, 18px);
  z-index: 5;
  max-width: min(78%, 820px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 221, 176, 0.82);
  font-size: clamp(9px, 0.7vw, 12px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 2px #000, 0 0 8px rgba(201, 151, 88, 0.2);
  transform: translateX(-50%);
}

.banner .banner-view-toggle {
  position: absolute;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(34px, 4vw, 56px);
  z-index: 5;
}

.exchange-frame {
  position: relative;
  margin: 8px 0 0;
  padding: 18px 22px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 111, 45, 0.08), transparent 18%, transparent 82%, rgba(125, 85, 181, 0.08)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.08),
    inset 0 0 72px rgba(0, 0, 0, 0.72),
    0 24px 64px rgba(0, 0, 0, 0.48);
}

.exchange-frame::before {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(201, 151, 88, 0.18);
  background:
    linear-gradient(135deg, var(--line) 0 1px, transparent 1px 22px) left top / 88px 88px no-repeat,
    linear-gradient(225deg, var(--line) 0 1px, transparent 1px 22px) right top / 88px 88px no-repeat,
    linear-gradient(45deg, var(--line) 0 1px, transparent 1px 22px) left bottom / 88px 88px no-repeat,
    linear-gradient(315deg, var(--line) 0 1px, transparent 1px 22px) right bottom / 88px 88px no-repeat;
}

.exchange-frame::after {
  display: none;
}

.console-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 1vw, 22px);
  max-height: 156px;
  padding: 2px 0 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-faint);
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height var(--motion-sync) var(--motion-sync-ease),
    opacity var(--motion-sync) var(--motion-sync-ease),
    padding var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease),
    transform var(--motion-sync) var(--motion-sync-ease);
}

.console-head > div:first-child {
  display: none;
}

.console-head h1 {
  display: none;
}

.tv-wordmark {
  display: none;
}

.eyebrow,
.label {
  display: block;
  margin: 0 0 6px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--sand-soft);
  text-shadow: 0 2px 0 #24160e, 0 0 20px rgba(217, 111, 45, 0.24);
}

.market-clock {
  display: none;
  position: relative;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
}

.market-clock::after {
  display: none;
}

.market-clock span {
  color: var(--sand);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-clock strong {
  color: var(--sand-soft);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(217, 111, 45, 0.34);
}

.home-control {
  display: grid;
  grid-template-rows: 30px;
  gap: 0;
  min-width: 0;
  min-height: 0;
  align-content: stretch;
  padding: 0;
}

.home-action-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.32fr) 30px minmax(180px, 1fr) 30px minmax(132px, auto);
  align-items: stretch;
  gap: 5px;
  min-width: 0;
}

.home-region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-region-pills button {
  min-height: 25px;
  min-width: 42px;
  border: 1px solid rgba(201, 151, 88, 0.3);
  background: rgba(8, 6, 4, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  padding: 0 10px;
  text-transform: uppercase;
}

.home-region-pills button.active,
.home-region-pills button:hover {
  border-color: rgba(201, 151, 88, 0.58);
  background: rgba(125, 85, 181, 0.24);
  color: var(--sand-soft);
}

.home-icon-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.38);
  background:
    linear-gradient(180deg, rgba(201, 151, 88, 0.16), rgba(48, 30, 12, 0.28)),
    #080604;
  color: var(--sand);
  box-shadow:
    inset 0 0 10px rgba(201, 151, 88, 0.12),
    0 0 8px rgba(201, 151, 88, 0.08);
}

.home-icon-label img {
  display: none;
}

.home-icon-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(180deg, #ffe6a8 0%, #d69b3f 52%, #8b5a1e 100%);
  mask: url("assets/TP_ICo.png") center / contain no-repeat;
  -webkit-mask: url("assets/TP_ICo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(232, 185, 93, 0.38));
}

.home-control select {
  min-height: 30px;
  height: 30px;
  width: 100%;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background: #080604;
  color: var(--sand-soft);
  padding: 0 10px;
  outline: none;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
}

.home-control select:focus {
  border-color: var(--violet);
}

.contribute-button {
  min-height: 30px;
  height: 30px;
  align-self: stretch;
  border: 1px solid rgba(201, 151, 88, 0.32);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.3), rgba(49, 25, 62, 0.34)),
    #0a0604;
  color: var(--sand-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 7px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.06),
    inset 0 0 14px rgba(0, 0, 0, 0.36);
}

.contribute-button:hover,
.contribute-button:focus-visible {
  border-color: rgba(201, 151, 88, 0.68);
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.44), rgba(63, 34, 78, 0.5)),
    #100806;
  outline: none;
}

.contribute-info {
  display: grid;
  place-items: center;
  min-height: 30px;
  height: 30px;
  width: 30px;
  border: 1px solid rgba(201, 151, 88, 0.38);
  border-radius: 4px;
  background:
    radial-gradient(circle at 48% 35%, rgba(255, 227, 167, 0.16), transparent 45%),
    #090604;
  color: #d8a64d;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.38);
}

.contribute-info:hover,
.contribute-info:focus-visible {
  border-color: rgba(225, 178, 91, 0.72);
  color: #ffe0a0;
  outline: none;
}

.home-stats-panel {
  display: grid;
  grid-template-columns: minmax(120px, 1.35fr) repeat(5, minmax(72px, 1fr));
  grid-template-rows: minmax(38px, auto);
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.home-stats-title {
  display: grid;
  align-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 4px 10px 4px 0;
  color: var(--sand-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 0.95;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 #24160e, 0 0 16px rgba(201, 151, 88, 0.16);
  white-space: nowrap;
}

.home-stats-panel div {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

.home-price-hero {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center !important;
  gap: 2px 10px !important;
  min-height: 82px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background:
    radial-gradient(circle at 18% 50%, rgba(201, 151, 88, 0.18), transparent 4.5rem),
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(8, 6, 4, 0.34));
}

.solari-credit-icon {
  width: 40px;
  height: 40px;
  background: url("assets/solari-credit.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(201, 151, 88, 0.24));
}

.home-price-hero strong {
  color: #f4ddb0;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 0.95;
  text-shadow: 0 0 16px rgba(201, 151, 88, 0.18);
}

.home-price-hero div {
  display: contents;
}

.home-price-hero small {
  grid-column: 1 / -1;
  padding-left: 2px;
}

.home-stat-tile {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 4px 8px;
  border-left: 1px solid rgba(201, 151, 88, 0.18);
  background: rgba(0, 0, 0, 0.12);
}

.home-market-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  grid-template-rows: auto auto;
  gap: 7px 14px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(180deg, rgba(201, 151, 88, 0.05), transparent 40%),
    rgba(8, 6, 4, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.05),
    inset 0 0 18px rgba(0, 0, 0, 0.36);
}

.home-stats-panel strong {
  color: var(--sand-soft);
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-stats-panel small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.view-toggle {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 0;
  padding: 3px;
  min-height: 38px;
  border: 1px solid rgba(201, 151, 88, 0.34);
  border-radius: 8px;
  background: rgba(8, 6, 4, 0.82);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(234, 211, 165, 0.04);
}

.console-view-toggle {
  display: none !important;
}

.view-toggle button {
  min-height: 30px;
  min-width: 82px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.view-toggle button.active,
.view-toggle button:hover {
  border-color: rgba(201, 151, 88, 0.64);
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.38), rgba(40, 23, 56, 0.5)),
    rgba(201, 151, 88, 0.08);
  color: var(--sand-soft);
  box-shadow: 0 0 14px rgba(125, 85, 181, 0.18);
}

.ticker-band {
  position: relative;
  display: block;
  align-items: stretch;
  min-height: clamp(104px, 6.2vw, 132px);
  max-height: 150px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.38);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.08), transparent 4%, transparent 96%, rgba(201, 151, 88, 0.08)),
    #090604;
  box-shadow:
    inset 2px 0 0 rgba(234, 211, 165, 0.1),
    inset -2px 0 0 rgba(234, 211, 165, 0.1),
    inset 0 0 18px rgba(0, 0, 0, 0.38);
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height var(--motion-sync) var(--motion-sync-ease),
    min-height var(--motion-sync) var(--motion-sync-ease),
    opacity var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease),
    transform var(--motion-sync) var(--motion-sync-ease);
}

.ticker-band::before,
.ticker-band::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 48px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.ticker-band::before {
  left: 0;
  border-left: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.28), rgba(201, 151, 88, 0.08) 18%, rgba(9, 6, 4, 0.68) 52%, transparent);
}

.ticker-band::after {
  right: 0;
  border-right: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(270deg, rgba(201, 151, 88, 0.28), rgba(201, 151, 88, 0.08) 18%, rgba(9, 6, 4, 0.68) 52%, transparent);
}

.ticker-label {
  display: none;
}

.ticker-label::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 42%, rgba(0, 0, 0, 0.32)),
    radial-gradient(circle at 50% 52%, transparent 0 58%, rgba(0, 0, 0, 0.28) 82%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.ticker-label img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ticker-lanes {
  display: grid;
  min-width: 0;
  align-content: start;
}

.ticker-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 32px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.1);
}

.ticker-row:last-child {
  border-bottom: 0;
}

.ticker-ad-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  min-height: 70px;
  margin: 14px 0;
  padding: 8px 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.36);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.1), transparent 4%, transparent 96%, rgba(201, 151, 88, 0.1)),
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(22, 13, 7, 0.92) 22%, rgba(201, 151, 88, 0.08)),
    #070403;
  box-shadow:
    inset 2px 0 0 rgba(234, 211, 165, 0.1),
    inset -2px 0 0 rgba(234, 211, 165, 0.1),
    inset 0 0 18px rgba(0, 0, 0, 0.34);
  color: #bda88b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: margin var(--motion-sync) var(--motion-sync-ease);
}

.ticker-ad-row::before,
.ticker-ad-row::after {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 38px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.ticker-ad-row::before {
  left: 0;
  border-left: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.24), rgba(201, 151, 88, 0.07) 22%, rgba(7, 4, 3, 0.54) 58%, transparent);
}

.ticker-ad-row::after {
  right: 0;
  border-right: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(270deg, rgba(201, 151, 88, 0.24), rgba(201, 151, 88, 0.07) 22%, rgba(7, 4, 3, 0.54) 58%, transparent);
}

body.ticker-collapsed:not(.tv-mode) .console-head {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

body.ticker-collapsed:not(.tv-mode) .ticker-band {
  min-height: 0;
  max-height: 0;
  border-block-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

body.ticker-collapsed:not(.tv-mode) .ticker-ad-row {
  margin-top: 0;
}

body.ticker-collapsed:not(.tv-mode) .table-wrap {
  max-height: calc(100vh - 176px);
}

.mock-ad {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px 8px 28px;
  border: 1px solid rgba(234, 211, 165, 0.22);
  background:
    linear-gradient(135deg, rgba(234, 211, 165, 0.08), transparent 44%, rgba(125, 85, 181, 0.12)),
    rgba(13, 9, 6, 0.88);
}

.real-ad-shell {
  position: relative;
  z-index: 2;
  min-height: 70px;
  padding: 16px 12px 8px;
  border: 1px solid rgba(234, 211, 165, 0.22);
  background:
    linear-gradient(135deg, rgba(234, 211, 165, 0.06), transparent 46%, rgba(125, 85, 181, 0.1)),
    rgba(13, 9, 6, 0.78);
}

.real-ad-shell.image-ad {
  min-height: 74px;
}

.real-ad-shell.text-only {
  min-height: 58px;
  padding-block: 16px 6px;
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.1), rgba(13, 9, 6, 0.84) 24%, rgba(125, 85, 181, 0.08)),
    rgba(10, 7, 5, 0.88);
}

.real-ad-shell.single {
  grid-column: 1 / -1;
}

.real-ad-shell .adsbygoogle {
  min-height: 54px;
}

.real-ad-shell.ad-unfilled .adsbygoogle {
  display: none !important;
}

.real-ad-shell.ad-unfilled::after {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: rgba(216, 166, 77, 0.68);
  content: "Advertisement space";
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.real-ad-shell.text-only .adsbygoogle {
  min-height: 42px;
}

.ad-label {
  position: absolute;
  top: 5px;
  left: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(201, 151, 88, 0.34);
  background: linear-gradient(180deg, rgba(201, 151, 88, 0.28), rgba(88, 48, 28, 0.42));
  color: var(--sand-soft);
  font-size: 12px;
  font-weight: 900;
}

.ad-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ad-copy strong {
  overflow: hidden;
  color: var(--sand-soft);
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.ad-copy em {
  overflow: hidden;
  color: #a98f72;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-ad b {
  display: inline-grid;
  min-width: 44px;
  min-height: 26px;
  place-items: center;
  border: 1px solid rgba(201, 151, 88, 0.34);
  color: var(--sand-soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(125, 85, 181, 0.2);
}

.ticker-region {
  z-index: 3;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(201, 151, 88, 0.16);
  background: rgba(12, 8, 5, 0.74);
  color: var(--sand);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.ticker-viewport {
  overflow: hidden;
  min-width: 0;
  contain: paint;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  animation: crawl 180s linear infinite;
}

.ticker-loop {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: max-content;
}

.ticker-row:nth-child(2n) .ticker-track {
  animation-duration: 210s;
}

.ticker-row.region-na-east .ticker-track,
.ticker-row.region-na .ticker-track,
.ticker-row.region-na-west .ticker-track,
.ticker-row.region-north-america .ticker-track {
  animation-duration: 360s;
}

.ticker-row.region-eu-ams .ticker-track,
.ticker-row.region-eu-par .ticker-track,
.ticker-row.region-europe .ticker-track {
  animation-duration: 381.818s;
}

.ticker-row.region-as .ticker-track {
  animation-duration: 112.5s;
}

.ticker-row.region-oc .ticker-track,
.ticker-row.region-sa .ticker-track,
.ticker-row.region-rest .ticker-track {
  animation-duration: 75s;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  white-space: nowrap;
  color: #bda07c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(201, 151, 88, 0.12);
}

.symbol {
  color: var(--sand);
  font-weight: 900;
}

.ticker-item .server-full {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.symbol::before {
  content: none;
}

.solari-icon {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  margin-left: 1px;
  margin-right: -3px;
  vertical-align: -0.2em;
  background: url("assets/solari-coin.png") center / contain no-repeat;
}

.ticker-price {
  color: #d8bea0;
}

td .solari-icon {
  margin-right: 0.34em;
}

.up {
  color: var(--green);
}

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

@keyframes crawl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes crawl-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes crawl-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.summary-panel,
.board {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(11, 8, 6, 0.78);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.44);
}

.summary-panel {
  display: none;
  gap: 15px;
  align-content: start;
  padding: 16px;
}

.price-line {
  color: var(--sand-soft);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-line small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.price-line.small {
  font-size: 20px;
}

.manifest-panel {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.manifest-panel strong {
  color: var(--sand-soft);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.manifest-panel span:not(.label) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.manifest-fresh strong {
  color: var(--green);
}

.manifest-aging strong {
  color: var(--sand);
}

.manifest-stale strong,
.data-stale #market-status {
  color: var(--red);
}

.support-actions {
  display: flex;
  gap: 8px;
}

.support-actions a {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  color: var(--sand-soft);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(8, 6, 4, 0.72);
}

.support-actions a:hover {
  border-color: rgba(201, 151, 88, 0.62);
  background: rgba(125, 85, 181, 0.22);
}

label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(201, 151, 88, 0.22);
  background: #080604;
  color: var(--sand-soft);
  padding: 0 34px 0 11px;
  outline: none;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  appearance: none;
  display: none;
}

input:focus {
  border-color: var(--violet);
}

.glyph-chart {
  position: relative;
  min-height: 94px;
  margin-top: 4px;
  border-top: 1px solid var(--line-faint);
  opacity: 0.65;
  overflow: hidden;
}

.glyph-chart::before {
  position: absolute;
  left: 4px;
  bottom: 12px;
  width: 64px;
  height: 64px;
  content: "";
  border: 1px solid rgba(201, 151, 88, 0.38);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(201, 151, 88, 0.35) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(201, 151, 88, 0.35) 50%, transparent 51%);
}

.glyph-chart::after {
  position: absolute;
  right: 2px;
  bottom: 26px;
  width: 98px;
  height: 42px;
  content: "";
  background:
    linear-gradient(152deg, transparent 0 11%, rgba(201, 151, 88, 0.42) 12% 14%, transparent 15% 31%, rgba(201, 151, 88, 0.42) 32% 34%, transparent 35% 52%, rgba(201, 151, 88, 0.42) 53% 55%, transparent 56%),
    linear-gradient(0deg, transparent 0 48%, rgba(125, 85, 181, 0.42) 49% 51%, transparent 52%);
}

.glyph-chart span {
  position: absolute;
  bottom: 7px;
  width: 1px;
  height: 72px;
  background: rgba(201, 151, 88, 0.16);
}

.glyph-chart span:nth-child(1) {
  left: 25%;
}

.glyph-chart span:nth-child(2) {
  left: 48%;
}

.glyph-chart span:nth-child(3) {
  left: 66%;
}

.glyph-chart span:nth-child(4) {
  left: 84%;
}

.board {
  overflow: hidden;
}

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

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tabs button {
  min-width: 42px;
  min-height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.22);
  background: rgba(10, 7, 5, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
}

.tabs button.active,
.tabs button:hover {
  border-color: rgba(201, 151, 88, 0.72);
  background: linear-gradient(180deg, rgba(141, 77, 38, 0.5), rgba(42, 24, 15, 0.5));
  color: var(--sand-soft);
}

.search-wrap {
  position: relative;
  width: min(360px, 42%);
}

.search-wrap::after {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 14px;
  height: 14px;
  content: "";
  border: 1px solid rgba(201, 151, 88, 0.38);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.search-wrap.has-query .search-clear {
  opacity: 1;
  pointer-events: auto;
}

.search-clear::before,
.search-clear::after {
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--sand-soft);
  content: "";
  box-shadow: 0 0 5px rgba(201, 151, 88, 0.24);
}

.search-clear::before {
  transform: rotate(45deg);
}

.search-clear::after {
  transform: rotate(-45deg);
}

.search-clear:hover::before,
.search-clear:hover::after,
.search-clear:focus-visible::before,
.search-clear:focus-visible::after {
  background: #fff0b8;
}

.search-clear:focus-visible {
  outline: 1px solid rgba(201, 151, 88, 0.52);
  outline-offset: 1px;
}

.table-wrap {
  position: relative;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 282px);
  background: #090604;
}

@media (min-width: 1500px) {
  .banner {
    aspect-ratio: 4 / 1;
  }

  .banner .banner-logo {
    width: min(42%, 680px);
    max-height: 32%;
  }

  .exchange-frame {
    padding: clamp(16px, 1.1vw, 24px) clamp(18px, 1.35vw, 30px) clamp(18px, 1.4vw, 32px);
  }

  .console-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-stats-panel {
    grid-template-columns: minmax(150px, 1.4fr) repeat(5, minmax(86px, 1fr));
  }
}

@media (min-width: 1900px) and (min-aspect-ratio: 16 / 10) {
  .banner {
    aspect-ratio: 4.65 / 1;
  }

  .ticker-band {
    min-height: clamp(108px, 5.2vw, 140px);
  }

  .console-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-stats-panel {
    grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(98px, 1fr));
  }

  .table-wrap {
    max-height: calc(100vh - 34vw);
  }
}

table {
  width: 100%;
  min-width: 790px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  height: var(--table-head-height);
  padding: 0 13px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.1);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

th {
  position: sticky;
  top: -1px;
  z-index: 12;
  background:
    linear-gradient(180deg, #17100c 0%, #120c08 76%, #090604 100%);
  color: var(--sand);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    0 -10px 0 #090604,
    inset 0 -1px 0 rgba(201, 151, 88, 0.28),
    0 4px 0 #090604,
    0 8px 10px rgba(0, 0, 0, 0.45);
}

th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-transform: inherit;
}

th button::after {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(201, 151, 88, 0.45);
  content: "";
  opacity: 0.52;
}

th button.active {
  color: var(--sand-soft);
}

th button.active::after {
  border-top-color: var(--violet);
  opacity: 1;
}

th button.active[data-dir="asc"]::after {
  transform: rotate(180deg);
}

th button:hover {
  color: var(--sand-soft);
}

td {
  color: #bda88b;
}

tbody tr:hover {
  background: rgba(217, 111, 45, 0.08);
}

tbody tr[data-server] {
  cursor: pointer;
}

tbody tr[data-server]:focus-visible {
  outline: 1px solid rgba(201, 151, 88, 0.72);
  outline-offset: -2px;
}

tbody tr.selected-row {
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.2), rgba(201, 151, 88, 0.08) 46%, rgba(125, 85, 181, 0.1)),
    rgba(18, 11, 24, 0.56);
}

tbody tr.search-match {
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(125, 85, 181, 0.04) 46%, transparent),
    rgba(18, 11, 24, 0.42);
  box-shadow: inset 3px 0 0 rgba(169, 113, 224, 0.72), inset 0 0 18px rgba(125, 85, 181, 0.14);
}

tbody tr.search-match:hover {
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.24), rgba(125, 85, 181, 0.08) 50%, rgba(217, 111, 45, 0.06)),
    rgba(18, 11, 24, 0.5);
}

tbody tr.home-row {
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.16), rgba(125, 85, 181, 0.08) 42%, transparent),
    rgba(18, 12, 7, 0.56);
  box-shadow: inset 3px 0 0 rgba(201, 151, 88, 0.78), inset 0 -1px 0 rgba(201, 151, 88, 0.18);
}

tbody tr.home-row td {
  position: sticky;
  top: calc(var(--table-head-height) - 1px);
  z-index: 11;
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.22), rgba(125, 85, 181, 0.12) 42%, rgba(18, 12, 7, 0.98)),
    #130c08;
  border-bottom-color: transparent;
  box-shadow:
    inset 3px 0 0 rgba(201, 151, 88, 0.78),
    inset 0 -1px 0 rgba(201, 151, 88, 0.22),
    0 3px 0 #090604,
    0 9px 12px rgba(0, 0, 0, 0.42);
}

tbody tr.home-row + tr td {
  border-top: 8px solid #090604;
}

.chart-row td {
  position: relative;
  z-index: 1;
  height: auto;
  padding: 0 12px 14px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.2);
  background:
    linear-gradient(90deg, rgba(55, 28, 75, 0.38), rgba(8, 5, 12, 0.98) 28%, rgba(31, 15, 45, 0.94)),
    #0b0610;
  overflow: hidden;
  transition:
    padding var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease);
}

.chart-card {
  overflow: hidden;
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.16), rgba(10, 5, 15, 0.9)),
    #100818;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.48),
    0 18px 34px rgba(0, 0, 0, 0.24);
  transition:
    max-height var(--motion-sync) var(--motion-sync-ease),
    opacity var(--motion-sync) var(--motion-sync-ease),
    transform var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease);
}

.chart-row.opening .chart-card {
  animation: chart-open var(--motion-sync) var(--motion-sync-ease) both;
}

.chart-row.closing td {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.chart-row.closing .chart-card {
  border-color: transparent;
  animation: chart-close var(--motion-sync) var(--motion-sync-ease) both;
}

.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.22);
  color: #bda88b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-meta strong {
  color: var(--sand-soft);
  font-size: 13px;
}

.chart-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sand-soft);
}

.chart-item-label img {
  width: 34px;
  height: 24px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(164, 85, 255, 0.28))
    drop-shadow(0 1px 0 rgba(201, 151, 88, 0.18));
}

.chart-contribute {
  min-height: 26px;
  white-space: nowrap;
}

.chart-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.16);
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.1), rgba(8, 5, 12, 0.42)),
    rgba(5, 3, 8, 0.42);
}

.chart-compare label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chart-compare span {
  color: var(--sand);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-compare select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background: #080604;
  color: var(--sand-soft);
  padding: 0 8px;
  outline: none;
}

.chart-compare select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(125, 85, 181, 0.24);
}

.server-chart {
  width: 100%;
  height: clamp(260px, 22vw, 390px);
}

.server-chart .scatterlayer .trace:first-child .js-line {
  filter: drop-shadow(0 0 8px rgba(164, 85, 255, 0.7)) drop-shadow(0 0 18px rgba(164, 85, 255, 0.34));
  animation: chart-line-glow 2.8s ease-in-out infinite;
}

.server-chart .scatterlayer .trace:nth-child(3) .js-line {
  stroke-dasharray: 34 150;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(231, 198, 255, 0.72));
  animation: chart-line-energy 2.2s linear infinite;
}

@keyframes chart-line-glow {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.76;
  }
}

@keyframes chart-line-energy {
  from {
    stroke-dashoffset: 184;
    opacity: 0.22;
  }
  35% {
    opacity: 0.82;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.22;
  }
}

.chart-fallback {
  display: grid;
  height: 100%;
  min-height: 220px;
  place-items: center;
  color: #bda88b;
  font-size: 12px;
  text-align: center;
}

@keyframes chart-open {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chart-close {
  from {
    max-height: var(--chart-close-height, 520px);
    opacity: 1;
    transform: translateY(0);
  }
  to {
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
  }
}

.server-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d5bd95;
  font-weight: 900;
  line-height: 1;
}

.verified-diamond {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  transform: rotate(45deg);
  border: 1px solid rgba(246, 209, 135, 0.82);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 229, 255, 0.95) 0 12%, transparent 20%),
    linear-gradient(135deg, #edbaff 0%, #9f48ff 42%, #40105f 100%);
  box-shadow:
    0 0 6px rgba(175, 80, 255, 0.78),
    inset 0 0 4px rgba(255, 232, 255, 0.55);
}

.muted {
  color: #735f4d;
  font-size: 11px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 38px 0;
  color: rgba(189, 168, 139, 0.72);
  font-size: 11px;
  line-height: 1.4;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer a,
.site-footer button,
.back-link {
  border: 0;
  background: transparent;
  color: var(--sand);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer button:hover,
.back-link:hover {
  color: var(--sand-soft);
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 36;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(680px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.12), transparent 48%, rgba(217, 111, 45, 0.1)),
    #090604;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.46),
    0 20px 54px rgba(0, 0, 0, 0.55);
}

.consent-banner[hidden],
.adblock-notice[hidden] {
  display: none;
}

.consent-banner strong,
.adblock-notice strong {
  color: var(--sand-soft);
  font-size: 14px;
  text-transform: uppercase;
}

.consent-banner p,
.adblock-notice p {
  margin: 5px 0 0;
  color: #bda88b;
  font-size: 12px;
  line-height: 1.45;
}

.consent-actions,
.adblock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-actions button,
.adblock-actions button {
  min-height: 32px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background: rgba(8, 6, 4, 0.72);
  color: var(--sand-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.consent-actions button:hover,
.adblock-actions button:hover {
  border-color: rgba(201, 151, 88, 0.62);
  background: rgba(125, 85, 181, 0.22);
}

.adblock-notice {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 21;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(560px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.12), transparent 45%, rgba(125, 85, 181, 0.12)),
    #090604;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.46),
    0 20px 54px rgba(0, 0, 0, 0.55);
}

body.modal-open {
  overflow: hidden;
}

.data-modal[hidden] {
  display: none;
}

.data-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.data-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(125, 85, 181, 0.18), transparent 34rem),
    rgba(3, 2, 1, 0.76);
  backdrop-filter: blur(3px);
}

.data-modal__panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 18px;
  border: 1px solid rgba(201, 151, 88, 0.48);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(125, 85, 181, 0.16), transparent 38%, rgba(201, 151, 88, 0.08)),
    linear-gradient(180deg, #160d1f, #090604 72%);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.08),
    inset 0 0 42px rgba(0, 0, 0, 0.5),
    0 30px 80px rgba(0, 0, 0, 0.68);
}

.data-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.22);
}

.data-modal__head span,
.data-modal label span {
  color: var(--sand);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-modal__head strong {
  display: block;
  margin-top: 3px;
  color: var(--sand-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.modal-close {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  border-radius: 4px;
  background: rgba(8, 6, 4, 0.66);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  left: 8px;
  top: 13px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--sand-soft);
  content: "";
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.data-modal label {
  display: grid;
  gap: 6px;
}

.data-modal input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(201, 151, 88, 0.3);
  border-radius: 4px;
  background: #070604;
  color: var(--sand-soft);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  outline: none;
  padding: 0 12px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.42);
}

.data-modal input:focus {
  border-color: var(--violet);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(125, 85, 181, 0.34);
}

.data-modal input[readonly] {
  color: #d8bd91;
  background: rgba(8, 6, 4, 0.72);
}

.data-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-modal__message {
  min-height: 18px;
  margin: 0;
  color: #bda88b;
  font-size: 12px;
  line-height: 1.45;
}

.data-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.data-modal__actions button {
  min-height: 34px;
  border: 1px solid rgba(201, 151, 88, 0.3);
  border-radius: 4px;
  background: rgba(8, 6, 4, 0.72);
  color: var(--sand-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.data-modal__actions button[type="submit"] {
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.4), rgba(72, 41, 91, 0.48)),
    #0a0604;
}

.data-modal__actions button:hover,
.modal-close:hover {
  border-color: rgba(201, 151, 88, 0.68);
}

.legal-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.back-link {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 111, 45, 0.08), transparent 18%, transparent 82%, rgba(125, 85, 181, 0.08)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.08),
    inset 0 0 72px rgba(0, 0, 0, 0.56),
    0 24px 64px rgba(0, 0, 0, 0.38);
}

.legal-card h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 56px);
}

.legal-card h2 {
  margin: 28px 0 8px;
  color: var(--sand-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.legal-card p {
  margin: 0;
  color: #c9b79f;
  font-size: 15px;
  line-height: 1.65;
}

.legal-updated {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
}

body.tv-mode {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(21, 46, 82, 0.42), transparent 42rem),
    linear-gradient(180deg, #03070c, #060402);
}

body.tv-mode .shell {
  display: grid;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  place-items: stretch;
}

body.tv-mode .banner,
body.tv-mode .dashboard,
body.tv-mode .site-footer {
  display: none;
}

body.tv-mode .ticker-collapse-toggle {
  display: none;
}

body.tv-mode .exchange-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: clamp(14px, 1.5vw, 28px);
  overflow: hidden;
  border-color: rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(90deg, rgba(8, 34, 68, 0.78), rgba(5, 15, 28, 0.94) 22%, rgba(8, 6, 4, 0.96) 70%, rgba(46, 23, 62, 0.52)),
    repeating-linear-gradient(0deg, rgba(96, 158, 224, 0.05) 0 1px, transparent 1px 13.4vh),
    #03070c;
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.12),
    inset 0 0 90px rgba(0, 0, 0, 0.76);
}

body.tv-mode .exchange-frame::after {
  display: none;
}

body.tv-mode .console-head {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, 1vw, 18px);
  max-height: none;
  min-height: auto;
  padding-block: clamp(7px, 0.6vw, 10px);
  border-bottom: 1px solid rgba(201, 151, 88, 0.16);
}

body.tv-mode .console-head > div:first-child {
  display: block;
}

body.tv-mode .console-head h1 {
  display: none;
}

body.tv-mode .market-clock {
  display: none;
}

body.tv-mode .console-view-toggle {
  display: flex !important;
}

body.tv-mode .eyebrow {
  display: none;
}

body.tv-mode .tv-wordmark {
  display: block;
  width: auto;
  height: clamp(23px, 1.65vw, 32px);
  max-width: clamp(170px, 19vw, 360px);
  object-fit: contain;
  filter: none;
  transform: none;
}

body.tv-mode .console-head > div:first-child {
  position: relative;
}

body.tv-mode .console-head > div:first-child::after {
  content: none;
}

body.tv-mode h1 {
  font-size: clamp(30px, 3.2vw, 62px);
}

body.tv-mode .market-clock span {
  font-size: clamp(9px, 0.7vw, 13px);
}

body.tv-mode .market-clock strong {
  font-size: clamp(20px, 2vw, 38px);
}

body.tv-mode .view-toggle button {
  min-height: clamp(23px, 1.65vw, 32px);
  min-width: clamp(62px, 5.2vw, 74px);
  font-size: clamp(8px, 0.62vw, 11px);
  padding: 0 clamp(8px, 0.8vw, 14px);
}

body.tv-mode .home-market-panel,
body.tv-mode .home-control,
body.tv-mode .home-stats-panel {
  display: none;
}

body.tv-mode .ticker-band {
  display: flex;
  min-height: 0;
  max-height: none;
  height: 100%;
  margin: 0;
  border: 1px solid rgba(201, 151, 88, 0.22);
  background:
    linear-gradient(90deg, rgba(9, 39, 78, 0.55), rgba(5, 13, 25, 0.9)),
    #05090f;
}

body.tv-mode .ticker-band::before,
body.tv-mode .ticker-band::after,
body.tv-mode .ticker-label {
  display: none;
}

body.tv-mode .ticker-ad-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  min-height: clamp(58px, 5vw, 86px);
  margin: clamp(8px, 0.9vw, 14px) 0 0;
  padding: clamp(6px, 0.8vw, 12px) clamp(12px, 1.4vw, 24px);
  border-block: 1px solid rgba(96, 158, 224, 0.2);
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(5, 13, 25, 0.96) 26%, rgba(201, 151, 88, 0.1)),
    #05090f;
  font-family: Consolas, "Courier New", monospace;
}

body.tv-mode .mock-ad {
  min-height: clamp(44px, 3.8vw, 64px);
  grid-template-columns: clamp(28px, 2.6vw, 42px) minmax(0, 1fr) auto;
  background:
    linear-gradient(135deg, rgba(220, 236, 255, 0.08), rgba(8, 32, 60, 0.72)),
    rgba(3, 9, 18, 0.82);
}

body.tv-mode .ad-label {
  color: #a9c9ec;
  font-size: clamp(8px, 0.7vw, 12px);
}

body.tv-mode .ad-mark {
  width: clamp(28px, 2.6vw, 42px);
  height: clamp(28px, 2.6vw, 42px);
}

body.tv-mode .ad-copy strong {
  color: var(--sand-soft);
  font-size: clamp(10px, 0.9vw, 16px);
}

body.tv-mode .ad-copy em {
  color: #dcecff;
  font-size: clamp(9px, 0.75vw, 13px);
}

body.tv-mode .mock-ad b {
  min-height: clamp(24px, 2vw, 34px);
  min-width: clamp(38px, 3.5vw, 56px);
  font-size: clamp(8px, 0.7vw, 12px);
}

body.tv-mode .ticker-lanes {
  display: grid;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  width: 100%;
}

body.tv-mode .ticker-row {
  grid-template-columns: clamp(84px, 6vw, 128px) minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid rgba(96, 158, 224, 0.16);
  background: linear-gradient(180deg, rgba(28, 79, 132, 0.42), rgba(7, 24, 47, 0.72));
}

body.tv-mode .ticker-row:nth-child(2n) {
  background: linear-gradient(180deg, rgba(13, 53, 99, 0.5), rgba(4, 18, 38, 0.76));
}

body.tv-mode .ticker-region {
  border-right: 1px solid rgba(201, 151, 88, 0.24);
  background: rgba(4, 4, 5, 0.78);
  color: var(--sand-soft);
  font-size: clamp(18px, 2vw, 34px);
}

body.tv-mode .ticker-viewport {
  height: 100%;
}

body.tv-mode .ticker-track {
  height: 100%;
  min-height: 0;
  animation-duration: 260s;
}

body.tv-mode .ticker-loop {
  height: 100%;
}

body.tv-mode .ticker-row:nth-child(2n) .ticker-track {
  animation-duration: 300s;
}

body.tv-mode .ticker-row.region-na-east .ticker-track,
body.tv-mode .ticker-row.region-na .ticker-track,
body.tv-mode .ticker-row.region-na-west .ticker-track,
body.tv-mode .ticker-row.region-north-america .ticker-track {
  animation-duration: 520s;
}

body.tv-mode .ticker-row.region-eu-ams .ticker-track,
body.tv-mode .ticker-row.region-eu-par .ticker-track,
body.tv-mode .ticker-row.region-europe .ticker-track {
  animation-duration: 545.455s;
}

body.tv-mode .ticker-row.region-as .ticker-track {
  animation-duration: 162.5s;
}

body.tv-mode .ticker-row.region-oc .ticker-track,
body.tv-mode .ticker-row.region-sa .ticker-track,
body.tv-mode .ticker-row.region-rest .ticker-track {
  animation-duration: 108.333s;
}

body.tv-mode .ticker-item {
  gap: clamp(10px, 1vw, 20px);
  padding: 0 clamp(26px, 3vw, 62px);
  color: #dcecff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(24px, 2.5vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(115, 190, 255, 0.22);
  border-right: 1px solid rgba(96, 158, 224, 0.16);
}

body.tv-mode .ticker-item .server-full {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

body.tv-mode .symbol {
  color: var(--sand-soft);
}

body.tv-mode .symbol::before {
  content: none;
}

body.tv-mode .solari-icon {
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.02em;
  margin-right: -0.14em;
}

body.tv-mode .ticker-price {
  color: #dcecff;
}

body.tv-mode .up {
  color: #35f060;
  text-shadow: 0 0 12px rgba(53, 240, 96, 0.26);
}

body.tv-mode .down {
  color: #ff3333;
  text-shadow: 0 0 12px rgba(255, 51, 51, 0.24);
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    width: min(100% - 18px, 1260px);
    max-width: 100%;
    padding-top: 8px;
    overflow-x: hidden;
  }

  .banner {
    width: 100%;
    height: clamp(112px, 31vw, 168px);
  }

  .banner img {
    object-fit: cover;
    object-position: 42% center;
  }

  .banner-disclaimer {
    bottom: 7px;
    max-width: calc(100% - 32px);
    padding: 0;
    font-size: clamp(8px, 2.1vw, 10px);
  }

  .exchange-frame {
    margin: 6px 0 0;
    padding: 10px 10px 16px;
  }

  .console-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .console-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 10px 10px;
    max-height: none;
    max-width: 100%;
    overflow: visible;
  }

  .console-head h1 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .view-toggle button {
    flex: 1;
  }

  .view-toggle {
    display: none;
  }

  .home-control {
    grid-template-rows: auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .home-market-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 7px;
    padding: 8px;
  }

  .home-action-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    grid-auto-rows: 34px;
    gap: 7px;
  }

  .home-action-row #home-region,
  .home-action-row .contribute-button {
    grid-column: 1 / -1;
  }

  .home-action-row #home-server {
    grid-column: 2;
  }

  .home-icon-label {
    width: 34px;
    height: 34px;
  }

  .home-region-pills {
    justify-content: flex-start;
  }

  .contribute-button {
    width: 100%;
  }

  .home-stats-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    gap: 5px;
    padding: 7px;
    overflow: visible;
  }

  .home-price-hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 56px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 7px 8px;
  }

  .home-stats-title {
    grid-column: 1 / -1;
  }

  .home-stats-panel strong {
    font-size: clamp(10px, 2.9vw, 13px);
    overflow-wrap: anywhere;
  }

  .home-stats-panel small {
    font-size: 8px;
  }

  .market-clock {
    justify-items: start;
  }

  .ticker-band {
    width: 100%;
    max-width: 100%;
    display: block;
    min-height: 0;
    max-height: none;
    height: min(68vh, 760px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(201, 151, 88, 0.38);
    border-inline-color: rgba(234, 211, 165, 0.46);
  }

  .ticker-band::before {
    width: 22px;
  }

  .ticker-band::after {
    width: 38px;
  }

  .ticker-label {
    display: none;
  }

  .ticker-lanes {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
    height: auto;
    min-height: 0;
    max-width: 100%;
  }

  .ticker-ad-row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    min-height: 0;
    grid-auto-rows: minmax(54px, auto);
    gap: 2px;
    padding: 8px;
  }

  .mock-ad {
    width: 100%;
  }

  .ticker-ad-row .mock-ad:nth-child(n + 3),
  .ticker-ad-row .real-ad-shell:nth-child(n + 3) {
    display: none;
  }

  .ticker-row {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 34px minmax(0, 1fr);
    min-height: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-right: 1px solid rgba(201, 151, 88, 0.12);
    border-bottom: 1px solid rgba(201, 151, 88, 0.14);
    background:
      linear-gradient(180deg, rgba(20, 12, 7, 0.9), rgba(5, 3, 2, 0.84)),
      rgba(8, 4, 2, 0.74);
  }

  .ticker-region {
    color: var(--sand-soft);
    font-size: clamp(14px, 4.6vw, 20px);
    border-right: 0;
    border-bottom: 1px solid rgba(201, 151, 88, 0.22);
    background: rgba(12, 7, 4, 0.86);
  }

  .ticker-viewport {
    height: 100%;
    overflow: hidden;
    min-height: calc(44px * 14);
  }

  .ticker-track {
    display: block;
    width: 100%;
    min-height: 0;
    animation-name: crawl-down;
    animation-duration: 46s;
  }

  .ticker-loop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .ticker-item {
    display: grid;
    grid-template-columns: 1em auto auto;
    justify-content: center;
    justify-items: center;
    align-items: center;
    width: 100%;
    gap: 6px;
    min-height: 44px;
    padding: 4px 14px;
    text-align: center;
    font-size: clamp(10px, 3.2vw, 13px);
    font-weight: 800;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 151, 88, 0.1);
  }

  .ticker-item:nth-child(2n + 1) {
    border-right: 1px solid rgba(201, 151, 88, 0.1);
  }

  .ticker-item .server-full {
    grid-column: 1 / -1;
    max-width: none;
    min-width: 0;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.05;
    text-align: center;
  }

  .solari-icon {
    width: 1.02em;
    height: 1.02em;
    margin: 0;
  }

  .ticker-price {
    justify-self: start;
  }

  .ticker-item .up,
  .ticker-item .down {
    justify-self: start;
  }

  .ticker-row:nth-child(2n) .ticker-track {
    animation-duration: 54s;
  }

  .ticker-row.region-na-east .ticker-track,
  .ticker-row.region-na .ticker-track,
  .ticker-row.region-na-west .ticker-track,
  .ticker-row.region-north-america .ticker-track {
    animation-duration: 72s;
  }

  .ticker-row.region-eu-ams .ticker-track,
  .ticker-row.region-eu-par .ticker-track,
  .ticker-row.region-europe .ticker-track {
    animation-duration: 76s;
  }

  .ticker-row.region-as .ticker-track {
    animation-duration: 40s;
  }

  .ticker-row.region-oc .ticker-track,
  .ticker-row.region-sa .ticker-track,
  .ticker-row.region-rest .ticker-track {
    animation-duration: 34s;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    width: 100%;
  }

  .table-wrap {
    max-height: none;
  }

  .chart-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    white-space: normal;
  }

  .chart-item-label img {
    width: 30px;
    height: 21px;
  }

  .chart-contribute {
    width: 100%;
  }

  .chart-compare {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-inline: 8px;
  }

  .server-chart {
    height: 260px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
    padding-inline: 4px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .consent-banner,
  .adblock-notice {
    grid-template-columns: 1fr;
    right: 9px;
    left: 9px;
    width: calc(100vw - 18px);
  }

  .consent-banner {
    bottom: 9px;
  }

  .adblock-notice {
    bottom: 144px;
  }

  .consent-actions,
  .adblock-actions {
    justify-content: flex-end;
  }

  .data-modal {
    padding: 10px;
  }

  .data-modal__panel {
    padding: 14px;
  }

  .data-modal__grid {
    grid-template-columns: 1fr;
  }

  .data-modal__actions {
    flex-direction: column-reverse;
  }

  .data-modal__actions button {
    width: 100%;
  }

  body.tv-mode {
    overflow: hidden;
  }

  body.tv-mode .shell {
    width: 100vw;
    height: 100vh;
    padding: 0;
  }

  body.tv-mode .exchange-frame {
    width: 100vw;
    height: 100vh;
    padding: 8px;
  }

  body.tv-mode .console-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0 0 8px;
  }

  body.tv-mode .home-market-panel,
  body.tv-mode .home-control,
  body.tv-mode .home-stats-panel,
  body.tv-mode .market-clock,
  body.tv-mode .eyebrow {
    display: none;
  }

  body.tv-mode h1 {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1;
  }

  body.tv-mode .view-toggle {
    justify-self: stretch;
  }

  body.tv-mode .view-toggle button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  body.tv-mode .ticker-band {
    display: block;
    height: auto;
    min-height: 0;
    margin: 0;
    background:
      linear-gradient(90deg, rgba(9, 39, 78, 0.55), rgba(5, 13, 25, 0.9)),
      #05090f;
  }

  body.tv-mode .ticker-label {
    display: none;
  }

  body.tv-mode .ticker-lanes {
    height: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
  }

  body.tv-mode .ticker-row {
    grid-template-columns: 1fr;
    grid-template-rows: 40px minmax(0, 1fr);
    min-height: 0;
  }

  body.tv-mode .ticker-region {
    font-size: clamp(18px, 5vw, 28px);
  }

  body.tv-mode .ticker-track {
    display: block;
    width: 100%;
    min-height: 0;
    animation-name: crawl-down;
    animation-duration: 46s;
  }

  body.tv-mode .ticker-loop {
    display: grid;
    width: 100%;
    min-width: 0;
  }

  body.tv-mode .ticker-item {
    display: grid;
    grid-template-columns: 1em auto auto;
    justify-content: start;
    justify-items: start;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 9px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 151, 88, 0.1);
    font-size: clamp(14px, 4vw, 18px);
  }

  body.tv-mode .ticker-row:nth-child(2n) .ticker-track {
    animation-duration: 54s;
  }

  body.tv-mode .ticker-row.region-na-east .ticker-track,
  body.tv-mode .ticker-row.region-na .ticker-track,
  body.tv-mode .ticker-row.region-na-west .ticker-track,
  body.tv-mode .ticker-row.region-north-america .ticker-track {
    animation-duration: 72s;
  }

  body.tv-mode .ticker-row.region-eu-ams .ticker-track,
  body.tv-mode .ticker-row.region-eu-par .ticker-track,
  body.tv-mode .ticker-row.region-europe .ticker-track {
    animation-duration: 76s;
  }

  body.tv-mode .ticker-row.region-as .ticker-track {
    animation-duration: 40s;
  }

  body.tv-mode .ticker-row.region-oc .ticker-track,
  body.tv-mode .ticker-row.region-sa .ticker-track,
  body.tv-mode .ticker-row.region-rest .ticker-track {
    animation-duration: 34s;
  }
}

@media (max-width: 520px) {
  .shell {
    width: 100%;
    padding-inline: 6px;
  }

  .exchange-frame {
    width: 100%;
    margin-inline: 0;
    padding-inline: 8px;
  }

  .console-head {
    padding-inline: 0;
  }

  .home-market-panel,
  .home-control,
  .home-stats-panel {
    width: 100%;
  }

  .home-stats-panel {
    grid-template-columns: 1fr 1fr;
    padding: 6px;
  }

  .home-price-hero {
    grid-column: 1 / -1;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 52px;
    padding: 7px 8px;
  }

  .solari-credit-icon {
    width: 31px;
    height: 31px;
  }

  .home-stats-panel strong {
    font-size: 15px;
    overflow-wrap: normal;
  }

  .home-stats-panel small {
    font-size: 8px;
  }

  .ticker-band {
    min-height: 0;
    max-height: none;
    height: min(70vh, 720px);
  }

  .ticker-lanes {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
  }

  .ticker-row {
    min-height: 100%;
    height: 100%;
  }

  .ticker-ad-row {
    min-height: 0;
  }

  .ticker-region {
    font-size: clamp(13px, 5vw, 18px);
  }

  .ticker-item {
    min-height: 42px;
    padding: 4px 12px;
    font-size: clamp(9px, 3.35vw, 12px);
  }

  body.tv-mode .exchange-frame {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.tv-mode .ticker-band {
    display: block;
    min-height: 0;
  }

  body.tv-mode .ticker-label {
    display: none;
  }

  body.tv-mode .ticker-lanes {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 1fr);
  }

  body.tv-mode .ticker-item {
    min-height: 66px;
    padding: 8px 9px;
    font-size: clamp(13px, 3.85vw, 17px);
  }

}
