:root {
  color-scheme: dark;
  --wc-bg: #070506;
  --wc-panel: rgba(14, 11, 9, 0.82);
  --wc-line: rgba(228, 188, 105, 0.34);
  --wc-line-strong: rgba(245, 216, 146, 0.58);
  --wc-gold: #e3bd69;
  --wc-gold-soft: #fff0bf;
  --wc-red: #8d1c23;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

button {
  font: inherit;
  cursor: pointer;
}

.app-shell,
.workspace,
.preview-panel,
.poster,
.upgrade-panel {
  position: relative;
}

.app-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.workspace {
  display: block;
}

.editor-panel,
.export-actions,
.copy-output,
.poster-footer,
.poster-topline,
.mobile-qr-dock {
  display: none;
}

.poster {
  isolation: isolate;
  overflow: hidden;
}

.poster-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.mobile-mode-tabs {
  display: flex;
}

.match-list {
  display: grid;
}

.match-meta {
  display: flex;
}

.card-toggle,
.mobile-mode-button {
  border: 0;
}

.review-badge {
  position: absolute;
  right: 16px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff2ce;
  background: rgba(128, 28, 28, 0.85);
  font-size: 12px;
  font-weight: 950;
}

.worldcup-upgrade .review-plan-list {
  gap: 16px;
}

.worldcup-upgrade .review-plan-card {
  padding-right: 14px;
}

.worldcup-upgrade .review-plan-card .match-meta {
  padding-right: 0;
}

.worldcup-upgrade .review-plan-card .review-badge {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 3px solid rgba(245, 192, 107, 0.84);
  border-radius: 50%;
  color: #ffe4aa;
  background:
    radial-gradient(circle at 50% 42%, rgba(173, 34, 39, 0.94), rgba(81, 13, 16, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 194, 0.16),
    0 12px 26px rgba(0, 0, 0, 0.34);
  font-size: 24px;
  letter-spacing: 0.04em;
  transform: translate(-50%, -50%) rotate(-12deg);
  transform-origin: center;
  animation: reviewStampDrop 620ms cubic-bezier(0.2, 1.28, 0.3, 1) both;
}

.worldcup-upgrade .review-plan-card.is-miss .review-badge {
  border-color: rgba(218, 206, 178, 0.5);
  color: rgba(234, 222, 196, 0.88);
  background:
    radial-gradient(circle at 50% 42%, rgba(58, 57, 54, 0.96), rgba(12, 12, 11, 0.96));
}

.worldcup-upgrade .review-plan-card.is-pending .review-badge {
  border-color: rgba(236, 194, 101, 0.58);
  color: rgba(255, 230, 166, 0.9);
  background:
    radial-gradient(circle at 50% 42%, rgba(93, 61, 20, 0.95), rgba(15, 13, 10, 0.95));
}

.worldcup-upgrade .review-plan-card .analysis-detail {
  display: block;
}

.worldcup-upgrade .review-plan-card .analysis-detail p {
  margin-bottom: 0;
}

.worldcup-upgrade .review-plan-card .match-title-row {
  position: relative;
}

.worldcup-upgrade .review-plan-card .match-title-row > em {
  position: static;
  display: grid;
  place-items: center;
  min-height: 88px;
  isolation: isolate;
}

.worldcup-upgrade .review-plan-card .match-title-row > em::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(255, 230, 172, 0.34);
  transform: translate(-50%, -50%) rotate(-12deg);
  opacity: 0;
  animation: reviewStampRing 620ms ease-out 90ms both;
}

.worldcup-upgrade .review-plan-card .match-title-row > em .review-badge {
  left: 50%;
  top: 50%;
}

@keyframes reviewStampDrop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55) rotate(-18deg);
    filter: blur(2px);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.86) rotate(-12deg);
    filter: blur(0);
  }

  78% {
    transform: translate(-50%, -50%) scale(1.08) rotate(-12deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-12deg);
  }
}

@keyframes reviewStampRing {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.64) rotate(-12deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.28) rotate(-12deg);
  }
}

.analysis-detail {
  padding-top: 12px;
}

.analysis-detail span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 950;
}

.analysis-detail p,
.reference-note {
  margin: 0;
}

.reference-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.qr-placeholder-box {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #111;
  background: #fff;
  font-weight: 950;
}

body.worldcup-upgrade.card-preview-mode {
  color: var(--wc-gold-soft);
  background:
    radial-gradient(circle at 50% -10%, rgba(225, 184, 93, 0.2), transparent 28%),
    radial-gradient(circle at 8% 24%, rgba(139, 28, 35, 0.28), transparent 26%),
    linear-gradient(180deg, #17100d, var(--wc-bg) 42%, #050404);
}

.worldcup-upgrade.card-preview-mode .app-shell {
  padding: 0;
}

.worldcup-upgrade.card-preview-mode .workspace {
  display: block;
}

.worldcup-upgrade.card-preview-mode .editor-panel,
.worldcup-upgrade.card-preview-mode .export-actions,
.worldcup-upgrade.card-preview-mode .copy-output {
  display: none;
}

.worldcup-upgrade.card-preview-mode .preview-panel {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(117, 30, 25, 0.18), transparent 190px),
    radial-gradient(circle at 50% 90px, rgba(232, 197, 110, 0.12), transparent 210px),
    rgba(8, 7, 6, 0.96);
  box-shadow: none;
  overflow: hidden;
}

.worldcup-upgrade .mobile-mode-switch {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  padding: 14px 8px 10px;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.96), rgba(8, 7, 6, 0.72));
  backdrop-filter: blur(18px);
}

.worldcup-upgrade .mobile-date {
  display: block;
  margin: 0 8px 9px;
  color: var(--wc-gold);
  font-size: 15px;
  font-weight: 900;
}

.worldcup-upgrade .worldcup-mode-tabs {
  display: flex;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--wc-line);
  border-radius: 18px;
  background: rgba(4, 4, 4, 0.76);
  overflow-x: auto;
  scrollbar-width: none;
}

.worldcup-upgrade .worldcup-mode-tabs::before {
  display: none;
}

.worldcup-upgrade .worldcup-mode-tabs::-webkit-scrollbar {
  display: none;
}

.worldcup-upgrade .mobile-mode-button {
  position: relative;
  min-width: 78px;
  min-height: 46px;
  border: 0;
  border-right: 1px solid rgba(228, 188, 105, 0.26);
  border-radius: 13px;
  background: transparent;
  color: var(--wc-gold-soft);
  font-size: 15px;
  font-weight: 900;
}

.worldcup-upgrade .mobile-mode-button:last-child {
  border-right: 0;
}

.worldcup-upgrade .mobile-mode-button.is-active {
  background: linear-gradient(180deg, #9b2428, #601118);
  color: #fff2ce;
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 153, 0.42),
    0 12px 30px rgba(99, 19, 22, 0.34);
}

.worldcup-upgrade .poster {
  width: 100%;
  min-height: calc(100vh - 82px);
  margin: 0;
  padding: 20px 14px 92px;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(213, 169, 83, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(24, 15, 12, 0.9), rgba(7, 6, 6, 0.98));
  box-shadow: none;
}

.worldcup-upgrade .poster::before,
.worldcup-upgrade .upgrade-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 221, 142, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 221, 142, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

.worldcup-upgrade .poster-hero h2,
.worldcup-upgrade .cup-title h2 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  color: #fff1bf;
  text-shadow: 0 4px 22px rgba(219, 166, 70, 0.16);
}

.worldcup-upgrade .match-card {
  border-color: var(--wc-line);
  background:
    linear-gradient(180deg, rgba(255, 238, 190, 0.05), transparent),
    rgba(9, 9, 8, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.worldcup-upgrade .analysis-button,
.worldcup-upgrade .recommendation-button {
  border-color: rgba(230, 190, 107, 0.45);
}

.worldcup-upgrade .mobile-qr-dock {
  border-color: var(--wc-line);
  background: rgba(12, 10, 8, 0.84);
}

.worldcup-upgrade .upgrade-panel {
  position: relative;
  display: none;
  min-height: calc(100vh - 82px);
  padding: 22px 14px 92px;
  background:
    radial-gradient(circle at 50% 28%, rgba(225, 184, 93, 0.24), transparent 30%),
    radial-gradient(circle at 50% 66%, rgba(139, 28, 35, 0.22), transparent 28%),
    linear-gradient(180deg, #120e0c, #050505);
  overflow: hidden;
}

.worldcup-upgrade .upgrade-panel.is-active {
  display: block;
  animation: wcPanelIn 360ms ease both;
}

.worldcup-upgrade .poster.is-hidden-upgrade {
  display: none;
}

.cup-title {
  position: relative;
  z-index: 1;
  margin: 12px 0 18px;
  text-align: center;
}

.panel-back {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 38px;
  border: 1px solid rgba(247, 214, 150, 0.34);
  border-radius: 999px;
  background: rgba(18, 16, 12, 0.72);
  color: #f7e6bf;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.panel-back:active {
  transform: translateY(1px);
}

.cup-title span {
  color: var(--wc-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.26em;
}

.cup-title h2 {
  margin: 8px 0 6px;
  font-size: 44px;
  letter-spacing: 0.08em;
}

.cup-title p {
  margin: 0;
  color: var(--wc-gold);
  font-size: 18px;
  letter-spacing: 0.18em;
}

.cup-stage {
  position: relative;
  min-height: 520px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 60%, rgba(228, 188, 105, 0.2), transparent 28%),
    radial-gradient(ellipse at 50% 82%, rgba(228, 188, 105, 0.16), transparent 36%);
}

.material-entry span,
.material-grid span {
  color: rgba(255, 235, 190, 0.72);
}

.material-entry {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 16px;
  padding: 16px;
  border: 1px solid var(--wc-line);
  border-radius: 18px;
  background: var(--wc-panel);
}

.material-entry img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
}

.material-entry strong {
  display: block;
  margin-bottom: 8px;
  color: #fff2ce;
  font-size: 22px;
}

.material-entry div {
  min-width: 0;
}

.material-entry span {
  display: block;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.55;
  white-space: normal;
}

.material-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.material-grid article {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--wc-line);
  border-radius: 16px;
  background: var(--wc-panel);
}

.material-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wc-gold-soft);
  font-size: 17px;
}

@keyframes wcFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes wcPanelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* World Cup art direction pass: keep the existing site logic, reskin only. */
body.worldcup-upgrade.card-preview-mode {
  --apple-red: #ff493f;
  --apple-highlight: #f8d879;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 231, 154, 0.28), transparent 24%),
    radial-gradient(circle at 8% 16%, rgba(133, 25, 31, 0.34), transparent 28%),
    radial-gradient(circle at 96% 20%, rgba(218, 168, 78, 0.18), transparent 24%),
    linear-gradient(180deg, #100b09 0%, #050504 52%, #030303 100%);
}

.worldcup-upgrade.card-preview-mode .preview-panel {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(238, 198, 107, 0.16), transparent 38%),
    radial-gradient(ellipse at 50% 28%, rgba(116, 25, 24, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(22, 14, 10, 0.98), rgba(6, 6, 5, 0.99));
}

.worldcup-upgrade.card-preview-mode .preview-panel::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: min(100vw, 390px);
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 26%, rgba(255, 218, 132, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 28%, rgba(255, 218, 132, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 88%, rgba(255, 218, 132, 0.12), transparent 22%),
    linear-gradient(rgba(255, 220, 142, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 220, 142, 0.032) 1px, transparent 1px);
  background-size: auto, auto, auto, 24px 24px, 24px 24px;
  mask-image: linear-gradient(180deg, #000 0 66%, transparent 100%);
  z-index: 0;
}

.worldcup-upgrade .mobile-mode-switch {
  padding: 11px 8px 8px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.98), rgba(7, 6, 5, 0.82));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.worldcup-upgrade .mobile-date {
  margin: 0 8px 8px;
  color: var(--wc-gold-soft);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(231, 188, 91, 0.18);
}

.worldcup-upgrade .worldcup-mode-tabs {
  position: relative;
  padding: 5px;
  border: 1px solid rgba(232, 190, 103, 0.58);
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(255, 237, 181, 0.045), transparent),
    rgba(4, 4, 4, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 190, 0.05),
    0 16px 36px rgba(0, 0, 0, 0.36);
}

.worldcup-upgrade .mobile-mode-button {
  min-width: 70px;
  min-height: 50px;
  border-right: 1px solid rgba(232, 190, 103, 0.35);
  border-radius: 14px;
  color: rgba(255, 237, 191, 0.86);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.worldcup-upgrade .mobile-mode-button.is-active {
  color: #fff3cf;
  background:
    linear-gradient(180deg, rgba(255, 232, 168, 0.12), transparent 42%),
    linear-gradient(180deg, #9e2529, #5b1117);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 163, 0.5),
    inset 0 14px 24px rgba(255, 237, 184, 0.08),
    0 14px 28px rgba(92, 13, 18, 0.46);
}

.worldcup-upgrade .mobile-mode-button.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffe4a0, transparent);
}

.worldcup-upgrade .poster {
  position: relative;
  padding: 19px 14px 98px;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(246, 207, 115, 0.16), transparent 30%),
    radial-gradient(circle at 18% 145px, rgba(128, 25, 29, 0.32), transparent 26%),
    linear-gradient(180deg, rgba(30, 19, 12, 0.92), rgba(7, 7, 6, 0.98) 42%);
}

.worldcup-upgrade .poster-bg {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 233, 157, 0.2), transparent 23%),
    radial-gradient(ellipse at 50% 34%, rgba(119, 25, 22, 0.28), transparent 35%),
    linear-gradient(155deg, rgba(100, 21, 23, 0.7) 0 26%, transparent 26% 100%),
    linear-gradient(180deg, #1b100c 0%, #070706 64%);
}

.worldcup-upgrade .poster-bg::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 84px;
  height: 118px;
  background:
    radial-gradient(circle at 20% 48%, rgba(255, 230, 160, 0.88) 0 3px, transparent 4px),
    radial-gradient(circle at 31% 42%, rgba(255, 230, 160, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 46%, rgba(255, 230, 160, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 52%, rgba(255, 230, 160, 0.82) 0 2px, transparent 3px);
  filter: blur(1px);
  opacity: 0.56;
}

.worldcup-upgrade .poster-bg::after {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 221, 142, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 221, 142, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 92%);
}

.worldcup-upgrade .poster-topline {
  display: none;
}

.worldcup-upgrade .poster-hero {
  position: relative;
  min-height: 146px;
  margin: 0 -14px 12px;
  padding: 78px 18px 16px;
  border-bottom: 1px solid rgba(232, 190, 103, 0.28);
  overflow: hidden;
}

.worldcup-upgrade .poster-hero::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 12px;
  width: 92px;
  height: 112px;
  border-radius: 46% 46% 12px 12px;
  background:
    radial-gradient(circle at 52% 16%, rgba(255, 255, 220, 0.92), transparent 18%),
    linear-gradient(135deg, #765019, #f9d979 38%, #87581a 68%, #ffecaa);
  filter: drop-shadow(0 0 24px rgba(236, 188, 90, 0.45));
  transform: rotate(8deg);
  opacity: 0.9;
}

