:root {
  color-scheme: light;
  --page: #07140f;
  --panel: #fffdf7;
  --panel-soft: #f5fbf3;
  --ink: #17211c;
  --muted: #64726b;
  --line: rgba(27, 53, 41, 0.14);
  --emerald: #0e7f5d;
  --emerald-dark: #073b30;
  --grass: #0d5b3e;
  --gold: #f2c94c;
  --gold-deep: #b06f16;
  --red: #c4434e;
  --navy: #091b27;
  --cream: #fff7dc;
  --ok-bg: #ddf6ea;
  --shadow: 0 20px 60px rgba(2, 17, 11, 0.22);
  --soft-shadow: 0 14px 34px rgba(19, 43, 31, 0.12);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(7, 20, 15, 0.28) 0%, rgba(246, 248, 240, 0.96) 360px),
    url("/assets/football-stadium-hero.jpg") top center / min(1600px, 120vw) auto no-repeat,
    #f3f7ef;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.champion-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 18, 22, 0.22) 0%, rgba(5, 28, 22, 0.84) 620px, #07140f 100%),
    url("/assets/football-stadium-hero.jpg") top center / min(1600px, 120vw) auto no-repeat,
    #07140f;
}

.champion-page .shell {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.16);
}

button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--gold) 0%, #ffdd6a 38%, var(--gold-deep) 100%);
  color: #231507;
  font-weight: 900;
  padding: 0 18px;
  box-shadow: 0 10px 20px rgba(176, 111, 22, 0.22);
}

button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar,
.controls,
.layout,
.notice {
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
}

.topbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 236px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  padding: 26px 28px;
  background:
    linear-gradient(90deg, rgba(5, 18, 22, 0.96) 0%, rgba(5, 18, 22, 0.74) 44%, rgba(8, 61, 44, 0.28) 100%),
    url("/assets/football-stadium-hero.jpg") center / cover no-repeat;
  color: #fff;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--red), var(--emerald));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 48px;
  line-height: 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 15px;
}

.hero-subtitle {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  font-weight: 800;
}

.hero-match {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(242, 201, 76, 0.42);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(3, 18, 17, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-match span {
  min-width: 0;
  color: #fff;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.hero-match small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pill,
.clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.pill.ok {
  border-color: rgba(242, 201, 76, 0.44);
  background: rgba(14, 127, 93, 0.32);
  color: #ffffff;
}

.pill.bad {
  border-color: #f1aaa7;
  background: #ffe7e4;
  color: #a43b35;
}

.controls {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(18px);
}

.control-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.settings-wrap {
  position: relative;
  z-index: 60;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0;
  color: var(--emerald-dark);
  font-size: 21px;
  line-height: 1;
}

.icon-btn[aria-expanded="true"] {
  border-color: var(--gold);
  background: var(--cream);
}

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

.binance-settings {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.binance-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.binance-settings-head strong {
  font-size: 13px;
}

.binance-settings-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.binance-connect-btn {
  min-height: 40px;
  border-color: var(--gold);
  background: var(--gold);
  color: #14261e;
  font-weight: 950;
}

.settings-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.settings-title strong {
  font-size: 14px;
}

.settings-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
  font-weight: 800;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.18);
}

.notice {
  position: relative;
  z-index: 10;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #7a4a00;
  background: #fff4d8;
  font-size: 14px;
}

.notice.bad {
  color: #a43b35;
  background: #ffe7e4;
}

.page-switcher {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(420px, 100%);
  gap: 4px;
  margin-top: 12px;
  border: 1px solid rgba(242, 201, 76, 0.32);
  border-radius: 10px;
  padding: 4px;
  background: rgba(5, 30, 27, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.page-switch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.page-switch-link:hover,
.page-switch-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.page-switch-link.active {
  background: linear-gradient(135deg, var(--gold), #ffe17a 52%, var(--gold-deep));
  color: #241506;
  box-shadow: 0 6px 16px rgba(176, 111, 22, 0.26);
}

.matches-page .champion-board,
.champion-page .layout {
  display: none;
}

.matches-page .layout,
.champion-page .champion-board {
  animation: page-view-enter 160ms ease-out;
}

@keyframes page-view-enter {
  from {
    transform: translateY(4px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.champion-page .champion-board {
  margin-top: 12px;
}

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

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 680px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(14px);
}

.match-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 27, 39, 0.96), rgba(6, 61, 45, 0.94)),
    url("/assets/football-stadium-hero.jpg") center / cover no-repeat;
  color: #fff;
}

.pane-head,
.match-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.pane-head {
  min-height: 56px;
  padding: 0 16px;
  border-bottom-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
}

.pane-head h2 {
  color: #fff;
  font-size: 17px;
}

.match-list {
  height: 628px;
  overflow: auto;
  padding: 10px;
}

.match-row {
  display: block;
  width: 100%;
  min-height: 78px;
  margin-bottom: 10px;
  border-color: rgba(255, 255, 255, 0.16);
  padding: 13px;
  text-align: left;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  backdrop-filter: blur(12px);
}

.match-row.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.24), rgba(14, 127, 93, 0.28));
  box-shadow: inset 3px 0 0 var(--gold), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.match-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.match-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.match-teams > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.match-teams em {
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}

.team-flag {
  display: inline-block;
  width: 22px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 33, 28, 0.18);
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.match-row .team-flag {
  width: 20px;
  height: 13px;
  border-color: rgba(255, 255, 255, 0.34);
}

.match-row small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.board-pane {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(248, 252, 244, 0.98)),
    #fff;
}

.match-head {
  min-height: 96px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 247, 220, 0.86), rgba(239, 251, 242, 0.92)),
    #fff;
}

