:root {
  color-scheme: dark;
  --bg: #0427a8;
  --panel: rgba(0, 76, 211, 0.9);
  --panel-strong: rgba(0, 58, 180, 0.96);
  --line: rgba(73, 255, 236, 0.42);
  --line-strong: rgba(126, 255, 80, 0.86);
  --text: #f4fffb;
  --muted: #d9f1ff;
  --cyan: #33f7ff;
  --green: #7dff4f;
  --blue: #74f8ff;
  --gold: #ffe54c;
  --orange: #ffb13b;
  --red: #ff5f75;
  --shadow: 0 20px 70px rgba(0, 20, 92, 0.54);
  font-family:
    "DIN Alternate",
    "Arial Narrow",
    "Roboto Condensed",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(126, 255, 80, 0.14) 0%, transparent 28%),
    linear-gradient(180deg, #075bf2 0%, #043bc4 44%, #021b87 100%);
}

button {
  font: inherit;
}

.console-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 24px 42px;
  overflow: hidden;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.26;
  background:
    linear-gradient(rgba(105, 247, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 247, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.console-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(155deg, rgba(126, 255, 80, 0.2) 0%, transparent 23%),
    linear-gradient(22deg, rgba(51, 247, 255, 0.2) 0%, transparent 39%),
    linear-gradient(180deg, rgba(0, 20, 96, 0.26) 0%, transparent 48%);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.signal-mark {
  display: grid;
  grid-template-columns: repeat(4, 8px);
  align-items: end;
  width: 52px;
  height: 52px;
  gap: 4px;
}

.signal-mark i {
  display: block;
  width: 8px;
  background: linear-gradient(180deg, #b8ff58, #21d6d6);
  box-shadow: 0 0 18px rgba(126, 255, 238, 0.58);
}

.signal-mark i:nth-child(1) {
  height: 18px;
}

.signal-mark i:nth-child(2) {
  height: 32px;
}

.signal-mark i:nth-child(3) {
  height: 44px;
}

.signal-mark i:nth-child(4) {
  height: 26px;
}

.menu-button {
  min-height: 52px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(3, 82, 190, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 198, 66, 0.24), 0 0 24px rgba(255, 198, 66, 0.12);
}

.menu-button {
  display: grid;
  width: 56px;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(5, 109, 214, 0.58);
}

.menu-button span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 3px 0;
  background: #d5dfdf;
}

.top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.top-links a {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 13px;
  border: 1px solid rgba(24, 227, 208, 0.28);
  color: var(--text);
  background: rgba(24, 227, 208, 0.08);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.portal-topbar {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.portal-brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  width: fit-content;
  font-size: 20px;
  line-height: 1;
}

.portal-brand span {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.portal-brand small {
  position: relative;
  bottom: 2px;
  color: rgba(236, 255, 252, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.user-page-shell .top-links a {
  min-height: 34px;
  border: 0;
  color: rgba(242, 255, 253, 0.9);
  background: transparent;
  font-size: 14px;
}

.worldcup-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: end;
  min-height: 250px;
  margin: 0 -24px 22px;
  padding: 34px clamp(24px, 6vw, 86px) 38px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 82, 216, 0.96) 0%, rgba(0, 82, 216, 0.74) 42%, rgba(0, 82, 216, 0.18) 78%),
    url("./world-cup-hero.png") center right / cover no-repeat;
  box-shadow: inset 0 -80px 120px rgba(0, 67, 185, 0.42);
}

.worldcup-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(160, 255, 79, 0.92), rgba(44, 221, 255, 0.82), transparent);
}

.hero-copy,
.hero-match-card {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: block;
  color: #ffffff;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  margin: 10px 0 12px;
  color: #ffffff;
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 900;
  line-height: 0.96;
  text-shadow: 0 8px 30px rgba(0, 34, 133, 0.24);
}

.hero-copy h1 span {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 7px;
}

.hero-copy p {
  margin: 0 0 24px;
  color: #f4fffb;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 900;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
}

.hero-meta-row strong,
.hero-meta-row em {
  display: inline-grid;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 66, 183, 0.46);
  color: rgba(243, 255, 253, 0.92);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.hero-meta-row em {
  max-width: min(100%, 560px);
  color: rgba(222, 249, 250, 0.86);
  overflow-wrap: anywhere;
}

.hero-match-card {
  display: grid;
  gap: 10px;
  justify-self: end;
  width: min(100%, 370px);
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(148, 255, 240, 0.32);
  background: rgba(0, 71, 184, 0.54);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 43, 139, 0.22);
  backdrop-filter: blur(8px);
}

.hero-match-card > span {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

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

.hero-team-code {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.hero-team-code.away {
  justify-content: end;
}

.hero-team-code .flag {
  width: 46px;
  height: 31px;
  border-radius: 3px;
}

.hero-match-teams strong {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 900;
  line-height: 1;
}

.hero-team-code.away strong {
  text-align: right;
}

.hero-match-teams b {
  color: var(--gold);
  font-size: 24px;
}

.hero-match-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-match-detail em,
.hero-match-card small {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(240, 255, 252, 0.88);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.hero-match-card small {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: #062050;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.74fr) minmax(300px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.portal-module-grid {
  margin-top: 20px;
}

.back-link {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(24, 227, 208, 0.34);
  color: var(--cyan);
  background: rgba(24, 227, 208, 0.06);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.scoreboard {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 108px;
  align-items: center;
  gap: 22px;
  margin: 6px 0 22px;
}

.mini-pitch {
  position: relative;
  height: 82px;
  border: 1px dashed rgba(182, 255, 96, 0.7);
  background:
    linear-gradient(rgba(182, 255, 96, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 231, 255, 0.12) 1px, transparent 1px),
    rgba(5, 125, 188, 0.32);
  background-size: 12px 12px;
  box-shadow: inset 0 0 24px rgba(126, 255, 238, 0.18);
}

.mini-pitch span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px currentColor;
}

.mini-pitch span:nth-child(3n) {
  color: var(--gold);
  background: var(--gold);
}

.mini-pitch span:nth-child(1) { left: 18%; top: 18%; }
.mini-pitch span:nth-child(2) { left: 38%; top: 36%; }
.mini-pitch span:nth-child(3) { left: 62%; top: 22%; }
.mini-pitch span:nth-child(4) { left: 72%; top: 58%; }
.mini-pitch span:nth-child(5) { left: 24%; top: 68%; }
.mini-pitch span:nth-child(6) { left: 49%; top: 76%; }
.mini-pitch span:nth-child(7) { left: 58%; top: 46%; }
.mini-pitch span:nth-child(8) { left: 12%; top: 48%; }
.mini-pitch span:nth-child(9) { left: 84%; top: 31%; }
.mini-pitch span:nth-child(10) { left: 34%; top: 11%; }

.score-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto auto minmax(0, 1.2fr);
  align-items: center;
  justify-items: center;
  column-gap: clamp(14px, 2.4vw, 34px);
  min-height: 120px;
  padding: 18px clamp(22px, 4vw, 48px) 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(158, 255, 95, 0.22), transparent 12%, transparent 88%, rgba(46, 231, 255, 0.22)),
    linear-gradient(180deg, rgba(6, 126, 224, 0.88), rgba(2, 74, 184, 0.74));
  clip-path: polygon(2% 0, 98% 0, 100% 18%, 100% 82%, 98% 100%, 2% 100%, 0 82%, 0 18%);
  box-shadow: var(--shadow), inset 0 0 50px rgba(126, 255, 238, 0.12);
}

.score-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 7px 7px;
  opacity: 0.45;
}

.match-strip {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  row-gap: 10px;
  min-height: 188px;
  padding-bottom: 20px;
}

.score-team {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: clamp(12px, 1.8vw, 22px);
}

.home-team {
  justify-self: end;
}

.away-team {
  justify-self: start;
}

.team-code {
  position: relative;
  z-index: 1;
  color: #f5fbfb;
  font-size: clamp(36px, 6.4vw, 84px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.16);
}

.versus-mark {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(255, 198, 66, 0.18);
}

.score-value,
.score-separator {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(54px, 9vw, 116px);
  font-weight: 900;
  line-height: 0.9;
}

.score-separator {
  color: rgba(255, 255, 255, 0.8);
  padding: 0 clamp(2px, 0.8vw, 12px);
}

.match-clock {
  position: absolute;
  left: 50%;
  bottom: -30px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: stretch;
  min-height: 70px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 74, 184, 0.96);
  box-shadow: 0 0 30px rgba(46, 231, 255, 0.22);
}

.match-clock span {
  display: grid;
  place-items: center;
  min-width: 178px;
  padding: 0 26px;
  color: var(--cyan);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.match-clock em {
  display: grid;
  place-items: center;
  min-width: 72px;
  padding: 0 18px;
  color: var(--gold);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.match-strip .forecast-clock {
  position: relative;
  left: auto;
  bottom: auto;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  min-height: 64px;
  transform: none;
}

.forecast-clock span {
  min-width: 250px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0.03em;
}

.forecast-clock em {
  min-width: 92px;
  color: var(--green);
  font-size: 22px;
}

.match-meta {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #d6f4ff;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 800;
}

.match-meta span,
.match-meta b {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 92, 191, 0.36);
  font-weight: 800;
}

.flag {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 46px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

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

.flag-brazil {
  background: #0f8f49;
}

.flag-brazil::before {
  content: "";
  position: absolute;
  inset: 8px 12px;
  background: #f6d542;
  transform: rotate(45deg);
}

.flag-brazil::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 13px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #1546a0;
}

.flag-argentina {
  background: linear-gradient(#75bde9 0 33%, #fff 33% 66%, #75bde9 66%);
}

.flag-argentina::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5c43a;
}

.flag-spain {
  background: linear-gradient(#c91626 0 25%, #ffd84c 25% 75%, #c91626 75%);
}

.flag-spain::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 9px;
  height: 12px;
  border-radius: 2px;
  background: #ad1b2a;
}

.flag-france {
  background: linear-gradient(90deg, #183e9f 0 33%, #fff 33% 66%, #df2335 66%);
}

.flag-england {
  background: #f4f4f4;
}

.flag-england::before,
.flag-england::after {
  content: "";
  position: absolute;
  background: #c8102e;
}

.flag-england::before {
  left: 0;
  right: 0;
  top: 19px;
  height: 8px;
}

.flag-england::after {
  top: 0;
  bottom: 0;
  left: 30px;
  width: 8px;
}

.flag-portugal {
  background: linear-gradient(90deg, #006f3c 0 40%, #d71920 40%);
}

.flag-portugal::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 15px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffd100;
}

.flag-germany {
  background: linear-gradient(#111 0 33%, #dd0000 33% 66%, #ffce00 66%);
}

.flag-netherlands {
  background: linear-gradient(#ae1c28 0 33%, #fff 33% 66%, #21468b 66%);
}

.flag-generic {
  display: inline-grid;
  place-items: center;
  color: #d7e9e7;
  background:
    linear-gradient(135deg, rgba(24, 227, 208, 0.22), rgba(255, 198, 66, 0.12)),
    rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.flag-generic span {
  padding-top: 1px;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 20px;
  margin-top: 54px;
}

.console-panel {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(94, 255, 240, 0.19);
  background:
    linear-gradient(135deg, rgba(126, 255, 238, 0.12), transparent 45%),
    var(--panel);
  clip-path: polygon(1.8rem 0, 100% 0, 100% calc(100% - 1.2rem), calc(100% - 1.2rem) 100%, 0 100%, 0 1.8rem);
  box-shadow: var(--shadow), inset 0 0 42px rgba(126, 255, 238, 0.08);
  touch-action: auto;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 80ms linear;
}

.user-page-shell .console-panel,
.match-page-shell .console-panel {
  border-radius: 8px;
  border-color: rgba(95, 255, 238, 0.42);
  background:
    linear-gradient(180deg, rgba(47, 251, 255, 0.18), rgba(8, 70, 212, 0.08)),
    rgba(0, 71, 210, 0.86);
  clip-path: none;
  box-shadow: 0 18px 54px rgba(0, 18, 92, 0.34), inset 0 0 32px rgba(89, 255, 235, 0.1);
}

.user-page-shell .console-panel::after,
.match-page-shell .console-panel::after {
  border-radius: 6px;
  clip-path: none;
}

.console-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(123, 255, 245, 0.09);
  clip-path: inherit;
}

.console-panel.wide {
  grid-column: 1 / -1;
}

.console-panel h2 {
  margin: 0 0 22px;
  color: var(--cyan);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #ffffff;
}

.section-title::before,
.section-title::after {
  content: "";
  height: 10px;
  opacity: 0.82;
  background: repeating-linear-gradient(110deg, rgba(51, 247, 255, 0.82) 0 2px, transparent 2px 6px);
}

.section-title span {
  display: inline-grid;
  min-height: 28px;
  align-items: center;
  justify-self: center;
  padding: 0 4px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.panel-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 1px solid rgba(158, 255, 95, 0.4);
  color: var(--green);
  background: rgba(158, 255, 95, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.primary-link {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #061c27;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.console-panel:active {
  border-color: var(--line-strong);
}

.probability-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(51, 247, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 46, 158, 0.52);
  clip-path: none;
  overflow: hidden;
}

.portal-probability-row .probability {
  padding: 16px 14px;
}

.portal-probability-row .probability strong {
  font-size: clamp(40px, 4.8vw, 58px);
}

.probability-row.compact .probability {
  padding: 16px 18px;
}

.probability-row.compact .probability strong {
  font-size: clamp(40px, 6vw, 58px);
}

.probability {
  padding: 22px 24px;
  border-right: 1px solid rgba(51, 247, 255, 0.16);
}

.probability:last-child {
  border-right: 0;
}

.probability span {
  display: block;
  color: currentColor;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.probability strong {
  display: block;
  margin: 4px 0 12px;
  font-size: clamp(52px, 9vw, 76px);
  font-weight: 900;
  text-align: center;
  line-height: 1;
}

.green { color: var(--green); }
.blue { color: var(--blue); }
.gold { color: var(--gold); }
.orange { color: var(--orange); }
.red { color: var(--red); }
.muted { color: var(--muted); }

.segment-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  width: 100%;
}

.segment-bar i {
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.segment-bar.green .filled { background: var(--green); }
.segment-bar.blue .filled { background: var(--blue); }
.segment-bar.gold .filled { background: var(--gold); }
.segment-bar.orange .filled { background: var(--orange); }
.segment-bar.red .filled { background: var(--red); }

.engine-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 62, 171, 0.32);
  color: #b8c5c5;
  font-size: clamp(16px, 2vw, 22px);
}

.engine-copy {
  display: grid;
  gap: 4px;
}

.engine-copy strong {
  color: #d6e6e5;
  font-size: clamp(16px, 2vw, 22px);
}

.engine-copy small {
  color: var(--muted);
  font-size: clamp(12px, 1.6vw, 15px);
}

.ai-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 900;
  clip-path: polygon(26% 0, 74% 0, 100% 26%, 100% 74%, 74% 100%, 26% 100%, 0 74%, 0 26%);
}

.chevron {
  color: rgba(255, 255, 255, 0.56);
  font-size: 34px;
}

.analysis-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.analysis-list p {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(166, 255, 88, 0.74);
  border-radius: 0 6px 6px 0;
  background: rgba(0, 80, 196, 0.26);
  color: #e5f9ff;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
}

.featured-photo-card {
  position: relative;
  min-height: 226px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 32%, rgba(0, 42, 140, 0.84) 100%),
    url("./world-cup-hero.png") center right / cover no-repeat;
}

.featured-photo-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 18px;
}

.featured-photo-copy span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ff4359;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.featured-photo-copy strong {
  color: #ffffff;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 900;
}

.featured-photo-copy small {
  color: rgba(238, 255, 252, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.portal-top-score {
  min-height: 149px;
}

.forecast-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 229, 76, 0.42);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 229, 76, 0.18), rgba(51, 247, 255, 0.06) 58%),
    rgba(0, 54, 184, 0.68);
}