.worldcup-upgrade .poster-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 8px;
  padding: 0 10px;
  border: 1px solid rgba(232, 190, 103, 0.42);
  border-radius: 999px;
  color: var(--wc-gold-soft);
  background: rgba(91, 17, 23, 0.56);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.worldcup-upgrade .poster h2 {
  margin: 0 0 8px;
  color: #fff0bf;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 33px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow:
    0 2px 0 rgba(95, 58, 17, 0.8),
    0 10px 28px rgba(227, 188, 105, 0.18);
}

.worldcup-upgrade .poster-hero p:last-child {
  max-width: 270px;
  color: rgba(255, 236, 188, 0.82);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.worldcup-upgrade .match-list {
  position: relative;
  z-index: 1;
  gap: 12px;
  padding: 0 0 12px;
}

.worldcup-upgrade .match-card {
  position: relative;
  min-height: 158px;
  padding: 15px 14px 13px;
  border: 1px solid rgba(230, 190, 107, 0.52);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 239, 190, 0.075), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(233, 190, 95, 0.1), transparent 28%),
    rgba(10, 9, 8, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 190, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.worldcup-upgrade .match-card::before {
  background:
    linear-gradient(135deg, rgba(255, 243, 190, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(116, 20, 22, 0.18), transparent 48%);
}

.worldcup-upgrade .match-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -26px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(232, 190, 103, 0.26);
  border-radius: 50%;
  opacity: 0.42;
}

.worldcup-upgrade .match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 236, 190, 0.64);
  font-size: 12px;
  font-weight: 850;
}

.worldcup-upgrade .match-meta span:first-child {
  color: rgba(255, 225, 156, 0.72);
}

.worldcup-upgrade .match-meta span:last-child {
  width: 48px;
  flex: 0 0 48px;
  color: rgba(255, 236, 190, 0.72);
  direction: rtl;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.worldcup-upgrade .match-title {
  margin: 0 0 17px;
  color: #fff7df;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.22;
  text-align: center;
  letter-spacing: 0.02em;
}

.worldcup-upgrade .match-title::before,
.worldcup-upgrade .match-title::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 7px;
  background: linear-gradient(90deg, transparent, rgba(232, 190, 103, 0.75));
}

.worldcup-upgrade .match-title::after {
  background: linear-gradient(90deg, rgba(232, 190, 103, 0.75), transparent);
}

.worldcup-upgrade .analysis-compact-row,
.worldcup-upgrade .review-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.worldcup-upgrade .match-pick,
.worldcup-upgrade .compact-pick {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(230, 190, 107, 0.26);
  border-radius: 9px;
  color: rgba(255, 238, 199, 0.88);
  background: rgba(255, 232, 173, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 242, 204, 0.04);
}

.worldcup-upgrade .match-pick strong,
.worldcup-upgrade .result-emphasis,
.worldcup-upgrade .pick-odd {
  color: #ff4a3f;
  font-weight: 950;
}

.worldcup-upgrade .card-toggle {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 220, 150, 0.22);
  border-radius: 9px;
  color: #fff2ce;
  background:
    linear-gradient(180deg, rgba(255, 234, 177, 0.09), transparent),
    linear-gradient(180deg, #9a2028, #651118);
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 204, 0.18),
    0 10px 20px rgba(92, 14, 18, 0.32);
}

.worldcup-upgrade .card-toggle::after {
  background: radial-gradient(circle, #ffe5a2, transparent 70%);
}

.worldcup-upgrade .analysis-summary,
.worldcup-upgrade .review-summary,
.worldcup-upgrade .reference-note {
  color: rgba(255, 235, 191, 0.58);
}

.worldcup-upgrade .analysis-detail,
.worldcup-upgrade .review-detail {
  margin-top: 13px;
  border-top: 1px solid rgba(230, 190, 107, 0.22);
}

.worldcup-upgrade .analysis-detail span,
.worldcup-upgrade .review-detail span {
  color: var(--wc-gold);
}

.worldcup-upgrade .analysis-detail p,
.worldcup-upgrade .review-detail p,
.worldcup-upgrade .review-summary {
  color: rgba(255, 241, 211, 0.84);
  line-height: 1.75;
}

.worldcup-upgrade .poster-footer {
  border-color: rgba(230, 190, 107, 0.38);
  background: rgba(13, 10, 8, 0.82);
}

.worldcup-upgrade .mobile-qr-dock {
  right: 14px;
  bottom: 16px;
  left: 14px;
  min-height: 74px;
  border: 1px solid rgba(230, 190, 107, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 239, 190, 0.06), transparent),
    rgba(11, 9, 7, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.worldcup-upgrade .mobile-qr-dock img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
}

.worldcup-upgrade .mobile-qr-dock strong {
  color: #fff0bf;
  background: transparent;
  font-size: 17px;
  letter-spacing: 0.06em;
}

body.worldcup-upgrade.card-preview-mode .mobile-qr-dock {
  display: none !important;
}

.worldcup-upgrade .upgrade-panel {
  background:
    radial-gradient(ellipse at 50% 22%, rgba(246, 207, 115, 0.18), transparent 36%),
    radial-gradient(ellipse at 50% 70%, rgba(104, 22, 22, 0.34), transparent 38%),
    linear-gradient(180deg, #0d0a08, #040404);
}

.worldcup-upgrade .cup-stage {
  min-height: 560px;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 226, 145, 0.18), transparent 25%),
    radial-gradient(ellipse at 50% 86%, rgba(255, 226, 145, 0.14), transparent 38%),
    repeating-radial-gradient(ellipse at 50% 86%, rgba(255, 218, 130, 0.18) 0 1px, transparent 1px 36px);
}

/* World Cup tab final composition */
#worldcupPanel {
  min-height: 1320px;
  padding: 18px 14px 46px;
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 220, 128, 0.22), transparent 18%),
    radial-gradient(ellipse at 50% 18%, rgba(112, 26, 23, 0.3), transparent 34%),
    radial-gradient(ellipse at 50% 62%, rgba(255, 210, 105, 0.12), transparent 38%),
    linear-gradient(180deg, #070706 0%, #050505 58%, #030303 100%);
}

#worldcupPanel::after {
  content: "";
  position: absolute;
  inset: 86px -60px auto;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 30%, rgba(255, 217, 128, 0.88) 0 2px, transparent 3px),
    radial-gradient(circle at 15% 34%, rgba(255, 217, 128, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 29%, rgba(255, 217, 128, 0.84) 0 2px, transparent 3px),
    radial-gradient(circle at 95% 35%, rgba(255, 217, 128, 0.5) 0 2px, transparent 3px),
    linear-gradient(100deg, transparent 0 18%, rgba(255, 213, 126, 0.18) 19%, transparent 38%),
    linear-gradient(80deg, transparent 0 60%, rgba(255, 213, 126, 0.15) 68%, transparent 86%);
  filter: blur(1px);
  opacity: 0.55;
}

#worldcupPanel .cup-title {
  margin: 20px 0 8px;
}

#worldcupPanel .cup-title span {
  display: none;
}

#worldcupPanel .cup-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 53px;
  line-height: 1.05;
  letter-spacing: 0.12em;
  color: #ffe9a4;
  text-shadow:
    0 2px 0 #7b4d18,
    0 10px 28px rgba(238, 190, 82, 0.28);
}

#worldcupPanel .cup-title h2::before,
#worldcupPanel .cup-title h2::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 36px;
  height: 88px;
  border: 2px solid rgba(230, 184, 84, 0.82);
  opacity: 0.8;
}

#worldcupPanel .cup-title h2::before {
  left: -46px;
  border-right: 0;
  border-radius: 48px 0 0 48px;
  transform: rotate(-18deg);
}

#worldcupPanel .cup-title h2::after {
  right: -46px;
  border-left: 0;
  border-radius: 0 48px 48px 0;
  transform: rotate(18deg);
}

#worldcupPanel .cup-title p {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  color: #e6b85a;
  font-size: 20px;
  letter-spacing: 0.28em;
}

#worldcupPanel .cup-title p::before,
#worldcupPanel .cup-title p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c99638);
}

#worldcupPanel .cup-title p::before {
  right: calc(100% + 12px);
}

#worldcupPanel .cup-title p::after {
  left: calc(100% + 12px);
  transform: scaleX(-1);
}

#worldcupPanel .cup-stage {
  position: relative;
  min-height: 830px;
  margin: 0 -8px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 232, 148, 0.2), transparent 17%),
    radial-gradient(ellipse at 50% 68%, rgba(255, 208, 96, 0.14), transparent 40%),
    repeating-radial-gradient(ellipse at 50% 75%, rgba(212, 158, 57, 0.2) 0 1px, transparent 1px 37px);
  overflow: visible;
}

/* World Cup tab v3: match the provided route-map reference, using bitmap assets only. */
#worldcupPanel {
  min-height: 1320px;
  padding: 18px 14px 42px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(233, 181, 75, 0.2), transparent 30%),
    radial-gradient(ellipse at 50% 12%, rgba(97, 22, 19, 0.16), transparent 34%),
    linear-gradient(180deg, #050605 0%, #070706 42%, #030303 100%);
}

#worldcupPanel .cup-stage {
  min-height: 760px;
  margin: 0 -8px;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 222, 128, 0.2), transparent 22%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 207, 91, 0.13), transparent 42%),
    repeating-radial-gradient(ellipse at 50% 80%, rgba(218, 160, 54, 0.2) 0 1px, transparent 1px 38px);
}

#worldcupPanel .cup-stage::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 112px;
  height: 230px;
  background:
    radial-gradient(circle at 6% 42%, rgba(255, 220, 128, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 13% 48%, rgba(255, 220, 128, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 42%, rgba(255, 220, 128, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 96% 48%, rgba(255, 220, 128, 0.48) 0 2px, transparent 3px);
  opacity: 0.76;
}

#worldcupPanel .cup-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 540px;
  width: 96px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 215, 114, 0.42), transparent 68%);
}

/* Full-image World Cup route map background. */
#worldcupPanel {
  min-height: 1380px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0 190px, rgba(0, 0, 0, 0.08) 250px, rgba(0, 0, 0, 0.1) 100%),
    url("./assets/worldcup-schedule-bg.png") center top / 100% auto no-repeat,
    #050505;
}#worldcupPanel .cup-title {
  position: relative;
  z-index: 2;
}

#worldcupPanel .cup-title {
  margin-top: 62px;
}

/* Today tab matched to the provided reference image */
.worldcup-upgrade .poster {
  min-height: 100vh;
  padding: 0 14px 18px;
  background:
    radial-gradient(circle at 78% 88px, rgba(255, 226, 150, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(12, 12, 10, 0.96), rgba(5, 5, 5, 1));
}

.worldcup-upgrade .poster-bg {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 0 180px, rgba(5, 5, 5, 0.38) 260px, #050505 620px),
    url("./assets/home-hero-bg.png") center top / 100% auto no-repeat,
    radial-gradient(ellipse at 70% 88px, rgba(255, 226, 150, 0.28), transparent 28%),
    radial-gradient(ellipse at 50% 130px, rgba(150, 42, 30, 0.24), transparent 38%),
    linear-gradient(180deg, #10100e 0 170px, #050505 171px 100%);
}

.worldcup-upgrade .poster-bg::before {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  top: 88px;
  height: 116px;
  background:
    linear-gradient(164deg, transparent 0 17%, rgba(128, 20, 26, 0.9) 18% 42%, transparent 43%),
    radial-gradient(circle at 76% 20%, rgba(255, 238, 186, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 33%, rgba(255, 238, 186, 0.65) 0 2px, transparent 3px);
  opacity: 0.85;
}

.worldcup-upgrade .poster-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 221, 142, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 221, 142, 0.034) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000 0, transparent 68%);
}

.worldcup-upgrade .poster-hero {
  min-height: 170px;
  margin: 0 -14px;
  padding: 22px 26px 14px;
  border-bottom: 0;
}

.hero-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #f5d892;
  font-size: 16px;
  font-weight: 800;
}

.worldcup-upgrade .poster-hero h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #f4d38a;
  font-family: "Songti SC", "STSong", serif;
  font-size: 34px;
  letter-spacing: 0.06em;
}

.worldcup-upgrade .poster-hero p {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  color: #e6bd67;
  font-size: 16px;
  letter-spacing: 0.18em;
}

.worldcup-upgrade .poster-hero p::before,
.worldcup-upgrade .poster-hero p::after {
  content: "";
  display: inline-block;
  width: 54px;
  height: 1px;
  margin: 0 10px 5px 0;
  background: linear-gradient(90deg, transparent, #c99b45);
}

.worldcup-upgrade .poster-hero p::after {
  margin: 0 0 5px 10px;
  background: linear-gradient(90deg, #c99b45, transparent);
}

.worldcup-upgrade .mobile-mode-switch {
  position: relative;
  top: auto;
  z-index: 3;
  padding: 0;
  margin: -2px 0 18px;
  background: transparent;
  box-shadow: none;
}

.worldcup-upgrade .worldcup-mode-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.worldcup-upgrade .mobile-mode-button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 76px;
  padding: 7px 4px;
  border: 1px solid rgba(221, 177, 91, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 236, 183, 0.07), transparent),
    rgba(11, 11, 10, 0.86);
  color: #f3d591;
  font-size: 12px;
  letter-spacing: 0;
}

.worldcup-upgrade .mobile-mode-button i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #edc876;
  font-size: 24px;
  font-style: normal;
}

.worldcup-upgrade .mobile-mode-button span {
  white-space: nowrap;
}

