:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(14, 18, 25, 0.86);
  --panel-strong: rgba(21, 26, 35, 0.94);
  --ink: #f5f7fb;
  --muted: #aab3c2;
  --dim: #778196;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f4b942;
  --amber: #e98f26;
  --brand-blue: #0669d8;
  --brand-cyan: #29c7ff;
  --violet: #5a22e6;
  --green: #24d18f;
  --red: #f05260;
  --cyan: #51d3ff;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.92) 0%, rgba(7, 9, 13, 0.65) 54%, rgba(7, 9, 13, 0.9) 100%),
    radial-gradient(ellipse at top right, rgba(41, 199, 255, 0.16), transparent 38%),
    radial-gradient(ellipse at 12% 0%, rgba(6, 105, 216, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.22), #07090d 88%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

#market-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(41, 199, 255, 0.42);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 34px rgba(6, 105, 216, 0.36);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.58);
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.contest-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100% - 40px, var(--max));
  margin: 16px auto 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.72);
}

.contest-tab {
  display: grid;
  min-height: 68px;
  align-content: center;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 900;
}

.contest-tab span {
  margin-bottom: 3px;
  color: var(--brand-cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contest-tab.is-active {
  border-color: rgba(41, 199, 255, 0.34);
  background: linear-gradient(135deg, rgba(41, 199, 255, 0.14), rgba(6, 105, 216, 0.12));
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: center;
  width: min(100% - 40px, var(--max));
  min-height: calc(86vh - 76px);
  margin: 0 auto;
  padding: 42px 0 54px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 12px;
  color: var(--brand-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: 4.8rem;
  font-weight: 950;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: #d7deeb;
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 900;
}

.primary-link {
  border: 1px solid rgba(41, 199, 255, 0.48);
  background: linear-gradient(135deg, rgba(41, 199, 255, 0.94), rgba(6, 105, 216, 0.9));
  color: #031018;
}

.ghost-link {
  border: 1px solid rgba(41, 199, 255, 0.28);
  background: rgba(6, 105, 216, 0.12);
  color: var(--brand-cyan);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.presented-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.presented-by span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.presented-by img {
  width: auto;
  max-width: 132px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: grayscale(1) invert(1) contrast(1.36) brightness(1.18);
  mix-blend-mode: screen;
  object-fit: contain;
  opacity: 0.82;
}

.presented-by .coinwatcher-logo {
  max-width: 146px;
}

.hero-facts article,
.step,
.rule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-facts article {
  min-height: 116px;
  padding: 18px;
}

.hero-facts span,
.deadline-date,
.source-note,
.step p,
.rule-card p,
.section-lead,
.bases-list dd,
.footer {
  color: var(--muted);
}

.hero-facts span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts strong {
  display: block;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.24;
}

.deadline {
  align-self: stretch;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border: 1px solid rgba(41, 199, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 105, 216, 0.16), rgba(14, 18, 25, 0.92) 36%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.deadline h2 {
  font-size: 2.2rem;
}

.deadline-date {
  margin: 12px 0 24px;
  font-size: 1.02rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.countdown span {
  min-width: 0;
  padding: 14px 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.countdown strong {
  display: block;
  color: var(--brand-cyan);
  font-size: 2.1rem;
  line-height: 1;
}

.countdown small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.source-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.sponsors-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 34px 0 56px;
  border-top: 1px solid var(--line);
}

.sponsors-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.sponsors-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sponsor-card {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(41, 199, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(16, 24, 35, 0.78), rgba(6, 105, 216, 0.1)),
    rgba(8, 12, 18, 0.72);
  box-shadow: var(--shadow);
}

.sponsor-card img {
  width: min(100%, 210px);
  max-height: 62px;
  filter: grayscale(1) invert(1) contrast(1.42) brightness(1.16);
  mix-blend-mode: screen;
  object-fit: contain;
  opacity: 0.88;
}

.sponsor-card .coinwatcher-logo {
  width: min(100%, 250px);
  max-height: 74px;
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 74px 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.section h2 {
  max-width: 720px;
  font-size: 2.75rem;
}

.section-lead {
  max-width: 540px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.videos-section {
  border-top: 1px solid var(--line);
}

.participants-section {
  border-top: 1px solid var(--line);
}

.participants-heading {
  align-items: start;
}

.participants-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  min-width: min(100%, 430px);
}

.participants-summary span {
  display: block;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(41, 199, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.78);
}

.participants-summary strong,
.participant-price {
  color: var(--brand-cyan);
}

.participants-summary strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.participants-summary small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.participants-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand-cyan);
  background: rgba(41, 199, 255, 0.08);
  color: #d8e2f0;
  font-weight: 720;
}

.participants-table-wrap {
  max-height: 760px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 11, 17, 0.84);
  box-shadow: var(--shadow);
}

.participants-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.participants-table th,
.participants-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.participants-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0c121b;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.participants-table th:nth-child(1),
.participants-table td:nth-child(1) {
  width: 58px;
}

.participants-table th:nth-child(2),
.participants-table td:nth-child(2) {
  width: 150px;
}

.participants-table th:nth-child(3),
.participants-table td:nth-child(3) {
  width: 210px;
}

.participants-table th:nth-child(5),
.participants-table td:nth-child(5) {
  width: 260px;
}

.participants-table th:nth-child(6),
.participants-table td:nth-child(6) {
  width: 92px;
}

.participants-table tr:hover td {
  background: rgba(41, 199, 255, 0.045);
}

.participant-rank {
  color: var(--dim);
  font-weight: 900;
  white-space: nowrap;
}

.participant-price {
  font-weight: 950;
  white-space: nowrap;
}

.participant-user {
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.participant-comment {
  max-width: 430px;
  color: #d7deeb;
}

.participant-comment span:first-child,
.participant-video span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.participant-comment span:first-child {
  -webkit-line-clamp: 3;
}

.participant-video span {
  -webkit-line-clamp: 3;
}

.participant-video {
  max-width: 260px;
  color: var(--muted);
}

.participant-video span,
.participant-video small {
  display: block;
}

.participant-video small {
  margin-top: 6px;
  color: var(--dim);
  font-size: 0.82rem;
}

.edited-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(240, 82, 96, 0.34);
  border-radius: 999px;
  color: #ff99a3;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.table-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(41, 199, 255, 0.32);
  border-radius: 6px;
  color: var(--brand-cyan);
  font-weight: 900;
}

.participants-meta {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(41, 199, 255, 0.34);
  border-radius: 6px;
  background: rgba(6, 105, 216, 0.13);
  color: var(--brand-cyan);
  font-weight: 900;
}

.channel-link:hover {
  background: rgba(6, 105, 216, 0.22);
}

.videos-status {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 14, 20, 0.76);
  color: var(--muted);
}

.videos-status.is-hidden {
  display: none;
}

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

.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-card:hover {
  border-color: rgba(244, 185, 66, 0.46);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.video-thumb::after {
  position: absolute;
  inset: auto 14px 14px auto;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 9, 13, 0.82);
  color: var(--brand-cyan);
  content: "▶";
  font-size: 1rem;
}

.video-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.video-date {
  color: var(--brand-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
}

.video-cta {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.videos-meta {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

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

.step {
  min-height: 236px;
  padding: 24px;
}

.step span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #130d03;
  font-weight: 950;
}

.step h3,
.rule-card h3 {
  font-size: 1.22rem;
}

.step p,
.rule-card p {
  margin: 12px 0 0;
}

.example-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(81, 211, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(81, 211, 255, 0.12), rgba(244, 185, 66, 0.1)),
    rgba(12, 17, 24, 0.9);
}

.example-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.example-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 760;
}

.formula {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.formula strong {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.formula span {
  color: var(--gold);
  font-weight: 950;
}

.rules-section {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

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

.rule-card {
  min-height: 206px;
  padding: 22px;
}

.rule-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  font-weight: 950;
}

.is-good {
  background: rgba(36, 209, 143, 0.18);
  color: var(--green);
}

.is-warn {
  background: rgba(240, 82, 96, 0.16);
  color: var(--red);
}

.bases-section {
  padding-bottom: 88px;
}

.bases-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.bases-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  min-height: 104px;
  padding: 22px;
  background: rgba(10, 14, 20, 0.92);
}

.bases-list dt {
  color: var(--ink);
  font-weight: 900;
}

.bases-list dd {
  margin: 0;
}

.footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 1120px) and (min-width: 981px) {
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar {
    width: min(100% - 28px, var(--max));
  }

  .hero,
  .contest-tabs,
  .sponsors-band,
  .section,
  .example-band,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    font-size: 3.3rem;
  }

  .hero-facts,
  .videos-grid,
  .steps,
  .rules-grid,
  .bases-list {
    grid-template-columns: 1fr;
  }

  .deadline {
    min-height: 0;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .sponsors-band {
    grid-template-columns: 1fr;
  }

  .example-band {
    grid-template-columns: 1fr;
  }

  .formula {
    flex-wrap: wrap;
    white-space: normal;
  }

  .section-heading {
    display: block;
  }

  .participants-summary {
    margin-top: 22px;
  }

  .bases-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow-x: hidden;
  }

  .topnav a {
    justify-content: center;
    min-width: 0;
    padding-inline: 3px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: 2.48rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .contest-tabs {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .presented-by {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .presented-by span {
    grid-column: 1 / -1;
  }

  .presented-by img,
  .presented-by .coinwatcher-logo {
    width: 100%;
    max-width: none;
    height: 34px;
    padding: 7px 6px;
  }

  .hero-facts article,
  .deadline,
  .step,
  .rule-card,
  .example-band {
    padding: 20px;
  }

  .deadline h2 {
    font-size: 1.68rem;
  }

  .section h2 {
    font-size: 2rem;
  }

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

  .sponsors-logos {
    grid-template-columns: 1fr;
  }

  .participants-summary {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .participants-table-wrap {
    max-height: 680px;
  }

  .participants-table {
    min-width: 820px;
  }

  .countdown strong {
    font-size: 1.8rem;
  }

  .section {
    padding: 52px 0;
  }

  .channel-link {
    margin-top: 18px;
    width: 100%;
  }

  .video-card {
    min-height: 0;
  }

  .example-copy p {
    font-size: 1.04rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