.match-head .eyebrow {
  color: var(--gold-deep);
}

.match-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.match-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.match-badges span {
  border: 1px solid rgba(176, 111, 22, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 950;
}

.board {
  padding: 14px;
}

.board-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 12px;
}

.board-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.odds-section {
  min-width: 0;
  border: 1px solid rgba(21, 74, 55, 0.14);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.section-head {
  min-height: 46px;
  padding: 0 13px;
  border-bottom-color: rgba(21, 74, 55, 0.12);
  background:
    linear-gradient(90deg, rgba(9, 27, 39, 0.98), rgba(8, 74, 55, 0.94)),
    var(--navy);
  color: #fff;
}

.section-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 950;
}

.section-head h3::before {
  content: "";
  display: block;
  width: 7px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), #fff1a8);
}

.hero-section {
  border-color: rgba(242, 201, 76, 0.46);
}

.hero-section .section-head {
  background:
    linear-gradient(90deg, rgba(176, 111, 22, 0.98), rgba(13, 91, 62, 0.96)),
    var(--grass);
}

.champion-section {
  border-color: rgba(242, 201, 76, 0.52);
  background:
    linear-gradient(145deg, rgba(255, 252, 235, 0.98), rgba(240, 255, 244, 0.98)),
    var(--panel);
}

.champion-section .section-head {
  background:
    linear-gradient(90deg, rgba(119, 69, 7, 0.98), rgba(11, 91, 59, 0.96)),
    var(--grass);
}

.champion-section .section-head > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.champion-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.champion-section-actions > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.champion-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.champion-toggle-btn:hover {
  border-color: var(--gold);
  background: rgba(242, 201, 76, 0.2);
}

.champion-section.is-collapsed .champion-copy,
.champion-section.is-collapsed .champion-content {
  display: none;
}

.champion-section.is-collapsed .section-head {
  border-bottom: 0;
}

.champion-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
}

.champion-copy span {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 950;
}

.champion-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.champion-section .odd-tile {
  min-height: 96px;
}

.champion-section .odd-tile strong {
  color: #8b5208;
}

.champion-board {
  margin: 14px 0 0;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

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

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

.odd-tile {
  position: relative;
  min-width: 0;
  min-height: 108px;
  border: 1px solid rgba(176, 111, 22, 0.18);
  border-radius: 10px;
  padding: 12px;
  background:
    linear-gradient(160deg, #ffffff 0%, #fff9df 50%, #f3fff5 100%);
  overflow: hidden;
}

.odd-tile.bet-option {
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.odd-tile.bet-option:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 201, 76, 0.82);
  box-shadow: 0 14px 30px rgba(7, 59, 48, 0.18);
}

.odd-tile.is-hot {
  border-color: rgba(176, 111, 22, 0.62);
  background:
    linear-gradient(155deg, #ffffff 0%, #fff0ad 54%, #edfff1 100%);
  box-shadow: inset 0 3px 0 rgba(242, 201, 76, 0.82), 0 10px 24px rgba(176, 111, 22, 0.12);
}

.odd-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  border: 1px solid rgba(176, 111, 22, 0.22);
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff2b8;
  color: #8b5208;
  font-size: 10px;
  font-weight: 950;
}

.odd-tile.selected .odd-hot {
  display: none;
}

.odd-tile.bet-option.selected {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.34), 0 12px 26px rgba(7, 59, 48, 0.18);
}

