:root {
  --mini-green: #078445;
  --mini-green-dark: #073820;
  --mini-lime: #dfff3f;
  --mini-bg: #eef5f0;
  --mini-soft: #f4faf6;
  --mini-card: #ffffff;
  --mini-text: #14251e;
  --mini-muted: #60716a;
  --mini-border: #dce8e1;
  --mini-shadow: 0 7px 18px rgba(19, 89, 50, 0.08);
  --mini-radius: 10px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--mini-text);
  background: #dfeae4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

button,
input {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(7, 132, 69, 0.34);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.phone-stage {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--mini-bg);
  box-shadow: 0 0 0 1px rgba(7, 56, 32, 0.08);
}

.miniapp-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--mini-bg);
}

.app-page {
  display: none;
}

.app-page.active {
  display: block;
}

.page-state,
.empty-state {
  margin-top: 9px;
  padding: 12px 9px;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  color: #53645b;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.splash-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #03170d;
}

.splash-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.splash-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 12, 0.46), rgba(0, 20, 12, 0.08) 48%, rgba(0, 20, 12, 0.22));
}

.splash-content {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 143px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-brand-row {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 46px;
  height: 46px;
  margin-right: 11px;
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.26);
}

.splash-title {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 11px rgba(0, 0, 0, 0.36);
  white-space: nowrap;
}

.splash-subtitle {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 3px 9px rgba(0, 0, 0, 0.32);
}

.home-page {
  min-height: 100vh;
  padding: 8px 10px 75px;
  background: var(--mini-bg);
}

.hero-shell {
  margin: -8px -10px 0;
  padding: 8px 10px 0;
  background: var(--mini-bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 41px;
  padding: 0 3px;
}

.brand {
  min-width: 0;
  flex: 1;
}

.brand-main {
  display: flex;
  min-width: 0;
  align-items: center;
}

.brand-logo {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  border-radius: 6px;
}

.brand-name {
  overflow: hidden;
  color: #143323;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle,
.update-text {
  color: #61726a;
  font-size: 12px;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 1px;
  margin-left: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-text {
  flex: 0 0 auto;
  min-width: 0;
  margin-left: 8px;
  margin-right: 6px;
  text-align: right;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

.banner-swiper {
  height: 196px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: 0 10px 21px rgba(0, 65, 34, 0.2);
}

.banner {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 19px 17px 15px;
  color: #fff;
  background: #04291b;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  object-fit: cover;
}

.stadium-light {
  position: absolute;
  top: 33px;
  width: 86px;
  height: 25px;
  border-radius: 25px;
  opacity: 0.2;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0));
}

.light-left {
  left: -12px;
}

.light-right {
  right: -12px;
}

.field-grid {
  position: absolute;
  left: -15px;
  right: -15px;
  bottom: -10px;
  height: 77px;
  opacity: 0.82;
  background: linear-gradient(90deg, rgba(3, 27, 18, 0.84), rgba(6, 50, 31, 0.42) 52%, rgba(33, 152, 56, 0.22));
}

.banner-copy {
  position: relative;
  z-index: 2;
  width: 74%;
}

.banner-title {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.12;
}

.banner-subtitle {
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
}

.banner-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(246px, 100%);
  margin-top: 16px;
  gap: 6px;
}

.banner-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 31px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.13);
}

.banner-button.primary {
  color: #fff;
  background: linear-gradient(180deg, #12a65d, #087a40);
}

.banner-button.secondary {
  color: #173d17;
  background: var(--mini-lime);
}

.banner-ball {
  position: absolute;
  right: -11px;
  bottom: 9px;
  z-index: 1;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 9px 17px rgba(0, 0, 0, 0.22);
}

.ball-image {
  width: 100%;
  height: 100%;
}

.section-card {
  margin-top: 9px;
  padding: 10px 10px 11px;
  border: 1px solid rgba(14, 99, 54, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--mini-shadow);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.title-wrap {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.section-title-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 6px;
}

.section-title {
  margin: 0;
  color: #101f19;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
}

.section-action {
  flex: 0 0 auto;
  margin-right: 4px;
  color: #087d43;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0a6f3e;
  background: #e8f7ee;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.dark {
  color: #fff;
  background: #0c7142;
}

.pill.gray {
  color: #596661;
  background: #eef2f0;
}

.pill.finished {
  color: #3d5c4b;
  background: #edf3ef;
}

.pill.scheduled {
  color: #087d43;
  background: #e7f8ef;
}

.hot-swiper {
  height: 96px;
}

.hot-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 10px 13px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, #08351f, #064229 62%, #0d6a39);
}

.hot-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  object-fit: cover;
}

