:root {
  --bg: #0d0352;
  --app: #140a4a;
  --panel: #1b0f5c;
  --gold: #f1bf45;
  --gold-2: #fdd132;
  --text: #fff;
  --muted: #d6d0ff;
  --login: linear-gradient(180deg, #7a6bff, #4c3ab0);
  --reg: linear-gradient(180deg, #ff7a8a, #c62828);
  --line: rgba(255, 255, 255, 0.12);
  --app-w: 500px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: #0d0352 url("https://h19ab.com/assets/images/theme2/home/bg_worldCup.webp") center / cover no-repeat fixed;
  color: var(--text);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 99; }

.app {
  width: min(100%, var(--app-w));
  margin: 0 auto;
  min-height: 100vh;
  background: var(--app);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
  padding-bottom: 110px;
}

.download-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a1570;
  padding: 8px 10px;
  font-size: 12px;
}
.download-bar p { margin: 0; flex: 1; line-height: 1.3; }
.download-bar .dl {
  background: linear-gradient(180deg, #ffe48a, #f1bf45);
  color: #4a1a00;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
}
.dl i { margin-right: 4px; }
.download-bar .x {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
}

.top-row {
  display: flex;
  align-items: center;
  padding: 8px 10px 4px;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand .logo-word { height: 28px; width: auto; }
.quick {
  margin-left: auto;
  display: flex;
  gap: 10px;
  text-align: center;
  font-size: 9px;
  color: var(--gold-2);
}
.quick a i {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
  color: var(--gold-2);
}

.banner {
  position: relative;
  margin: 6px 10px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #2a1570;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 10px;
  background: linear-gradient(90deg, #3a2a9a, #1e4aa8);
  border-radius: 20px;
  padding: 6px 10px;
  overflow: hidden;
  font-size: 12px;
}
.ticker i { color: var(--gold-2); font-size: 16px; }
.ticker .run {
  white-space: nowrap;
  animation: marquee 14s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(20%); }
  to { transform: translateX(-100%); }
}

.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 10px 4px;
  overflow: visible;
}
.auth a {
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 191, 69, 0.55);
  transform-origin: center;
}
.auth a i { margin-right: 6px; }
.auth a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: auth-shine 1.6s ease-in-out infinite;
  pointer-events: none;
}
.auth .login {
  background: var(--login);
  animation: auth-pulse-login 1.35s ease-in-out infinite;
}
.auth .reg {
  background: var(--reg);
  animation: auth-pulse-reg 1.35s ease-in-out infinite;
  animation-delay: 0.18s;
}
.auth .reg::after { animation-delay: 0.28s; }
@keyframes auth-pulse-login {
  0%, 100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 12px rgba(76, 58, 176, 0.45);
  }
  28% {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 28px rgba(241, 191, 69, 0.75);
  }
  42% {
    transform: scale(0.96) translateY(1px);
    box-shadow: 0 4px 14px rgba(241, 191, 69, 0.4);
  }
  58% {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 10px 22px rgba(241, 191, 69, 0.6);
  }
}
@keyframes auth-pulse-reg {
  0%, 100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.45);
  }
  28% {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 28px rgba(255, 210, 80, 0.8);
  }
  42% {
    transform: scale(0.96) translateY(1px);
    box-shadow: 0 4px 14px rgba(255, 180, 80, 0.4);
  }
  58% {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 196, 80, 0.65);
  }
}
@keyframes auth-shine {
  0%, 35% { transform: translateX(-130%); }
  60% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .auth .login,
  .auth .reg,
  .auth a::after { animation: none; }
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 6px 4px;
  text-align: center;
  font-size: 12px;
}
.tools a { color: #fff; }
.icon-box {
  width: 44px; height: 44px;
  margin: 0 auto 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, #5b4cff, #3b2a9a);
  display: grid;
  place-items: center;
  font-size: 18px;
  position: relative;
  color: #fff;
}
.badge {
  position: absolute;
  top: -4px; right: -6px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.home-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px;
  padding: 4px 8px 16px 4px;
  min-height: 520px;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side button {
  border: 0;
  background: transparent;
  color: #cfc6ff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 0;
}
.side button img {
  width: 42px; height: 42px;
  margin: 0 auto 2px;
  filter: grayscale(.2);
}
.side button.active { color: var(--gold-2); }
.side button.active img { filter: none; }

.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
}
.game {
  color: #fff;
  cursor: default;
}
.game img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #2a1570;
}
.game.wide img { aspect-ratio: 400 / 290; }
.game span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  text-align: center;
  line-height: 1.25;
}

.expand {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 0 10px;
}

