/*
Theme Name: WinGo Game
Theme URI: https://wingogame.org/
Author: WinGo Game
Description: WinGo Game prediction, result, chart and Big Small guide.
Version: 1.0.1
Text Domain: wingogame
*/

:root {
  --wg-red: #ff4058;
  --wg-red-dark: #e93046;
  --wg-red-soft: #fff0f3;
  --wg-orange: #ffb84d;
  --wg-orange-dark: #ff9f1c;
  --wg-blue: #85b4ef;
  --wg-blue-dark: #467cc6;
  --wg-green: #23b66d;
  --wg-green-soft: #e9fbf2;
  --wg-bg: #f3f5fa;
  --wg-card: #ffffff;
  --wg-text: #273852;
  --wg-muted: #7b8798;
  --wg-border: #e8ebf2;
  --wg-shadow: 0 18px 45px rgba(35, 48, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--wg-text);
  background:
    radial-gradient(circle at top left, rgba(255, 64, 88, .12), transparent 320px),
    radial-gradient(circle at top right, rgba(255, 184, 77, .16), transparent 360px),
    var(--wg-bg);
  line-height: 1.65;
}

body.wg-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wg-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.wg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 6px 0 10px;
  background: linear-gradient(90deg, var(--wg-red), var(--wg-orange));
}

.wg-header-inner {
  min-height: 92px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .96);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 14px 35px rgba(39, 56, 82, .16);
  backdrop-filter: blur(12px);
}

.wg-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.wg-logo img {
  width: 190px;
  max-height: 62px;
  object-fit: contain;
}

.wg-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 800;
}

.wg-nav a {
  color: var(--wg-text);
  padding: 8px 0;
  position: relative;
}

.wg-nav a:hover,
.wg-nav a.wg-active {
  color: var(--wg-red);
}

.wg-nav a.wg-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wg-red), var(--wg-orange));
}

.wg-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wg-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: #eef1f6;
  box-shadow: inset 0 1px 4px rgba(39, 56, 82, .08);
}

.wg-lang a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: var(--wg-muted);
  white-space: nowrap;
}

.wg-lang a.wg-current {
  color: #fff;
  background: linear-gradient(135deg, var(--wg-red), var(--wg-red-dark));
  box-shadow: 0 10px 22px rgba(255, 64, 88, .28);
}

.wg-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wg-orange), var(--wg-red));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 64, 88, .24);
}

.wg-menu-btn {
  display: none;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--wg-red), var(--wg-red-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(255, 64, 88, .25);
}

.wg-menu-btn span {
  display: block;
  width: 27px;
  height: 4px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

/* Hero */
.wg-hero {
  padding: 44px 0 28px;
}

.wg-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 28px;
}

.wg-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--wg-red-soft);
  color: var(--wg-red);
  font-size: 13px;
  font-weight: 900;
}

.wg-hero h1 {
  margin: 0 0 16px;
  color: var(--wg-text);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}

.wg-lead {
  margin: 0 0 24px;
  max-width: 680px;
  color: var(--wg-muted);
  font-size: 18px;
}

.wg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
}

.wg-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--wg-red), var(--wg-red-dark));
  box-shadow: 0 12px 26px rgba(255, 64, 88, .26);
}

.wg-btn-outline {
  color: var(--wg-text);
  background: #fff;
  border-color: var(--wg-border);
  box-shadow: 0 10px 22px rgba(39, 56, 82, .08);
}

.wg-hero-media {
  padding: 14px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--wg-shadow);
}

.wg-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7f8, #f3f7ff);
}

/* Sections */
.wg-section {
  padding: 42px 0;
}

.wg-section-title {
  margin: 0 0 10px;
  color: var(--wg-text);
  font-size: 34px;
  line-height: 1.15;
}

.wg-section-desc {
  margin: 0 0 24px;
  max-width: 780px;
  color: var(--wg-muted);
}

