:root {
  --ink: #35003c;
  --muted: #7b6081;
  --paper: #fff;
  --soft: #f7f2f8;
  --line: #eadfeb;
  --cyan: #00d7e8;
  --mint: #00ff87;
  --violet: #8a3ffc;
  --magenta: #ff2882;
  --blue: #4a7dff;
  --success: #04a777;
  --warning: #ffb000;
  --danger: #e7305b;
  --shadow: 0 18px 42px rgba(53, 0, 60, 0.13);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #efeaf1;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 215, 232, 0.35), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(255, 40, 130, 0.22), transparent 32%),
    #f7f4f8;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--soft);
  box-shadow: 0 0 60px rgba(53, 0, 60, 0.16);
  overflow-x: hidden;
}

.screen {
  min-height: 100svh;
  padding: 16px;
}

.auth-screen,
.setup-screen {
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: max(18px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 78% 4%, rgba(0, 255, 135, 0.78) 0 13%, transparent 28%),
    radial-gradient(circle at 25% 0%, rgba(0, 215, 232, 0.95) 0 22%, transparent 48%),
    linear-gradient(139deg, #05cde7 0%, #7772ff 48%, #a82df5 100%);
}

.auth-screen {
  align-content: start;
  gap: 20px;
}

.setup-screen {
  align-content: center;
  justify-items: stretch;
  gap: 0;
  background:
    radial-gradient(circle at 76% 0%, rgba(0, 255, 135, 0.62) 0 11%, transparent 29%),
    radial-gradient(circle at 8% 0%, rgba(0, 215, 232, 0.78) 0 23%, transparent 46%),
    linear-gradient(148deg, #16c6dc 0%, #6a75f0 48%, #9e31eb 100%);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--violet), var(--cyan));
  color: var(--paper);
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(53, 0, 60, 0.24);
}

.auth-hero,
.setup-hero {
  color: var(--paper);
  padding-top: 46px;
}

.auth-hero {
  min-height: 38svh;
  display: grid;
  place-items: center;
  padding-top: 10px;
}

.auth-worldcup-logo {
  width: min(78vw, 330px);
  max-height: 38svh;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(32, 0, 78, 0.26)) drop-shadow(0 0 26px rgba(255, 255, 255, 0.22));
  transform: translateY(4px);
}

.auth-hero h1,
.setup-hero h1 {
  max-width: 330px;
  margin: 18px 0 10px;
  font-size: clamp(40px, 13vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-hero p,
.setup-hero p {
  max-width: 320px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.55;
}

.auth-card,
.setup-card {
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-tabs,
.top-tabs,
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(53, 0, 60, 0.09);
}

.auth-tabs button,
.top-tabs button,
.mode-tabs button {
  min-height: 45px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
}

.auth-tabs button.active,
.top-tabs button.active,
.mode-tabs button.active {
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(53, 0, 60, 0.1);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.input,
.score-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
}

.input {
  min-height: 56px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.input:focus,
.score-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(138, 63, 252, 0.14);
}

.primary-btn,
.ghost-btn,
.pill-btn {
  border: 0;
  border-radius: 18px;
  font-weight: 950;
}

.primary-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  background: linear-gradient(94deg, var(--ink), #7130b8 58%, var(--magenta));
  color: #fff;
  box-shadow: 0 16px 26px rgba(53, 0, 60, 0.2);
}

.ghost-btn {
  min-height: 48px;
  border: 1px solid rgba(53, 0, 60, 0.18);
  background: #fff;
  color: var(--ink);
}

.hint,
.error {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.hint {
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-weight: 850;
}

.app-view {
  min-height: 100svh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.hero-panel {
  padding: max(16px, env(safe-area-inset-top)) 16px 20px;
  color: #fff;
  background:
    radial-gradient(ellipse at 72% 5%, rgba(0, 255, 135, 0.85) 0 8%, rgba(0, 255, 135, 0.2) 12%, transparent 31%),
    radial-gradient(ellipse at 12% 0%, rgba(0, 215, 232, 0.96) 0 24%, transparent 50%),
    linear-gradient(135deg, #08cae4 0%, #6274e6 48%, #a83df2 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.avatar {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  box-shadow: inset 0 0 0 3px rgba(0, 255, 135, 0.75);
  overflow: hidden;
}

.avatar.has-photo {
  background: #fff;
  box-shadow: inset 0 0 0 3px rgba(0, 255, 135, 0.75), 0 8px 18px rgba(53, 0, 60, 0.12);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-large {
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 32px;
  font-size: 30px;
  box-shadow: inset 0 0 0 4px rgba(0, 255, 135, 0.86), 0 16px 28px rgba(53, 0, 60, 0.16);
}

.identity strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity span,
.mini-label {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 750;
}

.rank-chip {
  min-width: 74px;
  padding: 9px 11px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
  text-align: center;
  backdrop-filter: blur(12px);
}

.rank-chip b {
  display: block;
  font-size: 21px;
}

.deadline {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 17px;
  background: rgba(53, 0, 60, 0.24);
  font-weight: 900;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stat {
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.stat span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 750;
}

.stat b {
  display: block;
  margin-top: 2px;
  font-size: 23px;
  line-height: 1;
}

.content {
  padding: 18px 16px 0;
}

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

.section-title h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.small-action {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

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

.pill-btn {
  min-height: 42px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pill-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.match-list,
.leader-list,
.rules-list,
.profile-list {
  display: grid;
  gap: 12px;
}

.match-card,
.leader-card,
.rules-card,
.profile-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(53, 0, 60, 0.08);
}

.match-card {
  padding: 14px;
}

.match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 255, 135, 0.16);
  color: #00734d;
  font-size: 12px;
  font-weight: 950;
}

.tag.locked {
  background: rgba(231, 48, 91, 0.12);
  color: var(--danger);
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.crest {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--violet));
  font-weight: 950;
}

.team:nth-child(3) .crest {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--ink);
}

.team-name {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}

.scoreline {
  display: grid;
  grid-template-columns: 52px 12px 52px;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 950;
}

.score-input {
  height: 52px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 950;
  appearance: textfield;
}

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

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

.outcome-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.outcome-btn.active {
  border-color: transparent;
  background: linear-gradient(94deg, var(--mint), var(--cyan));
  color: var(--ink);
}

.match-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.match-foot small {
  color: var(--muted);
  font-weight: 750;
}

.save-btn {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 13px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.save-btn.saved {
  background: rgba(4, 167, 119, 0.14);
  color: #00734d;
}

.leader-card {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
}

.leader-pos {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
  font-weight: 950;
}

.leader-card.me {
  background: linear-gradient(100deg, #fff, rgba(0, 255, 135, 0.23));
  box-shadow: inset 0 0 0 2px rgba(0, 255, 135, 0.72), 0 10px 26px rgba(53, 0, 60, 0.08);
}

.leader-name {
  min-width: 0;
}

.leader-name b,
.leader-points b {
  display: block;
}

.leader-name span,
.leader-points span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.leader-points {
  text-align: right;
}

.rules-card,
.profile-card {
  padding: 16px;
}

.rule-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.rule-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 215, 232, 0.24), rgba(138, 63, 252, 0.22));
  font-weight: 950;
}

.rule-row b {
  display: block;
}

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

.rule-points {
  color: var(--success);
  font-weight: 950;
}

.rules-card.scoring-card,
.rules-card.howto-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(226, 214, 234, 0.78);
}

.rules-card.scoring-card::before,
.rules-card.howto-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.rules-card.scoring-card::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(17, 205, 236, 0.14), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(138, 63, 252, 0.12), transparent 34%);
}

.rules-card.howto-card::before {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 190, 44, 0.16), transparent 34%),
    radial-gradient(circle at 4% 18%, rgba(138, 63, 252, 0.1), transparent 38%);
}

.rules-card-head,
.rule-row,
.howto-steps {
  position: relative;
  z-index: 1;
}

.rules-card-head {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.rules-eyebrow {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(138, 63, 252, 0.11);
  color: var(--violet);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.rules-card-head b {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.08;
}

.rules-card-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.scoring-card .rule-row {
  grid-template-columns: 48px 1fr 58px;
  gap: 12px;
  min-height: 72px;
  padding: 12px 0;
}

.scoring-card .rule-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.9), transparent 35%),
    linear-gradient(135deg, rgba(15, 199, 235, 0.2), rgba(122, 42, 255, 0.22));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(138, 63, 252, 0.1), 0 10px 18px rgba(53, 0, 60, 0.08);
}

.scoring-card .rule-row b {
  font-size: 16px;
  line-height: 1.18;
}

.scoring-card .rule-row span {
  margin-top: 3px;
  line-height: 1.35;
}

.scoring-card .rule-points {
  justify-self: end;
  min-width: 50px;
  padding: 7px 9px;
  border-radius: 14px;
  background: rgba(7, 176, 117, 0.1);
  color: #078659;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(7, 176, 117, 0.12);
}

.howto-steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.howto-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 10px;
  padding: 11px;
  border-radius: 18px;
  background: rgba(248, 246, 251, 0.86);
  box-shadow: inset 0 0 0 1px rgba(226, 214, 234, 0.72);
}

.howto-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #6f28ff, #11a3ff);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 10px 16px rgba(92, 39, 255, 0.22);
}

.howto-step b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.18;
}

.howto-step span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.profile-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.profile-editor {
  display: grid;
  gap: 16px;
}

.avatar-picker {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 0 2px;
}

.photo-btn {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(53, 0, 60, 0.08);
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 0;
}

.meta-tile {
  border-radius: 18px;
  padding: 12px;
  background: var(--soft);
}

.meta-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.meta-tile b {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(53, 0, 60, 0.08);
  backdrop-filter: blur(18px);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.nav-btn {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(53, 0, 60, 0.6);
  font-size: 11px;
  font-weight: 850;
}

.nav-btn .icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.nav-btn.active {
  background: var(--soft);
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: calc(94px + env(safe-area-inset-bottom));
  left: 18px;
  z-index: 10;
  width: min(calc(100% - 36px), 394px);
  margin: 0 auto;
  border-radius: 18px;
  padding: 13px 15px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.24s, opacity 0.24s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.system-status {
  width: calc(100% - 28px);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 10px auto 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 231, 0.94);
  color: #6a4800;
  box-shadow: 0 8px 18px rgba(53, 0, 60, 0.055);
}

.system-status > span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffb000;
  box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.14);
}

.system-status b,
.system-status small {
  display: block;
  line-height: 1.15;
}

.system-status b {
  font-size: 11px;
  font-weight: 950;
}

.system-status small {
  margin-top: 2px;
  color: rgba(106, 72, 0, 0.72);
  font-size: 9.5px;
  font-weight: 850;
}

.system-status.offline {
  border-color: rgba(231, 48, 91, 0.18);
  background: rgba(255, 242, 246, 0.95);
  color: #a0153a;
}

.system-status.offline > span {
  background: #e7305b;
  box-shadow: 0 0 0 4px rgba(231, 48, 91, 0.12);
}

.system-status.warning {
  border-color: rgba(231, 48, 91, 0.18);
  background: rgba(255, 246, 239, 0.95);
  color: #a43b00;
}

.empty-state {
  padding: 24px 18px;
  border: 1px dashed rgba(53, 0, 60, 0.18);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

/* Premium 2026 sports-gaming refresh */
:root {
  --ink: #23002f;
  --muted: #7b6685;
  --soft: #f8f7fb;
  --line: #e9e2ee;
  --cyan: #08b9ff;
  --mint: #00e88a;
  --violet: #7c2cff;
  --deep: #16002e;
  --blue: #117df4;
  --shadow: 0 20px 46px rgba(32, 0, 54, 0.12);
}

body {
  background: #f1f3f8;
}

.app-shell {
  background: #fbfbfe;
}

.app-view {
  background: linear-gradient(180deg, #fbfbff 0%, #f6f5fb 100%);
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: max(16px, env(safe-area-inset-top)) 18px 18px;
  background:
    radial-gradient(ellipse at 0% 60%, rgba(0, 157, 255, 0.9) 0 9%, rgba(0, 157, 255, 0.28) 18%, transparent 42%),
    radial-gradient(ellipse at 100% 54%, rgba(197, 33, 255, 0.88) 0 10%, rgba(197, 33, 255, 0.26) 20%, transparent 44%),
    linear-gradient(145deg, #040046 0%, #17005d 42%, #3a006e 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 20px 42px rgba(25, 0, 68, 0.22);
}

.hero-panel::before {
  position: absolute;
  inset: auto -20% -34px;
  height: 120px;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 30px);
  border-radius: 50% 50% 0 0;
  opacity: 0.24;
  transform: perspective(180px) rotateX(58deg);
}

.hero-panel > * {
  position: relative;
}

.topbar {
  align-items: center;
  min-height: 66px;
}

.identity {
  gap: 14px;
}

.hero-panel .avatar {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(123, 44, 255, 0.9);
}

.identity strong {
  max-width: 178px;
  color: #fff;
  font-size: 22px;
  line-height: 1.08;
}

.identity span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  letter-spacing: 0.2px;
}

.rank-chip {
  min-width: 112px;
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(184, 74, 255, 0.22));
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.rank-trophy {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
  border: 2px solid #ffbf2f;
  border-top-width: 6px;
  border-radius: 6px 6px 11px 11px;
  background: linear-gradient(180deg, #ffe66d, #ff9e0b);
  box-shadow: 0 0 18px rgba(255, 183, 26, 0.34);
}

.rank-trophy::before,
.rank-trophy::after {
  position: absolute;
  top: 3px;
  width: 8px;
  height: 10px;
  content: "";
  border: 2px solid #ffbf2f;
  border-radius: 50%;
}

.rank-trophy::before {
  left: -10px;
  border-right: 0;
}

.rank-trophy::after {
  right: -10px;
  border-left: 0;
}

.rank-trophy + span::before {
  position: absolute;
  width: 18px;
  height: 3px;
  margin-top: 29px;
  margin-left: -29px;
  content: "";
  border-radius: 999px;
  background: #ffbf2f;
}

.rank-arrow {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.mini-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.rank-chip b {
  color: #fff;
  font-size: 28px;
  line-height: 0.95;
}

.countdown-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(132px, 0.85fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 13px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.07), 0 16px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.countdown-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.clock-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  position: relative;
  color: #fff;
  box-shadow: 0 0 18px rgba(47, 154, 255, 0.45);
}

.clock-icon::before,
.clock-icon::after {
  position: absolute;
  top: 8px;
  left: 14px;
  width: 2px;
  height: 9px;
  content: "";
  border-radius: 999px;
  background: #fff;
  transform-origin: 50% 100%;
}

.clock-icon::after {
  top: 15px;
  left: 14px;
  height: 8px;
  transform: rotate(90deg);
}

.countdown-main span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.timer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: #fff;
}

.timer b {
  font-size: clamp(24px, 7.2vw, 32px);
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.timer i {
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-style: normal;
}

.timer-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.timer-labels span {
  text-align: center;
  font-size: 11px;
}

.countdown-main strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.stat {
  display: grid;
  align-content: center;
  min-height: 88px;
  padding: 8px 0 8px 12px;
  border-radius: 0;
  background: transparent;
}

.stat + .stat {
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.stat span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  white-space: nowrap;
}

.stat-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.points-icon {
  clip-path: polygon(50% 0, 62% 35%, 99% 35%, 69% 57%, 80% 94%, 50% 72%, 20% 94%, 31% 57%, 1% 35%, 38% 35%);
  background: linear-gradient(180deg, #ffe768, #ffba2f);
  box-shadow: none;
}

.target-icon {
  position: relative;
  border: 2px solid #9a68ff;
  background: transparent;
}

.target-icon::before {
  position: absolute;
  inset: 4px;
  content: "";
  border: 2px solid #0bd4ff;
  border-radius: 50%;
}

.stat b {
  color: #fff;
  font-size: 31px;
}

.content {
  padding: 23px 18px 0;
}

.section-title {
  align-items: center;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: 34px;
  line-height: 1;
}

.section-title p {
  margin-top: 8px;
  font-size: 15px;
}

.fixture-filter {
  position: relative;
  flex: 0 0 auto;
  min-width: 114px;
}

.fixture-filter select {
  width: 100%;
  min-height: 52px;
  padding: 0 38px 0 18px;
  border: 1px solid #d9d1e4;
  border-radius: 27px;
  appearance: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-weight: 950;
  outline: 0;
  box-shadow: 0 12px 24px rgba(24, 0, 44, 0.06);
}

.fixture-filter span {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-55%);
  pointer-events: none;
}

.fixture-days {
  display: flex;
  gap: 9px;
  margin: -3px -18px 15px;
  padding: 3px 18px 7px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.fixture-days::-webkit-scrollbar {
  display: none;
}

.demo-overview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 12px;
  padding: 11px 14px;
  border: 1px solid rgba(124, 44, 255, 0.18);
  border-radius: 17px;
  background:
    radial-gradient(circle at 8% 0%, rgba(124, 44, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(17, 2, 39, 0.96), rgba(43, 11, 80, 0.92));
  color: #fff;
  box-shadow: 0 14px 28px rgba(27, 0, 50, 0.12);
}

.demo-overview-banner b {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.demo-overview-banner span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.day-chip {
  min-width: 86px;
  min-height: 54px;
  flex: 0 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 44, 255, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.86);
  color: #7a6683;
  box-shadow: 0 10px 22px rgba(35, 0, 60, 0.055);
  scroll-snap-align: start;
  text-align: center;
}

.day-chip span {
  color: #2d0050;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.day-chip b {
  color: #8b7394;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.05;
  white-space: nowrap;
}

.day-chip.active {
  border-color: rgba(124, 44, 255, 0.36);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.34), transparent 40%),
    linear-gradient(135deg, #6b12ff 0%, #129bff 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(54, 90, 255, 0.22);
}

.day-chip.active span,
.day-chip.active b {
  color: #fff;
}

.match-list {
  gap: 18px;
}

.match-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(35, 0, 47, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(25, 0, 56, 0.1);
}

.match-head {
  padding: 16px 16px 10px;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.match-badge {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d12ff, #9800ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 44, 255, 0.28);
}

.tag {
  gap: 6px;
  min-height: 31px;
  padding: 0 12px;
  flex: 0 0 auto;
  background: #e5fbf1;
  color: #008a5a;
}

.tag::after {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #00bc77;
}

.teams {
  grid-template-columns: minmax(78px, 1fr) auto minmax(78px, 1fr);
  gap: 8px;
  margin: 12px 16px 0;
}

.team {
  gap: 9px;
}

.team-code {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #3a006c, #8b19ff);
  box-shadow: 0 12px 22px rgba(76, 0, 143, 0.2);
}

.team-away .team-code {
  background: linear-gradient(135deg, #0064d6, #368cff);
  box-shadow: 0 12px 22px rgba(0, 105, 214, 0.18);
}

.flag {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  object-fit: cover;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.18);
}

.flag-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.team-code b {
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-name {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.15;
  white-space: normal;
}

.scoreline {
  grid-template-columns: 54px 12px 54px;
  gap: 7px;
  align-items: end;
}

.score-control {
  display: grid;
  gap: 7px;
}

.score-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.score-stepper button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd5e6;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(25, 0, 56, 0.1);
}

.score-input {
  height: 58px;
  border: 1px solid #ded5e7;
  border-radius: 17px;
  color: var(--ink);
  font-size: 30px;
  background: linear-gradient(180deg, #fff, #fbfaff);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

.score-input:focus {
  border-color: #7c2cff;
  box-shadow: 0 0 0 4px rgba(124, 44, 255, 0.12), 0 0 24px rgba(124, 44, 255, 0.18);
}

.scoreline > span {
  align-self: center;
  padding-top: 29px;
  font-size: 24px;
  color: var(--ink);
}

.prediction-zone {
  display: grid;
  grid-template-columns: 0.92fr 2.15fr;
  gap: 11px;
  align-items: center;
  padding: 14px 16px 16px;
}

.social-insight {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.community-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.14), rgba(124, 44, 255, 0.18));
}

.community-icon::before,
.community-icon::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, #8d6cff, #0aa5ff);
}

.community-icon::before {
  top: 7px;
  left: 10px;
  width: 10px;
  height: 10px;
  box-shadow: -8px 9px 0 -2px #8d6cff, 8px 9px 0 -2px #0aa5ff;
}

.community-icon::after {
  right: 5px;
  bottom: 4px;
  left: 5px;
  height: 8px;
  border-radius: 999px 999px 5px 5px;
}

.social-insight b {
  color: var(--ink);
  font-size: 11px;
}

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

.outcome-btn {
  min-height: 58px;
  padding: 6px;
  border: 1px solid #e2dbe8;
  border-radius: 17px;
  color: #2d0050;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(25, 0, 56, 0.04);
}

.outcome-btn.active {
  border-color: #7828ff;
  background: #fff;
  color: #4d00bd;
  box-shadow: 0 0 0 1px rgba(124, 44, 255, 0.56), 0 14px 24px rgba(124, 44, 255, 0.18), 0 0 25px rgba(124, 44, 255, 0.16);
}

.match-foot {
  min-height: 62px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #eee8f2;
}

.match-foot small {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #24113a;
  font-size: 14px;
  font-weight: 900;
}

.stadium-icon {
  position: relative;
  width: 28px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid #806d8a;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.stadium-icon::before {
  position: absolute;
  top: -6px;
  left: 2px;
  width: 20px;
  height: 8px;
  content: "";
  border: 2px solid #806d8a;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.save-btn {
  min-width: 146px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(100deg, #6b12ff 0%, #0aa5ff 100%);
  box-shadow: 0 14px 26px rgba(29, 123, 255, 0.22);
  color: #fff;
  font-size: 14px;
}

.save-btn.saved {
  background: linear-gradient(100deg, rgba(0, 202, 122, 0.18), rgba(0, 182, 255, 0.18));
  color: #007a59;
  box-shadow: none;
}

.engagement-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(174px, 1fr));
  gap: 0;
  overflow-x: auto;
  border-radius: 22px;
  background: linear-gradient(100deg, #42106f, #22004c);
  box-shadow: 0 15px 32px rgba(34, 0, 76, 0.18);
  scrollbar-width: none;
}

.engagement-row::-webkit-scrollbar {
  display: none;
}

.engagement-row article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px;
  color: #fff;
}

.engagement-row article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.engagement-row b {
  font-size: 0;
}

.engagement-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
}

.trend-icon {
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, #ff6d2f, #ff215a);
  transform: rotate(-16deg);
}

.trend-icon::after {
  position: absolute;
  right: 9px;
  bottom: 5px;
  width: 10px;
  height: 13px;
  content: "";
  border-radius: 50% 50% 50% 4px;
  background: #ffd15c;
}