.worldcup-upgrade .mobile-mode-button.is-active {
  border-color: rgba(255, 213, 128, 0.72);
  background: linear-gradient(180deg, #a5292e, #621218);
  color: #fff0bf;
}

.worldcup-upgrade .mobile-mode-button.is-active::after {
  display: none;
}

/* Navigation v3: all entries fit, active item expands from 2-char short label to full label. */
.worldcup-upgrade .worldcup-mode-tabs,
.worldcup-upgrade .panel-nav,
.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  height: auto;
  margin: 0 0 18px;
  padding: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.worldcup-upgrade .mobile-mode-button,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button {
  flex: 1 1 0 !important;
  min-width: 0;
  min-height: 38px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 13px;
  transition:
    flex 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    min-height 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 220ms ease;
}

.worldcup-upgrade .mobile-mode-button span {
  display: none !important;
}

.worldcup-upgrade .worldcup-mode-tabs .mobile-mode-button span,
.worldcup-upgrade .panel-nav .mobile-mode-button span,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button span {
  display: none !important;
}

.worldcup-upgrade .mobile-mode-button::before {
  content: attr(data-short);
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.worldcup-upgrade .mobile-mode-button.is-active,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button.is-active {
  flex: 2.05 1 0 !important;
  min-height: 42px;
  padding: 0 8px;
}

.worldcup-upgrade .mobile-mode-button.is-active::before {
  content: attr(data-full);
}

.today-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.today-section-head strong {
  position: relative;
  padding-left: 12px;
  color: #fff0bf;
  font-size: 20px;
}

.today-section-head strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: #c8322d;
}

.today-section-head span {
  color: rgba(247, 221, 163, 0.82);
  font-size: 14px;
}

.worldcup-upgrade .match-list {
  gap: 10px;
}

.worldcup-upgrade .match-card {
  min-height: 136px;
  padding: 10px 14px 9px;
  border-radius: 12px;
}

.worldcup-upgrade .match-meta {
  margin-bottom: 7px;
  color: #f1d48a;
  font-size: 13px;
}

.worldcup-upgrade .match-meta span:nth-child(2) {
  flex: 1;
  padding-left: 10px;
  color: rgba(255, 236, 190, 0.78);
}

.worldcup-upgrade .match-meta span:last-child {
  width: auto;
  flex: 0 0 auto;
  direction: ltr;
  text-align: right;
  color: #f6dfac;
  font-size: 14px;
}

.worldcup-upgrade .match-title {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  margin-bottom: 8px;
  color: #fff7df;
  font-size: 19px;
  text-align: center;
}

.worldcup-upgrade .match-title::before,
.worldcup-upgrade .match-title::after {
  display: none;
}

.worldcup-upgrade .match-title em {
  color: #d3a45a;
  font-style: normal;
  font-weight: 950;
}

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

.pick-matrix div {
  min-height: 42px;
  padding: 5px 5px;
  border: 1px solid rgba(221, 177, 91, 0.24);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  text-align: center;
}

.pick-matrix span {
  display: block;
  margin-bottom: 3px;
  color: rgba(247, 221, 163, 0.72);
  font-size: 12px;
}

.pick-matrix strong {
  color: #ffe2a0;
  font-size: 12px;
  white-space: nowrap;
}

.worldcup-upgrade .analysis-compact-row {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.worldcup-upgrade .match-pick {
  display: none;
}

.worldcup-upgrade .card-toggle {
  min-height: 32px;
  border-radius: 7px;
}

.worldcup-upgrade .analysis-toggle {
  background:
    linear-gradient(180deg, rgba(255, 239, 190, 0.05), transparent),
    rgba(18, 17, 15, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 238, 190, 0.04);
}

.worldcup-upgrade .detail-toggle {
  background:
    linear-gradient(180deg, rgba(255, 234, 177, 0.09), transparent),
    linear-gradient(180deg, #9a2028, #651118);
}

.worldcup-upgrade .material-strip {
  display: grid;
  grid-template-columns: 62px 1fr 24px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(221, 177, 91, 0.5);
  border-radius: 12px;
  background: rgba(13, 13, 12, 0.9);
  text-align: left;
}

.strip-qr {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  color: #111;
  background: repeating-linear-gradient(45deg, #111 0 4px, #fff 4px 8px);
  font-size: 0;
}

.material-strip strong {
  color: #f7d88f;
  font-size: 18px;
}

.material-strip em {
  color: rgba(247, 221, 163, 0.72);
  font-size: 13px;
  font-style: normal;
}

.material-strip b {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #c99b45;
  font-size: 26px;
  font-weight: 400;
}

/* Desktop preview should look like a phone, not a wide webpage. */
body.worldcup-upgrade.card-preview-mode {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 0 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 188, 94, 0.18), transparent 28%),
    linear-gradient(180deg, #222, #080808);
}

.worldcup-upgrade.card-preview-mode .app-shell {
  width: 430px;
  max-width: calc(100vw - 20px);
  padding: 10px;
  border: 1px solid rgba(230, 190, 107, 0.58);
  border-radius: 34px;
  background:
    linear-gradient(180deg, #1c1c1c, #050505);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.52);
}

.worldcup-upgrade.card-preview-mode .preview-panel {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  border: 1px solid rgba(230, 190, 107, 0.22);
  border-radius: 26px;
  overflow: hidden;
}

@media (max-width: 430px) {
  body.worldcup-upgrade.card-preview-mode {
    display: block;
    padding: 0;
    background: #050505;
  }

  .worldcup-upgrade.card-preview-mode .app-shell {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .worldcup-upgrade.card-preview-mode .preview-panel {
    max-width: none;
    border: 0;
    border-radius: 0;
  }
}

/* Five-entry top navigation and effect-image inspired pages */
.worldcup-upgrade .worldcup-mode-tabs,
.worldcup-upgrade .panel-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid rgba(224, 178, 86, 0.68);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 238, 186, 0.06), transparent),
    rgba(7, 8, 8, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 180, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.32);
  overflow: visible;
}

.worldcup-upgrade .panel-nav {
  margin-top: 64px;
}

.worldcup-upgrade .mobile-mode-button {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e2bd70;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.worldcup-upgrade .mobile-mode-button:not(:last-child) {
  border-right: 1px solid rgba(224, 178, 86, 0.45);
}

.worldcup-upgrade .mobile-mode-button i {
  display: none;
}

.worldcup-upgrade .mobile-mode-button.is-active {
  transform: translateY(-4px);
  border: 1px solid rgba(255, 219, 130, 0.86);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 211, 112, 0.35), transparent 48%),
    linear-gradient(180deg, #a72b31, #611015);
  color: #ffe8a8;
  box-shadow:
    0 0 0 1px rgba(255, 244, 195, 0.12),
    0 12px 28px rgba(123, 24, 26, 0.42),
    inset 0 0 18px rgba(255, 225, 135, 0.16);
}

.worldcup-upgrade .upgrade-panel {
  min-height: 100vh;
  padding: 0 16px 28px;
  overflow: hidden;
}

.gold-page-title {
  margin: 14px 0 22px;
  color: #efd18d;
  text-align: center;
}

.gold-page-title span {
  display: block;
  margin-bottom: 10px;
  color: #d6a957;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.gold-page-title h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gold-page-title p {
  margin: 8px 0 0;
  color: #d9ac61;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

.review-result-card,
.material-match-card,
.review-summary-card,
.history-stats,
.history-table,
.history-tabs {
  border: 1px solid rgba(214, 159, 72, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 238, 190, 0.06), transparent 42%),
    rgba(13, 13, 12, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 170, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.28);
}

.review-result-card {
  position: relative;
  padding: 16px 88px 17px 18px;
}

.review-row-top,
.material-match-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7b16d;
  font-size: 15px;
  font-weight: 800;
}

.review-row-top time,
.material-match-card time {
  margin-left: auto;
  color: #efcc84;
}

.review-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 14px 0 12px;
  color: #f6e2b0;
  text-align: center;
}

.review-score-row b {
  min-width: 0;
  font-size: 21px;
  line-height: 1.18;
  white-space: nowrap;
}

.review-score-row strong {
  color: #ffd989;
  font-size: 30px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.review-score-row em {
  position: absolute;
  right: 17px;
  top: 58px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(245, 192, 107, 0.76);
  border-radius: 50%;
  color: #ffe0a0;
  background:
    radial-gradient(circle, rgba(158, 33, 36, 0.88), rgba(72, 13, 14, 0.9));
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
  transform: rotate(-8deg);
}

.review-result-card.miss .review-score-row em {
  color: #d8c6a4;
  border-color: rgba(210, 198, 170, 0.45);
  background: radial-gradient(circle, rgba(37, 37, 35, 0.88), rgba(10, 10, 10, 0.94));
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.review-tags span {
  padding: 6px 12px;
  border: 1px solid rgba(214, 159, 72, 0.5);
  border-radius: 999px;
  color: #f4d293;
  background: rgba(41, 24, 12, 0.48);
  font-weight: 800;
}

.review-result-card p {
  margin: 0;
  color: rgba(244, 222, 181, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.review-summary-card {
  margin-top: 16px;
  padding: 18px;
  color: #ebc77f;
  text-align: center;
}

.review-summary-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.review-summary-card div,
.history-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-summary-card span {
  display: block;
  padding: 10px 4px;
  border-right: 1px solid rgba(214, 159, 72, 0.32);
}

.review-summary-card span:last-child {
  border-right: 0;
}

.review-summary-card b {
  color: #ffd68c;
  font-size: 34px;
}

.history-stats {
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
}

.history-stats article {
  min-height: 104px;
  padding: 12px 8px;
  border: 1px solid rgba(214, 159, 72, 0.34);
  border-radius: 8px;
  text-align: center;
}

.history-stats span,
.history-stats em {
  display: block;
  color: #d7b16d;
  font-size: 12px;
  font-style: normal;
}

.history-stats b {
  display: block;
  margin: 8px 0;
  color: #ffd68c;
  font-size: 31px;
}

.history-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0;
  overflow: hidden;
}

.history-tabs button {
  min-height: 50px;
  border: 0;
  border-right: 1px solid rgba(214, 159, 72, 0.34);
  background: transparent;
  color: #d7b16d;
  font-size: 17px;
  font-weight: 900;
}

.history-tabs button.is-active {
  background: linear-gradient(180deg, #a42b31, #5f1014);
  color: #ffe1a0;
}

.history-table {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.history-head,
.history-table article {
  display: grid;
  grid-template-columns: 58px 1.35fr 50px 44px 64px 58px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #d7b16d;
  border-bottom: 1px solid rgba(214, 159, 72, 0.22);
}

.history-head {
  color: rgba(244, 222, 181, 0.62);
  font-size: 12px;
}

.history-table article b {
  color: #f3dab0;
  font-size: 14px;
}

.history-table article em {
  display: block;
  margin-top: 3px;
  color: rgba(244, 222, 181, 0.52);
  font-size: 11px;
  font-style: normal;
}

.history-table strong,
.history-table small {
  color: #f0c879;
  font-size: 16px;
}

.history-table i {
  padding: 4px 10px;
  border: 1px solid rgba(214, 159, 72, 0.42);
  border-radius: 999px;
  color: #f3d396;
  font-style: normal;
  text-align: center;
}

.history-table mark {
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffe1a0;
  background: linear-gradient(180deg, #9f2027, #601014);
  font-weight: 900;
  text-align: center;
}

.history-table mark.miss {
  color: #cfc2ad;
  background: rgba(82, 82, 78, 0.5);
}

.material-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-bottom: 14px;
  padding: 13px 10px;
  border: 1px solid rgba(214, 159, 72, 0.56);
  border-radius: 12px;
  color: #edcc85;
  background: rgba(13, 13, 12, 0.8);
  text-align: center;
  font-weight: 800;
}

.material-stats span:not(:last-child) {
  border-right: 1px solid rgba(214, 159, 72, 0.34);
}

.material-filter {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.material-filter::-webkit-scrollbar {
  display: none;
}

.material-filter button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(214, 159, 72, 0.42);
  border-radius: 999px;
  color: #d7b16d;
  background: rgba(14, 12, 10, 0.78);
  font-size: 14px;
  font-weight: 900;
}

.material-filter button.is-active {
  color: #ffe3a8;
  background:
    linear-gradient(180deg, rgba(255, 218, 134, 0.18), transparent),
    linear-gradient(180deg, #9e242b, #5e1115);
  box-shadow: 0 10px 22px rgba(98, 16, 18, 0.24);
}

.notice-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  padding: 13px 10px;
  border: 1px solid rgba(214, 159, 72, 0.56);
  border-radius: 12px;
  color: #edcc85;
  background: rgba(13, 13, 12, 0.8);
  text-align: center;
  font-weight: 900;
}

.notice-stats span {
  min-width: 0;
  padding: 0 6px;
  white-space: nowrap;
}

.notice-stats span:not(:last-child) {
  border-right: 1px solid rgba(214, 159, 72, 0.34);
}

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

.notice-card {
  position: relative;
  padding: 15px 16px;
  border: 1px solid rgba(214, 159, 72, 0.48);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.06), transparent 38%),
    rgba(10, 9, 8, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 190, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.26);
}

.notice-card.important {
  border-color: rgba(241, 189, 94, 0.72);
  background:
    linear-gradient(135deg, rgba(143, 24, 32, 0.24), transparent 48%),
    rgba(10, 9, 8, 0.92);
}

.notice-card.muted {
  opacity: 0.86;
}

.notice-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.notice-card b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffe4a8;
  background: linear-gradient(180deg, #9f232a, #5e1015);
  font-size: 13px;
}

.notice-card time {
  color: rgba(244, 222, 181, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.notice-card h3 {
  margin: 0 0 8px;
  color: #ffe4a8;
  font-size: 19px;
  line-height: 1.3;
}

.notice-card p {
  margin: 0;
  color: rgba(244, 222, 181, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.notice-card.empty-notice {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
}

.notice-card.empty-notice h3 {
  margin: 0;
  color: rgba(244, 222, 181, 0.54);
  font-size: 20px;
  font-weight: 850;
}

.material-match-list {
  display: grid;
  gap: 14px;
}

.material-match-card {
  padding: 14px;
}

.material-match-card > div:first-child b {
  padding: 5px 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, #9a252b, #581014);
  color: #ffd88c;
}

.material-match-card h3 {
  margin: 18px 0 14px;
  color: #f5e2bc;
  font-size: 28px;
  text-align: center;
}

.material-match-card h3 em {
  margin: 0 30px;
  color: #d9ab61;
  font-style: normal;
}

.material-grid.mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.material-grid.mini article {
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 159, 72, 0.38);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
}

.material-grid.mini article:not(.is-active) {
  display: none;
}

.material-grid.mini strong {
  display: block;
  margin-bottom: 6px;
  color: #ffd994;
  font-size: 14px;
}

.material-grid.mini span {
  color: rgba(244, 222, 181, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.panel-strip {
  margin-top: 18px;
}

/* Product Design pass: premium black-gold football intelligence front-end */
body.worldcup-upgrade.card-preview-mode {
  --pd-bg: #050403;
  --pd-panel: rgba(12, 11, 9, 0.92);
  --pd-gold: #f0c979;
  --pd-gold-deep: #b78235;
  --pd-cream: #fff1c2;
  --pd-red: #8f1820;
  --pd-red-hot: #b42b31;
  background:
    radial-gradient(circle at 50% -6%, rgba(246, 206, 122, 0.24), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(143, 24, 32, 0.26), transparent 28%),
    linear-gradient(180deg, #24201a, #070605 42%, #030303);
}

.worldcup-upgrade.card-preview-mode .app-shell {
  border-color: rgba(240, 201, 121, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 242, 190, 0.06), transparent 18%),
    #080706;
}

.worldcup-upgrade.card-preview-mode .preview-panel {
  border-color: rgba(240, 201, 121, 0.26);
  background:
    radial-gradient(ellipse at 68% 78px, rgba(246, 206, 122, 0.18), transparent 34%),
    linear-gradient(180deg, #0d0b09, #040404 62%);
}

.worldcup-upgrade .poster {
  padding: 0 15px 22px;
  background:
    radial-gradient(circle at 50% 78px, rgba(255, 218, 133, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(13, 10, 8, 0.98), #040404 64%);
}

.worldcup-upgrade .poster-bg {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.02) 0 186px, rgba(5, 5, 5, 0.55) 274px, #050505 610px),
    url("./assets/home-hero-bg.png") 58% top / auto 290px no-repeat,
    linear-gradient(180deg, #0d0b09 0 200px, #050505 201px 100%);
}

.worldcup-upgrade .poster-bg::before {
  top: 102px;
  height: 126px;
  opacity: 0.68;
  background:
    linear-gradient(164deg, transparent 0 15%, rgba(118, 15, 22, 0.88) 16% 43%, transparent 44%),
    radial-gradient(circle at 76% 23%, rgba(255, 232, 170, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 36%, rgba(255, 232, 170, 0.52) 0 2px, transparent 3px);
}

.worldcup-upgrade .poster-hero {
  min-height: 238px;
  padding: 24px 24px 18px;
  margin: 0 -15px 8px;
}

.worldcup-upgrade .poster-hero::before {
  display: none;
}

.hero-trophy {
  display: none;
}

.worldcup-upgrade .poster-hero::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 22px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 206, 122, 0.24), transparent 68%);
  pointer-events: none;
}

.hero-date-row {
  position: relative;
  z-index: 2;
  max-width: 250px;
  margin: 0 0 24px;
  color: rgba(240, 201, 121, 0.92);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.hero-date-row span:last-child {
  color: rgba(255, 241, 194, 0.92);
  letter-spacing: 0.02em;
}

.worldcup-upgrade .poster-hero h2 {
  max-width: 250px;
  font-size: 52px;
  line-height: 1.06;
  color: var(--pd-cream);
  text-shadow:
    0 2px 0 rgba(84, 47, 12, 0.85),
    0 0 28px rgba(240, 201, 121, 0.18);
}

.worldcup-upgrade .poster-hero p {
  max-width: 250px;
  margin-top: 14px;
  color: var(--pd-gold);
  font-size: 18px;
  letter-spacing: 0.16em;
}

.worldcup-upgrade .poster-hero p::before,
.worldcup-upgrade .poster-hero p::after {
  width: 44px;
  background: linear-gradient(90deg, transparent, var(--pd-gold-deep));
}

.worldcup-upgrade .mobile-mode-switch {
  margin: -8px 0 22px;
}

.worldcup-upgrade .worldcup-mode-tabs,
.worldcup-upgrade .panel-nav {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.06), rgba(255, 241, 194, 0.015)),
    rgba(6, 7, 7, 0.96);
}

.worldcup-upgrade .mobile-mode-button {
  min-height: 56px;
  color: rgba(240, 201, 121, 0.88);
  font-size: 17px;
}

.worldcup-upgrade .mobile-mode-button.is-active {
  color: #fff0bf;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 213, 126, 0.32), transparent 54%),
    linear-gradient(180deg, #a82b31, #621218);
}

.today-section-head {
  margin: 0 0 12px;
}

.today-section-head strong {
  color: var(--pd-cream);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.today-section-head span {
  color: rgba(240, 201, 121, 0.76);
  font-weight: 800;
}

.worldcup-upgrade .match-list {
  gap: 16px;
}

.worldcup-upgrade .match-card {
  min-height: 192px;
  padding: 14px 14px 13px;
  border-color: rgba(240, 201, 121, 0.56);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.07), transparent 36%),
    radial-gradient(circle at 96% 16%, rgba(240, 201, 121, 0.13), transparent 24%),
    linear-gradient(135deg, rgba(143, 24, 32, 0.12), transparent 42%),
    rgba(10, 9, 8, 0.92);
}

.worldcup-upgrade .match-meta {
  margin-bottom: 12px;
  color: rgba(240, 201, 121, 0.88);
  font-size: 14px;
}

.match-title-row {
  grid-template-columns: 1fr 54px 1fr;
  gap: 8px;
}

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

.team-block b {
  max-width: 100%;
  color: #fff5d4;
  font-size: 21px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-crest {
  display: block;
  width: 44px;
  height: 50px;
  border: 2px solid rgba(255, 224, 151, 0.72);
  border-radius: 12px 12px 18px 18px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #831c26 0 48%, #171717 48% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.44),
    0 0 18px rgba(240, 201, 121, 0.15);
}

.worldcup-upgrade .match-title em {
  align-self: center;
  color: #f0c979;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  text-shadow: 0 0 18px rgba(240, 201, 121, 0.18);
}

.pick-matrix {
  gap: 9px;
  margin: 12px 0 10px;
}

.pick-matrix div {
  min-height: 54px;
  border-color: rgba(240, 201, 121, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.04), transparent),
    rgba(3, 3, 3, 0.46);
}

.pick-matrix span {
  color: rgba(240, 201, 121, 0.76);
  font-size: 13px;
}

.pick-matrix strong {
  color: #ffe4a3;
  font-size: 15px;
}

.worldcup-upgrade .card-toggle {
  min-height: 42px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 950;
}

.worldcup-upgrade .analysis-toggle {
  border-color: rgba(240, 201, 121, 0.34);
  color: #f8dfaa;
}

.worldcup-upgrade .detail-toggle {
  border-color: rgba(255, 214, 130, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 239, 183, 0.1), transparent),
    linear-gradient(180deg, #a9272e, #681118);
}

.worldcup-upgrade .reference-note {
  margin-top: 10px;
  color: rgba(255, 234, 189, 0.58);
  font-size: 12px;
}

.worldcup-upgrade .material-strip {
  margin-top: 18px;
  padding: 14px;
  border-color: rgba(240, 201, 121, 0.54);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(113, 18, 22, 0.22), transparent 64%),
    rgba(12, 11, 9, 0.92);
}

.strip-qr {
  border: 4px solid #f6e8c2;
  background:
    linear-gradient(90deg, #111 0 14%, transparent 14% 28%, #111 28% 42%, transparent 42% 56%, #111 56% 70%, transparent 70%),
    linear-gradient(#111 0 12%, transparent 12% 24%, #111 24% 36%, transparent 36% 48%, #111 48% 60%, transparent 60%),
    #fff;
}

.material-strip strong {
  color: #ffd98f;
  font-size: 20px;
}

.material-strip em {
  color: rgba(255, 234, 189, 0.72);
}

.worldcup-upgrade .upgrade-panel {
  background:
    radial-gradient(circle at 50% 14%, rgba(240, 201, 121, 0.2), transparent 30%),
    radial-gradient(circle at 22% 38%, rgba(143, 24, 32, 0.2), transparent 28%),
    url("./assets/today-stage-cleaner-tight.png") center top / 132% auto no-repeat,
    linear-gradient(180deg, #0e0b08, #030303 68%);
}

.gold-page-title h2,
.cup-title h2 {
  color: var(--pd-cream);
  text-shadow:
    0 2px 0 rgba(82, 45, 12, 0.8),
    0 12px 28px rgba(0, 0, 0, 0.48);
}

.material-match-card,
.review-result-card,
.history-stats,
.history-table,
.history-tabs,
.review-summary-card {
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.06), transparent 36%),
    rgba(12, 11, 9, 0.94);
}

@media (max-width: 430px) {
  .worldcup-upgrade .poster-hero {
    min-height: 230px;
  }

  .worldcup-upgrade .poster-hero h2 {
    font-size: 50px;
  }
}

/* Record page: match the provided 往期战绩 reference on phone width */
.worldcup-upgrade #recordPanel {
  padding: 0 14px 30px;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.22) 0 220px, rgba(4, 4, 4, 0.78) 360px, #050505 100%),
    url("./assets/home-hero-bg.png") 58% top / auto 300px no-repeat,
    linear-gradient(180deg, #0d0b08, #050505 62%);
}

#recordPanel .gold-page-title {
  margin: 18px 0 18px;
}

#recordPanel .gold-page-title span {
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.22em;
}

#recordPanel .gold-page-title h2 {
  position: relative;
  display: inline-block;
  font-size: 48px;
  letter-spacing: 0.1em;
}

#recordPanel .gold-page-title h2::before,
#recordPanel .gold-page-title h2::after {
  content: "⌾";
  position: absolute;
  top: 50%;
  color: rgba(240, 201, 121, 0.78);
  font-family: "Songti SC", serif;
  font-size: 26px;
  transform: translateY(-50%);
}

#recordPanel .gold-page-title h2::before {
  left: -38px;
}

#recordPanel .gold-page-title h2::after {
  right: -38px;
}

#recordPanel .gold-page-title p {
  font-size: 19px;
}