.hot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 27, 18, 0.88), rgba(6, 50, 31, 0.62) 56%, rgba(6, 50, 31, 0.16));
}

.hot-card-mark {
  position: absolute;
  right: -17px;
  bottom: -28px;
  z-index: 2;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  opacity: 0.82;
  object-fit: cover;
}

.hot-field-lines {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -20px;
  height: 54px;
  opacity: 0.5;
  background: linear-gradient(180deg, rgba(40, 155, 57, 0), rgba(46, 142, 48, 0.7));
}

.hot-meta,
.hot-teams,
.hot-note {
  position: relative;
  z-index: 3;
}

.hot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.hot-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  text-align: center;
}

.team-side {
  display: flex;
  width: 119px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.team-side span:last-child,
.team-side span:first-child:not(.team-badge) {
  overflow: hidden;
  max-width: 75px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-badge {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  margin-right: 6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #0d6b3b;
  background: #fff;
  font-size: 12px;
  line-height: 23px;
  text-align: center;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.18);
}

.team-badge.away {
  margin-right: 0;
  margin-left: 6px;
  color: #0b4b33;
  background: #e7fff0;
}

.versus {
  flex: 0 0 auto;
  color: var(--mini-lime);
  font-size: 22px;
  font-weight: 800;
}

.hot-note {
  overflow: hidden;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-strip {
  display: flex;
  overflow-x: auto;
  padding-bottom: 2px;
  gap: 8px;
  scrollbar-width: none;
}

.match-strip::-webkit-scrollbar,
.schedule-card-strip::-webkit-scrollbar,
.calculator-match-strip::-webkit-scrollbar,
.result-list-scroll::-webkit-scrollbar,
.tabs::-webkit-scrollbar,
.rule-filter-scroll::-webkit-scrollbar {
  display: none;
}

.match-card {
  position: relative;
  display: inline-flex;
  flex: 0 0 122px;
  height: 85px;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 7px 7px;
  border: 1px solid #dfe9e3;
  border-radius: 7px;
  background: #fbfdfb;
}

.match-card.featured {
  border-color: #34c26c;
  background: #f4fff7;
  box-shadow: 0 7px 13px rgba(8, 122, 64, 0.12);
}

.match-meta-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.match-date {
  flex: 0 0 auto;
  height: 15px;
  padding: 0 5px;
  border-radius: 999px;
  color: #087d43;
  background: #e7f8ef;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
}

.match-meta {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #50645b;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.match-team-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.quick-team-logo {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.match-team {
  overflow: hidden;
  width: 41px;
  color: #17231e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-score {
  color: #087d43;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.match-card .pill {
  align-self: stretch;
  height: 16px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 16px;
}

.entry-grid {
  display: flex;
  padding: 2px 1px 0;
}

.entry-card {
  display: block;
  width: 25%;
  min-width: 0;
  padding: 4px 2px 0;
  border-radius: 6px;
  background: #fff;
}

.entry-card:active,
.entry-card.active {
  background: #f1fbf5;
}

.entry-icon-img {
  width: 33px;
  height: 33px;
  margin: 0 auto 4px;
}

.entry-title,
.entry-desc {
  display: block;
  text-align: center;
}

.entry-title {
  color: #111f19;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.16;
}

.entry-desc {
  margin-top: 2px;
  color: #65736d;
  font-size: 10px;
  line-height: 1.2;
}

.safe-note {
  margin: 12px 4px 0;
  color: #78847f;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.articles-page {
  min-height: 100vh;
  padding: 12px 12px 75px;
  background: var(--mini-bg);
}

.article-hero {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #073820, #0d7945 58%, #22a45b);
}

.article-hero-title {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.1;
}

.article-hero-subtitle {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.article-hero-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #0c4228;
  background: var(--mini-lime);
  font-size: 21px;
  font-weight: 900;
  line-height: 48px;
  text-align: center;
}

.tabs {
  display: flex;
  overflow-x: auto;
  margin-top: 12px;
  gap: 7px;
  white-space: nowrap;
}

.tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 13px;
  border: 1px solid #dbe7df;
  border-radius: 999px;
  color: #53645b;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.tab.active {
  border-color: #0b7a45;
  color: #fff;
  background: #0b7a45;
}

.article-list {
  margin-top: 9px;
}

.article-card {
  width: 100%;
  margin-top: 9px;
  border: 1px solid #e0ebe4;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(14, 84, 49, 0.06);
}

.article-card.active {
  border-color: #9fd6b7;
  background: #f6fbf8;
}

.article-card-button {
  display: flex;
  width: 100%;
  align-items: stretch;
  padding: 11px;
  text-align: left;
}

.article-thumb {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  margin-right: 9px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.26)), linear-gradient(145deg, #0b7844, #35a85b);
  font-size: 21px;
  font-weight: 900;
  line-height: 54px;
  text-align: center;
}