.crown-icon {
  border-bottom: 12px solid #ffcf38;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.crown-icon::before {
  position: absolute;
  top: 8px;
  left: -2px;
  width: 36px;
  height: 14px;
  content: "";
  background: linear-gradient(90deg, #ffdc59, #ffae15);
  clip-path: polygon(0 100%, 10% 20%, 34% 72%, 50% 0, 66% 72%, 90% 20%, 100% 100%);
}

.bolt-icon {
  background: linear-gradient(180deg, #ffe768, #ffae12);
  clip-path: polygon(55% 0, 12% 54%, 42% 54%, 28% 100%, 90% 39%, 58% 39%);
}

.engagement-row span {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.engagement-row small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.bottom-nav {
  right: 16px;
  bottom: 12px;
  left: 16px;
  width: min(calc(100% - 32px), 398px);
  padding: 8px;
  border: 1px solid rgba(35, 0, 47, 0.07);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(25, 0, 56, 0.13);
}

.bottom-nav-inner {
  gap: 4px;
}

.nav-btn {
  min-height: 70px;
  border-radius: 22px;
  color: #806d8a;
  font-size: 12px;
}

.nav-btn .icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.icon-ball {
  border: 3px solid currentColor;
}

.icon-ball::before {
  width: 11px;
  height: 11px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-cup::before {
  width: 16px;
  height: 14px;
  content: "";
  border: 3px solid currentColor;
  border-top-width: 6px;
  border-radius: 4px 4px 8px 8px;
}

.icon-cup::after {
  position: absolute;
  bottom: 4px;
  width: 18px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: currentColor;
}

.icon-bars {
  align-items: end;
  grid-template-columns: repeat(3, 5px);
  gap: 4px;
}

.icon-bars::before,
.icon-bars::after,
.icon-user::before {
  content: "";
}

.icon-bars::before {
  height: 16px;
  border: 2px solid currentColor;
}

.icon-bars::after {
  width: 23px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(-9px);
}

.icon-user::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  position: absolute;
  right: 6px;
  bottom: 5px;
  left: 6px;
  height: 11px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 12px 12px 0 0;
}

.nav-btn.active {
  color: #5c10e9;
  background: linear-gradient(180deg, rgba(124, 44, 255, 0.12), rgba(124, 44, 255, 0.04));
}

.nav-btn.active .icon {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(124, 44, 255, 0.14), 0 0 22px rgba(124, 44, 255, 0.22);
}

@media (max-width: 360px) {
  .hero-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .rank-chip {
    min-width: 104px;
  }

  .countdown-card {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding-top: 8px;
  }

  .stat + .stat {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

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

  .scoreline {
    order: 2;
    justify-self: center;
  }

  .team-away {
    order: 3;
  }

  .prediction-zone {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 620px) {
  body {
    padding: 24px 0;
  }

  .app-shell,
  .app-view,
  .screen {
    min-height: calc(100svh - 48px);
    border-radius: 34px;
  }

  .bottom-nav {
    bottom: 24px;
    border-radius: 26px;
  }
}

/* Reference-tight pass: typography, icons, cards, buttons */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.rank-trophy {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 5px 10px rgba(255, 177, 0, 0.3));
}

.rank-trophy::before,
.rank-trophy::after,
.rank-trophy + span::before,
.clock-icon::before,
.clock-icon::after {
  display: none;
}

.rank-chip {
  min-width: 118px;
  min-height: 66px;
  padding: 10px 13px;
  border-radius: 20px;
}

.rank-chip b {
  font-size: 31px;
  font-weight: 900;
}

.mini-label {
  font-size: 14px;
  font-weight: 750;
}

.clock-icon {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-icon {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
  font-style: normal;
  line-height: 1;
}

.points-icon,
.target-icon {
  clip-path: none;
  border: 0;
  background: transparent;
}

.target-icon::before {
  display: none;
}

.hero-panel {
  padding-bottom: 20px;
}

.countdown-card {
  border-radius: 23px;
  padding: 14px;
}

.timer b {
  font-weight: 900;
}

.section-title h2 {
  font-size: 35px;
  font-weight: 900;
}

.section-title p,
.fixture-filter select,
.match-meta,
.team-name,
.outcome-btn,
.match-foot small,
.save-btn,
.nav-btn {
  font-family: inherit;
}

.fixture-filter select {
  min-height: 51px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 800;
}

.match-list {
  gap: 16px;
}

.match-card {
  border-radius: 24px;
  box-shadow: 0 13px 30px rgba(35, 0, 60, 0.11);
}

.match-head {
  padding: 13px 14px 8px;
}

.match-meta {
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
}

.match-badge {
  min-height: 29px;
  padding: 0 12px;
  font-size: 14px;
}

.tag {
  min-height: 29px;
  padding: 0 11px;
  font-size: 12px;
}

.teams {
  grid-template-columns: minmax(82px, 1fr) auto minmax(82px, 1fr);
  gap: 9px;
  margin: 10px 14px 0;
}

.team {
  gap: 7px;
}

.team-code {
  min-height: 58px;
  border-radius: 16px;
}

  .flag {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
  }

.team-code b {
  font-size: 18px;
  font-weight: 900;
}

.team-name {
  font-size: 13px;
  font-weight: 900;
}

.scoreline {
  grid-template-columns: 52px 12px 52px;
  gap: 7px;
}

.score-control {
  gap: 5px;
}

.score-stepper button {
  width: 23px;
  height: 23px;
  font-size: 17px;
}

.score-input {
  height: 58px;
  border-radius: 16px;
  font-size: 31px;
  font-weight: 900;
}

.scoreline > span {
  padding-top: 27px;
  font-size: 24px;
}

.prediction-zone {
  grid-template-columns: 0.86fr 2.24fr;
  gap: 9px;
  padding: 12px 14px 14px;
}

.social-insight {
  grid-template-columns: 28px 1fr;
  gap: 7px;
  font-size: 9.5px;
  line-height: 1.15;
}

.community-icon {
  width: 27px;
  height: 27px;
}

.social-insight b {
  font-size: 10.5px;
}

.outcomes {
  gap: 7px;
}

.outcome-btn {
  min-height: 57px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 900;
}

.outcome-btn.active {
  border-color: #7a22ff;
  box-shadow: 0 0 0 1px rgba(122, 34, 255, 0.75), 0 12px 24px rgba(122, 34, 255, 0.18);
}

.match-foot {
  min-height: 61px;
  padding: 10px 14px;
}

.stadium-icon {
  width: 25px;
  height: 20px;
  border-color: #826c91;
}

.stadium-icon::before {
  width: 18px;
  border-color: #826c91;
}

.match-foot small {
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
}

.save-btn {
  min-width: 148px;
  min-height: 47px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
}

.save-btn.saved {
  background: linear-gradient(100deg, #6b12ff 0%, #0aa5ff 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(29, 123, 255, 0.22);
}

.engagement-row {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  border-radius: 21px;
}

.engagement-row article {
  min-height: 70px;
  grid-template-columns: 31px 1fr;
  padding: 10px 13px;
}

.engagement-icon {
  width: auto;
  height: auto;
  display: block;
  font-size: 29px;
  line-height: 1;
}

.trend-icon,
.crown-icon,
.bolt-icon {
  border: 0;
  background: transparent;
  clip-path: none;
  transform: none;
}

.trend-icon::after,
.crown-icon::before {
  display: none;
}

.bottom-nav {
  border-radius: 27px;
  padding: 7px;
  box-shadow: 0 18px 42px rgba(32, 0, 54, 0.16);
}

.nav-btn {
  min-height: 68px;
  border-radius: 21px;
  font-size: 12px;
  font-weight: 850;
}

.nav-btn .icon {
  width: 33px;
  height: 33px;
  font-size: 25px;
  line-height: 1;
}

.nav-btn.active {
  color: #6414e9;
}

button,
input,
select {
  font-family: inherit;
}

/* Top-card reference pass */
.hero-panel {
  padding: max(26px, env(safe-area-inset-top)) 23px 30px;
  background:
    radial-gradient(ellipse at 5% 56%, rgba(0, 159, 255, 0.96) 0 8%, rgba(0, 159, 255, 0.32) 19%, transparent 45%),
    radial-gradient(ellipse at 100% 56%, rgba(217, 41, 255, 0.96) 0 9%, rgba(217, 41, 255, 0.34) 20%, transparent 46%),
    radial-gradient(ellipse at 50% 112%, rgba(78, 0, 180, 0.9) 0 28%, transparent 58%),
    linear-gradient(145deg, #020049 0%, #14015d 46%, #370069 100%);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.hero-panel::before {
  inset: auto -18% -32px;
  height: 134px;
  opacity: 0.28;
}

.topbar {
  min-height: 76px;
}

.identity {
  gap: 16px;
}

.hero-panel .avatar {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(159, 56, 255, 0.72);
}

.identity strong {
  max-width: 172px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.02;
}

.identity span {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
}

.rank-chip {
  min-width: 132px;
  min-height: 84px;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 26px;
}

.rank-trophy {
  font-size: 34px;
}

.rank-arrow {
  font-size: 42px;
  font-weight: 500;
}

.mini-label {
  font-size: 17px;
  font-weight: 600;
}

.rank-chip b {
  font-size: 37px;
  font-weight: 900;
}

.countdown-card {
  grid-template-columns: minmax(0, 1.28fr) minmax(154px, 0.72fr);
  gap: 18px;
  margin-top: 22px;
  padding: 18px 18px 17px;
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 25px;
}

.countdown-main {
  gap: 14px;
}

.clock-icon {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.78);
  font-size: 30px;
}

.countdown-main span {
  font-size: 18px;
  font-weight: 700;
}

.timer {
  gap: 8px;
  margin-top: 4px;
}

.timer b {
  font-size: clamp(31px, 9.5vw, 45px);
  font-weight: 900;
}

.timer i {
  font-size: 32px;
  font-weight: 700;
}

.timer-labels {
  gap: 26px;
  margin-top: 4px;
}

.timer-labels span {
  font-size: 14px;
  font-weight: 600;
}

.countdown-main strong {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
}

.stats-grid {
  position: relative;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 17px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 207, 66, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.stat {
  position: relative;
  min-height: 104px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 10px 8px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.stat-icon {
  font-size: 14px;
  line-height: 1;
}

.stat b {
  margin-top: 7px;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.5px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.stat small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.countdown-card .stats-grid {
  position: relative;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 207, 66, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.countdown-card .stat {
  min-height: 104px;
  align-content: center;
  justify-items: center;
  padding: 10px 8px;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.countdown-card .stat + .stat {
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-card .stat span {
  justify-content: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.countdown-card .stat-icon {
  width: auto;
  height: auto;
  display: inline;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1;
}

.countdown-card .stat b {
  margin-top: 7px;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.5px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.countdown-card .stat small {
  display: block;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(176px, 1.14fr);
  align-items: center;
  gap: 12px;
}

.compact-countdown {
  justify-self: end;
  width: 100%;
  max-width: 218px;
  display: block;
  text-align: center;
}

.compact-countdown .next-match-line {
  justify-content: center;
  margin-top: 5px;
  font-size: 12px;
}

.compact-countdown .next-match-line b {
  padding: 2px 8px;
  font-size: 11px;
}

.compact-countdown em {
  margin-top: 0;
  font-size: 10px;
  text-align: center;
}

.compact-countdown .timer {
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}

.compact-countdown .timer b {
  font-size: 28px;
  line-height: 0.95;
}

.compact-countdown .timer i {
  font-size: 18px;
}

.compact-countdown .timer-labels {
  justify-content: center;
  gap: 21px;
  margin-top: 1px;
}

.compact-countdown .timer-labels span {
  font-size: 10px;
}

.compact-countdown strong {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}

.countdown-card {
  display: block;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 19px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.countdown-card .stats-grid {
  width: 100%;
  min-height: 76px;
}

.rank-chip {
  display: none;
}

@media (max-width: 430px) {
  .hero-panel {
    padding: max(14px, env(safe-area-inset-top)) 16px 18px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .topbar {
    min-height: 54px;
  }

  .identity {
    gap: 10px;
  }

  .hero-panel .avatar {
    width: 50px;
    height: 50px;
    box-shadow: 0 9px 16px rgba(0, 0, 0, 0.18), 0 0 0 2px rgba(159, 56, 255, 0.62);
  }

  .identity strong {
    font-size: 21px;
  }

  .identity span {
    margin-top: 3px;
    font-size: 14px;
  }

  .rank-chip {
    min-width: 102px;
    min-height: 54px;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .rank-trophy {
    font-size: 25px;
  }

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

  .rank-chip b {
    font-size: 26px;
  }

  .rank-arrow {
    font-size: 31px;
  }

  .countdown-card {
    grid-template-columns: minmax(0, 1fr) 98px;
    gap: 7px;
    margin-top: 11px;
    padding: 11px 10px;
    border-radius: 18px;
  }

  .countdown-main {
    gap: 7px;
    min-width: 0;
  }

  .clock-icon {
    width: 27px;
    height: 27px;
    font-size: 20px;
  }

  .countdown-main > div:not(.clock-icon) {
    min-width: 0;
  }

  .countdown-main span {
    font-size: 12px;
  }

  .timer {
    gap: 1px;
    margin-top: 1px;
  }

  .timer b {
    font-size: 24px;
  }

  .timer i {
    font-size: 17px;
  }

  .timer-labels {
    gap: 8px;
    margin-top: 1px;
  }

  .timer-labels span {
    font-size: 9px;
  }

  .countdown-main strong {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.22;
  }

  .stat {
    min-height: 70px;
    padding: 5px 0 5px 8px;
  }

  .stat span {
    gap: 3px;
    font-size: 8.5px;
  }

  .stat-icon {
    font-size: 11px;
  }

  .stat b {
    font-size: 27px;
  }
}

/* Production UX tightening pass */
@media (max-width: 430px) {
  .app-view {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .hero-panel {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 16px;
  }

  .countdown-card {
    margin-top: 9px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045));
  }

  .stat {
    min-height: 62px;
    background: rgba(255, 255, 255, 0.035);
  }

  .stat span {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 600;
  }

  .stat b {
    font-size: 25px;
  }

  .content {
    padding: 18px 18px 0;
  }

  .section-title {
    position: relative;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-right: 76px;
  }

  .section-title h2 {
    font-size: 33px;
    letter-spacing: -0.5px;
  }

  .section-title p {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 650;
  }

  .fixture-filter select {
    min-height: 46px;
    padding-left: 16px;
    font-size: 15px;
  }

  .match-list {
    gap: 14px;
  }

  .match-card {
    border-radius: 22px;
    box-shadow: 0 11px 26px rgba(35, 0, 60, 0.095);
  }

  .match-head {
    padding: 12px 14px 7px;
  }

  .match-meta {
    font-size: 11.5px;
  }

  .match-badge {
    min-height: 27px;
    padding: 0 11px;
    font-size: 13px;
  }

  .tag {
    min-height: 27px;
    font-size: 11.5px;
  }

  .teams {
    margin-top: 8px;
  }

  .team-code {
    min-height: 54px;
  }

  .score-input {
    height: 54px;
    font-size: 29px;
  }

  .scoreline > span {
    padding-top: 25px;
  }

  .prediction-zone {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px 14px 13px;
  }

  .social-insight {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 44, 255, 0.08), rgba(10, 165, 255, 0.08));
    color: #6f5f78;
    font-size: 11px;
    line-height: 1;
  }

  .community-icon {
    width: 22px;
    height: 22px;
  }

  .community-icon::before {
    top: 5px;
    left: 7px;
    width: 8px;
    height: 8px;
    box-shadow: -6px 8px 0 -2px #8d6cff, 6px 8px 0 -2px #0aa5ff;
  }

  .community-icon::after {
    right: 4px;
    bottom: 3px;
    left: 4px;
    height: 6px;
  }

  .social-insight b {
    font-size: 11px;
    white-space: nowrap;
  }

  .outcome-btn {
    min-height: 51px;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.1;
  }

  .match-foot {
    min-height: 56px;
    padding: 9px 14px;
  }

  .match-foot small {
    font-size: 12.5px;
  }

  .save-btn {
    min-width: 116px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 13px;
  }

  .bottom-nav {
    right: 18px;
    bottom: 10px;
    left: 18px;
    width: min(calc(100% - 36px), 394px);
    padding: 6px;
    border-radius: 24px;
  }

  .nav-btn {
    min-height: 58px;
    border-radius: 18px;
    font-size: 11px;
  }

  .nav-btn .icon {
    width: 28px;
    height: 28px;
    font-size: 21px;
  }
}

/* World-class micro polish */
@media (max-width: 430px) {
  .app-view {
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }

  .hero-panel {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 14px;
  }

  .topbar {
    min-height: 48px;
  }

  .hero-panel .avatar {
    width: 46px;
    height: 46px;
  }

  .identity strong {
    font-size: 20px;
  }

  .identity span {
    font-size: 13px;
  }

  .rank-chip {
    min-width: 96px;
    min-height: 50px;
    border-radius: 17px;
  }

  .rank-trophy {
    font-size: 22px;
  }

  .rank-chip b {
    font-size: 24px;
  }

  .rank-arrow {
    font-size: 28px;
  }

  .countdown-card {
    margin-top: 8px;
    padding: 9px 10px;
  }

  .clock-icon {
    width: 25px;
    height: 25px;
    font-size: 18px;
  }

  .timer b {
    font-size: 22px;
  }

  .timer i {
    font-size: 15px;
  }

  .countdown-main strong {
    font-size: 9.5px;
  }

  .stat {
    min-height: 58px;
  }

  .stat b {
    font-size: 24px;
  }

  .section-title h2 {
    font-size: 28px;
    letter-spacing: -0.2px;
  }

  .section-title p {
    max-width: 210px;
    font-size: 11.5px;
    line-height: 1.25;
  }

  .fixture-filter {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 66px;
  }

  .fixture-filter select {
    min-height: 28px;
    padding-right: 22px;
    padding-left: 9px;
    border-color: rgba(124, 44, 255, 0.1);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 247, 255, 0.92));
    color: #4e345d;
    font-size: 10px;
    font-weight: 850;
    box-shadow: 0 6px 12px rgba(35, 0, 60, 0.045);
  }

  .fixture-filter span {
    right: 8px;
    font-size: 12px;
  }

  .fixture-days {
    margin: -2px -18px 12px;
    padding: 2px 18px 6px;
    gap: 8px;
  }

  .demo-overview-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-top: -1px;
    padding: 10px 12px;
    border-radius: 15px;
  }

  .demo-overview-banner b {
    font-size: 12px;
  }

  .demo-overview-banner span {
    font-size: 10px;
    text-align: left;
  }

  .day-chip {
    min-width: 82px;
    min-height: 48px;
    padding: 7px 9px;
    border-radius: 15px;
  }

  .day-chip span {
    font-size: 13px;
  }

  .day-chip b {
    font-size: 9px;
  }

  .tag {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10.5px;
    font-weight: 850;
    background: rgba(0, 222, 135, 0.12);
  }

  .tag::after {
    width: 6px;
    height: 6px;
  }

  .team-code {
    background: linear-gradient(135deg, #4d0089, #8c19ee);
    box-shadow: 0 9px 18px rgba(76, 0, 143, 0.14);
  }

  .team-away .team-code {
    background: linear-gradient(135deg, #096bd0, #2b84ee);
    box-shadow: 0 9px 18px rgba(0, 105, 214, 0.13);
  }

  .score-stepper button {
    width: 21px;
    height: 21px;
    border-color: #e5deea;
    color: rgba(35, 0, 47, 0.72);
    font-size: 15px;
    box-shadow: 0 4px 9px rgba(25, 0, 56, 0.06);
  }

  .score-input {
    border-color: #e4ddea;
    box-shadow: none;
  }

  .match-card {
    box-shadow: 0 10px 22px rgba(35, 0, 60, 0.08);
  }

  .bottom-nav {
    padding: 5px;
  }

  .nav-btn {
    min-height: 54px;
  }

  .nav-btn .icon {
    width: 26px;
    height: 26px;
    font-size: 19px;
  }
}

/* Match card proportional scale-down */
@media (max-width: 430px) {
  .match-card {
    border-radius: 22px;
  }

  .match-head {
    padding: 12px 14px 8px;
  }

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

  .match-badge {
    min-height: 28px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 14px;
  }

  .tag {
    min-height: 28px;
    padding: 0 11px;
    font-size: 12px;
  }

  .teams {
    grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
    gap: 10px;
    margin: 12px 14px 0;
  }

  .team {
    gap: 7px;
  }

  .team-code {
    min-height: 58px;
    border-radius: 17px;
    padding: 7px;
  }

  .flag {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 21px;
  }

  .team-code b {
    font-size: 22px;
  }

  .team-name {
    font-size: 15px;
  }

  .scoreline {
    grid-template-columns: 54px 12px 54px;
    gap: 8px;
  }

  .score-control {
    gap: 5px;
  }

  .score-stepper {
    gap: 6px;
  }

  .score-stepper button {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .score-input {
    height: 58px;
    border-radius: 16px;
    font-size: 31px;
  }

  .scoreline > span {
    padding-top: 27px;
    font-size: 23px;
  }

  .prediction-zone {
    grid-template-columns: 0.94fr 2.06fr;
    gap: 10px;
    align-items: center;
    padding: 17px 14px 16px;
  }

  .social-insight {
    display: grid;
    grid-template-columns: 28px 1fr;
    width: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
  }

  .social-insight b {
    font-size: 12px;
    white-space: normal;
  }

  .community-icon {
    width: 28px;
    height: 28px;
  }

  .outcomes {
    gap: 7px;
  }

  .outcome-btn {
    min-height: 58px;
    border-radius: 16px;
    font-size: 13px;
  }

  .match-foot {
    min-height: 62px;
    padding: 10px 14px;
  }

  .stadium-icon {
    width: 26px;
    height: 20px;
    border-radius: 0 0 7px 7px;
  }

  .stadium-icon::before {
    top: -6px;
    left: 2px;
    width: 19px;
    height: 8px;
  }

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

  .save-btn {
    min-width: 150px;
    min-height: 47px;
    border-radius: 14px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .teams {
    grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr);
    gap: 7px;
  }

  .team-code {
    grid-template-columns: 25px 1fr;
    gap: 4px;
    min-height: 52px;
    padding: 5px;
  }

  .flag {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .team-code b {
    font-size: 16px;
    letter-spacing: -0.2px;
  }

  .scoreline {
    grid-template-columns: 48px 10px 48px;
    gap: 6px;
  }

  .score-input {
    height: 52px;
    font-size: 28px;
  }
}

/* Compact match card pass */
@media (max-width: 430px) {
  .match-list {
    gap: 12px;
  }

  .match-card {
    border-radius: 18px;
  }

  .match-head {
    padding: 8px 12px 5px;
  }

  .match-meta {
    gap: 5px;
    font-size: 10px;
  }

  .match-badge {
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
    border-radius: 11px;
  }

  .tag {
    min-height: 22px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .teams {
    grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
    gap: 6px;
    margin: 6px 12px 0;
  }

  .team {
    gap: 4px;
  }

  .team-code {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    min-height: 0;
    gap: 8px;
    border-radius: 13px;
    padding: 2px 8px;
  }

  .team-away .team-code {
    justify-content: center;
  }

  .flag {
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    object-fit: cover;
    transform: translateZ(0);
  }

  .flag-emoji {
    font-size: 19px;
  }

  .team-code b {
    min-width: 0;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
  }

  .team-name {
    font-size: 11px;
  }

  .scoreline {
    grid-template-columns: 48px 9px 48px;
    gap: 6px;
    align-items: center;
    align-self: start;
    height: 40px;
    margin-top: 0;
    transform: translateY(0);
  }

  .score-control {
    gap: 0;
    height: 40px;
  }

  .score-stepper {
    display: none;
  }

  .score-stepper button {
    display: none;
  }

  .score-input {
    height: 40px;
    border-radius: 13px;
    font-size: 29px;
    line-height: 40px;
  }

  .scoreline > span {
    padding-top: 0;
    font-size: 20px;
  }

  .prediction-zone {
    grid-template-columns: 0.8fr 2.2fr;
    gap: 7px;
    padding: 8px 12px 9px;
  }

  .social-insight {
    grid-template-columns: 21px 1fr;
    gap: 5px;
    font-size: 9px;
  }

  .community-icon {
    width: 21px;
    height: 21px;
  }

  .social-insight b {
    font-size: 9.5px;
  }

  .outcomes {
    gap: 5px;
  }

  .outcome-btn {
    min-height: 40px;
    border-radius: 12px;
    font-size: 10px;
  }

  .match-foot {
    min-height: 45px;
    padding: 7px 12px;
  }

  .stadium-icon {
    width: 20px;
    height: 15px;
  }

  .stadium-icon::before {
    top: -5px;
    width: 14px;
    height: 6px;
  }

  .match-foot small {
    gap: 5px;
    font-size: 10.5px;
  }

  .save-btn {
    min-width: 92px;
    min-height: 34px;
    border-radius: 10px;
    font-size: 11px;
  }
}

/* Header stat overflow fix + per-match deadline polish */
@media (max-width: 430px) {
  .countdown-card {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 5px;
  }

  .countdown-main {
    min-width: 0;
  }

  .countdown-main > div:not(.clock-icon) {
    min-width: 0;
  }

  .countdown-main strong {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .stats-grid {
    min-width: 0;
    width: 112px;
    border-radius: 15px;
  }

  .stat {
    min-width: 0;
    min-height: 64px;
    overflow: hidden;
    padding: 6px 3px;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .stat span {
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 8px;
    line-height: 1;
  }

  .stat-icon {
    flex: 0 0 auto;
    font-size: 9px;
    line-height: 1;
  }

  .stat b {
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    margin-top: 5px;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.4px;
    font-variant-numeric: tabular-nums;
  }

  .stat small {
    margin-top: 5px;
    font-size: 7px;
  }

  .countdown-card .stats-grid {
    width: 112px;
    border-radius: 15px;
  }

  .countdown-card .stat {
    min-height: 64px;
    padding: 6px 3px;
    background: transparent;
  }

  .countdown-card .stat span {
    gap: 2px;
    font-size: 8px;
    font-weight: 800;
  }

  .countdown-card .stat-icon {
    font-size: 9px;
  }

  .countdown-card .stat b {
    margin-top: 5px;
    font-size: 22px;
  }

  .countdown-card .stat small {
    margin-top: 5px;
    font-size: 7px;
  }

  .topbar {
    grid-template-columns: minmax(0, 0.72fr) minmax(170px, 1.28fr);
    gap: 7px;
    min-height: 74px;
  }

  .identity {
    gap: 8px;
  }

  .hero-panel .avatar {
    width: 42px;
    height: 42px;
  }

  .identity strong {
    font-size: 16px;
  }

  .identity span {
    font-size: 11px;
  }

  .compact-countdown {
    max-width: 196px;
  }

  .compact-countdown .next-match-line {
    gap: 3px;
    margin-top: 4px;
    font-size: 10px;
  }

  .compact-countdown .next-match-line b {
    padding: 2px 7px;
    font-size: 10px;
  }

  .compact-countdown em {
    font-size: 9px;
  }

  .compact-countdown .timer {
    gap: 2px;
  }

  .compact-countdown .timer b {
    font-size: 23px;
  }

  .compact-countdown .timer i {
    font-size: 15px;
  }

  .compact-countdown .timer-labels {
    gap: 15px;
  }

  .compact-countdown .timer-labels span {
    font-size: 9px;
  }

  .compact-countdown strong {
    font-size: 10px;
    white-space: normal;
  }

  .countdown-card {
    margin-top: 9px;
  }

  .countdown-card .stats-grid {
    width: 100%;
    min-height: 60px;
  }

  .match-foot small {
    display: flex;
    flex: 1 1 auto;
    max-width: calc(100% - 108px);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .venue-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .deadline-mini {
    flex: 0 0 auto;
    color: #80658a;
    font-weight: 850;
    white-space: nowrap;
  }
}

/* Fixed bottom app tab bar */
.app-view {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid rgba(35, 0, 47, 0.08);
  border-radius: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(106, 22, 255, 0.1), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(255, 40, 130, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 253, 0.98)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 30px rgba(35, 0, 60, 0.1);
  backdrop-filter: blur(20px);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.nav-btn {
  --nav-color: #7a5d83;
  --nav-color-2: #b091bc;
  --nav-tint: rgba(122, 93, 131, 0.08);
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #8b7594;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-btn .icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 0;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-btn .icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn::before {
  position: absolute;
  top: 4px;
  width: 22px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: transparent;
}

.nav-predict {
  --nav-color: #6516e8;
  --nav-color-2: #12a8ff;
  --nav-tint: rgba(101, 22, 232, 0.11);
}

.nav-rank {
  --nav-color: #d68a00;
  --nav-color-2: #ffcf42;
  --nav-tint: rgba(255, 182, 39, 0.13);
}

.nav-points {
  --nav-color: #0877e6;
  --nav-color-2: #10d6e8;
  --nav-tint: rgba(8, 119, 230, 0.11);
}

.nav-profile {
  --nav-color: #b226c8;
  --nav-color-2: #ff4fa3;
  --nav-tint: rgba(178, 38, 200, 0.11);
}

.nav-rank .icon,
.nav-points .icon,
.nav-profile .icon {
  color: color-mix(in srgb, var(--nav-color) 58%, #7a6683);
}

.nav-btn.active {
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--nav-color-2) 18%, transparent), transparent 46%),
    linear-gradient(180deg, var(--nav-tint), rgba(255, 255, 255, 0));
  color: var(--nav-color);
  font-weight: 850;
}

.nav-btn.active::before {
  background: linear-gradient(90deg, var(--nav-color), var(--nav-color-2));
  box-shadow: 0 0 14px color-mix(in srgb, var(--nav-color) 34%, transparent);
}

.nav-btn.active .icon {
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.65)),
    linear-gradient(135deg, color-mix(in srgb, var(--nav-color) 18%, #fff), color-mix(in srgb, var(--nav-color-2) 15%, #fff));
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--nav-color) 22%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--nav-color) 16%, transparent);
  transform: translateY(-1px);
}

.nav-btn.active .icon svg {
  stroke-width: 2.25;
}

/* Next-match countdown + kickoff lock states */
.countdown-main em {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}

.next-match-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.next-match-line b {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.next-match-line i {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 430px) {
  .hero-panel {
    padding-bottom: 10px;
  }

  .countdown-card {
    min-height: 0;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .countdown-main {
    gap: 6px;
  }

  .countdown-main em {
    margin-top: 2px;
    font-size: 9px;
  }

  .timer {
    margin-top: 0;
  }

  .timer b {
    font-size: 21px;
  }

  .countdown-main strong {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.18;
  }

  .next-match-line {
    font-size: 10px;
  }

  .next-match-line b {
    padding: 2px 6px;
    font-size: 10px;
  }

  .stats-grid {
    align-self: stretch;
  }
}

.match-card.locked {
  opacity: 0.72;
}

.tag.locked {
  background: rgba(231, 48, 91, 0.12);
  color: #c9244f;
}

.tag.locked::after {
  background: #e7305b;
}

.score-input:disabled,
.outcome-btn:disabled,
.save-btn:disabled {
  cursor: not-allowed;
}

.score-input:disabled {
  background: #f5f0f6;
  color: rgba(45, 0, 80, 0.46);
  -webkit-text-fill-color: rgba(45, 0, 80, 0.46);
}

.outcome-btn:disabled {
  color: rgba(45, 0, 80, 0.42);
  background: rgba(250, 247, 252, 0.9);
  box-shadow: none;
}

.save-btn.locked,
.save-btn:disabled {
  background: #ece4ee;
  color: #8b7394;
  box-shadow: none;
}

/* Balanced outcome buttons without social insight row */
.prediction-zone {
  display: block;
  padding: 8px 12px 10px;
}

.outcomes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.outcome-btn {
  min-height: 44px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 13px;
  font-size: 11px;
  line-height: 1;
}

.outcome-btn span {
  display: block;
  color: #2d0050;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.outcome-btn small {
  display: block;
  color: #b87500;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 0 10px rgba(255, 190, 36, 0.22);
  text-transform: uppercase;
}

.draw-btn small {
  color: #8b6f95;
  font-size: 9px;
  text-transform: none;
}

.outcome-btn.active {
  border-color: #741cff;
  background:
    radial-gradient(circle at 50% 0%, rgba(10, 165, 255, 0.12), transparent 56%),
    #fff;
}

.outcome-btn.active small {
  color: #d28a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(255, 196, 45, 0.35);
}

/* Automatic prediction status derived from score */
.prediction-status {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label result"
    "label sub";
  align-items: center;
  gap: 1px 10px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 44, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 196, 45, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(124, 44, 255, 0.075), rgba(10, 165, 255, 0.055)),
    #fff;
  box-shadow: 0 8px 18px rgba(25, 0, 56, 0.045);
}

.prediction-status span {
  grid-area: label;
  color: #80698a;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

.prediction-status b {
  grid-area: result;
  justify-self: end;
  color: #2d0050;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.prediction-status small {
  grid-area: sub;
  justify-self: end;
  color: #b87500;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.35px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(255, 196, 45, 0.28);
  text-transform: uppercase;
}

.prediction-status.empty {
  background: #fff;
}

.prediction-status.empty b {
  color: #8b7394;
  font-size: 12px;
}

.prediction-status.empty small {
  color: #8b7394;
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

.prediction-status.draw small {
  color: #8b6f95;
  font-size: 9px;
  text-transform: none;
  text-shadow: none;
}

.prediction-status.home {
  border-color: rgba(116, 28, 255, 0.34);
}

.prediction-status.away {
  border-color: rgba(10, 136, 255, 0.32);
}

.prediction-status.home b,
.prediction-status.away b,
.prediction-status.draw b {
  color: #250035;
}

/* Rich auto-calculation insight card */
.prediction-status {
  min-height: 62px;
  position: relative;
  grid-template-columns: 38px minmax(0, 1fr) minmax(104px, 0.82fr);
  grid-template-areas: "icon result crowd";
  gap: 9px;
  padding: 9px 10px;
  border-color: rgba(124, 44, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 50%, rgba(124, 44, 255, 0.08), transparent 38%),
    radial-gradient(circle at 100% 50%, rgba(10, 165, 255, 0.07), transparent 40%),
    #fff;
}

.status-save-state {
  position: absolute;
  top: 8px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 112px;
  padding: 0 10px;
  border: 1px solid rgba(0, 194, 129, 0.2);
  border-radius: 999px;
  background: rgba(235, 255, 247, 0.96);
  color: #00835e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 153, 103, 0.08);
  pointer-events: none;
}

.prediction-status.is-editing .status-save-state {
  border-color: rgba(124, 44, 255, 0.22);
  background: rgba(246, 239, 255, 0.96);
  color: #6215d8;
  box-shadow: 0 6px 16px rgba(124, 44, 255, 0.1);
}

.prediction-status.sync-offline .status-save-state,
.prediction-status.sync-syncing .status-save-state {
  border-color: rgba(255, 176, 0, 0.24);
  background: rgba(255, 248, 231, 0.98);
  color: #9c6a00;
  box-shadow: 0 6px 16px rgba(255, 176, 0, 0.08);
}

.prediction-status.sync-rejected .status-save-state {
  border-color: rgba(231, 48, 91, 0.25);
  background: rgba(255, 242, 246, 0.98);
  color: #d62956;
  box-shadow: 0 6px 16px rgba(231, 48, 91, 0.08);
}

.prediction-status.sync-synced .status-save-state {
  border-color: rgba(0, 194, 129, 0.22);
  background: rgba(235, 255, 247, 0.98);
  color: #00835e;
}

.status-auto-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f4ecff, #fff);
  color: #741cff;
  box-shadow: inset 0 0 0 2px rgba(124, 44, 255, 0.07), 0 7px 15px rgba(124, 44, 255, 0.1);
}

.status-auto-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-auto-icon.logo-icon {
  overflow: hidden;
  background: linear-gradient(145deg, #39105f 0%, #741cff 52%, #0aa5ff 140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(116, 28, 255, 0.22);
}

.status-auto-icon img {
  display: block;
  width: 19px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
}

.status-result {
  grid-area: result;
  min-width: 0;
  justify-self: stretch;
  text-align: left;
}

.status-result span,
.status-crowd > div > b {
  display: block;
  color: #6d19ef;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
}

.status-result span {
  text-align: left;
}

.status-result small {
  text-align: left;
}

.status-result b {
  width: 100%;
  grid-area: auto;
  justify-self: stretch;
  display: block;
  margin-top: 3px;
  color: #250035;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.06;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-result small {
  width: 100%;
  grid-area: auto;
  justify-self: stretch;
  display: block;
  margin-top: 3px;
  color: #80698a;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

.status-crowd {
  grid-area: crowd;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding-left: 8px;
  border-left: 1px solid rgba(124, 44, 255, 0.12);
}

.status-crowd-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 50%;
  background: #f6efff;
  box-shadow: inset 0 0 0 1px rgba(124, 44, 255, 0.08);
}

.status-crowd-icon::before,
.status-crowd-icon::after {
  position: absolute;
  content: "";
  background: linear-gradient(135deg, #741cff, #a04cff);
}

.status-crowd-icon::before {
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 7px 0 0 #741cff;
}

.status-crowd-icon::after {
  right: 7px;
  bottom: 7px;
  left: 7px;
  height: 7px;
  border-radius: 8px 8px 3px 3px;
}

.status-crowd > div {
  min-width: 0;
}

.status-crowd > b {
  min-width: 0;
  color: #250035;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
}

.status-crowd > div > b {
  color: #250035;
  font-size: 12px;
}

.status-crowd small {
  display: block;
  margin-top: 3px;
  color: #80698a;
  font-size: 9.5px;
  font-weight: 820;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

.prediction-status.empty .status-result b {
  color: #8b7394;
  font-size: 13px;
}

.prediction-status.empty .status-crowd > div > b,
.prediction-status.empty .status-crowd small {
  color: #8b7394;
}

.prediction-status.home .status-result span,
.prediction-status.away .status-result span,
.prediction-status.draw .status-result span {
  color: #741cff;
}

.prediction-status.home .status-result b,
.prediction-status.away .status-result b,
.prediction-status.draw .status-result b {
  color: #250035;
}

@media (max-width: 430px) {
  .prediction-status {
    min-height: 52px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
  }

  .prediction-status.has-save-state .status-result {
    padding-right: 86px;
  }

  .status-save-state {
    top: 7px;
    right: 8px;
    min-height: 20px;
    max-width: 104px;
    padding: 0 8px;
    font-size: 10px;
  }

  .status-auto-icon {
    width: 28px;
    height: 28px;
  }

  .status-auto-icon svg {
    width: 18px;
    height: 18px;
  }

  .status-auto-icon img {
    width: 15px;
    height: 21px;
  }

  .status-result span {
    font-size: 8.5px;
  }

  .status-result b {
    max-width: 100%;
    font-size: 12px;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-result small {
    font-size: 8.5px;
    white-space: nowrap;
  }

  .status-crowd {
    grid-template-columns: 16px auto;
    gap: 4px;
    align-self: center;
    padding: 5px 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(124, 44, 255, 0.075);
  }

  .status-crowd-icon {
    width: 16px;
    height: 16px;
  }

  .status-crowd-icon::before {
    top: 4px;
    left: 4px;
    width: 4px;
    height: 4px;
    box-shadow: 4px 0 0 #741cff;
  }

  .status-crowd-icon::after {
    right: 3px;
    bottom: 3px;
    left: 3px;
    height: 4px;
  }

  .status-crowd > b {
    color: #3a0b4e;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }
}

.toast {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

@media (max-width: 430px) {
  .app-view {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .nav-btn {
    min-height: 56px;
    border-radius: 16px;
    font-size: 11px;
  }

  .nav-btn .icon {
    width: 29px;
    height: 29px;
  }
}

svg.stadium-icon {
  width: 27px;
  height: 18px;
  flex: 0 0 27px;
  border: 0;
  border-radius: 0;
  color: #7f6b8d;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  overflow: visible;
}

svg.stadium-icon * {
  vector-effect: non-scaling-stroke;
}

@media (max-width: 430px) {
  svg.stadium-icon {
    width: 22px;
    height: 14px;
    flex-basis: 22px;
    stroke-width: 2.1;
  }
}

.save-action {
  display: flex;
  position: relative;
  justify-items: end;
  align-items: center;
  flex: 0 0 auto;
}

.save-btn {
  min-width: 76px;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(0, 171, 111, 0.22);
  border-radius: 11px;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(135deg, #16d47d 0%, #009e68 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 158, 104, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.save-btn.saved {
  border-color: rgba(209, 133, 0, 0.28);
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.68), transparent 38%),
    linear-gradient(135deg, #ffd568 0%, #ff9f1a 100%);
  color: #4a2500;
  box-shadow: 0 10px 20px rgba(255, 159, 26, 0.2);
}

.save-btn.editing {
  border-color: rgba(0, 171, 111, 0.22);
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(135deg, #16d47d 0%, #009e68 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 158, 104, 0.2);
}

.match-card.is-saved:not(.locked) .score-input:disabled {
  background: #fff;
  color: #2d0050;
  -webkit-text-fill-color: #2d0050;
  opacity: 1;
}

.match-card.is-saved:not(.locked) .score-input:disabled::placeholder {
  color: #2d0050;
  -webkit-text-fill-color: #2d0050;
}

.scoreline {
  position: relative;
}

.match-card.has-live-score .teams {
  margin-bottom: 6px;
}

.live-score {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  z-index: 2;
  min-width: 48px;
  transform: translateX(-50%);
  color: #ff1f2d;
  font-weight: 950;
  line-height: 0.92;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 10px rgba(255, 31, 45, 0.16);
}

.live-score span,
.live-score b {
  display: block;
}

.live-score span {
  font-size: 9px;
}

.live-score b {
  margin-top: 1px;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.live-score.final {
  color: #00835e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 10px rgba(0, 194, 129, 0.14);
}

.live-score.waiting {
  color: #8b7394;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92);
}

.live-score.waiting span {
  color: #ff1f2d;
}

.live-score.waiting b {
  margin-top: 2px;
  color: #8b7394;
  font-size: 8.5px;
  letter-spacing: 0;
  white-space: nowrap;
}

.save-btn.locked,
.save-btn:disabled {
  border-color: transparent;
  background: #ece4ee;
  color: #8b7394;
  box-shadow: none;
}

@media (max-width: 430px) {
  .save-btn {
    min-width: 68px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11.5px;
  }

  .live-score {
    top: calc(100% + 1px);
    min-width: 44px;
  }

  .live-score span {
    font-size: 8.5px;
  }

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

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

/* Premium rank board */
.rank-content {
  gap: 10px;
}

.rank-section-title {
  align-items: center;
  margin-bottom: 6px;
}

.rank-section-title h2 {
  max-width: none;
  font-size: 24px;
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.rank-title-lockup {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rank-title-lockup::after {
  position: absolute;
  right: -36px;
  bottom: -5px;
  width: 82px;
  height: 5px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd75f, #7b22ff, #19a6ff);
  opacity: 0.9;
}

.rank-title-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(145deg, #6f1dff 0%, #24105c 56%, #0c8eff 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(123, 34, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.rank-title-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.24));
}

.rank-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(123, 34, 255, 0.1);
  color: #6a22ff;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.rank-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 94px;
  height: 39px;
  padding: 0 13px;
  border: 1px solid rgba(126, 102, 143, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  color: #3a0b4e;
  box-shadow: 0 8px 18px rgba(53, 0, 60, 0.05);
  font-size: 13px;
  font-weight: 850;
}

.rank-filter-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #80688f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.rank-board {
  display: grid;
  gap: 10px;
}

.rank-progress {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 82px 70px 16px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 11px 13px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 78% 20%, rgba(138, 69, 255, 0.55), transparent 38%),
    linear-gradient(105deg, #32108f 0%, #250061 58%, #5813e9 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(55, 0, 123, 0.22);
}

.rank-progress-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  color: #39a4ff;
}

.rank-progress-icon span {
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
  box-shadow: 0 0 10px rgba(57, 164, 255, 0.32);
}

.rank-progress-icon span:nth-child(1) { height: 13px; opacity: 0.62; }
.rank-progress-icon span:nth-child(2) { height: 23px; }
.rank-progress-icon span:nth-child(3) { height: 17px; opacity: 0.78; }

.rank-progress-copy {
  min-width: 0;
}

.rank-progress-copy b,
.rank-progress-copy span,
.rank-progress strong {
  display: block;
}

.rank-progress-copy b {
  font-size: 12px;
  line-height: 1.15;
}

.rank-progress-copy span,
.rank-progress strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

.rank-progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.rank-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, #e49cff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.48);
}

.rank-progress > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.rank-list {
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 42px minmax(0, 1fr) 34px 45px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(126, 102, 143, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(53, 0, 60, 0.06);
}

.rank-row.rank-1 { border-color: rgba(239, 171, 0, 0.58); }
.rank-row.rank-2 { border-color: rgba(165, 174, 206, 0.36); }
.rank-row.rank-3 { border-color: rgba(203, 110, 35, 0.34); }

.rank-row.rank-1,
.rank-row.rank-2,
.rank-row.rank-3 {
  grid-template-columns: 56px 50px minmax(0, 1fr) 40px 50px;
  min-height: 70px;
  padding: 11px 11px;
  border-width: 1.5px;
  box-shadow: 0 12px 24px rgba(53, 0, 60, 0.09);
}

.rank-row.rank-1 {
  background:
    radial-gradient(circle at 26% 30%, rgba(255, 206, 56, 0.16), transparent 38%),
    linear-gradient(100deg, rgba(255, 250, 229, 0.96), #fff);
  box-shadow: 0 14px 26px rgba(238, 155, 0, 0.13);
}

.rank-row.rank-2 {
  background:
    radial-gradient(circle at 26% 30%, rgba(168, 181, 226, 0.19), transparent 38%),
    linear-gradient(100deg, rgba(245, 247, 255, 0.98), #fff);
  box-shadow: 0 12px 24px rgba(143, 153, 198, 0.13);
}

.rank-row.rank-3 {
  background:
    radial-gradient(circle at 26% 30%, rgba(219, 121, 46, 0.16), transparent 38%),
    linear-gradient(100deg, rgba(255, 246, 239, 0.98), #fff);
  box-shadow: 0 12px 24px rgba(200, 100, 34, 0.12);
}

.rank-row.me {
  border-color: #7b22ff;
  background:
    radial-gradient(circle at 12% 20%, rgba(123, 34, 255, 0.11), transparent 45%),
    linear-gradient(100deg, #fff, #fbf7ff);
  box-shadow: inset 0 0 0 1px rgba(123, 34, 255, 0.7), 0 10px 24px rgba(123, 34, 255, 0.12);
}

.rank-row .leader-pos {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fbf8ff;
  color: #2d0050;
  box-shadow: inset 0 0 0 1px rgba(126, 102, 143, 0.08);
  font-size: 17px;
  line-height: 1;
}

.rank-row .leader-pos.top {
  width: 48px;
  height: 58px;
  margin: -9px 0 -9px -10px;
  border-radius: 13px 0 0 13px;
  color: #fff;
  box-shadow: none;
  align-content: end;
  justify-items: center;
  padding-bottom: 9px;
  overflow: visible;
}

.rank-row.rank-1 .leader-pos.top,
.rank-row.rank-2 .leader-pos.top,
.rank-row.rank-3 .leader-pos.top {
  width: 56px;
  height: 70px;
  margin: -11px 0 -11px -11px;
  padding-bottom: 12px;
  font-size: 19px;
}

.rank-row .leader-pos.gold {
  background: linear-gradient(180deg, #ffd553 0%, #ee9b00 100%);
}

.rank-row .leader-pos.silver {
  background: linear-gradient(180deg, #eef2ff 0%, #9ea8d8 100%);
}

.rank-row .leader-pos.bronze {
  background: linear-gradient(180deg, #ffbb70 0%, #c86422 100%);
}

.rank-row.me .leader-pos {
  background: linear-gradient(160deg, #7e1fff 0%, #4e18ee 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(93, 24, 238, 0.22);
}

.crown-icon {
  width: 36px;
  height: 30px;
  overflow: visible;
  filter: drop-shadow(0 4px 5px rgba(53, 0, 60, 0.26));
}

.crown-icon .crown-back {
  opacity: 0.35;
}

.crown-icon.gold .crown-back {
  fill: #fff3a6;
}

.crown-icon.gold .crown-face {
  fill: #ffbd17;
  stroke: #a95700;
  stroke-width: 1.4;
}

.crown-icon.gold .crown-base {
  fill: #cc7400;
  stroke: #8a4400;
  stroke-width: 1.2;
}

.crown-icon.gold .crown-jewel {
  fill: #fff7c7;
  stroke: #b86600;
  stroke-width: 1;
}

.crown-icon.silver .crown-back {
  fill: #fff;
}

.crown-icon.silver .crown-face {
  fill: #cbd4ff;
  stroke: #6f78a8;
  stroke-width: 1.4;
}

.crown-icon.silver .crown-base {
  fill: #7f88b8;
  stroke: #5f6795;
  stroke-width: 1.2;
}

.crown-icon.silver .crown-jewel {
  fill: #fff;
}

.crown-icon.bronze .crown-back {
  fill: #ffd7a6;
}

.crown-icon.bronze .crown-face {
  fill: #d66f25;
  stroke: #87390f;
  stroke-width: 1.4;
}

.crown-icon.bronze .crown-base {
  fill: #963f12;
  stroke: #6b2b0a;
  stroke-width: 1.2;
}

.crown-icon.bronze .crown-jewel {
  fill: #ffe4ba;
}

.crown-icon .crown-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-linecap: round;
  stroke-width: 3.6;
}

.pos-crown {
  position: absolute;
  top: 6px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 24px;
  transform: translateX(-50%);
}

.pos-crown .crown-icon {
  width: 34px;
  height: 27px;
}

.pos-number {
  position: relative;
  z-index: 1;
  font-weight: 950;
}

.leader-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(145deg, #23004d, #7b22ff);
  color: #fff;
  box-shadow: 0 4px 10px rgba(53, 0, 60, 0.16);
  font-size: 21px;
}

.rank-row.rank-1 .leader-avatar,
.rank-row.rank-2 .leader-avatar,
.rank-row.rank-3 .leader-avatar {
  width: 46px;
  height: 46px;
  font-size: 25px;
  box-shadow: 0 8px 17px rgba(53, 0, 60, 0.2);
}

.leader-avatar .avatar {
  width: 38px;
  height: 38px;
  border: 2px solid #7b22ff;
  box-shadow: none;
}

.leader-avatar em {
  position: absolute;
  right: -4px;
  bottom: -4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #7b22ff;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.25;
}

.rank-row .leader-name b {
  color: #241039;
  font-size: 14px;
  line-height: 1.16;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row.rank-1 .leader-name b,
.rank-row.rank-2 .leader-name b,
.rank-row.rank-3 .leader-name b {
  font-size: 16px;
}

.rank-row.me .leader-name b {
  color: #6a22ff;
}

.rank-row .leader-name span {
  margin-top: 2px;
  color: #80688f;
  font-size: 10.5px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-move {
  justify-self: center;
  min-width: 24px;
  color: #80688f;
  font-size: 12px;
  font-weight: 950;
}

.rank-move span {
  margin-right: 2px;
}

.rank-move.up {
  color: #0ab96f;
}

.rank-move.down {
  color: #ff305d;
}

.rank-row .leader-points {
  text-align: right;
}

.rank-row .leader-points b {
  color: #241039;
  font-size: 19px;
  line-height: 1;
}

.rank-row.rank-1 .leader-points b,
.rank-row.rank-2 .leader-points b,
.rank-row.rank-3 .leader-points b {
  font-size: 22px;
}

.rank-row.rank-1 .leader-points,
.rank-row.rank-2 .leader-points,
.rank-row.rank-3 .leader-points {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  text-align: center;
}

.rank-row.rank-1 .leader-points {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(145deg, rgba(255, 235, 142, 0.95), rgba(255, 181, 24, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 190, 27, 0.48), 0 8px 16px rgba(238, 155, 0, 0.13);
}

.rank-row.rank-2 .leader-points {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(145deg, rgba(237, 242, 255, 0.98), rgba(151, 164, 211, 0.18));
  box-shadow: inset 0 0 0 1px rgba(151, 164, 211, 0.38), 0 8px 16px rgba(143, 153, 198, 0.12);
}

.rank-row.rank-3 .leader-points {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(145deg, rgba(255, 220, 182, 0.95), rgba(210, 104, 31, 0.18));
  box-shadow: inset 0 0 0 1px rgba(210, 104, 31, 0.36), 0 8px 16px rgba(200, 100, 34, 0.12);
}

.rank-row.rank-1 .leader-points::before,
.rank-row.rank-2 .leader-points::before,
.rank-row.rank-3 .leader-points::before {
  display: block;
  width: 18px;
  height: 3px;
  margin-bottom: 1px;
  content: "";
  border-radius: 999px;
  background: currentColor;
  opacity: 0.22;
}

.rank-row.rank-1 .leader-points b,
.rank-row.rank-2 .leader-points b,
.rank-row.rank-3 .leader-points b {
  font-size: 23px;
  line-height: 0.92;
}

.rank-row.rank-1 .leader-points b {
  color: #8f4f00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rank-row.rank-2 .leader-points b {
  color: #4d5687;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.rank-row.rank-3 .leader-points b {
  color: #8f3e11;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68);
}

.rank-row.rank-1 .leader-points span,
.rank-row.rank-2 .leader-points span,
.rank-row.rank-3 .leader-points span {
  margin-top: 0;
  color: currentColor;
  opacity: 0.72;
}

.rank-row .leader-points span {
  color: #80688f;
  font-size: 10px;
  font-weight: 850;
}

@media (max-width: 430px) {
  .rank-section-title h2 {
    font-size: 23px;
  }

  .rank-title-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 12px;
  }

  .rank-title-mark img {
    width: 26px;
    height: 26px;
  }

  .rank-title-lockup::after {
    right: -28px;
    width: 72px;
  }

  .rank-filter-pill {
    min-width: 82px;
    height: 34px;
    border-radius: 13px;
    font-size: 12px;
  }

  .rank-progress {
    grid-template-columns: 30px minmax(0, 1fr) 70px 64px 14px;
    gap: 7px;
    min-height: 50px;
    padding: 9px 11px;
    border-radius: 13px;
  }

  .rank-progress-copy b {
    font-size: 11px;
  }

  .rank-progress-copy span,
  .rank-progress strong {
    font-size: 9.5px;
  }

  .rank-row {
    grid-template-columns: 42px 38px minmax(0, 1fr) 28px 41px;
    gap: 6px;
    min-height: 55px;
    padding: 8px 9px;
  }

  .rank-row.rank-1,
  .rank-row.rank-2,
  .rank-row.rank-3 {
    grid-template-columns: 48px 43px minmax(0, 1fr) 30px 43px;
    min-height: 63px;
    padding: 9px 9px;
  }

  .rank-row .leader-pos.top {
    width: 42px;
    height: 55px;
    margin: -8px 0 -8px -9px;
    padding-bottom: 8px;
  }

  .rank-row.rank-1 .leader-pos.top,
  .rank-row.rank-2 .leader-pos.top,
  .rank-row.rank-3 .leader-pos.top {
    width: 48px;
    height: 63px;
    margin: -9px 0 -9px -9px;
    padding-bottom: 9px;
    font-size: 18px;
  }

  .rank-row.rank-1 .leader-avatar,
  .rank-row.rank-2 .leader-avatar,
  .rank-row.rank-3 .leader-avatar {
    width: 41px;
    height: 41px;
    font-size: 23px;
  }

  .crown-icon {
    width: 32px;
    height: 27px;
  }

  .pos-crown {
    top: 6px;
    width: 34px;
    height: 22px;
  }

  .pos-crown .crown-icon {
    width: 30px;
    height: 24px;
  }

  .leader-avatar,
  .leader-avatar .avatar {
    width: 35px;
    height: 35px;
  }

  .rank-row .leader-name b {
    font-size: 13px;
  }

  .rank-row.rank-1 .leader-name b,
  .rank-row.rank-2 .leader-name b,
  .rank-row.rank-3 .leader-name b {
    font-size: 14.5px;
  }

  .rank-row .leader-points b {
    font-size: 18px;
  }

  .rank-row.rank-1 .leader-points b,
  .rank-row.rank-2 .leader-points b,
  .rank-row.rank-3 .leader-points b {
    font-size: 21px;
  }

  .rank-row.rank-1 .leader-points,
  .rank-row.rank-2 .leader-points,
  .rank-row.rank-3 .leader-points {
    width: 41px;
    height: 43px;
    border-radius: 13px;
  }

  .rank-row.rank-1 .leader-points::before,
  .rank-row.rank-2 .leader-points::before,
  .rank-row.rank-3 .leader-points::before {
    width: 15px;
    height: 3px;
  }
}

/* Podium-style top 3 leaderboard */
.rank-podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 8px;
  min-height: 156px;
  margin: -2px 0 8px;
  padding: 0 7px 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(122, 34, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.22));
}

.podium-slot {
  display: grid;
  align-self: end;
  align-content: end;
  gap: 0;
  min-width: 0;
}

.podium-slot.podium-1 {
  transform: none;
}

.podium-crown {
  position: relative;
  z-index: 3;
  height: 26px;
  margin-bottom: -7px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.podium-crown .crown-icon {
  width: 34px;
  height: 28px;
}

.podium-1 .podium-crown {
  height: 32px;
  margin-bottom: -9px;
}

.podium-1 .podium-crown .crown-icon {
  width: 42px;
  height: 35px;
}

.podium-bar {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 70px;
  overflow: hidden;
  padding: 13px 5px 8px;
  border-radius: 18px 18px 12px 12px;
  color: #fff;
  box-shadow: 0 14px 26px rgba(53, 0, 60, 0.12);
}

.podium-bar::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%);
  pointer-events: none;
}

.podium-1 .podium-bar {
  height: 128px;
  min-height: 128px;
  background: linear-gradient(180deg, #ffd75f 0%, #ffad12 54%, #ec9400 100%);
  color: #5a3000;
}

.podium-2 .podium-bar {
  height: 112px;
  min-height: 112px;
  background: linear-gradient(180deg, #eff4ff 0%, #b5c1ec 56%, #8d99ce 100%);
  color: #43507e;
}

.podium-3 .podium-bar {
  height: 84px;
  min-height: 84px;
  gap: 1px;
  padding: 9px 4px 5px;
  background: linear-gradient(180deg, #ffd0a0 0%, #dc7a2a 58%, #ba571a 100%);
  color: #5b2409;
}

.podium-rank,
.podium-name,
.podium-score,
.podium-bar .rank-move {
  position: relative;
  z-index: 1;
}

.podium-bar .leader-avatar {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 14px rgba(53, 0, 60, 0.18);
  font-size: 22px;
}

.podium-1 .podium-bar .leader-avatar {
  width: 46px;
  height: 46px;
  font-size: 27px;
}

.podium-name {
  max-width: 100%;
  color: currentColor;
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-1 .podium-name {
  font-size: 11.5px;
}

.podium-rank {
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.podium-score {
  display: grid;
  justify-items: center;
  line-height: 1;
}

.podium-score b {
  font-size: 21px;
  font-weight: 950;
}

.podium-score span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 900;
  opacity: 0.74;
}

.podium-3 .podium-crown .crown-icon {
  width: 28px;
  height: 23px;
}

.podium-3 .podium-bar .leader-avatar {
  width: 27px;
  height: 27px;
  font-size: 16px;
}

.podium-3 .podium-name {
  font-size: 8px;
}

.podium-3 .podium-rank {
  font-size: 19px;
}

.podium-3 .podium-score b {
  font-size: 15px;
}

.podium-3 .podium-score span {
  font-size: 8px;
}

.podium-3 .podium-bar .rank-move {
  padding: 1px 6px;
  font-size: 9px;
}

.podium-bar .rank-move {
  min-width: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.podium-bar .rank-move.same {
  color: rgba(53, 0, 60, 0.52);
}

@media (max-width: 430px) {
  .rank-podium {
    gap: 6px;
    min-height: 150px;
    margin: -3px 0 8px;
    padding: 0 5px 0;
    border-radius: 17px;
  }

  .podium-crown .crown-icon {
    width: 30px;
    height: 25px;
  }

  .podium-1 .podium-crown .crown-icon {
    width: 37px;
    height: 31px;
  }

  .podium-1 .podium-bar {
    height: 120px;
    min-height: 120px;
  }

  .podium-2 .podium-bar {
    height: 102px;
    min-height: 102px;
  }

  .podium-3 .podium-bar {
    height: 78px;
    min-height: 78px;
    gap: 1px;
    padding: 8px 4px 5px;
  }

  .podium-bar {
    gap: 3px;
    padding: 12px 4px 7px;
  }

  .podium-bar .leader-avatar {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .podium-1 .podium-bar .leader-avatar {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .podium-name {
    font-size: 9px;
  }

  .podium-1 .podium-name {
    font-size: 10px;
  }

  .podium-3 .podium-crown .crown-icon {
    width: 25px;
    height: 21px;
  }

  .podium-3 .podium-bar .leader-avatar {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .podium-3 .podium-name {
    font-size: 7.5px;
  }

  .podium-rank {
    font-size: 21px;
  }

  .podium-score b {
    font-size: 19px;
  }
}

/* Header without countdown: points + rank focus */
.hero-panel {
  padding-bottom: 20px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(142px, 0.82fr);
  gap: 12px;
  min-height: 78px;
}

.header-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  justify-self: end;
  width: min(190px, 100%);
}

.header-stat-card {
  position: relative;
  min-width: 0;
  min-height: 72px;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  color: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.header-stat-card.points {
  background:
    radial-gradient(circle at 36% 18%, rgba(255, 228, 105, 0.42), transparent 34%),
    linear-gradient(145deg, rgba(255, 202, 48, 0.2), rgba(255, 255, 255, 0.06));
}

.header-stat-card.rank {
  background:
    radial-gradient(circle at 38% 18%, rgba(124, 255, 216, 0.38), transparent 35%),
    linear-gradient(145deg, rgba(37, 208, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.header-stat-card::before {
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1;
}

.header-stat-card.points::before {
  content: "⭐";
}

.header-stat-card.rank::before {
  content: "🏆";
}

.header-stat-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.header-stat-card b {
  margin-top: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.4px;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.header-stat-card small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

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

.hero-leaders-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-leader-list {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.12fr) minmax(0, 0.95fr);
  gap: 6px;
  min-width: 0;
}

.hero-leader {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 26px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.36), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.hero-leader.gold {
  border-color: rgba(255, 218, 89, 0.38);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.46), transparent 36%),
    linear-gradient(135deg, rgba(255, 207, 53, 0.32), rgba(123, 34, 255, 0.1));
}

.hero-leader.silver {
  border-color: rgba(213, 224, 255, 0.28);
}

.hero-leader.bronze {
  border-color: rgba(255, 181, 117, 0.28);
}

.hero-leader-rank {
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.hero-leader-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(145deg, #2d0050, #7b22ff);
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  font-size: 15px;
}

.hero-leader.gold .hero-leader-avatar {
  width: 30px;
  height: 30px;
  font-size: 18px;
  box-shadow: 0 7px 14px rgba(255, 181, 24, 0.22);
}

.hero-leader-avatar .avatar {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.hero-leader b,
.hero-leader small {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-leader b {
  color: #fff;
  font-size: 9px;
  font-weight: 950;
}

.hero-leader small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 8px;
  font-weight: 850;
}

@media (max-width: 430px) {
  .hero-panel {
    padding-bottom: 14px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.82fr);
    gap: 8px;
    min-height: 58px;
  }

  .header-stats {
    width: min(142px, 100%);
    gap: 6px;
  }

  .header-stat-card {
    min-height: 58px;
    border-radius: 15px;
    padding: 6px 3px;
  }

  .header-stat-card::before {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .header-stat-card span {
    font-size: 8px;
  }

  .header-stat-card b {
    margin-top: 3px;
    font-size: 20px;
  }

  .header-stat-card small {
    margin-top: 4px;
    font-size: 6.5px;
  }

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

  .hero-leaders-kicker {
    width: fit-content;
    min-height: 20px;
    padding: 0 8px;
    font-size: 8px;
  }

  .hero-leader-list {
    gap: 5px;
  }

  .hero-leader {
    grid-template-columns: auto 23px minmax(0, 1fr);
    min-height: 36px;
    gap: 4px;
    padding: 5px;
    border-radius: 13px;
  }

  .hero-leader-rank {
    font-size: 8px;
  }

  .hero-leader-avatar {
    width: 23px;
    height: 23px;
    font-size: 13px;
  }

  .hero-leader.gold .hero-leader-avatar {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .hero-leader b {
    font-size: 8px;
  }

  .hero-leader small {
    font-size: 7px;
  }
}

/* Esports premium header pass */
.hero-panel {
  position: relative;
  overflow: hidden;
  padding-bottom: 18px;
  border: 1px solid rgba(106, 160, 255, 0.18);
  background:
    radial-gradient(circle at 7% 18%, rgba(255, 255, 255, 0.34), transparent 14%),
    radial-gradient(ellipse at 0% 62%, rgba(0, 160, 255, 0.58), transparent 30%),
    radial-gradient(ellipse at 100% 55%, rgba(190, 32, 255, 0.72), transparent 34%),
    linear-gradient(145deg, #030916 0%, #090827 44%, #160052 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 38px rgba(15, 0, 54, 0.18);
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(118deg, transparent 0 48%, rgba(120, 54, 255, 0.48) 48.2% 49.2%, transparent 49.4%),
    linear-gradient(118deg, transparent 0 54%, rgba(255, 255, 255, 0.22) 54.2% 55.1%, transparent 55.3%),
    repeating-linear-gradient(115deg, transparent 0 36px, rgba(255, 255, 255, 0.035) 37px, transparent 38px);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(154px, 0.74fr);
  align-items: center;
}

.identity {
  min-width: 0;
}

.hero-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.hero-panel .hero-avatar-wrap .avatar {
  width: 66px;
  height: 66px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.28),
    0 0 0 5px rgba(123, 34, 255, 0.72),
    0 0 24px rgba(63, 152, 255, 0.42);
}

.hero-profile-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
}

.hero-profile-copy strong {
  display: block;
  max-width: 100%;
  color: #fff;
  font-style: italic;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.hero-profile-copy > span {
  display: block;
}

.hero-worldcup-brand {
  width: fit-content;
  max-width: 145px;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.hero-worldcup-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.24));
}

.hero-worldcup-brand b {
  color: rgba(255, 255, 255, 0.84);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-stats {
  width: min(176px, 100%);
  gap: 8px;
}

.header-stat-card {
  min-height: 76px;
  border-radius: 8px 18px 8px 18px;
  background: linear-gradient(145deg, rgba(2, 12, 31, 0.88), rgba(10, 28, 60, 0.64));
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.header-stat-card.points {
  border-color: rgba(32, 184, 255, 0.58);
  background:
    radial-gradient(circle at 55% 18%, rgba(255, 205, 35, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(3, 22, 48, 0.95), rgba(5, 13, 34, 0.76));
  box-shadow: inset 0 0 0 1px rgba(25, 164, 255, 0.34), 0 0 18px rgba(25, 164, 255, 0.16);
}

.header-stat-card.rank {
  border-color: rgba(148, 54, 255, 0.7);
  background:
    radial-gradient(circle at 48% 20%, rgba(145, 46, 255, 0.34), transparent 30%),
    linear-gradient(145deg, rgba(20, 7, 60, 0.94), rgba(5, 11, 28, 0.74));
  box-shadow: inset 0 0 0 1px rgba(149, 61, 255, 0.42), 0 0 20px rgba(149, 61, 255, 0.2);
}

.header-stat-card b {
  font-style: italic;
}

.hero-leaders {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(91, 135, 212, 0.26);
  border-radius: 21px;
  background:
    radial-gradient(circle at 12% 0%, rgba(93, 38, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(2, 8, 22, 0.82), rgba(9, 9, 35, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.2);
}

.hero-leaders-kicker {
  min-height: auto;
  justify-content: flex-start;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.8px;
}

.hero-leaders-kicker::before {
  width: 12px;
  height: 2px;
  margin-right: 7px;
  content: "";
  border-radius: 999px;
  background: #8a18ff;
}

.hero-leader-list {
  grid-template-columns: 1.12fr 1fr 1fr;
  gap: 8px;
}

.hero-leader {
  position: relative;
  grid-template-columns: 30px 30px minmax(0, 1fr);
  min-height: 56px;
  overflow: hidden;
  padding: 8px 9px 8px 7px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(4, 10, 22, 0.98), rgba(10, 18, 32, 0.92));
  clip-path: none;
}

.hero-leader.gold {
  border-color: rgba(255, 209, 64, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 64, 0.28), 0 0 16px rgba(255, 190, 36, 0.22);
}

.hero-leader.silver {
  border-color: rgba(220, 230, 255, 0.48);
}

.hero-leader.bronze {
  border-color: rgba(255, 159, 92, 0.52);
}

.hero-leader::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42px;
  content: "";
  border-radius: 16px 0 0 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 78%);
}

.hero-leader.gold::before {
  background: linear-gradient(90deg, rgba(255, 209, 64, 0.86), rgba(255, 184, 17, 0.1));
}

.hero-leader.silver::before {
  background: linear-gradient(90deg, rgba(237, 243, 255, 0.7), rgba(171, 184, 220, 0.08));
}

.hero-leader.bronze::before {
  background: linear-gradient(90deg, rgba(255, 160, 92, 0.68), rgba(195, 91, 29, 0.08));
}

.hero-leader-rank,
.hero-leader-avatar,
.hero-leader > div:last-child {
  position: relative;
  z-index: 1;
}

.hero-leader-rank {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-style: italic;
  text-align: center;
}

.hero-leader-avatar {
  width: 30px;
  height: 30px;
  margin-left: -2px;
}

.hero-leader.gold .hero-leader-avatar {
  width: 34px;
  height: 34px;
}

.hero-leader b {
  font-size: 10.5px;
  font-style: italic;
}

.hero-leader.gold b {
  color: #fff;
}

.hero-leader small {
  color: #ffd249;
  font-size: 10px;
  font-weight: 950;
}

.hero-leader.silver small {
  color: #dce7ff;
}

.hero-leader.bronze small {
  color: #ffb07a;
}

@media (max-width: 430px) {
  .hero-panel {
    padding-bottom: 11px;
  }

  .hero-panel .hero-avatar-wrap .avatar {
    width: 49px;
    height: 49px;
    border-width: 2px;
    box-shadow:
      0 10px 18px rgba(0, 0, 0, 0.24),
      0 0 0 3px rgba(123, 34, 255, 0.72);
  }

  .hero-worldcup-brand {
    max-width: 118px;
    gap: 5px;
    margin-top: 5px;
    padding: 3px 7px 3px 4px;
  }

  .hero-worldcup-brand img {
    width: 19px;
    height: 19px;
  }

  .hero-worldcup-brand b {
    font-size: 7px;
  }

  .header-stats {
    width: min(134px, 100%);
  }

  .header-stat-card {
    min-height: 55px;
    border-radius: 7px 14px 7px 14px;
  }

  .hero-leaders {
    margin-top: 10px;
    padding: 8px;
    border-radius: 18px;
  }

  .hero-leaders-kicker {
    padding-bottom: 6px;
    font-size: 9px;
  }

  .hero-leader-list {
    grid-template-columns: 1.12fr 1fr 1fr;
    gap: 6px;
  }

  .hero-leader {
    grid-template-columns: 22px 24px minmax(0, 1fr);
    min-height: 45px;
    padding: 6px 5px;
    border-radius: 13px;
  }

  .hero-leader::before {
    width: 33px;
    border-radius: 13px 0 0 13px;
  }

  .hero-leader-rank {
    font-size: 14px;
  }

  .hero-leader-avatar,
  .hero-leader.gold .hero-leader-avatar {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .hero-leader b {
    font-size: 8px;
  }

  .hero-leader small {
    margin-top: 2px;
    font-size: 8px;
  }
}

/* Closer reference: large rank/points panels + horizontal team plates */
.header-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(198px, 100%);
}

.header-stat-card.rank,
.header-stat-card.points {
  min-height: 86px;
  padding-top: 9px;
}

.header-stat-card.rank::after,
.header-stat-card.points::after {
  position: absolute;
  inset: 11px auto auto 50%;
  width: 32px;
  height: 32px;
  content: "⚽";
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 162, 255, 0.5);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(123, 34, 255, 0.76), rgba(14, 10, 42, 0.94));
  box-shadow: 0 0 18px rgba(123, 34, 255, 0.34);
  font-size: 16px;
  transform: translateX(-50%);
  opacity: 0.72;
}

.header-stat-card.points::after {
  content: "⭐";
  border-color: rgba(39, 185, 255, 0.5);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 207, 66, 0.76), rgba(10, 30, 55, 0.94));
  box-shadow: 0 0 18px rgba(39, 185, 255, 0.28);
}

.header-stat-card.rank span,
.header-stat-card.rank b,
.header-stat-card.rank small,
.header-stat-card.rank::before,
.header-stat-card.points span,
.header-stat-card.points b,
.header-stat-card.points small,
.header-stat-card.points::before {
  position: relative;
  z-index: 1;
}

.header-stat-card.rank span,
.header-stat-card.points span {
  margin-top: 22px;
  text-transform: uppercase;
}

.header-stat-card.rank b,
.header-stat-card.points b {
  margin-top: 3px;
  font-size: 29px;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
}

.header-stat-card.points {
  align-self: center;
}

.hero-leaders {
  padding: 10px 10px 11px;
}

.hero-leaders-kicker {
  padding-left: 4px;
}

.hero-leader-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 2px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.hero-leader-list::-webkit-scrollbar {
  display: none;
}

.hero-leader {
  grid-template-columns: 36px 36px minmax(0, 1fr);
  min-width: 176px;
  min-height: 62px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 15px;
  scroll-snap-align: start;
}

.hero-leader.gold {
  min-width: 194px;
}

.hero-leader::before {
  width: 44px;
}

.hero-leader-rank {
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.hero-leader-avatar,
.hero-leader.gold .hero-leader-avatar {
  width: 36px;
  height: 36px;
  font-size: 21px;
}

.hero-leader b {
  font-size: 14px;
}

.hero-leader small {
  margin-top: 5px;
  font-size: 12px;
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr);
  }

  .header-stats {
    width: min(152px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-stat-card.rank,
  .header-stat-card.points {
    min-height: 64px;
  }

  .header-stat-card.rank::after,
  .header-stat-card.points::after {
    top: 7px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 12px;
  }

  .header-stat-card.rank span,
  .header-stat-card.points span {
    margin-top: 17px;
  }

  .header-stat-card.rank b,
  .header-stat-card.points b {
    font-size: 22px;
  }

  .hero-leader {
    grid-template-columns: 29px 30px minmax(0, 1fr);
    min-width: 148px;
    min-height: 52px;
    padding: 7px 8px;
  }

  .hero-leader.gold {
    min-width: 162px;
  }

  .hero-leader::before {
    width: 34px;
  }

  .hero-leader-rank {
    font-size: 19px;
  }

  .hero-leader-avatar,
  .hero-leader.gold .hero-leader-avatar {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .hero-leader b {
    font-size: 11px;
  }

  .hero-leader small {
    font-size: 10px;
  }
}

/* Keep all Top 3 visible in the banner */
.hero-leader-list {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 6px;
  overflow: visible;
  padding: 0;
}

.hero-leader,
.hero-leader.gold {
  min-width: 0;
}

.hero-leader {
  grid-template-columns: 27px 28px minmax(0, 1fr);
  min-height: 54px;
  padding: 7px 7px;
}

.hero-leader-rank {
  font-size: 17px;
}

.hero-leader-avatar,
.hero-leader.gold .hero-leader-avatar {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.hero-leader b {
  font-size: 9.5px;
}

.hero-leader small {
  font-size: 9px;
}

@media (max-width: 430px) {
  .hero-leader-list {
    grid-template-columns: 1.14fr 1fr 1fr;
    gap: 5px;
  }

  .hero-leader {
    grid-template-columns: 22px 23px minmax(0, 1fr);
    min-height: 45px;
    padding: 6px 5px;
  }

  .hero-leader-rank {
    font-size: 15px;
  }

  .hero-leader-avatar,
  .hero-leader.gold .hero-leader-avatar {
    width: 23px;
    height: 23px;
    font-size: 13px;
  }

  .hero-leader b {
    font-size: 8px;
  }

.hero-leader small {
  font-size: 7.5px;
}
}

/* Top 3 spacing balance */
.hero-leaders {
  margin: 13px 2px 0;
  padding: 10px 11px 12px;
}

.hero-leaders::before {
  inset: 10px;
  border-radius: 17px;
}

.hero-leaders-kicker {
  padding: 0 0 9px 1px;
}

.hero-leaders-kicker::after {
  width: 58px;
}

.hero-leader-list {
  grid-template-columns: 1.1fr 1fr 0.98fr;
  gap: 7px;
  padding: 0 2px 1px;
}

.hero-leader {
  min-height: 64px;
  padding: 8px 7px;
}

.hero-leader.gold {
  transform: translateY(-3px) scale(1.035);
}

.hero-leader.silver {
  transform: translateY(1px) scale(0.985);
}

.hero-leader.bronze {
  transform: translateY(5px) scale(0.95);
}

@media (max-width: 430px) {
  .hero-leaders {
    margin: 12px 1px 0;
    padding: 9px 10px 12px;
  }

  .hero-leader-list {
    grid-template-columns: 1.1fr 1fr 0.98fr;
    gap: 4px;
    padding: 0 1px 1px;
  }

  .hero-leader {
    min-height: 56px;
    padding: 7px 5px;
  }
}

/* Revert Rank page to the classic light layout */
.rank-content {
  padding: 18px 16px calc(92px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0%, rgba(138, 63, 252, 0.08), transparent 34%),
    linear-gradient(180deg, #f7f3f8 0%, #fbf9fc 100%);
}

.rank-content .section-title {
  display: flex;
}

.rank-content .rank-board {
  gap: 10px;
}

@media (max-width: 430px) {
  .rank-content {
    padding: 14px 12px calc(82px + env(safe-area-inset-bottom));
  }
}

/* Ultimate production match-card alignment: this is intentionally last. */
@media (max-width: 900px) {
  .match-card .teams {
    grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
    gap: 7px;
    align-items: center;
    margin: 8px 12px 0;
  }

  .match-card .team {
    gap: 4px;
    justify-items: stretch;
  }

  .match-card .team-code {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    width: 100%;
    height: 44px;
    min-height: 0;
    padding: 4px 44px;
    border-radius: 14px;
  }

  .match-card .team-home .flag {
    position: absolute;
    left: 6px;
  }

  .match-card .team-home .team-code b,
  .match-card .team-away .team-code b {
    grid-column: 1;
    justify-self: center;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-card .team-away .flag {
    position: absolute;
    right: 6px;
  }

  .match-card .flag {
    width: 36px;
    height: 36px;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.14);
  }

  .match-card .team-name {
    width: 100%;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.08;
    text-align: center;
  }

  .match-card .scoreline {
    grid-template-columns: 44px 10px 44px;
    gap: 6px;
    align-self: center;
    align-items: center;
    height: 44px;
    margin-top: 0;
    transform: none;
  }

  .match-card .score-control {
    height: 44px;
  }

  .match-card .score-input {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 24px;
    line-height: 44px;
  }

  .match-card .scoreline > span {
    display: grid;
    width: 10px;
    height: 44px;
    place-items: center;
    padding: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    text-align: center;
  }
}

/* Production match-card alignment: keep this last so it wins over older passes. */
@media (max-width: 900px) {
  .match-card .teams {
    grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
    gap: 7px;
    align-items: center;
    margin: 8px 12px 0;
  }

  .match-card .team {
    gap: 4px;
    justify-items: stretch;
  }

  .match-card .team-code {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    width: 100%;
    height: 42px;
    min-height: 0;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 14px;
  }

  .match-card .team-home .flag {
    grid-column: 1;
    justify-self: start;
  }

  .match-card .team-home .team-code b,
  .match-card .team-away .team-code b {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-card .team-away .flag {
    grid-column: 3;
    justify-self: end;
  }

  .match-card .flag {
    width: 34px;
    height: 34px;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.14);
  }

  .match-card .team-name {
    width: 100%;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.08;
    text-align: center;
  }

  .match-card .scoreline {
    grid-template-columns: 42px 10px 42px;
    gap: 6px;
    align-self: center;
    align-items: center;
    height: 42px;
    margin-top: 0;
    transform: none;
  }

  .match-card .score-control {
    height: 42px;
  }

  .match-card .score-input {
    height: 42px;
    border-radius: 13px;
    font-size: 24px;
    line-height: 42px;
  }

  .match-card .scoreline > span {
    display: grid;
    width: 10px;
    height: 42px;
    place-items: center;
    padding: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    text-align: center;
  }
}

/* Match card compact polish */
@media (max-width: 430px) {
  .match-card {
    border-radius: 16px;
  }

  .match-head {
    padding: 8px 12px 3px;
  }

  .match-meta {
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.1;
  }

  .match-badge {
    min-height: 26px;
    padding: 0 11px;
    border-radius: 13px;
    font-size: 13px;
  }

  .tag {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .teams {
    grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr);
    gap: 7px;
    margin: 7px 12px 0;
  }

  .team {
    gap: 5px;
  }

  .team-code {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    height: 40px;
    min-height: 0;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(76, 0, 143, 0.15);
  }

  .team-away .team-code {
    box-shadow: 0 8px 16px rgba(0, 105, 214, 0.14);
  }

  .team-home .flag {
    grid-column: 1;
    justify-self: start;
  }

  .team-home .team-code b {
    grid-column: 2;
    justify-self: center;
  }

  .team-away .team-code b {
    grid-column: 2;
    justify-self: center;
  }

  .team-away .flag {
    grid-column: 3;
    justify-self: end;
  }

  .flag {
    width: 30px;
    height: 30px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    object-fit: cover;
    box-shadow: 0 5px 11px rgba(0, 0, 0, 0.14);
  }

  .flag-emoji-frame span {
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 27px;
    line-height: 1;
    transform: scale(1.26);
    transform-origin: center;
  }

  .team-code b {
    font-size: 15.8px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
  }

  .team-name {
    width: 100%;
    font-size: 12.5px;
    line-height: 1.08;
    text-align: center;
  }

  .scoreline {
    grid-template-columns: 43px 9px 43px;
    gap: 6px;
    height: 40px;
    align-items: center;
    align-self: center;
  }

  .score-control {
    height: 40px;
  }

  .score-input {
    height: 40px;
    border-radius: 12px;
    font-size: 24px;
    line-height: 40px;
  }

  .scoreline > span {
    display: grid;
    height: 40px;
    place-items: center;
    padding: 0;
    font-size: 18px;
    line-height: 1;
  }

  .prediction-zone {
    padding: 8px 12px;
  }

  .prediction-status {
    min-height: 46px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
    border-radius: 13px;
  }

  .status-auto-icon {
    width: 26px;
    height: 26px;
  }

  .status-auto-icon img {
    width: 14px;
    height: 20px;
  }

  .status-result span {
    font-size: 8.5px;
    line-height: 1.05;
  }

  .status-result b {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.02;
  }

  .status-result small {
    margin-top: 2px;
    font-size: 8.3px;
    line-height: 1.05;
  }

  .match-foot {
    min-height: 42px;
    padding: 6px 12px;
  }

  .match-foot small {
    gap: 6px;
    font-size: 11px;
    line-height: 1;
  }

  svg.stadium-icon {
    width: 21px;
    height: 14px;
    flex-basis: 21px;
  }

  .save-btn {
    min-width: 86px;
    min-height: 33px;
    border-radius: 10px;
    font-size: 11.5px;
  }
}

/* Final simplified Profile page */
.profile-list {
  gap: 12px;
}

.profile-simple-card {
  display: grid;
  gap: 16px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(123, 34, 255, 0.08), transparent 34%),
    #fff;
  box-shadow: 0 16px 34px rgba(53, 0, 60, 0.08);
}

.profile-simple-card h3 {
  margin: 0;
  color: #2d0050;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.profile-simple-card .profile-editor {
  gap: 15px;
}

.profile-simple-card .avatar-picker {
  gap: 10px;
  padding: 0 0 4px;
}

.profile-simple-card .avatar-large {
  width: 116px;
  height: 116px;
  border-radius: 34px;
  font-size: 36px;
}

.profile-simple-card .photo-btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 13px;
}

.profile-simple-card .field {
  margin: 0;
}

.profile-simple-card .input {
  height: 58px;
  border-radius: 18px;
  font-size: 18px;
}

.profile-simple-card .primary-btn {
  min-height: 58px;
  margin-top: 2px;
  border-radius: 18px;
}

.profile-simple-card .logout-btn {
  min-height: 50px;
  border-color: rgba(255, 48, 93, 0.2);
  background: rgba(255, 244, 247, 0.92);
  color: #d62956;
  box-shadow: none;
}

/* Locked profile card: only avatar is editable */
.profile-content {
  background:
    radial-gradient(circle at 16% 7%, rgba(123, 34, 255, 0.08), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(255, 43, 128, 0.08), transparent 30%),
    linear-gradient(180deg, #fbf9ff 0%, #f7f3f9 100%);
}

.profile-simple-card {
  position: relative;
  overflow: hidden;
  gap: 18px;
  padding: 23px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background:
    radial-gradient(circle at 24% 28%, rgba(124, 44, 255, 0.12), transparent 20%),
    radial-gradient(circle at 76% 21%, rgba(255, 48, 150, 0.13), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(252, 244, 255, 0.92) 47%, rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 38px rgba(53, 0, 60, 0.1);
}

.profile-simple-card::before,
.profile-simple-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.profile-simple-card::before {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(255, 255, 255, 0.45) 59% 68%, transparent 69%),
    radial-gradient(circle at 10% 55%, rgba(123, 34, 255, 0.12) 0 1px, transparent 2px);
  background-size: auto, 8px 8px;
  opacity: 0.8;
}

.profile-simple-card::after {
  top: 112px;
  right: 54px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ee79ff;
  box-shadow:
    -155px -50px 0 -1px #8d43ff,
    -164px 26px 0 -2px #9b59ff,
    -22px 36px 0 -2px #ff8bdc;
  transform: rotate(45deg);
}

.profile-spark-title,
.profile-photo-stage,
.profile-fixed-fields,
.profile-simple-card > .primary-btn,
.profile-simple-card > .logout-btn {
  position: relative;
  z-index: 1;
}

.profile-spark-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.profile-spark-title h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
}

.profile-spark-title span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #7b22ff, #ff2d8a);
  box-shadow: 10px 0 0 -4px rgba(123, 34, 255, 0.35), -10px 0 0 -4px rgba(255, 45, 138, 0.28);
  transform: rotate(45deg);
}

.profile-photo-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 6px 0 2px;
}

.profile-photo-stage .avatar-large {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff;
  font-size: 44px;
  box-shadow:
    inset 0 0 0 6px #fff,
    0 0 0 7px rgba(123, 34, 255, 0.94),
    0 0 0 11px rgba(255, 45, 138, 0.82),
    0 18px 30px rgba(105, 24, 205, 0.28);
}

.profile-photo-stage .photo-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #7022ee;
  box-shadow: 0 10px 22px rgba(53, 0, 60, 0.12);
}

.profile-photo-stage .photo-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.profile-fixed-fields {
  display: grid;
  gap: 13px;
  margin-top: 2px;
}

.profile-fixed-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.profile-fixed-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  align-self: end;
  margin-bottom: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: #7b22ff;
  box-shadow: 0 8px 18px rgba(53, 0, 60, 0.1);
}

.profile-fixed-icon svg,
.profile-lock-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.profile-fixed-row label {
  display: block;
  margin: 0 0 6px;
  color: #80688f;
  font-size: 12px;
  font-weight: 850;
}

.profile-readonly-value {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 15px;
  border: 1px solid rgba(126, 102, 143, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52), 0 8px 16px rgba(53, 0, 60, 0.045);
}

.profile-readonly-value b {
  min-width: 0;
  color: #2d0050;
  font-size: 17px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-lock-icon {
  display: grid;
  place-items: center;
  color: #7b22ff;
  opacity: 0.82;
}

.profile-simple-card > .primary-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 17px;
}

.profile-simple-card > .primary-btn::before {
  width: 21px;
  height: 21px;
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h12l2 2v14H5V4Zm3 0v6h7V4m-7 13h8v-4H8v4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h12l2 2v14H5V4Zm3 0v6h7V4m-7 13h8v-4H8v4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-simple-card > .logout-btn {
  min-height: 50px;
  border: 1.5px solid #ff2d64;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #ff2d64;
  font-size: 15px;
  font-weight: 950;
}

/* Compact locked profile card */
.profile-simple-card {
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 24px;
}

.profile-spark-title {
  gap: 10px;
}

.profile-spark-title h3 {
  font-size: 18px;
}

.profile-photo-stage {
  gap: 8px;
  padding: 2px 0 0;
}

.profile-photo-stage .avatar-large {
  width: 104px;
  height: 104px;
  font-size: 34px;
  box-shadow:
    inset 0 0 0 5px #fff,
    0 0 0 6px rgba(123, 34, 255, 0.94),
    0 0 0 9px rgba(255, 45, 138, 0.82),
    0 13px 24px rgba(105, 24, 205, 0.24);
}

.profile-photo-stage .photo-btn {
  min-height: 34px;
  gap: 7px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
}

.profile-photo-stage .photo-btn svg {
  width: 15px;
  height: 15px;
}

.profile-fixed-fields {
  gap: 10px;
  margin-top: 0;
}

.profile-fixed-row {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}

.profile-fixed-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  border-radius: 10px;
}

.profile-fixed-icon svg,
.profile-lock-icon svg {
  width: 15px;
  height: 15px;
}

.profile-fixed-row label {
  margin-bottom: 5px;
  font-size: 11px;
}

.profile-readonly-value {
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 7px;
  padding: 0 10px 0 13px;
  border-radius: 13px;
}

.profile-readonly-value b {
  font-size: 15px;
}

.profile-simple-card > .primary-btn {
  min-height: 46px;
  gap: 8px;
  border-radius: 14px;
  font-size: 14px;
}

.profile-simple-card > .primary-btn::before {
  width: 17px;
  height: 17px;
}

.profile-simple-card > .logout-btn {
  min-height: 42px;
  border-radius: 13px;
  font-size: 13px;
}

/* Final podium spacing: keep points, PTS and movement separated */
.rank-content .rank-podium {
  min-height: 178px;
  padding: 12px 7px 12px;
}

.rank-content .podium-bar {
  align-content: start;
  gap: 4px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.rank-content .podium-1 .podium-bar {
  height: 148px;
  min-height: 148px;
}

.rank-content .podium-2 .podium-bar {
  height: 128px;
  min-height: 128px;
}

.rank-content .podium-3 .podium-bar {
  height: 104px;
  min-height: 104px;
  padding-top: 22px;
  padding-bottom: 24px;
}

.rank-content .podium-score {
  display: grid;
  justify-items: center;
  gap: 1px;
  margin-top: 2px;
}

.rank-content .podium-score b {
  line-height: 0.92;
}

.rank-content .podium-score span {
  margin-top: 0;
  line-height: 1;
}

.rank-content .podium-bar .rank-move {
  bottom: 6px;
}

@media (max-width: 430px) {
  .rank-content .rank-podium {
    min-height: 168px;
    padding: 10px 5px 11px;
  }

  .rank-content .podium-bar {
    padding-top: 24px;
    padding-bottom: 25px;
  }

  .rank-content .podium-1 .podium-bar {
    height: 140px;
    min-height: 140px;
  }

  .rank-content .podium-2 .podium-bar {
    height: 121px;
    min-height: 121px;
  }

  .rank-content .podium-3 .podium-bar {
    height: 99px;
    min-height: 99px;
  }

  .rank-content .podium-bar .rank-move {
    bottom: 5px;
  }
}

/* Expandable Rank player detail */
.rank-entry {
  display: grid;
  gap: 7px;
}

.rank-row,
.podium-slot {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rank-row[aria-expanded="true"] {
  border-color: rgba(123, 34, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(123, 34, 255, 0.42), 0 12px 24px rgba(123, 34, 255, 0.12);
}

.podium-slot.expanded .podium-bar {
  box-shadow: 0 0 0 2px rgba(123, 34, 255, 0.28), 0 16px 28px rgba(53, 0, 60, 0.16);
}

.rank-details {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(123, 34, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(10, 165, 255, 0.08), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 255, 0.96));
  box-shadow: 0 10px 22px rgba(53, 0, 60, 0.07);
}

.rank-details.podium {
  margin-top: -3px;
}

.rank-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.rank-details-head span,
.rank-pick-row span {
  display: block;
  color: #8a7195;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.rank-details-head b {
  display: block;
  margin-top: 1px;
  color: #2d0050;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.rank-details-head em {
  min-width: 36px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b22ff, #1d95ff);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(91, 35, 255, 0.18);
}

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

.rank-stat-grid div {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 6px;
  border-radius: 12px;
  background: rgba(123, 34, 255, 0.06);
}

.rank-stat-grid span {
  color: #8a7195;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.rank-stat-grid b {
  color: #2d0050;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.rank-pick-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.rank-pick-list.scrollable {
  max-height: 136px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 44, 255, 0.42) rgba(124, 44, 255, 0.08);
}

.rank-pick-list.scrollable::-webkit-scrollbar {
  width: 5px;
}

.rank-pick-list.scrollable::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(124, 44, 255, 0.08);
}

.rank-pick-list.scrollable::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124, 44, 255, 0.72), rgba(29, 149, 255, 0.58));
}

.rank-pick-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(126, 102, 143, 0.08);
}

.rank-pick-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rank-pick-main b {
  min-width: 0;
  color: #2d0050;
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-pick-main small {
  min-width: 0;
  color: #8a7195;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-pick-row em {
  color: #6f22ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.match-mini-stats {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 194, 129, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(235, 255, 247, 0.92), rgba(247, 251, 255, 0.92));
}

.match-mini-stats span {
  color: #00835e;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.match-mini-stats b,
.match-mini-stats em {
  color: #2d0050;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.match-mini-stats em {
  color: #00835e;
}

.match-result-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(124, 44, 255, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 44, 255, 0.08), transparent 54%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 255, 0.94));
}

.match-result-summary span {
  color: #7c2cff;
  font-size: 8.5px;
  font-weight: 950;
  white-space: nowrap;
}

.match-result-summary b {
  min-width: 0;
  overflow: hidden;
  color: #250035;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-result-summary small {
  color: #80698a;
  font-size: 8.4px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.match-result-summary em {
  display: inline-grid;
  min-width: 32px;
  min-height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #f1ecf7;
  color: #2d0050;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.match-result-summary.exact {
  border-color: rgba(0, 194, 129, 0.22);
  background: linear-gradient(135deg, rgba(235, 255, 247, 0.96), rgba(247, 251, 255, 0.96));
}

.match-result-summary.exact span,
.match-result-summary.exact em {
  color: #00835e;
}

.match-result-summary.exact em,
.match-result-summary.correct em {
  background: #e5fff4;
}

.match-result-summary.correct {
  border-color: rgba(0, 194, 129, 0.16);
}

.match-result-summary.correct span,
.match-result-summary.correct em {
  color: #00835e;
}

.match-result-summary.miss {
  border-color: rgba(240, 0, 49, 0.16);
  background: linear-gradient(135deg, rgba(255, 249, 251, 0.96), rgba(255, 255, 255, 0.96));
}

.match-result-summary.miss span,
.match-result-summary.miss em {
  color: #f00031;
}

.match-result-summary.miss em {
  background: #fff0f4;
}

.match-result-summary.empty {
  border-color: rgba(139, 115, 148, 0.16);
}

.match-result-summary.empty span,
.match-result-summary.empty b,
.match-result-summary.empty small,
.match-result-summary.empty em {
  color: #8b7394;
}

@media (max-width: 430px) {
  .rank-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .match-mini-stats span {
    grid-column: 1 / -1;
  }

  .match-result-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .match-result-summary span {
    grid-column: 1;
  }

  .match-result-summary b {
    grid-column: 2;
  }

  .match-result-summary em {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* Final rank page cleanup at cascade end */
.rank-showcase .podium-rank,
.rank-showcase .podium-1 .podium-rank,
.rank-showcase .podium-2 .podium-rank,
.rank-showcase .podium-3 .podium-rank {
  position: absolute !important;
  top: 12px !important;
  left: 11px !important;
  right: auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.rank-showcase .podium-1 .podium-rank {
  color: #ffdc4f !important;
  font-size: 23px !important;
}

.rank-showcase .podium-3 .podium-rank {
  color: #ff9845 !important;
}

.rank-showcase .podium-rank::before {
  content: "#" !important;
  font-size: 0.68em !important;
  opacity: 0.92 !important;
}

.rank-showcase .rank-podium {
  min-height: 226px !important;
  padding-bottom: 19px !important;
}

.rank-showcase .podium-bar {
  grid-template-rows: auto auto auto;
  align-content: start !important;
  gap: 5px !important;
  padding-bottom: 14px !important;
}

.rank-showcase .podium-1 .podium-bar {
  height: 174px !important;
  min-height: 174px !important;
}

.rank-showcase .podium-2 .podium-bar {
  height: 148px !important;
  min-height: 148px !important;
}

.rank-showcase .podium-3 .podium-bar {
  height: 132px !important;
  min-height: 132px !important;
}

.rank-showcase .podium-bar .leader-avatar {
  order: 1;
}

.rank-showcase .podium-name {
  order: 2;
  width: 100%;
  max-width: 108px;
  min-height: 24px;
  display: block !important;
  margin-top: 3px;
  color: #fff !important;
  font-size: 11px !important;
  font-style: italic;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.rank-showcase .podium-1 .podium-name {
  max-width: 120px;
  font-size: 12px !important;
}

.rank-showcase .podium-score {
  order: 3;
  display: grid !important;
  justify-items: center;
  margin-top: 0 !important;
}

.rank-showcase .podium-score b {
  font-size: 27px !important;
  line-height: 0.86 !important;
}

.rank-showcase .podium-1 .podium-score b {
  font-size: 33px !important;
}

.rank-showcase .podium-3 .podium-score b {
  font-size: 26px !important;
}

.global-ranking .rank-row .leader-pos,
.global-ranking .rank-row.me .leader-pos,
.global-ranking .rank-row .leader-pos.top {
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

.global-ranking .rank-row.me .leader-pos {
  color: #a84cff !important;
}

@media (max-width: 430px) {
  .rank-showcase .rank-podium {
    min-height: 224px !important;
    padding-bottom: 17px !important;
  }

  .rank-showcase .podium-1 .podium-bar {
    height: 172px !important;
    min-height: 172px !important;
  }

  .rank-showcase .podium-2 .podium-bar {
    height: 144px !important;
    min-height: 144px !important;
  }

  .rank-showcase .podium-3 .podium-bar {
    height: 128px !important;
    min-height: 128px !important;
  }

  .rank-showcase .podium-name {
    max-width: 88px;
    min-height: 22px;
    font-size: 10px !important;
  }

  .rank-showcase .podium-1 .podium-name {
    max-width: 98px;
    font-size: 11px !important;
  }
}

/* Final rank page cleanup */
.rank-showcase .podium-rank,
.rank-showcase .podium-1 .podium-rank,
.rank-showcase .podium-2 .podium-rank,
.rank-showcase .podium-3 .podium-rank {
  position: absolute !important;
  top: 12px !important;
  left: 11px !important;
  right: auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.rank-showcase .podium-1 .podium-rank {
  color: #ffdc4f !important;
  font-size: 23px !important;
}

.rank-showcase .podium-3 .podium-rank {
  color: #ff9845 !important;
}

.rank-showcase .podium-rank::before {
  content: "#" !important;
  font-size: 0.68em !important;
  opacity: 0.92 !important;
}

.rank-showcase .podium-bar {
  grid-template-rows: auto auto auto;
  align-content: start !important;
}

.rank-showcase .podium-bar .leader-avatar {
  order: 1;
}

.rank-showcase .podium-name {
  order: 2;
  width: 100%;
  max-width: 108px;
  min-height: 28px;
  display: block !important;
  margin-top: 3px;
  color: #fff !important;
  font-size: 12px !important;
  font-style: italic;
  font-weight: 900;
  line-height: 1.14;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.rank-showcase .podium-score {
  order: 3;
  display: grid !important;
  justify-items: center;
}

.rank-showcase .podium-1 .podium-name {
  max-width: 128px;
  font-size: 13px !important;
}

.global-ranking .rank-row .leader-pos,
.global-ranking .rank-row.me .leader-pos,
.global-ranking .rank-row .leader-pos.top {
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

.global-ranking .rank-row.me .leader-pos {
  color: #a84cff !important;
}

.global-ranking .rank-row .leader-points {
  opacity: 1;
}

.global-ranking .rank-row .leader-points b {
  color: #fff !important;
  opacity: 1;
}

.global-ranking .rank-row .leader-points span {
  opacity: 1;
}

@media (max-width: 430px) {
  .rank-showcase .podium-name {
    max-width: 88px;
    min-height: 24px;
    font-size: 10px !important;
  }

  .rank-showcase .podium-1 .podium-name {
    max-width: 98px;
    font-size: 11px !important;
  }

  .rank-showcase .podium-rank,
  .rank-showcase .podium-2 .podium-rank,
  .rank-showcase .podium-3 .podium-rank {
    font-size: 17px !important;
  }

  .rank-showcase .podium-1 .podium-rank {
    font-size: 20px !important;
  }
}

/* Final podium breathing room */
.rank-showcase .rank-podium {
  min-height: 252px;
  padding-bottom: 20px;
}

.rank-showcase .podium-1 .podium-bar {
  height: 194px;
  min-height: 194px;
}

.rank-showcase .podium-2 .podium-bar {
  height: 162px;
  min-height: 162px;
}

.rank-showcase .podium-3 .podium-bar {
  height: 142px;
  min-height: 142px;
}

.rank-showcase .podium-bar {
  gap: 5px;
  padding-bottom: 14px;
}

.rank-showcase .podium-score b {
  font-size: 32px;
}

.rank-showcase .podium-1 .podium-score b {
  font-size: 38px;
}

.rank-showcase .podium-3 .podium-score b {
  font-size: 30px;
}

@media (max-width: 430px) {
  .rank-showcase .rank-podium {
    min-height: 224px;
    padding-bottom: 17px;
  }

  .rank-showcase .podium-1 .podium-bar {
    height: 172px;
    min-height: 172px;
  }

  .rank-showcase .podium-2 .podium-bar {
    height: 144px;
    min-height: 144px;
  }

  .rank-showcase .podium-3 .podium-bar {
    height: 128px;
    min-height: 128px;
  }

  .rank-showcase .podium-score b {
    font-size: 28px;
  }

  .rank-showcase .podium-1 .podium-score b {
    font-size: 34px;
  }

  .rank-showcase .podium-3 .podium-score b {
    font-size: 27px;
  }
}

/* Final override for scoring reference layout after compact rules */
.points-content .howto-step {
  grid-template-columns: 28px minmax(0, 1fr) 42px;
  min-height: 44px;
  padding: 5px 0;
}

.points-content .howto-glyph {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: 38px;
  color: #b04dff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 16px rgba(176, 77, 255, 0.58);
}

.points-content .howto-step:nth-child(2) .howto-glyph {
  font-size: 18px;
}

.points-content .howto-step:nth-child(4) .howto-glyph {
  font-size: 22px;
}

.points-content .howto-step > div:nth-child(2) {
  min-width: 0;
}

.points-content .howto-steps::before {
  left: 13px;
}

/* Final scoring cards: dark neon reference style */
.points-section-title {
  display: none;
}

.points-content {
  padding-top: 8px;
}

.points-content .rules-list {
  gap: 9px;
}

.points-content .rules-card.scoring-card,
.points-content .rules-card.howto-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(132, 62, 255, 0.46);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 36%),
    radial-gradient(circle at 10% 8%, rgba(113, 41, 255, 0.28), transparent 22%),
    radial-gradient(circle at 94% 8%, rgba(16, 88, 255, 0.14), transparent 30%),
    linear-gradient(145deg, #05051b 0%, #090525 48%, #100739 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 30px rgba(15, 0, 43, 0.2);
}

.points-content .rules-card.howto-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 36%),
    radial-gradient(circle at 4% 6%, rgba(123, 42, 255, 0.34), transparent 26%),
    radial-gradient(circle at 96% 0%, rgba(117, 31, 255, 0.2), transparent 34%),
    linear-gradient(145deg, #05051b 0%, #0a0527 44%, #120744 100%);
}

.points-content .rules-card.scoring-card::before,
.points-content .rules-card.howto-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(140deg, transparent 0 46%, rgba(110, 52, 255, 0.14) 47%, transparent 53%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 36%);
  pointer-events: none;
}

.points-content .rules-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.points-content .rules-title-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), transparent 24%),
    linear-gradient(135deg, #8443ff, #1f5bff);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(132, 67, 255, 0.72);
}

.points-content .rules-card-head b {
  color: #fff;
  font-size: 18px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.4px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(132, 67, 255, 0.36);
}

.points-content .scoring-rule-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.points-content .scoring-card .rule-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(155, 91, 255, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 47, 255, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.points-content .scoring-card .rule-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(173, 91, 255, 0.82);
  border-radius: 11px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(145deg, rgba(119, 34, 255, 0.5), rgba(15, 9, 55, 0.86));
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 0 16px rgba(132, 67, 255, 0.42);
}

.points-content .scoring-card .rule-row b {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.16;
}

.points-content .scoring-card .rule-row span {
  display: block;
  margin-top: 2px;
  color: rgba(226, 220, 240, 0.68);
  font-size: 8.4px;
  font-weight: 760;
  line-height: 1.17;
}

.points-content .scoring-card .rule-points {
  min-width: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #65ff92;
  font-size: 27px;
  font-weight: 950;
  line-height: 0.9;
  text-align: right;
  text-shadow: 0 0 18px rgba(101, 255, 146, 0.5);
  box-shadow: none;
}

.points-content .scoring-card .rule-points::after {
  content: "PTS";
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
}

.points-content .howto-card {
  padding-bottom: 10px;
}

.points-content .howto-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.points-content .howto-steps::before {
  position: absolute;
  top: 23px;
  bottom: 24px;
  left: 13px;
  width: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, #9344ff, #246dff);
  box-shadow: 0 0 12px rgba(130, 67, 255, 0.56);
}

.points-content .howto-step {
  position: relative;
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr 40px;
  align-items: center;
  gap: 9px;
  padding: 6px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.points-content .howto-step:last-child {
  border-bottom: 0;
}

.points-content .howto-number {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(189, 108, 255, 0.9);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(145deg, #8d39ff, #166cff);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 0 14px rgba(132, 67, 255, 0.6);
}

.points-content .howto-step b {
  display: block;
  color: #fff;
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.15;
}

.points-content .howto-step span {
  display: block;
  margin-top: 2px;
  color: rgba(226, 220, 240, 0.62);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.2;
}

.points-content .howto-glyph {
  justify-self: end;
  color: #b04dff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 16px rgba(176, 77, 255, 0.55);
}

@media (max-width: 430px) {
  .points-content .rules-card.scoring-card,
  .points-content .rules-card.howto-card {
    padding: 11px;
  }

  .points-content .scoring-card .rule-row {
    min-height: 74px;
    padding: 9px 8px;
    grid-template-columns: 34px 1fr auto;
  }

  .points-content .scoring-card .rule-icon {
    width: 34px;
    height: 34px;
  }

  .points-content .scoring-card .rule-row b {
    font-size: 11px;
  }

  .points-content .scoring-card .rule-row span {
    font-size: 8px;
  }

  .points-content .scoring-card .rule-points {
    font-size: 25px;
  }

  .points-content .howto-step {
    min-height: 44px;
  }
}

/* Compact scoring screen: keep rules and how-to visible without scrolling */
.points-view {
  min-height: 100svh;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.points-content {
  padding: 8px 14px calc(70px + env(safe-area-inset-bottom));
}

.points-section-title {
  margin-bottom: 6px;
}

.points-section-title h2 {
  font-size: 28px;
  line-height: 0.95;
}

.points-section-title p {
  margin-top: 2px;
  font-size: 11px;
}

.points-content .rules-list {
  gap: 7px;
}

.points-content .rules-card.scoring-card,
.points-content .rules-card.howto-card {
  padding: 9px 10px;
  border-radius: 18px;
}

.points-content .rules-card-head {
  margin-bottom: 5px;
  gap: 1px;
}

.points-content .rules-eyebrow {
  padding: 3px 8px;
  font-size: 8px;
}

.points-content .rules-card-head b {
  font-size: 19px;
}

.points-content .rules-card-head small {
  font-size: 10px;
  line-height: 1.2;
}

.points-content .scoring-card .rule-row {
  grid-template-columns: 34px 1fr 44px;
  min-height: 47px;
  gap: 8px;
  padding: 6px 0;
}

.points-content .scoring-card .rule-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 12px;
}

.points-content .scoring-card .rule-row b {
  font-size: 13px;
}

.points-content .scoring-card .rule-row span {
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.18;
}

.points-content .scoring-card .rule-points {
  min-width: 44px;
  padding: 5px 7px;
  border-radius: 12px;
  font-size: 14px;
}

.points-content .howto-steps {
  gap: 5px;
  margin-top: 6px;
}

.points-content .howto-step {
  grid-template-columns: 24px 1fr;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 13px;
}

.points-content .howto-number {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  font-size: 12px;
}

.points-content .howto-step b {
  font-size: 12px;
}

.points-content .howto-step span {
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.18;
}

@media (max-height: 780px) {
  .points-content {
    padding-top: 10px;
  }

  .points-section-title h2 {
    font-size: 28px;
  }
}

/* Real SVG icon polish for scoring cards */
.points-content .scoring-svg {
  width: 1em;
  height: 1em;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.points-content .scoring-svg text {
  fill: currentColor;
  stroke: none;
  font-size: 9px;
  font-weight: 950;
  font-family: inherit;
}

.points-content .rules-title-icon .scoring-svg {
  width: 18px;
  height: 18px;
  color: #fff;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.38));
}

.points-content .scoring-card .rule-icon {
  display: grid;
  place-items: center;
}

.points-content .scoring-card .rule-icon .scoring-svg {
  width: 21px;
  height: 21px;
  color: #f8f0ff;
  stroke-width: 3;
}

.points-content .howto-glyph {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #b04dff;
  text-align: center;
  text-shadow: none;
}

.points-content .howto-glyph .scoring-svg {
  width: 29px;
  height: 29px;
  color: #b04dff;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px rgba(176, 77, 255, 0.46));
}

.points-content .howto-step:nth-child(2) .howto-glyph .scoring-svg {
  width: 31px;
  height: 31px;
}

.points-content .howto-step:nth-child(4) .howto-glyph .scoring-svg {
  width: 28px;
  height: 28px;
}

/* Dark stadium leaderboard */
.rank-content {
  padding: 12px 12px calc(82px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 35, 255, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(250, 248, 255, 0.92), #f8f7fb 52%);
}

.rank-content .section-title {
  display: none;
}

.rank-board {
  gap: 12px;
}

.rank-showcase,
.global-ranking {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 76, 148, 0.5);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 22%, rgba(63, 119, 255, 0.28), transparent 29%),
    radial-gradient(circle at 86% 20%, rgba(151, 43, 255, 0.24), transparent 32%),
    linear-gradient(145deg, #060817 0%, #050414 52%, #0f062d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 18px 34px rgba(8, 0, 30, 0.2);
}

.rank-showcase::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 14% 38%, rgba(255, 255, 255, 0.32) 0 1%, transparent 8%),
    radial-gradient(ellipse at 86% 38%, rgba(255, 255, 255, 0.28) 0 1%, transparent 8%),
    linear-gradient(160deg, transparent 0 42%, rgba(122, 69, 255, 0.12) 43%, transparent 52%);
  pointer-events: none;
}

.rank-showcase-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
  color: #fff;
}

.rank-showcase-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.rank-showcase-head b,
.global-ranking-head b {
  color: #fff;
  font-size: 19px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.5px;
  line-height: 1;
}

.rank-showcase-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64ff83;
  font-size: 11px;
  font-weight: 950;
}

.rank-showcase-head span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.rank-view-all {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 4, 19, 0.44);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.rank-view-all span {
  font-size: 22px;
  line-height: 1;
}

.rank-showcase .rank-podium {
  position: relative;
  z-index: 1;
  min-height: 232px;
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 30px 16px 18px;
  border-radius: 0;
  background: transparent;
}

.rank-showcase .podium-slot {
  display: grid;
  align-content: end;
}

.rank-showcase .podium-slot.podium-1 {
  order: 2;
}

.rank-showcase .podium-slot.podium-2 {
  order: 1;
}

.rank-showcase .podium-slot.podium-3 {
  order: 3;
}

.rank-showcase .podium-crown {
  height: 28px;
  margin-bottom: -10px;
  transform: none;
}

.rank-showcase .podium-1 .podium-crown {
  height: 34px;
  margin-bottom: -13px;
}

.rank-showcase .podium-crown .crown-icon {
  width: 34px;
  height: 28px;
}

.rank-showcase .podium-1 .podium-crown .crown-icon {
  width: 48px;
  height: 40px;
  filter: drop-shadow(0 0 14px rgba(255, 216, 84, 0.56));
}

.rank-showcase .podium-bar {
  position: relative;
  overflow: visible;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 28px 10px 12px;
  border-radius: 18px 18px 14px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(11, 17, 42, 0.98), rgba(5, 7, 22, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 25px rgba(0, 0, 0, 0.22);
}

.rank-showcase .podium-bar::before {
  position: absolute;
  inset: -1px;
  content: "";
  border-radius: inherit;
  pointer-events: none;
}

.rank-showcase .podium-1 .podium-bar {
  height: 178px;
  min-height: 178px;
  border: 1px solid rgba(255, 213, 65, 0.78);
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 223, 91, 0.42), transparent 34%),
    linear-gradient(180deg, #16120a 0%, #0b090b 100%);
  box-shadow: 0 0 22px rgba(255, 196, 42, 0.32), inset 0 0 24px rgba(255, 196, 42, 0.08);
}

.rank-showcase .podium-2 .podium-bar {
  height: 145px;
  min-height: 145px;
  border: 1px solid rgba(204, 220, 255, 0.58);
  background:
    radial-gradient(circle at 50% 10%, rgba(220, 232, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #07101f 0%, #050a15 100%);
}

.rank-showcase .podium-3 .podium-bar {
  height: 125px;
  min-height: 125px;
  border: 1px solid rgba(255, 150, 71, 0.58);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 139, 59, 0.2), transparent 36%),
    linear-gradient(180deg, #1a0b08 0%, #08080f 100%);
}

.rank-showcase .podium-rank {
  top: 10px;
  left: 10px;
  right: auto;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}

.rank-showcase .podium-1 .podium-rank {
  color: #ffd448;
  font-size: 25px;
}

.rank-showcase .podium-3 .podium-rank {
  color: #ff9b4b;
}

.rank-showcase .podium-bar .leader-avatar {
  width: 56px;
  height: 56px;
  margin-top: 4px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 6px rgba(102, 27, 209, 0.42), 0 0 20px rgba(122, 61, 255, 0.42);
  font-size: 30px;
}

.rank-showcase .podium-1 .podium-bar .leader-avatar {
  width: 66px;
  height: 66px;
  font-size: 36px;
  box-shadow: 0 0 0 7px rgba(99, 27, 202, 0.5), 0 0 24px rgba(255, 218, 74, 0.28);
}

.rank-showcase .podium-name {
  max-width: 100%;
  color: #fff;
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.rank-showcase .podium-score {
  margin-top: 2px;
  color: inherit;
}

.rank-showcase .podium-score b {
  color: #e8eefc;
  font-size: 35px;
  line-height: 0.9;
}

.rank-showcase .podium-1 .podium-score b {
  color: #ffdf54;
  font-size: 42px;
}

.rank-showcase .podium-3 .podium-score b {
  color: #ff9442;
  font-size: 33px;
}

.rank-showcase .podium-score span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.rank-showcase .podium-bar .rank-move {
  display: none;
}

.global-ranking {
  padding: 14px;
}

.global-ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px 12px;
}

.global-ranking-head > b {
  margin-right: auto;
}

.rank-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.rank-bars span {
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #8244ff, #1d95ff);
  box-shadow: 0 0 12px rgba(130, 68, 255, 0.45);
}

.rank-bars span:nth-child(1) { height: 12px; }
.rank-bars span:nth-child(2) { height: 22px; }
.rank-bars span:nth-child(3) { height: 16px; }

.global-ranking .rank-list {
  gap: 7px;
}

.rank-empty-state {
  min-height: 210px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgba(150, 126, 200, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 44, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(20, 9, 43, 0.62), rgba(5, 8, 23, 0.38));
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.rank-empty-state span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 850;
}

.rank-empty-state b {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.rank-empty-state small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 750;
}

.rank-empty-state.small {
  min-height: 78px;
  padding: 14px;
  border-radius: 16px;
}

.rank-empty-state.small b {
  font-size: 17px;
}

.global-ranking .rank-row {
  min-height: 58px;
  grid-template-columns: 46px 46px minmax(0, 1fr) 34px 58px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 122, 183, 0.24);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(28, 48, 94, 0.34), rgba(5, 10, 25, 0.52));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.global-ranking .rank-row.me {
  border-color: rgba(206, 61, 255, 0.82);
  box-shadow: 0 0 18px rgba(198, 44, 255, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.global-ranking .leader-pos {
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
}

.global-ranking .rank-row.me .leader-pos {
  color: #a751ff;
}

.global-ranking .leader-avatar {
  width: 42px;
  height: 42px;
  box-shadow: 0 0 0 3px rgba(126, 35, 255, 0.45), 0 0 16px rgba(126, 35, 255, 0.3);
}

.global-ranking .leader-name b {
  color: #fff;
  font-size: 15px;
}

.global-ranking .rank-row.me .leader-name b {
  color: #b35cff;
}

.global-ranking .leader-points {
  color: #fff;
}

.global-ranking .leader-points b {
  font-size: 22px;
}

.global-ranking .leader-points span {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 430px) {
  .rank-content {
    padding: 10px 10px calc(80px + env(safe-area-inset-bottom));
  }

  .rank-showcase-head {
    padding: 12px 12px 0;
  }

  .rank-showcase-head b,
  .global-ranking-head b {
    font-size: 16px;
  }

  .rank-view-all {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .rank-showcase .rank-podium {
    min-height: 204px;
    gap: 7px;
    padding: 26px 11px 14px;
  }

  .rank-showcase .podium-1 .podium-bar {
    height: 154px;
    min-height: 154px;
  }

  .rank-showcase .podium-2 .podium-bar {
    height: 127px;
    min-height: 127px;
  }

  .rank-showcase .podium-3 .podium-bar {
    height: 111px;
    min-height: 111px;
  }

  .rank-showcase .podium-bar {
    padding: 25px 7px 10px;
  }

  .rank-showcase .podium-bar .leader-avatar {
    width: 46px;
    height: 46px;
    font-size: 25px;
  }

  .rank-showcase .podium-1 .podium-bar .leader-avatar {
    width: 56px;
    height: 56px;
    font-size: 31px;
  }

  .rank-showcase .podium-name {
    font-size: 11px;
  }

  .rank-showcase .podium-score b {
    font-size: 30px;
  }

  .rank-showcase .podium-1 .podium-score b {
    font-size: 36px;
  }

  .global-ranking {
    padding: 12px 10px;
  }

  .global-ranking .rank-row {
    grid-template-columns: 34px 38px minmax(0, 1fr) 28px 48px;
    min-height: 52px;
    gap: 7px;
    padding: 6px 8px;
  }

  .global-ranking .leader-avatar {
    width: 36px;
    height: 36px;
  }

  .global-ranking .leader-name b {
    font-size: 13px;
  }

  .global-ranking .leader-points b {
    font-size: 19px;
  }
}

/* Rank podium: separate ranking badge from points value */
.rank-podium {
  min-height: 166px;
  padding: 8px 7px 0;
}

.podium-bar {
  overflow: visible;
  padding-top: 28px;
}

.podium-1 .podium-bar {
  height: 136px;
  min-height: 136px;
}

.podium-2 .podium-bar {
  height: 116px;
  min-height: 116px;
}

.podium-3 .podium-bar {
  height: 90px;
  min-height: 90px;
  padding-top: 22px;
}

/* Rank podium: tighter trophy composition */
.rank-podium {
  min-height: 154px;
  padding: 10px 7px 8px;
}

.podium-crown {
  height: 20px;
  margin-bottom: -8px;
  transform: translateY(3px);
}

.podium-crown .crown-icon {
  width: 29px;
  height: 24px;
}

.podium-1 .podium-crown {
  height: 25px;
  margin-bottom: -10px;
  transform: translateY(4px);
}

.podium-1 .podium-crown .crown-icon {
  width: 36px;
  height: 30px;
}

.podium-3 .podium-crown .crown-icon {
  width: 25px;
  height: 21px;
}

.podium-bar {
  padding-top: 24px;
  padding-bottom: 18px;
}

.podium-1 .podium-bar {
  height: 128px;
  min-height: 128px;
}

.podium-2 .podium-bar {
  height: 108px;
  min-height: 108px;
}

.podium-3 .podium-bar {
  height: 82px;
  min-height: 82px;
  padding-top: 20px;
  padding-bottom: 16px;
}

.podium-rank {
  position: absolute;
  top: 10px;
  right: 9px;
  z-index: 2;
  min-width: 31px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 8px 18px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  font-style: italic;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.24);
}

.podium-rank::before {
  content: "#";
  font-size: 10px;
  font-weight: 950;
  opacity: 0.9;
  transform: translateY(-1px);
}

.podium-1 .podium-rank {
  top: 10px;
  right: 10px;
  min-width: 36px;
  height: 26px;
  border-color: rgba(255, 236, 139, 0.84);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(135deg, #fff2a7 0%, #ffc130 42%, #ff9100 100%);
  color: #4f2600;
  font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 8px 18px rgba(255, 170, 0, 0.3), 0 0 0 1px rgba(112, 61, 0, 0.12);
  text-shadow: 0 1px 0 rgba(255, 248, 194, 0.78);
}

.podium-2 .podium-rank {
  border-color: rgba(235, 242, 255, 0.82);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #b8c6e8 48%, #7f91c6 100%);
  color: #28375e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 9px 18px rgba(80, 107, 166, 0.24);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.podium-3 .podium-rank {
  top: 8px;
  right: 8px;
  border-color: rgba(255, 194, 145, 0.7);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.58), transparent 32%),
    linear-gradient(135deg, #ffd7b2 0%, #cf7430 48%, #9a3d0c 100%);
  color: #451a05;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(166, 79, 24, 0.26);
  text-shadow: 0 1px 0 rgba(255, 222, 185, 0.58);
}

.podium-bar .rank-move {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 1px 8px;
  font-size: 9px;
  line-height: 1.2;
}

.podium-score {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.podium-score b {
  font-size: 29px;
  letter-spacing: -0.2px;
}

.podium-score span {
  margin-top: 0;
  font-size: 9px;
  text-transform: uppercase;
}

.podium-1 .podium-score {
  min-width: 0;
  background: transparent;
}

.podium-1 .podium-score b {
  font-size: 36px;
}

.podium-3 .podium-score {
  min-width: 0;
  padding: 0;
}

.podium-3 .podium-score b {
  font-size: 25px;
}

.podium-3 .podium-score span {
  font-size: 8px;
}

@media (max-width: 430px) {
  .rank-podium {
    min-height: 150px;
    padding-top: 9px;
    padding-bottom: 8px;
  }

  .podium-1 .podium-bar {
    height: 122px;
    min-height: 122px;
  }

  .podium-2 .podium-bar {
    height: 104px;
    min-height: 104px;
  }

  .podium-3 .podium-bar {
    height: 78px;
    min-height: 78px;
  }

  .podium-rank {
    top: 8px;
    right: 7px;
    min-width: 29px;
    height: 21px;
    padding: 0 6px;
    font-size: 15px;
  }

  .podium-rank::before {
    font-size: 10px;
  }

  .podium-1 .podium-rank {
    top: 9px;
    right: 8px;
    min-width: 34px;
    height: 25px;
    font-size: 18px;
  }

  .podium-score {
    min-width: 0;
    padding: 0;
  }

  .podium-score b {
    font-size: 25px;
  }

  .podium-1 .podium-score b {
    font-size: 31px;
  }

  .podium-3 .podium-score b {
    font-size: 22px;
  }
}

/* Final visible header composition override */
.hero-panel .topbar {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.hero-panel .hero-brand-mark,
.hero-panel .hero-brand-mark img {
  width: 88px;
  height: 88px;
}

.topbar {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.hero-brand-mark,
.hero-brand-mark img {
  width: 88px;
  height: 88px;
}

.hero-summary-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(138px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(147, 91, 255, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(37, 175, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(10, 13, 36, 0.78), rgba(40, 13, 82, 0.54));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055), 0 16px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.hero-summary-card .hero-profile-chip {
  width: 82px;
  justify-self: center;
}

.hero-summary-card .hero-profile-mini .avatar {
  width: 38px !important;
  height: 38px !important;
}

.hero-summary-card .hero-profile-copy strong {
  font-size: 17px;
}

.hero-summary-card .hero-progress-bar {
  width: 70px;
}

.hero-summary-card .header-stats {
  width: 100%;
  gap: 7px;
}

.hero-summary-card .header-stat-card.rank,
.hero-summary-card .header-stat-card.points {
  min-height: 76px;
  border-radius: 18px;
  clip-path: none;
}

.hero-summary-card .header-stat-card.rank::after,
.hero-summary-card .header-stat-card.points::after {
  top: 8px;
  width: 27px;
  height: 27px;
}

.hero-summary-card .header-stat-card.rank span,
.hero-summary-card .header-stat-card.points span {
  margin-top: 18px;
  font-size: 8px;
}

.hero-summary-card .header-stat-card.rank b,
.hero-summary-card .header-stat-card.points b {
  font-size: 25px;
}

@media (max-width: 430px) {
  .hero-panel .topbar {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px;
  }

  .hero-panel .hero-brand-mark,
  .hero-panel .hero-brand-mark img {
    width: 82px;
    height: 82px;
  }

  .topbar {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px;
  }

  .hero-brand-mark,
  .hero-brand-mark img {
    width: 82px;
    height: 82px;
  }

  .hero-summary-card {
    grid-template-columns: 70px minmax(120px, 1fr);
    gap: 6px;
    padding: 7px;
    border-radius: 21px;
  }

  .hero-summary-card .hero-profile-chip {
    width: 68px;
  }

  .hero-summary-card .hero-profile-mini .avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .hero-summary-card .hero-profile-copy strong {
    font-size: 15px;
  }

  .hero-summary-card .hero-progress-bar {
    width: 58px;
    height: 5px;
  }

  .hero-summary-card .hero-progress-count {
    font-size: 7.5px;
  }

  .hero-summary-card .header-stats {
    width: 100%;
    gap: 5px;
  }

  .hero-summary-card .header-stat-card.rank,
  .hero-summary-card .header-stat-card.points {
    min-height: 64px;
    border-radius: 15px;
  }

  .hero-summary-card .header-stat-card.rank b,
  .hero-summary-card .header-stat-card.points b {
    font-size: 22px;
  }
}

/* Final: one premium card for profile, points and rank */
.topbar {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.hero-brand-mark {
  width: 88px;
  height: 88px;
  justify-self: center;
}

.hero-brand-mark img {
  width: 88px;
  height: 88px;
}

.hero-summary-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(138px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(147, 91, 255, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(37, 175, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(10, 13, 36, 0.78), rgba(40, 13, 82, 0.54));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 16px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.hero-summary-card .hero-profile-chip {
  width: 82px;
  justify-self: center;
}

.hero-summary-card .hero-profile-mini .avatar {
  width: 38px !important;
  height: 38px !important;
}

.hero-summary-card .hero-profile-copy strong {
  font-size: 17px;
}

.hero-summary-card .hero-progress-bar {
  width: 70px;
}

.hero-summary-card .header-stats {
  width: 100%;
  gap: 7px;
}

.hero-summary-card .header-stat-card.rank,
.hero-summary-card .header-stat-card.points {
  min-height: 76px;
  border-radius: 18px;
  clip-path: none;
}

.hero-summary-card .header-stat-card.rank::after,
.hero-summary-card .header-stat-card.points::after {
  top: 8px;
  width: 27px;
  height: 27px;
}

.hero-summary-card .header-stat-card.rank span,
.hero-summary-card .header-stat-card.points span {
  margin-top: 18px;
  font-size: 8px;
}

.hero-summary-card .header-stat-card.rank b,
.hero-summary-card .header-stat-card.points b {
  font-size: 25px;
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px;
  }

  .hero-brand-mark,
  .hero-brand-mark img {
    width: 82px;
    height: 82px;
  }

  .hero-summary-card {
    grid-template-columns: 70px minmax(120px, 1fr);
    gap: 6px;
    padding: 7px;
    border-radius: 21px;
  }

  .hero-summary-card .hero-profile-chip {
    width: 68px;
  }

  .hero-summary-card .hero-profile-mini .avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .hero-summary-card .hero-profile-copy strong {
    font-size: 15px;
  }

  .hero-summary-card .hero-progress-bar {
    width: 58px;
    height: 5px;
  }

  .hero-summary-card .hero-progress-count {
    font-size: 7.5px;
  }

  .hero-summary-card .header-stats {
    width: 100%;
    gap: 5px;
  }

  .hero-summary-card .header-stat-card.rank,
  .hero-summary-card .header-stat-card.points {
    min-height: 64px;
    border-radius: 15px;
  }

  .hero-summary-card .header-stat-card.rank b,
  .hero-summary-card .header-stat-card.points b {
    font-size: 22px;
  }
}

/* Unified profile + stats card */
.topbar {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.hero-brand-mark {
  justify-self: center;
}

.hero-summary-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(138px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(147, 91, 255, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(37, 175, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(10, 13, 36, 0.78), rgba(40, 13, 82, 0.54));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 16px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.hero-summary-card .hero-profile-chip {
  width: 82px;
  justify-self: center;
}

.hero-summary-card .hero-profile-mini .avatar {
  width: 38px !important;
  height: 38px !important;
}

.hero-summary-card .hero-profile-copy strong {
  font-size: 17px;
}

.hero-summary-card .hero-progress-bar {
  width: 70px;
}

.hero-summary-card .header-stats {
  width: 100%;
  gap: 7px;
}

.hero-summary-card .header-stat-card.rank,
.hero-summary-card .header-stat-card.points {
  min-height: 76px;
  border-radius: 18px;
  clip-path: none;
}

.hero-summary-card .header-stat-card.rank::after,
.hero-summary-card .header-stat-card.points::after {
  top: 8px;
  width: 27px;
  height: 27px;
}

.hero-summary-card .header-stat-card.rank span,
.hero-summary-card .header-stat-card.points span {
  margin-top: 18px;
  font-size: 8px;
}

.hero-summary-card .header-stat-card.rank b,
.hero-summary-card .header-stat-card.points b {
  font-size: 25px;
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px;
  }

  .hero-brand-mark,
  .hero-brand-mark img {
    width: 82px;
    height: 82px;
  }

  .hero-summary-card {
    grid-template-columns: 70px minmax(120px, 1fr);
    gap: 6px;
    padding: 7px;
    border-radius: 21px;
  }

  .hero-summary-card .hero-profile-chip {
    width: 68px;
  }

  .hero-summary-card .hero-profile-mini .avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .hero-summary-card .hero-profile-copy strong {
    font-size: 15px;
  }

  .hero-summary-card .hero-progress-bar {
    width: 58px;
    height: 5px;
  }

  .hero-summary-card .hero-progress-count {
    font-size: 7.5px;
  }

  .hero-summary-card .header-stats {
    width: 100%;
    gap: 5px;
  }

  .hero-summary-card .header-stat-card.rank,
  .hero-summary-card .header-stat-card.points {
    min-height: 64px;
    border-radius: 15px;
  }

  .hero-summary-card .header-stat-card.rank b,
  .hero-summary-card .header-stat-card.points b {
    font-size: 22px;
  }
}

/* Standalone tournament mark in the hero */
.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(152px, 0.72fr);
  gap: 12px;
}

.hero-profile-copy strong {
  font-size: 22px;
  line-height: 1.05;
}

.hero-brand-mark {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}

.hero-brand-mark img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter:
    drop-shadow(0 9px 16px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 18px rgba(255, 229, 137, 0.25));
}

.hero-profile-chip {
  min-width: 0;
  width: 92px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-profile-mini .avatar {
  width: 44px !important;
  height: 44px !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(123, 34, 255, 0.72) !important;
}

.hero-progress-bar {
  width: 86px;
  height: 6px;
  display: block;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-progress-bar i {
  width: var(--progress);
  min-width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b22ff, #1fa8ff);
  box-shadow: 0 0 12px rgba(73, 131, 255, 0.55);
}

.hero-progress-bar.has-progress i {
  min-width: 8px;
}

.hero-progress-count {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(144px, 0.72fr);
    gap: 8px;
  }

  .hero-profile-copy strong {
    font-size: 18px;
  }

  .hero-brand-mark {
    width: 90px;
    height: 90px;
  }

  .hero-brand-mark img {
    width: 90px;
    height: 90px;
  }

  .hero-profile-chip {
    width: 78px;
    gap: 3px;
    padding: 0;
  }

  .hero-profile-mini .avatar {
    width: 38px !important;
    height: 38px !important;
  }

  .hero-progress-bar {
    width: 72px;
    height: 5px;
    margin-top: 2px;
  }

  .hero-progress-count {
    margin-top: 3px;
    font-size: 8px;
  }

  .header-stats {
    width: min(144px, 100%);
  }
}

/* Championship treatment for Top 3 */
.hero-leaders {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 207, 64, 0.16), transparent 34%),
    radial-gradient(circle at 10% 40%, rgba(82, 180, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(4, 10, 24, 0.94), rgba(11, 7, 36, 0.88));
}

.hero-leaders::before {
  position: absolute;
  inset: 9px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  pointer-events: none;
}

.hero-leaders-kicker {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 16px rgba(138, 24, 255, 0.34);
}

.hero-leaders-kicker::after {
  width: 42px;
  height: 1px;
  margin-left: 9px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd149, transparent);
}

.hero-leader-list {
  align-items: stretch;
}

.hero-leader {
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  min-height: 66px;
  padding: 8px 9px;
  border-width: 1.4px;
}

.hero-leader.gold {
  transform: translateY(-4px) scale(1.04);
  z-index: 3;
}

.hero-leader.silver {
  transform: translateY(2px) scale(0.98);
  z-index: 2;
}

.hero-leader.bronze {
  transform: translateY(6px) scale(0.94);
  z-index: 1;
}

.hero-leader-rank {
  grid-row: 1 / span 2;
  align-self: center;
}

.hero-leader-medal {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  font-size: 12px;
  filter: drop-shadow(0 0 8px rgba(255, 209, 73, 0.38));
}

.hero-leader-avatar {
  grid-column: 2;
  grid-row: 1;
  margin: 0 auto -2px;
}

.hero-leader > div:last-child {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-leader b {
  max-width: 100%;
}

.hero-leader.gold {
  min-height: 74px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 221, 89, 0.28), transparent 36%),
    linear-gradient(145deg, rgba(24, 16, 35, 0.98), rgba(10, 10, 28, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 209, 64, 0.34),
    0 0 22px rgba(255, 190, 36, 0.22),
    0 12px 20px rgba(0, 0, 0, 0.18);
}

.hero-leader.gold .hero-leader-rank {
  color: #ffd149;
  font-size: 23px;
}

.hero-leader.gold .hero-leader-avatar {
  width: 36px;
  height: 36px;
  box-shadow: 0 0 0 3px rgba(255, 209, 64, 0.18), 0 0 18px rgba(255, 209, 64, 0.28);
}

.hero-leader.gold b {
  color: #fff7d6;
}

.hero-leader.gold small {
  color: #ffd149;
}

.hero-leader.silver {
  background:
    radial-gradient(circle at 50% 22%, rgba(217, 228, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(10, 17, 31, 0.96), rgba(6, 11, 22, 0.92));
}

.hero-leader.bronze {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 166, 94, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(24, 13, 10, 0.96), rgba(10, 11, 22, 0.9));
}

.hero-leader.bronze .hero-leader-rank {
  font-size: 15px;
}

.hero-leader.bronze .hero-leader-avatar {
  width: 24px;
  height: 24px;
  font-size: 13px;
}

.hero-leader.bronze b {
  font-size: 8px;
}

.hero-leader.bronze small {
  font-size: 7.5px;
}

@media (max-width: 430px) {
  .hero-leaders {
    padding-bottom: 13px;
  }

  .hero-leader {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 58px;
    padding: 7px 6px;
  }

  .hero-leader.gold {
    min-height: 64px;
    transform: translateY(-3px) scale(1.035);
  }

  .hero-leader.silver {
    transform: translateY(1px) scale(0.98);
  }

  .hero-leader.bronze {
    min-height: 52px;
    transform: translateY(5px) scale(0.93);
  }

  .hero-leader-medal {
    top: 5px;
    right: 6px;
    font-size: 10px;
  }

  .hero-leader.gold .hero-leader-rank {
    font-size: 18px;
  }

  .hero-leader.gold .hero-leader-avatar {
    width: 30px;
    height: 30px;
  }

  .hero-leader.bronze .hero-leader-rank {
    font-size: 13px;
  }

  .hero-leader.bronze .hero-leader-avatar {
    width: 21px;
    height: 21px;
    font-size: 12px;
  }

  .hero-leader.bronze b {
    font-size: 7.5px;
  }

  .hero-leader.bronze small {
    font-size: 7px;
  }
}

/* Final balance for Top 3 championship frame */
.hero-leaders {
  margin: 13px 2px 0;
  padding: 10px 11px 12px;
}

.hero-leaders::before {
  inset: 10px;
  border-radius: 17px;
}

.hero-leaders-kicker {
  padding: 0 0 9px 1px;
}

.hero-leaders-kicker::after {
  width: 58px;
}

.hero-leader-list {
  grid-template-columns: 1.1fr 1fr 0.98fr;
  gap: 7px;
  padding: 0 2px 1px;
}

.hero-leader {
  min-height: 64px;
  padding: 8px 7px;
}

.hero-leader.gold {
  transform: translateY(-3px) scale(1.035);
}

.hero-leader.silver {
  transform: translateY(1px) scale(0.985);
}

.hero-leader.bronze {
  transform: translateY(5px) scale(0.95);
}

@media (max-width: 430px) {
  .hero-leaders {
    margin: 12px 1px 0;
    padding: 9px 10px 12px;
  }

  .hero-leader-list {
    grid-template-columns: 1.1fr 1fr 0.98fr;
    gap: 4px;
    padding: 0 1px 1px;
  }

  .hero-leader {
    min-height: 56px;
    padding: 7px 5px;
  }
}

/* Final Rank page revert */
.rank-content {
  padding: 18px 16px calc(92px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0%, rgba(138, 63, 252, 0.08), transparent 34%),
    linear-gradient(180deg, #f7f3f8 0%, #fbf9fc 100%);
}

.rank-content .section-title {
  display: flex;
}

.rank-content .rank-board {
  gap: 10px;
}

@media (max-width: 430px) {
  .rank-content {
    padding: 14px 12px calc(82px + env(safe-area-inset-bottom));
  }
}

/* Final production match-card alignment: keep as the last stylesheet pass. */
@media (max-width: 900px) {
  .match-list {
    gap: 10px;
  }

  .match-card {
    border-radius: 16px;
  }

  .match-head {
    padding: 7px 12px 2px;
  }

  .match-meta {
    gap: 5px;
    font-size: 10.5px;
    line-height: 1.05;
  }

  .match-badge {
    min-height: 23px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .tag {
    min-height: 23px;
    padding: 0 9px;
    font-size: 9.8px;
  }

  .match-card .teams {
    grid-template-columns: minmax(98px, 1fr) auto minmax(98px, 1fr);
    gap: 6px;
    align-items: center;
    margin: 5px 12px 0;
  }

  .match-card .team {
    gap: 2px;
    justify-items: stretch;
  }

  .match-card .team-code {
    display: grid;
    align-items: center;
    width: 100%;
    height: 40px;
    min-height: 0;
    padding: 4px 7px;
    border-radius: 13px;
  }

  .match-card .team-home .team-code {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .match-card .team-away .team-code {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .match-card .team-home .flag {
    grid-column: 1;
    justify-self: start;
  }

  .match-card .team-away .flag {
    grid-column: 2;
    justify-self: end;
  }

  .match-card .team-home .team-code b {
    grid-column: 2;
  }

  .match-card .team-away .team-code b {
    grid-column: 1;
  }

  .match-card .team-home .team-code b,
  .match-card .team-away .team-code b {
    justify-self: center;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-card .flag {
    width: 30px;
    height: 28px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  }

  .match-card .team-name {
    width: 100%;
    color: var(--ink);
    font-size: 10.5px;
    font-weight: 820;
    line-height: 1.02;
    text-align: center;
  }

  .match-card .scoreline {
    grid-template-columns: 52px 9px 52px;
    gap: 5px;
    align-self: start;
    align-items: center;
    height: 40px;
    margin-top: 0;
    transform: none;
  }

  .match-card .score-control {
    height: 40px;
  }

  .match-card .score-input {
    width: 52px;
    height: 40px;
    border-radius: 14px;
    font-size: 22px;
    line-height: 40px;
  }

  .match-card .scoreline > span {
    display: grid;
    width: 9px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1;
    text-align: center;
  }

  .prediction-zone {
    padding: 6px 12px;
  }

  .prediction-status {
    min-height: 38px;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 8px;
    border-radius: 12px;
  }

  .status-auto-icon {
    width: 22px;
    height: 22px;
  }

  .status-auto-icon img {
    width: 12px;
    height: 16px;
  }

  .status-result span {
    font-size: 7.8px;
  }

  .status-result b {
    margin-top: 1px;
    font-size: 11.2px;
    line-height: 1;
  }

  .status-result small {
    margin-top: 1px;
    font-size: 7.6px;
    line-height: 1;
  }

  .match-foot {
    min-height: 36px;
    padding: 5px 12px;
  }

  .match-foot small {
    gap: 5px;
    font-size: 9.8px;
    line-height: 1;
  }

  svg.stadium-icon {
    width: 19px;
    height: 13px;
    flex-basis: 19px;
  }

  .save-btn {
    min-width: 78px;
    min-height: 30px;
    border-radius: 10px;
    font-size: 10.8px;
  }
}

/* Final production section header balance. */
@media (max-width: 900px) {
  .predict-content {
    padding-top: 18px;
  }

  .predict-content .section-title {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 12px;
    margin-bottom: 11px;
  }

  .predict-content .section-title > div {
    min-width: 0;
  }

  .predict-content .section-title h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
  }

  .predict-content .section-title p {
    max-width: none;
    margin-top: 7px;
    color: #80698a;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.1;
    white-space: nowrap;
  }

  .predict-content .fixture-filter {
    position: relative;
    top: auto;
    right: auto;
    min-width: 118px;
    align-self: end;
  }

  .predict-content .fixture-filter select {
    min-height: 40px;
    padding: 0 34px 0 17px;
    border: 1px solid rgba(124, 44, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: #75617f;
    font-size: 14px;
    font-weight: 820;
    box-shadow: 0 8px 18px rgba(35, 0, 60, 0.055);
  }

  .predict-content .fixture-filter span {
    right: 13px;
    color: #80698a;
    font-size: 18px;
    transform: translateY(-52%);
  }

  .predict-content .fixture-days {
    margin-top: 0;
    margin-bottom: 11px;
  }
}

@media (max-width: 360px) {
  .predict-content .section-title {
    column-gap: 8px;
  }

  .predict-content .section-title h2 {
    font-size: 27px;
  }

  .predict-content .section-title p {
    font-size: 10.8px;
  }

  .predict-content .fixture-filter {
    min-width: 104px;
  }

  .predict-content .fixture-filter select {
    min-height: 36px;
    padding-left: 13px;
    padding-right: 29px;
    font-size: 12.5px;
  }
}

/* Final production predict header redesign. */
@media (max-width: 900px) {
  .predict-content {
    padding-top: 12px;
  }

  .predict-content .section-title {
    position: relative;
    display: block;
    min-height: 46px;
    margin: 0 0 8px;
    padding: 8px 96px 7px 10px;
    border-radius: 14px;
    background:
      linear-gradient(90deg, rgba(124, 44, 255, 0.08), rgba(255, 255, 255, 0) 72%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  }

  .predict-content .section-title::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(180deg, #7c2cff, #0aa5ff);
  }

  .predict-content .section-title > div {
    min-width: 0;
  }

  .predict-content .section-title h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: 0;
  }

  .predict-content .section-title p {
    max-width: none;
    margin-top: 5px;
    color: #80698a;
    font-size: 9.8px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
  }

  .predict-content .fixture-filter {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 82px;
    width: 82px;
  }

  .predict-content .fixture-filter select {
    width: 100%;
    min-height: 28px;
    padding: 0 23px 0 10px;
    border: 1px solid rgba(124, 44, 255, 0.18);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 255, 0.94));
    color: #75617f;
    font-size: 10.5px;
    font-weight: 820;
    box-shadow: 0 6px 14px rgba(35, 0, 60, 0.055);
  }

  .predict-content .fixture-filter span {
    right: 8px;
    color: #80698a;
    font-size: 12px;
    transform: translateY(-52%);
  }

  .predict-content .fixture-days {
    margin-top: -1px;
    margin-bottom: 9px;
  }
}

/* Final production live score center: real score replaces the plain dash. */
@media (max-width: 900px) {
  .match-card.has-live-score .teams {
    margin-bottom: 0;
  }

  .match-card .scoreline {
    grid-template-columns: 46px 54px 46px;
    gap: 5px;
    align-items: start;
    height: auto;
    min-height: 40px;
  }

  .match-card .score-control,
  .match-card .score-input {
    width: 46px;
    height: 40px;
  }

  .match-card .score-input {
    border-radius: 13px;
    font-size: 20px;
    line-height: 40px;
  }

  .live-score {
    position: static;
    display: grid;
    align-content: center;
    justify-items: center;
    width: 54px;
    min-width: 54px;
    height: 40px;
    padding: 4px 3px 3px;
    transform: none;
    border: 1px solid rgba(124, 44, 255, 0.16);
    border-radius: 13px;
    background:
      radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.9), transparent 48%),
      linear-gradient(180deg, #fff 0%, #f7f4fb 100%);
    color: #2d0050;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    text-align: center;
    text-decoration: none;
    text-shadow: none;
  }

  .live-score span {
    max-width: 100%;
    overflow: hidden;
    color: #7f6a8d;
    font-size: 6.8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-score b {
    margin-top: 3px;
    color: #25003d;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
  }

  .live-score.live {
    border-color: rgba(0, 194, 129, 0.38);
    background:
      radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.92), transparent 48%),
      linear-gradient(135deg, #ecfff6 0%, #d9fff0 100%);
    box-shadow: 0 6px 14px rgba(0, 194, 129, 0.12);
  }

  .live-score.live span,
  .live-score.live b {
    color: #00835e;
  }

  .live-score.final {
    border-color: rgba(0, 131, 94, 0.28);
    background: linear-gradient(180deg, #f0fff9 0%, #e3fbf1 100%);
  }

  .live-score.final span,
  .live-score.final b {
    color: #007653;
  }

  .live-score.waiting span {
    color: #7f6a8d;
  }

  .live-score.waiting b {
    margin-top: 3px;
    color: #25003d;
    font-size: 13px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .match-card .teams {
    grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr);
    gap: 5px;
    margin-right: 10px;
    margin-left: 10px;
  }

  .match-card .scoreline {
    grid-template-columns: 42px 50px 42px;
    gap: 4px;
  }

  .match-card .score-control,
  .match-card .score-input {
    width: 42px;
  }

  .live-score {
    width: 50px;
    min-width: 50px;
  }
}

/* Final production live panel: separate real score from prediction inputs. */
@media (max-width: 900px) {
  .match-card.has-live-score .teams {
    margin-bottom: 0;
  }

  .match-card .scoreline {
    grid-template-columns: 52px 9px 52px;
    gap: 5px;
    align-items: center;
    height: 40px;
    min-height: 40px;
  }

  .match-card .score-control,
  .match-card .score-input {
    width: 52px;
    height: 40px;
  }

  .match-card .score-input {
    border-radius: 14px;
    font-size: 22px;
    line-height: 40px;
  }

  .match-card .scoreline > span {
    display: grid;
    width: 9px;
    height: 40px;
    place-items: center;
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
    line-height: 1;
  }

  .live-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    margin: 6px 12px 8px;
    padding: 7px 10px;
    border: 1px solid rgba(124, 44, 255, 0.14);
    border-radius: 13px;
    background:
      radial-gradient(circle at 50% 0%, rgba(124, 44, 255, 0.08), transparent 52%),
      linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
  }

  .live-panel.waiting {
    grid-template-columns: minmax(0, 1fr);
    min-height: 34px;
    padding: 6px 10px;
  }

  .live-core {
    display: grid;
    justify-items: center;
    min-width: 0;
  }

  .live-core span {
    display: inline-grid;
    min-height: 17px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff2951, #e80032);
    color: #fff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(232, 0, 50, 0.18);
  }

  .live-core small {
    margin-top: 3px;
    color: #7c2cff;
    font-size: 8.5px;
    font-weight: 900;
    line-height: 1;
  }

  .live-core b {
    margin-top: 3px;
    color: #ed0033;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
  }

  .live-panel.waiting .live-core {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .live-panel.waiting .live-core span {
    min-height: 18px;
    padding: 0 9px;
    background: #f1ecf6;
    color: #7f6a8d;
    font-size: 8.2px;
    box-shadow: none;
  }

  .live-panel.waiting .live-core b {
    margin-top: 0;
    color: #2d0050;
    font-size: 13px;
  }

  .live-panel.final .live-core span {
    background: #e6f9f2;
    color: #00835e;
    box-shadow: none;
  }

  .live-panel.final .live-core b {
    color: #00835e;
  }

  .live-goals {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .live-goals li {
    display: grid;
    grid-template-columns: auto 12px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #2d153b;
    font-size: 10.8px;
    font-weight: 780;
    line-height: 1.05;
  }

  .live-goals.away li {
    grid-template-columns: minmax(0, 1fr) 12px auto;
    text-align: right;
  }

  .live-goals.away li span {
    grid-column: 3;
  }

  .live-goals.away li i {
    grid-column: 2;
    grid-row: 1;
  }

  .live-goals.away li b {
    grid-column: 1;
    grid-row: 1;
  }

  .live-goals span {
    color: #7c2cff;
    font-weight: 950;
  }

  .live-goals i {
    color: #2d0050;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    text-align: center;
  }

  .live-goals b {
    min-width: 0;
    overflow: hidden;
    font-size: inherit;
    font-weight: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-goals.empty {
    min-height: 1px;
  }
}

@media (max-width: 380px) {
  .match-card .scoreline {
    grid-template-columns: 46px 9px 46px;
  }

  .match-card .score-control,
  .match-card .score-input {
    width: 46px;
  }

  .live-panel {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 5px;
    margin-right: 10px;
    margin-left: 10px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Final production LIVE state: red badge, match clock, red score. */
@media (max-width: 900px) {
  .live-panel.live {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    min-height: 78px;
    padding: 8px 12px;
    border-color: rgba(124, 44, 255, 0.18);
    background:
      radial-gradient(circle at 50% -10%, rgba(124, 44, 255, 0.1), transparent 44%),
      linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
  }

  .live-panel.live .live-core {
    align-self: center;
  }

  .live-panel.live .live-core span {
    min-width: 58px;
    min-height: 20px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff3158 0%, #ec0035 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    box-shadow:
      0 5px 10px rgba(236, 0, 53, 0.18),
      inset 0 -2px 0 rgba(118, 0, 35, 0.2);
  }

  .live-panel.live .live-core small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    color: #7c2cff;
    font-size: 9.5px;
    font-weight: 950;
    line-height: 1;
  }

  .live-panel.live .live-core small::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    content: "";
    border: 1.5px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 2px -2px 0 -1px currentColor;
  }

  .live-panel.live .live-core b {
    margin-top: 5px;
    color: #f00031;
    font-size: 24px;
    font-weight: 950;
    line-height: 0.92;
  }

  .live-panel.live .live-goals {
    gap: 8px;
  }

  .live-panel.live .live-goals li {
    grid-template-columns: auto 14px minmax(0, 1fr);
    gap: 8px;
    color: #271038;
    font-size: 12px;
    font-weight: 820;
  }

  .live-panel.live .live-goals.away li {
    grid-template-columns: minmax(0, 1fr) 14px auto;
  }

  .live-panel.live .live-goals span {
    color: #7c2cff;
    font-size: 13px;
    font-weight: 950;
  }

  .live-panel.live .live-goals i {
    color: #220033;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .live-panel.live {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    padding-right: 8px;
    padding-left: 8px;
  }

  .live-panel.live .live-core b {
    font-size: 22px;
  }

  .live-panel.live .live-goals li {
    gap: 5px;
    font-size: 10.5px;
  }
}

/* Final production LIVE typography trim. */
@media (max-width: 900px) {
  .live-panel.live {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    min-height: 74px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .live-panel.live .live-core span {
    min-width: 47px;
    min-height: 16px;
    padding: 0 8px;
    background: linear-gradient(180deg, #ff3158 0%, #ec0035 100%);
    font-size: 8.5px;
    font-weight: 880;
    box-shadow: none;
  }

  .live-panel.live .live-core small {
    gap: 2px;
    margin-top: 4px;
    color: #7c2cff;
    font-size: 7.2px;
    font-weight: 520;
    letter-spacing: 0;
  }

  .live-panel.live .live-core small::before {
    width: auto;
    height: auto;
    content: "Time";
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #8f7a9a;
    font-size: 6.4px;
    font-weight: 480;
  }

  .live-panel.live .live-core b {
    margin-top: 4px;
    color: #f00031;
    font-size: 20px;
    font-weight: 900;
    line-height: 0.95;
  }

  .live-panel.live .live-goals {
    gap: 6px;
  }

  .live-panel.live .live-goals li {
    grid-template-columns: auto 11px minmax(0, 1fr);
    gap: 5px;
    color: #2f1a3e;
    font-size: 9.4px;
    font-weight: 560;
    line-height: 1.05;
  }

  .live-panel.live .live-goals.away li {
    grid-template-columns: minmax(0, 1fr) 11px auto;
  }

  .live-panel.live .live-goals span {
    color: #7c2cff;
    font-size: 10.2px;
    font-weight: 760;
  }

  .live-panel.live .live-goals i {
    font-size: 8.8px;
  }
}

@media (max-width: 380px) {
  .live-panel.live {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  .live-panel.live .live-core b {
    font-size: 19px;
  }

  .live-panel.live .live-goals li {
    gap: 4px;
    font-size: 8.8px;
  }

  .live-panel.live .live-goals span {
    font-size: 9.4px;
  }
}

/* Final production LIVE pill fit. */
@media (max-width: 900px) {
  .live-panel.live .live-core span {
    min-width: 0;
    width: fit-content;
    min-height: 14px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 7.8px;
    font-weight: 860;
    line-height: 14px;
  }
}

/* Final production pre-match score badge. */
@media (max-width: 900px) {
  .live-panel.waiting {
    width: auto;
    min-width: 0;
    min-height: 46px;
    margin: 6px 12px 8px;
    padding: 7px 12px;
    border: 1px solid rgba(124, 44, 255, 0.13);
    border-radius: 13px;
    background:
      radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.95), transparent 55%),
      linear-gradient(180deg, #fff 0%, #f8f4ff 100%);
    box-shadow: 0 5px 14px rgba(45, 0, 80, 0.035);
  }

  .live-panel.waiting .live-core {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    gap: 5px;
  }

  .live-panel.waiting .live-core span {
    min-height: 0;
    padding: 0;
    background: transparent;
    color: #8a7794;
    font-size: 8px;
    font-weight: 680;
    line-height: 1;
  }

  .live-panel.waiting .live-core b {
    margin: 0;
    color: #2d0050;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .live-panel.waiting {
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Final production match phase states: NS / LIVE / HT / FT share one layout. */
@media (max-width: 900px) {
  .live-panel {
    width: auto;
    min-height: 56px;
    margin: 6px 12px 8px;
    padding: 9px 12px;
    border-radius: 13px;
  }

  .live-panel.waiting,
  .live-panel.live,
  .live-panel.half,
  .live-panel.final {
    border-width: 1px;
    background:
      radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.92), transparent 52%),
      linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  }

  .live-panel.waiting {
    grid-template-columns: minmax(0, 1fr);
    border-color: #d8d7e2;
  }

  .live-panel.live {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    border-color: rgba(0, 184, 93, 0.42);
    background:
      radial-gradient(circle at 50% -8%, rgba(21, 197, 106, 0.12), transparent 52%),
      linear-gradient(180deg, #fbfffd 0%, #f4fff9 100%);
  }

  .live-panel.half {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    border-color: rgba(255, 140, 44, 0.5);
    background:
      radial-gradient(circle at 50% -8%, rgba(255, 140, 44, 0.12), transparent 52%),
      linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
  }

  .live-panel.final {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    border-color: #d8d7e2;
  }

  .live-core {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 0 8px;
    min-width: 0;
  }

  .live-core span {
    grid-column: 1;
    display: inline-grid;
    width: fit-content;
    min-width: 0;
    min-height: 16px;
    align-items: center;
    padding: 0 9px;
    border-radius: 5px;
    background: #eceef3;
    color: #6f7480;
    font-size: 8px;
    font-weight: 850;
    line-height: 16px;
    box-shadow: none;
  }

  .live-core small {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #7d8290;
    font-size: 9.2px;
    font-weight: 680;
    line-height: 1;
  }

  .live-core small::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    content: "";
    border: 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: none;
  }

  .live-core b {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: #060b2a;
    font-size: 24px;
    font-weight: 950;
    line-height: 0.92;
    letter-spacing: 0;
  }

  .live-panel.waiting .live-core {
    grid-column: 1;
  }

  .live-panel.live .live-core span {
    background: linear-gradient(180deg, #16d873 0%, #08af58 100%);
    color: #fff;
  }

  .live-panel.live .live-core small {
    color: #08af58;
  }

  .live-panel.half .live-core span {
    background: linear-gradient(180deg, #ffae4b 0%, #ff8429 100%);
    color: #fff;
  }

  .live-panel.half .live-core small,
  .live-panel.final .live-core small {
    display: none;
  }

  .live-panel.final .live-core span {
    background: #b7bdc8;
    color: #fff;
  }

  .live-panel.live .live-goals,
  .live-panel.half .live-goals,
  .live-panel.final .live-goals {
    gap: 5px;
  }

  .live-panel.live .live-goals li,
  .live-panel.half .live-goals li,
  .live-panel.final .live-goals li {
    grid-template-columns: auto 11px minmax(0, 1fr);
    gap: 5px;
    color: #2f1a3e;
    font-size: 9.4px;
    font-weight: 560;
    line-height: 1.05;
  }

  .live-panel.live .live-goals.away li,
  .live-panel.half .live-goals.away li,
  .live-panel.final .live-goals.away li {
    grid-template-columns: minmax(0, 1fr) 11px auto;
  }

  .live-panel.live .live-goals span,
  .live-panel.half .live-goals span,
  .live-panel.final .live-goals span {
    color: #7c2cff;
    font-size: 10px;
    font-weight: 760;
  }

  .live-panel.live .live-goals i,
  .live-panel.half .live-goals i,
  .live-panel.final .live-goals i {
    font-size: 8.8px;
  }
}

@media (max-width: 380px) {
  .live-panel.live,
  .live-panel.half,
  .live-panel.final {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    padding-right: 8px;
    padding-left: 8px;
  }

  .live-core b {
    font-size: 22px;
  }
}

/* Final production phase specificity lock. */
@media (max-width: 900px) {
  .live-panel.waiting .live-core span,
  .live-panel.live .live-core span,
  .live-panel.half .live-core span,
  .live-panel.final .live-core span {
    display: inline-grid;
    width: fit-content;
    min-width: 0;
    min-height: 16px;
    align-items: center;
    padding: 0 9px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 850;
    line-height: 16px;
    box-shadow: none;
  }

  .live-panel.waiting .live-core span {
    background: #eceef3;
    color: #6f7480;
  }

  .live-panel.live .live-core span {
    background: linear-gradient(180deg, #16d873 0%, #08af58 100%);
    color: #fff;
  }

  .live-panel.half .live-core span {
    background: linear-gradient(180deg, #ffae4b 0%, #ff8429 100%);
    color: #fff;
  }

  .live-panel.final .live-core span {
    background: #b7bdc8;
    color: #fff;
  }

  .live-panel.waiting .live-core small,
  .live-panel.live .live-core small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 9.2px;
    font-weight: 680;
    line-height: 1;
  }

  .live-panel.waiting .live-core small {
    color: #7d8290;
  }

  .live-panel.live .live-core small {
    color: #08af58;
  }

  .live-panel.waiting .live-core small::before,
  .live-panel.live .live-core small::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    content: "";
    border: 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: none;
  }

  .live-panel.waiting .live-core b,
  .live-panel.live .live-core b,
  .live-panel.half .live-core b,
  .live-panel.final .live-core b {
    margin-top: 8px;
    color: #060b2a;
    font-size: 24px;
    font-weight: 950;
    line-height: 0.92;
  }
}

/* Final production compact phase meta spacing. */
@media (max-width: 900px) {
  .live-panel.waiting .live-core,
  .live-panel.live .live-core {
    grid-template-columns: auto auto;
    column-gap: 8px;
  }

  .live-panel.waiting .live-core span,
  .live-panel.live .live-core span {
    grid-column: 1;
  }

  .live-panel.waiting .live-core small,
  .live-panel.live .live-core small {
    grid-column: 2;
    gap: 8px;
  }

  .live-panel.waiting .live-core b,
  .live-panel.live .live-core b {
    grid-column: 1 / -1;
  }
}

/* Final production NS score size tune. */
@media (max-width: 900px) {
  .live-panel.waiting .live-core b {
    font-size: 21px;
    line-height: 0.95;
  }
}

/* Final production center-axis live panel. */
@media (max-width: 900px) {
  .live-panel.live,
  .live-panel.half,
  .live-panel.final {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    padding-right: 10px;
    padding-left: 10px;
  }

  .live-panel.live .live-core,
  .live-panel.half .live-core,
  .live-panel.final .live-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 64px;
    transform: translate(-50%, -50%);
  }

  .live-panel.live .live-core b,
  .live-panel.half .live-core b,
  .live-panel.final .live-core b {
    color: #f00031;
    font-size: 20px;
    line-height: 0.95;
  }

  .live-panel.live .live-goals.home,
  .live-panel.half .live-goals.home,
  .live-panel.final .live-goals.home {
    grid-column: 1;
    padding-right: 4px;
  }

  .live-panel.live .live-goals.away,
  .live-panel.half .live-goals.away,
  .live-panel.final .live-goals.away {
    grid-column: 3;
    padding-left: 4px;
  }
}

/* Final production soft status tinting. */
@media (max-width: 900px) {
  .live-panel.waiting {
    border-color: rgba(139, 148, 163, 0.22);
    background:
      radial-gradient(circle at 50% -12%, rgba(139, 148, 163, 0.055), transparent 50%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.96));
  }

  .live-panel.live {
    border-color: rgba(0, 194, 129, 0.34);
    background:
      radial-gradient(circle at 50% -12%, rgba(0, 194, 129, 0.1), transparent 50%),
      linear-gradient(180deg, rgba(251, 255, 253, 0.98), rgba(240, 255, 248, 0.94));
  }

  .live-panel.half {
    border-color: rgba(255, 145, 48, 0.32);
    background:
      radial-gradient(circle at 50% -12%, rgba(255, 145, 48, 0.095), transparent 50%),
      linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 247, 238, 0.94));
  }

  .live-panel.final {
    border-color: rgba(139, 148, 163, 0.26);
    background:
      radial-gradient(circle at 50% -12%, rgba(124, 44, 255, 0.045), transparent 50%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 252, 0.96));
  }

  .match-result-summary {
    min-height: 30px;
    margin-top: 5px;
    padding: 5px 9px;
    border-radius: 11px;
  }

  .match-result-summary span {
    font-size: 8px;
  }

  .match-result-summary b {
    font-size: 9.4px;
  }

  .match-result-summary small {
    font-size: 8px;
  }

  .match-result-summary em {
    min-width: 29px;
    min-height: 18px;
    font-size: 9.4px;
  }
}

/* Final production center single-badge phases. */
@media (max-width: 900px) {
  .live-panel.half .live-core,
  .live-panel.final .live-core {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .live-panel.half .live-core span,
  .live-panel.final .live-core span,
  .live-panel.half .live-core b,
  .live-panel.final .live-core b {
    grid-column: 1;
    justify-self: center;
  }
}

/* Final production compact free-scroll date chips. */
@media (max-width: 900px) {
  .predict-content .fixture-days,
  .fixture-days {
    gap: 7px;
    margin: -2px -18px 8px;
    padding: 2px 18px 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .day-chip {
    min-width: 78px;
    min-height: 40px;
    gap: 2px;
    padding: 5px 9px;
    border-radius: 13px;
    scroll-snap-align: none;
  }

  .day-chip span {
    font-size: 11.8px;
    line-height: 1;
  }

  .day-chip b {
    font-size: 8.2px;
    line-height: 1;
  }
}

/* Final production rank podium fit. */
.rank-showcase .rank-podium {
  min-height: 240px !important;
  padding: 26px 14px 20px !important;
}

.rank-showcase .podium-bar {
  box-sizing: border-box;
  grid-template-rows: auto auto auto !important;
  align-content: start !important;
  gap: 4px !important;
  padding: 26px 8px 16px !important;
  overflow: visible;
}

.rank-showcase .podium-1 .podium-bar {
  height: 180px !important;
  min-height: 180px !important;
}

.rank-showcase .podium-2 .podium-bar {
  height: 154px !important;
  min-height: 154px !important;
}

.rank-showcase .podium-3 .podium-bar {
  height: 136px !important;
  min-height: 136px !important;
}

.rank-showcase .podium-bar .leader-avatar {
  width: 50px !important;
  height: 50px !important;
  margin-top: 2px !important;
  font-size: 27px !important;
}

.rank-showcase .podium-1 .podium-bar .leader-avatar {
  width: 58px !important;
  height: 58px !important;
  font-size: 32px !important;
}

.rank-showcase .podium-name,
.rank-showcase .podium-1 .podium-name {
  width: 100% !important;
  max-width: calc(100% - 8px) !important;
  min-height: 0 !important;
  margin-top: 2px !important;
  font-size: 10.2px !important;
  line-height: 1.06 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden !important;
}

.rank-showcase .podium-1 .podium-name {
  font-size: 11px !important;
}

.rank-showcase .podium-score {
  margin-top: 0 !important;
  line-height: 1 !important;
}

.rank-showcase .podium-score b {
  font-size: 25px !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

.rank-showcase .podium-1 .podium-score b {
  font-size: 30px !important;
}

.rank-showcase .podium-3 .podium-score b {
  font-size: 24px !important;
}

.rank-showcase .podium-score span {
  display: block !important;
  margin-top: 1px !important;
  font-size: 7.2px !important;
  line-height: 1 !important;
  letter-spacing: 0.3px;
}

@media (max-width: 430px) {
  .rank-showcase .rank-podium {
    min-height: 212px !important;
    padding: 22px 10px 18px !important;
  }

  .rank-showcase .podium-bar {
    gap: 3px !important;
    padding: 23px 6px 14px !important;
  }

  .rank-showcase .podium-1 .podium-bar {
    height: 160px !important;
    min-height: 160px !important;
  }

  .rank-showcase .podium-2 .podium-bar {
    height: 137px !important;
    min-height: 137px !important;
  }

  .rank-showcase .podium-3 .podium-bar {
    height: 122px !important;
    min-height: 122px !important;
  }

  .rank-showcase .podium-bar .leader-avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 23px !important;
  }

  .rank-showcase .podium-1 .podium-bar .leader-avatar {
    width: 50px !important;
    height: 50px !important;
    font-size: 28px !important;
  }

  .rank-showcase .podium-name,
  .rank-showcase .podium-1 .podium-name {
    font-size: 9.2px !important;
  }

  .rank-showcase .podium-1 .podium-name {
    font-size: 10px !important;
  }

  .rank-showcase .podium-score b {
    font-size: 22px !important;
  }

  .rank-showcase .podium-1 .podium-score b {
    font-size: 27px !important;
  }

  .rank-showcase .podium-3 .podium-score b {
    font-size: 21px !important;
  }
}

/* Final production rank round tabs. */
.rank-round-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
  padding: 4px;
  border: 1px solid rgba(111, 83, 165, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 0%, rgba(110, 36, 255, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 253, 0.88));
  box-shadow: 0 10px 24px rgba(43, 21, 83, 0.08);
}

.rank-round-tabs button {
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 7px 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #75627f;
  font: inherit;
  line-height: 1;
  text-align: center;
}

.rank-round-tabs button span {
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.rank-round-tabs button b {
  color: rgba(117, 98, 127, 0.76);
  font-size: 8.8px;
  font-weight: 900;
  line-height: 1.05;
}

.rank-round-tabs button.active {
  background:
    linear-gradient(135deg, #7b16ff 0%, #245cff 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(78, 31, 213, 0.28);
}

.rank-round-tabs button.active b {
  color: rgba(255, 255, 255, 0.78);
}

.rank-prize-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.rank-prize-strip div {
  min-width: 0;
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(130, 96, 190, 0.16);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 255, 0.74));
}

.rank-prize-strip span {
  overflow: hidden;
  color: #806d89;
  font-size: 8.6px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-prize-strip b {
  color: #29003c;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.global-ranking-head small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .rank-round-tabs {
    gap: 5px;
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .rank-round-tabs button {
    min-height: 43px;
    padding: 6px 3px;
    border-radius: 10px;
  }

  .rank-round-tabs button span {
    font-size: 10.8px;
  }

  .rank-round-tabs button b {
    font-size: 7.8px;
  }

  .rank-prize-strip {
    gap: 5px;
    margin-bottom: 8px;
  }

  .rank-prize-strip div {
    min-height: 38px;
    padding: 7px 6px;
    border-radius: 11px;
  }

  .rank-prize-strip span {
    font-size: 7.6px;
  }

  .rank-prize-strip b {
    font-size: 10.4px;
  }
}

/* Final production rank layout matched to dark podium reference. */
.rank-content {
  background:
    radial-gradient(circle at 50% 0%, rgba(101, 37, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #f5f2fb 0%, #f9f7fd 48%, #f5f2fb 100%);
}

.rank-board {
  gap: 10px !important;
}

.rank-round-tabs {
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 9px;
  padding: 5px;
  border: 1px solid rgba(141, 129, 210, 0.48);
  border-radius: 19px;
  background:
    radial-gradient(circle at 18% 0%, rgba(108, 40, 255, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(10, 7, 34, 0.98), rgba(20, 13, 48, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 14px 30px rgba(13, 4, 38, 0.18);
}

.rank-round-tabs button {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: start;
  column-gap: 8px;
  row-gap: 3px;
  padding: 9px 11px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.rank-round-tabs button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.rank-round-tabs button.active {
  border-left: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #ad25ff 0%, #196dff 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(77, 50, 255, 0.34);
}

.rank-round-tabs button::before {
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
  justify-self: center;
  color: currentColor;
  font-size: 23px;
  line-height: 1;
  opacity: 0.92;
}

.rank-round-tabs button:nth-child(1)::before {
  content: "👥";
}

.rank-round-tabs button:nth-child(2)::before {
  content: "👥";
  filter: grayscale(1);
}

.rank-round-tabs button:nth-child(3)::before {
  content: "🏆";
}

.rank-round-tabs button span {
  grid-column: 2;
  color: inherit;
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.rank-round-tabs button b {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8.4px;
  font-weight: 900;
  line-height: 1;
}

.rank-round-tabs button.active b {
  color: rgba(255, 255, 255, 0.78);
}

.rank-showcase {
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 68%, rgba(120, 30, 255, 0.32), transparent 31%),
    radial-gradient(circle at 50% 24%, rgba(94, 33, 255, 0.2), transparent 37%),
    linear-gradient(145deg, #09061c 0%, #13082c 52%, #07051a 100%);
}

.rank-showcase::before {
  background:
    radial-gradient(circle at 52% 77%, rgba(141, 53, 255, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(160deg, transparent 0 44%, rgba(125, 65, 255, 0.16) 45%, transparent 56%);
}

.rank-showcase-head {
  min-height: 46px;
  padding: 11px 13px 0;
}

.rank-showcase-head > div {
  gap: 8px;
}

.rank-showcase-head span {
  font-size: 10.6px;
}

.rank-showcase-head b {
  font-size: 18px;
  line-height: 1;
}

.rank-view-all {
  height: 34px;
  min-width: 74px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(12, 7, 33, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rank-view-all span {
  color: #67ff83;
  font-size: 22px;
  font-weight: 950;
}

.rank-showcase .rank-podium {
  min-height: 220px !important;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: end;
  gap: 10px;
  padding: 34px 14px 22px !important;
}

.rank-showcase .podium-bar {
  justify-items: center;
  gap: 5px !important;
  padding: 28px 9px 15px !important;
  border-radius: 16px;
}

.rank-showcase .podium-1 .podium-bar {
  height: 166px !important;
  min-height: 166px !important;
}

.rank-showcase .podium-2 .podium-bar {
  height: 142px !important;
  min-height: 142px !important;
}

.rank-showcase .podium-3 .podium-bar {
  height: 132px !important;
  min-height: 132px !important;
}

.rank-showcase .podium-bar .leader-avatar {
  width: 46px !important;
  height: 46px !important;
  margin-top: 0 !important;
  font-size: 25px !important;
  box-shadow: 0 0 0 5px rgba(104, 40, 255, 0.45), 0 0 18px rgba(117, 63, 255, 0.34);
}

.rank-showcase .podium-1 .podium-bar .leader-avatar {
  width: 54px !important;
  height: 54px !important;
  font-size: 30px !important;
}

.rank-showcase .podium-name,
.rank-showcase .podium-1 .podium-name {
  max-width: calc(100% - 6px) !important;
  font-size: 9.8px !important;
  line-height: 1.08 !important;
}

.rank-showcase .podium-1 .podium-name {
  font-size: 10.4px !important;
}

.rank-showcase .podium-score {
  display: inline-flex !important;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.rank-showcase .podium-score b {
  font-size: 23px !important;
  line-height: 1 !important;
}

.rank-showcase .podium-1 .podium-score b {
  font-size: 28px !important;
}

.rank-showcase .podium-3 .podium-score b {
  font-size: 22px !important;
}

.rank-showcase .podium-score span {
  margin-top: 0 !important;
  font-size: 8.6px !important;
  line-height: 1 !important;
}

@media (max-width: 430px) {
  .rank-round-tabs {
    min-height: 60px;
    border-radius: 17px;
  }

  .rank-round-tabs button {
    min-height: 50px;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 5px;
    padding: 8px 7px;
  }

  .rank-round-tabs button::before {
    font-size: 18px;
  }

  .rank-round-tabs button span {
    font-size: 9.6px;
  }

  .rank-round-tabs button b {
    font-size: 7.4px;
  }

  .rank-showcase-head {
    min-height: 42px;
    padding: 10px 11px 0;
  }

  .rank-showcase-head span {
    font-size: 9.4px;
  }

  .rank-showcase-head b {
    font-size: 15px;
  }

  .rank-view-all {
    height: 30px;
    min-width: 66px;
  }

  .rank-view-all span {
    font-size: 19px;
  }

  .rank-showcase .rank-podium {
    min-height: 196px !important;
    gap: 7px;
    padding: 30px 10px 18px !important;
  }

  .rank-showcase .podium-bar {
    gap: 4px !important;
    padding: 25px 6px 13px !important;
  }

  .rank-showcase .podium-1 .podium-bar {
    height: 148px !important;
    min-height: 148px !important;
  }

  .rank-showcase .podium-2 .podium-bar {
    height: 126px !important;
    min-height: 126px !important;
  }

  .rank-showcase .podium-3 .podium-bar {
    height: 118px !important;
    min-height: 118px !important;
  }

  .rank-showcase .podium-bar .leader-avatar {
    width: 39px !important;
    height: 39px !important;
    font-size: 21px !important;
  }

  .rank-showcase .podium-1 .podium-bar .leader-avatar {
    width: 46px !important;
    height: 46px !important;
    font-size: 26px !important;
  }

  .rank-showcase .podium-name,
  .rank-showcase .podium-1 .podium-name {
    font-size: 8.6px !important;
  }

  .rank-showcase .podium-1 .podium-name {
    font-size: 9.3px !important;
  }

  .rank-showcase .podium-score b {
    font-size: 20px !important;
  }

  .rank-showcase .podium-1 .podium-score b {
    font-size: 25px !important;
  }

  .rank-showcase .podium-3 .podium-score b {
    font-size: 19px !important;
  }

  .rank-showcase .podium-score span {
    font-size: 7.5px !important;
  }
}

/* Final production podium proportion pass. */
.rank-showcase .rank-podium {
  min-height: 196px !important;
  padding: 20px 14px 18px !important;
}

.rank-showcase .podium-1 .podium-bar {
  height: 150px !important;
  min-height: 150px !important;
}

.rank-showcase .podium-2 .podium-bar {
  height: 128px !important;
  min-height: 128px !important;
}

.rank-showcase .podium-3 .podium-bar {
  height: 120px !important;
  min-height: 120px !important;
}

.rank-showcase .podium-bar {
  gap: 4px !important;
  padding-top: 24px !important;
  padding-bottom: 12px !important;
}

.rank-showcase .podium-name,
.rank-showcase .podium-1 .podium-name {
  max-width: 100% !important;
  min-height: 14px !important;
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset;
  line-height: 1.14 !important;
}

.rank-showcase .podium-3 .podium-name {
  font-size: 9.3px !important;
  letter-spacing: 0 !important;
}

.rank-showcase .podium-crown {
  margin-bottom: -8px !important;
}

@media (max-width: 430px) {
  .rank-showcase .rank-podium {
    min-height: 178px !important;
    padding: 17px 10px 15px !important;
  }

  .rank-showcase .podium-1 .podium-bar {
    height: 136px !important;
    min-height: 136px !important;
  }

  .rank-showcase .podium-2 .podium-bar {
    height: 116px !important;
    min-height: 116px !important;
  }

  .rank-showcase .podium-3 .podium-bar {
    height: 110px !important;
    min-height: 110px !important;
  }

  .rank-showcase .podium-bar {
    gap: 3px !important;
    padding-top: 22px !important;
    padding-bottom: 10px !important;
  }

  .rank-showcase .podium-bar .leader-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
  }

  .rank-showcase .podium-1 .podium-bar .leader-avatar {
    width: 43px !important;
    height: 43px !important;
    font-size: 24px !important;
  }

  .rank-showcase .podium-name,
  .rank-showcase .podium-1 .podium-name {
    font-size: 8.8px !important;
    line-height: 1.12 !important;
  }

  .rank-showcase .podium-3 .podium-name {
    font-size: 8.6px !important;
  }

  .rank-showcase .podium-score b {
    font-size: 19px !important;
  }

  .rank-showcase .podium-1 .podium-score b {
    font-size: 23px !important;
  }

  .rank-showcase .podium-3 .podium-score b {
    font-size: 18px !important;
  }
}

/* Final production tighter rank header-to-podium spacing. */
.rank-showcase .rank-podium {
  min-height: 184px !important;
  padding-top: 8px !important;
}

.rank-showcase .podium-crown {
  margin-bottom: -7px !important;
  transform: translateY(1px) !important;
}

.rank-showcase .podium-1 .podium-crown {
  margin-bottom: -8px !important;
  transform: translateY(2px) !important;
}

@media (max-width: 430px) {
  .rank-showcase .rank-podium {
    min-height: 170px !important;
    padding-top: 7px !important;
  }
}

/* Final production rank title alignment. */
.rank-showcase-head {
  justify-content: space-between !important;
  padding-left: 16px !important;
}

.rank-showcase-head > div {
  flex: 1;
  justify-content: flex-start;
  min-width: 0;
}

.rank-showcase-head b {
  color: #f7f4ff !important;
  font-size: 22px !important;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0 !important;
  line-height: 1;
  text-align: left;
  text-shadow: 0 0 18px rgba(120, 65, 255, 0.45), 0 2px 10px rgba(0, 0, 0, 0.32);
}

@media (max-width: 430px) {
  .rank-showcase-head {
    padding-left: 13px !important;
  }

  .rank-showcase-head b {
    font-size: 19px !important;
  }
}

/* Final production cleaner Thai rank title. */
.rank-showcase-head b {
  max-width: 190px;
  color: rgba(248, 246, 255, 0.96) !important;
  font-family: "Sukhumvit Set", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif !important;
  font-size: 17px !important;
  font-style: normal !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  white-space: nowrap;
  text-shadow:
    0 0 14px rgba(116, 68, 255, 0.42),
    0 1px 8px rgba(0, 0, 0, 0.36) !important;
}

@media (max-width: 430px) {
  .rank-showcase-head b {
    max-width: 168px;
    font-size: 16px !important;
  }
}

/* Final production rank title closer to podium after badge removal. */
.rank-showcase-head {
  min-height: 36px !important;
  padding-top: 10px !important;
  padding-bottom: 0 !important;
}

.rank-player-count {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 1px;
  padding: 3px 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(6, 10, 28, 0.28);
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(116, 68, 255, 0.1);
}

.rank-showcase .rank-podium {
  min-height: 176px !important;
  padding-top: 0 !important;
}

@media (max-width: 430px) {
  .rank-showcase-head {
    min-height: 32px !important;
    padding-top: 9px !important;
  }

  .rank-player-count {
    padding: 3px 6px;
    font-size: 8.5px;
  }

  .rank-showcase .rank-podium {
    min-height: 162px !important;
    padding-top: 0 !important;
  }
}

/* Final production pull podium upward. */
.rank-showcase .rank-podium {
  min-height: 160px !important;
  margin-top: -22px !important;
  padding-bottom: 14px !important;
}

@media (max-width: 430px) {
  .rank-showcase .rank-podium {
    min-height: 150px !important;
    margin-top: -20px !important;
    padding-bottom: 12px !important;
  }
}

/* Final production compact rank tabs. */
.rank-round-tabs {
  min-height: 54px !important;
  padding: 4px !important;
  border-radius: 16px !important;
}

.rank-round-tabs button {
  min-height: 46px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  column-gap: 6px !important;
  padding: 7px 9px !important;
  border-radius: 12px !important;
}

.rank-round-tabs button::before {
  font-size: 18px !important;
}

.rank-round-tabs button span {
  font-size: 10.4px !important;
}

.rank-round-tabs button b {
  font-size: 7.6px !important;
}

.rank-round-tabs button.active {
  border-radius: 13px !important;
}

@media (max-width: 430px) {
  .rank-round-tabs {
    min-height: 48px !important;
    padding: 3px !important;
    border-radius: 15px !important;
  }

  .rank-round-tabs button {
    min-height: 40px !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    column-gap: 4px !important;
    padding: 6px 6px !important;
  }

  .rank-round-tabs button::before {
    font-size: 15px !important;
  }

  .rank-round-tabs button span {
    font-size: 8.8px !important;
  }

  .rank-round-tabs button b {
    font-size: 6.8px !important;
  }
}

/* Final production hero: show all three ranks. */
.hero-summary-card .header-stats {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 6px !important;
  align-items: stretch;
}

.hero-summary-card .header-stat-card.points {
  min-height: 66px !important;
  padding: 7px 4px !important;
  border-radius: 15px !important;
}

.hero-summary-card .header-stat-card.points::after {
  top: 7px !important;
  width: 24px !important;
  height: 24px !important;
}

.hero-summary-card .header-stat-card.points span {
  margin-top: 16px !important;
  font-size: 6.8px !important;
}

.hero-summary-card .header-stat-card.points b {
  font-size: 21px !important;
}

.hero-summary-card .header-stat-card.points small {
  font-size: 6px !important;
}

.hero-rank-stack {
  min-width: 0;
  min-height: 66px;
  display: grid;
  gap: 3px;
}

.hero-rank-mini {
  min-width: 0;
  min-height: 20px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border: 1px solid rgba(166, 79, 255, 0.34);
  border-radius: 9px;
  background:
    radial-gradient(circle at 80% 18%, rgba(123, 34, 255, 0.32), transparent 45%),
    linear-gradient(135deg, rgba(20, 9, 44, 0.9), rgba(49, 13, 88, 0.64));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.hero-rank-mini img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(91, 140, 255, 0.42));
}

.hero-rank-mini span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-rank-mini b {
  flex: 0 0 auto;
  color: #fff;
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 10px rgba(110, 255, 138, 0.24);
}

.hero-rank-mini:last-child {
  border-color: rgba(0, 215, 232, 0.38);
  background:
    radial-gradient(circle at 80% 18%, rgba(22, 154, 255, 0.34), transparent 45%),
    linear-gradient(135deg, rgba(8, 18, 50, 0.92), rgba(24, 37, 91, 0.68));
}

@media (max-width: 430px) {
  .hero-summary-card .header-stats {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .hero-summary-card .header-stat-card.points,
  .hero-rank-stack {
    min-height: 58px !important;
  }

  .hero-summary-card .header-stat-card.points::after {
    width: 21px !important;
    height: 21px !important;
  }

  .hero-summary-card .header-stat-card.points span {
    margin-top: 14px !important;
    font-size: 6.2px !important;
  }

  .hero-summary-card .header-stat-card.points b {
    font-size: 18px !important;
  }

  .hero-rank-stack {
    gap: 2px;
  }

  .hero-rank-mini {
    grid-template-columns: 15px minmax(0, 1fr) auto;
    min-height: 18px;
    padding: 2px 5px;
    border-radius: 8px;
  }

  .hero-rank-mini img {
    width: 15px;
    height: 15px;
  }

  .hero-rank-mini span {
    font-size: 6.4px;
  }

  .hero-rank-mini b {
    font-size: 11px;
  }
}

/* Final production hero: two rank cards only. */
.hero-rank-stack {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5px !important;
}

.hero-rank-mini {
  min-height: 30px !important;
  grid-template-columns: 21px minmax(0, 1fr) auto !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
}

.hero-rank-mini img {
  width: 21px !important;
  height: 21px !important;
}

.hero-rank-mini span {
  font-size: 8.2px !important;
}

.hero-rank-mini b {
  font-size: 15px !important;
}

@media (max-width: 430px) {
  .hero-rank-stack {
    gap: 4px !important;
  }

  .hero-rank-mini {
    min-height: 27px !important;
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    padding: 3px 7px !important;
    border-radius: 10px !important;
  }

  .hero-rank-mini img {
    width: 18px !important;
    height: 18px !important;
  }

  .hero-rank-mini span {
    font-size: 7.4px !important;
  }

  .hero-rank-mini b {
    font-size: 13px !important;
  }
}

/* Final production hero rank number fit. */
.hero-summary-card .header-stats {
  grid-template-columns: minmax(0, 1fr) 50px !important;
  gap: 5px !important;
}

.hero-rank-mini {
  grid-template-columns: 21px minmax(52px, 1fr) 22px !important;
  padding-right: 6px !important;
}

.hero-rank-mini b {
  justify-self: end;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

.hero-summary-card .header-stat-card.points {
  min-width: 50px !important;
}

@media (max-width: 430px) {
  .hero-summary-card .header-stats {
    grid-template-columns: minmax(0, 1fr) 46px !important;
    gap: 4px !important;
  }

  .hero-rank-mini {
    grid-template-columns: 18px minmax(47px, 1fr) 20px !important;
    padding-right: 5px !important;
  }

  .hero-rank-mini b {
    font-size: 11px !important;
  }
}

/* Final production hero rank overflow fix. */
.hero-summary-card .header-stats {
  grid-template-columns: minmax(0, 1fr) 44px !important;
  gap: 4px !important;
}

.hero-rank-mini {
  grid-template-columns: 18px minmax(0, 1fr) 17px !important;
  gap: 4px !important;
  padding: 4px 5px !important;
}

.hero-rank-mini img {
  width: 18px !important;
  height: 18px !important;
}

.hero-rank-mini span {
  font-size: 8.4px !important;
}

.hero-rank-mini b {
  width: 17px;
  font-size: 11px !important;
  text-align: right;
}

.hero-summary-card .header-stat-card.points {
  min-width: 44px !important;
}

@media (max-width: 430px) {
  .hero-summary-card .header-stats {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    gap: 4px !important;
  }

  .hero-rank-mini {
    grid-template-columns: 16px minmax(0, 1fr) 16px !important;
    padding: 3px 5px !important;
  }

  .hero-rank-mini img {
    width: 16px !important;
    height: 16px !important;
  }

  .hero-rank-mini span {
    font-size: 8px !important;
  }

  .hero-rank-mini b {
    width: 16px;
    font-size: 10.5px !important;
  }
}

/* Final production hero rank English labels. */
.hero-rank-mini {
  grid-template-columns: 21px minmax(54px, 1fr) auto !important;
  gap: 6px !important;
}

.hero-rank-mini span {
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 9.4px !important;
  letter-spacing: 0 !important;
  text-overflow: clip !important;
}

@media (max-width: 430px) {
  .hero-rank-mini {
    grid-template-columns: 18px minmax(46px, 1fr) auto !important;
    gap: 5px !important;
  }

  .hero-rank-mini span {
    font-size: 8.5px !important;
  }
}

/* Final production hero: ranks left, points right. */
.hero-summary-card .header-stats {
  grid-template-columns: minmax(0, 1fr) 54px !important;
}

.hero-rank-stack {
  order: 1;
}

.hero-summary-card .header-stat-card.points {
  order: 2;
}

@media (max-width: 430px) {
  .hero-summary-card .header-stats {
    grid-template-columns: minmax(0, 1fr) 48px !important;
  }
}

/* Absolute final production hero stat fit. */
.hero-summary-card .header-stats {
  grid-template-columns: minmax(0, 1fr) 42px !important;
  gap: 4px !important;
}

.hero-rank-mini {
  grid-template-columns: 16px minmax(0, 1fr) 15px !important;
  gap: 4px !important;
  padding: 4px 5px !important;
}

.hero-rank-mini img {
  width: 16px !important;
  height: 16px !important;
}

.hero-rank-mini span {
  min-width: 0 !important;
  font-size: 8px !important;
}

.hero-rank-mini b {
  width: 15px !important;
  justify-self: end !important;
  font-size: 10px !important;
  text-align: right !important;
}

.hero-summary-card .header-stat-card.points {
  min-width: 42px !important;
}

@media (max-width: 430px) {
  .hero-summary-card .header-stats {
    grid-template-columns: minmax(0, 1fr) 40px !important;
    gap: 4px !important;
  }

  .hero-rank-mini {
    grid-template-columns: 15px minmax(0, 1fr) 14px !important;
    gap: 3px !important;
    padding: 3px 4px !important;
  }

  .hero-rank-mini img {
    width: 15px !important;
    height: 15px !important;
  }

  .hero-rank-mini span {
    font-size: 7.7px !important;
  }

  .hero-rank-mini b {
    width: 14px !important;
    font-size: 9.6px !important;
  }
}

/* Absolute final production hero rank number size. */
.hero-rank-mini {
  grid-template-columns: 16px minmax(0, 1fr) 18px !important;
}

.hero-rank-mini b {
  width: 18px !important;
  font-size: 12px !important;
}

@media (max-width: 430px) {
  .hero-rank-mini {
    grid-template-columns: 15px minmax(0, 1fr) 17px !important;
  }

  .hero-rank-mini b {
    width: 17px !important;
    font-size: 11.4px !important;
  }
}

/* Absolute final production support two-digit ranks. */
.hero-rank-mini {
  grid-template-columns: 15px minmax(0, 1fr) 25px !important;
  gap: 3px !important;
}

.hero-rank-mini img {
  width: 15px !important;
  height: 15px !important;
}

.hero-rank-mini span {
  font-size: 7.7px !important;
}

.hero-rank-mini b {
  width: 25px !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
}

@media (max-width: 430px) {
  .hero-rank-mini {
    grid-template-columns: 14px minmax(0, 1fr) 23px !important;
    gap: 3px !important;
  }

  .hero-rank-mini img {
    width: 14px !important;
    height: 14px !important;
  }

  .hero-rank-mini span {
    font-size: 7.2px !important;
  }

  .hero-rank-mini b {
    width: 23px !important;
    font-size: 10.5px !important;
  }
}

/* Final production hero: keep three-digit points inside the card. */
.hero-summary-card .header-stats {
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 5px !important;
}

.hero-summary-card .header-stat-card.points {
  min-width: 58px !important;
  width: 58px !important;
  padding-inline: 4px !important;
  overflow: hidden !important;
}

.hero-summary-card .header-stat-card.points::after {
  width: 22px !important;
  height: 22px !important;
}

.hero-summary-card .header-stat-card.points b {
  max-width: 100% !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: 19px !important;
  line-height: 0.95 !important;
  letter-spacing: -0.2px !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.hero-summary-card .header-stat-card.points span {
  font-size: 6.7px !important;
}

.hero-summary-card .header-stat-card.points small {
  font-size: 5.8px !important;
  line-height: 1.05 !important;
}

@media (max-width: 430px) {
  .hero-summary-card .header-stats {
    grid-template-columns: minmax(0, 1fr) 54px !important;
    gap: 4px !important;
  }

  .hero-summary-card .header-stat-card.points {
    min-width: 54px !important;
    width: 54px !important;
  }

  .hero-summary-card .header-stat-card.points b {
    font-size: 17.5px !important;
    letter-spacing: -0.25px !important;
  }
}

/* Final profile autosave redesign. */
.profile-content {
  background:
    radial-gradient(circle at 18% 7%, rgba(111, 45, 255, 0.14), transparent 26%),
    radial-gradient(circle at 92% 9%, rgba(0, 145, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #f8f4ff 0%, #f4eff8 100%) !important;
}

.profile-content .section-title {
  margin-bottom: 14px;
}

.profile-content .section-title h2 {
  color: #27003f;
  font-size: clamp(42px, 8vw, 62px);
  line-height: 0.92;
  letter-spacing: 0;
}

.profile-content .section-title p {
  color: rgba(39, 0, 63, 0.58);
  font-size: 18px;
  font-weight: 850;
}

.profile-list {
  gap: 10px !important;
}

.profile-simple-card {
  isolation: isolate;
  gap: 14px !important;
  padding: 18px 16px 16px !important;
  border: 1px solid rgba(169, 113, 255, 0.38) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 20% 17%, rgba(125, 53, 255, 0.38), transparent 27%),
    radial-gradient(circle at 88% 24%, rgba(0, 145, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #13051f 0%, #260448 48%, #0a173f 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(37, 0, 70, 0.22) !important;
}

.profile-simple-card::before {
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(255, 255, 255, 0.1) 59% 66%, transparent 67%),
    radial-gradient(circle at 10% 55%, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px) !important;
  background-size: auto, 11px 11px !important;
  opacity: 0.36 !important;
}

.profile-simple-card::after {
  background: #33d9ff !important;
  box-shadow:
    -150px -42px 0 -1px #9b4dff,
    -164px 32px 0 -2px #ff4cc5,
    -24px 38px 0 -2px #55ff9d !important;
  opacity: 0.86;
}

.profile-spark-title {
  gap: 9px !important;
}

.profile-spark-title h3 {
  color: #fff !important;
  font-family: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 19px !important;
  font-weight: 900 !important;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.profile-spark-title span {
  width: 7px !important;
  height: 7px !important;
  background: linear-gradient(135deg, #33d9ff, #a733ff 52%, #ff2d8a) !important;
}

.profile-photo-stage {
  gap: 7px !important;
  padding: 1px 0 2px !important;
}

.profile-photo-stage .avatar-large {
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  background: #080714 !important;
  box-shadow:
    inset 0 0 0 5px #0b0720,
    0 0 0 4px #7c24ff,
    0 0 0 8px rgba(255, 45, 138, 0.74),
    0 16px 34px rgba(13, 0, 29, 0.48) !important;
}

.profile-photo-stage .photo-btn {
  min-height: 34px !important;
  gap: 7px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(123, 34, 255, 0.98), rgba(0, 142, 255, 0.92)) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 20px rgba(0, 27, 91, 0.32) !important;
}

.profile-photo-stage .photo-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.profile-auto-note {
  margin: -2px 0 0;
  color: rgba(230, 219, 255, 0.72);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
}

.profile-fixed-fields {
  gap: 9px !important;
}

.profile-fixed-row {
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.profile-fixed-icon {
  width: 28px !important;
  height: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1) !important;
  color: #79dfff !important;
  box-shadow: none !important;
}

.profile-fixed-row label {
  color: rgba(230, 219, 255, 0.64) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
}

.profile-readonly-value {
  min-height: 43px !important;
  border: 1px solid rgba(169, 113, 255, 0.32) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(0, 0, 0, 0.12) !important;
}

.profile-readonly-value b {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.profile-lock-icon {
  color: rgba(121, 223, 255, 0.88) !important;
}

.profile-simple-card > .primary-btn {
  display: none !important;
}

.profile-simple-card > .logout-btn {
  min-height: 42px !important;
  border: 1px solid rgba(255, 55, 105, 0.78) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ff4f78 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

/* Final profile compact polish. */
.profile-simple-card {
  gap: 11px !important;
  padding-top: 14px !important;
}

.profile-photo-stage {
  gap: 3px !important;
  padding-top: 0 !important;
}

.profile-photo-stage .photo-btn {
  margin-top: -1px !important;
}

.profile-auto-note {
  margin-top: -1px !important;
}

.profile-simple-card > .logout-btn {
  width: min(100%, 230px) !important;
  justify-self: center !important;
  min-height: 38px !important;
  margin-top: 3px !important;
  border: 1px solid rgba(255, 87, 126, 0.9) !important;
  background:
    linear-gradient(135deg, rgba(255, 48, 102, 0.18), rgba(255, 255, 255, 0.035)) !important;
  color: #ff6f91 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 10px 22px rgba(255, 48, 102, 0.14) !important;
}

/* Final profile field alignment and avatar spacing. */
.profile-photo-stage {
  gap: 10px !important;
}

.profile-photo-stage .photo-btn {
  margin-top: 4px !important;
}

.profile-auto-note {
  margin-top: -5px !important;
}

.profile-fixed-fields {
  width: min(100%, 330px) !important;
  justify-self: center !important;
  margin-top: 4px !important;
}

.profile-fixed-row {
  display: block !important;
}

.profile-fixed-icon {
  display: none !important;
}

.profile-readonly-value {
  width: 100% !important;
}

/* Final premium toast notifications. */
.toast {
  position: fixed !important;
  right: 18px !important;
  bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  left: 18px !important;
  z-index: 50 !important;
  width: min(calc(100% - 36px), 386px) !important;
  min-height: 86px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 0 auto !important;
  padding: 14px 17px 14px 14px !important;
  overflow: hidden;
  border: 1px solid rgba(226, 214, 255, 0.34);
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 13% 48%, rgba(137, 39, 255, 0.34), transparent 27%),
    radial-gradient(circle at 87% 8%, rgba(0, 145, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(11, 8, 26, 0.96), rgba(23, 11, 46, 0.93) 56%, rgba(5, 10, 26, 0.95)) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(17, 0, 33, 0.34),
    0 0 34px rgba(134, 45, 255, 0.16) !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.26s ease, opacity 0.26s ease !important;
  backdrop-filter: blur(16px);
}

.toast::before,
.toast::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.toast::before {
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 53%, rgba(255, 255, 255, 0.08) 54% 61%, transparent 62%),
    radial-gradient(circle at 3% 25%, rgba(151, 60, 255, 0.55) 0 1px, transparent 2px);
  background-size: auto, 18px 18px;
  opacity: 0.5;
}

.toast::after {
  top: -2px;
  left: 50%;
  width: 86px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #9b39ff, #ff48c6, transparent);
  filter: blur(0.2px);
  transform: translateX(-50%);
}

.toast.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.toast-icon,
.toast-copy {
  position: relative;
  z-index: 1;
}

.toast-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #a238ff, #6927ff);
  box-shadow:
    0 0 0 8px rgba(128, 38, 255, 0.18),
    0 0 28px rgba(147, 45, 255, 0.6);
}

.toast.warning .toast-icon {
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, #ffb22e, #ff2d64);
  box-shadow:
    0 0 0 8px rgba(255, 100, 51, 0.16),
    0 0 28px rgba(255, 74, 108, 0.45);
}

.toast-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.1;
}

.toast-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.toast-copy b {
  color: #fff;
  font-family: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.toast-copy small {
  color: rgba(232, 224, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

@media (max-width: 380px) {
  .toast {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    min-height: 78px;
    padding: 12px 13px 12px 12px !important;
    border-radius: 22px !important;
  }

  .toast-icon {
    width: 50px;
    height: 50px;
  }

  .toast-icon svg {
    width: 27px;
    height: 27px;
  }

  .toast-copy b {
    font-size: 16px;
  }

  .toast-copy small {
    font-size: 10.5px;
  }
}

/* Team detail deep pages, API-ready. */
.match-card .team {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

.match-card .team:focus-visible .team-code {
  outline: 2px solid rgba(0, 215, 232, 0.9);
  outline-offset: 2px;
}

.team-detail-view {
  min-height: 100svh;
  padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 10%, rgba(124, 36, 255, 0.25), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(0, 214, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #070b16 0%, #101729 46%, #080b14 100%);
  color: #fff;
}

.team-detail-nav {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 8px;
}

.team-detail-nav span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-detail-nav i {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-style: normal;
}

.team-back-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.team-back-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.team-detail-content {
  display: grid;
  gap: 10px;
}

.team-hero-detail,
.team-detail-card,
.team-action-row,
.team-panel-title,
.team-info-table,
.lineup-pitch,
.team-stats-list,
.h2h-summary,
.team-recent-list,
.fan-prediction-grid,
.ai-summary-card {
  border: 1px solid rgba(214, 224, 255, 0.13);
  background:
    radial-gradient(circle at 10% 0%, rgba(129, 53, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.team-hero-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
}

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

.team-hero-main .flag,
.team-panel-title .flag {
  width: 66px;
  height: 66px;
  border-radius: 50%;
}

.team-hero-main small {
  color: #a57cff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-hero-main h1 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.team-hero-main p {
  margin: 5px 0 0;
  color: rgba(235, 239, 255, 0.63);
  font-size: 11px;
  font-weight: 750;
}

.team-hero-metric {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(124, 36, 255, 0.16);
}

.team-hero-metric b {
  color: #a76cff;
  font-size: 28px;
  font-weight: 950;
}

.team-hero-metric span,
.team-form-row span {
  color: rgba(238, 230, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
}

.team-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-form-row div {
  display: flex;
  gap: 6px;
}

.team-form-row b,
.team-recent-list em {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 255, 135, 0.18);
  color: #52ff9d;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.team-form-row b.d,
.team-recent-list em.d {
  background: rgba(255, 255, 255, 0.13);
  color: #d8d6e8;
}

.team-form-row b.l,
.team-recent-list em.l {
  background: rgba(255, 55, 105, 0.18);
  color: #ff7192;
}

.team-detail-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 22px;
  color: #fff;
  text-align: left;
}

.team-section-kicker {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

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

.team-next-match > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.team-next-match .flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.team-next-match b {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-next-center {
  padding: 8px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.team-next-center small,
.team-next-center span {
  color: rgba(235, 239, 255, 0.58);
  font-size: 9.5px;
  font-weight: 700;
}

.team-next-center strong {
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.2;
}

.team-live-score {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 4px 0 6px;
}

.team-live-score span {
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border-radius: 8px;
  background: #b7bdc9;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.team-live-score.live span {
  background: #ed1748;
}

.team-live-score.half span {
  background: #ff9428;
}

.team-live-score b {
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.team-live-score.live b,
.team-live-score.final b {
  color: #f41146;
}

.team-live-score small {
  color: rgba(210, 215, 232, 0.72);
  font-size: 10px;
  font-weight: 750;
}

.team-event-list,
.team-recent-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.team-event-list li,
.team-recent-list li {
  display: grid;
  grid-template-columns: 42px 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
}

.team-event-list time {
  color: #9d55ff;
  font-weight: 950;
}

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

.team-action-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 2px 8px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 16px;
  color: #fff;
  text-align: left;
}

.team-action-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: var(--accent);
  content: "";
}

.team-action-row b {
  font-size: 12px;
  font-weight: 950;
}

.team-action-row span {
  grid-column: 1;
  color: rgba(235, 239, 255, 0.62);
  font-size: 10.5px;
  font-weight: 700;
}

.team-action-row i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent);
  font-size: 22px;
  font-style: normal;
}

.team-panel-title {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 22px;
}

.team-panel-title .flag {
  width: 52px;
  height: 52px;
}

.team-panel-title span {
  color: rgba(238, 230, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.team-panel-title h1 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
}

.team-info-table,
.team-stats-list,
.h2h-summary,
.fan-prediction-grid,
.ai-summary-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 20px;
}

.team-info-table p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-info-table p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.team-info-table span,
.ai-summary-card p {
  color: rgba(235, 239, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
}

.team-info-table b {
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.lineup-pitch {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 42px, rgba(255, 255, 255, 0.12) 43px 45px, transparent 46px),
    linear-gradient(180deg, #0f5b32, #0c3a25);
  background-size: 100% 60px, 60px 100%, auto, auto;
}

.lineup-dot {
  position: absolute;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b22ff, #1f8dff);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.lineup-dot b {
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.lineup-dot small {
  position: absolute;
  top: 43px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.lineup-dot.p1 { left: 50%; top: 83%; transform: translateX(-50%); }
.lineup-dot.p2 { left: 12%; top: 63%; }
.lineup-dot.p3 { left: 34%; top: 61%; }
.lineup-dot.p4 { right: 34%; top: 61%; }
.lineup-dot.p5 { right: 12%; top: 63%; }
.lineup-dot.p6 { left: 30%; top: 41%; }
.lineup-dot.p7 { right: 30%; top: 41%; }
.lineup-dot.p8 { left: 50%; top: 33%; transform: translateX(-50%); }
.lineup-dot.p9 { left: 16%; top: 15%; }
.lineup-dot.p10 { left: 50%; top: 10%; transform: translateX(-50%); }
.lineup-dot.p11 { right: 16%; top: 15%; }

.team-stat-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.team-stat-row b {
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.team-stat-row span {
  position: relative;
  height: 22px;
  display: grid;
  align-items: center;
}

.team-stat-row span::before,
.team-stat-row i {
  position: absolute;
  right: 0;
  left: 0;
  height: 5px;
  border-radius: 999px;
  content: "";
}

.team-stat-row span::before {
  background: rgba(255, 255, 255, 0.1);
}

.team-stat-row i {
  width: var(--pct);
  background: linear-gradient(90deg, #9b4dff, #4c8dff);
}

.team-stat-row em {
  position: relative;
  z-index: 1;
  color: rgba(235, 239, 255, 0.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-align: center;
}

.h2h-summary,
.fan-prediction-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.h2h-summary b {
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

.h2h-summary span {
  color: rgba(235, 239, 255, 0.58);
  font-size: 9px;
  font-weight: 700;
}

.team-recent-list {
  padding: 13px;
  border: 1px solid rgba(214, 224, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.team-recent-list li {
  grid-template-columns: 72px minmax(0, 1fr) 24px;
}

.team-recent-list span {
  color: rgba(235, 239, 255, 0.52);
  font-size: 10px;
}

.team-recent-list b {
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.fan-prediction-grid div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fan-prediction-grid b {
  color: #9b4dff;
  font-size: 28px;
  font-weight: 950;
}

.fan-prediction-grid span {
  min-height: 28px;
  color: rgba(235, 239, 255, 0.7);
  font-size: 10px;
  font-weight: 750;
}

.fan-prediction-grid i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.fan-prediction-grid i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b4dff, #44d7ff);
  content: "";
}

.ai-summary-card h2 {
  margin: 0;
  color: #9b4dff;
  font-size: 25px;
  font-weight: 950;
}

.ai-summary-card section {
  display: grid;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-summary-card b {
  color: #fff;
  font-size: 13px;
}

.ai-summary-card p {
  margin: 0;
  line-height: 1.45;
}