.wg-card {
  background: var(--wg-card);
  border: 1px solid var(--wg-border);
  border-radius: 22px;
  box-shadow: var(--wg-shadow);
}

.wg-content {
  background: rgba(255, 255, 255, .54);
  border-top: 1px solid rgba(232, 235, 242, .8);
  border-bottom: 1px solid rgba(232, 235, 242, .8);
}

/* Prediction Box */
.wg-predict-box {
  padding: 20px;
  border-radius: 26px;
}

.wg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.wg-tab {
  border: 0;
  background: #eef1f6;
  color: var(--wg-text);
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

.wg-tab.wg-active {
  color: #fff;
  background: linear-gradient(135deg, var(--wg-red), var(--wg-red-dark));
  box-shadow: 0 10px 22px rgba(255, 64, 88, .24);
}

.wg-live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.wg-stat {
  min-height: 112px;
  padding: 18px;
  border-radius: 20px;
  background: #f7f8fb;
  border: 1px solid var(--wg-border);
}

.wg-stat span {
  display: block;
  color: var(--wg-muted);
  font-size: 13px;
  font-weight: 800;
}

.wg-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--wg-text);
  font-size: 25px;
  line-height: 1.2;
  word-break: break-word;
}

.wg-prediction-big {
  color: var(--wg-red) !important;
}

.wg-prediction-small {
  color: var(--wg-green) !important;
}

.wg-result-pill {
  margin: 20px auto;
  max-width: 720px;
  min-height: 78px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 14px 34px rgba(39, 56, 82, .12);
}

.wg-result-pill div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.wg-result-pill .wg-big-side {
  background: linear-gradient(135deg, var(--wg-orange), var(--wg-orange-dark));
}

.wg-result-pill .wg-small-side {
  background: linear-gradient(135deg, var(--wg-blue), var(--wg-blue-dark));
}

.wg-mini-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.wg-mini-tabs a,
.wg-mini-tabs button {
  min-height: 72px;
  border: 0;
  border-radius: 14px;
  background: #eceef3;
  color: var(--wg-text);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.wg-mini-tabs .wg-active {
  background: linear-gradient(135deg, #ff7483, var(--wg-red));
  color: #fff;
}

/* Table */
.wg-table-wrap {
  width: 100%;
  overflow: visible;
}

.wg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(39, 56, 82, .09);
}

.wg-table th,
.wg-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--wg-border);
  text-align: center;
  font-size: 15px;
}

.wg-table th {
  color: #fff;
  background: linear-gradient(135deg, #ff7281, var(--wg-red));
  font-size: 16px;
  font-weight: 900;
}

.wg-table th:first-child {
  border-top-left-radius: 20px;
}

.wg-table th:last-child {
  border-top-right-radius: 20px;
}

.wg-table tr:last-child td {
  border-bottom: 0;
}

.wg-table td:nth-child(2) {
  color: var(--wg-red);
  font-size: 28px;
  font-weight: 900;
}

.wg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}

.wg-badge-correct {
  color: #15945a;
  background: var(--wg-green-soft);
}

.wg-badge-wrong {
  color: var(--wg-red);
  background: var(--wg-red-soft);
}

/* Cards */
.wg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.wg-info-card {
  padding: 24px;
}

.wg-info-card h3 {
  margin: 0 0 10px;
  color: var(--wg-text);
  font-size: 21px;
}

.wg-info-card p {
  margin: 0;
  color: var(--wg-muted);
}

.wg-article {
  max-width: 940px;
}

.wg-article h2 {
  margin: 30px 0 10px;
  color: var(--wg-text);
  font-size: 28px;
}

.wg-article p {
  margin: 0 0 16px;
  color: #3c4b63;
}

/* Footer */
.wg-footer {
  padding: 48px 0 105px;
  color: #d8e1f0;
  background:
    radial-gradient(circle at top left, rgba(255, 64, 88, .28), transparent 320px),
    linear-gradient(135deg, #1c263a, #101827);
}

.wg-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}

.wg-footer h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
}

