:root {
  --red: #e2292f;
  --green: #00a86b;
  --blue: #1536ff;
  --deep-blue: #07135d;
  --night: #070914;
  --ink: #111521;
  --muted: #6b7280;
  --line: rgba(18, 26, 50, 0.12);
  --gold: #f6c84f;
  --paper: #f8fafc;
  --white: #fffefa;
  --shadow: 0 24px 70px rgba(5, 11, 44, 0.16);
  --focus: 0 0 0 4px rgba(21, 54, 255, 0.18);
  --desktop-shell-max: 940px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 168, 107, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(226, 41, 47, 0.16), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #eef3ff 48%, #f7fff8 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(21, 54, 255, 0.08), transparent 36%),
    radial-gradient(circle at 50% -10%, rgba(246, 200, 79, 0.22), transparent 30%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(7, 19, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 19, 93, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(21, 54, 255, 0.72);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1480px, calc(100vw - 32px));
  height: min(100dvh, var(--desktop-shell-max));
  margin: 0 auto;
  padding: 18px 0 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 6px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(21, 54, 255, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 20px;
  font-weight: 900;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-tabs,
.stage-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: color-mix(in srgb, var(--white) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 82%, transparent);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(13, 22, 60, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.nav-tabs button,
.stage-tabs button,
.count-pill,
.ticket-mode-pill {
  color: #1d2433;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 13px;
}

.nav-tabs button.active,
.stage-tabs button.active,
.count-pill,
.ticket-mode-pill {
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #20283a);
  box-shadow: 0 10px 24px rgba(17, 21, 33, 0.18);
}

.wallet-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--deep-blue);
  background: rgba(21, 54, 255, 0.08);
  border: 1px solid rgba(21, 54, 255, 0.18);
  border-radius: 999px;
  font-weight: 900;
}

.chain-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.78;
}

.chain-pill[data-state="ok"] {
  color: #047857;
  background: rgba(0, 168, 107, 0.1);
  border-color: rgba(0, 168, 107, 0.22);
}

.chain-pill[data-state="warning"] {
  color: #9f1239;
  background: rgba(226, 41, 47, 0.09);
  border-color: rgba(226, 41, 47, 0.2);
}

.connect-btn,
.primary-action,
.switch-chain-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--blue));
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 18px 36px rgba(21, 54, 255, 0.22);
  font-weight: 900;
}

.switch-chain-btn {
  color: #111827;
  background: var(--gold);
  box-shadow: 0 16px 32px rgba(246, 200, 79, 0.24);
}

.connect-btn:disabled,
.primary-action:disabled,
.switch-chain-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.layout {
  display: grid;
  grid-template-columns:
    minmax(260px, clamp(280px, 22vw, 320px))
    minmax(500px, 1fr)
    minmax(280px, clamp(300px, 23vw, 340px));
  gap: 18px;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.markets-panel,
.ticket-panel,
.match-stage {
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(246, 249, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.markets-panel,
.ticket-panel {
  position: relative;
  top: auto;
  border-radius: 18px;
  padding: 14px;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
}

.markets-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-head span {
  font-size: 16px;
  font-weight: 900;
}

.list-scope {
  flex: 0 0 auto;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.stage-tabs {
  flex: 0 0 auto;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow-x: auto;
}

.market-mode-tabs {
  justify-content: flex-start;
}

.market-mode-tabs button {
  flex: 0 0 auto;
}

.stage-filter-tabs button {
  flex: 1;
}

.search-box {
  flex: 0 0 auto;
  display: block;
  margin-bottom: 12px;
}

.control-label,
.range-control span,
.amount-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.control-label,
.range-control span {
  margin-bottom: 7px;
}

.search-box input {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-weight: 800;
}

.search-box input:focus {
  border-color: rgba(21, 54, 255, 0.42);
  box-shadow: var(--focus);
}

.stage-tabs button {
  flex: 1;
  white-space: nowrap;
}

.market-list {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 3px;
  scrollbar-gutter: stable;
}

.market-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.market-card.has-camps {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 22% 0%, rgba(226, 41, 47, 0.18), transparent 42%),
    radial-gradient(circle at 78% 0%, rgba(21, 54, 255, 0.18), transparent 42%);
}

.market-card.active,
.market-card:hover {
  border-color: rgba(21, 54, 255, 0.42);
  box-shadow: 0 14px 34px rgba(21, 54, 255, 0.12);
  transform: translateY(-1px);
}

.market-card-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 5px;
  align-items: stretch;
  min-height: 74px;
  padding: 5px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(246, 200, 79, 0.24), transparent 42%),
    linear-gradient(90deg, rgba(226, 41, 47, 0.12), rgba(21, 54, 255, 0.18), rgba(0, 168, 107, 0.12));
  border: 1px solid rgba(21, 54, 255, 0.1);
  border-radius: 14px;
}

.market-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.62;
  pointer-events: none;
}