.odd-tile.bet-option.selected::before {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.odd-tile::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(14, 127, 93, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(14, 127, 93, 0.12) 48%, rgba(14, 127, 93, 0.12) 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(14, 127, 93, 0.12) 48%, rgba(14, 127, 93, 0.12) 52%, transparent 53%);
}

.hero-section .odd-tile {
  min-height: 124px;
  border-color: rgba(242, 201, 76, 0.36);
  background:
    linear-gradient(160deg, #ffffff 0%, #fff2bd 48%, #f4fff1 100%);
}

.odd-label {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 20px;
  color: #53635a;
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.odd-label-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 20px;
}

.odd-label-row .odd-label {
  min-width: 0;
  min-height: 0;
}

.odd-tile.is-hot .odd-label-row {
  padding-right: 38px;
}

.odd-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--emerald-dark);
  font-size: 33px;
  line-height: 1;
  font-weight: 950;
}

.odd-price-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.odd-price-row strong {
  margin-top: 0;
}

.odds-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-bottom: 1px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.odds-trend.up {
  background: #dff7e9;
  color: #087a4f;
}

.odds-trend.down {
  background: #ffe4e4;
  color: #b42e3b;
}

.compact-row .odds-trend {
  min-width: 16px;
  height: 16px;
  margin: 0 0 0 4px;
  font-size: 11px;
  vertical-align: 2px;
}

.hero-section .odd-tile strong {
  color: #8b5208;
  font-size: 36px;
}

.odd-tile small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(14, 127, 93, 0.12);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  50% {
    opacity: 0.48;
  }
}

.sub-market {
  padding: 12px;
  border-bottom: 1px solid rgba(21, 74, 55, 0.1);
}

.sub-market:last-child {
  border-bottom: 0;
}

.sub-market > b {
  display: block;
  margin-bottom: 8px;
  color: #21342a;
  font-size: 13px;
  font-weight: 950;
}

.sub-market .option-grid {
  padding: 0;
}

.compact-list {
  display: grid;
  gap: 0;
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 68px;
  align-items: center;
  min-height: 49px;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(21, 74, 55, 0.1);
}

.compact-row.bet-option {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.compact-row.bet-option:hover {
  background: rgba(242, 201, 76, 0.12);
  box-shadow: none;
}

.compact-row.bet-option.selected {
  background: linear-gradient(90deg, rgba(242, 201, 76, 0.22), rgba(14, 127, 93, 0.08));
  box-shadow: inset 4px 0 0 var(--gold-deep);
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1f3028;
  font-size: 13px;
  font-weight: 850;
}

.compact-row strong {
  color: var(--emerald-dark);
  font-size: 20px;
  font-weight: 950;
  text-align: right;
}

.compact-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.share-image-btn {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffe17a 42%, var(--gold-deep) 100%);
  color: #241506;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(4, 18, 12, 0.32);
}

.share-image-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}

.poster-preview {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 12, 10, 0.78);
}