#recordPanel .history-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 13px;
}

#recordPanel .history-stats article {
  min-width: 0;
  min-height: 96px;
  padding: 10px 4px 8px;
  border-color: rgba(214, 159, 72, 0.44);
  background: rgba(0, 0, 0, 0.18);
}

#recordPanel .history-stats span,
#recordPanel .history-stats em {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}

#recordPanel .history-stats b {
  margin: 8px 0 5px;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

#recordPanel .history-tabs {
  grid-template-columns: 1.05fr 1fr 1.15fr 1.15fr;
  margin: 12px 0 10px;
  border-radius: 13px;
}

#recordPanel .history-tabs button {
  min-height: 48px;
  padding: 0 4px;
  font-size: 16px;
  white-space: nowrap;
}

#recordPanel .history-table {
  gap: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#recordPanel .history-head,
#recordPanel .history-table article {
  display: grid;
  grid-template-columns: 46px minmax(104px, 1fr) 36px 42px 34px 46px;
  gap: 4px;
  padding: 0 6px;
  border: 0;
}

#recordPanel .history-head {
  min-height: 30px;
  align-items: center;
  color: rgba(244, 222, 181, 0.68);
  font-size: 12px;
}

#recordPanel .history-table article {
  position: relative;
  min-height: 76px;
  align-items: center;
  border: 1px solid rgba(214, 159, 72, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.04), transparent 42%),
    rgba(10, 10, 9, 0.9);
}

#recordPanel .history-table article::before {
  display: none;
}

#recordPanel .history-table article > span {
  padding-left: 0;
  color: rgba(244, 222, 181, 0.78);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

#recordPanel .history-table article b {
  min-width: 0;
  color: #f7ddb0;
  font-size: 13px;
  line-height: 1.18;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#recordPanel .history-table article em {
  max-width: 100%;
  color: rgba(244, 222, 181, 0.62);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#recordPanel .history-table strong,
#recordPanel .history-table small {
  color: #f0c879;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

#recordPanel .history-table i {
  min-width: 0;
  padding: 4px 5px;
  border-color: rgba(214, 159, 72, 0.44);
  color: #f3d396;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

#recordPanel .history-table mark {
  min-width: 44px;
  padding: 7px 7px;
  border: 1px solid rgba(245, 192, 107, 0.36);
  border-radius: 999px;
  color: #ffe1a0;
  background:
    linear-gradient(90deg, rgba(255, 216, 137, 0.16), transparent 28%, rgba(255, 216, 137, 0.16) 72%, transparent),
    linear-gradient(180deg, #9f2027, #601014);
  font-size: 13px;
  line-height: 1;
}

#recordPanel .history-table mark.miss {
  border-color: rgba(190, 185, 170, 0.28);
  color: #d6c8af;
  background:
    linear-gradient(180deg, rgba(80, 80, 76, 0.78), rgba(40, 40, 38, 0.78));
}

.history-note {
  margin: 14px 0 0;
  color: rgba(244, 222, 181, 0.58);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

#recordPanel .panel-strip {
  margin-top: 14px;
}

/* World Cup page exact-reference pass */
.worldcup-upgrade #worldcupPanel {
  padding: 0 16px 30px;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.06) 0 260px, rgba(4, 4, 4, 0.44) 620px, #050505 100%),
    radial-gradient(circle at 50% 8%, rgba(240, 201, 121, 0.12), transparent 30%),
    #050505;
}

#worldcupPanel .panel-nav {
  margin-top: 64px;
  margin-bottom: 18px;
}

#worldcupPanel .panel-nav::before {
  content: "球探长，赛前数据基地";
  position: absolute;
  left: 0;
  right: 0;
  top: -46px;
  color: rgba(240, 201, 121, 0.95);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
}

#worldcupPanel .cup-title {
  margin: 0 0 -4px;
  text-align: center;
}

#worldcupPanel .cup-title span {
  display: none;
}

#worldcupPanel .cup-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #fff0bf;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0.07em;
}

#worldcupPanel .cup-title h2::before,
#worldcupPanel .cup-title h2::after {
  content: "❧";
  position: absolute;
  top: 50%;
  color: rgba(240, 201, 121, 0.85);
  font-size: 25px;
  transform: translateY(-50%);
}

#worldcupPanel .cup-title h2::before {
  left: -34px;
}

#worldcupPanel .cup-title h2::after {
  right: -34px;
  transform: translateY(-50%) scaleX(-1);
}

#worldcupPanel .cup-title p {
  margin-top: 8px;
  color: #dcb568;
  font-size: 18px;
  letter-spacing: 0.17em;
}

#worldcupPanel .cup-title p::before,
#worldcupPanel .cup-title p::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1px;
  margin: 0 9px 6px;
  background: linear-gradient(90deg, transparent, #b78235);
}

#worldcupPanel .cup-title p::after {
  background: linear-gradient(90deg, #b78235, transparent);
}

#worldcupPanel .cup-stage {
  display: block !important;
  position: relative;
  z-index: 1;
  min-height: 704px;
  margin: -6px -16px 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, transparent 0 78%, #050505 100%),
    url("./assets/worldcup-schedule-bg.png") center top / 100% auto no-repeat;
  overflow: hidden;
}

#worldcupPanel .cup-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  background: #050505 url("./assets/worldcup-video-first-frame-v1.png") center top / cover no-repeat;
}

#worldcupPanel .cup-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0 64%, rgba(5, 5, 5, 0.82) 100%),
    radial-gradient(ellipse at 50% 34%, transparent 0 42%, rgba(0, 0, 0, 0.18) 100%);
}

#worldcupPanel .cup-schedule-card {
  margin-top: 8px;
  padding: 17px 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.045), transparent 42%),
    rgba(10, 10, 9, 0.9);
}

#worldcupPanel .cup-schedule-head strong {
  font-size: 22px;
}

#worldcupPanel .cup-schedule-table {
  grid-template-columns: 1fr 0.9fr 1.4fr 0.9fr;
  font-size: 14px;
}

#worldcupPanel .cup-material-strip {
  margin-top: 16px;
}

/* World Cup schedule lower sections */
.cup-schedule-card {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(214, 159, 72, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.05), transparent 38%),
    rgba(10, 10, 9, 0.92);
}

.cup-schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #f6d993;
}

.cup-schedule-head strong {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.cup-schedule-head button {
  border: 0;
  background: transparent;
  color: rgba(244, 222, 181, 0.72);
  font-weight: 800;
}

.cup-schedule-table {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.5fr 0.9fr;
  row-gap: 12px;
  color: rgba(244, 222, 181, 0.74);
  font-size: 14px;
}

.cup-schedule-table span {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(214, 159, 72, 0.26);
  color: rgba(244, 222, 181, 0.52);
}

.cup-schedule-table b {
  color: #f2ce84;
  font-weight: 800;
}

.cup-schedule-table em {
  color: #d9ab61;
  font-style: normal;
  margin: 0 6px;
}

/* World Cup final one-screen layout. */
#worldcupPanel {
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding-bottom: 12px !important;
  overflow: hidden !important;
}