.wg-footer p {
  margin: 0;
  color: #b8c3d5;
}

.wg-footer a {
  color: #fff;
}

.wg-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.wg-footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.wg-footer-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #98a7bd;
  font-size: 13px;
}

/* Floating */
.wg-float-right {
  position: fixed;
  right: 16px;
  bottom: 108px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wg-float-right a,
.wg-float-right button {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(39, 56, 82, .22);
  cursor: pointer;
  overflow: hidden;
}

.wg-float-right img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.wg-bottom-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1190;
  padding: 10px 14px;
  pointer-events: none;
}

.wg-bottom-float a {
  pointer-events: auto;
  max-width: 780px;
  min-height: 66px;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--wg-red), var(--wg-orange));
  box-shadow: 0 16px 34px rgba(255, 64, 88, .32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wg-bottom-float img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.wg-bottom-text {
  flex: 1;
}

.wg-bottom-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.wg-bottom-text span {
  display: block;
  font-size: 12px;
  opacity: .9;
}

.wg-bottom-action {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--wg-red);
  background: #fff;
  font-weight: 900;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 980px) {
  .wg-header {
    padding-top: 5px;
  }

  .wg-header-inner {
    min-height: 86px;
    padding: 0 18px;
  }

  .wg-menu-btn {
    display: block;
  }

  .wg-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 104px;
    bottom: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--wg-shadow);
    overflow-y: auto;
  }

  body.wg-menu-open .wg-nav {
    display: flex;
  }

  .wg-nav a {
    padding: 15px;
    border-bottom: 1px solid var(--wg-border);
  }

  .wg-nav a.wg-active::after {
    display: none;
  }

  .wg-top-cta {
    display: none;
  }

  .wg-hero-grid {
    grid-template-columns: 1fr;
  }

  .wg-live-grid,
  .wg-grid-3,
  .wg-footer-grid {
    grid-template-columns: 1fr;
  }

  .wg-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wg-container {
    width: min(100% - 24px, 1180px);
  }

  .wg-header-inner {
    min-height: 82px;
    border-radius: 0 0 24px 24px;
  }

  .wg-logo img {
    width: 150px;
  }

  .wg-lang {
    padding: 5px;
  }

  .wg-lang a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .wg-menu-btn {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .wg-hero {
    padding-top: 28px;
  }

  .wg-hero h1 {
    font-size: 36px;
  }

  .wg-lead {
    font-size: 16px;
  }

  .wg-hero-media {
    border-radius: 22px;
    padding: 10px;
  }

  .wg-predict-box {
    padding: 14px;
  }

  .wg-tab {
    flex: 1 1 calc(50% - 8px);
    padding: 11px 10px;
    font-size: 13px;
  }

  .wg-stat {
    min-height: auto;
    padding: 15px;
  }

  .wg-stat strong {
    font-size: 21px;
  }

  .wg-result-pill {
    min-height: 62px;
  }

  .wg-result-pill div {
    padding: 0 18px;
    font-size: 24px;
  }

  .wg-mini-tabs {
    gap: 10px;
  }

  .wg-mini-tabs a,
  .wg-mini-tabs button {
    min-height: 58px;
    font-size: 16px;
  }

  .wg-table th,
  .wg-table td {
    padding: 13px 7px;
    font-size: 12px;
    word-break: break-word;
  }

  .wg-table td:nth-child(2) {
    font-size: 24px;
  }

  .wg-badge {
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }

  .wg-float-right {
    right: 10px;
    bottom: 96px;
  }

  .wg-float-right a,
  .wg-float-right button,
  .wg-float-right img {
    width: 46px;
    height: 46px;
  }

  .wg-bottom-float a {
    min-height: 60px;
    border-radius: 16px;
  }

  .wg-bottom-float img {
    width: 42px;
    height: 42px;
  }

  .wg-bottom-action {
    padding: 8px 11px;
    font-size: 13px;
  }
}
.wg-settled-note {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 22px;
  color: var(--wg-muted);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--wg-border);
  font-size: 18px;
}