.poster-preview-panel {
  position: relative;
  width: min(430px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.poster-preview-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.poster-preview-close {
  position: sticky;
  top: 10px;
  left: calc(100% - 48px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  margin: 10px 10px -48px auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(5, 18, 22, 0.82);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

body.bet-sheet-open {
  overflow: hidden;
}

.bet-sheet {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  align-items: end;
  justify-items: center;
}

.bet-sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 12, 9, 0.62);
  backdrop-filter: blur(4px);
}

.bet-sheet-backdrop:hover {
  border: 0;
  box-shadow: none;
}

.bet-slip {
  position: relative;
  width: min(540px, calc(100% - 24px));
  margin: 0 12px 12px;
  border: 1px solid rgba(242, 201, 76, 0.4);
  border-radius: 18px;
  padding: 12px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 249, 225, 0.98) 0, #fffdf7 150px),
    #fffdf7;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  animation: bet-slip-in 180ms ease-out;
}

@keyframes bet-slip-in {
  from {
    transform: translateY(28px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bet-slip-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(23, 33, 28, 0.18);
}

.bet-slip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bet-slip-head span {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 950;
}

.bet-slip-head h2 {
  margin: 2px 0 0;
  font-size: 23px;
  line-height: 1.15;
}

.bet-close-btn {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  color: #44534b;
  font-size: 22px;
  line-height: 1;
}

.bet-match-label {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.bet-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(14, 127, 93, 0.18);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(236, 249, 239, 0.76);
}

.bet-selection-summary > div:first-child {
  min-width: 0;
}

.bet-selection-summary span,
.bet-live-odds small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bet-selection-summary > div:first-child strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.bet-live-odds {
  min-width: 96px;
  text-align: right;
}

.bet-live-odds strong {
  display: block;
  margin-top: 2px;
  color: var(--emerald-dark);
  font-size: 28px;
  line-height: 1;
}

.bet-amount-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 7px;
}

.bet-amount-label {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 950;
}

.bet-fixed-currency {
  border: 1px solid rgba(14, 127, 93, 0.18);
  border-radius: 6px;
  padding: 4px 9px;
  background: #edf7ee;
  color: var(--emerald-dark);
  font-size: 11px;
  font-weight: 950;
}

.bet-amount-field {
  position: relative;
}

.bet-amount-field input {
  min-height: 52px;
  padding: 0 76px 0 14px;
  border-color: rgba(176, 111, 22, 0.3);
  background: #fff;
  font-size: 22px;
  font-weight: 950;
}

.bet-amount-field span {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  pointer-events: none;
}

.bet-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.bet-quick-amounts button {
  min-width: 0;
  min-height: 36px;
  border-color: rgba(14, 127, 93, 0.2);
  background: #f3f8f2;
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 900;
}

.bet-quick-amounts button:hover,
.bet-quick-amounts button:focus-visible {
  border-color: var(--emerald);
  background: #e5f5e9;
  box-shadow: 0 6px 16px rgba(14, 127, 93, 0.14);
}

.bet-stake-conversion {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.bet-stake-conversion span,
.bet-stake-conversion small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bet-stake-conversion strong {
  display: block;
  margin-top: 2px;
  color: var(--emerald-dark);
  font-size: 18px;
}

.bet-stake-conversion small {
  max-width: 190px;
  text-align: right;
}

.bet-totals {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 12px;
  border: 1px solid rgba(242, 201, 76, 0.46);
  border-radius: 13px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #073e32, #0b6b4c);
  box-shadow: 0 10px 22px rgba(6, 69, 50, 0.18);
}

.bet-totals > div {
  min-width: 0;
}

.bet-totals span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.bet-totals strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.bet-totals small {
  display: block;
  margin-top: 2px;
  color: #ffe08a;
  font-size: 13px;
  font-weight: 900;
}

.share-mode:not(.admin-mode) .controls,
.share-mode:not(.admin-mode) .notice {
  display: none !important;
}

.share-mode .layout {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.share-mode .champion-board {
  margin-top: 12px;
}

.share-mode:not(.admin-mode) .match-pane {
  display: block;
  border: 0;
  border-bottom: 1px solid rgba(242, 201, 76, 0.28);
  background: linear-gradient(135deg, rgba(5, 24, 29, 0.98), rgba(8, 78, 56, 0.96));
}

.share-mode:not(.admin-mode) .pane-head {
  min-height: 42px;
  border: 0;
  padding: 8px 16px 0;
}

.share-mode:not(.admin-mode) .match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 8px 16px 16px;
}

.share-mode:not(.admin-mode) .match-row {
  min-height: 66px;
  margin: 0;
}

.share-mode .topbar {
  border-radius: 18px 18px 0 0;
}

@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .match-pane {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .match-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    height: auto;
    max-height: 260px;
  }

  .board-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    background:
      linear-gradient(180deg, rgba(5, 18, 22, 0.14) 0%, rgba(5, 18, 22, 0.88) 330px, #07140f 100%),
      url("/assets/football-stadium-hero.jpg") top center / 780px auto no-repeat,
      var(--page);
  }

  .shell {
    width: min(430px, 100%);
    padding: 0;
  }

  .topbar {
    min-height: 304px;
    align-items: flex-end;
    flex-direction: column;
    justify-content: space-between;
    border: 0;
    border-radius: 0 0 24px 24px;
    padding: 18px 16px 24px;
    background:
      linear-gradient(180deg, rgba(4, 16, 21, 0.34) 0%, rgba(4, 16, 21, 0.72) 48%, rgba(4, 16, 21, 0.96) 100%),
      url("/assets/football-stadium-hero.jpg") center top / cover no-repeat;
  }

  .topbar::after {
    height: 6px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    margin-top: auto;
  }

  .topbar .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    max-width: 300px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-match {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .hero-match small {
    white-space: normal;
  }

  .status-strip {
    width: 100%;
  }

  .pill,
  .clock {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: -18px 12px 12px;
    border: 1px solid rgba(242, 201, 76, 0.28);
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 253, 247, 0.96);
  }

  .controls label span {
    display: none;
  }

  .control-actions {
    gap: 8px;
  }

  .icon-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  button.primary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  input {
    min-height: 38px;
  }

  .settings-panel {
    right: -92px;
  }

  .notice {
    margin: 0 12px 12px;
  }

  .page-switcher {
    width: calc(100% - 24px);
    margin: 12px;
  }

  .champion-page .champion-board {
    margin: 0 12px 24px;
  }

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

  .layout {
    display: block;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .match-pane {
    border: 0;
    background: transparent;
  }

  .pane-head {
    min-height: 36px;
    border: 0;
    padding: 0 14px;
  }

  .pane-head h2,
  .pane-head span {
    color: rgba(255, 255, 255, 0.86);
  }

  .match-list {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    height: auto;
    max-height: none;
    overflow-x: auto;
    padding: 6px 12px 12px;
    scroll-snap-type: x proximity;
  }

  .match-row {
    width: 168px;
    min-width: 168px;
    min-height: 76px;
    margin: 0;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    scroll-snap-align: start;
  }

  .match-row.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(242, 201, 76, 0.28), rgba(14, 127, 93, 0.26));
  }

  .board-pane {
    background: transparent;
  }

  .match-head {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    margin: 0 12px 12px;
    border: 1px solid rgba(242, 201, 76, 0.28);
    border-radius: 18px;
    padding: 12px;
    background:
      linear-gradient(135deg, rgba(255, 247, 220, 0.96), rgba(233, 255, 236, 0.94)),
      #fff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  }

  .match-head h2 {
    font-size: 21px;
  }

  .match-badges {
    justify-content: flex-start;
  }

  .match-badges span {
    padding: 6px 9px;
  }

  .board {
    padding: 0 10px 24px;
  }

  .board-columns {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .board-column {
    gap: 10px;
  }

  .odds-section {
    border-radius: 16px;
    border-color: rgba(242, 201, 76, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  }

  .section-head {
    min-height: 42px;
  }

  .option-grid,
  .option-grid.three-up,
  .option-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .hero-section .option-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .odd-tile {
    min-height: 94px;
    padding: 10px;
  }

  .hero-section .odd-tile {
    min-height: 98px;
  }

  .odd-label {
    font-size: 12px;
  }

  .odd-tile strong {
    font-size: 26px;
  }

  .hero-section .odd-tile strong {
    font-size: 24px;
  }

  .hero-section .odd-tile.is-hot .odd-label-row {
    padding-right: 16px;
  }

  .hero-section .odd-label-row {
    gap: 4px;
  }

  .hero-section .odd-label {
    font-size: 11px;
  }

  .hero-section .team-flag {
    width: 18px;
    height: 12px;
  }

  .hero-section .odd-hot {
    width: 17px;
    min-width: 17px;
    height: 17px;
    padding: 0;
    font-size: 0;
    line-height: 17px;
    text-align: center;
  }

  .hero-section .odd-hot::after {
    content: "热";
    font-size: 8px;
  }

  .odd-tile small {
    font-size: 11px;
  }

  .sub-market {
    padding: 10px;
  }

  .compact-row {
    grid-template-columns: minmax(0, 1fr) 76px 56px;
    min-height: 46px;
    padding: 0 10px;
  }

  .compact-row span {
    font-size: 12px;
  }

  .compact-row strong {
    font-size: 18px;
  }

  .compact-row small {
    font-size: 11px;
  }

  .share-mode .topbar {
    min-height: 320px;
    border-radius: 0;
  }

  .share-mode .layout {
    margin: 0;
  }

  .share-mode .champion-board {
    margin: 12px 12px 24px;
  }

  .share-mode:not(.admin-mode) .match-pane {
    position: relative;
    z-index: 2;
    margin: 4px 12px 12px;
    border: 1px solid rgba(242, 201, 76, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  }

  .share-mode:not(.admin-mode) .pane-head {
    padding: 8px 12px 0;
  }

  .share-mode:not(.admin-mode) .match-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 10px 12px;
    scrollbar-width: none;
  }

  .share-mode:not(.admin-mode) .match-list::-webkit-scrollbar {
    display: none;
  }

  .share-mode:not(.admin-mode) .match-row {
    width: 164px;
    min-width: 164px;
    min-height: 68px;
  }

  .share-mode .match-head {
    margin-top: 0;
  }

  .share-image-btn {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .bet-slip {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom));
  }

  .bet-slip-head h2 {
    font-size: 21px;
  }

  .bet-live-odds strong {
    font-size: 25px;
  }

  .bet-totals strong {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .hero-section .option-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .hero-section .odd-tile {
    min-height: 92px;
    padding: 8px 6px;
  }

  .hero-section .odd-tile strong {
    font-size: 21px;
  }

  .hero-section .odd-label {
    font-size: 11px;
  }

  .odd-hot {
    top: 5px;
    right: 5px;
    padding: 2px 5px;
    font-size: 8px;
  }
}

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