:root {
  --ink: #f7f6ef;
  --muted: #b7b7aa;
  --subtle: #7f8277;
  --line: rgba(247, 246, 239, 0.14);
  --panel: rgba(13, 24, 18, 0.88);
  --panel-soft: rgba(247, 246, 239, 0.06);
  --pitch: #07150f;
  --pitch-2: #10291b;
  --gold: #d8b24a;
  --gold-strong: #f2c75b;
  --red: #d9514e;
  --green: #48c481;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pitch);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  background: linear-gradient(180deg, rgba(3, 10, 7, 0.78), rgba(3, 10, 7, 0));
}

.brand,
.wallet-button,
.site-nav,
.header-actions {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(216, 178, 74, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  object-fit: cover;
  box-shadow: 0 0 18px rgba(216, 178, 74, 0.16);
}

.site-nav {
  gap: 26px;
  color: rgba(247, 246, 239, 0.78);
  font-size: 14px;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  gap: 12px;
}

.x-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(247, 246, 239, 0.2);
  border-radius: 50%;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  background: rgba(247, 246, 239, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.x-link:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 246, 239, 0.36);
  background: rgba(247, 246, 239, 0.13);
}

.wallet-button,
.primary-action,
.ghost-action,
.ghost-button,
.load-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.wallet-button {
  padding: 0 18px;
  border: 1px solid rgba(247, 246, 239, 0.18);
  color: var(--ink);
  background: rgba(247, 246, 239, 0.08);
}

.wallet-button:hover,
.ghost-action:hover,
.ghost-button:hover,
.load-more:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 246, 239, 0.34);
}

.primary-action {
  padding: 0 22px;
  color: #121208;
  font-weight: 850;
  background: var(--gold-strong);
}

.primary-action:hover {
  transform: translateY(-1px);
  background: #ffdb79;
}

.primary-action:disabled,
.ghost-button:disabled,
.wallet-button:disabled,
.load-more:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.ghost-action,
.ghost-button,
.load-more {
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(247, 246, 239, 0.06);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  padding: 128px 48px 92px;
  overflow: hidden;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: videoBreath 16s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 8, 5, 0.9) 0%, rgba(2, 8, 5, 0.68) 42%, rgba(2, 8, 5, 0.2) 100%),
    linear-gradient(180deg, rgba(2, 8, 5, 0.2) 0%, rgba(7, 21, 15, 0.95) 100%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
  animation: riseIn 700ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  width: fit-content;
  color: transparent;
  background: linear-gradient(92deg, #fffdf0 0%, #f2c75b 48%, #d8b24a 72%, #fff5c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 96px;
  line-height: 0.98;
  font-weight: 950;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.hero-copy {
  max-width: 600px;
  margin: 26px 0 0;
  color: rgba(247, 246, 239, 0.88);
  font-size: 23px;
  line-height: 1.48;
}

.hero-powered {
  margin: 18px 0 0;
  color: rgba(242, 199, 91, 0.92);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  color: rgba(247, 246, 239, 0.78);
  font-size: 14px;
}

.hero-note span {
  padding-right: 14px;
  border-right: 1px solid rgba(247, 246, 239, 0.18);
}

.hero-note span:last-child {
  border-right: 0;
}

.section {
  padding: 92px 48px;
}

.section-title {
  width: min(1180px, 100%);
  margin: 0 auto 40px;
}

.section-title h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.compact-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.rules-section {
  background: var(--pitch);
}

.flow-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 21, 15, 1), rgba(10, 28, 18, 1)),
    var(--pitch);
}

.flow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(247, 246, 239, 0.32) 23.1% 23.2%, transparent 23.3% 49.8%, rgba(247, 246, 239, 0.3) 49.9% 50%, transparent 50.1% 76.7%, rgba(247, 246, 239, 0.28) 76.8% 76.9%, transparent 77%),
    linear-gradient(0deg, transparent 0 49.8%, rgba(247, 246, 239, 0.25) 49.9% 50%, transparent 50.1%);
}