.market-team-thumb,
.market-versus-mini {
  position: relative;
  z-index: 1;
}

.market-team-thumb {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: rgba(3, 7, 18, 0.08);
  border-radius: 7px;
  isolation: isolate;
}

.market-team-thumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 66px;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease;
}

.market-card:hover .market-team-thumb img,
.market-card.active .market-team-thumb img {
  transform: scale(1.045);
}

.market-team-thumb.seeded {
  place-items: center;
  min-height: 66px;
  color: var(--white);
  background: linear-gradient(135deg, #111827, #1536ff);
  font-weight: 900;
}

.market-team-thumb.seeded span {
  font-size: 13px;
}

.market-team-thumb small {
  grid-area: 1 / 1;
  align-self: end;
  min-width: 0;
  padding: 18px 5px 5px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.84));
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.46);
  white-space: nowrap;
}

.market-versus-mini {
  display: grid;
  place-items: center;
  align-self: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background:
    conic-gradient(from 30deg, rgba(246, 200, 79, 0.9), rgba(255, 255, 255, 0.82), rgba(21, 54, 255, 0.82), rgba(246, 200, 79, 0.9));
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(21, 54, 255, 0.18);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

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

.market-card-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
}

.market-card-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card-title b {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.market-title-flag {
  flex: 0 0 auto;
}

.market-title-team {
  min-width: 0;
}

.market-card small {
  color: var(--muted);
  font-weight: 700;
}

.bracket-card-note {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-tag {
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.stage-tag.knockout {
  background: var(--red);
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 6px;
}

.mini-bars span {
  border-radius: 99px;
  background: var(--blue);
}

.mini-bars span:nth-child(2) {
  background: var(--gold);
}

.mini-bars span:nth-child(3) {
  background: var(--green);
}

.match-stage {
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 18px;
  padding: 18px;
  overflow: hidden;
}

.app-view {
  display: none;
}

.app-view.active {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: auto;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-note {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "PingFang SC", sans-serif;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 0.92;
  letter-spacing: 0;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 13px;
  color: var(--deep-blue);
  background: rgba(246, 200, 79, 0.22);
  border: 1px solid rgba(246, 200, 79, 0.48);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.pulse {
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(226, 41, 47, 0.45);
  animation: pulse 1.4s infinite;
}

.arena {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px minmax(0, 1fr);
  align-items: stretch;
  min-height: 380px;
  padding: 26px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.arena::before,
.arena::after {
  content: none;
}

.spotlight {
  position: absolute;
  top: -120px;
  width: 280px;
  height: 560px;
  background: linear-gradient(rgba(255, 255, 255, 0.34), transparent);
  display: none;
  opacity: 0;
  transform-origin: top;
  animation: none;
}

.spotlight.left {
  left: 4%;
  transform: rotate(22deg);
}

.spotlight.right {
  right: 4%;
  transform: rotate(-22deg);
  animation-delay: -2.2s;
}

.field-lines {
  position: absolute;
  inset: 22px;
  display: none;
  border: 0;
  border-radius: 16px;
}

.field-lines::before,
.field-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.field-lines::before {
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(21, 54, 255, 0.12);
}

.field-lines::after {
  top: 50%;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(21, 54, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.score-ribbon {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #111827;
  background: var(--gold);
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.score-ribbon span {
  font-size: 11px;
  font-weight: 900;
}

.score-ribbon strong {
  font-size: 13px;
  white-space: nowrap;
}

.team-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr;
  min-width: 0;
  min-height: 320px;
  aspect-ratio: 7 / 8;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--kit-a) 88%, #07135d), rgba(7, 9, 20, 0.72) 46%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 42%);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 26px 64px rgba(7, 19, 93, 0.16);
  overflow: hidden;
  isolation: isolate;
  transform: none;
  animation: none;
}

.team-camp-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transform-origin: center;
  transition: opacity 180ms ease, filter 260ms ease, transform 260ms ease;
}

.team-card.away .team-camp-img {
  /* image stays locked to the card; the whole card floats instead */
}

.team-card.has-camp-art .team-camp-img {
  opacity: 1;
}

.team-card.has-camp-art .star-lineup {
  display: none;
}

.team-card.has-camp-art:hover .team-camp-img {
  filter: saturate(1.08) contrast(1.03);
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0) 34%, rgba(3, 7, 18, 0.1) 66%, rgba(3, 7, 18, 0.34) 100%),
    radial-gradient(circle at 50% 34%, transparent 0 42%, rgba(255, 255, 255, 0.04) 78%);
  pointer-events: none;
}

.team-card.has-camp-art .team-card-overlay::after {
  content: none;
}

.team-card.away .team-card-overlay::after {
  animation-delay: -3s;
}

.team-card-copy {
  display: none;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-self: end;
  justify-self: start;
  width: min(86%, 430px);
  min-width: 0;
  margin-top: auto;
  padding: 14px 16px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(3, 7, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px) saturate(1.25);
}

.team-card-copy > div:not(.flag) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.team-card.away {
  text-align: right;
}

.team-card.away .team-card-copy {
  direction: ltr;
  justify-self: end;
}

.team-card.away .team-card-copy > div:not(.flag) {
  direction: ltr;
}

.team-card-copy .flag {
  display: none;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--kit-a), var(--kit-b), var(--kit-c)),
    rgba(255, 255, 255, 0.1);
  height: 0;
  opacity: 0;
}

.team-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px),
    linear-gradient(135deg, var(--kit-a), var(--kit-c));
  background-size: 18px 18px, auto;
  border-radius: 50%;
  opacity: 0;
}