.article-info {
  min-width: 0;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.muted {
  color: #68766f;
}

.article-meta .muted {
  flex: 0 0 auto;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
}

.article-title {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #13251d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #60716a;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.load-more-row {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #dbe7df;
  border-radius: 7px;
  color: #0b7041;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.load-more-row.muted {
  color: #78847f;
  font-weight: 800;
}

.article-detail {
  margin-top: 12px;
}

.detail-title {
  margin: 0;
  color: #13251d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.detail-content {
  margin: 8px 0 0;
  color: #53645b;
  font-size: 13px;
  line-height: 1.65;
}

.detail-points {
  margin-top: 9px;
  padding: 8px;
  border-radius: 7px;
  background: #f3faf6;
}

.detail-point {
  display: flex;
  align-items: flex-start;
  margin-top: 6px;
}

.detail-point:first-child {
  margin-top: 0;
}

.detail-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #0b7a45;
}

.detail-point-text {
  min-width: 0;
  flex: 1;
  color: #314139;
  font-size: 12px;
  line-height: 1.45;
}

.feature-page {
  min-height: 100vh;
  padding: 8px 12px 48px;
  background: var(--mini-soft);
}

.feature-page.calculator-page {
  padding-bottom: 112px;
}

.feature-shell-header {
  position: relative;
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
}

.header-back {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 43px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #33453c;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
}

.header-title {
  color: #111d18;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.header-source {
  position: absolute;
  right: 8px;
  color: #6d7a73;
  font-size: 9px;
  font-weight: 800;
}

.feature-segmented-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 352px;
  margin: 0 auto;
  padding: 3px;
  gap: 2px;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(30, 68, 48, 0.06);
}

.feature-segment {
  height: 27px;
  border-radius: 999px;
  color: #33453c;
  font-size: 12px;
  font-weight: 900;
  line-height: 27px;
  text-align: center;
}

.feature-segment.active {
  color: #fff;
  background: var(--mini-green);
}

.feature-content {
  display: none;
  margin-top: 11px;
}

.feature-content.active {
  display: block;
}

.schedule-filter-row,
.result-filter-row,
.rule-filter-row {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 6px;
}

.filter-chip {
  flex: 0 0 auto;
  min-width: 43px;
  height: 27px;
  padding: 0 11px;
  border: 1px solid #dde8e2;
  border-radius: 999px;
  color: #51645b;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 25px;
  text-align: center;
}

.filter-chip.active {
  border-color: var(--mini-green);
  color: #fff;
  background: var(--mini-green);
}

.filter-spacer {
  flex: 1;
}

.filter-action {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 44px;
  height: 26px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #51645b;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.filter-icon {
  font-size: 11px;
  font-weight: 900;
  transform: rotate(90deg);
}

.select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.select-pill {
  display: flex;
  height: 27px;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 1px solid #e0ebe5;
  border-radius: 999px;
  color: #33453c;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.select-pill span {
  color: #718078;
  font-size: 12px;
}