body:has(#worldcupPanel.is-active),
body:has(#worldcupPanel.is-active) .app-shell,
body:has(#worldcupPanel.is-active) .workspace,
body:has(#worldcupPanel.is-active) .preview-panel,
body:has(#worldcupPanel.is-active) .mobile-preview {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

#worldcupPanel .cup-stage {
  min-height: min(442px, calc(100dvh - 318px)) !important;
}

#worldcupPanel .cup-schedule-card {
  margin-top: 8px !important;
  padding: 12px !important;
}

#worldcupPanel .cup-schedule-head {
  margin-bottom: 8px;
}

#worldcupPanel .cup-schedule-head strong {
  font-size: 18px !important;
}

#worldcupPanel .cup-schedule-head span {
  color: rgba(244, 222, 181, 0.68);
  font-size: 12px;
  font-weight: 800;
}

#worldcupPanel .cup-schedule-table {
  grid-template-columns: 52px 76px minmax(0, 1fr) 66px !important;
  row-gap: 0 !important;
  font-size: 12px !important;
}

#worldcupPanel .cup-schedule-table span,
#worldcupPanel .cup-schedule-table b {
  min-width: 0;
  padding: 7px 3px;
  border-bottom: 1px solid rgba(214, 159, 72, 0.16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#worldcupPanel .cup-schedule-table b {
  font-weight: 850;
}

#worldcupPanel .cup-schedule-table em {
  margin: 0 3px;
}

#worldcupPanel .cup-material-strip {
  display: none !important;
}

.cup-schedule-card.is-collapsible .cup-schedule-table {
  max-height: 118px;
  overflow: hidden;
}

/* World Cup final video crop + glass schedule card. */
#worldcupPanel .cup-stage {
  min-height: min(458px, calc(100dvh - 302px)) !important;
  margin-top: -18px !important;
}

#worldcupPanel .cup-bg-video {
  inset: -76px -18px -24px !important;
  width: calc(100% + 36px) !important;
  height: calc(100% + 100px) !important;
  object-position: center 52% !important;
  transform-origin: center 42%;
  animation: cupVideoBreath 8s ease-in-out infinite;
}

#worldcupPanel .cup-stage::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0 50%, rgba(5, 5, 5, 0.72) 100%),
    radial-gradient(ellipse at 50% 38%, transparent 0 44%, rgba(0, 0, 0, 0.14) 100%) !important;
}

#worldcupPanel .cup-stage::before {
  content: none !important;
}

#worldcupPanel .cup-schedule-card {
  border-color: rgba(244, 198, 107, 0.72) !important;
  background:
    linear-gradient(135deg, rgba(255, 232, 170, 0.12), rgba(96, 13, 17, 0.18) 55%, rgba(2, 2, 2, 0.24)),
    rgba(8, 8, 7, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 178, 0.24),
    0 12px 32px rgba(0, 0, 0, 0.34) !important;
  -webkit-backdrop-filter: blur(5px) saturate(1.08);
  backdrop-filter: blur(5px) saturate(1.08);
}

#worldcupPanel .cup-schedule-table span,
#worldcupPanel .cup-schedule-table b {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes cupVideoBreath {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, -10px, 0);
    filter: brightness(1.02) saturate(1.04);
  }

  50% {
    transform: scale(1.1) translate3d(0, -30px, 0);
    filter: brightness(1.1) saturate(1.1);
  }
}

/* Odds analysis page */
.worldcup-upgrade #oddsPanel {
  padding: 0 14px 30px;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.18) 0 210px, rgba(4, 4, 4, 0.82) 390px, #050505 100%),
    url("./assets/home-hero-bg.png") 60% top / auto 300px no-repeat,
    linear-gradient(180deg, #0d0b08, #050505 62%);
}

#oddsPanel .panel-nav,
#recordPanel .panel-nav,
#worldcupPanel .panel-nav,
#reviewPanel .panel-nav,
#materialPanel .panel-nav {
  margin-top: 64px;
}

.odds-title {
  margin: 16px 0 16px;
}

.odds-title h2 {
  font-size: 41px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.odds-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(214, 159, 72, 0.58);
  border-radius: 15px;
  background:
    radial-gradient(circle at 0 0, rgba(244, 201, 118, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(255, 241, 194, 0.07), transparent 46%),
    rgba(8, 8, 7, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 181, 0.05),
    0 16px 36px rgba(0, 0, 0, 0.28);
}

.odds-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(214, 159, 72, 0.24);
}

.odds-summary-head strong {
  color: #ffe3a2;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.odds-summary-head span {
  color: rgba(244, 222, 181, 0.58);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.odds-summary-grid {
  display: grid;
  gap: 8px;
}

.odds-summary article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(214, 159, 72, 0.25);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(93, 20, 24, 0.34), transparent 56%),
    rgba(0, 0, 0, 0.22);
}

.odds-summary i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(214, 159, 72, 0.42);
  border-radius: 50%;
  color: #f4cf85;
  background: rgba(25, 20, 13, 0.86);
  font-style: normal;
  font-weight: 900;
}

.odds-summary strong {
  color: #f7ddb0;
  font-size: 16px;
  line-height: 1.25;
}

.odds-summary span {
  display: block;
  margin-top: 4px;
  color: rgba(244, 222, 181, 0.62);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.odds-card-list {
  display: grid;
  gap: 14px;
}

.odds-match-card {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(214, 159, 72, 0.62);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.055), transparent 36%),
    radial-gradient(circle at 92% 22%, rgba(240, 201, 121, 0.1), transparent 28%),
    rgba(10, 10, 9, 0.92);
  overflow: hidden;
}

.odds-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  color: #d8b36f;
  font-size: 13px;
  font-weight: 850;
}

.odds-card-top b {
  padding: 5px 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, #9d252b, #5d1015);
  color: #ffd88c;
}

.odds-card-top time {
  color: #f0c879;
}

.odds-card-top em {
  padding: 4px 8px;
  border: 1px solid rgba(96, 190, 84, 0.42);
  border-radius: 999px;
  color: #91e17d;
  background: rgba(22, 92, 30, 0.24);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.odds-match-card:nth-child(2) .odds-card-top em {
  border-color: rgba(240, 201, 121, 0.36);
  color: #f0c879;
  background: rgba(121, 82, 18, 0.22);
}

.odds-match-card:nth-child(3) .odds-card-top em {
  border-color: rgba(198, 198, 190, 0.34);
  color: #d6d0bf;
  background: rgba(70, 70, 66, 0.25);
}

.odds-teams {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
}

.odds-teams strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #f8e1b4;
  font-size: 22px;
}

.odds-teams small {
  color: #d9ab61;
  font-size: 18px;
}