.team-card.away::after {
  right: auto;
  left: -40px;
}

.flag {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 28px;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.16);
}

.team-card small,
.versus-core small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-card h2 {
  margin: 2px 0 4px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "PingFang SC", sans-serif;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: var(--team-name-size, clamp(34px, 4vw, 62px));
  line-height: var(--team-name-line, 0.95);
}

.team-card.name-short {
  --team-name-size: clamp(48px, 4.3vw, 66px);
  --team-name-line: 0.95;
}

.team-card.name-medium {
  --team-name-size: clamp(38px, 3.3vw, 52px);
  --team-name-line: 0.98;
}

.team-card.name-long {
  --team-name-size: clamp(30px, 2.5vw, 40px);
  --team-name-line: 1.02;
}

.team-card.name-xlong {
  --team-name-size: clamp(24px, 2vw, 32px);
  --team-name-line: 1.08;
}

.team-card p {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
}

.star-lineup {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  margin-top: 8px;
}

.player-chip {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 6px;
  color: var(--white);
  background: rgba(3, 7, 18, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
}

.player-chip span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background:
    linear-gradient(145deg, var(--kit-b), var(--kit-a) 55%, var(--kit-c)),
    rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  font-weight: 900;
}

.player-chip b,
.player-chip small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-chip b {
  font-size: 12px;
}

.player-chip small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 900;
}

.versus-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  color: var(--white);
}

.versus-core span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 56px;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.versus-core small {
  margin-top: -28px;
}