.schedule-card-strip,
.calculator-match-strip {
  display: flex;
  overflow-x: auto;
  margin: 9px -12px 0;
  padding: 0 12px 2px;
  gap: 6px;
}

.schedule-compact-card,
.calculator-match-card {
  display: inline-block;
  flex: 0 0 79px;
  min-height: 73px;
  padding: 5px 5px 6px;
  border: 1px solid #e2ede7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 9px rgba(34, 77, 52, 0.05);
}

.schedule-compact-card.active,
.calculator-match-card.active {
  border-color: #08a858;
  box-shadow: 0 5px 11px rgba(8, 148, 75, 0.14);
}

.compact-meta {
  display: flex;
  justify-content: space-between;
  color: #708078;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.compact-meta span:first-child {
  color: #07934a;
}

.compact-versus {
  display: grid;
  grid-template-columns: 1fr 15px 1fr;
  align-items: center;
  gap: 3px;
  margin-top: 9px;
  color: #18251f;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.schedule-team-logo {
  width: 21px;
  height: 21px;
  margin: 0 auto;
  object-fit: contain;
}

.compact-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 5px;
  color: #17251f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.compact-teams span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 17px;
  margin-top: 5px;
  padding: 0 6px;
  border-radius: 999px;
  color: #52645b;
  background: #edf3ef;
  font-size: 10px;
  font-weight: 900;
  line-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-badge.fresh {
  color: var(--mini-green);
  background: #e8f7ee;
}

.schedule-card-dots {
  display: flex;
  height: 15px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.schedule-card-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #d4ddda;
}

.schedule-card-dots .active {
  width: 11px;
  background: #07934a;
}

.selected-match-panel,
.result-review-panel,
.selected-option-panel {
  margin-top: 11px;
  padding: 12px;
  border: 1px solid #dce8e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 16px rgba(30, 68, 48, 0.08);
}

.schedule-detail-panel {
  position: relative;
  min-height: 450px;
  padding: 42px 12px 11px;
  border-color: #bce6cd;
  border-width: 1px;
  border-radius: 9px;
  box-shadow: 0 6px 15px rgba(26, 74, 45, 0.06);
}

.panel-label {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--mini-green);
  font-size: 10px;
  font-weight: 900;
  line-height: 20px;
}

.schedule-detail-panel .panel-label {
  position: absolute;
  top: 12px;
  left: 12px;
}

.favorite-mark {
  position: absolute;
  top: 14px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #bdc8c3;
  font-size: 9px;
  line-height: 1.1;
}

.favorite-mark span:first-child {
  font-size: 22px;
  line-height: 18px;
}

.schedule-detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding-right: 31px;
  color: #14211a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.schedule-detail-title-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-detail-title-row .versus {
  color: var(--mini-green);
  font-size: 17px;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  color: #53665d;
  font-size: 11px;
  font-weight: 800;
}

.schedule-detail-meta {
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 11px;
}

.status-tag {
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--mini-green);
  background: #e9f7ef;
  font-size: 10px;
  line-height: 18px;
}

.status-tag.finished {
  color: #3d5c4b;
  background: #edf3ef;
}

.info-title {
  margin: 14px 0 0;
  color: #111d18;
  font-size: 14px;
  font-weight: 900;
}

.schedule-rank-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  min-height: 51px;
  align-items: center;
  margin-top: 8px;
  padding: 0 9px;
  border: 1px solid #e1ebe6;
  border-radius: 7px;
  background: #fcfefd;
}

.schedule-rank-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #84918b;
  font-size: 10px;
  font-weight: 800;
}

.rank-number {
  margin: 2px 0;
  color: #17241d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.metric-bars {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.schedule-rank-bars {
  width: 26px;
  height: 26px;
  align-items: center;
  border-radius: 50%;
  background: #eefaf3;
}

.metric-bars span {
  width: 5px;
  height: 13px;
  border-radius: 999px;
  background: var(--mini-green);
}

.schedule-form-head {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  margin-top: 11px;
  color: #7d8984;
  font-size: 11px;
  font-weight: 900;
}

.schedule-form-head span:nth-child(n + 2) {
  text-align: center;
}

.schedule-form-dots {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  margin-top: 5px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e5ede8;
}