.forecast-lead span,
.forecast-lead em {
  color: rgba(217, 241, 255, 0.94);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.forecast-lead strong {
  color: var(--gold);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1;
}

.compact-score-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.compact-score {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 11px;
  border: 1px solid rgba(51, 247, 255, 0.22);
  border-radius: 7px;
  background: rgba(0, 52, 176, 0.58);
}

.compact-score span,
.compact-score em {
  color: rgba(217, 241, 255, 0.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.compact-score strong {
  color: currentColor;
  font-size: 28px;
  line-height: 1;
}

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

.fair-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.34);
}

.fair-price-row strong,
.fair-price-row span {
  display: block;
}

.fair-price-row strong {
  color: #f4fffb;
  font-size: 17px;
}

.fair-price-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fair-price-row b {
  color: currentColor;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.fair-price-row em {
  min-width: 54px;
  padding: 6px 7px;
  border: 1px solid currentColor;
  color: #f4fffb;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.market-source-box {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(255, 177, 59, 0.28);
  border-radius: 7px;
  background: rgba(255, 177, 59, 0.08);
}

.market-source-box strong {
  color: var(--orange);
  font-size: 16px;
}

.market-source-box p {
  margin: 0;
  color: rgba(232, 255, 252, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

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

.goal-market-grid.compact {
  grid-template-columns: 1fr;
}

.goal-market-card {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(51, 247, 255, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(135deg, color-mix(in srgb, currentColor 18%, transparent), transparent 58%),
    rgba(0, 54, 180, 0.68);
}

.goal-market-card span,
.goal-market-card small,
.goal-market-card em {
  font-style: normal;
  font-weight: 900;
}

.goal-market-card span {
  color: currentColor;
  font-size: 14px;
}

.goal-market-card strong {
  color: #f4fffb;
  font-size: 30px;
  line-height: 1;
}

.goal-market-card small {
  color: rgba(217, 241, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
}

.goal-market-card em {
  width: fit-content;
  padding: 5px 7px;
  border: 1px solid currentColor;
  color: #ffffff;
  background: rgba(0, 20, 92, 0.18);
  font-size: 12px;
}

.score-matrix {
  display: grid;
  grid-template-columns: repeat(var(--matrix-columns), minmax(52px, 1fr));
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.matrix-axis,
.matrix-head,
.matrix-cell {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 6px;
  font-weight: 900;
}

.matrix-axis,
.matrix-head {
  border: 1px solid rgba(126, 255, 238, 0.14);
  color: var(--muted);
  background: rgba(0, 73, 188, 0.28);
  font-size: 12px;
}

.matrix-cell {
  gap: 2px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4fffb;
  background:
    linear-gradient(180deg, rgba(255, 240, 90, calc(var(--heat) * 0.34)), rgba(46, 231, 255, calc(var(--heat) * 0.18))),
    rgba(0, 73, 188, 0.32);
}

.matrix-cell b {
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

.matrix-cell em {
  color: rgba(232, 255, 252, 0.78);
  font-size: 11px;
  font-style: normal;
}

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

.creator-topic {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.34);
}

.creator-topic > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(158, 255, 95, 0.42);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.creator-topic strong {
  display: block;
  color: #f4fffb;
  font-size: 18px;
  line-height: 1.22;
}

.creator-topic p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.compact-analysis p {
  font-size: 14px;
}

.match-detail-splits {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1.1fr);
  gap: 14px;
}

.meaning-field-panel,
.reflective-judgment-panel,
.score-summary-panel,
.big-win-risk-panel,
.pre-match-adjustment-panel {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(51, 247, 255, 0.2);
  border-radius: 7px;
  background: rgba(0, 51, 166, 0.42);
}

.meaning-field-head,
.reflective-head,
.score-summary-head,
.big-win-head,
.pre-match-adjustment-head,
.pre-match-policy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.meaning-field-head strong,
.reflective-head strong,
.score-summary-head strong,
.pre-match-adjustment-head strong {
  color: #f4fffb;
  font-size: 15px;
  line-height: 1.15;
}

.meaning-field-head span,
.reflective-head span,
.score-summary-head span,
.pre-match-adjustment-head span,
.pre-match-policy span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}

.meaning-field-panel p,
.reflective-judgment-panel p,
.score-summary-panel p,
.big-win-risk-panel p,
.pre-match-adjustment-panel p {
  margin: 0;
  color: rgba(232, 255, 252, 0.82);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.5;
}

.meaning-field-panel {
  border-color: rgba(125, 255, 79, 0.22);
  background:
    linear-gradient(135deg, rgba(125, 255, 79, 0.08), transparent 58%),
    rgba(0, 51, 166, 0.38);
}

.meaning-probability-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.meaning-probability-shift article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 73, 188, 0.34);
}

.meaning-probability-shift span,
.meaning-field-metrics span,
.reflective-prototypes span,
.counterfactual-branches span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.meaning-probability-shift strong {
  color: #ffffff;
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.meaning-field-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.meaning-field-metrics article,
.reflective-prototypes article,
.counterfactual-branches article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 73, 188, 0.3);
}

.meaning-field-metrics strong,
.reflective-prototypes strong {
  color: var(--gold);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.meaning-time-structure {
  display: grid;
  gap: 6px;
}

.meaning-time-structure span {
  position: relative;
  padding-left: 14px;
  color: rgba(232, 255, 252, 0.78);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

.meaning-time-structure span::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.reflective-judgment-panel {
  border-color: rgba(255, 229, 76, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 229, 76, 0.08), transparent 58%),
    rgba(0, 43, 141, 0.36);
}

.reflective-prototypes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reflective-prototypes small {
  color: rgba(232, 255, 252, 0.68);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
}

.counterfactual-branches {
  display: grid;
  gap: 7px;
}

.counterfactual-branches strong {
  color: rgba(232, 255, 252, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.prediction-integrity {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.prediction-integrity span {
  color: rgba(232, 255, 252, 0.78);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}

.score-summary-metrics,
.big-win-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.score-summary-metrics article,
.big-win-metrics article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 73, 188, 0.32);
}

.score-summary-metrics span,
.big-win-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.score-summary-metrics strong,
.big-win-metrics strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.match-risk-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 14px;
}

.match-risk-grid:empty {
  display: none;
}

.big-win-risk-panel {
  border-color: color-mix(in srgb, currentColor 28%, rgba(255, 255, 255, 0.12));
  color: var(--gold);
  background:
    linear-gradient(135deg, color-mix(in srgb, currentColor 16%, transparent), transparent 58%),
    rgba(0, 51, 166, 0.44);
}

.big-win-risk-panel.red {
  color: var(--red);
}

.big-win-risk-panel.orange {
  color: var(--orange);
}

.big-win-risk-panel.blue {
  color: var(--blue);
}

.big-win-head {
  justify-content: space-between;
}

.big-win-head div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.big-win-head span {
  color: rgba(232, 255, 252, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.big-win-head strong {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(0, 20, 92, 0.24);
  font-size: 13px;
  font-weight: 950;
}

.big-win-risk-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.big-win-risk-panel li {
  position: relative;
  padding-left: 14px;
  color: rgba(232, 255, 252, 0.78);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.38;
}

.big-win-risk-panel li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pre-match-adjustment-panel {
  border-color: rgba(125, 255, 79, 0.18);
  background: rgba(0, 43, 141, 0.36);
}

.pre-match-checkpoints {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pre-match-checkpoints article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(2, 25, 94, 0.48);
}

.pre-match-checkpoints article.active,
.pre-match-checkpoints article.watching {
  border-color: rgba(125, 255, 79, 0.28);
}

.pre-match-checkpoints span,
.pre-match-checkpoints em,
.pre-match-checkpoints small {
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.pre-match-checkpoints span {
  color: var(--gold);
  font-size: 12px;
}

.pre-match-checkpoints strong {
  color: #f4fffb;
  font-size: 13px;
  line-height: 1.2;
}

.pre-match-checkpoints em {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  color: #07161a;
  background: var(--muted);
  font-size: 10px;
}

.pre-match-checkpoints article.active em,
.pre-match-checkpoints article.watching em {
  background: var(--green);
}

.pre-match-checkpoints small {
  color: rgba(232, 255, 252, 0.7);
  font-size: 11px;
}

.pre-match-policy {
  color: var(--green);
}

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

.team-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.team-row.selected {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(24, 227, 208, 0.22), 0 0 22px rgba(24, 227, 208, 0.08);
}

.team-row span:nth-child(2) {
  font-size: 24px;
  font-weight: 800;
}

.star {
  color: var(--cyan);
  font-size: 26px;
}

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

.score-outcome {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.score-outcome > strong {
  color: currentColor;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  text-align: center;
  line-height: 1;
}

.score-outcome b {
  display: block;
  color: #f6fbfb;
  font-size: 26px;
  line-height: 1;
}

.score-outcome span {
  display: block;
  margin-top: 6px;
  color: #a9b8b8;
  font-size: 15px;
  line-height: 1.35;
}

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

.upcoming-row {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  background: rgba(0, 0, 0, 0.18);
  text-align: left;
}

.user-page-shell .upcoming-row,
.match-page-shell .upcoming-row {
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.34);
}

.upcoming-row.selected {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(24, 227, 208, 0.18);
}

.upcoming-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  color: #eefaf8;
  font-size: 20px;
  font-weight: 900;
}

.upcoming-teams span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.upcoming-teams span:last-child {
  justify-content: end;
}

.upcoming-teams .flag {
  width: 34px;
  height: 23px;
  border-radius: 2px;
}

.upcoming-teams em {
  color: #eefaf8;
  font-style: normal;
  white-space: nowrap;
}

.upcoming-teams b {
  color: var(--gold);
  font-size: 18px;
}

.upcoming-copy {
  min-width: 0;
}

.upcoming-copy strong {
  display: block;
  color: #eefaf8;
  font-size: 19px;
}

.upcoming-copy small {
  display: block;
  margin-top: 4px;
  color: #9db1b0;
  line-height: 1.4;
}

.upcoming-probs {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 8px;
}

.upcoming-probs em {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(24, 227, 208, 0.16);
  color: var(--cyan);
  font-style: normal;
  font-weight: 900;
}

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

.finished-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1fr) minmax(210px, auto);
  align-items: center;
  gap: 16px;
  min-height: 98px;
  padding: 14px;
  border: 1px solid rgba(126, 255, 238, 0.2);
  background:
    linear-gradient(90deg, rgba(46, 231, 255, 0.1), transparent 42%),
    rgba(0, 83, 188, 0.32);
}

.portal-schedule-card .finished-list {
  gap: 10px;
}

.portal-schedule-card .finished-row {
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 10px;
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.32);
}

.portal-schedule-card .finished-result {
  gap: 8px;
}

.portal-schedule-card .finished-side {
  font-size: 15px;
}

.portal-schedule-card .finished-side .flag {
  width: 30px;
  height: 20px;
  border-radius: 2px;
}

.portal-schedule-card .finished-result > strong {
  color: #ffffff;
  font-size: 22px;
}

.portal-schedule-card .finished-copy strong {
  font-size: 15px;
}

.portal-schedule-card .finished-copy small {
  font-size: 12px;
}

.portal-schedule-card .finished-row em {
  justify-self: start;
  max-width: none;
  padding: 4px 7px;
  border-color: rgba(158, 255, 95, 0.36);
  font-size: 12px;
  text-align: left;
}

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

.finished-side {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #f4fffb;
  font-size: 19px;
  font-weight: 900;
}

.finished-side.away {
  justify-content: end;
}

.finished-side .flag {
  width: 42px;
  height: 28px;
}

.finished-result > strong {
  color: var(--gold);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  white-space: nowrap;
}

.finished-copy {
  min-width: 0;
}

.finished-copy strong {
  display: block;
  color: #f4fffb;
  font-size: 20px;
}

.finished-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.finished-row em {
  justify-self: end;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(158, 255, 95, 0.42);
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
}

.match-detail-grid {
  display: grid;
  gap: 16px;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.detail-head strong {
  color: #eefaf8;
  font-size: 22px;
}

.detail-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.detail-title .flag {
  width: 38px;
  height: 26px;
  border-radius: 2px;
}

.detail-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-head span {
  color: var(--muted);
  font-weight: 800;
}

.detail-head a {
  justify-self: end;
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(24, 227, 208, 0.28);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.path-preview {
  overflow: hidden;
}

.path-preview,
.layer-grid,
.factor-grid,
.scenario-grid,
.weight-grid {
  display: grid;
  gap: 16px;
}

.path-preview {
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  align-items: start;
}

.path-column {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 168px;
}

.path-column::after {
  content: "";
  position: absolute;
  top: 72px;
  right: -14px;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.path-column:last-of-type::after {
  display: none;
}

.path-column span {
  color: #c9d3d3;
  font-size: 16px;
}

.path-column b {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.path-column:nth-child(3) b,
.path-column:nth-child(4) b {
  color: var(--orange);
}

.path-column:nth-child(5) b {
  color: var(--gold);
  font-size: 74px;
  letter-spacing: 0;
}

.path-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b7c6c5;
  font-size: 14px;
}

.path-legend span::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
}

.legend-green::before { background: var(--green); }
.legend-gold::before { background: var(--gold); }
.legend-orange::before { background: var(--orange); }
.legend-red::before { background: var(--red); }
.legend-gray::before { background: #555; }

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

.scenario-card {
  display: grid;
  gap: 12px;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, color-mix(in srgb, currentColor 10%, transparent), transparent 48%),
    rgba(0, 0, 0, 0.18);
}

.user-page-shell .scenario-card,
.match-page-shell .scenario-card,
.user-page-shell .score-outcome,
.match-page-shell .score-outcome {
  border-radius: 7px;
  background-color: rgba(0, 73, 188, 0.32);
}

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

.scenario-head span {
  color: currentColor;
  font-size: 18px;
  font-weight: 900;
}

.scenario-head strong {
  color: #f7fffe;
  font-size: 36px;
  line-height: 1;
}

.scenario-card h3 {
  margin: 0;
  color: #eefaf8;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.18;
}

.scenario-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #b7c6c5;
  list-style: none;
}

.scenario-card li::before {
  content: "▣";
  margin-right: 8px;
  color: currentColor;
}

.scenario-card em {
  align-self: end;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid currentColor;
  font-style: normal;
  font-weight: 900;
}

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

.champion-row {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.portal-standing-card .champion-list {
  gap: 9px;
}

.portal-standing-card .champion-row {
  min-height: 58px;
  padding: 9px 10px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.32);
}

.portal-standing-card .champion-row > span {
  color: #fff069;
  font-size: 17px;
}

.portal-standing-card .champion-row .flag {
  width: 34px;
  height: 23px;
}

.portal-standing-card .champion-row strong {
  font-size: 16px;
}

.portal-standing-card .champion-row small {
  font-size: 12px;
}

.portal-standing-card .champion-probability {
  min-width: 60px;
}

.portal-standing-card .champion-probability b {
  font-size: 22px;
}

.champion-row > div:not(.champion-probability) {
  min-width: 0;
}

.champion-row > span {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}

.champion-row .flag {
  width: 46px;
  height: 31px;
}

.champion-row strong {
  display: block;
  color: #eefaf8;
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-row small {
  display: block;
  margin-top: 3px;
  color: #95a8a7;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-probability {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 70px;
}

.champion-probability b {
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

.champion-probability em {
  text-align: right;
  font-style: normal;
  font-weight: 900;
}

.news-list,
.source-list {
  display: grid;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.user-page-shell .news-item,
.match-page-shell .news-item {
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.32);
}

.news-item strong {
  display: block;
  color: currentColor;
  font-size: 20px;
}

.news-item p,
.news-item small {
  margin: 2px 0 0;
  color: #a9b8b8;
}

.news-item em {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid currentColor;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.news-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  font-weight: 900;
}

.review-dashboard {
  display: grid;
  gap: 16px;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.review-summary span {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: #a9b8b8;
  font-size: 14px;
  font-weight: 800;
}

.review-summary b {
  color: var(--cyan);
  font-size: 26px;
  line-height: 1;
}

.snapshot-button {
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(24, 227, 208, 0.52);
  color: var(--cyan);
  background: rgba(24, 227, 208, 0.08);
  font-weight: 900;
}

.snapshot-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

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

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.review-row.watch {
  border-color: rgba(255, 198, 66, 0.34);
}

.review-row.apply {
  border-color: rgba(101, 230, 90, 0.24);
}

.review-copy {
  min-width: 0;
}

.review-copy strong {
  display: block;
  color: #eefaf8;
  font-size: 20px;
}

.review-copy p {
  margin: 5px 0;
  color: #a9b8b8;
  line-height: 1.45;
}

.review-copy small {
  color: var(--muted);
}

.review-meta {
  display: grid;
  gap: 8px;
  min-width: 82px;
  justify-items: end;
}

.review-meta span,
.review-meta em {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d7e9e7;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.review-meta em {
  color: var(--gold);
  border-color: currentColor;
}

.review-actions {
  display: grid;
  gap: 8px;
  min-width: 98px;
}

.review-actions button {
  min-height: 38px;
  border: 1px solid rgba(24, 227, 208, 0.42);
  color: var(--cyan);
  background: rgba(24, 227, 208, 0.07);
  font-weight: 900;
}

.review-actions button:last-child {
  border-color: rgba(255, 70, 70, 0.42);
  color: var(--red);
  background: rgba(255, 70, 70, 0.06);
}

.review-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.review-message,
.review-empty {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 198, 66, 0.08);
  color: #d8cda2;
  font-weight: 800;
}

.admin-shell {
  width: min(100%, 1280px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-topbar span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 4px 0 0;
  color: #f3fffd;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.admin-topbar a {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid rgba(24, 227, 208, 0.32);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 900;
}

.local-ops-admin-shell {
  gap: 16px;
}

.local-ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(247, 202, 91, 0.26);
  background:
    linear-gradient(135deg, rgba(247, 202, 91, 0.13), transparent 42%),
    rgba(7, 22, 26, 0.86);
  box-shadow: var(--shadow);
}

.local-ops-hero strong {
  display: block;
  color: #f6d36d;
  font-size: 18px;
}

.local-ops-hero p {
  margin: 6px 0 0;
  color: #c9d5d2;
  font-size: 14px;
  font-weight: 800;
}

.local-ops-hero button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(24, 227, 208, 0.45);
  background: rgba(24, 227, 208, 0.08);
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.local-ops-hero button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.local-ops-error p,
.local-ops-error small {
  margin: 0;
  color: #c9d5d2;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-login-panel {
  display: grid;
  width: min(100%, 520px);
  margin: 56px auto 0;
}

.admin-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 22, 26, 0.86);
  box-shadow: var(--shadow);
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card h2 {
  margin: 0;
  color: #dff4f2;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.admin-metric {
  display: grid;
  gap: 6px;
  min-height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.admin-metric span {
  color: #a8bbba;
  font-size: 13px;
  font-weight: 900;
}

.admin-metric strong {
  color: currentColor;
  font-size: 34px;
  line-height: 1;
}

.ops-stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ops-stat-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(24, 227, 208, 0.18);
  background:
    linear-gradient(135deg, rgba(247, 202, 91, 0.08), transparent 44%),
    rgba(0, 0, 0, 0.2);
}

.ops-stat-section-wide {
  grid-column: span 3;
}

.ops-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-section-title strong {
  color: #f3fffd;
  font-size: 17px;
}

.ops-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

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

.ops-metrics .admin-metric {
  min-height: 76px;
}

.ops-metrics .admin-metric strong {
  font-size: 26px;
}

.ops-mini-list,
.ops-day-list {
  display: grid;
  gap: 8px;
}

.ops-list-heading {
  color: #f6d36d;
  font-size: 13px;
}

.ops-mini-row,
.ops-day-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.ops-mini-row span,
.ops-day-row span,
.ops-day-row em {
  overflow: hidden;
  color: #a8bbba;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-mini-row strong,
.ops-day-row b {
  color: #f6d36d;
  font-size: 13px;
  text-align: right;
}

.ops-mini-row.account-row {
  align-items: start;
  min-height: 74px;
}

.ops-mini-row.account-row span {
  display: grid;
  gap: 3px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.35;
}

.ops-mini-row.account-row span b {
  color: #d7fbff;
  font-size: 13px;
}

.ops-mini-row.account-row span small {
  color: #8fb0ae;
  font-size: 11px;
  font-weight: 760;
}

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

.ops-day-list {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ops-day-row {
  grid-template-columns: 1fr;
  justify-items: start;
}

.prediction-run-panel {
  display: grid;
  gap: 16px;
}

.run-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: stretch;
}

.run-head > div:first-child {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(24, 227, 208, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.run-head span,
.run-head em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.run-head strong {
  color: #f3fffd;
  font-size: 34px;
  line-height: 1;
}

.run-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.run-summary .admin-metric {
  min-height: 118px;
}

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

.run-stage {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.run-stage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.run-stage-title strong,
.run-table > strong {
  color: #dff4f2;
  font-size: 15px;
}

.run-stage-title span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.run-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.run-step {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 134px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dff4f2;
  background: rgba(0, 0, 0, 0.18);
}

.run-step.green { border-color: rgba(101, 230, 90, 0.32); }
.run-step.gold { border-color: rgba(255, 198, 66, 0.34); }
.run-step.blue { border-color: rgba(24, 227, 208, 0.3); }
.run-step.muted { border-color: rgba(255, 255, 255, 0.08); }

.run-step span {
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
}

.run-step strong {
  color: #f3fffd;
  font-size: 16px;
  line-height: 1.2;
}

.run-step p {
  margin: 0;
  color: #a8bbba;
  font-size: 13px;
  line-height: 1.45;
}

.run-step code,
.run-interface-row code,
.run-intervention-row code {
  color: var(--green);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.run-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.run-table {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.run-interface-row,
.run-intervention-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 70px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.run-intervention-row {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
}

.run-interface-row span,
.run-intervention-row span {
  min-width: 0;
  color: #d9e6e5;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.run-interface-row em {
  justify-self: end;
  font-style: normal;
  font-weight: 900;
}

.run-interface-row small,
.run-intervention-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.admin-command {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.admin-command code {
  color: var(--green);
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-command span {
  color: var(--muted);
  font-weight: 800;
}

.daily-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.daily-status span {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  place-items: center;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.daily-status b {
  max-width: 100%;
  color: var(--green);
  font-size: 20px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.daily-status em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-auth-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.admin-auth-row input,
.admin-login-form input {
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(24, 227, 208, 0.28);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  font-weight: 900;
}

.admin-auth-row span {
  color: var(--muted);
  font-weight: 900;
}

.admin-auth-row button,
.admin-login-form button {
  min-height: 44px;
  border: 1px solid rgba(24, 227, 208, 0.36);
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.24);
  font-weight: 900;
}

.admin-login-form button:disabled {
  opacity: 0.55;
}

.admin-auth-error {
  margin: 0;
  color: #ff8c7a;
  font-weight: 900;
}

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

.backup-list {
  display: grid;
  gap: 8px;
}

.backup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.backup-row strong {
  min-width: 0;
  color: #d9e6e5;
  overflow-wrap: anywhere;
}

.backup-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.backup-row button {
  min-height: 34px;
  border: 1px solid rgba(24, 227, 208, 0.36);
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.audit-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.audit-row strong {
  color: var(--cyan);
}

.audit-row span {
  min-width: 0;
  color: #d9e6e5;
  overflow-wrap: anywhere;
}

.audit-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

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

.raw-news-form,
.tournament-import-form,
.tournament-rollback-form {
  display: grid;
  gap: 10px;
}

.fixture-mode,
.fixture-inputs,
.raw-news-grid {
  display: grid;
  gap: 8px;
}

.fixture-mode {
  grid-template-columns: repeat(2, 1fr);
}

.fixture-inputs {
  grid-template-columns: repeat(2, 1fr);
}

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

.fixture-mode button,
.fixture-form > button,
.fixture-inputs input,
.raw-news-form input,
.raw-news-form textarea,
.raw-news-form select,
.tournament-import-form textarea,
.tournament-rollback-form input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
}

.fixture-mode button.selected {
  border-color: var(--cyan);
  color: var(--cyan);
}

.fixture-form > button {
  border-color: rgba(101, 230, 90, 0.36);
  color: var(--green);
  font-weight: 900;
}

.raw-news-form > button,
.tournament-import-form > button,
.tournament-rollback-form > button {
  min-height: 44px;
  border: 1px solid rgba(24, 227, 208, 0.36);
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.24);
  font-weight: 900;
}

.fixture-inputs input,
.raw-news-form input,
.raw-news-form textarea,
.raw-news-form select,
.tournament-import-form textarea,
.tournament-rollback-form input {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  font-weight: 900;
}

.raw-news-form textarea,
.tournament-import-form textarea {
  min-height: 82px;
  padding: 10px;
  resize: vertical;
}

.tournament-import-form textarea {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.45;
}

.muted {
  color: #7d8889;
}

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

.source-level {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 22px;
  font-weight: 900;
}

.source-row strong {
  font-size: 22px;
}

.source-row > span:last-child {
  color: #b4c1c1;
}

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

.layer-grid.compact {
  grid-template-columns: 1fr;
}

.layer-grid.compact .layer-card {
  min-height: 0;
}

.layer-grid.compact .layer-card h3 {
  font-size: 20px;
}

.layer-card {
  min-height: 240px;
  padding: 18px;
  border: 1px solid rgba(24, 227, 208, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.user-page-shell .layer-card,
.match-page-shell .layer-card {
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.32);
}

.layer-card span {
  color: var(--cyan);
  font-size: 16px;
  font-weight: 900;
}

.layer-card strong {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 20px;
}

.layer-card h3 {
  margin: 6px 0 12px;
  font-size: 26px;
}

.layer-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #bbcac9;
}

.layer-card li::before {
  content: "▣";
  margin-right: 8px;
  color: var(--green);
}

.layer-card em {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  color: var(--cyan);
  border: 1px solid rgba(24, 227, 208, 0.26);
  font-style: normal;
}

.factor-grid {
  grid-template-columns: repeat(2, 1fr);
}

.factor-row {
  display: grid;
  grid-template-columns: 42px 112px 1fr 48px 54px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.factor-icon {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  clip-path: polygon(50% 0, 92% 24%, 84% 78%, 50% 100%, 16% 78%, 8% 24%);
}

.bar-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.bar-track i {
  display: block;
  height: 100%;
}

.bar-track i.green { background: var(--green); }
.bar-track i.blue { background: var(--blue); }
.bar-track i.gold { background: var(--gold); }

.factor-row b {
  justify-self: end;
  font-size: 24px;
}

.factor-row em {
  justify-self: end;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.weight-grid {
  grid-template-columns: repeat(2, 1fr);
}

.weight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.weight-card strong {
  display: block;
  font-size: 19px;
}

.weight-card span {
  display: block;
  margin-top: 4px;
  color: #9db1b0;
  font-size: 14px;
}

.weight-card b {
  color: var(--gold);
  font-size: 28px;
  text-align: right;
}

.weight-card .segment-bar {
  grid-column: 1 / -1;
}

.match-full-content {
  display: grid;
  gap: 18px;
}

.move-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 640px);
  min-height: 64px;
  margin: 28px auto 0;
  gap: 16px;
  border: 1px dashed rgba(24, 227, 208, 0.6);
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.18);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}

.move-hint.active {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(255, 198, 66, 0.12);
}

@media (min-width: 1100px) {
  .module-grid {
    grid-template-columns: minmax(360px, 1.1fr) minmax(360px, 1fr);
  }
}

@media (max-width: 1160px) {
  .portal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  }

  .portal-schedule-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .console-shell {
    padding: 18px 18px 34px;
  }

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

  .top-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .worldcup-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    margin: 0 -18px 18px;
    padding: 30px 18px 34px;
    background-position: 64% center;
  }

  .hero-match-card {
    justify-self: start;
  }

  .hero-meta-row em {
    max-width: 100%;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-schedule-card {
    grid-column: auto;
  }

  .brand {
    gap: 12px;
    font-size: clamp(28px, 8vw, 40px);
  }

  .signal-mark {
    width: 42px;
    height: 42px;
    grid-template-columns: repeat(4, 6px);
  }

  .signal-mark i {
    width: 6px;
  }

  .menu-button {
    width: 44px;
    min-height: 44px;
  }

  .scoreboard {
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    gap: 10px;
  }

  .mini-pitch {
    height: 74px;
  }

  .score-strip {
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    column-gap: clamp(8px, 1.8vw, 18px);
    min-height: 108px;
    padding: 14px 14px 42px;
  }

  .match-strip {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 180px;
    padding-bottom: 18px;
  }

  .score-team {
    gap: 8px;
  }

  .score-strip .flag {
    width: 50px;
    height: 34px;
  }

  .team-code {
    font-size: clamp(30px, 8.6vw, 52px);
  }

  .score-value,
  .score-separator {
    font-size: clamp(44px, 12vw, 70px);
  }

  .score-separator {
    padding: 0 8px;
  }

  .match-clock {
    bottom: 0;
    min-height: 54px;
  }

  .match-clock span {
    min-width: 130px;
    padding: 0 16px;
    font-size: 34px;
  }

  .match-clock em {
    min-width: 48px;
    padding: 0 12px;
    font-size: 20px;
  }

  .forecast-clock span {
    min-width: 180px;
    font-size: 27px;
  }

  .forecast-clock em {
    min-width: 74px;
    font-size: 18px;
  }

  .match-meta {
    gap: 8px;
    font-size: 14px;
  }

  .module-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .portal-module-grid {
    margin-top: 16px;
  }

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

  .run-head,
  .run-split {
    grid-template-columns: 1fr;
  }

  .ops-stats-panel,
  .ops-recent-grid {
    grid-template-columns: 1fr;
  }

  .ops-stat-section-wide {
    grid-column: auto;
  }

  .ops-day-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .run-step-list,
  .run-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-panel,
  .console-panel.wide {
    grid-column: auto;
    padding: 18px;
  }

  .probability-row {
    grid-template-columns: 1fr;
  }

  .forecast-lead,
  .fair-price-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .compact-score-list,
  .goal-market-grid,
  .match-detail-splits,
  .match-risk-grid,
  .score-summary-metrics,
  .meaning-probability-shift,
  .meaning-field-metrics,
  .reflective-prototypes,
  .big-win-metrics,
  .pre-match-checkpoints {
    grid-template-columns: 1fr;
  }

  .score-matrix {
    grid-template-columns: repeat(var(--matrix-columns), minmax(58px, 1fr));
  }

  .probability {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .probability:last-child {
    border-bottom: 0;
  }

  .probability strong {
    font-size: 56px;
  }

  .path-preview {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .upcoming-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .finished-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .finished-row em {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

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

  .detail-head {
    display: grid;
  }

  .detail-head a {
    justify-self: start;
  }

  .path-column {
    min-width: 78px;
  }

  .path-column span {
    min-height: 34px;
    font-size: 12px;
  }

  .path-column b {
    font-size: 21px;
  }

  .path-column:nth-child(5) b {
    font-size: 42px;
  }

  .news-item {
    grid-template-columns: 42px 1fr;
  }

  .news-item em {
    grid-column: 2;
    justify-self: start;
  }

  .review-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .review-meta {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    justify-items: start;
  }

  .review-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .source-row {
    grid-template-columns: 36px 52px 1fr;
  }

  .source-row > span:last-child {
    grid-column: 3;
  }

  .layer-grid,
  .factor-grid,
  .scenario-grid,
  .weight-grid {
    grid-template-columns: 1fr;
  }

  .factor-row {
    grid-template-columns: 38px 104px 1fr 42px 46px;
  }

  .champion-row {
    grid-template-columns: 24px 40px minmax(0, 1fr) minmax(58px, auto);
    gap: 10px;
  }

  .champion-row .flag {
    width: 40px;
    height: 28px;
  }

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

  .champion-row small {
    font-size: 12px;
  }

  .champion-probability {
    grid-column: 4;
    min-width: 58px;
  }

  .champion-probability b {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .console-shell {
    padding: 14px 12px 28px;
  }

  .topbar {
    gap: 6px;
  }

  .portal-brand span {
    font-size: 22px;
  }

  .portal-brand small {
    font-size: 11px;
  }

  .worldcup-hero {
    margin: 0 -12px 16px;
    padding: 24px 12px 30px;
    background:
      linear-gradient(90deg, rgba(0, 82, 216, 0.96) 0%, rgba(0, 82, 216, 0.74) 58%, rgba(0, 82, 216, 0.24) 100%),
      url("./world-cup-hero.png") 66% center / cover no-repeat;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 14vw, 52px);
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-match-card {
    width: 100%;
    padding: 14px;
  }

  .hero-match-teams strong {
    font-size: 34px;
  }

  .section-title {
    gap: 7px;
  }

  .section-title span {
    font-size: 15px;
  }

  .forecast-lead strong {
    font-size: 36px;
  }

  .compact-score strong,
  .goal-market-card strong {
    font-size: 26px;
  }

  .fair-price-row {
    gap: 8px;
  }

  .fair-price-row b {
    font-size: 22px;
  }

  .score-matrix {
    grid-template-columns: repeat(var(--matrix-columns), minmax(54px, 1fr));
    gap: 6px;
  }

  .matrix-cell {
    min-height: 54px;
  }

  .brand span:last-child {
    font-size: clamp(20px, 5.6vw, 26px);
    white-space: nowrap;
  }

  .signal-mark {
    width: 34px;
    height: 34px;
    grid-template-columns: repeat(4, 5px);
    gap: 3px;
  }

  .signal-mark i {
    width: 5px;
  }

  .menu-button {
    width: 40px;
    min-height: 40px;
  }

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

  .mini-pitch {
    display: none;
  }

  .score-strip {
    width: 100%;
    min-height: 102px;
    padding-bottom: 38px;
  }

  .match-strip {
    min-height: 156px;
    padding: 12px 10px 16px;
    row-gap: 8px;
  }

  .team-code {
    font-size: clamp(25px, 9vw, 38px);
  }

  .versus-mark {
    font-size: clamp(36px, 13vw, 58px);
  }

  .score-value,
  .score-separator {
    font-size: clamp(34px, 13vw, 54px);
  }

  .flag {
    width: 48px;
    height: 32px;
  }

  .score-strip .flag {
    width: 36px;
    height: 25px;
  }

  .forecast-clock {
    min-height: 50px;
  }

  .forecast-clock span {
    min-width: 142px;
    padding: 0 12px;
    font-size: 22px;
  }

  .forecast-clock em {
    min-width: 58px;
    padding: 0 10px;
    font-size: 15px;
  }

  .match-meta span,
  .match-meta b {
    padding: 6px 8px;
  }

  .console-panel h2 {
    font-size: 24px;
  }

  .admin-shell {
    padding: 16px 12px 28px;
  }

  .admin-topbar {
    display: grid;
    align-items: start;
  }

  .local-ops-hero {
    grid-template-columns: 1fr;
  }

  .local-ops-hero button {
    width: 100%;
  }

  .admin-grid,
  .admin-metrics,
  .ops-metrics,
  .ops-day-list,
  .run-summary,
  .run-step-list,
  .daily-status,
  .admin-auth-row,
  .backup-row,
  .audit-row,
  .fixture-inputs,
  .raw-news-grid {
    grid-template-columns: 1fr;
  }

  .run-head strong {
    font-size: 28px;
  }

  .run-interface-row,
  .run-intervention-row {
    grid-template-columns: 1fr;
  }

  .run-interface-row em {
    justify-self: start;
  }

  .engine-line {
    grid-template-columns: auto 1fr;
  }

  .chevron {
    display: none;
  }

  .score-outcome {
    grid-template-columns: 78px 1fr;
  }

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

  .finished-side {
    gap: 7px;
    font-size: 15px;
  }

  .finished-side .flag {
    width: 34px;
    height: 24px;
  }

  .review-summary {
    gap: 8px;
  }

  .review-summary span {
    min-height: 58px;
    padding: 10px;
  }

  .champion-row {
    grid-template-columns: 22px 34px minmax(0, 1fr) minmax(52px, auto);
    gap: 8px;
    min-height: 64px;
    padding: 10px 8px;
  }

  .champion-row > span {
    font-size: 18px;
  }

  .champion-row .flag {
    width: 34px;
    height: 24px;
  }

  .champion-row strong {
    font-size: clamp(16px, 5vw, 20px);
  }

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

  .champion-probability {
    grid-column: 4;
    justify-items: end;
    min-width: 52px;
  }

  .champion-probability b {
    font-size: 20px;
  }

  .champion-probability em {
    font-size: 11px;
  }

  .team-row span:nth-child(2) {
    font-size: 22px;
  }

  .factor-row {
    grid-template-columns: 34px 1fr 48px 44px;
    gap: 10px;
  }

  .factor-row .bar-track {
    grid-column: 2 / -1;
  }
}

.user-page-shell {
  width: min(100%, 460px);
  padding: 14px 12px calc(100px + env(safe-area-inset-bottom));
}

.user-page-shell .portal-topbar {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: 4px;
}

.user-page-shell .portal-brand span {
  color: rgba(246, 255, 252, 0.96);
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.05;
  text-shadow: 0 0 14px rgba(51, 247, 255, 0.18);
}

.user-page-shell .portal-brand small {
  bottom: 1px;
  color: rgba(217, 241, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
}

.app-status-pill {
  align-self: start;
  max-width: 260px;
  padding: 7px 10px;
  border: 1px solid rgba(158, 255, 95, 0.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(158, 255, 95, 0.08);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}

.app-screen {
  display: grid;
  gap: 8px;
}

.app-screen-head {
  display: grid;
  padding: 0 2px;
}

.app-screen-head h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(21px, 6vw, 26px);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 0 rgba(0, 18, 92, 0.28), 0 0 18px rgba(51, 247, 255, 0.22);
}

.app-screen-stack {
  display: grid;
  gap: 8px;
  animation: app-screen-enter 180ms ease-out;
}

@keyframes app-screen-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .app-screen-stack {
    animation: none;
  }
}

.app-hero-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.app-match-summary {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(126, 255, 80, 0.34);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(126, 255, 80, 0.18), rgba(51, 247, 255, 0.08)),
    rgba(0, 62, 194, 0.74);
  text-decoration: none;
}

.app-match-summary span,
.app-match-summary small {
  color: rgba(217, 241, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.app-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.app-match-teams > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.app-match-teams > span:last-child {
  justify-content: flex-end;
}

.app-match-teams .flag {
  width: 30px;
  height: 20px;
}

.app-match-teams b,
.app-match-teams strong {
  color: #ffffff;
  font-size: clamp(22px, 6.8vw, 30px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.app-match-teams strong {
  color: rgba(255, 229, 76, 0.9);
}

.app-prediction-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.42fr);
  gap: 8px;
}

.app-main-outcome,
.app-score-chip {
  min-width: 0;
  border: 1px solid rgba(126, 255, 238, 0.18);
  border-radius: 8px;
  background: rgba(0, 42, 148, 0.48);
}

.app-main-outcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 5px 10px;
  min-height: 86px;
  padding: 11px 12px;
  border-color: color-mix(in srgb, currentColor 48%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, currentColor 22%, transparent), transparent 62%),
    rgba(0, 58, 180, 0.78);
  box-shadow: inset 0 0 22px color-mix(in srgb, currentColor 12%, transparent);
}

.app-main-outcome span,
.app-score-chip span {
  color: rgba(217, 241, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.app-main-outcome span {
  grid-column: 1 / -1;
}

.app-main-outcome strong {
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(22px, 6.6vw, 29px);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main-outcome b {
  color: currentColor;
  font-size: clamp(42px, 13vw, 56px);
  font-weight: 900;
  line-height: 0.86;
  text-align: right;
  white-space: nowrap;
}

.app-score-chip {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 10px 8px;
  border-color: rgba(255, 229, 76, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 229, 76, 0.16), transparent 64%),
    rgba(0, 48, 160, 0.56);
}

.app-score-chip strong {
  color: var(--gold);
  font-size: clamp(28px, 9vw, 38px);
  font-weight: 900;
  line-height: 0.94;
}

.app-score-chip em {
  color: rgba(217, 241, 255, 0.82);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.app-supporting-probs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.app-supporting-probs article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 36px;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(126, 255, 238, 0.14);
  border-radius: 7px;
  background: rgba(0, 42, 148, 0.32);
}

.app-supporting-probs span {
  overflow: hidden;
  color: rgba(217, 241, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-supporting-probs strong {
  color: currentColor;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.app-screen .compact-score-list {
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.app-screen .compact-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 32px;
  gap: 5px;
  padding: 6px 7px;
  border-color: rgba(126, 255, 238, 0.12);
  background: rgba(0, 42, 148, 0.26);
}

.compact-score-kicker {
  color: rgba(217, 241, 255, 0.64);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.app-screen .compact-score span {
  display: none;
}

.app-screen .compact-score strong {
  color: rgba(244, 255, 251, 0.9);
  font-size: 16px;
}

.app-screen .compact-score em {
  color: rgba(217, 241, 255, 0.68);
  font-size: 10px;
}

.app-mini-market {
  display: grid;
  gap: 7px;
}

.app-mini-market .section-title {
  margin-bottom: 0;
}

.app-mini-market .section-title::before,
.app-mini-market .section-title::after {
  height: 6px;
}

.app-screen .goal-market-grid.compact,
.forecast-screen .goal-market-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.app-screen .goal-market-card {
  min-height: 64px;
  padding: 6px 7px;
}

.app-screen .goal-market-card strong {
  font-size: clamp(18px, 5.8vw, 24px);
}

.app-screen .goal-market-card span,
.app-screen .goal-market-card small,
.app-screen .goal-market-card em {
  font-size: 10px;
  line-height: 1.15;
}

.user-method-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.user-method-panel article {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(126, 255, 238, 0.18);
  border-radius: 7px;
  background: rgba(0, 73, 188, 0.28);
}

.user-method-panel strong {
  color: var(--green);
  font-size: 15px;
  line-height: 1.1;
}

.user-method-panel span {
  color: rgba(232, 255, 252, 0.78);
  font-size: 12px;
  line-height: 1.3;
}

.model-method-panel {
  display: grid;
  gap: 12px;
}

.model-summary-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(46, 231, 255, 0.2);
  border-radius: 7px;
  background: rgba(46, 231, 255, 0.07);
}

.model-summary-strip b {
  color: var(--cyan);
  font-size: 14px;
  white-space: nowrap;
}

.model-summary-strip span {
  color: rgba(232, 255, 252, 0.82);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.app-bottom-nav {
  position: fixed;
  right: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - 18px), 440px);
  padding: 6px;
  border: 1px solid rgba(126, 255, 238, 0.42);
  border-radius: 20px;
  background: rgba(1, 35, 132, 0.96);
  box-shadow: 0 16px 50px rgba(0, 12, 70, 0.52), inset 0 0 28px rgba(126, 255, 238, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.app-bottom-nav button {
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 14px;
  color: rgba(217, 241, 255, 0.88);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 160ms ease, background 160ms ease, transform 120ms ease;
}

.app-bottom-nav button:active {
  transform: scale(0.96);
}

.app-bottom-nav button.active {
  color: #061c27;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 22px rgba(126, 255, 80, 0.22);
}

.app-bottom-nav button:focus-visible {
  outline: 3px solid rgba(255, 240, 90, 0.76);
  outline-offset: 2px;
}

.app-bottom-nav span {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.user-page-shell .console-panel {
  padding: 10px;
}

.user-page-shell .section-title {
  gap: 7px;
  margin-bottom: 8px;
}

.user-page-shell .section-title span {
  min-height: 20px;
  font-size: 13px;
}

.user-page-shell .analysis-list {
  gap: 6px;
  margin-top: 0;
}

.user-page-shell .analysis-list p {
  padding: 6px 8px;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.32;
  background: rgba(0, 44, 156, 0.5);
}

.user-page-shell .upcoming-list,
.user-page-shell .champion-list,
.user-page-shell .news-list {
  gap: 8px;
}

.user-page-shell .upcoming-row {
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 66px;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  border-color: rgba(51, 247, 255, 0.24);
  background: rgba(0, 54, 180, 0.66);
}

.user-page-shell .upcoming-teams {
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
  font-size: 14px;
}

.user-page-shell .upcoming-teams .flag {
  flex: 0 0 auto;
  width: 25px;
  height: 17px;
}

.user-page-shell .upcoming-teams b {
  font-size: 13px;
  text-align: center;
}

.user-page-shell .upcoming-teams span {
  gap: 4px;
}

.user-page-shell .upcoming-teams em {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
}

.user-page-shell .upcoming-copy strong {
  font-size: 13px;
  line-height: 1.15;
}

.user-page-shell .upcoming-copy small {
  margin-top: 3px;
  color: rgba(217, 241, 255, 0.86);
  font-size: 11px;
  line-height: 1.25;
}

.user-page-shell .upcoming-probs {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.user-page-shell .upcoming-probs em {
  min-height: 24px;
  color: var(--cyan);
  background: rgba(0, 24, 106, 0.18);
  font-size: 11px;
}

@media (max-width: 380px) {
  .user-page-shell .upcoming-row {
    grid-template-columns: 1fr;
  }

  .user-page-shell .upcoming-teams {
    width: min(100%, 180px);
  }
}

.user-page-shell .portal-standing-card .champion-row {
  min-height: 48px;
  padding: 7px 8px;
}

.user-page-shell .portal-standing-card .champion-row .flag {
  width: 28px;
  height: 19px;
}

.user-page-shell .portal-standing-card .champion-row strong {
  font-size: 14px;
}

.user-page-shell .portal-standing-card .champion-row small {
  font-size: 10px;
}

.user-page-shell .portal-standing-card .champion-probability b {
  font-size: 18px;
}

.user-page-shell .news-item {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 60px;
  padding: 8px;
}

.user-page-shell .news-item strong {
  font-size: 13px;
}

.user-page-shell .news-item p,
.user-page-shell .news-item small,
.user-page-shell .news-item em {
  font-size: 11px;
  line-height: 1.25;
}

.user-page-shell .news-item em {
  grid-column: auto;
  justify-self: end;
}

.user-page-shell .news-icon {
  width: 24px;
  height: 24px;
  font-size: 13px;
}

body:has(.champion-page-shell) {
  background: #020604;
}

.champion-page-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 10px max(22px, env(safe-area-inset-bottom));
  overflow: hidden;
  color: #f5f8ef;
  font-family:
    "DIN Alternate",
    "Arial Narrow",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 50% -4%, rgba(89, 152, 74, 0.24), transparent 35%),
    radial-gradient(circle at 82% 14%, rgba(93, 160, 75, 0.14), transparent 28%),
    linear-gradient(180deg, #06110a 0%, #020806 56%, #020604 100%);
}

.champion-page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16%),
    radial-gradient(ellipse at 50% 20%, rgba(105, 211, 104, 0.16), transparent 46%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.2));
}

.champion-page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, transparent 74%, rgba(0, 0, 0, 0.46) 100%);
  pointer-events: none;
}

.champion-page-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: start;
  min-height: 132px;
  padding-top: 26px;
}

.champion-page-header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(136, 216, 116, 0.2);
  border-radius: 50%;
  color: #f6f8ef;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.champion-page-header button:last-child {
  justify-self: end;
  color: rgba(245, 248, 239, 0.64);
}

.champion-page-header div {
  min-width: 0;
  text-align: center;
}

.champion-page-header h1 {
  margin: 2px 0 7px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

.champion-page-header p {
  margin: 0;
  color: rgba(245, 248, 239, 0.64);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.champion-pass-cta {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-height: 30px;
  margin: -22px auto 20px;
  padding: 0 13px;
  border: 1px solid rgba(122, 214, 93, 0.18);
  border-radius: 999px;
  color: #82de6f;
  background: rgba(38, 83, 31, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(16px);
}

.champion-snapshot-note {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: -10px auto 12px;
  padding: 7px 11px;
  border: 1px solid rgba(134, 216, 114, 0.18);
  border-radius: 999px;
  color: rgba(245, 248, 239, 0.68);
  background: rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.champion-board-page-card {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 171, 74, 0.32);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(14, 39, 20, 0.78), rgba(4, 18, 9, 0.74)),
    rgba(4, 19, 9, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
}

.champion-board-page-head,
.champion-board-page-row {
  display: grid;
  grid-template-columns: minmax(146px, 1fr) 48px 48px 48px 48px;
  align-items: center;
  column-gap: 5px;
}

.champion-board-page-head {
  min-height: 35px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(245, 248, 239, 0.66);
  font-size: 12px;
  font-weight: 650;
}

.champion-board-page-head span:not(:first-child) {
  text-align: right;
}

.champion-board-page-list {
  display: grid;
}

.champion-board-page-row {
  min-height: 58px;
  padding: 0 11px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.champion-board-page-row:last-child {
  border-bottom: 0;
}

.champion-board-team {
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.champion-board-team > b {
  color: rgba(245, 248, 239, 0.94);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.champion-board-team > b.podium {
  color: #f2c766;
}

.champion-board-team .flag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.28);
}

.champion-board-team .flag img {
  object-fit: cover;
}

.champion-board-team span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.champion-board-team strong {
  min-width: 0;
  overflow: hidden;
  color: #f7f8f0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-board-team em {
  color: rgba(245, 248, 239, 0.7);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.champion-board-page-row > strong {
  color: #79d36b;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.champion-change-badge {
  justify-self: end;
  display: grid;
  min-width: 43px;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(119, 216, 106, 0.18);
  border-radius: 7px;
  color: #80dc70;
  background: rgba(55, 107, 39, 0.38);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.champion-change-badge.negative {
  border-color: rgba(242, 99, 79, 0.24);
  color: #f2634f;
  background: rgba(112, 42, 31, 0.46);
}

.champion-page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 62px;
  margin: 18px -10px 0;
  border-top: 1px solid rgba(221, 177, 84, 0.22);
  color: rgba(245, 248, 239, 0.56);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}

@media (max-width: 430px) {
  .champion-page-shell {
    padding-right: 8px;
    padding-left: 8px;
  }

  .champion-page-header h1 {
    font-size: 24px;
  }

  .champion-board-page-head,
  .champion-board-page-row {
    grid-template-columns: minmax(126px, 1fr) 40px 40px 40px 40px;
    column-gap: 4px;
  }

  .champion-board-page-head {
    padding-right: 10px;
    padding-left: 11px;
    font-size: 11px;
  }

  .champion-board-page-row {
    min-height: 56px;
    padding-right: 8px;
    padding-left: 11px;
  }

  .champion-board-team {
    grid-template-columns: 19px 29px minmax(0, 1fr);
    gap: 6px;
  }

  .champion-board-team .flag {
    width: 29px;
    height: 29px;
  }

  .champion-board-team strong {
    font-size: 13px;
  }

  .champion-board-page-row > strong,
  .champion-change-badge {
    font-size: 13px;
  }

  .champion-change-badge {
    min-width: 38px;
    min-height: 26px;
  }
}

body:has(.public-match-shell) {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.55)),
    url("./app/stadium-bg-mobile-portrait.png") center center / cover fixed no-repeat,
    #030807;
}

.public-match-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  min-height: 100svh;
  height: 100svh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  color: #f7fff8;
  background:
    linear-gradient(180deg, rgba(2, 10, 6, 0.62) 0%, rgba(1, 8, 5, 0.9) 44%, rgba(1, 6, 4, 0.98) 100%),
    rgba(3, 8, 6, 0.88);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.42);
}

.public-match-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(1, 8, 4, 0.12) 0%, rgba(1, 12, 6, 0.72) 50%, rgba(1, 6, 4, 0.98) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.64) 0%, transparent 34%, transparent 66%, rgba(0, 0, 0, 0.62) 100%),
    url("./app/stadium-bg-mobile-portrait.png") center top / cover no-repeat;
}

.public-match-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(119, 232, 104, 0.1), transparent 28%),
    radial-gradient(circle at 50% 18%, rgba(255, 226, 140, 0.14), transparent 34%);
  opacity: 0.9;
}

.public-match-app {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-height: 0;
}

.public-match-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 178px);
  align-items: start;
  gap: 8px;
  min-height: 56px;
}

.public-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #f6cf77;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(152, 101, 34, 0.92), rgba(255, 225, 133, 0.74));
  box-shadow: 0 12px 28px rgba(201, 147, 60, 0.24), inset 0 0 0 1px rgba(255, 245, 197, 0.28);
}

.public-brand-mark svg {
  width: 21px;
  height: 21px;
}

.public-brand-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.public-brand-copy strong {
  color: #ffffff;
  font-size: clamp(27px, 8vw, 36px);
  font-weight: 900;
  line-height: 0.96;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.public-brand-copy span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  color: #9bdc8f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.public-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
}

.public-page-title > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.public-page-title i {
  flex: 0 0 auto;
  width: 4px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dff83, #47d769);
  box-shadow: 0 0 18px rgba(91, 231, 106, 0.38);
}

.public-page-title h1 {
  margin: 0;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.public-updated-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid rgba(111, 235, 105, 0.42);
  border-radius: 999px;
  color: #9cf286;
  background: rgba(13, 49, 18, 0.62);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 18px rgba(100, 231, 104, 0.09);
}

.account-access-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(126, 233, 119, 0.22);
  border-radius: 12px;
  color: #f7fff5;
  background:
    linear-gradient(115deg, rgba(9, 43, 18, 0.72), rgba(4, 18, 10, 0.78)),
    rgba(5, 20, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.account-access-panel.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
}

.account-access-title,
.account-access-status {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-access-title strong,
.account-access-status strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

.account-access-title span,
.account-access-status small {
  color: rgba(229, 255, 225, 0.68);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.account-access-status > span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(241, 199, 106, 0.32);
  border-radius: 999px;
  color: #f4d077;
  background: rgba(52, 35, 8, 0.38);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.account-access-status > span.paid {
  border-color: rgba(126, 233, 119, 0.38);
  color: #9ff08e;
  background: rgba(15, 70, 24, 0.38);
}

.account-access-panel > button,
.account-access-form button,
.account-mode-tabs button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.account-access-panel > button {
  align-self: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(247, 247, 240, 0.14);
  border-radius: 8px;
  color: rgba(247, 247, 240, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 750;
}

.account-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.account-mode-tabs button {
  min-height: 32px;
  border-radius: 8px;
  color: rgba(247, 247, 240, 0.7);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.account-mode-tabs button.active {
  color: #10240f;
  background: #95e67f;
}

.account-access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.account-access-form input {
  width: 100%;
  min-height: 38px;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid rgba(247, 247, 240, 0.14);
  border-radius: 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

.account-access-form input::placeholder {
  color: rgba(247, 247, 240, 0.44);
}

.account-access-form button {
  min-height: 40px;
  border-radius: 9px;
  color: #0f1d0c;
  background: linear-gradient(180deg, #f6df91, #e1b753);
  font-size: 13px;
  font-weight: 850;
}

.account-access-form button:disabled {
  opacity: 0.62;
}

.account-access-message {
  margin: 0;
  color: rgba(247, 247, 240, 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.referral-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(243, 200, 85, 0.38);
  border-radius: 12px;
  color: #fff8dc;
  background:
    linear-gradient(110deg, rgba(243, 200, 85, 0.18), rgba(8, 42, 20, 0.76)),
    rgba(7, 24, 12, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.referral-entry-card div,
.referral-share-copy,
.referral-withdraw-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.referral-entry-card span,
.referral-share-copy span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #ffe18b;
  font-size: 12px;
  font-weight: 900;
}

.referral-entry-card strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
}

.referral-entry-card small {
  color: rgba(255, 248, 220, 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.referral-entry-card button,
.referral-share-copy button,
.referral-status-card button,
.referral-withdraw-card button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.referral-entry-card button,
.referral-share-copy button,
.referral-status-card button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: #171104;
  background: linear-gradient(180deg, #fff1a8, #e3b84f);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.referral-center-shell {
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  min-height: 100vh;
  padding: max(22px, env(safe-area-inset-top)) 12px 28px;
  color: #f7fff5;
  background: #020806;
}

.referral-center-page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  box-sizing: border-box;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 10px;
}

.referral-center-page > * {
  min-width: 0;
  max-width: 100%;
}

.referral-center-page .account-access-panel {
  box-sizing: border-box;
  width: 100%;
}

.referral-status-card,
.referral-share-card,
.referral-withdraw-card,
.referral-history-grid > article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(126, 233, 119, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(243, 200, 85, 0.08), transparent 44%),
    rgba(4, 24, 12, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.referral-status-card {
  display: grid;
  gap: 10px;
}

.referral-status-card strong,
.referral-withdraw-card strong,
.referral-history-grid strong {
  color: #ffffff;
  font-size: 18px;
}

.referral-status-card p,
.referral-withdraw-card span,
.referral-history-grid p,
.referral-share-copy p {
  margin: 0;
  color: rgba(247, 247, 240, 0.7);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.referral-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
  border-color: rgba(243, 200, 85, 0.42);
}

.referral-share-copy strong {
  color: #fff8d8;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.05;
}

.referral-share-copy p {
  overflow-wrap: anywhere;
}

.referral-share-card img {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: 14px;
  background: #fff8dc;
  object-fit: contain;
}

.referral-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.referral-metrics-grid article {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(243, 200, 85, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.referral-metrics-grid span {
  color: rgba(247, 247, 240, 0.66);
  font-size: 12px;
  font-weight: 850;
}

.referral-metrics-grid strong {
  color: #f5d270;
  font-size: 27px;
  line-height: 1;
}

.referral-withdraw-card {
  display: grid;
  gap: 12px;
}

.referral-withdraw-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) auto;
  gap: 10px;
}

.referral-withdraw-card input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(247, 247, 240, 0.14);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.referral-withdraw-card input::placeholder {
  color: rgba(247, 247, 240, 0.45);
}

.referral-withdraw-card button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  color: #171104;
  background: linear-gradient(180deg, #fff1a8, #e3b84f);
  font-size: 13px;
  font-weight: 900;
}

.referral-withdraw-card button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

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

.referral-history-grid > article {
  display: grid;
  gap: 9px;
}

.referral-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(247, 247, 240, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.referral-history-row span {
  overflow: hidden;
  color: rgba(247, 247, 240, 0.72);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-history-row b {
  color: #f5d270;
  font-size: 13px;
}

.referral-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(126, 233, 119, 0.25);
  border-radius: 12px;
  color: #dfffd9;
  background: rgba(13, 49, 18, 0.52);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.world-cup-ad-card {
  display: block;
  min-width: 0;
}

.world-cup-ad-card.home {
  margin: 2px 0 0;
}

.world-cup-ad-card.match {
  margin: 4px 0 8px;
}

.world-cup-ad-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(243, 200, 107, 0.34);
  border-radius: 12px;
  background: rgba(5, 18, 10, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.world-cup-ad-banner {
  display: block;
  width: 100%;
  height: auto;
}

.world-cup-ad-qr-code {
  position: absolute;
  top: 12%;
  right: 8.6%;
  z-index: 1;
  display: block;
  width: clamp(102px, 28%, 184px);
  height: auto;
  padding: 4px;
  border: 1px solid rgba(231, 194, 109, 0.56);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(48, 34, 10, 0.12);
}

.group-discussion-floating-entry {
  position: fixed;
  top: max(12px, calc(env(safe-area-inset-top) + 12px));
  right: max(10px, calc(env(safe-area-inset-right) + 10px));
  z-index: 90;
  max-width: min(168px, calc(100vw - 20px));
  pointer-events: none;
}

.group-discussion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(247, 206, 108, 0.78);
  border-radius: 999px;
  color: #251704;
  background: linear-gradient(135deg, #fff2ac 0%, #f0c35d 62%, #b97822 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

.group-discussion-button svg {
  flex: 0 0 auto;
  color: #1d4f25;
}

.group-discussion-button.compact {
  min-height: 34px;
  max-width: 160px;
  padding: 0 9px;
  font-size: 11px;
}

.group-discussion-button.compact span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-header-actions {
  display: grid;
  align-content: start;
  justify-items: stretch;
  min-width: 0;
  gap: 6px;
}

.public-header-group-button {
  width: 100%;
  max-width: 178px;
  justify-self: end;
}

.public-header-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 4px;
}

.public-header-action {
  display: grid;
  width: 100%;
  min-height: 44px;
  place-items: center;
  padding: 5px 3px;
  border: 1px solid rgba(212, 255, 205, 0.16);
  border-radius: 8px;
  color: #f4fff1;
  background: rgba(8, 32, 15, 0.56);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.public-header-action.champion {
  color: #f4cf76;
}

.public-header-action span {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.public-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: center;
  padding: max(58px, calc(env(safe-area-inset-top) + 58px)) 14px 0;
  background: rgba(0, 0, 0, 0.28);
}

.public-menu-sheet {
  display: grid;
  width: min(100%, 402px);
  gap: 8px;
  align-self: start;
  padding: 10px;
  border: 1px solid rgba(217, 255, 211, 0.18);
  border-radius: 10px;
  background: rgba(5, 17, 9, 0.96);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.46), inset 0 0 24px rgba(117, 213, 111, 0.06);
  backdrop-filter: blur(18px);
}

.public-menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.public-menu-sheet button {
  min-height: 38px;
  border: 1px solid rgba(217, 255, 211, 0.12);
  border-radius: 8px;
  color: #f7fff8;
  background: rgba(13, 38, 20, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.public-menu-title button {
  min-height: 28px;
  padding: 0 10px;
  color: rgba(238, 255, 235, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.public-match-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 255, 211, 0.14);
  border-radius: 8px;
  background: rgba(4, 20, 9, 0.68);
  backdrop-filter: blur(14px);
}

.public-match-tabs button {
  min-height: 36px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  color: rgba(236, 255, 232, 0.72);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.public-match-tabs button:last-child {
  border-right: 0;
}

.public-match-tabs button.active {
  color: #f7fff8;
  background: linear-gradient(135deg, rgba(74, 139, 76, 0.98), rgba(57, 113, 61, 0.92));
  box-shadow: inset 0 0 18px rgba(137, 230, 120, 0.18);
}

.public-match-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 0 1px 4px;
  scrollbar-width: none;
}

.public-match-list::-webkit-scrollbar {
  display: none;
}

.public-finished-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid rgba(241, 199, 106, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(45, 34, 12, 0.54), rgba(5, 18, 10, 0.76)),
    rgba(8, 24, 12, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.public-finished-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.public-finished-title strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.public-finished-title span {
  color: #f1c76a;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.public-finished-list {
  display: grid;
  gap: 8px;
}

.public-finished-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(2, 11, 6, 0.54);
}

.public-finished-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(247, 255, 248, 0.58);
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.1;
}

.public-finished-meta em {
  font-style: normal;
}

.public-finished-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.public-finished-score > div {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.public-finished-score .flag {
  width: 30px;
  height: 30px;
}

.public-finished-score strong {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-finished-score > b {
  color: #f3d887;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.public-finished-replay {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.public-finished-status {
  width: fit-content;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #10190d;
  background: #f1c76a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.public-finished-status.score,
.public-finished-status.hit {
  background: #8ee67a;
}

.public-finished-status.miss {
  color: #fff5df;
  background: #a96a31;
}

.public-finished-replay p,
.public-finished-replay small {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-finished-replay p {
  color: rgba(247, 255, 248, 0.88);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}

.public-finished-replay small {
  color: rgba(247, 255, 248, 0.6);
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.3;
}

.admin-finished-card .public-finished-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-finished-card .public-finished-title strong {
  font-size: 18px;
}

.admin-finished-card .public-finished-list {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.public-match-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 90px;
  padding: 8px 7px 8px 9px;
  border: 1px solid rgba(111, 224, 101, 0.38);
  border-radius: 8px;
  color: inherit;
  background:
    radial-gradient(circle at 22% 24%, rgba(103, 221, 95, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(20, 74, 28, 0.72), rgba(4, 17, 10, 0.84));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 0 24px rgba(111, 224, 101, 0.06);
  text-align: left;
  backdrop-filter: blur(18px);
}

.public-match-info {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 5px;
}

.public-match-info strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.public-match-info span,
.public-match-info em {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  color: #95ec8d;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-match-info em {
  color: rgba(173, 246, 163, 0.78);
  font-size: 9.5px;
}

.public-match-info em svg {
  width: 11px;
  height: 11px;
}

.model-update-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  overflow: hidden;
  color: rgba(239, 255, 235, 0.72);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-update-badge svg {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  color: #f3c86b;
}

.model-update-badge.finished {
  width: fit-content;
  color: rgba(247, 255, 248, 0.66);
}

.model-update-badge.card-wide {
  grid-column: 1 / -1;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin-top: -1px;
  padding: 3px 7px;
  border: 1px solid rgba(243, 200, 107, 0.28);
  border-radius: 999px;
  background: rgba(243, 200, 107, 0.1);
  color: #f3d887;
  font-size: 10px;
}

.model-update-badge.locked,
.model-update-badge.unlocked {
  justify-content: center;
  color: #f3d887;
}

.public-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.public-match-teams > div {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 3px;
}

.public-match-teams .flag {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.public-match-teams strong {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-match-teams b {
  color: #f3cf73;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.public-match-action {
  display: grid;
  justify-items: stretch;
  gap: 5px;
  min-width: 0;
  padding-top: 0;
  border-top: 0;
}

.public-match-action > small {
  justify-self: center;
  padding: 3px 7px;
  border: 1px solid rgba(111, 235, 105, 0.34);
  border-radius: 999px;
  color: #9cf286;
  background: rgba(20, 73, 25, 0.56);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.public-match-action strong {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 2px;
  color: rgba(245, 255, 241, 0.68);
  font-size: 9.8px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.public-match-action strong svg {
  display: none;
}

.public-match-action strong > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.public-match-action strong b {
  display: block;
  max-width: 68px;
  overflow: hidden;
  color: #ffffff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-match-action > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  gap: 2px;
  padding: 5px 7px;
  border: 1px solid rgba(245, 207, 117, 0.74);
  border-radius: 7px;
  color: #f6cf77;
  background: rgba(14, 20, 11, 0.52);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.public-match-empty {
  margin: 18px 0 0;
  padding: 18px 12px;
  border: 1px solid rgba(217, 255, 211, 0.14);
  border-radius: 8px;
  color: rgba(238, 255, 235, 0.76);
  background: rgba(5, 19, 9, 0.7);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.public-home-action-dock {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  width: min(100%, 430px);
  gap: 7px;
  padding: 8px 12px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(217, 255, 211, 0.12);
  background:
    linear-gradient(180deg, rgba(6, 18, 10, 0.72), rgba(2, 8, 5, 0.96) 42%),
    rgba(3, 9, 6, 0.94);
  box-shadow: 0 -18px 52px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.public-home-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 8px;
}

.public-home-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.public-home-action.primary {
  border: 1px solid rgba(255, 239, 185, 0.74);
  color: #1b1204;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(145deg, #fff0bd, #d2a34d);
  box-shadow: 0 15px 34px rgba(194, 144, 57, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.public-home-action.secondary {
  border: 1px solid rgba(245, 207, 117, 0.72);
  color: #f6cf77;
  background: rgba(8, 16, 9, 0.74);
  box-shadow: inset 0 0 18px rgba(245, 207, 117, 0.06);
}

.public-home-action svg {
  width: 24px;
  height: 24px;
}

.public-home-action span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.public-home-action strong,
.public-home-action small {
  min-width: 0;
  overflow: hidden;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-home-action strong {
  font-size: 14px;
  font-weight: 900;
}

.public-home-action small {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.82;
}

.public-safety-footer {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(237, 255, 234, 0.62);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .public-match-shell {
    padding-inline: 10px;
  }

  .public-match-card {
    grid-template-columns: 58px minmax(0, 1fr) 70px;
    min-height: 84px;
    gap: 5px;
    padding-inline: 7px;
  }

  .public-brand-copy strong {
    font-size: 26px;
  }

  .public-match-header {
    grid-template-columns: minmax(0, 1fr) minmax(124px, 144px);
    gap: 6px;
  }

  .public-header-group-button {
    max-width: 144px;
  }

  .group-discussion-button.compact {
    max-width: 144px;
    font-size: 10px;
  }

  .public-header-action {
    min-height: 40px;
  }

  .public-updated-pill {
    padding-inline: 8px;
    font-size: 10px;
  }

  .public-updated-pill svg {
    display: none;
  }

  .public-match-info strong {
    font-size: 15px;
  }

  .public-match-info span,
  .public-match-info em {
    font-size: 9px;
  }

  .public-match-teams .flag {
    width: 32px;
    height: 32px;
  }

  .public-match-teams strong {
    font-size: 12px;
  }

  .public-match-action {
    gap: 4px;
  }

  .public-match-action > small,
  .public-match-action strong {
    font-size: 9px;
  }

  .public-match-action > span {
    min-height: 26px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .public-home-action {
    min-height: 54px;
    gap: 7px;
    padding: 8px;
  }

  .public-home-action strong {
    font-size: 13px;
  }

  .public-home-action small {
    font-size: 10px;
  }
}

body:has(.locked-match-shell) {
  background: #020806;
}

.locked-match-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  min-height: 100svh;
  height: 100svh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 14px calc(95px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: hidden;
  color: #f7fbf4;
  background: #020806;
  font-family:
    "DIN Alternate",
    "Arial Narrow",
    "Roboto Condensed",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

.locked-match-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(1, 7, 5, 0.28) 0%, rgba(2, 8, 6, 0.42) 44%, rgba(2, 8, 6, 0.94) 100%),
    url("./app/match-locked-stadium-bg-mobile-portrait.png") center top / cover no-repeat;
  pointer-events: none;
}

.locked-match-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.36)),
    linear-gradient(180deg, transparent 0%, rgba(2, 8, 6, 0.18) 30%, rgba(2, 8, 6, 0.84) 100%);
  pointer-events: none;
}

.locked-match-nav {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}

.locked-match-nav button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #f7fbf4;
  background: rgba(7, 17, 11, 0.52);
  box-shadow: inset 0 0 18px rgba(117, 213, 111, 0.08);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.locked-match-nav span {
  overflow: hidden;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(117, 213, 111, 0.2);
}

.locked-match-hero {
  display: grid;
  gap: 8px;
  padding: 6px 0 7px;
}

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

.locked-team {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 5px;
}

.locked-team strong {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locked-team-emblem {
  display: grid;
  width: clamp(42px, 12.2vw, 52px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.locked-team-emblem .flag {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.locked-teams > b {
  color: #f3c86b;
  font-size: clamp(25px, 7vw, 31px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 18px rgba(243, 200, 107, 0.24);
}

.locked-match-meta {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.locked-match-meta span {
  max-width: 100%;
  min-height: 27px;
  padding: 5px 13px;
  border: 1px solid rgba(117, 213, 111, 0.25);
  border-radius: 999px;
  color: #8eea7e;
  background: rgba(29, 80, 38, 0.56);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.locked-match-meta em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  gap: 5px;
  color: rgba(247, 251, 244, 0.78);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.locked-match-meta em:last-child {
  color: #75d56f;
}

.locked-match-meta .model-update-badge.locked {
  color: #f3d887;
}

.locked-match-stack {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding-bottom: 0;
  overflow: visible;
}

.locked-panel {
  border: 1px solid rgba(117, 213, 111, 0.34);
  border-radius: 14px;
  background: rgba(7, 17, 11, 0.78);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), inset 0 0 28px rgba(117, 213, 111, 0.05);
  backdrop-filter: blur(18px);
}

.locked-free-card {
  display: grid;
  gap: 8px;
  padding: 10px 9px;
}

.locked-depth-card {
  display: grid;
  gap: 8px;
  border-color: rgba(243, 200, 107, 0.42);
  padding: 10px 9px;
  background: rgba(9, 12, 10, 0.82);
}

.locked-section-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #75d56f;
}

.locked-section-heading.gold {
  color: #f3c86b;
}

.locked-section-heading div {
  min-width: 0;
}

.locked-section-heading strong {
  display: block;
  color: currentColor;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.locked-section-heading span {
  display: block;
  margin-top: 4px;
  color: rgba(247, 251, 244, 0.74);
  font-size: 12px;
  line-height: 1.25;
}

.locked-section-heading em {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(117, 213, 111, 0.24);
  border-radius: 999px;
  color: currentColor;
  background: rgba(117, 213, 111, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.locked-section-heading.gold em {
  border-color: rgba(243, 200, 107, 0.28);
  background: rgba(243, 200, 107, 0.12);
}

.locked-free-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.locked-free-metric {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  gap: 3px 8px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #75d56f;
  background: rgba(5, 12, 8, 0.64);
  box-shadow: inset 0 0 18px rgba(117, 213, 111, 0.04);
}

.locked-free-metric > svg {
  grid-row: 1 / span 2;
}

.locked-free-metric span {
  color: rgba(247, 251, 244, 0.58);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.locked-free-metric strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.locked-free-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 6px;
  margin: 0;
  color: rgba(247, 251, 244, 0.58);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.locked-free-note svg {
  flex: 0 0 auto;
  color: rgba(247, 251, 244, 0.52);
}

.locked-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.locked-depth-tile {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 48px;
  place-items: center;
  gap: 4px;
  padding: 6px 5px 5px;
  border: 1px solid rgba(243, 200, 107, 0.25);
  border-radius: 9px;
  color: #f3c86b;
  background: rgba(7, 17, 11, 0.58);
  box-shadow: inset 0 0 16px rgba(243, 200, 107, 0.06);
  text-align: center;
}

.locked-depth-tile > svg:first-child {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #f3c86b;
  width: 12px;
  height: 12px;
}

.locked-depth-tile > svg:nth-child(2) {
  color: #f3c86b;
  width: 19px;
  height: 19px;
}

.locked-depth-tile strong {
  overflow-wrap: anywhere;
  color: rgba(247, 251, 244, 0.78);
  font-size: 9.8px;
  font-weight: 900;
  line-height: 1.15;
}

.locked-inline-message {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(243, 200, 107, 0.28);
  border-radius: 12px;
  color: #f7df9f;
  background: rgba(9, 12, 10, 0.68);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.locked-purchase-bar {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  width: min(100%, 430px);
  padding: 8px 14px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(4, 15, 8, 0.56), rgba(2, 8, 6, 0.96) 36%),
    rgba(2, 8, 6, 0.94);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.locked-purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.locked-buy-button {
  position: relative;
  display: grid;
  align-content: center;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  gap: 3px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.locked-buy-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.locked-buy-button.primary {
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 6px;
  border: 1px solid rgba(255, 232, 165, 0.92);
  color: #301d02;
  background: linear-gradient(135deg, #fff3bf 0%, #f3c86b 55%, #d9a03e 100%);
  box-shadow: 0 12px 30px rgba(243, 200, 107, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.locked-buy-button.primary span {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #6a4b12;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 18px rgba(121, 79, 7, 0.12);
}

.locked-buy-button.pass {
  grid-template-columns: minmax(0, 1fr) 28px;
  column-gap: 6px;
  border: 1px solid rgba(243, 200, 107, 0.72);
  color: #f7df9f;
  background: rgba(9, 12, 10, 0.88);
  box-shadow: inset 0 0 28px rgba(243, 200, 107, 0.08);
}

.locked-buy-button.pass svg {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  color: #f3c86b;
}

.locked-buy-button.primary strong,
.locked-buy-button.primary small {
  grid-column: 2;
  justify-self: start;
  text-align: left;
}

.locked-buy-button.pass strong,
.locked-buy-button.pass small {
  grid-column: 1;
}

.locked-buy-button strong {
  min-width: 0;
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.locked-buy-button small {
  min-width: 0;
  color: currentColor;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.82;
  white-space: nowrap;
}

.locked-safety-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  color: rgba(247, 251, 244, 0.48);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 520px) {
  .locked-match-shell {
    width: min(100%, 414px);
    margin: 0;
    padding: max(8px, env(safe-area-inset-top)) 14px calc(90px + env(safe-area-inset-bottom));
  }

  .locked-match-nav {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: 36px;
  }

  .locked-match-nav button {
    width: 36px;
    height: 36px;
  }

  .locked-match-nav span {
    font-size: 17px;
  }

  .locked-match-hero {
    gap: 7px;
    padding: 5px 0;
  }

  .locked-team {
    gap: 4px;
  }

  .locked-team-emblem {
    width: clamp(40px, 12.5vw, 50px);
  }

  .locked-team strong {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  .locked-teams > b {
    font-size: clamp(20px, 5.8vw, 25px);
  }

  .locked-match-meta {
    gap: 4px;
  }

  .locked-match-meta span {
    min-height: 22px;
    padding: 4px 10px;
    font-size: 12px;
  }

  .locked-match-meta em {
    font-size: 11px;
  }

  .locked-match-stack {
    gap: 7px;
    padding-bottom: 0;
  }

  .locked-free-card,
  .locked-depth-card {
    gap: 7px;
    padding: 9px 8px;
  }

  .locked-section-heading {
    gap: 7px;
  }

  .locked-section-heading > svg {
    width: 19px;
    height: 19px;
  }

  .locked-section-heading strong {
    font-size: 16px;
  }

  .locked-section-heading span {
    margin-top: 2px;
    font-size: 10.5px;
  }

  .locked-free-list {
    gap: 5px;
  }

  .locked-section-heading em {
    padding: 5px 8px;
    font-size: 10px;
  }

  .locked-free-metric {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 48px;
    gap: 3px 7px;
    padding: 6px 7px;
  }

  .locked-free-metric > svg {
    width: 19px;
    height: 19px;
  }

  .locked-free-metric span {
    font-size: 10px;
  }

  .locked-free-metric strong {
    font-size: 12px;
  }

  .locked-free-note {
    font-size: 10px;
  }

  .locked-depth-grid {
    gap: 5px;
  }

  .locked-depth-tile {
    min-height: 45px;
    padding: 6px 5px 5px;
  }

  .locked-depth-tile > svg:first-child {
    width: 13px;
    height: 13px;
    top: 6px;
    right: 6px;
  }

  .locked-depth-tile > svg:nth-child(2) {
    width: 18px;
    height: 18px;
  }

  .locked-depth-tile strong {
    font-size: 9px;
  }

  .locked-purchase-bar {
    position: fixed;
    right: auto;
    left: 0;
    bottom: 0;
    width: min(100%, 414px);
    gap: 5px;
    padding: 7px 14px max(7px, env(safe-area-inset-bottom));
    transform: none;
  }

  .locked-purchase-actions {
    gap: 7px;
  }

  .locked-buy-button {
    min-height: 54px;
    gap: 2px;
    padding: 6px;
  }

  .locked-buy-button.primary {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .locked-buy-button.primary span {
    width: 27px;
  }

  .locked-buy-button.pass {
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .locked-buy-button.pass svg {
    width: 18px;
    height: 18px;
  }

  .locked-buy-button strong {
    font-size: 12px;
  }

  .locked-buy-button small {
    font-size: 8.8px;
  }

  .locked-safety-footer {
    flex: 0 0 auto;
    padding-top: 0;
    font-size: 9.5px;
  }
}

@media (max-width: 430px) {
  .locked-match-shell,
  .locked-purchase-bar {
    width: 100%;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .locked-match-hero {
    padding: 5px 0;
  }

  .locked-match-meta em {
    display: none;
  }

  .locked-section-heading span {
    display: none;
  }

  .locked-free-card,
  .locked-depth-card {
    padding: 7px;
  }

  .locked-free-metric {
    min-height: 42px;
  }

  .locked-buy-button {
    min-height: 50px;
  }

  .locked-free-note {
    display: none;
  }
}

@media (min-width: 700px) {
  .locked-match-shell {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.52);
  }
}

@media (max-width: 380px) {
  .locked-match-shell {
    padding-inline: 14px;
  }

  .locked-purchase-bar {
    position: fixed;
  }

  .locked-purchase-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

body:has(.match-unlocked-shell) {
  background: #020806;
}

.match-unlocked-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  color: #f7f8ef;
  background: #020806;
  font-family:
    "DIN Alternate",
    "Arial Narrow",
    "Roboto Condensed",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

.match-unlocked-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 8, 6, 0.24) 0%, rgba(2, 8, 6, 0.52) 44%, rgba(2, 8, 6, 0.96) 100%),
    url("./app/unlocked-match-bg-mobile-portrait.png") center top / cover no-repeat;
  pointer-events: none;
}

.match-unlocked-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 70% 1%, rgba(243, 200, 107, 0.16), transparent 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.unlocked-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.unlocked-header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #f7f8ef;
  background: rgba(10, 31, 16, 0.62);
  box-shadow: inset 0 0 18px rgba(123, 214, 111, 0.08);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.unlocked-header button svg {
  width: 19px;
  height: 19px;
}

.unlocked-header > strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid rgba(243, 200, 107, 0.76);
  border-radius: 12px;
  color: #2b1b03;
  background: linear-gradient(135deg, #fff0ac, #f3c86b 62%, #c98a2c);
  box-shadow: 0 12px 28px rgba(243, 200, 107, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.unlock-badge svg {
  width: 12px;
  height: 12px;
}

.unlocked-match-hero {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  align-items: start;
  gap: 6px;
  padding: 13px 0 14px;
}

.unlocked-team-mark {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 6px;
}

.unlocked-team-mark > span:last-child {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-flag-frame {
  display: grid;
  width: 52px;
  height: 47px;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.unlocked-flag-frame .flag {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

.unlocked-versus {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 8px;
}

.unlocked-versus h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  gap: 7px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(21px, 6.1vw, 28px);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.34);
}

.unlocked-versus h1 span {
  color: #f3c86b;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.unlocked-versus div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.unlocked-versus div span {
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(123, 214, 111, 0.25);
  border-radius: 999px;
  color: #a9f19a;
  background: rgba(23, 71, 30, 0.58);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.unlocked-panel {
  display: grid;
  gap: 9px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(143, 214, 128, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7, 25, 12, 0.82), rgba(3, 12, 7, 0.82)),
    rgba(5, 18, 10, 0.76);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), inset 0 0 24px rgba(123, 214, 111, 0.04);
  backdrop-filter: blur(16px);
}

.unlocked-panel h2 {
  margin: 0;
  color: #f7f8ef;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.unlocked-probability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.unlocked-probability {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.unlocked-probability span {
  overflow: hidden;
  color: rgba(247, 248, 239, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-probability strong {
  font-size: clamp(22px, 6.2vw, 29px);
  font-weight: 950;
  line-height: 0.95;
}

.unlocked-probability.home strong {
  color: #ff9a3d;
}

.unlocked-probability.draw strong {
  color: #f0f2e8;
}

.unlocked-probability.away strong {
  color: #5d8dff;
}

.unlocked-probability i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.unlocked-probability i::before {
  content: "";
  display: block;
  width: calc(var(--value) * 1%);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.unlocked-probability.home i {
  color: #ff9a3d;
}

.unlocked-probability.draw i {
  color: #d9ded3;
}

.unlocked-probability.away i {
  color: #5d8dff;
}

.unlocked-outcome-lean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  margin: -2px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 226, 139, 0.72);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 224, 0.74), transparent 34%),
    linear-gradient(135deg, #fff2aa 0%, #f6cf67 42%, #c4912d 100%);
  color: #281804;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24), inset 0 0 18px rgba(255, 255, 255, 0.24);
}

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

.outcome-lean-team strong {
  min-width: 0;
  overflow: hidden;
  color: #231405;
  font-size: clamp(18px, 5.4vw, 24px);
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-lean-flag {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 16px rgba(72, 43, 4, 0.2);
}

.outcome-lean-flag .flag {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.outcome-lean-flags {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 54px;
}

.outcome-lean-flags .outcome-lean-flag + .outcome-lean-flag {
  margin-left: -13px;
}

.outcome-lean-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.unlocked-outcome-lean em {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff9dc;
  background: rgba(34, 20, 4, 0.86);
  font-size: 20px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 12px rgba(255, 226, 139, 0.14);
}

.unlocked-outcome-lean.draw-watch em:last-child,
.unlocked-outcome-lean.draw em {
  color: #221404;
  background: rgba(255, 249, 223, 0.88);
}

.unlocked-score-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 8px;
}

.unlocked-score-layout.lower {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.unlocked-score-layout.score-matrix-only {
  grid-template-columns: minmax(0, 1fr);
}

.score-top-prominent {
  gap: 12px;
  padding: 14px;
  border-color: rgba(244, 204, 118, 0.48);
  background:
    linear-gradient(145deg, rgba(39, 29, 6, 0.92), rgba(5, 22, 11, 0.9) 56%, rgba(5, 18, 10, 0.86)),
    rgba(12, 36, 16, 0.88);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), inset 0 0 34px rgba(244, 204, 118, 0.08);
}

.score-top-prominent h2 {
  color: #fff6cf;
  font-size: clamp(23px, 7vw, 34px);
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(244, 204, 118, 0.2);
}

.unlocked-score-top-list {
  display: grid;
  gap: 8px;
}

.unlocked-score-top-list article {
  display: grid;
  grid-template-columns: 21px minmax(36px, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.unlocked-score-top-list span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #1b1303;
  background: #f3c86b;
  font-size: 10px;
  font-weight: 950;
}

.unlocked-score-top-list strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.unlocked-score-top-list em {
  color: rgba(247, 248, 239, 0.88);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.score-top-prominent .unlocked-score-top-list {
  gap: 10px;
}

.score-top-prominent .unlocked-score-top-list article {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 204, 118, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.score-top-prominent .unlocked-score-top-list strong {
  font-size: 18px;
}

.score-top-prominent .unlocked-score-top-list em {
  font-size: 13px;
}

.unlocked-score-matrix {
  display: grid;
  grid-template-columns: repeat(var(--matrix-columns), minmax(0, 1fr));
  gap: 2px;
}

.matrix-muted,
.unlocked-score-cell {
  display: grid;
  min-height: 18px;
  place-items: center;
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1;
}

.matrix-muted {
  color: rgba(247, 248, 239, 0.7);
}

.unlocked-score-cell {
  color: #f8fff5;
  background:
    linear-gradient(rgba(123, 214, 111, var(--heat-alpha)), rgba(123, 214, 111, var(--heat-alpha))),
    rgba(5, 18, 10, 0.62);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
}

.unlocked-score-layout.risk {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.unlocked-score-layout.meaning {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.unlocked-meaning-field,
.unlocked-reflective-judgment {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.unlocked-meaning-field > strong,
.unlocked-reflective-judgment > div > strong {
  min-width: 0;
  overflow-wrap: break-word;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.unlocked-meaning-field p,
.unlocked-reflective-judgment p {
  margin: 0;
  color: rgba(247, 248, 239, 0.78);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.4;
}

.unlocked-probability-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: rgba(247, 248, 239, 0.7);
}

.unlocked-probability-shift span {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(5, 18, 10, 0.36);
  color: rgba(247, 248, 239, 0.82);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.unlocked-probability-shift svg {
  color: rgba(243, 200, 107, 0.84);
  justify-self: center;
}

.unlocked-meaning-field section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.unlocked-meaning-field article,
.unlocked-reflective-judgment article {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(5, 18, 10, 0.34);
}

.unlocked-meaning-field article span,
.unlocked-reflective-judgment article span {
  min-width: 0;
  overflow: hidden;
  color: rgba(247, 248, 239, 0.68);
  font-size: 10px;
  font-weight: 880;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-meaning-field article strong,
.unlocked-reflective-judgment article em,
.unlocked-reflective-judgment > div > span {
  flex: 0 0 auto;
  color: #f3c86b;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.trigger-branch {
  align-content: start;
  align-items: start;
}

.trigger-branch .trigger-score {
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #f7f8ef;
  font-size: 10px;
  font-weight: 950;
  background: rgba(243, 200, 107, 0.18);
}

.trigger-branch.trigger-score-high {
  border-left: 2px solid #ff6969;
  background: rgba(255, 105, 105, 0.08);
}

.trigger-branch.trigger-score-medium {
  border-left: 2px solid #f3c86b;
  background: rgba(243, 200, 107, 0.08);
}

.trigger-branch.trigger-score-low {
  border-left: 2px solid #5ba5ff;
  background: rgba(91, 165, 255, 0.06);
}

.trigger-score-neutral {
  color: rgba(247, 248, 239, 0.78) !important;
  background: rgba(247, 248, 239, 0.12) !important;
}

.trigger-branch.trigger-score-neutral {
  border-left: 2px solid rgba(247, 248, 239, 0.38);
  background: rgba(247, 248, 239, 0.04);
}

.unlocked-reflective-judgment .trigger-branch {
  gap: 4px;
}

.unlocked-reflective-judgment .trigger-score {
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
}

.trigger-score-high {
  color: #ff6969 !important;
  background: rgba(255, 105, 105, 0.24) !important;
}

.trigger-score-medium {
  color: #f3c86b !important;
  background: rgba(243, 200, 107, 0.24) !important;
}

.trigger-score-low {
  color: #8fb7ff !important;
  background: rgba(143, 183, 255, 0.18) !important;
}

.unlocked-reflective-judgment > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.unlocked-meaning-field article {
  align-content: start;
  align-items: start;
  display: grid;
  justify-content: start;
}

.unlocked-meaning-field article span,
.unlocked-reflective-judgment article span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.unlocked-reflective-judgment article {
  align-items: start;
  display: grid;
  justify-content: stretch;
}

.unlocked-reflective-judgment article em {
  overflow-wrap: anywhere;
  line-height: 1.25;
  white-space: normal;
}

.unlocked-big-win-risk {
  display: grid;
  gap: 7px;
  color: #f3c86b;
}

.unlocked-big-win-risk.red {
  color: #ff6969;
}

.unlocked-big-win-risk.orange {
  color: #ffb35a;
}

.unlocked-big-win-risk.blue {
  color: #74a2ff;
}

.unlocked-big-win-risk > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.unlocked-big-win-risk > div span {
  overflow: hidden;
  color: rgba(247, 248, 239, 0.72);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-big-win-risk > div strong {
  min-width: 34px;
  padding: 4px 6px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.unlocked-big-win-risk p {
  margin: 0;
  color: rgba(247, 248, 239, 0.78);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.38;
}

.unlocked-big-win-risk section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.unlocked-big-win-risk article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.unlocked-big-win-risk article span {
  color: rgba(247, 248, 239, 0.64);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.1;
}

.unlocked-big-win-risk article strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.unlocked-adjustment-list {
  display: grid;
  gap: 6px;
}

.unlocked-adjustment-next,
.unlocked-adjustment-list article,
.unlocked-adjustment-list article div {
  display: flex;
  align-items: center;
  min-width: 0;
}

.unlocked-adjustment-next {
  gap: 6px;
  color: #a9f19a;
}

.unlocked-adjustment-next strong {
  overflow: hidden;
  color: #f7f8ef;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-adjustment-list article {
  gap: 7px;
  min-height: 30px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.unlocked-adjustment-list article.watching,
.unlocked-adjustment-list article.active {
  border-color: rgba(123, 214, 111, 0.26);
}

.unlocked-adjustment-list article > span {
  width: 42px;
  color: #f3c86b;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.unlocked-adjustment-list article div {
  flex: 1;
  justify-content: space-between;
  gap: 6px;
}

.unlocked-adjustment-list article strong {
  overflow: hidden;
  color: rgba(247, 248, 239, 0.86);
  font-size: 10.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-adjustment-list article em {
  color: rgba(247, 248, 239, 0.64);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.unlocked-pillars {
  display: grid;
  grid-template-columns: minmax(76px, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.unlocked-radar {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
}

.unlocked-radar svg {
  display: block;
  width: 100%;
  max-width: 96px;
}

.radar-grid {
  fill: rgba(123, 214, 111, 0.08);
  stroke: rgba(123, 214, 111, 0.35);
  stroke-width: 1;
}

.radar-grid.inner {
  fill: rgba(243, 200, 107, 0.06);
  stroke: rgba(243, 200, 107, 0.22);
}

.radar-shape {
  fill: rgba(123, 214, 111, 0.32);
  stroke: #f3c86b;
  stroke-width: 2;
}

.unlocked-pillar-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.unlocked-pillar-values article {
  min-width: 0;
}

.unlocked-pillar-values span {
  display: block;
  color: rgba(247, 248, 239, 0.68);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.unlocked-pillar-values strong {
  display: block;
  margin-top: 2px;
  color: #f3c86b;
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1;
}

.unlocked-scenario-list {
  display: grid;
  gap: 5px;
}

.unlocked-scenario {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #7bd66f;
}

.unlocked-scenario svg {
  width: 15px;
  height: 15px;
}

.unlocked-scenario:last-child {
  border-bottom: 0;
}

.unlocked-scenario.gold {
  color: #f3c86b;
}

.unlocked-scenario.blue {
  color: #5d8dff;
}

.unlocked-scenario span {
  overflow: hidden;
  color: rgba(247, 248, 239, 0.82);
  font-size: 10.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-scenario strong {
  color: currentColor;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.unlocked-news-list {
  display: grid;
  gap: 6px;
}

.unlocked-news {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #7bd66f;
}

.unlocked-news svg {
  width: 14px;
  height: 14px;
}

.unlocked-news:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.unlocked-news.orange {
  color: #ff9a3d;
}

.unlocked-news.blue {
  color: #5d8dff;
}

.unlocked-news.gold,
.unlocked-news.muted {
  color: #f3c86b;
}

.unlocked-news div {
  min-width: 0;
}

.unlocked-news strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-news span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(247, 248, 239, 0.62);
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-news em {
  justify-self: end;
  color: currentColor;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.unlocked-empty,
.unlocked-state-panel p {
  margin: 0;
  color: rgba(247, 248, 239, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.unlocked-state-panel {
  justify-items: center;
  padding: 18px 14px;
  text-align: center;
}

.unlocked-state-panel > svg {
  color: #f3c86b;
}

.unlocked-state-panel strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.unlocked-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 10px;
  color: rgba(247, 248, 239, 0.52);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

@media (min-width: 700px) {
  .match-unlocked-shell {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.52);
  }
}

@media (max-width: 430px) {
  .unlocked-score-layout.meaning,
  .unlocked-score-layout.risk {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .match-unlocked-shell {
    padding-inline: 12px;
  }

  .unlocked-match-hero {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .unlocked-flag-frame {
    width: 48px;
    height: 43px;
  }

  .unlocked-versus h1 {
    gap: 6px;
    font-size: 21px;
  }

  .unlocked-score-layout,
  .unlocked-score-layout.lower {
    gap: 8px;
  }

  .unlocked-panel {
    padding: 10px;
  }

  .unlocked-pillars {
    grid-template-columns: 1fr;
  }
}

body:has(.payment-page-shell) {
  background: #030807;
}

body:has(.checkout-page-shell) {
  background: #030807;
}

.checkout-page-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 26px max(26px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  color: #f7f7f0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  background: #030807;
}

.checkout-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 8, 5, 0.22) 0%, rgba(2, 8, 5, 0.58) 42%, rgba(2, 8, 5, 0.94) 100%),
    url("./app/stadium-bg-mobile-portrait.png") center top / cover no-repeat;
}

.checkout-page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 209, 110, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.76));
  pointer-events: none;
}

.checkout-topbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.checkout-topbar button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #f7f7f0;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.checkout-topbar > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  grid-column: 2;
  min-width: 0;
}

.checkout-topbar strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.1;
}

.checkout-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 247, 240, 0.66);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
}

.checkout-topbar svg {
  color: #75d66a;
}

.group-discussion-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: max(58px, calc(env(safe-area-inset-top) + 58px)) 12px max(30px, calc(env(safe-area-inset-bottom) + 30px));
  overflow-x: hidden;
  background: #020805;
  font-family:
    "DIN Alternate",
    "Arial Narrow",
    "Roboto Condensed",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

.group-discussion-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 8, 5, 0.18), rgba(2, 8, 5, 0.88)),
    url("./app/stadium-bg-mobile-portrait.png") center top / cover no-repeat;
}

.group-discussion-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 200, 107, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.match-unlocked-shell > * {
  position: relative;
  z-index: 1;
}

.locked-match-shell > * {
  position: relative;
  z-index: 1;
}

html:has(.locked-match-shell),
body:has(.locked-match-shell),
html:has(.match-unlocked-shell),
body:has(.match-unlocked-shell) {
  background: #020806 !important;
}

#root:has(.locked-match-shell),
#root:has(.match-unlocked-shell) {
  position: relative;
  z-index: 0;
  min-height: 100svh;
  isolation: isolate;
}

.locked-match-shell,
.match-unlocked-shell {
  z-index: 0 !important;
  background: #020806 !important;
  isolation: isolate !important;
}

.locked-match-shell::before,
.locked-match-shell::after,
.match-unlocked-shell::before,
.match-unlocked-shell::after {
  z-index: 0 !important;
}

.locked-match-shell > *,
.match-unlocked-shell > * {
  position: relative;
  z-index: 2 !important;
}

.world-cup-render-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f7ffe9;
  background:
    linear-gradient(180deg, rgba(1, 18, 9, 0.76), rgba(0, 4, 2, 0.96)),
    radial-gradient(circle at top, rgba(93, 185, 87, 0.24), transparent 44%),
    #020806;
}

.world-cup-render-error section {
  width: min(420px, 100%);
  border: 1px solid rgba(246, 215, 122, 0.42);
  border-radius: 16px;
  padding: 24px;
  background: rgba(2, 20, 9, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.world-cup-render-error strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.world-cup-render-error p,
.world-cup-render-error small {
  display: block;
  margin: 0 0 14px;
  color: rgba(247, 255, 233, 0.78);
  line-height: 1.7;
}

.world-cup-render-error small {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  word-break: break-word;
}

.world-cup-render-error button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  color: #171207;
  background: linear-gradient(180deg, #fff1ad, #e8ba54);
  font-weight: 900;
  cursor: pointer;
}

.group-discussion-page {
  display: grid;
  width: min(100%, 430px);
  align-content: start;
  gap: 16px;
}

.group-discussion-topbar {
  margin-bottom: 4px;
}

.group-discussion-card,
.group-qr-card,
.group-discussion-rules {
  border: 1px solid rgba(110, 213, 103, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 52, 24, 0.84), rgba(5, 18, 10, 0.86)),
    rgba(5, 18, 10, 0.72);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.group-discussion-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.group-discussion-icon {
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(243, 200, 107, 0.62);
  border-radius: 16px;
  color: #223105;
  background: linear-gradient(135deg, #fff0a6, #f0c35d 68%, #b97822);
}

.group-discussion-card h1 {
  margin: 0 0 6px;
  color: #fff8d0;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.05;
}

.group-discussion-card p,
.group-qr-card p,
.group-discussion-rules span {
  margin: 0;
  color: rgba(245, 255, 237, 0.78);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.group-qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
}

.group-qr-card img,
.group-qr-placeholder {
  display: grid;
  width: min(78vw, 286px);
  aspect-ratio: 1;
  place-items: center;
  border: 9px solid #fff4cf;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.group-qr-placeholder {
  color: rgba(22, 57, 28, 0.62);
}

.group-qr-card strong,
.group-discussion-rules strong {
  color: #fff3b5;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.15;
}

.group-qr-card button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(247, 206, 108, 0.78);
  border-radius: 999px;
  color: #2b1b03;
  background: linear-gradient(135deg, #fff0ac, #f3c86b 62%, #c98a2c);
  font-size: 14px;
  font-weight: 950;
}

.group-discussion-rules {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.checkout-product-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 96px;
  padding: 11px;
  border: 1px solid rgba(105, 201, 103, 0.22);
  border-radius: 15px;
  background:
    linear-gradient(115deg, rgba(14, 46, 24, 0.78), rgba(7, 23, 13, 0.78)),
    rgba(7, 22, 13, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.checkout-product-card > img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.checkout-product-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.checkout-product-main > span {
  color: #ffffff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.15;
  white-space: nowrap;
}

.checkout-product-main strong {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  white-space: nowrap;
}

.checkout-product-main em {
  color: #e9c36d;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  text-transform: uppercase;
}

.checkout-product-main .flag {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
}

.checkout-product-main small {
  color: rgba(247, 247, 240, 0.62);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.checkout-product-card > b {
  align-self: start;
  color: #d4a54c;
  font-size: 23px;
  font-weight: 790;
  line-height: 1;
  white-space: nowrap;
}

.checkout-pass-card .checkout-product-main strong {
  font-size: 17px;
}

.checkout-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 26px 0 12px;
}

.checkout-section-heading i {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: #70d968;
  box-shadow: 0 0 18px rgba(112, 217, 104, 0.44);
}

.checkout-section-heading strong {
  color: #f7f7f0;
  font-size: 16px;
  font-weight: 740;
}

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

.checkout-provider-card {
  position: relative;
  display: grid;
  grid-template-columns: 30px 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  color: #f7f7f0;
  text-align: left;
  background:
    linear-gradient(105deg, rgba(12, 24, 16, 0.78), rgba(5, 11, 8, 0.8)),
    rgba(5, 13, 8, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.checkout-provider-card.selected {
  border-color: #f1c76a;
  background:
    linear-gradient(105deg, rgba(18, 51, 27, 0.84), rgba(5, 19, 10, 0.84)),
    rgba(10, 31, 16, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.22);
}

.checkout-provider-radio {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid rgba(247, 247, 240, 0.34);
  border-radius: 50%;
  color: #ffffff;
}

.checkout-provider-card.selected .checkout-provider-radio {
  border-color: transparent;
  color: #6bd36e;
}

.checkout-provider-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
}

.checkout-provider-icon.wechat {
  background: linear-gradient(135deg, #64d749, #20a63a);
}

.checkout-provider-icon.alipay {
  background: linear-gradient(135deg, #2f8cff, #0965dd);
}

.checkout-provider-copy {
  display: grid;
  min-width: 0;
}

.checkout-provider-copy strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.1;
}

.checkout-payment-tips {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(243, 200, 107, 0.34);
  border-radius: 14px;
  color: rgba(255, 249, 223, 0.9);
  background:
    linear-gradient(135deg, rgba(65, 48, 12, 0.72), rgba(9, 39, 18, 0.72)),
    rgba(9, 31, 16, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.checkout-payment-tips > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f4cf75;
}

.checkout-payment-tips strong {
  color: #ffe39a;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.1;
}

.checkout-payment-tips p {
  margin: 0;
  color: rgba(255, 249, 223, 0.86);
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.55;
}

.checkout-notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 212, 105, 0.18);
  border-radius: 14px;
  color: rgba(247, 247, 240, 0.74);
  background: rgba(13, 38, 22, 0.58);
  backdrop-filter: blur(14px);
}

.checkout-notice svg {
  color: #74d86b;
}

.checkout-notice span {
  font-size: 13px;
  font-weight: 560;
  line-height: 1.4;
}

.checkout-create-button {
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  color: #111008;
  background:
    linear-gradient(180deg, rgba(255, 246, 199, 0.2), rgba(144, 98, 19, 0.08)),
    url("./app/gold-payment-button-texture.png") center / cover no-repeat,
    #f3c86b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 18px 44px rgba(0, 0, 0, 0.32);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: 0;
}

.checkout-create-button:disabled {
  opacity: 0.64;
}

.checkout-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  color: rgba(247, 247, 240, 0.48);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
  text-align: center;
}

.checkout-disclaimer svg {
  color: rgba(247, 247, 240, 0.48);
  flex: 0 0 auto;
}

@media (max-width: 380px) {
  .checkout-page-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .checkout-product-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .checkout-product-card > img {
    width: 54px;
    height: 54px;
  }

  .checkout-product-card > b {
    grid-column: auto;
    justify-self: end;
    font-size: 22px;
  }

  .checkout-product-main strong {
    font-size: 14px;
  }

  .checkout-product-main .flag {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }

  .checkout-provider-card {
    grid-template-columns: 28px 48px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .checkout-provider-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .checkout-page-shell {
    padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  }

  .checkout-topbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 7px;
    margin-bottom: 12px;
  }

  .checkout-topbar button {
    width: 36px;
    height: 36px;
  }

  .checkout-topbar strong {
    font-size: 18px;
  }

  .checkout-product-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-height: 76px;
    gap: 8px;
    padding: 9px;
    border-radius: 12px;
  }

  .checkout-product-card > img {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .checkout-product-card > b {
    font-size: 20px;
  }

  .checkout-product-main {
    gap: 3px;
  }

  .checkout-product-main > span,
  .checkout-product-main strong {
    font-size: 13px;
  }

  .checkout-pass-card .checkout-product-main strong {
    font-size: 15px;
  }

  .checkout-product-main small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .checkout-section-heading {
    margin: 15px 0 8px;
  }

  .checkout-section-heading i {
    height: 18px;
  }

  .checkout-provider-list {
    gap: 8px;
  }

  .checkout-provider-card {
    grid-template-columns: 26px 42px minmax(0, 1fr);
    min-height: 62px;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 11px;
  }

  .checkout-provider-radio {
    width: 22px;
    height: 22px;
  }

  .checkout-provider-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
  }

  .checkout-provider-copy strong {
    font-size: 15px;
  }

  .checkout-payment-tips {
    gap: 6px;
    margin-top: 10px;
    padding: 10px 11px;
    border-radius: 11px;
  }

  .checkout-payment-tips strong {
    font-size: 12.5px;
  }

  .checkout-payment-tips p {
    font-size: 11px;
    line-height: 1.42;
  }

  .checkout-notice {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    min-height: 46px;
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 11px;
  }

  .checkout-notice span {
    font-size: 11.5px;
  }

  .checkout-create-button {
    min-height: 48px;
    border-radius: 10px;
    font-size: 15px;
  }

  .checkout-disclaimer {
    margin-top: 9px;
    font-size: 10.5px;
  }
}

@media (max-width: 430px) and (max-height: 690px) {
  .checkout-topbar span,
  .checkout-product-main small,
  .checkout-disclaimer {
    display: none;
  }

  .checkout-product-card {
    min-height: 66px;
  }

  .checkout-section-heading {
    margin-top: 10px;
  }

  .checkout-provider-card {
    min-height: 56px;
  }

  .checkout-notice {
    min-height: 42px;
    margin-top: 9px;
  }
}

.payment-page-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  color: #f6f3e9;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  background: #030807;
}

.payment-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 7, 5, 0.35) 0%, rgba(2, 7, 5, 0.2) 26%, rgba(2, 7, 5, 0.9) 100%),
    url("./app/stadium-bg-mobile-portrait.png") center top / cover no-repeat;
}

.payment-page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 211, 111, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.payment-page-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
}

.payment-page-header button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #f6f3e9;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.payment-page-header span {
  grid-column: 2;
  color: #f6f3e9;
  font-size: 17px;
  font-weight: 750;
  text-align: center;
}

.payment-hero {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 2px 0 18px;
  text-align: center;
}

.payment-hero-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(243, 200, 107, 0.72);
  border-radius: 13px;
  color: #f3c86b;
  background: rgba(243, 200, 107, 0.1);
}

.payment-hero h1 {
  margin: 0;
  color: #f3c86b;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.08;
}

.payment-hero p {
  margin: 0;
  color: rgba(246, 243, 233, 0.66);
  font-size: 14px;
  font-weight: 600;
}

.payment-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 202, 114, 0.42);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(14, 32, 19, 0.84), rgba(5, 12, 8, 0.86)),
    rgba(7, 16, 10, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.payment-card-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.payment-order-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #77d86a;
  background: rgba(119, 216, 106, 0.18);
}

.payment-card-head strong {
  min-width: 0;
  color: #f6f3e9;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-status-pill {
  justify-self: end;
  min-width: max-content;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #f3c86b;
  background: rgba(243, 200, 107, 0.1);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.payment-status-pill.paid {
  color: #77d86a;
  background: rgba(119, 216, 106, 0.12);
}

.payment-status-pill.expired,
.payment-status-pill.failed,
.payment-status-pill.unavailable {
  color: #f06d61;
  background: rgba(240, 109, 97, 0.1);
}

.payment-info-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.payment-info-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.payment-info-row > svg {
  color: rgba(246, 243, 233, 0.64);
}

.payment-info-row span {
  display: block;
  color: rgba(246, 243, 233, 0.56);
  font-size: 11px;
  font-weight: 650;
}

.payment-info-row strong {
  display: block;
  margin-top: 2px;
  color: #f6f3e9;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

.payment-info-row em {
  justify-self: end;
  color: #f3c86b;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.payment-qr-panel {
  display: grid;
  place-items: center;
  gap: 9px;
  width: min(100%, 188px);
  aspect-ratio: 1;
  margin: 2px auto;
  border: 1px dashed rgba(246, 243, 233, 0.34);
  border-radius: 14px;
  color: rgba(246, 243, 233, 0.58);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.05);
}

.payment-qr-panel.ready {
  padding: 10px;
  border-style: solid;
  border-color: rgba(119, 216, 106, 0.5);
  background: #f8fff7;
}

.payment-qr-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-qr-panel span {
  max-width: 132px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.payment-hint-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(119, 216, 106, 0.24);
  border-radius: 10px;
  background: rgba(119, 216, 106, 0.08);
}

.payment-hint-card > svg {
  color: #77d86a;
}

.payment-hint-card strong {
  display: block;
  color: #f6f3e9;
  font-size: 15px;
  font-weight: 780;
}

.payment-hint-card p {
  margin: 5px 0 0;
  color: rgba(246, 243, 233, 0.68);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
}

.payment-message {
  margin: -4px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(243, 200, 107, 0.22);
  border-radius: 10px;
  color: #f3c86b;
  background: rgba(243, 200, 107, 0.08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.payment-refresh-button,
.payment-back-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 850;
}

.payment-refresh-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: linear-gradient(180deg, #78b969, #3f8233);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px rgba(62, 128, 50, 0.25);
}

.payment-refresh-button:disabled {
  opacity: 0.62;
}

.payment-back-button {
  border: 1px solid rgba(243, 200, 107, 0.58);
  color: #f3c86b;
  background: rgba(0, 0, 0, 0.18);
}

.payment-lock-note,
.payment-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(246, 243, 233, 0.56);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.payment-lock-note {
  color: rgba(180, 236, 146, 0.72);
}

.payment-footer {
  margin-top: 14px;
}

body:has(.postmatch-page-shell) {
  background: #030807;
}

.postmatch-page-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  color: #f7fff6;
  background: #030807;
}

.postmatch-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 7, 5, 0.08) 0%, rgba(2, 7, 5, 0.34) 38%, rgba(2, 7, 5, 0.9) 100%),
    url("./app/stadium-postmatch-bg-mobile.png") center top / cover no-repeat;
}

.postmatch-page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 2%, rgba(127, 216, 107, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.postmatch-app {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  min-height: 100vh;
  padding: max(22px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
}

.postmatch-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  min-height: 50px;
}

.postmatch-header button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #f7fff6;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.postmatch-header div {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}

.postmatch-header strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.postmatch-header span {
  color: rgba(235, 242, 226, 0.74);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
}

.postmatch-hero {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 2px 0 12px;
  text-align: center;
}

.postmatch-hero p {
  margin: 0;
  color: rgba(235, 242, 226, 0.86);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.25;
}

.postmatch-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  color: #7fd86b;
  background: rgba(37, 92, 42, 0.72);
  font-size: 14px;
  font-weight: 820;
}

.postmatch-scoreline {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(118px, auto) minmax(70px, 1fr);
  align-items: end;
  width: 100%;
  gap: 8px;
  margin-top: 2px;
}

.postmatch-scoreline > strong {
  color: #f7fff6;
  font-size: clamp(44px, 12vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

.postmatch-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.postmatch-team .flag {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.postmatch-team .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postmatch-team span {
  max-width: 100%;
  overflow: hidden;
  color: #f7fff6;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postmatch-card {
  min-width: 0;
  border: 1px solid rgba(243, 200, 107, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 31, 17, 0.8), rgba(4, 10, 6, 0.78)),
    rgba(8, 18, 12, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.postmatch-prediction-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.postmatch-prediction-card > svg:first-child {
  color: #f3c86b;
}

.postmatch-prediction-card > svg:last-child {
  justify-self: end;
  color: #7fd86b;
}

.postmatch-prediction-card span,
.postmatch-section-title span {
  display: block;
  color: #f3c86b;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
}

.postmatch-prediction-card strong {
  display: block;
  margin-top: 6px;
  color: #f7fff6;
  font-size: clamp(28px, 9vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.postmatch-prediction-card p,
.postmatch-review-copy p,
.postmatch-root-card p {
  margin: 8px 0 0;
  color: rgba(235, 242, 226, 0.76);
  font-size: 14px;
  font-weight: 580;
  line-height: 1.5;
}

.postmatch-model-card,
.postmatch-root-card {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.postmatch-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.postmatch-section-title svg {
  color: rgba(127, 216, 107, 0.92);
}

.postmatch-review-copy,
.postmatch-root-card {
  border-color: rgba(127, 216, 107, 0.22);
}

.postmatch-review-copy {
  padding: 14px;
  border: 1px solid rgba(127, 216, 107, 0.18);
  border-radius: 10px;
  background: rgba(43, 106, 48, 0.12);
}

.postmatch-review-copy.locked {
  border-color: rgba(243, 200, 107, 0.22);
  background: rgba(243, 200, 107, 0.08);
}

.postmatch-review-copy.muted {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.postmatch-review-copy strong,
.postmatch-root-card > strong {
  color: #7fd86b;
  font-size: clamp(21px, 6vw, 27px);
  font-weight: 900;
  line-height: 1.15;
}

.postmatch-root-card > strong {
  color: #f7fff6;
}

.postmatch-next-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 2px;
  padding: 0 18px;
  border: 1px solid rgba(255, 232, 148, 0.68);
  border-radius: 12px;
  color: #1d1606;
  background: linear-gradient(180deg, #f7dda0, #d89d36);
  box-shadow: 0 16px 38px rgba(216, 157, 54, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.postmatch-next-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postmatch-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(235, 242, 226, 0.62);
  font-size: 13px;
  font-weight: 680;
  text-align: center;
}

@media (max-width: 380px) {
  .postmatch-app {
    padding-right: 14px;
    padding-left: 14px;
  }

  .postmatch-scoreline {
    grid-template-columns: minmax(58px, 1fr) minmax(108px, auto) minmax(58px, 1fr);
    gap: 6px;
  }

  .postmatch-team .flag {
    width: 52px;
    height: 52px;
  }

  .postmatch-prediction-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .postmatch-prediction-card > svg:last-child {
    display: none;
  }
}

@media (max-width: 380px) {
  .payment-page-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .payment-card {
    padding: 14px;
  }

  .payment-card-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .payment-status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .payment-info-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .payment-info-row em {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .user-page-shell {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .user-page-shell .portal-topbar {
    grid-template-columns: 1fr;
  }

  .app-status-pill {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .app-screen .scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .app-bottom-nav {
    width: min(calc(100% - 14px), 520px);
    padding: 6px;
    border-radius: 17px;
  }

  .app-bottom-nav button {
    min-height: 50px;
    border-radius: 12px;
  }

  .app-bottom-nav span {
    font-size: 11px;
  }

  .app-hero-card {
    padding: 10px;
  }
}

@media (max-width: 560px) {
  .referral-entry-card,
  .referral-share-card,
  .referral-withdraw-card form,
  .referral-history-grid {
    grid-template-columns: 1fr;
  }

  .referral-share-card img {
    justify-self: center;
  }

  .referral-metrics-grid {
    grid-template-columns: 1fr;
  }
}