.orbital {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 20%, rgba(255, 255, 255, 0.92) 22% 28%, transparent 30% 54%, rgba(246, 200, 79, 0.95) 56% 62%, transparent 64% 100%),
    rgba(255, 255, 255, 0.08);
  animation: orbit 3.2s linear infinite;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.26), inset 0 0 22px rgba(255, 255, 255, 0.16);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(var(--outcome-count, 3), minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.outcome {
  display: grid;
  gap: 9px;
  min-height: 124px;
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.outcome.active,
.outcome:hover {
  border-color: rgba(226, 41, 47, 0.36);
  box-shadow: 0 18px 42px rgba(226, 41, 47, 0.12);
  transform: translateY(-1px);
}

.outcome strong {
  font-size: 18px;
}

.pool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.pool-row span {
  min-width: 0;
}

.pool-row span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pool-row span:last-child {
  text-align: right;
}

.pool-meter {
  height: 8px;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 999px;
}

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

.treasury-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.treasury-strip div,
.selected-side,
.amount-box,
.quote-card,
.settle-flow {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.treasury-strip div {
  padding: 14px;
}

.treasury-strip span,
.selected-side span,
.amount-box span,
.quote-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.treasury-strip strong {
  display: block;
  margin-top: 4px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.ticket-panel {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 12px;
  overflow: auto;
}

.selected-side,
.amount-box {
  padding: 14px;
}

.selected-side strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
}

.amount-box input {
  width: 100%;
  margin-top: 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 40px;
  line-height: 1;
}

.amount-box small {
  margin-top: 8px;
  line-height: 1.45;
}

.range-control {
  display: block;
}

.stake-range {
  width: 100%;
  accent-color: var(--red);
  cursor: pointer;
  touch-action: manipulation;
}

.quote-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.quote-card div {
  padding: 14px;
  background: #fff;
}

.quote-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}

.settle-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #fff;
}

.settle-flow div {
  padding: 12px 8px;
  text-align: center;
}

.settle-flow div + div {
  border-left: 1px solid var(--line);
}

.settle-flow span {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.settle-flow small {
  display: block;
  min-height: 34px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.primary-action {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 16px;
}

.secondary-action {
  width: 100%;
  padding: 13px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

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

.dashboard-grid div,
.rule-lane,
.position-card,
.empty-state,
.burn-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-grid div {
  padding: 18px;
}

.dashboard-grid span,
.dashboard-grid small,
.position-card small,
.position-card span,
.burn-row small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-grid strong {
  display: block;
  margin: 8px 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 38px;
  line-height: 1;
}

.rule-lane {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--line);
}

.rule-lane div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  font-weight: 900;
}

.rule-lane b {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-radius: 50%;
}

.position-list,
.burn-list {
  display: grid;
  gap: 10px;
}

.position-card,
.burn-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.position-card strong,
.burn-row span {
  display: block;
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
}

.position-card button {
  color: var(--red);
  background: rgba(226, 41, 47, 0.08);
  border: 1px solid rgba(226, 41, 47, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
}

.empty-state {
  padding: 30px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.burn-row {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.burn-row b {
  color: var(--blue);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 28px;
}

.burn-row strong {
  color: var(--red);
  white-space: nowrap;
}



.rules-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 26px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.96);
  border: 1px solid rgba(18, 26, 50, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 52px rgba(7, 19, 93, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
}

.rules-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--red));
  border-radius: 20px 0 0 20px;
}

.rules-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  z-index: -1;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(21, 54, 255, 0.1), transparent 64%);
  pointer-events: none;
}

.rules-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.rules-hero .eyebrow {
  color: var(--blue);
}

.rules-hero p {
  max-width: 68ch;
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.78;
}

.rules-badge {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(160deg, #111521, #20283a);
  border: 1px solid rgba(17, 21, 33, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(17, 21, 33, 0.18);
}

.rules-badge span,
.rules-badge small,
.side-label,
.rule-step {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rules-badge span {
  color: rgba(255, 254, 250, 0.68);
}

.rules-badge strong {
  color: var(--white);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
}

.rules-badge small {
  color: rgba(255, 254, 250, 0.66);
  line-height: 1.45;
  text-transform: none;
}

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

.rule-card,
.rules-split > div,
.rules-note {
  background: rgba(255, 254, 250, 0.96);
  border: 1px solid rgba(18, 26, 50, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(7, 19, 93, 0.06);
}

.rule-card {
  min-height: 168px;
  padding: 20px;
}

.rule-card.primary-rule {
  background: rgba(255, 254, 250, 0.96);
  border-color: rgba(21, 54, 255, 0.2);
}

.rule-step {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 12px;
  box-shadow: none;
}

.rule-card h2,
.rules-split h2 {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.rule-card p,
.rules-split p,
.rules-split li,
.rules-note span {
  color: #4b5563;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.74;
}

.rules-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.rules-split > div {
  position: relative;
  min-height: 236px;
  padding: 22px;
  overflow: hidden;
}

.rules-split > div::after {
  content: none;
}

.win-side,
.lose-side {
  background: rgba(255, 254, 250, 0.96);
}

.win-side {
  border-top: 3px solid rgba(0, 168, 107, 0.72);
}

.lose-side {
  border-top: 3px solid rgba(21, 54, 255, 0.72);
}

.side-label {
  color: #111827;
}

.rules-split ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rules-split li {
  position: relative;
  padding-left: 20px;
}

.rules-split li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 7px;
  height: 7px;
  background: #111827;
  border-radius: 50%;
}

.rules-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.rules-flow div {
  display: grid;
  gap: 10px;
  min-height: 106px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.96);
  border: 1px solid rgba(18, 26, 50, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(7, 19, 93, 0.05);
}

.rules-flow b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 950;
}

.rules-flow span {
  color: #374151;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.42;
}

.rules-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 18px;
  border-left: 5px solid var(--ink);
}

.rules-note strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 950;
}

#rulesView > * {
  flex-shrink: 0;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(226, 41, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 41, 47, 0);
  }
}