.form-dot-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.form-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.form-dot.win,
.trend-point.win {
  background: #22b969;
}

.form-dot.draw,
.trend-point.draw {
  background: #cdd5d2;
}

.form-dot.lose,
.trend-point.lose {
  background: #f05256;
}

.schedule-trend-list {
  margin-top: 7px;
}

.schedule-trend-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  min-height: 24px;
  align-items: center;
  color: #17241d;
  font-size: 12px;
  font-weight: 900;
}

.trend-points {
  display: flex;
  gap: 7px;
}

.trend-point {
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.safe-note.inner {
  margin: 9px 0 0;
  text-align: left;
}

.result-filter-row {
  gap: 5px;
  margin-top: 1px;
  white-space: nowrap;
}

.result-filter-row .filter-chip {
  display: inline-flex;
  min-width: 41px;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  font-size: 11px;
  line-height: 22px;
}

.result-date-icon {
  position: relative;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.78;
}

.result-date-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 2px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
}

.result-list-compact {
  margin-top: 4px;
}

.result-list-scroll {
  max-height: 187px;
  overflow-y: auto;
}

.result-compact-row {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  margin-top: 5px;
  padding: 5px 7px;
  border: 1px solid #e0ebe5;
  border-radius: 5px;
  background: #fff;
  text-align: left;
}

.result-compact-row.active {
  border-color: var(--mini-green);
  box-shadow: 0 4px 8px rgba(7, 132, 69, 0.08);
}

.result-score-badge {
  flex: 0 0 auto;
  width: 39px;
  height: 27px;
  border-radius: 4px;
  color: #fff;
  background: var(--mini-green);
  font-size: 15px;
  font-weight: 900;
  line-height: 27px;
  text-align: center;
}

.result-row-main {
  min-width: 0;
  flex: 1;
  margin-left: 7px;
}

.result-meta {
  display: block;
  overflow: hidden;
  color: #60726a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  column-gap: 4px;
  overflow: hidden;
  margin-top: 2px;
  color: #12231b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.result-team-side,
.result-review-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
}

.result-team-side span,
.result-review-team span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-team-logo,
.result-team-placeholder {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.result-team-placeholder {
  opacity: 0;
}

.result-vs {
  margin: 0 4px;
  color: #3d4d45;
  font-size: 11px;
  font-weight: 900;
}

.result-review-panel {
  margin-top: 7px;
  min-height: 350px;
  padding: 13px;
  border-radius: 9px;
}

.result-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-review-heading .result-review-label {
  height: auto;
  padding: 0;
  color: #111d18;
  background: transparent;
  font-size: 14px;
  line-height: 1.25;
}

.result-review-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  margin-top: 6px;
  color: #111d18;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.result-review-team-logo,
.result-review-team-placeholder {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.result-review-score {
  color: #111d18;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.result-review-meta {
  margin-top: 3px;
  color: #52645b;
  font-size: 11px;
  line-height: 1.35;
}

.timeline-box {
  margin-top: 6px;
  padding: 9px;
  border: 1px solid #e1ebe5;
  border-radius: 5px;
  background: #fbfdfc;
}

.timeline-row {
  display: grid;
  grid-template-columns: 26px 8px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  color: #52645b;
  font-size: 12px;
  line-height: 1.35;
}

.timeline-row + .timeline-row {
  margin-top: 5px;
}

.timeline-minute {
  color: var(--mini-green);
  font-weight: 900;
}

.timeline-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mini-green);
  box-shadow: 0 0 0 3px #edf8f2;
}

.timeline-event {
  display: flex;
  min-width: 0;
  align-items: center;
}

.timeline-text {
  overflow: hidden;
  min-width: 0;
  color: #52645b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-row {
  margin-top: 7px;
}

.stat-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  color: #405249;
  font-size: 12px;
  font-weight: 900;
}

.stat-head span:nth-child(2) {
  color: #52645b;
  text-align: center;
}

.stat-head span:last-child {
  text-align: right;
}

.stat-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  height: 7px;
  margin-top: 4px;
}

.stat-side {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f0ec;
}

