:root {
  --bg: #f5f7f4;
  --ink: #17211b;
  --muted: #65716a;
  --line: #dbe2dc;
  --panel: #ffffff;
  --green: #0f7a4f;
  --blue: #1d5d9b;
  --red: #b5313b;
  --gold: #c69023;
  --shadow: 0 18px 48px rgba(23, 33, 27, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.access-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 20, 15, 0.72);
  backdrop-filter: blur(12px);
}

.access-modal {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.access-modal h2 {
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
}

.access-copy {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.access-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0 16px;
}

.access-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.access-step span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #edf1ee;
}

.access-step.active {
  border-color: #a8d9bc;
  color: var(--green);
  background: #f0f8f3;
}

.access-wallet-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.access-wallet-button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 70px;
  padding: 12px;
  border-color: var(--line);
  background: #fbfcfb;
  color: var(--ink);
  text-align: left;
}

.access-wallet-button span:last-child {
  display: grid;
  gap: 4px;
}

.access-wallet-button small {
  color: var(--muted);
}

.access-payment {
  display: grid;
  gap: 12px;
}

.access-wallet-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.access-wallet-summary strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.access-pay-button {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.access-pay-button.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.access-verify-button {
  background: var(--ink);
  font-weight: 800;
}

.access-waiting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.access-waiting div {
  display: grid;
  gap: 4px;
}

.access-waiting small {
  color: var(--muted);
  line-height: 1.5;
}

.access-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid #c9d9d0;
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.access-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.topbar,
footer {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.dashboard-shell {
  display: grid;
  width: min(1740px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.dashboard-shell main {
  min-width: 0;
}

.market-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 33, 27, 0.05);
}

.market-sidebar-heading,
.market-line div,
.market-line span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-sidebar-heading h3 {
  margin-top: 5px;
  font-size: 20px;
}

.smart-money-toolbar,
.smart-money-section-heading,
.smart-wallet-rank,
.smart-trade > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.smart-money-toolbar {
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.smart-money-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.smart-money-toggle input {
  accent-color: var(--green);
}

.smart-wallet-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
}

.smart-wallet-form input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.smart-wallet-form button,
.smart-wallet-chip button {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.smart-money-message {
  min-height: 17px;
  margin: 7px 0;
  color: var(--green);
  font-size: 12px;
  line-height: 1.4;
}

.smart-wallet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.smart-wallet-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px 4px 8px;
  border-radius: 999px;
  background: #edf5ef;
  color: var(--green-deep);
  font-family: monospace;
  font-size: 11px;
}

.smart-wallet-chip button {
  width: 18px;
  height: 18px;
  background: transparent;
  color: var(--green-deep);
  line-height: 1;
}

.smart-money-section {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.smart-money-section-heading strong {
  font-size: 14px;
}

.smart-money-section-heading span,
.smart-wallet-rank small,
.smart-trade time,
.smart-trade p {
  color: var(--muted);
  font-size: 11px;
}

.smart-money-trades,
.smart-money-ranking {
  display: grid;
  gap: 7px;
  overflow-y: auto;
}

.smart-money-trades {
  max-height: 330px;
}

.smart-money-ranking {
  max-height: 390px;
}

.smart-trade,
.smart-wallet-rank {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfb;
}

.smart-trade {
  display: grid;
  gap: 5px;
  padding: 9px;
  border-left-width: 3px;
}

.smart-trade.buy {
  border-left-color: #11884b;
}

.smart-trade.sell {
  border-left-color: #c94b42;
}

.smart-trade strong,
.smart-trade span {
  font-size: 12px;
}

.smart-trade a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.smart-trade a:hover {
  color: var(--green);
}

.smart-trade p {
  margin: 0;
}

.smart-wallet-rank {
  padding: 8px;
}

.smart-wallet-rank > b {
  width: 18px;
  color: var(--green);
  font-size: 13px;
}

.smart-wallet-rank div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.smart-wallet-rank strong,
.smart-wallet-rank small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-wallet-rank > span {
  display: grid;
  justify-items: end;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.market-sidebar-updated {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.market-sidebar-list,
.market-game {
  display: grid;
  gap: 10px;
}

.market-sidebar-empty,
.market-game {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.market-sidebar-empty {
  display: grid;
  gap: 6px;
}

.market-sidebar-empty span,
.market-game time,
.market-line span {
  color: var(--muted);
  font-size: 12px;
}

.market-game > a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
}

.market-game > a:hover {
  color: var(--green);
}

.market-line {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.market-line strong {
  font-size: 12px;
  line-height: 1.45;
}

.market-line div {
  align-items: stretch;
  flex-wrap: wrap;
}

.market-line span {
  min-width: 46%;
  padding: 6px;
  border-radius: 6px;
  background: #edf5ef;
}

.market-line b {
  color: var(--green);
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
}

h2 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 24px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: 48px;
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(8, 30, 19, 0.88), rgba(14, 88, 56, 0.6)),
    url("https://images.unsplash.com/photo-1518091043644-c1d4457512c6?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy .eyebrow {
  color: #bfe8cf;
}

.hero-copy p:last-child {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-panel div {
  min-width: 0;
}

.metric-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(15, 122, 79, 0.14);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 170px auto;
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 12px;
  background: #fbfcfb;
  color: var(--ink);
}

input:disabled {
  color: var(--muted);
  background: #edf1ee;
}

button {
  align-self: end;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.wallet-control {
  position: relative;
}

.wallet-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 156px;
  justify-content: center;
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.wallet-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #7bdca6;
}

.wallet-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wallet-menu-header,
.wallet-option,
.wallet-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-menu-header {
  padding: 4px 4px 12px;
}

.wallet-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.wallet-options {
  display: grid;
  gap: 6px;
}

.wallet-option {
  width: 100%;
  height: auto;
  min-height: 62px;
  justify-content: flex-start;
  padding: 10px;
  border-color: var(--line);
  background: #fbfcfb;
  color: var(--ink);
  text-align: left;
}

.wallet-option:hover {
  border-color: #aab8b0;
  background: #f3f7f4;
}

.wallet-option span:last-child {
  display: grid;
  gap: 3px;
}

.wallet-option small {
  color: var(--muted);
}

.wallet-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.phantom-icon {
  background: #7257dc;
}

.okx-icon {
  background: #111;
}

.wc-icon {
  background: #2f80ed;
}

.muted-option {
  opacity: 0.72;
}

.wallet-connected {
  padding: 12px 4px 4px;
  color: var(--muted);
  font-size: 13px;
}

.wallet-connected button {
  height: 34px;
  border-color: #edcbd0;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.wallet-message {
  min-height: 18px;
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 24px;
}

.panel {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 33, 27, 0.05);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.section-heading span,
.hint {
  color: var(--muted);
  font-size: 13px;
}

.contender-list {
  display: grid;
  gap: 12px;
}

.contender {
  display: grid;
  grid-template-columns: 42px minmax(170px, 1fr) minmax(160px, 2fr) 72px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #edf5ef;
  color: var(--green);
  font-weight: 900;
}

.team-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.team-name strong,
.player-card strong {
  overflow-wrap: anywhere;
}

.team-detail-link {
  color: var(--ink);
  text-decoration: none;
}

.team-detail-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.team-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-flag {
  width: 24px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  object-fit: cover;
}

.team-name span {
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ee;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.probability {
  text-align: right;
  font-weight: 900;
}

.mvp-list,
.team-grid,
.history-grid,
.player-table {
  display: grid;
  gap: 14px;
}

.bracket-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.live-football-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.live-match-list,
.standings-list {
  display: grid;
  gap: 12px;
}

.live-match-card,
.live-empty,
.standing-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.live-match-card {
  padding: 14px;
}

.live-match-meta,
.live-score,
.live-events div,
.live-side-heading,
.standing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-match-meta {
  color: var(--muted);
  font-size: 12px;
}

.live-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e5f4ea;
  color: var(--green);
  font-weight: 900;
}

.live-score {
  padding: 20px 0;
  text-align: center;
}

.live-score div {
  display: grid;
  flex: 1;
  gap: 4px;
}

.live-score span,
.live-events span,
.live-events small,
.live-side-heading span,
.live-empty span,
.live-empty-detail {
  color: var(--muted);
  font-size: 12px;
}

.live-score b {
  font-size: 28px;
}

.live-events {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.live-events div {
  justify-content: flex-start;
  font-size: 12px;
}

.live-events strong {
  min-width: 32px;
  color: var(--green);
}

.live-events small {
  margin-left: auto;
}

.live-side-heading {
  margin-bottom: 10px;
  font-size: 14px;
}

.standing-group {
  padding: 10px;
}

.standing-group h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.standing-row {
  min-height: 34px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.standing-row span {
  width: 18px;
  color: var(--muted);
}

.standing-row strong {
  flex: 1;
}

.live-empty {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.live-empty-detail {
  margin: 0;
  line-height: 1.6;
}

.bracket-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-dot.live {
  background: var(--green);
}

.legend-dot.qualified {
  background: var(--blue);
}

.legend-dot.eliminated {
  background: #a7afa9;
}

.bracket-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}

.bracket-grid {
  display: grid;
  min-width: 1180px;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 14px;
}

.bracket-round {
  min-width: 0;
}

.bracket-round h4 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.bracket-matches {
  display: grid;
  align-content: space-around;
  gap: 12px;
  height: 100%;
}

.bracket-match {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.bracket-match.live {
  border-color: #8bc9a5;
  box-shadow: 0 0 0 3px rgba(15, 122, 79, 0.09);
}

.bracket-match-meta,
.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bracket-match-meta {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.bracket-match.live .bracket-match-meta strong {
  color: var(--green);
}

.bracket-team {
  min-height: 38px;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.bracket-team:first-of-type {
  border-top: 0;
}

.bracket-team.qualified {
  color: var(--blue);
  font-weight: 800;
  background: #f0f5fa;
}

.bracket-team.live {
  color: var(--green);
  font-weight: 800;
  background: #f0f8f3;
}

.bracket-team.eliminated {
  color: #9ba39e;
  background: #f0f1f0;
  text-decoration: line-through;
}

.bracket-team.pending {
  color: #a7afa9;
  font-style: italic;
}

.mvp-card,
.team-card,
.edition-card,
.player-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.mvp-card {
  padding: 16px;
}

.mvp-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

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

.team-card {
  padding: 15px;
}

.team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.team-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5ef;
  color: #27543b;
  font-size: 12px;
  font-weight: 800;
}

.market-link {
  display: block;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.market-link:hover {
  text-decoration: underline;
}

.squad-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 2px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.squad-link:hover {
  text-decoration: underline;
}

.players {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.player-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.player-card span,
.player-row span,
.edition-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.segmented button {
  height: 38px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

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

.edition-card {
  padding: 16px;
}

.edition-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.player-row {
  display: grid;
  grid-template-columns: 1fr 150px 130px 1.3fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.player-row strong {
  overflow-wrap: anywhere;
}

.api-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(200px, 300px) auto;
  gap: 12px;
  margin-bottom: 12px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 18px 0 30px;
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--blue);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.detail-hero {
  display: flex;
  min-height: 280px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 36px;
  border-radius: 8px;
  background: #173e2d;
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-hero .eyebrow {
  color: #bfe8cf;
}

.detail-hero h2 {
  margin: 8px 0 12px;
}

.detail-team-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-team-title img {
  width: 72px;
  max-height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  object-fit: cover;
}

.detail-team-title h2 {
  margin: 8px 0 12px;
}

.detail-hero p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.detail-odds {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-odds span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.detail-odds strong {
  font-size: 38px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
}

.detail-player-list,
.news-list,
.profile-list {
  display: grid;
  gap: 10px;
}

.detail-player-row {
  display: grid;
  grid-template-columns: 42px minmax(150px, 1fr) 70px minmax(140px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.detail-player-row span {
  color: var(--muted);
}

.squad-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.squad-details summary {
  padding: 14px;
  color: var(--green);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.squad-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.squad-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}

.squad-table th,
.squad-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.squad-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.squad-table td:not(:first-child) {
  color: var(--muted);
}

.squad-source {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.squad-source a {
  color: var(--blue);
  font-weight: 800;
}

.player-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ef;
  color: var(--green) !important;
  font-weight: 900;
}

.coach-panel p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.profile-list span {
  color: var(--muted);
}

.profile-list a {
  color: var(--blue);
  font-weight: 800;
}

.news-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.news-item time,
.news-item p {
  color: var(--muted);
  font-size: 13px;
}

.news-item h4 {
  margin: 0 0 7px;
  font-size: 17px;
}

.news-item p {
  line-height: 1.6;
}

.detail-empty {
  margin-top: 40px;
}

.feature-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 24px;
}

.feature-nav-item {
  display: grid;
  min-height: 118px;
  align-content: end;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.feature-nav-item:hover {
  border-color: #9cc7ae;
  box-shadow: 0 10px 24px rgba(23, 33, 27, 0.08);
  transform: translateY(-2px);
}

.feature-nav-item span,
.feature-nav-item small {
  color: var(--muted);
  font-size: 12px;
}

.feature-nav-item strong {
  font-size: 19px;
}

.feature-nav-item.groups {
  border-top: 3px solid var(--green);
}

.feature-nav-item.semifinals {
  border-top: 3px solid var(--gold);
}

.feature-nav-item.mvp {
  border-top: 3px solid var(--blue);
}

.feature-nav-item.predictions {
  border-top: 3px solid var(--red);
}

.portal-topbar,
.portal-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.portal-topbar {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 18px;
}

.portal-topbar h1 {
  font-size: 28px;
}

.portal-main {
  padding-bottom: 28px;
}

.portal-intro {
  display: grid;
  min-height: 250px;
  align-content: end;
  gap: 12px;
  margin-bottom: 24px;
  padding: 32px;
  border-radius: 8px;
  background: #173e2d;
  color: #fff;
  box-shadow: var(--shadow);
}

.portal-intro .eyebrow {
  color: #bfe8cf;
}

.portal-intro h2 {
  font-size: clamp(32px, 5vw, 58px);
}

.portal-intro p:last-child {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.portal-group-grid,
.portal-mvp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-group,
.portal-mvp-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.portal-group {
  padding: 14px;
}

.portal-group h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 16px;
}

.portal-group a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.portal-group a:hover {
  color: var(--green);
}

.portal-group span {
  color: var(--muted);
}

.portal-placeholder {
  display: grid;
  min-height: 320px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.portal-placeholder-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ef;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.portal-placeholder p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.65;
}

.portal-mvp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.portal-mvp-card > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff7e6;
  color: #966815;
  font-size: 13px;
  font-weight: 900;
}

.portal-mvp-card h3,
.portal-mvp-card p {
  margin: 0;
}

.portal-mvp-card h3 {
  font-size: 16px;
}

.portal-mvp-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.prediction-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
}

.prediction-form {
  display: grid;
  gap: 12px;
}

.prediction-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.prediction-current {
  margin-top: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.prediction-results {
  display: grid;
  gap: 14px;
}

.prediction-result {
  display: grid;
  gap: 7px;
}

.prediction-result div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.prediction-result span {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .dashboard-shell {
    display: block;
  }

  .market-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }

  .layout,
  .hero,
  .detail-layout,
  .live-football-layout,
  .prediction-layout {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .history-grid,
  .portal-group-grid,
  .portal-mvp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-button,
  .live-pill {
    width: 100%;
    justify-content: center;
  }

  .wallet-menu {
    right: auto;
    left: 0;
  }

  .hero {
    min-height: 560px;
    padding: 28px;
  }

  .access-modal {
    padding: 20px;
  }

  .access-wallet-options,
  .access-steps {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .api-form,
  .team-grid,
  .history-grid,
  .player-row,
  .feature-nav,
  .portal-group-grid,
  .portal-mvp-grid {
    grid-template-columns: 1fr;
  }

  .feature-nav-item {
    min-height: 92px;
  }

  .portal-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .contender {
    grid-template-columns: 42px 1fr 66px;
  }

  .detail-hero {
    min-height: 340px;
    align-items: stretch;
    flex-direction: column;
    justify-content: end;
    padding: 28px;
  }

  .detail-player-row,
  .news-item {
    grid-template-columns: 1fr;
  }

  .contender .bar {
    grid-column: 2 / -1;
  }
}