@keyframes sweep {
  from {
    opacity: 0.22;
    transform: rotate(14deg) translateX(-40px);
  }
  to {
    opacity: 0.58;
    transform: rotate(26deg) translateX(40px);
  }
}

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

@keyframes campCardFloat {
  0% {
    transform: translate3d(-4px, 3px, 0) rotate(-0.45deg);
    box-shadow: 0 22px 52px rgba(7, 19, 93, 0.14);
  }
  35% {
    transform: translate3d(3px, -8px, 0) rotate(0.28deg);
    box-shadow: 0 34px 78px rgba(7, 19, 93, 0.2);
  }
  70% {
    transform: translate3d(5px, 2px, 0) rotate(0.42deg);
    box-shadow: 0 26px 64px rgba(7, 19, 93, 0.17);
  }
  100% {
    transform: translate3d(-2px, -4px, 0) rotate(-0.22deg);
    box-shadow: 0 30px 72px rgba(7, 19, 93, 0.18);
  }
}

@keyframes campLightDrift {
  from {
    opacity: 0.08;
    transform: translateX(-42%) rotate(4deg);
  }
  to {
    opacity: 0.28;
    transform: translateX(42%) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (min-width: 1181px) {
  body {
    display: grid;
    place-items: start center;
  }

  .shell {
    min-height: 0;
  }
}

@media (max-width: 1180px) {
  body {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .shell {
    width: min(100% - 24px, 1120px);
    height: auto;
    min-height: 100dvh;
    padding: 14px 0 24px;
    overflow: visible;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .layout {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    min-height: auto;
    overflow: visible;
  }

  .markets-panel,
  .match-stage,
  .ticket-panel {
    height: auto;
    max-height: none;
  }

  .markets-panel {
    position: sticky;
    top: 12px;
    max-height: calc(100dvh - 24px);
  }

  .market-list {
    max-height: min(520px, calc(100dvh - 320px));
  }

  .app-view.active {
    overflow: visible;
  }

  .ticket-panel {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .rules-hero,
  .rules-grid,
  .rules-split,
  .rules-flow {
    grid-template-columns: 1fr 1fr;
  }

  .rules-hero > div:first-child,
  .primary-rule {
    grid-column: 1 / -1;
  }

  .ticket-panel .panel-head,
  .ticket-panel .primary-action,
  .ticket-panel .secondary-action,
  .ticket-panel .fine-print {
    grid-column: 1 / -1;
  }

  .amount-box,
  .range-control,
  .quote-card,
  .settle-flow {
    grid-column: span 2;
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 860px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .shell {
    width: min(100% - 20px, 720px);
    height: auto;
    min-height: 100dvh;
    padding-top: 10px;
    overflow: visible;
  }

  .topbar,
  .stage-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
  }

  .nav-tabs button {
    flex: 1 0 auto;
  }

  .wallet-bar {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .layout {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 14px;
    overflow: visible;
  }

  .markets-panel,
  .ticket-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: none;
  }

  .ticket-panel {
    grid-template-columns: 1fr;
  }

  .ticket-panel > * {
    grid-column: 1 / -1;
  }

  .match-stage {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
  }

  .market-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .market-card {
    min-width: 270px;
  }

  .arena {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 62px 14px 18px;
  }

  .team-card.away {
    text-align: left;
  }

  .team-card.away .team-card-copy {
    direction: ltr;
  }

  .team-card {
    width: 100%;
    min-height: 420px;
    aspect-ratio: 7 / 8;
    padding: 14px;
  }

  .team-card-copy {
    min-height: 82px;
  }

  .flag {
    width: 68px;
    height: 68px;
    font-size: 34px;
  }

  .star-lineup {
    gap: 6px;
  }

  .player-chip {
    padding: 7px 4px;
  }

  .player-chip span {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .player-chip b {
    font-size: 11px;
  }

  .team-card.name-short,
  .team-card.name-medium,
  .team-card.name-long,
  .team-card.name-xlong {
    --team-name-size: clamp(34px, 10vw, 48px);
  }

  .versus-core {
    width: 104px;
    height: 104px;
  }

  .outcome-grid {
    grid-template-columns: repeat(var(--outcome-count, 3), minmax(176px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-gutter: stable;
  }

  .outcome {
    min-height: 112px;
    scroll-snap-align: start;
  }

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

  .dashboard-grid,
  .rules-hero,
  .rules-grid,
  .rules-split,
  .rules-flow {
    grid-template-columns: 1fr;
  }

  .rules-badge {
    min-height: 130px;
  }

  .rules-flow div {
    min-height: auto;
  }

  .burn-row,
  .position-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  .shell {
    padding: 12px 0 18px;
  }

  .topbar {
    min-height: 62px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .match-stage {
    padding: 16px;
  }

  .stage-header {
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(36px, 4.4vw, 62px);
  }

  .arena {
    min-height: 330px;
    padding: 20px;
  }

  .team-card {
    min-height: 360px;
    padding: 16px;
  }

  .flag {
    width: 72px;
    height: 72px;
    font-size: 36px;
  }

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

  .player-chip span {
    width: 38px;
    height: 38px;
  }

  .outcome {
    min-height: 112px;
  }

  .amount-box input {
    font-size: 36px;
  }
}

@media (min-width: 1181px) and (max-height: 700px) {
  .topbar {
    min-height: 54px;
  }

  .brand small {
    display: none;
  }

  .arena {
    min-height: 300px;
    padding: 18px;
  }

  .team-card {
    min-height: 292px;
  }

  .star-lineup {
    gap: 6px;
  }

  .player-chip {
    padding: 6px 4px;
  }

  .player-chip span {
    width: 34px;
    height: 34px;
  }

  .player-chip small {
    display: none;
  }
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 14px);
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .brand strong {
    font-size: 18px;
  }

  .wallet-bar {
    gap: 8px;
  }

  .chain-pill,
  .switch-chain-btn,
  .connect-btn,
  .primary-action {
    padding: 10px 14px;
  }

  .nav-tabs,
  .stage-tabs {
    gap: 4px;
    padding: 4px;
  }

  .nav-tabs button,
  .stage-tabs button,
  .count-pill,
  .ticket-mode-pill {
    padding: 8px 10px;
    font-size: 12px;
  }

  .markets-panel,
  .ticket-panel,
  .match-stage {
    padding: 12px;
  }

  .rules-hero,
  .rule-card,
  .rules-split > div {
    padding: 16px;
    border-radius: 18px;
  }

  .rules-hero {
    min-height: auto;
  }

  .rules-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .rules-flow {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .rules-flow div {
    min-width: 172px;
    scroll-snap-align: start;
  }

  .rules-hero p,
  .rule-card p,
  .rules-split p,
  .rules-split li,
  .rules-note span {
    font-size: 13px;
  }

  .rules-note {
    display: grid;
  }

  .panel-head span {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(32px, 12vw, 42px);
    line-height: 0.96;
  }

  .status-chip {
    padding: 9px 11px;
    font-size: 12px;
  }

  .arena {
    padding: 58px 10px 12px;
  }

  .score-ribbon {
    top: 14px;
    gap: 6px;
    padding: 7px 10px;
  }

  .team-card {
    min-height: 390px;
    padding: 12px;
  }

  .team-card-copy {
    min-height: 70px;
  }

  .flag {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

  .team-card.name-short,
  .team-card.name-medium,
  .team-card.name-long,
  .team-card.name-xlong {
    --team-name-size: clamp(30px, 10vw, 42px);
  }

  .star-lineup {
    grid-template-columns: repeat(3, minmax(68px, 1fr));
  }

  .player-chip span {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .versus-core {
    width: 92px;
    height: 92px;
  }

  .versus-core span {
    font-size: 46px;
  }

  .versus-core small {
    margin-top: -23px;
  }

  .outcome-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .outcome {
    padding: 12px;
  }

  .treasury-strip div {
    padding: 12px;
  }

  .treasury-strip strong {
    font-size: 26px;
  }

  .amount-box input {
    font-size: 34px;
  }

  .settle-flow span {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .shell {
    width: calc(100% - 12px);
  }

  .nav-tabs button,
  .stage-tabs button,
  .count-pill,
  .ticket-mode-pill {
    padding: 8px 9px;
    font-size: 11px;
  }

  .market-card {
    min-width: 248px;
  }

  .team-card {
    min-height: 370px;
  }

  .flag {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .star-lineup {
    grid-template-columns: repeat(3, minmax(62px, 1fr));
  }

  .treasury-strip {
    gap: 8px;
  }
}
