:root {
  color-scheme: dark;
  --bg: #061508;
  --panel: rgba(9, 18, 13, 0.82);
  --panel-strong: rgba(14, 27, 20, 0.94);
  --line: rgba(214, 255, 228, 0.14);
  --text: #f2fbf4;
  --muted: #a9b9ad;
  --mint: #19f06f;
  --lime: #c8ff55;
  --gold: #ffd166;
  --red: #ff5040;
  --blue: #66c7ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 21, 8, 0.76), #061508 48%, #050d07),
    url("assets/stadium-pitch.png") center top / auto 48vh no-repeat;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}

a,
[role="button"],
input,
textarea,
select {
  touch-action: manipulation;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-content: safe center;
  gap: 28px;
  width: min(100%, 480px);
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 20%, rgba(25, 240, 111, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(6, 21, 8, 0.72), #061508 58%),
    url("assets/stadium-pitch.png") center / cover;
  -webkit-overflow-scrolling: touch;
}

.login-screen.hidden {
  display: none;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.login-brand .eyebrow {
  margin: 0;
  font-size: 12px;
}

.login-brand h1 {
  margin: 0;
  color: #f5fff7;
  font-size: clamp(52px, 15vw, 72px);
  font-weight: 950;
  line-height: 0.86;
  text-wrap: balance;
}

.login-brand p:last-child {
  max-width: 300px;
  margin: 0;
  color: #cbded0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.44;
  text-wrap: balance;
}

.launch-countdown {
  display: none;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 18, 13, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.login-screen.live-lock .launch-countdown,
.login-screen.local-launch .launch-countdown {
  display: grid;
  justify-items: center;
}

.launch-countdown h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.tournament-message {
  gap: 8px;
  padding: 20px 18px;
}

.tournament-message > strong {
  color: var(--lime);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
  text-wrap: balance;
}

.tournament-message p {
  margin: 0;
  color: #cbded0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
  text-wrap: balance;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.launch-countdown.is-live .countdown-grid {
  display: none;
}

.countdown-grid div {
  display: grid;
  gap: 3px;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.countdown-grid strong {
  color: var(--lime);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.countdown-grid span,
.launch-countdown small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.live-match-details {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
  padding: 4px 0 2px;
}

.live-match-details[hidden] {
  display: none;
}

.live-pill {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 80, 64, 0.46);
  border-radius: 999px;
  background: rgba(255, 80, 64, 0.16);
  color: #ffd8d3;
  font-size: 12px;
  font-weight: 950;
}

.live-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.live-scoreline strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.live-scoreline strong:first-child {
  text-align: right;
}

.live-scoreline strong:last-child {
  text-align: left;
}

.live-scoreline span {
  color: var(--lime);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.live-match-details p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.login-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 18, 13, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: safe center;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 18px;
  background: rgba(1, 8, 4, 0.84);
  backdrop-filter: blur(18px);
  -webkit-overflow-scrolling: touch;
}

.admin-login-card {
  display: grid;
  gap: 12px;
  width: min(100%, 380px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 18, 13, 0.96);
  box-shadow: var(--shadow);
}

.admin-login-card label {
  display: grid;
  gap: 6px;
  color: #dcece1;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-card input {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.admin-login-card input:focus {
  border-color: rgba(25, 240, 111, 0.58);
}

.admin-login-status {
  min-height: 18px;
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-login-status:not(.active):empty {
  display: none;
}

@media (max-height: 700px) {
  .login-screen {
    align-content: start;
  }

  .admin-login-overlay {
    place-items: start center;
  }
}

.login-card label {
  color: #dcece1;
  font-size: 13px;
  font-weight: 900;
}

.name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.name-row input {
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.name-row input:focus {
  border-color: rgba(25, 240, 111, 0.58);
}

.name-row button,
.enter-app {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  font-weight: 950;
}

.name-row button {
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
}

.enter-app {
  height: 52px;
  background: rgba(25, 240, 111, 0.2);
}

.login-screen .enter-app:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.play-reassurance {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.pre-kickoff-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  place-items: center;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  text-align: center;
}

.pre-kickoff-card strong {
  color: var(--text);
  font-size: 16px;
}

.login-screen.live-lock .login-card label,
.login-screen.live-lock .name-row {
  display: none;
}

.login-screen.live-lock .enter-app,
.login-screen.local-launch .enter-app {
  cursor: pointer;
}

.login-screen.live-lock .enter-app:disabled,
.login-screen.local-launch .enter-app:disabled {
  cursor: not-allowed;
}

.phone-app {
  --app-header-offset: calc(max(12px, env(safe-area-inset-top)) + 59px);
  --app-stacked-header-offset: calc(var(--app-header-offset) + 52px);
  width: min(100%, 480px);
  max-width: 100%;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  overflow-y: auto;
  padding: 0 12px calc(24px + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 -12px 10px;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  background: linear-gradient(180deg, #061508 0%, rgba(6, 21, 8, 0.98) 72%, rgba(6, 21, 8, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.app-header > div:first-child {
  min-width: 0;
}

.round-button,
.icon-button,
.quiet-button,
.view-tabs button,
.anchor-market button,
.market-actions button,
.chat-form button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
}

.round-button,
.icon-button {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
}

.round-button {
  width: 44px;
}

.title-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e9ffef;
  text-align: left;
}

.title-menu-wrap {
  position: relative;
  max-width: 100%;
}

.title-switcher span:first-child {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-chevron {
  flex: 0 0 auto;
  margin-left: 6px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

body.tournament-menu-open .title-chevron {
  transform: rotate(225deg);
}

.title-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  width: min(220px, calc(100vw - 128px));
  overflow: hidden;
  border: 1px solid rgba(214, 255, 228, 0.18);
  border-radius: 8px;
  background: rgba(8, 18, 12, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.title-menu[hidden] {
  display: none;
}

.title-menu button {
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  text-align: left;
}

.title-menu button:last-child {
  border-bottom: 0;
}

.title-menu button.active {
  background: rgba(25, 240, 111, 0.16);
  color: #eaffef;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  overflow: hidden;
  font-size: 19px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h2 {
  font-size: 18px;
  line-height: 1.1;
}

.wallet {
  display: grid;
  gap: 4px;
  min-width: 58px;
  padding: 7px 8px;
  border: 1px solid rgba(25, 240, 111, 0.28);
  border-radius: 8px;
  background: rgba(25, 240, 111, 0.1);
  text-align: right;
}

.wallet span,
.quick-stats span,
.anchor-market span,
.ticket small,
.chat-message span {
  color: var(--muted);
  font-size: 11px;
}

.wallet span {
  font-size: 9px;
  font-weight: 850;
  line-height: 1.05;
}

.wallet strong {
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.view-tabs {
  position: sticky;
  top: var(--app-header-offset);
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050d07;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.view-tabs::before {
  content: "";
  position: absolute;
  inset: -10px -12px -12px;
  z-index: -1;
  background: #061508;
}

.view-tabs button {
  min-width: 0;
  min-height: 40px;
  padding: 0 3px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-tabs button.active {
  background: rgba(25, 240, 111, 0.17);
  color: #e9ffef;
  box-shadow: inset 0 0 0 1px rgba(25, 240, 111, 0.16);
}

body.standings-active .view-tabs,
body.bracket-active .view-tabs {
  display: none;
}

.view {
  display: none;
  gap: 12px;
  min-width: 0;
}

.view.active {
  display: grid;
}

.match-card,
.now-card,
.market-peek,
.market-column,
.stats-card,
.analytics-card,
.group-table,
.tickets-card,
.chat-card,
.anchor-market,
.market-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.match-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
}

.standings-view,
.bracket-view {
  padding-bottom: 16px;
}

.standings-top,
.tournament-top {
  position: sticky;
  top: calc(var(--app-header-offset) - 10px);
  z-index: 14;
  display: grid;
  gap: 10px;
  align-items: center;
  margin: -10px -12px 0;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(214, 255, 228, 0.12);
  background: #061508;
  box-shadow: 0 12px 18px rgba(6, 21, 8, 0.86);
}

.standings-top div,
.tournament-top div {
  min-width: 0;
  text-align: center;
}

.bracket-nav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

.bracket-step {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(214, 255, 228, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.bracket-step:disabled {
  opacity: 0.34;
}

.bracket-round-tabs {
  position: relative;
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
  border: 1px solid rgba(214, 255, 228, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.bracket-round-tabs::-webkit-scrollbar {
  display: none;
}

.bracket-round-tabs button {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  scroll-snap-align: center;
  white-space: nowrap;
}

.bracket-round-tabs button.active {
  background: var(--mint);
  color: #041008;
  box-shadow: 0 0 18px rgba(25, 240, 111, 0.28);
}

.bracket-list {
  display: grid;
  grid-auto-columns: minmax(264px, calc(100% - 48px));
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 12px 24px 14px;
  scroll-padding: 0 24px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.bracket-list::-webkit-scrollbar {
  display: none;
}

.bracket-round {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  scroll-snap-align: start;
}

.bracket-round header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 2px;
}

.bracket-round h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.bracket-round header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.bracket-match {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.bracket-match-meta,
.bracket-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.bracket-match-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.bracket-teams {
  display: grid;
  gap: 7px;
}

.bracket-team {
  min-height: 34px;
}

.bracket-team span:not(.mini-flag) {
  min-width: 0;
  overflow: hidden;
  color: #effbf2;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team small {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.bracket-team.winner span:not(.mini-flag),
.bracket-team.winner small {
  color: var(--lime);
}

.bracket-empty-flag {
  border-style: dashed;
}

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

.group-table {
  overflow: hidden;
  background: var(--panel-strong);
}

.group-table header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 13px 10px;
}

.group-table h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.group-table header span {
  color: var(--mint);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.standings-head,
.standing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 42px 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
}

.standings-head {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.standings-head span:not(:first-child),
.standing-row > span,
.standing-row > strong {
  text-align: right;
}

.standing-row {
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

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

.standing-row.advance {
  background:
    linear-gradient(90deg, rgba(25, 240, 111, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.025);
}

.standing-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.standing-team strong {
  min-width: 0;
  overflow: hidden;
  color: #f0faf3;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-flag {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mini-flag.square-flag {
  background: #d52b1e;
}

.mini-flag.square-flag img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.standing-row > span,
.standing-row > strong {
  font-size: 13px;
  font-weight: 950;
}

.status-row,
.panel-heading,
.section-title,
.market-meta,
.ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-row {
  align-items: center;
  min-width: 0;
}

.match-context {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-clock {
  flex: 0 0 auto;
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.status-pill,
.room-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(25, 240, 111, 0.32);
  border-radius: 999px;
  background: rgba(25, 240, 111, 0.11);
  color: #dfffe9;
  font-size: 12px;
  font-weight: 900;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 64, 92, 0.16);
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

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

.team.away {
  justify-items: end;
  text-align: right;
}

.team strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.flag {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.score {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 58px;
  font-weight: 950;
  line-height: 0.9;
}

.momentum-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.panel-heading strong {
  color: var(--lime);
  font-size: 25px;
}

.momentum-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.momentum-track span {
  display: block;
  width: 63%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--lime), var(--gold));
  transition: width 420ms ease;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.quick-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.quick-stats strong {
  font-size: 18px;
}

.now-card,
.market-peek,
.stats-card,
.analytics-card,
.tickets-card,
.chat-card {
  padding: 13px;
}

.stats-card,
.analytics-card {
  display: grid;
  gap: 14px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric-tile {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-tile span,
.funnel-row span,
.heat-row span,
.event-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.metric-tile strong {
  color: #f5fff7;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.funnel-list,
.market-heat-list,
.game-rollup-list,
.event-stream {
  display: grid;
  gap: 8px;
}

.funnel-row,
.heat-row,
.event-row {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.funnel-row header,
.heat-row header,
.event-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.funnel-row strong,
.heat-row strong,
.event-row strong {
  min-width: 0;
  overflow: hidden;
  color: #edf8f0;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-track,
.heat-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.funnel-track span,
.heat-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--lime));
}

.heat-track span {
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--gold));
}

.event-stream {
  max-height: 310px;
  overflow: auto;
  padding-right: 2px;
}

.event-row {
  gap: 4px;
}

.event-row p {
  margin: 0;
  color: #edf8f0;
  font-size: 13px;
  line-height: 1.35;
}

.stats-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-teams div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.stats-teams div:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.stats-teams strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-list {
  display: grid;
  gap: 9px;
}

.compare-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(110px, 1fr) 54px;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(25, 240, 111, 0.16) 0 var(--home), transparent var(--home)),
    linear-gradient(270deg, rgba(102, 199, 255, 0.14) 0 var(--away), transparent var(--away)),
    rgba(255, 255, 255, 0.05);
}

.compare-row strong,
.compare-row span {
  position: relative;
  z-index: 1;
}

.compare-row strong {
  font-size: 18px;
  font-weight: 950;
}

.compare-row strong:last-child {
  text-align: right;
}

.compare-row span {
  color: #dcece1;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

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

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

.pulse-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.sticky-title {
  position: sticky;
  top: var(--app-stacked-header-offset);
  z-index: 12;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(6, 21, 8, 0.98), rgba(6, 21, 8, 0.92));
  backdrop-filter: blur(12px);
}

.icon-button {
  width: 42px;
  height: 42px;
}

.pitch-map {
  --home-control: 50%;
  --away-control: 50%;
  --match-progress: 0%;
  --ball-x: 50%;
  --ball-y: 50%;
  --pulse-x: 50%;
  --pulse-y: 50%;
  --pulse-color: rgba(25, 240, 111, 0.3);
  position: relative;
  min-height: 206px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(202, 255, 216, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 32px, rgba(230, 255, 236, 0.24) 33px 35px, transparent 36px),
    repeating-linear-gradient(90deg, rgba(26, 122, 55, 0.76) 0 54px, rgba(18, 100, 45, 0.76) 54px 108px);
  box-shadow: inset 0 0 54px rgba(0, 0, 0, 0.4);
}

.pitch-map::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: 4px;
  background:
    linear-gradient(90deg, rgba(200, 255, 85, 0.92) 0 var(--match-progress), rgba(245, 255, 247, 0.14) var(--match-progress));
  pointer-events: none;
  transition: background 420ms ease;
}

.pitch-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pulse-x) var(--pulse-y), var(--pulse-color), transparent 28%),
    linear-gradient(90deg, rgba(25, 240, 111, 0.14), transparent var(--home-control)),
    linear-gradient(270deg, rgba(102, 199, 255, 0.13), transparent var(--away-control));
  mix-blend-mode: screen;
  transition: background 420ms ease;
}

.pitch-possession {
  position: absolute;
  top: 8px;
  right: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--home-control) minmax(0, 1fr);
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(230, 255, 236, 0.22);
  border-radius: 999px;
  background: rgba(5, 13, 7, 0.72);
}

.pitch-possession span {
  min-width: 0;
  transition: width 420ms ease, background 420ms ease;
}

.pitch-possession .home-control {
  background: linear-gradient(90deg, var(--mint), rgba(200, 255, 85, 0.72));
}

.pitch-possession .away-control {
  background: linear-gradient(90deg, rgba(102, 199, 255, 0.78), rgba(102, 199, 255, 0.34));
}

.pitch-pressure-wave {
  position: absolute;
  left: var(--pulse-x);
  top: var(--pulse-y);
  z-index: 2;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(245, 255, 247, 0.24);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: pitchPulse 2.4s ease-out infinite;
}

.pitch-line {
  position: absolute;
  z-index: 1;
  border: 2px solid rgba(230, 255, 236, 0.34);
  pointer-events: none;
}

.halfway {
  top: 0;
  bottom: 0;
  left: 50%;
}

.box {
  top: 27%;
  width: 17%;
  height: 46%;
}

.box.left {
  left: -2px;
}

.box.right {
  right: -2px;
}

.pitch-team-label {
  position: absolute;
  z-index: 3;
  top: 25px;
  max-width: 38%;
  overflow: hidden;
  color: rgba(245, 255, 247, 0.78);
  font-size: 10px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pitch-team-label.home {
  left: 12px;
}

.pitch-team-label.away {
  right: 12px;
  text-align: right;
}

.ball-marker {
  position: absolute;
  left: var(--ball-x);
  top: var(--ball-y);
  z-index: 4;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(5, 13, 7, 0.85);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 32%, #fff 0 18%, #dfffe9 19% 42%, #101811 43% 51%, #f7fff9 52%);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 520ms ease, top 520ms ease;
}

.hotspot {
  position: absolute;
  z-index: 5;
  max-width: 46%;
  min-height: 38px;
  overflow: hidden;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 21, 8, 0.75);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(25, 240, 111, 0.3);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hotspot:active,
.hotspot.active {
  transform: scale(1.03);
  background: rgba(25, 240, 111, 0.22);
  box-shadow: 0 0 0 9px rgba(25, 240, 111, 0.12);
}

.pitch-feed {
  position: absolute;
  right: 10px;
  bottom: 42px;
  left: 10px;
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(230, 255, 236, 0.16);
  border-radius: 8px;
  background: rgba(5, 13, 7, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.pitch-feed strong,
.pitch-feed span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-feed strong {
  color: #f5fff7;
  font-size: 13px;
  font-weight: 950;
}

.pitch-feed span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.pitch-stat-strip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pitch-stat-strip span {
  min-width: 0;
  min-height: 26px;
  overflow: hidden;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(5, 13, 7, 0.72);
  color: #dfffe9;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes pitchPulse {
  0% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.64);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
}

.h1 {
  right: 8%;
  top: 16%;
}

.h2 {
  left: 41%;
  top: 42%;
}

.h3 {
  left: 13%;
  bottom: 14%;
}

.pitch-map {
  min-height: 190px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 31px, rgba(230, 255, 236, 0.18) 32px 34px, transparent 35px),
    linear-gradient(90deg, rgba(25, 240, 111, 0.08), transparent 42%, transparent 58%, rgba(102, 199, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(22, 105, 49, 0.8) 0 56px, rgba(15, 86, 40, 0.82) 56px 112px);
}

.pitch-map::after {
  background:
    radial-gradient(circle at var(--pulse-x) var(--pulse-y), var(--pulse-color), transparent 22%),
    linear-gradient(90deg, rgba(25, 240, 111, 0.18), transparent 46%),
    linear-gradient(270deg, rgba(102, 199, 255, 0.16), transparent 46%);
  opacity: 0.42;
}

.pitch-map[data-momentum="home"]::after {
  background:
    radial-gradient(circle at var(--pulse-x) var(--pulse-y), rgba(25, 240, 111, 0.42), transparent 25%),
    linear-gradient(90deg, rgba(25, 240, 111, 0.3), transparent 58%);
}

.pitch-map[data-momentum="away"]::after {
  background:
    radial-gradient(circle at var(--pulse-x) var(--pulse-y), rgba(102, 199, 255, 0.38), transparent 25%),
    linear-gradient(270deg, rgba(102, 199, 255, 0.28), transparent 58%);
}

.pitch-team-label,
.ball-marker,
.pitch-feed,
.pitch-stat-strip {
  display: none;
}

.pitch-possession {
  top: auto;
  bottom: 10px;
  height: 6px;
  opacity: 0.82;
}

.pitch-pressure-wave {
  z-index: 4;
  width: 118px;
  height: 118px;
  border-color: rgba(245, 255, 247, 0.18);
  opacity: 0.62;
  animation: none;
}

.hotspot {
  display: grid;
  place-items: center;
  min-height: 0;
  max-width: none;
  overflow: visible;
  padding: 0;
  border-radius: 8px;
  background: rgba(5, 13, 7, 0.08);
  color: transparent;
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 255, 247, 0.07);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.hotspot::after {
  content: "";
  position: relative;
  z-index: 8;
  display: grid;
  min-height: 28px;
  max-width: min(190px, 64vw);
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: transparent;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot.active {
  transform: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 255, 247, 0.2), transparent 34%),
    rgba(25, 240, 111, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(245, 255, 247, 0.22),
    0 0 28px rgba(25, 240, 111, 0.18);
}

.pitch-map[data-momentum="away"] .hotspot.active {
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 255, 247, 0.18), transparent 34%),
    rgba(102, 199, 255, 0.15);
  box-shadow:
    inset 0 0 0 1px rgba(245, 255, 247, 0.2),
    0 0 28px rgba(102, 199, 255, 0.18);
}

.hotspot.active::after {
  content: attr(data-zone-label);
  background: rgba(5, 13, 7, 0.78);
  color: #f5fff7;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(245, 255, 247, 0.16);
}

.h1.hotspot.active::after {
  justify-self: end;
  margin-right: 6px;
}

.h3.hotspot.active::after {
  justify-self: start;
  margin-left: 6px;
}

.h1 {
  top: 42px;
  right: 7%;
  bottom: 30px;
  left: 66%;
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 255, 85, 0.12), transparent 32%),
    rgba(5, 13, 7, 0.08);
}

.h2 {
  top: 42px;
  right: 34%;
  bottom: 30px;
  left: 34%;
  background:
    linear-gradient(180deg, transparent 0 38%, rgba(245, 255, 247, 0.08) 39% 61%, transparent 62%),
    rgba(5, 13, 7, 0.08);
}

.h3 {
  top: 42px;
  right: 66%;
  bottom: 30px;
  left: 7%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 209, 102, 0.1) 0 8px, transparent 8px 18px),
    rgba(5, 13, 7, 0.08);
}

.anchor-market {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.anchor-market div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.anchor-market span,
.anchor-market strong {
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.anchor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.anchor-market button {
  min-height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfffe9;
  font-weight: 950;
}

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

.market-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  background: var(--panel-strong);
}

.timer-ring {
  --progress: 75%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: conic-gradient(var(--mint) var(--progress), rgba(255, 255, 255, 0.12) 0);
}

.timer-ring span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 0;
  padding-top: 1px;
  border-radius: inherit;
  background: #07140a;
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.market-content {
  min-width: 0;
}

.market-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.market-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.market-question {
  margin: 0 0 11px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.market-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.market-actions button {
  min-height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
}

.market-actions .yes {
  background: rgba(255, 255, 255, 0.16);
  color: #f5fff7;
}

.market-actions .no {
  background: transparent;
  color: #dcece1;
}

.market-actions button:disabled {
  border-style: dashed;
  border-color: rgba(220, 236, 225, 0.2);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.055) 0 7px,
      rgba(255, 255, 255, 0.018) 7px 14px
    ),
    rgba(255, 255, 255, 0.035);
  color: rgba(220, 236, 225, 0.46);
  cursor: not-allowed;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.market-actions .yes:disabled {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(25, 240, 111, 0.09) 0 7px,
      rgba(255, 255, 255, 0.018) 7px 14px
    ),
    rgba(25, 240, 111, 0.045);
}

.market-actions .no:disabled {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(102, 199, 255, 0.08) 0 7px,
      rgba(255, 255, 255, 0.016) 7px 14px
    ),
    rgba(102, 199, 255, 0.035);
}

.goal-celebration {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 209, 102, 0.28), transparent 31%),
    radial-gradient(circle at 24% 24%, rgba(25, 240, 111, 0.24), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(102, 199, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(1, 8, 4, 0.62), rgba(1, 8, 4, 0.92)),
    url("assets/stadium-pitch.png") center / cover;
  isolation: isolate;
  animation: goalFadeIn 220ms ease-out both;
}

.goal-celebration::before,
.goal-celebration::after {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: -1;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.11) 0 4deg, transparent 4deg 13deg);
  opacity: 0.32;
  animation: goalLightSweep 2.2s ease-out both;
}

.goal-celebration::after {
  inset: 46% -20% auto;
  height: 32%;
  background:
    linear-gradient(90deg, transparent, rgba(25, 240, 111, 0.24), rgba(255, 209, 102, 0.22), transparent);
  opacity: 0.72;
  transform: rotate(-6deg);
  animation: goalRibbon 1.45s ease-out both;
}

.goal-stadium-glow {
  position: absolute;
  inset: auto -12% -10%;
  height: 42%;
  background:
    radial-gradient(ellipse at center, rgba(200, 255, 85, 0.24), transparent 58%),
    linear-gradient(180deg, transparent, rgba(25, 240, 111, 0.1));
  filter: blur(4px);
  pointer-events: none;
}

.goal-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 440px);
  text-align: center;
  transform-origin: center;
  animation: goalCardPop 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.goal-card .eyebrow {
  margin: 0;
  color: var(--lime);
  text-shadow: 0 0 18px rgba(200, 255, 85, 0.48);
}

.goal-card strong {
  color: #f5fff7;
  font-size: clamp(68px, 22vw, 122px);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.78;
  text-shadow:
    0 0 18px rgba(245, 255, 247, 0.4),
    0 18px 46px rgba(0, 0, 0, 0.54);
}

.goal-card h2 {
  max-width: 100%;
  margin: 0;
  color: var(--gold);
  font-size: clamp(25px, 8vw, 42px);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.goal-scoreline {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(6, 21, 8, 0.74);
  color: #f5fff7;
  font-size: 54px;
  font-weight: 950;
  line-height: 1;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.goal-scoreline span {
  color: var(--muted);
  font-size: 30px;
}

.goal-card p:last-child {
  margin: 0;
  color: #dcece1;
  font-size: 14px;
  font-weight: 850;
}

.goal-particles {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.goal-particles span {
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--lime));
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.6);
  transform: rotate(var(--angle)) translateY(0) scale(0.3);
  opacity: 0;
  animation: goalParticle 1.15s ease-out var(--delay) both;
}

.goal-celebration.leaving {
  animation: goalFadeOut 520ms ease-in both;
}

@keyframes goalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes goalFadeOut {
  to {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes goalCardPop {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.82);
  }

  58% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes goalParticle {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(0) scale(0.25);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(1);
  }
}

@keyframes goalLightSweep {
  from {
    transform: rotate(0deg) scale(0.9);
  }

  to {
    transform: rotate(16deg) scale(1.05);
  }
}

@keyframes goalRibbon {
  from {
    transform: translateX(-34%) rotate(-6deg);
  }

  to {
    transform: translateX(34%) rotate(-6deg);
  }
}

.market-card.hot {
  border-color: rgba(255, 209, 102, 0.44);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.08), 0 18px 48px rgba(0, 0, 0, 0.34);
}

.ticket-list {
  display: grid;
  gap: 8px;
  min-height: 104px;
  margin-top: 10px;
}

.position-filter {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.position-filter select {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(25, 240, 111, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, var(--mint) 50%) right 17px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--mint) 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.085);
  color: var(--text);
  padding: 0 36px 0 13px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  outline: none;
}

.position-filter select:focus {
  border-color: rgba(25, 240, 111, 0.62);
  box-shadow: 0 0 0 3px rgba(25, 240, 111, 0.12);
}

.ticket-list.empty {
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.ticket {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.ticket.won {
  border-color: rgba(25, 240, 111, 0.36);
  background: rgba(25, 240, 111, 0.08);
}

.ticket.lost {
  border-color: rgba(255, 80, 64, 0.28);
  background: rgba(255, 80, 64, 0.07);
}

.ticket.refunded {
  border-color: rgba(102, 199, 255, 0.28);
  background: rgba(102, 199, 255, 0.07);
}

.ticket strong {
  font-size: 14px;
}

.ticket-result {
  display: grid;
  gap: 3px;
  margin: 4px 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.ticket-result span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ticket-result strong {
  color: #f5fff7;
  font-size: 15px;
}

.ticket-result.win strong {
  color: var(--lime);
}

.ticket-result.loss strong {
  color: #ffb5ad;
}

.ticket-result.refund strong {
  color: var(--blue);
}

.chat-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 11px;
  min-height: 0;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.chat-message {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.chat-message strong {
  color: #dfffe9;
  font-size: 13px;
}

.chat-message p {
  margin: 0;
  color: #edf8f0;
  font-size: 13px;
  line-height: 1.35;
}

.chat-form {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 480px) / 2 + 12px));
  z-index: 25;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 13, 7, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.chat-notice {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

body.room-active .chat-form {
  display: grid;
}

body.room-active .phone-app {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  overflow: hidden;
}

body.room-active #roomView {
  min-height: 0;
}

body.room-active #roomView.active {
  grid-template-rows: minmax(0, 1fr);
}

body.room-active #roomView .chat-card {
  min-height: 0;
}

.chat-form input {
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.chat-form input:focus {
  border-color: rgba(25, 240, 111, 0.58);
}

.chat-form button {
  min-width: 70px;
  height: 46px;
  border-radius: 8px;
  background: rgba(25, 240, 111, 0.18);
  font-weight: 950;
}

.order-sheet,
.settlement-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(16px);
}

.order-sheet.active,
.settlement-overlay.active {
  display: grid;
}

.order-sheet {
  align-items: end;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.sheet-card {
  width: min(100%, 456px);
  margin: 0 auto max(0px, env(safe-area-inset-bottom));
  max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(214, 255, 228, 0.18);
  border-radius: 8px;
  background: rgba(9, 18, 13, 0.96);
  box-shadow: 0 -18px 80px rgba(0, 0, 0, 0.52);
  animation: sheetUp 180ms ease-out;
  -webkit-overflow-scrolling: touch;
}

.sheet-card h2 {
  margin-bottom: 14px;
}

.confirm-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.confirm-meta div {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.confirm-meta span {
  color: var(--muted);
  font-size: 11px;
}

.confirm-meta strong {
  font-size: 16px;
  font-weight: 950;
}

.entry-builder {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.entry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.entry-heading span {
  color: #dcece1;
  font-size: 13px;
  font-weight: 950;
}

.entry-heading strong {
  color: var(--muted);
  font-size: 11px;
}

.entry-stepper {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  gap: 8px;
}

.entry-stepper button,
.quick-entry button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 950;
}

.entry-stepper button {
  min-height: 54px;
  color: var(--mint);
  font-size: 26px;
}

.entry-stepper label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid rgba(25, 240, 111, 0.3);
  border-radius: 8px;
  background: rgba(25, 240, 111, 0.1);
}

.entry-stepper input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
  outline: none;
}

.entry-stepper input::-webkit-outer-spin-button,
.entry-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.entry-stepper label span {
  color: var(--mint);
  font-size: 13px;
  font-weight: 950;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-entry button {
  min-height: 38px;
  color: #dfffe9;
  font-size: 12px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 9px;
}

.confirm-actions button,
.settlement-card button {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  font-weight: 950;
}

.confirm-actions .cancel {
  background: rgba(255, 255, 255, 0.08);
}

.confirm-actions .confirm,
.settlement-card button {
  background: rgba(25, 240, 111, 0.2);
}

.settlement-overlay {
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 32%, rgba(25, 240, 111, 0.22), transparent 38%),
    rgba(1, 8, 4, 0.88);
}

.settlement-overlay.loss {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 64, 92, 0.22), transparent 38%),
    rgba(1, 8, 4, 0.9);
}

.settlement-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 360px);
  padding: 28px 18px 18px;
  border: 1px solid rgba(214, 255, 228, 0.18);
  border-radius: 8px;
  background: rgba(9, 18, 13, 0.92);
  text-align: center;
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.6);
  animation: resultPop 360ms cubic-bezier(0.2, 1.2, 0.2, 1);
}