#odds_embed {
  width: 100%;
  max-width: 100%;
  max-height: 500px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
#odds_embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 500px;
  max-height: 500px;
  border: 0;
  vertical-align: top;
}

.seo {
  padding: 8px 12px 28px;
}
.seo h1 {
  font-size: 20px;
  margin: 8px 0 10px;
  line-height: 1.35;
  color: #fff;
}
.seo h2 {
  font-size: 16px;
  margin: 22px 0 10px;
  color: var(--gold-soft, #fdf09c);
}
.seo h3 {
  font-size: 15px;
  margin: 14px 0 6px;
  color: #fff;
}
.seo p, .seo li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.seo strong { color: #fff; }
.seo a:not(.cta) { color: var(--gold); }
.eeat {
  display: grid;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.eeat b { color: var(--gold); }
.disclaimer {
  font-size: 13px;
  color: #c5b8ff;
  border-left: 3px solid var(--gold);
  padding: 8px 10px;
  background: rgba(241, 191, 69, 0.08);
  border-radius: 0 10px 10px 0;
}
.note {
  font-size: 13px;
  background: #1a1468;
  border-radius: 10px;
  padding: 10px 12px;
  color: #e8e2ff;
  margin: 12px 0;
}
.toc {
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}
.toc a { display: block; padding: 4px 0; font-size: 13px; color: var(--gold); }
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps li {
  counter-increment: step;
  margin: 0 0 12px;
  padding-left: 36px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #3d0208;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; color: #fff; }
.article-list { display: grid; gap: 8px; }
.article-list a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.article-list h3 { margin: 0 0 4px; font-size: 15px; color: var(--gold-soft, #fdf09c); }
.related-map > h3 {
  font-size: 13px;
  color: var(--gold);
  margin: 16px 0 8px;
  font-weight: 800;
}
.site-footer {
  margin-top: 4px;
  padding: 16px 14px 18px;
  border-top: 1px solid var(--line);
  background: #100848;
  font-size: 12px;
  color: var(--muted);
}
.site-footer a { color: var(--gold); }
.foot-brand { margin: 0 0 12px; line-height: 1.55; }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
}
.foot-grid b {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 12px;
}
.foot-grid a {
  display: block;
  padding: 3px 0;
  color: var(--muted);
  line-height: 1.35;
}
.foot-copy {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
.foot-contact {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.foot-contact b {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 12px;
}
.foot-contact p { margin: 0 0 4px; }
.foot-tags {
  margin-top: 8px !important;
  color: var(--gold);
  word-break: break-word;
}
.contact-card {
  margin: 10px 0 14px;
  padding: 12px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  font-size: 13px;
  line-height: 1.55;
}
.contact-card p { margin: 0 0 8px; }
.contact-card b { color: #fff; }
.age-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
}
.tag {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page { padding: 12px 14px 24px; }
.page p a { color: var(--gold); }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--gold); }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, var(--app-w));
  height: 104px;
  display: flex;
  align-items: stretch;
  z-index: 50;
  overflow: visible;
  background: url("https://sgp5-static.idbp11.com/grapeAppAA/509/assets/tabBarBg-81a7d47a.webp") center / 100% 100% no-repeat;
}
.tabbar a.tab-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18px;
  gap: 6px;
  color: rgba(246, 246, 246, 0.5);
  font-size: 13px;
  line-height: 1.1;
  position: relative;
  overflow: visible;
}
.tabbar a.tab-item i {
  font-size: 22px;
  height: 32px;
  display: grid;
  place-items: center;
}
.tabbar a.active { color: #0c97f6; }
.tabbar .tab-promo {
  flex: 2.1 1 0;
  padding-top: 0;
  z-index: 2;
  color: #ffe082;
  font-weight: 700;
}
.tabbar .tab-promo::before {
  content: "";
  width: 150px;
  height: 115px;
  margin-top: -38px;
  background: url("../assets/tab-wheel-only.png") center / contain no-repeat;
}
.tabbar .tab-promo span {
  position: relative;
  top: -6px;
  font-size: 15px;
  text-shadow: 0 1px 2px #3d0208;
}

.float-right {
  position: fixed;
  right: calc(50% - var(--app-w) / 2 + 6px);
  bottom: 170px;
  display: grid;
  gap: 8px;
  z-index: 30;
}
.float-right img { width: 52px; height: 52px; }

.hidden { display: none !important; }

@media (max-width: 520px) {
  .float-right { right: 6px; }
}

.prose { max-width: 100%; }
.cta {
  display: inline-flex;
  background: var(--login);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  margin-top: 8px;
}
