:root {
  --wc-bg-dark: #0f2318;
  --wc-bg-card: #142b1e;
  --wc-bg-surface: #1a3a2a;
  --wc-border: #2a5c3a;
  --wc-accent: #3dd68c;
  --wc-gold: #f5c842;
  --wc-muted: #8ba89a;
  --wc-error: #e05252;
  --wc-text: #ffffff;
}

@keyframes coinFlip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

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

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wc-page-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(61, 214, 140, .2), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(245, 200, 66, .18), transparent 28%),
    linear-gradient(180deg, #07140d 0%, var(--wc-bg-dark) 45%, #10291b 100%);
  color: var(--wc-text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.wc-page-body .launch-map-header .launch-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.wc-page-body .launch-map-header .banner-logo-img {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  flex: 0 0 auto !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.wc-page-body .launch-map-header .home-nav-banner-img {
  display: block !important;
  width: min(265px, 22vw) !important;
  max-width: 265px !important;
  max-height: 72px !important;
  min-width: 0 !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 980px) {
  .wc-page-body .launch-map-header .launch-logo {
    display: contents !important;
  }

  .wc-page-body .launch-map-header .banner-logo-img {
    grid-column: 1 !important;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    justify-self: center !important;
    align-self: center !important;
  }

  .wc-page-body .launch-map-header .home-nav-banner-img {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 56px !important;
    justify-self: center !important;
    align-self: center !important;
  }
}

@media (max-width: 430px) {
  .wc-page-body .launch-map-header .banner-logo-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }

  .wc-page-body .launch-map-header .home-nav-banner-img {
    max-height: 48px !important;
  }
}

.wc-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 56px;
}

.wc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
  border: 2px solid var(--wc-border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 35, 24, .96), rgba(26, 58, 42, .88)),
    url('/assets/images/games/games-gui.webp') center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  animation: fadeIn .35s ease-out;
}

.wc-hero-compact {
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

.wc-eyebrow {
  display: inline-flex;
  color: var(--wc-accent);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wc-hero h1 {
  margin: 8px 0 12px;
  color: var(--wc-gold);
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: .86;
  text-shadow: 0 4px 0 #062313, 0 10px 22px rgba(0, 0, 0, .35);
}

.wc-hero p {
  max-width: 720px;
  margin: 0;
  color: #eef8f1;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
}

.wc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 2px solid var(--wc-border);
  border-radius: 999px;
  color: var(--wc-text);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.wc-btn-gold {
  border-color: #ffd75c;
  background: linear-gradient(#ffe07b, var(--wc-gold));
  color: #17240d;
  box-shadow: 0 5px 0 #9b7414;
}

.wc-btn-ghost {
  background: rgba(255, 255, 255, .08);
}

.wc-balance-card,
.wc-panel,
.wc-match-card {
  border: 1px solid var(--wc-border);
  border-radius: 22px;
  background: rgba(20, 43, 30, .94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.wc-balance-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px;
  text-align: center;
}

.wc-coin {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(#ffe785, var(--wc-gold));
  box-shadow: inset 0 -5px 0 rgba(120, 88, 4, .24), 0 8px 18px rgba(0, 0, 0, .24);
  font-size: 2rem;
}

.wc-balance-card strong {
  color: var(--wc-gold);
  font-size: 2.2rem;
  line-height: 1;
}

.wc-balance-card small {
  color: var(--wc-muted);
  font-weight: 800;
}

.wc-panel {
  margin-top: 20px;
  padding: 22px;
}

.wc-panel h2,
.wc-section-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.wc-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 30px 0 16px;
}

.wc-section-head p {
  max-width: 440px;
  margin: 0;
  color: var(--wc-muted);
  font-weight: 800;
}

.wc-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.wc-match-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  animation: fadeIn .3s ease-out;
}

.wc-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.wc-group {
  color: var(--wc-accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.wc-status {
  border-radius: 999px;
  padding: 5px 10px;
  background: #213f2c;
  color: #dff7e8;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wc-status.completed { background: #163d21; color: var(--wc-accent); }
.wc-status.locked { background: #4c3714; color: var(--wc-gold); }

.wc-teams {
  margin: 18px 0;
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.wc-vs {
  color: var(--wc-muted);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wc-meta {
  margin: 0 0 18px;
  color: var(--wc-muted);
  font-weight: 800;
  line-height: 1.45;
}

.wc-bet-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wc-bet-btn {
  min-height: 48px;
  border: 1px solid var(--wc-border);
  border-radius: 14px;
  background: #183622;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.wc-bet-btn:hover,
.wc-bet-btn:focus-visible {
  border-color: var(--wc-accent);
  background: #1a5c2a;
}

.wc-bet-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.wc-my-bet,
.wc-closed {
  padding: 12px;
  border-radius: 14px;
  background: rgba(61, 214, 140, .1);
  border: 1px solid rgba(61, 214, 140, .35);
  color: #eafff2;
  font-weight: 900;
}

.wc-closed {
  background: rgba(245, 200, 66, .09);
  border-color: rgba(245, 200, 66, .35);
}

.wc-flip {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(5, 18, 10, .72);
  backdrop-filter: blur(2px);
}

.wc-match-card.is-flipping .wc-flip {
  display: grid;
}

.wc-match-card.is-flipping .wc-coin {
  animation: coinFlip 1.2s linear;
}

.wc-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2000;
  max-width: min(360px, calc(100vw - 28px));
  padding: 14px 16px;
  border: 1px solid var(--wc-border);
  border-radius: 14px;
  background: #fff;
  color: #102318;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
  animation: toastIn .2s ease-out;
}

.wc-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}

.wc-podium-card {
  width: min(240px, 31%);
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--wc-border);
  border-radius: 20px;
  background: var(--wc-bg-card);
  text-align: center;
}

.wc-podium-card.rank-1 {
  min-height: 210px;
  border-color: var(--wc-gold);
  animation: pulse 2s infinite;
}

.wc-podium-rank {
  color: var(--wc-gold);
  font-size: 2rem;
  font-weight: 900;
}

.wc-prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.wc-prize {
  padding: 12px;
  border-radius: 14px;
  background: #102719;
  border: 1px solid var(--wc-border);
}

.wc-table-wrap {
  overflow-x: auto;
}

.wc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.wc-table th,
.wc-table td {
  padding: 12px;
  border-bottom: 1px solid var(--wc-border);
  text-align: left;
}

.wc-table th {
  color: var(--wc-muted);
  text-transform: uppercase;
  font-size: .78rem;
}

.wc-table tr.is-you td {
  background: rgba(61, 214, 140, .12);
  border-top: 1px solid var(--wc-accent);
  border-bottom: 1px solid var(--wc-accent);
}

.wc-you {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wc-accent);
  color: #07140d;
  font-size: .72rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .wc-hero,
  .wc-section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .wc-balance-card {
    justify-items: start;
    text-align: left;
  }

  .wc-match-grid,
  .wc-prizes {
    grid-template-columns: 1fr;
  }

  .wc-bet-buttons {
    grid-template-columns: 1fr;
  }

  .wc-podium {
    flex-direction: column;
    align-items: stretch;
  }

  .wc-podium-card {
    width: 100%;
    min-height: auto;
  }
}