.settlement-card p {
  margin: 0;
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settlement-card h2 {
  color: var(--lime);
  font-size: 58px;
  line-height: 0.98;
}

.settlement-overlay.loss .settlement-card h2,
.settlement-overlay.loss .settlement-card p {
  color: var(--red);
}

.settlement-card span {
  color: #dcece1;
  font-size: 15px;
  line-height: 1.35;
}

.settlement-card button {
  width: 100%;
  margin-top: 10px;
}

.floor-paused {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(214, 255, 228, 0.16);
  border-radius: 8px;
  background: rgba(28, 33, 40, 0.94);
  color: #dcece1;
  font-weight: 950;
  text-align: center;
}

.shootout-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  overflow-y: auto;
  padding: max(22px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: #0d1117;
  color: #f6fff9;
}

.shootout-overlay.active {
  display: block;
}

.shootout-shell {
  display: grid;
  gap: 16px;
  width: min(100%, 460px);
  min-height: 100%;
  margin: 0 auto;
  align-content: center;
}

.shootout-header,
.shootout-board,
.shootout-kick-card {
  border: 1px solid rgba(214, 255, 228, 0.16);
  border-radius: 8px;
  background: #1c2128;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
}

.shootout-header {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.shootout-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.shootout-scoreline strong {
  min-width: 0;
  color: #f6fff9;
  font-family: "Syne", var(--font-display);
  font-size: 20px;
  line-height: 1.05;
}

.shootout-scoreline strong:last-child {
  text-align: right;
}

.shootout-scoreline span,
.shootout-tally,
.shootout-ring,
.shootout-actions button {
  font-family: "DM Mono", monospace;
}

.shootout-scoreline span {
  color: #00e676;
  font-size: 22px;
  font-weight: 950;
}

.shootout-board {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.shootout-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.shootout-row > span {
  min-width: 0;
  overflow: hidden;
  color: #dcece1;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shootout-slots {
  display: flex;
  gap: 9px;
}

.shootout-slot {
  width: 18px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.shootout-slot.scored {
  border-color: #00e676;
  background: #00e676;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.42);
}

.shootout-slot.missed {
  border-color: #da291c;
  background: #da291c;
  box-shadow: 0 0 18px rgba(218, 41, 28, 0.36);
}

.shootout-kick-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.shootout-kick-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
}

.shootout-kick-card h2 {
  margin: 4px 0 0;
  color: #f6fff9;
  font-family: "Syne", var(--font-display);
  font-size: 25px;
  line-height: 1.08;
}

.shootout-ring {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #1c2128 58%, transparent 60%),
    conic-gradient(#00e676 var(--shootout-progress), rgba(255, 255, 255, 0.13) 0);
  color: #00e676;
  font-size: 22px;
  font-weight: 950;
}

.shootout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shootout-actions button {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f6fff9;
  font-size: 18px;
  font-weight: 950;
}

.shootout-actions [data-shootout-pick="YES"] {
  background: rgba(0, 230, 118, 0.22);
}

.shootout-actions [data-shootout-pick="NO"] {
  background: rgba(218, 41, 28, 0.22);
}

.shootout-actions button.selected {
  outline: 2px solid #00e676;
  outline-offset: 2px;
}

.shootout-actions button:disabled {
  opacity: 0.72;
}

.shootout-state,
.shootout-tally {
  margin: 0;
  text-align: center;
}

.shootout-state {
  color: #b8c8bf;
  font-size: 13px;
  font-weight: 800;
}

.shootout-tally {
  color: #00e676;
  font-size: 16px;
  font-weight: 950;
}

@keyframes sheetUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultPop {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(18px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (min-width: 481px) {
  body {
    background:
      linear-gradient(90deg, rgba(6, 21, 8, 0.96), rgba(6, 21, 8, 0.5), rgba(6, 21, 8, 0.96)),
      url("assets/stadium-pitch.png") center / cover fixed;
  }

  .phone-app {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 21, 8, 0.62);
  }
}
