:root {
  --bg-a: #f0f6ff;
  --bg-b: #dce9ff;
  --text: #0d1b2a;
  --muted: #5c6c83;
  --glass: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.7);
  --primary: #007aff;
  --primary-soft: #5ac8fa;
  --accent: #34c759;
  --gold: #ff9f0a;
  --card-shadow: 0 14px 30px rgba(23, 53, 93, 0.18);
  --card-shadow-hover: 0 18px 36px rgba(23, 53, 93, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(90, 200, 250, 0.16), transparent 28%),
    radial-gradient(circle at 82% 88%, rgba(0, 122, 255, 0.12), transparent 30%),
    linear-gradient(160deg, #f4f8ff 0%, #e8f0fc 55%, #dfe9fa 100%);
  min-height: 100vh;
  padding: 24px 18px 44px;
  position: relative;
  overflow-x: hidden;
}


body::before,
body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  left: -80px;
  top: -70px;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.2), rgba(90, 200, 250, 0));
}

body::after {
  right: -90px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.18), rgba(0, 122, 255, 0));
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.hero {
  text-align: center;
  margin-bottom: 2px;
  padding: 8px 10px 2px;
}

.kicker {
  margin: 0;
  color: #2e4f7c;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.1;
  background: linear-gradient(
    92deg,
    #0a84ff 0%,
    #5e5ce6 23%,
    #bf5af2 46%,
    #ff375f 66%,
    #ff9f0a 85%,
    #30d158 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}

.hero p {
  margin: 0;
  color: #3f5e86;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.top-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.25fr 1fr;
}

.panel {
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  padding: 18px;
  backdrop-filter: blur(30px) saturate(145%);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(35, 66, 110, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.panel::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  height: 34%;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48) 0%,
    rgba(255, 255, 255, 0.15) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 213, 255, 0.18), rgba(120, 213, 255, 0));
  pointer-events: none;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.panel h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 760;
  letter-spacing: -0.01em;
}

.badge,
.live-dot {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge {
  color: #ffffff;
  background: linear-gradient(95deg, var(--primary), var(--primary-soft));
}

.live-dot {
  color: #ffffff;
  background: linear-gradient(95deg, #ff9500, #ffb340);
}

.title-switch-row {
  margin-top: 18px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
  padding: 0 6px;
  position: relative;
  z-index: 1;
}

.title-switch-row h3 {
  text-align: center;
}

.switch-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  color: #1f314f;
  font-size: 17px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 12px rgba(33, 65, 114, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.switch-btn:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 16px rgba(33, 65, 114, 0.2);
}

.prediction-panel h3,
.champion-panel h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.group-selector {
  margin: 12px auto 14px;
  max-width: 92%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.group-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  grid-auto-rows: minmax(32px, auto);
  align-items: start;
  max-height: 108px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(151, 193, 210, 0.212), rgba(251, 250, 252, 0.366));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -8px 14px rgba(160, 184, 215, 0.12);
  position: relative;
}

.group-btn {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  color: #375275;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.8);
}

.group-btn.is-active {
  background: linear-gradient(95deg, rgba(0, 122, 255, 0.95), rgba(90, 200, 250, 0.95));
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.group-selector-grid::-webkit-scrollbar {
  width: 8px;
}

.group-selector-grid::-webkit-scrollbar-thumb {
  background: rgba(88, 120, 164, 0.36);
  border-radius: 999px;
}

.predict-btn {
  border: 0;
  cursor: pointer;
}

.round-btn {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(140deg, var(--primary), #4d8dff);
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.round-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(142, 222, 255, 0.85) 90deg,
    rgba(123, 174, 255, 0.95) 190deg,
    rgba(255, 255, 255, 0) 300deg
  );
  filter: blur(1px);
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: predict-ring-spin 0.8s linear infinite paused;
  pointer-events: none;
}

.round-btn::after {
  content: "";
  position: absolute;
  width: 56%;
  height: 34%;
  left: 22%;
  top: 12%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(1px);
}

.round-btn.is-loading::before {
  opacity: 1;
  animation-play-state: running;
}

.round-btn:hover {
  transform: translateY(-1px);
}

.round-btn:disabled {
  opacity: 0.68;
}

.result-wrap {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  transition: opacity 0.25s ease;
}

.unrevealed-value strong {
  opacity: 0;
  color: transparent;
  user-select: none;
}

.result-card,
.analysis {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.52));
  padding: 11px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.result-card p,
.analysis p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.result-card strong,
.analysis strong {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.55;
  display: block;
  min-height: 1.55em;
}

.analysis {
  grid-column: 1 / -1;
}

.analysis strong {
  min-height: 3.1em;
}

.analysis-top {
  margin-top: 14px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.odds-panel {
  margin-top: 2px;
}

.odds-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.odds-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.odds-market {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.odds-label {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
}

.odds-tip {
  font-size: 12px;
  color: var(--muted);
}

.odds-action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.odds-value {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 760;
  color: #15345e;
  letter-spacing: -0.01em;
}

.bet-btn {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(95deg, var(--gold), #ff7a00);
  border-radius: 999px;
  padding: 8px 15px;
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.24);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.bet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.32);
}

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

  .sub {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 14px;
  }

  .round-btn {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }

  .result-wrap {
    grid-template-columns: 1fr;
  }

  .odds-list li {
    gap: 8px;
  }

  .odds-list {
    grid-template-columns: 1fr;
  }

  .odds-action {
    justify-content: space-between;
  }
}

@keyframes predict-ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