.wg-live-grid-small {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .wg-settled-note {
    padding: 16px;
    border-radius: 18px;
    font-size: 15px;
  }
}
.wg-lang a {
  width: 46px;
  min-width: 46px;
  padding: 0;
  justify-content: center;
  font-size: 22px;
}

.wg-lang a span {
  line-height: 1;
}

.wg-menu-btn {
  position: relative;
  z-index: 1305;
}

@media (max-width: 980px) {
  .wg-nav {
    z-index: 1300;
  }

  body.wg-menu-open .wg-nav {
    display: flex !important;
  }
}
/* ===== Global Content Card Upgrade ===== */

.wg-grid-3 {
  align-items: stretch;
}

.wg-info-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 26px 24px 24px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(255, 64, 88, .45), rgba(255, 184, 77, .38), rgba(133, 180, 239, .35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 16px 38px rgba(39, 56, 82, .11);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.wg-info-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--wg-red), var(--wg-orange));
}

.wg-info-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 64, 88, .12), rgba(255, 184, 77, .06), transparent 68%);
  pointer-events: none;
}

.wg-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(39, 56, 82, .16);
}

.wg-info-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--wg-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.wg-info-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--wg-muted);
  font-size: 15px;
  line-height: 1.7;
}

a.wg-info-card {
  display: block;
}

a.wg-info-card h3 {
  color: var(--wg-red);
}

a.wg-info-card:hover h3 {
  color: var(--wg-red-dark);
}

/* Article content card */
.wg-article {
  position: relative;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 40px rgba(39, 56, 82, .1);
  border: 1px solid rgba(232, 235, 242, .9);
}

.wg-article::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--wg-red), var(--wg-orange), var(--wg-blue));
}

.wg-article h2:first-child {
  margin-top: 0;
}

.wg-article h2 {
  padding-top: 6px;
  color: var(--wg-text);
  font-size: 29px;
  font-weight: 900;
}

.wg-article p {
  color: #3e4d64;
  font-size: 16px;
  line-height: 1.8;
}

/* Section title area */
.wg-section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.wg-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wg-red), var(--wg-orange));
}

.wg-section-desc {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.75;
}

/* Prediction card stronger look */
.wg-predict-box {
  border: 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(255, 64, 88, .42), rgba(255, 184, 77, .36), rgba(133, 180, 239, .32)) border-box;
  border: 1px solid transparent;
}

.wg-stat {
  background:
    linear-gradient(180deg, #ffffff, #f8f9fd);
  box-shadow: inset 0 0 0 1px rgba(232, 235, 242, .8);
}

.wg-stat:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 64, 88, .18),
    0 12px 26px rgba(39, 56, 82, .08);
}

/* Mobile card polish */
@media (max-width: 640px) {
  .wg-info-card {
    min-height: auto;
    padding: 23px 20px 20px;
    border-radius: 20px;
  }

  .wg-info-card h3 {
    font-size: 20px;
  }

  .wg-info-card p {
    font-size: 14px;
  }

  .wg-article {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .wg-article::before {
    left: 20px;
    right: 20px;
  }

  .wg-article h2 {
    font-size: 24px;
  }

  .wg-article p {
    font-size: 15px;
  }
}
@media (max-width: 980px) {
  .wg-nav {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    top: 112px !important;
    bottom: auto !important;
    max-height: calc(100vh - 130px);
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 12px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 55px rgba(39, 56, 82, .24) !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
  }

  body.wg-menu-open .wg-nav {
    display: flex !important;
  }

  .wg-nav a {
    display: block !important;
    padding: 15px 16px !important;
    color: var(--wg-text) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    border-bottom: 1px solid var(--wg-border) !important;
  }

  .wg-nav a:last-child {
    border-bottom: 0 !important;
  }

  .wg-nav a.wg-active {
    color: var(--wg-red) !important;
    background: var(--wg-red-soft) !important;
    border-radius: 14px !important;
  }
}