.stat-side.left {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.stat-side.right {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.stat-divider {
  width: 1px;
  height: 6px;
  background: #cbd8d1;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--mini-green);
}

.stat-side.left .stat-fill {
  margin-left: auto;
}

.calculator-layout,
[data-feature-id="calculator"].active {
  padding-bottom: 16px;
}

.calculator-step {
  margin-top: 12px;
}

.calculator-step:first-child {
  margin-top: 0;
}

.step-title {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--mini-green);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.step-title span {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  border-radius: 50%;
  color: #fff;
  background: var(--mini-green);
  font-size: 12px;
}

.calculator-match-card {
  flex-basis: 107px;
  min-height: 94px;
  padding: 8px 6px;
}

.calculator-team-logo {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  object-fit: contain;
}

.team-token {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--mini-green);
  background: #e8f7ee;
  font-size: 12px;
  font-weight: 900;
}

.team-token.away {
  color: #c14335;
  background: #fff0ee;
}

.team-mark {
  border: 1px solid rgba(7, 132, 69, 0.18);
  box-shadow: inset 0 -2px 0 rgba(7, 132, 69, 0.08), 0 2px 5px rgba(28, 68, 45, 0.08);
}

.market-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.market-tab {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid #dde8e2;
  border-radius: 5px;
  color: #33453c;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.market-tab.active {
  border-color: var(--mini-green);
  color: #fff;
  background: var(--mini-green);
}

.market-count {
  margin-left: 4px;
  color: var(--mini-green);
  font-size: 10px;
  font-weight: 900;
}

.market-tab.active .market-count {
  color: #fff;
}

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

.odds-option {
  position: relative;
  display: flex;
  min-height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 5px;
  border: 1px solid #e0ebe5;
  border-radius: 7px;
  color: #13251d;
  background: #fff;
  text-align: center;
}

.odds-option.selected {
  border-color: var(--mini-green);
  color: var(--mini-green);
  box-shadow: 0 5px 11px rgba(7, 132, 69, 0.12);
}

.option-label {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.option-value {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  font-weight: 900;
}

.selected-corner {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 25px 25px;
  border-color: transparent transparent var(--mini-green) transparent;
}

.selected-corner span {
  position: absolute;
  right: 3px;
  bottom: -25px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.odds-option.selected .selected-corner {
  display: block;
}

.market-note-panel {
  min-height: 36px;
  margin-top: 8px;
  padding: 10px 11px;
  border: 1px solid #dce9e2;
  border-radius: 6px;
  background: #fff;
}

.market-note-row {
  display: block;
  color: #5a6b62;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.market-note-title {
  display: inline;
  margin-right: 6px;
  color: var(--mini-green);
  font-weight: 900;
}

.selected-option-panel {
  padding: 9px 10px;
  border-radius: 7px;
  box-shadow: 0 4px 9px rgba(30, 68, 48, 0.05);
}

.selected-title {
  margin: 0;
  color: #13251d;
  font-size: 11px;
  font-weight: 900;
}

.selected-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 41px 34px;
  gap: 4px;
  margin-top: 6px;
  color: #415349;
  font-size: 10px;
  font-weight: 800;
}

.selected-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simulation-dock {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  max-width: 430px;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 9px;
  align-items: end;
  padding: 9px 20px calc(9px + env(safe-area-inset-bottom)) 12px;
  color: #fff;
  background: linear-gradient(180deg, #078b47, #079b50);
  box-shadow: 0 -7px 17px rgba(7, 90, 48, 0.22);
  transform: translateX(-50%);
}

.simulation-summary {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.simulation-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 6px;
}

.simulation-field {
  min-width: 0;
}

.simulation-field-label {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.stepper {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  height: 23px;
  align-items: center;
  margin-top: 2px;
}

.stepper button {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: var(--mini-green);
  background: #eaf8ef;
  font-size: 13px;
  font-weight: 900;
  line-height: 19px;
}

.stepper input {
  width: 100%;
  height: 23px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.simulation-result {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 4px;
  text-align: right;
}

.simulation-result-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.simulation-result-value {
  margin-top: 2px;
  color: #ffea00;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.rule-filter-scroll {
  overflow-x: auto;
  white-space: nowrap;
}

.rule-filter-scroll .rule-filter-row {
  display: inline-flex;
  min-width: 100%;
  gap: 6px;
}

.rules-card-stack {
  margin-top: 8px;
}

.rule-accordion-card {
  margin-top: 9px;
  padding: 14px 12px 12px;
  border: 1px solid #dce8e1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(30, 68, 48, 0.05);
}

.rule-accordion-card.open {
  border-color: var(--mini-green);
  box-shadow: 0 7px 16px rgba(7, 132, 69, 0.12);
}

.rule-card-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.rule-detail-title {
  min-width: 0;
  flex: 1;
  color: #13251d;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.rule-open-dot {
  display: flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #0a9650, var(--mini-green));
  box-shadow: 0 3px 7px rgba(7, 132, 69, 0.2);
}

.rule-open-icon {
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 1px;
  transform: rotate(45deg);
}

.rule-accordion-card.open .rule-open-icon,
.faq-row.open .faq-chevron {
  transform: rotate(225deg);
}

.rule-detail-summary {
  margin: 11px 0 0;
  color: #52635a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.52;
}

.rule-expanded {
  margin-top: 9px;
}

.rule-subtitle {
  margin: 11px 0 0;
  color: var(--mini-green);
  font-size: 15px;
  font-weight: 900;
}

.rule-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.rule-example {
  min-height: 70px;
  overflow: hidden;
  border: 1px solid #dde7e2;
  border-radius: 7px;
  color: #13251d;
  background: #fff;
  text-align: center;
}

.rule-example.away {
  border-color: #f0beb8;
  background: #fffafa;
}

.rule-example-label {
  height: 24px;
  color: #13251d;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 24px;
}

.rule-example.home .rule-example-label {
  color: #fff;
  background: var(--mini-green);
}

.rule-example-score {
  margin-top: 7px;
  color: #111d18;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.rule-example-desc {
  margin-top: 4px;
  padding: 0 4px 6px;
  color: #7a8781;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.rule-step {
  display: flex;
  min-height: 29px;
  align-items: center;
  margin-top: 6px;
  padding: 0 9px;
  border: 1px solid #e0ebe5;
  border-radius: 6px;
  color: #405249;
  background: #fbfdfc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.42;
}

.rule-step-dot {
  display: flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  border-radius: 50%;
  color: #fff;
  background: var(--mini-green);
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
}

.rule-reminder {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--mini-green);
  background: #edf7f1;
  font-size: 12px;
  font-weight: 900;
}

.faq-preview-stack {
  margin-top: 9px;
}

.faq-row {
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #e1e9e5;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 9px rgba(30, 68, 48, 0.04);
}

.faq-row.open {
  border-color: #bfe8cf;
  box-shadow: 0 5px 10px rgba(7, 132, 69, 0.08);
}

.faq-question-row {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  text-align: left;
}

.faq-question {
  min-width: 0;
  flex: 1;
  color: #13251d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.faq-chevron {
  flex: 0 0 auto;
  color: #8a958f;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.faq-answer {
  margin: 0;
  padding-bottom: 12px;
  color: #52645b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.48;
}

.rules-safe-note,
.calculator-safe-note {
  margin-top: 9px;
  color: #8b9791;
  font-size: 11px;
  line-height: 1.5;
}

.bottom-tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 10;
  display: grid;
  width: 100%;
  max-width: 430px;
  grid-template-columns: repeat(2, 1fr);
  padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(8, 115, 62, 0.08);
  background: #fff;
  box-shadow: 0 -6px 16px rgba(19, 89, 50, 0.08);
  transform: translateX(-50%);
}

.miniapp-shell.feature-mode .bottom-tabbar {
  display: none;
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #66726d;
  font-size: 11px;
  font-weight: 800;
}

.tabbar-item.active {
  color: #08733e;
}

.tabbar-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (min-width: 760px) {
  body {
    padding: 18px 0;
  }

  .phone-stage,
  .miniapp-shell,
  .splash-page {
    min-height: calc(100vh - 36px);
    border-radius: 20px;
    overflow: hidden;
  }

  .splash-image {
    height: calc(100vh - 36px);
  }

  .bottom-tabbar,
  .simulation-dock {
    width: 100%;
    max-width: 430px;
  }
}