.team-crest.crest-blue {
  background: linear-gradient(90deg, #12366d 0 46%, #f4f0df 46% 64%, #234d84 64% 100%);
}

.team-crest.gold {
  background: linear-gradient(145deg, #111 0 35%, #d5a24e 36% 66%, #1a1712 67% 100%);
}

.team-crest.checker {
  background:
    linear-gradient(45deg, #b72b31 25%, transparent 25% 50%, #b72b31 50% 75%, transparent 75%),
    #f5ead0;
  background-size: 18px 18px;
}

.team-crest.blue-white {
  background: linear-gradient(90deg, #1d4d93 0 48%, #f2eedf 48% 100%);
}

.team-crest.green-white {
  background: linear-gradient(90deg, #198c45 0 38%, #f4eddc 38% 68%, #b0322d 68% 100%);
}

.odds-main {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.odds-main table {
  width: 100%;
  border-collapse: collapse;
  color: #f3d89c;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.odds-main th,
.odds-main td {
  padding: 5px 4px;
  border: 1px solid rgba(214, 159, 72, 0.16);
  text-align: center;
}

.odds-main th {
  color: #d8b36f;
  font-size: 11px;
}

.odds-main .green {
  color: #6be26e;
}

.odds-main .red {
  color: #f06f62;
}

.odds-chart {
  min-width: 0;
  padding: 5px 4px 2px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.odds-chart p {
  margin: 0 0 2px;
  color: rgba(244, 222, 181, 0.72);
  font-size: 10px;
  text-align: center;
}

.odds-chart svg {
  display: block;
  width: 100%;
  height: 86px;
}

.odds-chart .grid {
  stroke: rgba(214, 159, 72, 0.14);
  stroke-width: 1;
}

.odds-chart polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.odds-chart .win {
  stroke: #76d36b;
}

.odds-chart .draw {
  stroke: #e3b54d;
}

.odds-chart .lose {
  stroke: #df5549;
}

.odds-chart div {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: rgba(244, 222, 181, 0.64);
  font-size: 10px;
}

.odds-insight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  border: 1px solid rgba(214, 159, 72, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.odds-insight section {
  min-width: 0;
  padding: 8px 8px;
  border-right: 1px solid rgba(214, 159, 72, 0.22);
}

.odds-insight section:last-child {
  border-right: 0;
}

.odds-insight b {
  display: block;
  margin-bottom: 4px;
  color: #f0c879;
  font-size: 13px;
}

.odds-insight span {
  color: rgba(244, 222, 181, 0.7);
  font-size: 11px;
  line-height: 1.45;
}

.odds-timeline {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(214, 159, 72, 0.62);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.04), transparent 40%),
    rgba(10, 10, 9, 0.92);
}

.odds-timeline > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.odds-timeline h3 {
  margin: 0;
  color: #f4cf85;
  font-size: 20px;
}

.odds-timeline > div span {
  color: rgba(244, 222, 181, 0.58);
  font-size: 12px;
}

.odds-timeline article {
  display: grid;
  grid-template-columns: 48px 1fr 74px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(214, 159, 72, 0.18);
}

.odds-timeline time {
  color: #f0c879;
  font-weight: 900;
}

.odds-timeline b {
  display: block;
  color: #f7ddb0;
  font-size: 14px;
}

.odds-timeline p {
  grid-column: 2;
  margin: 2px 0 0;
  color: rgba(244, 222, 181, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.odds-timeline em {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  padding: 6px 8px;
  border: 1px solid rgba(244, 222, 181, 0.24);
  border-radius: 7px;
  color: #e5d4b4;
  background: rgba(50, 48, 42, 0.5);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.odds-timeline em.hot {
  border-color: rgba(200, 56, 49, 0.48);
  color: #ffd6a4;
  background: rgba(124, 24, 22, 0.46);
}

@media (max-width: 430px) {
  .worldcup-upgrade .mobile-mode-button {
    min-height: 52px;
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .odds-title h2 {
    font-size: 38px;
  }
}

/* Today page reference lock: keep odds entry, match the supplied home proportion. */
.worldcup-upgrade .poster {
  padding: 0 16px 22px;
}

.worldcup-upgrade .poster-bg {
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.05) 0 260px, rgba(4, 4, 4, 0.82) 400px, #050505 100%),
    url("./assets/home-hero-bg.png") 56% top / auto 310px no-repeat,
    linear-gradient(180deg, #0d0b08, #050505 62%);
}

.worldcup-upgrade .mobile-mode-switch {
  margin: 0 0 16px;
  padding: 22px 0 0;
}

.worldcup-upgrade .mobile-mode-switch::before {
  content: "球探长，赛前数据基地";
  display: block;
  margin: 0 0 18px;
  color: rgba(240, 201, 121, 0.95);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  text-shadow: 0 0 18px rgba(240, 201, 121, 0.22);
}

.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs {
  height: 58px;
  border-radius: 10px;
}

.worldcup-upgrade .mobile-mode-switch .mobile-mode-button {
  min-height: 58px;
  font-size: 15px;
}

.worldcup-upgrade .poster-hero {
  min-height: 184px;
  margin: 0 -16px 4px;
  padding: 22px 24px 10px;
}

.hero-date-row {
  display: none;
}

.worldcup-upgrade .poster-hero h2 {
  max-width: none;
  margin-top: 0;
  font-size: 50px;
  line-height: 1.02;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.worldcup-upgrade .poster-hero h2::before,
.worldcup-upgrade .poster-hero h2::after {
  content: "❧";
  display: inline-block;
  margin: 0 7px 8px 0;
  color: rgba(240, 201, 121, 0.82);
  font-family: "Songti SC", serif;
  font-size: 20px;
  vertical-align: middle;
}

.worldcup-upgrade .poster-hero h2::after {
  margin: 0 0 8px 7px;
  transform: scaleX(-1);
}

.worldcup-upgrade .poster-hero p {
  margin-top: 12px;
  max-width: 275px;
  font-size: 18px;
  letter-spacing: 0.13em;
}

.worldcup-upgrade .poster-hero p::before,
.worldcup-upgrade .poster-hero p::after {
  width: 48px;
  margin-bottom: 6px;
}

.today-section-head {
  display: none;
}

.worldcup-upgrade .match-list {
  gap: 16px;
}

.worldcup-upgrade .match-card {
  min-height: 188px;
  padding: 15px 14px 14px;
  border-radius: 13px;
}

.worldcup-upgrade .match-meta {
  margin-bottom: 10px;
}

.worldcup-upgrade .match-title {
  margin-bottom: 12px;
}

.worldcup-upgrade .match-title-row {
  grid-template-columns: 48px minmax(0, 1fr) 50px minmax(0, 1fr) 48px;
  gap: 7px;
}

.worldcup-upgrade .match-title-row .team-block {
  display: contents;
}

.team-crest {
  width: 42px;
  height: 48px;
  align-self: center;
  justify-self: center;
}

.team-block b {
  font-size: 20px;
  align-self: center;
  justify-self: center;
}

.pick-matrix {
  margin: 10px 0 12px;
}

.worldcup-upgrade .analysis-compact-row {
  gap: 10px;
}

.worldcup-upgrade .material-strip {
  margin-top: 18px;
}

/* Navigation redesign: full six-entry labels without crowding. */
.worldcup-upgrade .worldcup-mode-tabs,
.worldcup-upgrade .panel-nav,
.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: auto;
  gap: 1px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid rgba(224, 178, 86, 0.58);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 239, 190, 0.08), transparent 46%),
    linear-gradient(135deg, rgba(130, 26, 30, 0.16), transparent 42%),
    rgba(5, 6, 6, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 180, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.32);
  overflow: visible;
}

.worldcup-upgrade .panel-nav,
#oddsPanel .panel-nav,
#recordPanel .panel-nav,
#worldcupPanel .panel-nav,
#reviewPanel .panel-nav,
#materialPanel .panel-nav {
  margin-top: 64px;
  margin-bottom: 18px;
}

.worldcup-upgrade .mobile-mode-switch {
  margin: -8px 0 18px;
}

.worldcup-upgrade .mobile-mode-button,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button {
  position: relative;
  min-width: 0;
  min-height: 42px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: rgba(8, 8, 7, 0.62);
  color: rgba(240, 201, 121, 0.82);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: none;
}

.worldcup-upgrade .mobile-mode-button:not(:last-child) {
  border-right: 0;
}

.worldcup-upgrade .mobile-mode-button i {
  display: none;
}

.worldcup-upgrade .mobile-mode-button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worldcup-upgrade .mobile-mode-button.is-active,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button.is-active {
  transform: none;
  border: 1px solid rgba(255, 219, 130, 0.88);
  color: #fff0bf;
  background:
    radial-gradient(circle at 50% 105%, rgba(255, 214, 119, 0.34), transparent 58%),
    linear-gradient(180deg, #a92c32, #641116);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 185, 0.22),
    0 8px 20px rgba(94, 14, 18, 0.36);
}

.worldcup-upgrade .mobile-mode-button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffd982;
  box-shadow: 0 0 10px rgba(255, 217, 130, 0.65);
  transform: translateX(-50%);
}

/* Navigation redesign v2: horizontal premium chip rail. */
.worldcup-upgrade .worldcup-mode-tabs,
.worldcup-upgrade .panel-nav,
.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  height: auto;
  margin: 0 0 18px;
  padding: 7px;
  border: 1px solid rgba(224, 178, 86, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 239, 190, 0.08), transparent 54%),
    rgba(5, 6, 6, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 180, 0.05),
    0 14px 30px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.worldcup-upgrade .worldcup-mode-tabs::-webkit-scrollbar,
.worldcup-upgrade .panel-nav::-webkit-scrollbar,
.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs::-webkit-scrollbar {
  display: none;
}

.worldcup-upgrade .panel-nav,
#oddsPanel .panel-nav,
#recordPanel .panel-nav,
#worldcupPanel .panel-nav,
#reviewPanel .panel-nav,
#materialPanel .panel-nav {
  margin-top: 64px;
  margin-bottom: 18px;
}

.worldcup-upgrade .mobile-mode-button,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button {
  flex: 0 0 auto;
  min-width: auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(224, 178, 86, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.42);
  color: rgba(240, 201, 121, 0.78);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: none;
}

.worldcup-upgrade .mobile-mode-button:not(:last-child) {
  border-right: 1px solid rgba(224, 178, 86, 0.16);
}

.worldcup-upgrade .mobile-mode-button span {
  display: inline;
  overflow: visible;
  text-overflow: clip;
}

.worldcup-upgrade .mobile-mode-button.is-active,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button.is-active {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 219, 130, 0.86);
  color: #fff0bf;
  background:
    radial-gradient(circle at 50% 105%, rgba(255, 214, 119, 0.34), transparent 58%),
    linear-gradient(180deg, #a92c32, #641116);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 185, 0.22),
    0 8px 18px rgba(94, 14, 18, 0.34);
  transform: none;
}

.worldcup-upgrade .mobile-mode-button.is-active::after {
  display: none;
}

/* Secondary pages use top navigation directly; no back button space. */
.worldcup-upgrade .panel-nav,
#oddsPanel .panel-nav,
#recordPanel .panel-nav,
#worldcupPanel .panel-nav,
#reviewPanel .panel-nav,
#materialPanel .panel-nav {
  margin-top: 0 !important;
}

/* Final panel backdrop pass: give World Cup, review, and notices their own visual language. */
.worldcup-upgrade #worldcupPanel,
.worldcup-upgrade #reviewPanel,
.worldcup-upgrade #materialPanel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.worldcup-upgrade #worldcupPanel > *,
.worldcup-upgrade #reviewPanel > *,
.worldcup-upgrade #materialPanel > * {
  position: relative;
  z-index: 2;
}

.worldcup-upgrade #worldcupPanel {
  background:
    radial-gradient(ellipse at 74% 2%, rgba(255, 225, 145, 0.28), transparent 25%),
    radial-gradient(ellipse at 50% 32%, rgba(218, 170, 74, 0.18), transparent 34%),
    radial-gradient(ellipse at 12% 18%, rgba(118, 24, 28, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(6, 6, 5, 0.12) 0 210px, rgba(6, 6, 5, 0.66) 560px, #040404 100%),
    repeating-linear-gradient(90deg, rgba(240, 201, 121, 0.035) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(240, 201, 121, 0.026) 0 1px, transparent 1px 34px),
    #050505 !important;
}

.worldcup-upgrade #worldcupPanel::after {
  content: "";
  position: absolute;
  inset: 92px -90px auto;
  z-index: 1;
  height: 560px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 216, 126, 0.16), transparent 19%),
    radial-gradient(circle at 8% 22%, rgba(255, 222, 142, 0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 29%, rgba(255, 222, 142, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 83% 24%, rgba(255, 222, 142, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 94% 31%, rgba(255, 222, 142, 0.38) 0 2px, transparent 3px),
    linear-gradient(103deg, transparent 0 20%, rgba(255, 216, 126, 0.18) 21%, transparent 42%),
    linear-gradient(78deg, transparent 0 58%, rgba(255, 216, 126, 0.14) 66%, transparent 86%);
  opacity: 0.78;
  filter: blur(0.2px);
}

.worldcup-upgrade #reviewPanel {
  background:
    radial-gradient(circle at 84% 12%, rgba(148, 31, 35, 0.36), transparent 24%),
    radial-gradient(circle at 14% 28%, rgba(238, 190, 102, 0.15), transparent 24%),
    linear-gradient(143deg, transparent 0 42%, rgba(126, 21, 27, 0.18) 43% 49%, transparent 50%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.1) 0 190px, rgba(7, 6, 5, 0.68) 520px, #050505 100%),
    repeating-linear-gradient(0deg, rgba(240, 201, 121, 0.035) 0 1px, transparent 1px 30px),
    #050505 !important;
}

.worldcup-upgrade #reviewPanel::after {
  content: "RESULT";
  position: absolute;
  top: 150px;
  right: -52px;
  z-index: 1;
  width: 210px;
  height: 210px;
  border: 2px solid rgba(225, 184, 103, 0.18);
  border-radius: 50%;
  color: rgba(225, 184, 103, 0.1);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 210px;
  text-align: center;
  transform: rotate(-16deg);
  box-shadow:
    inset 0 0 0 10px rgba(130, 28, 32, 0.08),
    0 0 38px rgba(130, 28, 32, 0.14);
  pointer-events: none;
}

.worldcup-upgrade #materialPanel {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 184, 92, 0.21), transparent 27%),
    radial-gradient(ellipse at 92% 18%, rgba(112, 26, 23, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(7, 7, 6, 0.08) 0 190px, rgba(7, 7, 6, 0.62) 520px, #050505 100%),
    linear-gradient(90deg, rgba(240, 201, 121, 0.055), transparent 16%, transparent 84%, rgba(240, 201, 121, 0.055)),
    repeating-linear-gradient(0deg, rgba(240, 201, 121, 0.032) 0 1px, transparent 1px 36px),
    #050505 !important;
}

/* Final navigation lock: active entry expands to four characters, inactive entries stay compact. */
.worldcup-upgrade .worldcup-mode-tabs,
.worldcup-upgrade .panel-nav,
.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs {
  display: flex !important;
  align-items: center;
  gap: 5px !important;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.worldcup-upgrade .mobile-mode-button,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  transition:
    flex 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    min-height 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    color 220ms ease !important;
}

.worldcup-upgrade .worldcup-mode-tabs .mobile-mode-button span,
.worldcup-upgrade .panel-nav .mobile-mode-button span,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button span {
  display: none !important;
}

.worldcup-upgrade .mobile-mode-button::before {
  content: attr(data-short) !important;
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.worldcup-upgrade .mobile-mode-button.is-active,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button.is-active {
  flex: 2.08 1 0 !important;
  min-height: 42px !important;
  padding: 0 8px !important;
}

.worldcup-upgrade .mobile-mode-button.is-active::before {
  content: attr(data-full) !important;
}

/* Every top-level page keeps the premium identity line above the tab rail. */
.worldcup-upgrade .upgrade-panel .panel-nav {
  position: relative !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

.worldcup-upgrade .upgrade-panel {
  padding-top: 58px !important;
}

.worldcup-upgrade .upgrade-panel .panel-nav::before {
  content: "球探长，赛前数据基地" !important;
  position: absolute;
  left: 0;
  right: 0;
  top: -46px;
  display: block !important;
  color: rgba(240, 201, 121, 0.96);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 18px rgba(240, 201, 121, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.worldcup-upgrade .upgrade-panel .gold-page-title > span {
  display: none !important;
}

/* Review page final centering pass. */
.worldcup-upgrade #reviewPanel {
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative !important;
  left: 0 !important;
}

.worldcup-upgrade #reviewPanel > .panel-nav,
.worldcup-upgrade #reviewPanel > .review-center-wrap {
  width: min(365px, calc(100% - 28px)) !important;
  max-width: 365px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  position: static !important;
  left: 0 !important;
  transform: none !important;
}

.worldcup-upgrade #reviewPanel > .review-center-wrap {
  display: grid;
  gap: 14px;
}

.worldcup-upgrade #reviewPanel .gold-page-title {
  text-align: center !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

.worldcup-upgrade #reviewPanel .match-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: center !important;
  column-gap: 4px !important;
  min-height: 128px !important;
  margin: 18px 0 16px !important;
}

.worldcup-upgrade #reviewPanel .match-title-row > em {
  position: relative !important;
  width: 104px !important;
  height: 104px !important;
  color: transparent !important;
}

.worldcup-upgrade #reviewPanel .match-title-row > em .review-badge {
  left: 50% !important;
  top: 50% !important;
}

.worldcup-upgrade #reviewPanel .match-title-row .team-block {
  display: flex !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 124px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
}

.worldcup-upgrade #reviewPanel .match-title-row .team-block b {
  display: block !important;
  max-width: 112px !important;
  color: #fff6d8 !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.worldcup-upgrade #reviewPanel .match-title-row .team-crest {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* History page: long record archive scrolls independently with a fixed header. */
#recordPanel .history-table {
  max-height: min(620px, calc(100dvh - 360px));
  min-height: 0;
  padding: 0 0 10px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 201, 121, 0.5) rgba(255, 255, 255, 0.04);
  mask-image: linear-gradient(180deg, #000 0 calc(100% - 28px), transparent 100%);
}

#recordPanel .history-table::-webkit-scrollbar {
  width: 4px;
}

#recordPanel .history-table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(240, 201, 121, 0.48);
}

#recordPanel .history-head {
  position: sticky;
  top: 0;
  z-index: 4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(28, 22, 13, 0.98), rgba(8, 8, 7, 0.94));
  backdrop-filter: blur(10px);
}

#recordPanel .history-table article:last-child {
  margin-bottom: 16px;
}

/* Home combo recommendation modal. */
.worldcup-upgrade .combo-entry .strip-qr {
  width: 56px;
  color: #5a1014;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 241, 188, 0.85), transparent 62%),
    linear-gradient(180deg, #f5cf75, #a56a25);
  font-size: 13px;
}

.combo-overlay[hidden] {
  display: none !important;
}

.combo-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.combo-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(238, 190, 102, 0.16), transparent 30%),
    rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.combo-modal {
  position: relative;
  z-index: 2;
  width: min(348px, calc(100vw - 34px));
  max-height: calc(100vh - 54px);
  padding: 18px 16px 16px;
  border: 1px solid rgba(244, 198, 107, 0.74);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(242, 201, 121, 0.18), transparent 34%),
    radial-gradient(circle at 98% 12%, rgba(147, 27, 32, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(24, 18, 12, 0.98), rgba(5, 5, 4, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 181, 0.08),
    0 28px 72px rgba(0, 0, 0, 0.66);
  overflow-y: auto;
  animation: comboZoomIn 260ms cubic-bezier(0.18, 0.92, 0.24, 1) both;
}

.combo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 201, 121, 0.34);
  border-radius: 50%;
  color: #f5d58e;
  background: rgba(0, 0, 0, 0.28);
  font-size: 24px;
  line-height: 1;
}

.combo-modal-head {
  padding-right: 38px;
  color: #efd18d;
}