.flow-section .section-title,
.flow-line {
  position: relative;
}

.rule-grid,
.flow-line,
.match-workspace,
.account-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule-item {
  min-height: 220px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}

.rule-item:last-child {
  border-right: 0;
}

.rule-item span {
  color: var(--gold);
  font-weight: 900;
}

.rule-item h3 {
  margin: 56px 0 12px;
  font-size: 22px;
}

.rule-item p,
.flow-line span,
.hint-text {
  color: var(--muted);
  line-height: 1.65;
}

.flow-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding-top: 8px;
}

.flow-line::before {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  top: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 199, 91, 0.16), rgba(242, 199, 91, 0.82), rgba(242, 199, 91, 0.16));
  box-shadow: 0 0 24px rgba(242, 199, 91, 0.18);
}

.flow-step {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
  min-height: 170px;
  padding-right: 22px;
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(242, 199, 91, 0.64);
  border-radius: 50%;
  color: var(--gold-strong);
  background:
    radial-gradient(circle at 50% 48%, rgba(242, 199, 91, 0.2), rgba(242, 199, 91, 0.06) 56%, rgba(7, 21, 15, 0.95) 57%),
    rgba(7, 21, 15, 0.96);
  box-shadow:
    0 0 0 10px #08180f,
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.flow-step-number {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(7, 21, 15, 0.66);
  border-radius: 50%;
  color: #121208;
  font-size: 12px;
  font-weight: 950;
  background: var(--gold-strong);
}

.flow-icon {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}

.flow-line strong {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.2;
}

.match-section {
  background:
    linear-gradient(180deg, rgba(16, 41, 27, 0.65), rgba(7, 21, 15, 1)),
    var(--pitch-2);
}

.global-status,
.status-pill,
.match-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-pill.open {
  border-color: rgba(72, 196, 129, 0.5);
  color: #8df0b8;
}

.status-pill.wait {
  border-color: rgba(216, 178, 74, 0.48);
  color: #f5d77d;
}

.status-pill.closed {
  border-color: rgba(217, 81, 78, 0.5);
  color: #ff9b97;
}

.match-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.featured-match,
.schedule-panel,
.account-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.featured-match {
  padding: 28px;
}

.featured-head,
.schedule-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.featured-head h3,
.schedule-head h3,
.account-block h3 {
  margin: 10px 0 0;
  font-size: 24px;
}

.versus {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 12px;
  margin-top: 30px;
  align-items: stretch;
}

.team-pick,
.draw-pick {
  min-height: 156px;
  border: 1px solid rgba(247, 246, 239, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(247, 246, 239, 0.045);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.team-pick {
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.draw-pick {
  display: grid;
  place-items: center;
  padding: 18px 12px;
  color: var(--gold-strong);
  font-weight: 900;
}

.team-pick:hover,
.draw-pick:hover,
.team-pick.active,
.draw-pick.active {
  transform: translateY(-2px);
  border-color: rgba(242, 199, 91, 0.74);
  background: rgba(216, 178, 74, 0.12);
}

.team-pick:disabled,
.draw-pick:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.flag {
  font-size: 44px;
  line-height: 1;
}

.team-pick strong {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.team-pick small,
.draw-pick small {
  color: var(--muted);
}

.match-meta,
.data-table,
.claim-result {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

.match-meta div,
.data-table div,
.claim-result div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: rgba(247, 246, 239, 0.04);
}

.match-meta div:last-child,
.claim-result div:last-child {
  border-right: 0;
}

.match-meta span,
.data-table span,
.claim-result span {
  color: var(--subtle);
  font-size: 13px;
}

.match-meta strong,
.data-table strong,
.claim-result strong {
  overflow-wrap: anywhere;
}

.predict-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 22px;
  align-items: end;
}

.amount-field {
  display: grid;
  gap: 8px;
}

.amount-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.amount-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  outline: none;
  background: rgba(0, 0, 0, 0.24);
}

.amount-field input:focus {
  border-color: rgba(242, 199, 91, 0.78);
}

.hint-text {
  min-height: 26px;
  margin: 14px 0 0;
  font-size: 14px;
}

.hint-text.good {
  color: #8df0b8;
}

.hint-text.bad {
  color: #ff9b97;
}

.schedule-panel {
  display: flex;
  max-height: 575px;
  flex-direction: column;
  padding: 22px;
}

.match-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(242, 199, 91, 0.48) rgba(247, 246, 239, 0.08);
}

.match-row {
  width: 100%;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: rgba(247, 246, 239, 0.035);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.match-row:hover,
.match-row.active {
  transform: translateY(-1px);
  border-color: rgba(242, 199, 91, 0.58);
  background: rgba(216, 178, 74, 0.08);
}

.match-row small {
  color: var(--subtle);
}

.match-index {
  display: grid;
  gap: 4px;
  color: var(--subtle);
  line-height: 1.35;
}

.match-id {
  color: rgba(247, 246, 239, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.match-time {
  font-size: 12px;
}

.match-teams {
  min-width: 0;
}

.match-teams strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.load-more {
  width: 100%;
  margin-top: 16px;
}

.account-section {
  background: #09110d;
}

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

.account-block {
  padding: 26px;
}

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

.data-table div {
  grid-template-columns: 150px minmax(0, 1fr);
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.data-table div:last-child {
  border-bottom: 0;
}

.claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.claim-result {
  grid-template-columns: 1fr 1fr;
}

.claim-action {
  width: 100%;
  margin-top: 16px;
}

.site-footer {
  padding: 54px 48px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #060b08;
}

.footer-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.38fr);
  gap: 34px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand .brand {
  width: fit-content;
  color: var(--ink);
}

.footer-brand p,
.footer-column span,
.footer-column a {
  color: var(--muted);
  line-height: 1.7;
}

.footer-brand p {
  margin: 18px 0 0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
}

.footer-column a {
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--gold-strong);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes videoBreath {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.07);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .rule-grid,
  .match-workspace,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .rule-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rule-item:last-child {
    border-bottom: 0;
  }

  .flow-line {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
  }

  .flow-line::before {
    left: 34px;
    right: auto;
    top: 34px;
    bottom: 34px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(242, 199, 91, 0.18), rgba(242, 199, 91, 0.72), rgba(242, 199, 91, 0.18));
  }

  .flow-step {
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 18px;
    min-height: 112px;
    padding: 0 0 24px;
  }

  .flow-node {
    grid-row: 1 / 3;
    width: 68px;
    height: 68px;
    box-shadow:
      0 0 0 8px #08180f,
      0 18px 34px rgba(0, 0, 0, 0.24);
  }

  .flow-step-number {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .flow-icon {
    width: 25px;
    height: 25px;
  }

  .flow-line strong {
    margin-top: 5px;
  }

  .compact-title {
    align-items: start;
    flex-direction: column;
  }

  .match-meta,
  .claim-result {
    grid-template-columns: 1fr;
  }

  .match-meta div,
  .claim-result div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .match-meta div:last-child,
  .claim-result div:last-child {
    border-bottom: 0;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .x-link {
    width: 40px;
    height: 40px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .wallet-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 106px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .featured-match,
  .schedule-panel,
  .account-block {
    padding: 18px;
  }

  .featured-head {
    flex-direction: column;
  }

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

  .team-pick,
  .draw-pick {
    min-height: 96px;
    padding: 10px 6px;
  }

  .flag {
    font-size: 30px;
  }

  .team-pick strong {
    margin-top: 8px;
    font-size: 13px;
  }

  .team-pick small,
  .draw-pick small {
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .predict-panel,
  .claim-row {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .ghost-button {
    width: 100%;
  }

  .match-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .row-status {
    grid-column: 2;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding: 28px 20px;
  }
}
