@font-face {
  font-family: "Reforma Grotesk Demi";
  src: url("../fonts/reforma-grotesk-demi.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Imbue";
  src: url("../fonts/Imbue.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src: url("../fonts/SF-Pro-Text-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1512;
  font-family: "Reforma Grotesk Demi", sans-serif;
  -webkit-font-smoothing: antialiased;

  background: transparent;
}

.stats-host {
  position: relative;
  flex-shrink: 0;
}

.stats-block {
  width: 611px;
  padding: 16.58px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 7.46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(34, 28, 25, 0.4);
  backdrop-filter: blur(6.47px);
  -webkit-backdrop-filter: blur(6.47px);
  box-shadow: 0 0 35.9px rgba(0, 0, 0, 1);
  color: #fff;
  transform-origin: top left;
  user-select: none;
}

/* ── Transactions ── */
.transactions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px;
}

.trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 25.76px;
}

.trade-row--dimmed {
  opacity: 0.7;
}

.trade-left {
  display: flex;
  align-items: center;
  gap: 11.48px;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 25.76px;
  padding: 6.38px;
  border-radius: 5.1px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.badge--win {
  background: #082c28;
  color: #acffa7;
}

.badge--lose {
  background: #000;
  color: #ba4a4a;
}

.trade-pair {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.trade-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12.76px;
}

.trade-meta {
  font-family: "SF Pro", sans-serif;
  font-size: 10.2px;
  letter-spacing: -0.05em;
  opacity: 0.6;
  line-height: 12px;
}

.trade-amount {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  min-width: 125px;
}

.trade-amount--win {
  color: #acffa7;
}

.trade-amount--lose {
  color: #ba4a4a;
}

/* ── Stats cards ── */
.stats-section {
  display: flex;
  flex-direction: column;
  gap: 12.76px;
}

.stats-cards {
  display: flex;
  gap: 12.76px;
  align-items: stretch;
}

.stat-card {
  flex: 1;
  min-width: 0;
  padding: 9.57px;
  border-radius: 4.46px;
  display: flex;
  flex-direction: column;
  gap: 10.2px;
}

.stat-card--balance {
  background: rgba(0, 0, 0, 0.8);
  border: 0.64px solid #3c2e28;
  box-shadow:
    inset 0 0 32.08px rgba(0, 0, 0, 1),
    inset 0 -2.55px 14.67px rgba(229, 69, 0, 0.34);
}

.stat-card--earned {
  background: rgba(8, 44, 40, 0.8);
  box-shadow: inset 0 -2.55px 14.67px rgba(19, 255, 2, 0.34);
}

.stat-card--result {
  flex: 0 0 130px;
  align-items: center;
  justify-content: center;
  padding-top: 9.57px;
}

.stat-label {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.stat-value {
  font-size: 36.04px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.stat-value--orange {
  color: #e54500;
}

.stat-value--green {
  color: #acffa7;
}

.result-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10.2px;
}

.result-win {
  font-size: 36.04px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #83ca87;
}

.result-divider {
  width: 0.64px;
  height: 24.87px;
  background: #e54500;
  flex-shrink: 0;
}

.result-lose {
  font-size: 36.04px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ba4a4a;
}

/* ── Footer / branding ── */
.footer {
  display: flex;
  flex-direction: column;
  gap: 12.76px;
  padding-top: 0;
  border-top: 0.64px solid rgba(229, 69, 0, 0.5);
}

.footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12.76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-name {
  font-family: "Imbue", serif;
  font-size: 38.76px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
}

.brand-handle {
  font-family: "SF Pro", sans-serif;
  font-size: 10.2px;
  letter-spacing: -0.05em;
  opacity: 0.6;
  line-height: 12px;
  align-self: center;
  padding-bottom: 4px;
}

.datetime {
  display: flex;
  align-items: center;
  gap: 12.76px;
  font-family: "SF Pro", sans-serif;
  font-size: 10.2px;
  letter-spacing: -0.05em;
  opacity: 0.6;
  line-height: 12px;
}

/* ── Ticker ── */
.ticker-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 19.13px;
  width: max-content;
  animation: ticker-scroll 18s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 19.13px;
  flex-shrink: 0;
}

.ticker-text {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-dot {
  width: 8.29px;
  height: 8.29px;
  border-radius: 50%;
  background: #e54500;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}