.combo-modal-head span {
  color: rgba(240, 201, 121, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.combo-modal-head h3 {
  margin: 6px 0 4px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.combo-modal-head p,
.combo-note {
  margin: 0;
  color: rgba(244, 222, 181, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.combo-leg-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 12px;
}

.combo-leg-card {
  padding: 13px;
  border: 1px solid rgba(214, 159, 72, 0.54);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 237, 181, 0.08), transparent 46%),
    rgba(8, 8, 7, 0.82);
}

.combo-leg-top,
.combo-leg-teams,
.combo-leg-grid {
  display: grid;
  align-items: center;
}

.combo-leg-top {
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  color: rgba(240, 201, 121, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.combo-leg-top span {
  padding: 3px 8px;
  border-radius: 6px;
  color: #ffe0a2;
  background: linear-gradient(180deg, #8b2029, #4d0e13);
}

.combo-leg-top b {
  color: #fff1c4;
}

.combo-leg-teams {
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 6px;
  margin: 12px 0;
  color: #fff6d8;
  text-align: center;
}

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

.combo-leg-teams i {
  color: #f0c979;
  font-style: normal;
  font-size: 24px;
  font-weight: 950;
}

.combo-leg-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}

.combo-leg-grid div,
.combo-summary div {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(214, 159, 72, 0.34);
  border-radius: 9px;
  text-align: center;
  background: rgba(0, 0, 0, 0.24);
}

.combo-leg-grid span,
.combo-summary span {
  display: block;
  margin-bottom: 4px;
  color: rgba(240, 201, 121, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.combo-leg-grid b,
.combo-summary strong {
  color: #fff1c4;
  font-size: 15px;
  line-height: 1.22;
}

.combo-leg-card p {
  margin: 10px 0 0;
  color: rgba(244, 222, 181, 0.76);
  font-size: 13px;
  line-height: 1.7;
}

.combo-only-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 14px 15px;
  border: 1px solid rgba(244, 198, 107, 0.68);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 219, 139, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(116, 22, 27, 0.44), rgba(9, 8, 6, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 194, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.combo-only-label {
  justify-self: center;
  padding: 5px 14px;
  border: 1px solid rgba(244, 198, 107, 0.55);
  border-radius: 999px;
  color: #4b0e12;
  background: linear-gradient(180deg, #ffe8a8, #c68735);
  font-size: 13px;
  font-weight: 950;
}

.combo-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.combo-picks span {
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid rgba(244, 198, 107, 0.45);
  border-radius: 12px;
  color: #fff3c5;
  background: rgba(0, 0, 0, 0.3);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.combo-sp {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 231, 165, 0.14), transparent),
    rgba(0, 0, 0, 0.34);
}

.combo-sp span {
  color: rgba(240, 201, 121, 0.78);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.combo-sp strong {
  color: #ffe099;
  font-size: 52px;
  line-height: 0.92;
  font-weight: 950;
  text-align: right;
  text-shadow: 0 0 22px rgba(240, 201, 121, 0.24);
}

.combo-only-card p {
  margin: 0;
  color: rgba(244, 222, 181, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.combo-summary {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.2fr;
  gap: 8px;
  margin-bottom: 12px;
}

.combo-formula {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 159, 72, 0.34);
  border-radius: 10px;
  color: #ffe6a8;
  background: rgba(100, 18, 22, 0.32);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

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

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

/* Review page recovery: keep original card layout, stamp only on VS. */
.worldcup-upgrade #reviewPanel {
  padding-left: 14px !important;
  padding-right: 14px !important;
  left: 0 !important;
}

.worldcup-upgrade #reviewPanel > .panel-nav,
.worldcup-upgrade #reviewPanel > .review-center-wrap {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
}

.worldcup-upgrade #reviewPanel > .review-center-wrap {
  display: block !important;
}

.worldcup-upgrade #reviewPanel .review-plan-list {
  display: grid !important;
  gap: 16px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card {
  width: 100% !important;
  padding: 14px 14px 13px !important;
  box-sizing: border-box !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .match-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 8px !important;
  min-height: auto !important;
  margin: 0 !important;
  position: relative !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .team-block {
  display: grid !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  justify-items: center !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  text-align: center !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .team-block b {
  max-width: 100% !important;
  color: #fff5d4 !important;
  font-size: 21px !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .team-crest {
  display: block !important;
  width: 44px !important;
  height: 50px !important;
  margin: 0 !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .match-title-row > em {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 64px !important;
  height: 76px !important;
  min-height: 76px !important;
  color: transparent !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .match-title-row > em::after {
  display: none !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .review-badge {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 4 !important;
  width: 76px !important;
  height: 76px !important;
  transform: translate(-50%, -50%) rotate(-12deg) !important;
  animation: reviewStampDrop 620ms cubic-bezier(0.2, 1.28, 0.3, 1) both !important;
}

.worldcup-upgrade #reviewPanel > .panel-nav,
.worldcup-upgrade #reviewPanel > .review-center-wrap {
  width: 340px !important;
  max-width: 340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  translate: none !important;
}

.worldcup-upgrade #reviewPanel > .panel-nav {
  position: relative !important;
  left: auto !important;
  transform: translateX(77px) !important;
}

.worldcup-upgrade #reviewPanel > .review-center-wrap {
  position: relative !important;
  left: auto !important;
  transform: translateX(77px) !important;
}

.team-crest.logo-mexico,
.team-crest.logo-south-africa,
.team-crest.logo-south-korea,
.team-crest.logo-czech,
.team-crest.logo-canada,
.team-crest.logo-bosnia,
.team-crest.logo-united-states,
.team-crest.logo-paraguay,
.team-crest[style*="team-flags"] {
  width: 50px !important;
  height: 34px !important;
  border: 1px solid rgba(255, 224, 151, 0.68) !important;
  border-radius: 6px !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

.team-crest.logo-mexico {
  background: url("./assets/team-flags/mexico.svg") center / contain no-repeat !important;
}

.team-crest.logo-south-africa {
  background: url("./assets/team-flags/south-africa.svg") center / contain no-repeat !important;
}

.team-crest.logo-south-korea {
  background: url("./assets/team-flags/south-korea.svg") center / contain no-repeat !important;
}

.team-crest.logo-czech {
  background: url("./assets/team-flags/czech-republic.svg") center / contain no-repeat !important;
}

.team-crest.logo-canada {
  background: url("./assets/team-flags/canada.svg") center / contain no-repeat !important;
}

.team-crest.logo-bosnia {
  background: url("./assets/team-flags/bosnia-herzegovina.svg") center / contain no-repeat !important;
}

.team-crest.logo-united-states {
  background: url("./assets/team-flags/united-states.svg") center / contain no-repeat !important;
}

.team-crest.logo-paraguay {
  background: url("./assets/team-flags/paraguay.svg") center / contain no-repeat !important;
}

/* Model one-flow page: fixed scalable table template for every match. */
.worldcup-upgrade #worldcupPanel.model-flow-panel {
  min-height: 100dvh !important;
  height: auto !important;
  padding: 58px 14px 30px !important;
  overflow: auto !important;
  background:
    radial-gradient(ellipse at 74% 0%, rgba(255, 225, 145, 0.18), transparent 24%),
    radial-gradient(ellipse at 12% 18%, rgba(118, 24, 28, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(6, 6, 5, 0.12) 0 210px, rgba(6, 6, 5, 0.72) 560px, #040404 100%),
    repeating-linear-gradient(90deg, rgba(240, 201, 121, 0.035) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(240, 201, 121, 0.026) 0 1px, transparent 1px 34px),
    #050505 !important;
}

body:has(#worldcupPanel.model-flow-panel.is-active),
body:has(#worldcupPanel.model-flow-panel.is-active) .app-shell,
body:has(#worldcupPanel.model-flow-panel.is-active) .workspace,
body:has(#worldcupPanel.model-flow-panel.is-active) .preview-panel {
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
}

#worldcupPanel.model-flow-panel::after {
  content: none !important;
}

.model-flow-list {
  display: grid;
  gap: 14px;
}

.model-flow-card {
  border: 1px solid rgba(214, 159, 72, 0.62);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 241, 194, 0.045), transparent 42%), rgba(8, 8, 7, 0.92);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.model-flow-trigger {
  display: grid;
  grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1.25fr) minmax(74px, 0.76fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid rgba(214, 159, 72, 0.3);
  color: #f7ddb0;
  background: linear-gradient(90deg, rgba(116, 21, 25, 0.38), transparent 34%), rgba(0, 0, 0, 0.2);
  text-align: left;
}

.model-flow-trigger span,
.model-flow-trigger small {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.model-flow-trigger b {
  color: #f6d993;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.model-flow-trigger em,
.model-flow-trigger small {
  color: rgba(244, 222, 181, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.model-flow-trigger strong {
  min-width: 0;
  color: #fff0bf;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-flow-trigger strong i {
  margin: 0 6px;
  color: #d9ab61;
  font-style: normal;
}

.model-flow-trigger u {
  grid-column: 1 / -1;
  justify-self: stretch;
  padding: 8px 10px;
  border: 1px solid rgba(214, 159, 72, 0.34);
  border-radius: 999px;
  color: #f0c879;
  background: rgba(0, 0, 0, 0.26);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.model-flow-sheet {
  display: none;
  padding: 14px;
}

.model-flow-card.is-open .model-flow-sheet {
  display: grid;
  gap: 12px;
}

.flow-title {
  text-align: center;
}

.flow-title span {
  color: rgba(240, 201, 121, 0.92);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.flow-title h3 {
  margin: 5px 0 4px;
  color: #ffe6a5;
  font-size: 30px;
  font-weight: 950;
}

.flow-title p {
  margin: 0;
  color: #d8b36f;
  font-size: 13px;
  font-weight: 850;
}

.flow-match-head,
.flow-kpi-grid,
.flow-block,
.flow-result {
  border: 1px solid rgba(214, 159, 72, 0.58);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 241, 194, 0.04), transparent 42%), rgba(5, 5, 4, 0.82);
}

.flow-match-head {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  min-height: 82px;
}

.flow-match-head > * {
  min-width: 0;
}

.flow-match-head div {
  display: grid;
  gap: 8px;
  text-align: center;
}

.flow-match-head div:first-child,
.flow-match-head strong {
  border-right: 1px solid rgba(214, 159, 72, 0.38);
}

.flow-match-head span,
.flow-kpi-grid span,
.flow-sample-grid span,
.flow-result span {
  color: rgba(244, 222, 181, 0.58);
  font-size: 12px;
  font-weight: 850;
}

.flow-match-head b {
  color: #fff0bf;
  font-size: 24px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-match-head strong {
  color: #fff0bf;
  font-size: 38px;
  font-weight: 950;
  text-align: center;
}

.flow-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 74px;
}

.flow-kpi-grid div {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.flow-kpi-grid div:not(:last-child) {
  border-right: 1px solid rgba(214, 159, 72, 0.38);
}

.flow-kpi-grid b {
  color: #ffe3a2;
  font-size: 25px;
  font-weight: 950;
  white-space: nowrap;
}

.flow-kpi-grid .red,
.flow-odds-table .red,
.flow-sample-grid .red {
  color: #ff6565;
}

.flow-kpi-grid .green,
.flow-odds-table .green,
.flow-sample-grid .green {
  color: #66da91;
}

.flow-block {
  padding: 12px;
}

.flow-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.flow-block-head b {
  color: #ffe3a2;
  font-size: 20px;
  font-weight: 950;
}

.flow-block-head span {
  color: rgba(244, 222, 181, 0.56);
  font-size: 12px;
  font-weight: 850;
}

.flow-odds-table {
  display: grid;
  grid-template-columns: 0.85fr repeat(3, 1fr);
  border: 1px solid rgba(214, 159, 72, 0.38);
  border-radius: 8px;
  overflow: hidden;
}

.flow-odds-table span,
.flow-odds-table b {
  min-width: 0;
  padding: 7px 6px;
  border-right: 1px solid rgba(214, 159, 72, 0.3);
  border-bottom: 1px solid rgba(214, 159, 72, 0.18);
  color: #f4deb5;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.flow-odds-table span {
  color: rgba(244, 222, 181, 0.6);
  font-size: 12px;
}

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

.flow-sample-grid div {
  display: grid;
  gap: 6px;
  min-height: 58px;
  align-content: center;
  border: 1px solid rgba(214, 159, 72, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.flow-sample-grid b {
  color: #fff0bf;
  font-size: 16px;
  font-weight: 950;
}

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

.flow-bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #fff0bf;
  font-size: 14px;
  font-weight: 900;
}

.flow-bar-row b {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(95, 105, 120, 0.28);
  overflow: hidden;
}

.flow-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f58aa, #80d8ff);
}

.flow-bar-row.green i {
  background: linear-gradient(90deg, #17643e, #5ce098);
}

.flow-bar-row.red i {
  background: linear-gradient(90deg, #a71925, #fb725d);
}

.flow-bar-row.dark i {
  background: #33404f;
}

.flow-result {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
}

.flow-result div {
  display: grid;
  gap: 5px;
}

.flow-result b {
  color: #fff0bf;
  font-size: 19px;
  font-weight: 950;
}

.flow-result p {
  grid-column: 1 / -1;
  margin: 0;
  max-width: calc(100% - 78px);
  color: rgba(244, 222, 181, 0.72);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.flow-result mark {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 72px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 224, 156, 0.78);
  border-radius: 999px;
  color: #fff0bf;
  background: linear-gradient(180deg, #a92c32, #641116);
  font-size: 17px;
  font-weight: 950;
  text-align: center;
}

/* World Cup schedule page: replaces the old one-flow panel with a live schedule view. */
.worldcup-upgrade #worldcupPanel.worldcup-schedule-panel {
  min-height: 100dvh !important;
  height: auto !important;
  padding: 58px 14px 30px !important;
  overflow: auto !important;
  background:
    radial-gradient(ellipse at 74% 0%, rgba(255, 225, 145, 0.18), transparent 24%),
    radial-gradient(ellipse at 10% 20%, rgba(118, 24, 28, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(6, 6, 5, 0.12) 0 210px, rgba(6, 6, 5, 0.72) 560px, #040404 100%),
    repeating-linear-gradient(90deg, rgba(240, 201, 121, 0.035) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(240, 201, 121, 0.026) 0 1px, transparent 1px 34px),
    #050505 !important;
}

body:has(#worldcupPanel.worldcup-schedule-panel.is-active),
body:has(#worldcupPanel.worldcup-schedule-panel.is-active) .app-shell,
body:has(#worldcupPanel.worldcup-schedule-panel.is-active) .workspace,
body:has(#worldcupPanel.worldcup-schedule-panel.is-active) .preview-panel {
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
}

#worldcupPanel.worldcup-schedule-panel::after {
  content: none !important;
}

.schedule-title {
  margin-top: 30px !important;
}

.schedule-stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 16px;
}

.schedule-stage-strip article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid rgba(214, 159, 72, 0.38);
  border-radius: 12px;
  background: rgba(5, 5, 4, 0.72);
  text-align: center;
}

.schedule-stage-strip article.is-active {
  border-color: rgba(255, 222, 148, 0.82);
  background:
    linear-gradient(180deg, rgba(160, 34, 42, 0.78), rgba(72, 12, 15, 0.76)),
    rgba(5, 5, 4, 0.82);
  box-shadow: 0 0 22px rgba(230, 175, 86, 0.16);
}

.schedule-stage-strip span,
.schedule-stage-strip em {
  color: rgba(244, 222, 181, 0.58);
  font-size: 10px;
  font-weight: 850;
  font-style: normal;
  white-space: nowrap;
}

.schedule-stage-strip b {
  color: #ffe5a7;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.worldcup-schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-summary-card,
.schedule-match-card {
  border: 1px solid rgba(214, 159, 72, 0.58);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.055), transparent 42%),
    rgba(8, 8, 7, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.schedule-summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 14px 16px;
}

.schedule-summary-card span,
.schedule-summary-card em {
  color: rgba(244, 222, 181, 0.62);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.schedule-summary-card b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #ffe3a2;
  font-size: 30px;
  font-weight: 950;
}

.schedule-match-card {
  overflow: hidden;
}

.schedule-match-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(214, 159, 72, 0.28);
  color: rgba(244, 222, 181, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.schedule-match-top span {
  padding: 5px 8px;
  border-radius: 7px;
  color: #ffe2a5;
  background: linear-gradient(180deg, #a52b31, #641116);
}

.schedule-match-top b,
.schedule-match-top time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-match-top em {
  padding: 5px 8px;
  border: 1px solid rgba(214, 159, 72, 0.42);
  border-radius: 999px;
  color: #ffe3a2;
  background: rgba(0, 0, 0, 0.28);
  font-style: normal;
  white-space: nowrap;
}

.schedule-match-card.live .schedule-match-top em {
  color: #7ef0a1;
  border-color: rgba(70, 210, 116, 0.52);
}

.schedule-match-card.ended {
  opacity: 0.68;
}

.schedule-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 17px 14px 14px;
}

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

.schedule-team .team-crest {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 226, 156, 0.58);
  background-color: rgba(255, 255, 255, 0.06);
}

.schedule-team strong {
  max-width: 100%;
  color: #fff0bf;
  font-size: 20px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-vs {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.schedule-vs span {
  color: #ffe0a0;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.schedule-vs small {
  color: rgba(244, 222, 181, 0.62);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.schedule-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.schedule-info-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(214, 159, 72, 0.36);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  text-align: center;
}

.schedule-info-grid span {
  color: rgba(244, 222, 181, 0.56);
  font-size: 11px;
  font-weight: 850;
}

.schedule-info-grid b {
  color: #ffe3a2;
  font-size: 14px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-detail-button {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 224, 156, 0.66);
  border-radius: 999px;
  color: #fff0bf;
  background: linear-gradient(180deg, rgba(157, 32, 39, 0.92), rgba(91, 14, 18, 0.92));
  font-size: 14px;
  font-weight: 950;
}

/* World Cup visual-only wallpaper panel. */
.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel {
  display: none;
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding: 58px 0 0 !important;
  overflow: hidden !important;
  background: #030303 !important;
}

.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel.is-active {
  display: block;
}

body:has(#worldcupPanel.worldcup-wallpaper-panel.is-active),
body:has(#worldcupPanel.worldcup-wallpaper-panel.is-active) .app-shell,
body:has(#worldcupPanel.worldcup-wallpaper-panel.is-active) .workspace,
body:has(#worldcupPanel.worldcup-wallpaper-panel.is-active) .preview-panel {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

#worldcupPanel.worldcup-wallpaper-panel::after {
  content: none !important;
}

#worldcupPanel.worldcup-wallpaper-panel .site-brand-line,
#worldcupPanel.worldcup-wallpaper-panel .panel-nav {
  position: relative;
  z-index: 5;
  margin-left: 12px;
  margin-right: 12px;
}

.worldcup-wallpaper-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #030303;
}

.worldcup-wallpaper-poster,
.worldcup-wallpaper-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.worldcup-wallpaper-poster {
  z-index: 1;
}

.worldcup-wallpaper-video {
  z-index: 2;
}

.worldcup-wallpaper-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 22%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 50% 21%, rgba(255, 218, 125, 0.14), transparent 24%);
  pointer-events: none;
}

.worldcup-wallpaper-shine {
  position: absolute;
  inset: -18%;
  z-index: 4;
  background:
    conic-gradient(from 220deg at 50% 42%, transparent 0 18%, rgba(255, 203, 92, 0.12) 20%, transparent 25% 100%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: wallpaperShine 8s linear infinite;
  pointer-events: none;
}

.worldcup-wallpaper-brand {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 4px;
  transform: translateX(-50%);
  color: #ffe8aa;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.78);
  pointer-events: none;
}

.worldcup-wallpaper-brand span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 226, 156, 0.84);
  border-radius: 50%;
  background: rgba(10, 7, 4, 0.66);
  box-shadow: 0 0 28px rgba(226, 175, 72, 0.26);
  font-size: 24px;
  font-weight: 950;
}

.worldcup-wallpaper-brand strong {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.worldcup-wallpaper-brand em {
  color: rgba(255, 232, 170, 0.72);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.18em;
}

@keyframes wallpaperShine {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.52;
  }

  50% {
    opacity: 0.82;
  }

  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.52;
  }
}

/* Compact top entry text: reduce navigation vertical footprint. */
.worldcup-upgrade .worldcup-mode-tabs,
.worldcup-upgrade .panel-nav,
.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs {
  gap: 4px !important;
  padding: 5px !important;
}

.worldcup-upgrade .mobile-mode-button,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button {
  min-height: 30px !important;
  padding: 0 3px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

.worldcup-upgrade .mobile-mode-button.is-active,
.worldcup-upgrade .mobile-mode-switch .mobile-mode-button.is-active {
  flex: 1.72 1 0 !important;
  min-height: 34px !important;
  padding: 0 5px !important;
}

/* Home recommendation top rail also uses the compact scale. */
.worldcup-upgrade .mobile-mode-switch {
  margin: -4px 0 10px !important;
}

.worldcup-upgrade .mobile-mode-switch .worldcup-mode-tabs {
  height: auto !important;
  min-height: 42px !important;
  padding: 5px !important;
  gap: 4px !important;
}

.worldcup-upgrade .mobile-mode-switch .mobile-mode-button {
  min-height: 30px !important;
  padding: 0 3px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

.worldcup-upgrade .mobile-mode-switch .mobile-mode-button.is-active {
  min-height: 34px !important;
  padding: 0 5px !important;
}

/* Compact review cards and keep both teams in the same vertical order. */
.worldcup-upgrade #reviewPanel .review-plan-list {
  gap: 10px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card {
  padding: 10px 12px 11px !important;
  border-radius: 12px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .match-meta {
  margin-bottom: 7px !important;
  font-size: 12px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .match-title-row {
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) !important;
  gap: 6px !important;
  margin: 0 0 8px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .team-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .team-block b {
  font-size: 18px !important;
  line-height: 1.05 !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .team-crest {
  width: 38px !important;
  height: 30px !important;
  border-radius: 6px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .match-title-row > em {
  width: 58px !important;
  height: 62px !important;
  min-height: 62px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .review-badge {
  width: 64px !important;
  height: 64px !important;
  font-size: 18px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .pick-matrix {
  gap: 6px !important;
  margin: 7px 0 8px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .pick-matrix div {
  min-height: 44px !important;
  padding: 6px 5px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .pick-matrix span {
  font-size: 11px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .pick-matrix strong {
  font-size: 15px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .analysis-compact-row {
  display: none !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .analysis-detail {
  margin-top: 8px !important;
  padding-top: 8px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .analysis-detail span {
  font-size: 12px !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .analysis-detail p {
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Site identity line with circular logo. */
.site-brand-line {
  position: relative;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(240, 201, 121, 0.96);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 18px rgba(240, 201, 121, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.75);
}

.site-brand-line .site-logo {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 226, 150, 0.72);
  border-radius: 50%;
  color: #fff2bd;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 245, 190, 0.38), transparent 25%),
    radial-gradient(circle at 50% 58%, rgba(105, 19, 23, 0.92), rgba(39, 22, 10, 0.96) 68%),
    linear-gradient(180deg, #f1c977, #7b3b1a);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(240, 201, 121, 0.28);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.site-brand-line .site-logo.site-logo-image {
  padding: 0;
  overflow: hidden;
  background: #000;
  border-color: rgba(255, 222, 135, 0.86);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.74),
    0 0 22px rgba(240, 190, 82, 0.34),
    0 5px 14px rgba(0, 0, 0, 0.7);
}

.site-brand-line .site-logo.site-logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.worldcup-upgrade .poster > .site-brand-line {
  margin-top: 22px;
  margin-bottom: 14px;
}

.worldcup-upgrade .upgrade-panel > .site-brand-line {
  margin-top: 0;
  margin-bottom: 14px;
}

.worldcup-upgrade .mobile-mode-switch {
  padding-top: 0 !important;
}

.worldcup-upgrade .mobile-mode-switch::before,
.worldcup-upgrade .upgrade-panel .panel-nav::before,
#worldcupPanel .panel-nav::before {
  content: none !important;
  display: none !important;
}

.worldcup-upgrade .upgrade-panel {
  padding-top: 22px !important;
}

/* Final override: the visual-only World Cup panel must keep a full-screen media layer.
   Older World Cup rules set direct children to relative positioning, which collapses this layer. */
.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel {
  position: relative !important;
  display: none;
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: 22px 0 0 !important;
  overflow: hidden !important;
  background: #030303 !important;
}

.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel.is-active {
  display: block !important;
}

.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel > .worldcup-wallpaper-stage {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel > .site-brand-line,
.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel > .panel-nav {
  position: relative !important;
  z-index: 10 !important;
}

.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel .worldcup-wallpaper-poster,
.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel .worldcup-wallpaper-video {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  animation: none !important;
}

.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel .worldcup-wallpaper-poster {
  z-index: 1 !important;
}

.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel .worldcup-wallpaper-video {
  z-index: 2 !important;
  background: transparent !important;
}

/* Keep the identity line centered on the visual World Cup page and review page. */
.worldcup-upgrade #worldcupPanel.worldcup-wallpaper-panel > .site-brand-line,
.worldcup-upgrade #reviewPanel > .site-brand-line {
  left: auto !important;
  right: auto !important;
  width: fit-content !important;
  max-width: calc(100% - 32px) !important;
  margin: 0 auto 14px !important;
  transform: none !important;
  justify-content: center !important;
  text-align: center !important;
}

.worldcup-upgrade #reviewPanel > .site-brand-line {
  transform: translateX(77px) !important;
}

/* Match the home title block proportion to the other top-level pages. */
.worldcup-upgrade .poster-bg {
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.04) 0 172px, rgba(4, 4, 4, 0.84) 266px, #050505 100%),
    url("./assets/home-hero-bg.png") 56% top / auto 232px no-repeat,
    linear-gradient(180deg, #0d0b08, #050505 62%) !important;
}

.worldcup-upgrade .poster-hero {
  min-height: 104px !important;
  margin: 0 -16px 2px !important;
  padding: 8px 24px 6px !important;
  display: grid !important;
  align-content: center !important;
}

.worldcup-upgrade .poster-hero h2 {
  font-size: 36px !important;
  line-height: 1 !important;
  letter-spacing: 0.07em !important;
}

.worldcup-upgrade .poster-hero h2::before,
.worldcup-upgrade .poster-hero h2::after {
  font-size: 16px !important;
  margin-bottom: 5px !important;
}

.worldcup-upgrade .poster-hero p {
  margin-top: 7px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.worldcup-upgrade .poster-hero p::before,
.worldcup-upgrade .poster-hero p::after {
  width: 36px !important;
  margin-bottom: 4px !important;
}

/* Right-side contact entry on the recommendation page. */
.contact-float-entry {
  position: fixed;
  right: calc(50vw - 206px);
  top: 244px;
  z-index: 30;
  width: 44px;
  min-height: 104px;
  border: 1px solid rgba(244, 198, 107, 0.72);
  border-radius: 999px;
  color: #ffe9ab;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 226, 150, 0.42), transparent 40%),
    linear-gradient(180deg, rgba(151, 29, 34, 0.96), rgba(48, 10, 12, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 194, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.44),
    0 0 24px rgba(205, 60, 48, 0.2);
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px 0;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.contact-float-entry span,
.contact-float-entry strong {
  writing-mode: vertical-rl;
  line-height: 1;
}

.contact-float-entry span {
  font-size: 12px;
  color: rgba(255, 230, 166, 0.72);
}

.contact-float-entry strong {
  font-size: 15px;
}

.contact-overlay[hidden] {
  display: none !important;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background:
    radial-gradient(circle at 52% 34%, rgba(238, 190, 102, 0.16), transparent 32%),
    rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.contact-modal {
  position: relative;
  z-index: 2;
  width: min(348px, calc(100vw - 34px));
  padding: 18px 16px 16px;
  border: 1px solid rgba(244, 198, 107, 0.74);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(242, 201, 121, 0.2), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(151, 29, 34, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(24, 18, 12, 0.98), rgba(5, 5, 4, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 181, 0.08),
    0 28px 72px rgba(0, 0, 0, 0.66);
  animation: comboZoomIn 260ms cubic-bezier(0.18, 0.92, 0.24, 1) both;
}

.contact-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 201, 121, 0.34);
  border-radius: 50%;
  color: #f5d58e;
  background: rgba(0, 0, 0, 0.28);
  font-size: 24px;
  line-height: 1;
}

.contact-modal-head {
  padding-right: 38px;
  text-align: center;
}

.contact-modal-head span {
  display: block;
  color: rgba(240, 201, 121, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.contact-brand-logo {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin: 12px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 154, 0.88);
  border-radius: 50%;
  background: #000;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.7),
    inset 0 0 22px rgba(255, 210, 102, 0.18),
    0 0 42px rgba(232, 175, 66, 0.36),
    0 18px 34px rgba(0, 0, 0, 0.5);
}

.contact-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.contact-modal-head h3 {
  margin: 6px 0 4px;
  color: #ffe7aa;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.contact-modal-head p,
.contact-tip {
  margin: 0;
  color: rgba(244, 222, 181, 0.64);
  font-size: 13px;
  font-weight: 800;
}

.contact-modal-head p {
  max-width: 260px;
  line-height: 1.7;
}

.contact-intro {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(214, 159, 72, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(151, 29, 34, 0.18), transparent 52%),
    rgba(255, 224, 150, 0.045);
}

.contact-intro strong {
  display: block;
  color: #ffe39f;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.contact-intro p {
  margin: 7px 0 0;
  color: rgba(250, 231, 190, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  color: rgba(240, 201, 121, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(214, 159, 72, 0.44);
  border-radius: 11px;
  color: #fff1c4;
  background: rgba(0, 0, 0, 0.34);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  outline: none;
}

.contact-form input,
.contact-form select {
  height: 42px;
  padding: 0 12px;
}

.contact-form textarea {
  height: 74px;
  padding: 10px 12px;
  resize: none;
}

.contact-submit {
  height: 46px;
  border: 1px solid rgba(255, 222, 145, 0.76);
  border-radius: 13px;
  color: #4b0e12;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 245, 192, 0.54), transparent 55%),
    linear-gradient(180deg, #ffe29a, #bc7b2e);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.contact-submit:disabled {
  cursor: default;
  opacity: 0.78;
}

.contact-form.is-submitted label {
  opacity: 0.42;
}

.contact-success[hidden] {
  display: none;
}

.contact-success {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(122, 222, 151, 0.56);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0, rgba(122, 222, 151, 0.24), transparent 46%),
    linear-gradient(135deg, rgba(27, 124, 70, 0.3), rgba(12, 14, 9, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 190, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.28);
  animation: contactSuccessPop 280ms cubic-bezier(0.18, 0.92, 0.24, 1) both;
}

.contact-success b {
  color: #d9ffcf;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.contact-success span {
  color: rgba(237, 255, 219, 0.78);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
}

@keyframes contactSuccessPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lead-admin-card {
  width: min(340px, calc(100% - 28px));
  margin: 16px auto 0;
  padding: 14px;
  border: 1px solid rgba(214, 159, 72, 0.5);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.36);
}

.lead-admin-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lead-admin-card h3 {
  margin: 0;
  color: #ffe4a0;
  font-size: 20px;
}

.lead-admin-card button {
  border: 1px solid rgba(240, 201, 121, 0.36);
  border-radius: 999px;
  color: #f0c979;
  background: rgba(0, 0, 0, 0.24);
  font-weight: 900;
}

.lead-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.lead-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(214, 159, 72, 0.32);
  border-radius: 12px;
  color: #f7e4b8;
  background: rgba(0, 0, 0, 0.24);
}

.lead-list strong {
  color: #fff1c4;
  font-size: 16px;
}

.lead-list span,
.lead-list p,
.lead-empty {
  margin: 0;
  color: rgba(244, 222, 181, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

/* Brand logo image override. */
.site-brand-line {
  gap: 12px !important;
}

.site-brand-line .site-logo.site-logo-image {
  width: 46px !important;
  height: 46px !important;
  flex-basis: 46px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #000 !important;
}

.site-brand-line .site-logo.site-logo-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #000 !important;
}

.worldcup-wallpaper-brand .wallpaper-logo-image {
  display: grid !important;
  place-items: center !important;
  width: 86px !important;
  height: 86px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 226, 156, 0.88) !important;
  border-radius: 50% !important;
  background: #000 !important;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.58),
    0 0 38px rgba(226, 175, 72, 0.38) !important;
}

.worldcup-wallpaper-brand .wallpaper-logo-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #000 !important;
}

/* Team names: stack under flags so long country names can show fully. */
.worldcup-upgrade .match-title-row {
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) !important;
  align-items: start !important;
}

.worldcup-upgrade .match-title-row .team-block {
  display: grid !important;
  grid-auto-rows: auto !important;
  justify-items: center !important;
  align-items: start !important;
  align-self: start !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.worldcup-upgrade .match-title-row .team-block b,
.worldcup-upgrade #reviewPanel .review-plan-card .team-block b {
  display: -webkit-box !important;
  max-width: 116px !important;
  min-height: 2.3em !important;
  color: #fff5d4 !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: unset !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.worldcup-upgrade .match-title-row .team-crest,
.worldcup-upgrade #reviewPanel .review-plan-card .team-crest {
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
}

.worldcup-upgrade #reviewPanel .review-plan-card .team-block {
  height: auto !important;
  min-height: 118px !important;
  gap: 8px !important;
}
