:root {
  --bg: #09090b;
  --bg2: #151016;
  --ink: #fff7ed;
  --muted: #c7b7a2;
  --red: #e11d48;
  --orange: #f97316;
  --blue: #60a5fa;
  --card: rgba(255, 247, 237, 0.07);
  --line: rgba(255, 247, 237, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(9, 9, 11, 0.78), rgba(15, 10, 16, 0.88)),
    url("./stonks-bg.png") center / cover fixed,
    radial-gradient(circle at 20% 0%, rgba(225, 29, 72, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--bg2));
}

button {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

header,
.hero,
.stats,
.panel,
footer {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.eyebrow,
.tagline,
.panel-head p,
.disclaimer {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  padding-right: 0.08em;
  background: linear-gradient(135deg, #fff, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 8px 0 0;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav a:hover {
  border-color: var(--orange);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 26px;
}

.hero h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero .basket-note {
  max-width: 560px;
  margin-top: -4px;
  color: rgba(255, 247, 237, 0.82);
  font-size: 15px;
  font-weight: 800;
}

.tickers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tickers span {
  border: 1px solid rgba(249, 115, 22, 0.36);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(249, 115, 22, 0.08);
  font-weight: 900;
}

.coin-stage,
.stock-card {
  border: 2px solid rgba(255, 247, 237, 0.22);
  background:
    radial-gradient(circle at 30% 10%, rgba(249, 115, 22, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.22);
}

.coin-stage {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 28px;
}

.coin-stage img {
  display: block;
  width: 100%;
  border-radius: 22px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.38));
}

.image-timer {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 247, 237, 0.24);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.64);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.image-timer span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-timer strong {
  color: var(--orange);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.stock-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 24px;
  padding: 14px;
}

.stock-card img {
  width: 118px;
  border-radius: 18px;
}

.stock-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stock-card h3 {
  margin: 3px 0 4px;
  font-size: 30px;
  line-height: 1;
}

.stock-card code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.stats span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats strong {
  font-size: 24px;
}

.panel {
  margin-top: 16px;
  padding: 20px;
}

.panel-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.panel-head p {
  margin-bottom: 0;
}

.stock-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: right;
}

.receivers {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.receivers li {
  color: var(--muted);
}

.receivers a {
  color: var(--ink);
  font-weight: 800;
}

footer {
  margin-top: 16px;
  padding: 18px 20px;
}

.footer-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#ca-display {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

#copy-toast {
  color: var(--orange);
  font-weight: 800;
}

.disclaimer {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 800px) {
  header,
  .hero,
  .panel-head {
    display: block;
  }

  nav {
    margin-top: 14px;
  }

  .stock-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stock-card {
    grid-template-columns: 1fr;
  }

  .stock-card img {
    width: 100%;
  }
}
