/* ==========================================================================
   WG BET — Sportsbook Design System
   Self-contained. No framework dependency.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #06090E;
  --bg-grad:       radial-gradient(1200px 600px at 78% -12%, rgba(196, 159, 53, .10), transparent 60%),
                   radial-gradient(900px 500px at 8% 0%, rgba(196, 159, 53, .10), transparent 55%),
                   #06090E;
  --surface:       #0E141D;
  --surface-2:     #141C28;
  --surface-3:     #1B2534;
  --surface-4:     #223045;
  --line:          rgba(255, 255, 255, .07);
  --line-2:        rgba(255, 255, 255, .13);

  /* Text */
  --txt:           #E9EFF7;
  --txt-2:         #93A2B8;
  --txt-3:         #5F6E85;

  /* Brand — a single antique-gold accent carries the whole identity.
     --blue and --gold are kept as aliases so every existing usage inherits it. */
  --acc:           #C49F35;
  --acc-2:         #A8862B;
  --acc-soft:      rgba(196, 159, 53, .14);
  --acc-ink:       #14100A;
  --blue:          #C49F35;
  --blue-soft:     rgba(196, 159, 53, .13);
  --live:          #FF3355;
  --live-soft:     rgba(255, 51, 85, .13);
  --gold:          #C49F35;
  --gold-soft:     rgba(196, 159, 53, .13);
  --purple:        #C49F35;   /* was violet — folded into the gold identity */

  /* Semantic */
  --ok:            #C49F35;
  --warn:          #E08A2B;   /* pushed orange so warnings still read apart from the accent */
  --err:           #FF3355;
  --info:          #C49F35;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 9px;
  --r:    13px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 4px 16px rgba(0, 0, 0, .35);
  --sh-3: 0 12px 40px rgba(0, 0, 0, .5);
  --sh-acc: 0 6px 22px rgba(196, 159, 53, .28);

  /* Type */
  --f-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-dis: "Sora", "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Metrics */
  --topbar-h: 62px;
  --bottomnav-h: 64px;
  --sidebar-w: 244px;
  --slip-w: 340px;

  /* Motion */
  --e: cubic-bezier(.32, .72, 0, 1);
  --t-fast: .14s var(--e);
  --t: .24s var(--e);
  --t-slow: .42s var(--e);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--txt);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "cv02", "cv03", "cv04", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--f-dis);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #3A4152; }

.num { font-variant-numeric: tabular-nums; }

/* Icons are inline SVGs with no intrinsic size — never let one render at the
   300x150 replaced-element default because a component forgot to size it.
   Wrapped in :where() so the rule carries zero specificity: every component
   that sets its own icon size still wins. Without this the bare `svg:not(...)`
   form outranked class selectors and shrank every icon in the app. */
svg:where(:not([width]):not([height])) { width: 1em; height: 1em; }

/* --------------------------------------------------------------------------
   3. App shell
   -------------------------------------------------------------------------- */
.wg-app { min-height: 100vh; }

.wg-main {
  padding-top: var(--topbar-h);
  padding-bottom: calc(var(--bottomnav-h) + 24px);
  min-height: 100vh;
}

.wg-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 14px;
}

@media (min-width: 992px) {
  .wg-main { padding-left: var(--sidebar-w); padding-bottom: 40px; }
  .wg-container { padding: 0 24px; }
}

/* Content + right rail */
.wg-split { display: grid; gap: 20px; align-items: start; }

@media (min-width: 1200px) {
  .wg-split { grid-template-columns: minmax(0, 1fr) var(--slip-w); }
}

/* --------------------------------------------------------------------------
   4. Topbar
   -------------------------------------------------------------------------- */
.wg-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(8, 12, 18, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 992px) { .wg-topbar { padding: 0 24px; } }

.wg-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.wg-brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }

.wg-brand-txt {
  font-family: var(--f-dis);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.03em;
  line-height: 1;
}
.wg-brand-txt b { color: var(--acc); font-weight: 800; }
.wg-brand-txt span {
  display: block;
  font-family: var(--f-ui);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--txt-3);
  margin-top: 2px;
}

@media (max-width: 400px) { .wg-brand-txt span { display: none; } }

.wg-topbar-spacer { flex: 1; }

/* Balance pill */
.wg-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 6px 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  transition: border-color var(--t);
}
.wg-balance:hover { border-color: rgba(196, 159, 53, .4); }

.wg-balance-val {
  font-family: var(--f-dis);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wg-balance-val small { color: var(--txt-3); font-weight: 600; font-size: 11px; }

.wg-balance-add {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t);
}
.wg-balance-add:hover { transform: scale(1.09); box-shadow: var(--sh-acc); }
.wg-balance-add svg { width: 15px; height: 15px; }

/* Icon buttons */
.wg-iconbtn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--txt-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.wg-iconbtn:hover { color: var(--txt); border-color: var(--line-2); background: var(--surface-3); }
.wg-iconbtn svg { width: 19px; height: 19px; }

.wg-menubtn { display: grid; }
@media (min-width: 992px) { .wg-menubtn { display: none; } }

.wg-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #D9B84A, var(--acc-2));
  color: #04170D;
  font-family: var(--f-dis);
  font-weight: 800;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.wg-avatar:hover { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   5. Sidebar
   -------------------------------------------------------------------------- */
.wg-sidebar {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  z-index: 85;
  padding: 16px 12px;
  overflow-y: auto;
  background: rgba(10, 14, 21, .95);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform var(--t) ;
}
.wg-sidebar.is-open { transform: none; }

@media (min-width: 992px) {
  .wg-sidebar { transform: none; background: rgba(9, 13, 19, .6); }
}

.wg-navlabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-3);
  padding: 0 10px;
  margin: 18px 0 8px;
}
.wg-navlabel:first-child { margin-top: 2px; }

.wg-navlink {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  color: var(--txt-2);
  font-weight: 500;
  font-size: 13.5px;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.wg-navlink svg { width: 18px; height: 18px; flex-shrink: 0; }
.wg-navlink:hover { color: var(--txt); background: var(--surface-2); }

.wg-navlink.is-active {
  color: var(--txt);
  background: linear-gradient(90deg, var(--acc-soft), transparent);
  font-weight: 600;
}
.wg-navlink.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--acc);
}
.wg-navlink.is-active svg { color: var(--acc); }

.wg-navlink .wg-tag { margin-left: auto; }

.wg-scrim {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.wg-scrim.is-open { opacity: 1; visibility: visible; }
@media (min-width: 992px) { .wg-scrim { display: none; } }

/* Sidebar promo */
.wg-promo {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--r);
  background: linear-gradient(155deg, rgba(196, 159, 53, .16), rgba(196, 159, 53, .08));
  border: 1px solid rgba(196, 159, 53, .22);
}
.wg-promo h6 { font-size: 13px; margin-bottom: 5px; }
.wg-promo p { font-size: 11.5px; color: var(--txt-2); margin-bottom: 11px; }

/* --------------------------------------------------------------------------
   6. Bottom nav (mobile)
   -------------------------------------------------------------------------- */
.wg-bottomnav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 88;
  height: var(--bottomnav-h);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(9, 13, 19, .93);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 992px) { .wg-bottomnav { display: none; } }

.wg-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--txt-3);
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: color var(--t-fast);
}
.wg-bnav-item svg { width: 21px; height: 21px; }
.wg-bnav-item.is-active { color: var(--acc); }
.wg-bnav-item.is-active::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc);
}

.wg-bnav-item .wg-dot {
  position: absolute;
  top: 8px;
  right: calc(50% - 16px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  border: 2px solid #0B1017;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.wg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--txt);
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t), opacity var(--t-fast);
}
.wg-btn:active { transform: scale(.975); }
.wg-btn svg { width: 17px; height: 17px; }

.wg-btn--primary {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(196, 159, 53, .22);
}
.wg-btn--primary:hover { box-shadow: var(--sh-acc); filter: brightness(1.06); }

.wg-btn--blue {
  background: linear-gradient(135deg, var(--blue), var(--acc-2));
  color: #fff;
  font-weight: 700;
}
.wg-btn--blue:hover { filter: brightness(1.08); }

.wg-btn--danger { background: var(--live-soft); color: var(--live); border-color: rgba(255, 51, 85, .3); }
.wg-btn--danger:hover { background: rgba(255, 51, 85, .2); }

.wg-btn--ghost { background: transparent; border-color: var(--line-2); color: var(--txt-2); }
.wg-btn--ghost:hover { color: var(--txt); border-color: var(--acc); background: var(--acc-soft); }

.wg-btn--soft { background: var(--surface-2); border-color: var(--line); }
.wg-btn--soft:hover { background: var(--surface-3); }

.wg-btn--lg { height: 50px; font-size: 15px; padding: 0 26px; border-radius: var(--r); }
.wg-btn--sm { height: 34px; font-size: 12.5px; padding: 0 13px; }
.wg-btn--block { width: 100%; }

.wg-btn[disabled], .wg-btn.is-busy { opacity: .55; pointer-events: none; }

.wg-btn.is-busy::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: wg-spin .62s linear infinite;
}

@keyframes wg-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   8. Cards & sections
   -------------------------------------------------------------------------- */
.wg-card {
  background: linear-gradient(180deg, var(--surface), rgba(14, 20, 29, .7));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.wg-card--pad { padding: 16px; }

.wg-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.wg-card-head h5 { font-size: 14px; }
.wg-card-head .wg-spacer { flex: 1; }
.wg-card-head > svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--acc);
}

.wg-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 13px;
}
.wg-section:first-child { margin-top: 0; }

.wg-section h4 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wg-section h4 svg { width: 18px; height: 18px; color: var(--acc); }
.wg-section .wg-spacer { flex: 1; }

.wg-section-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast);
}
.wg-section-link:hover { color: var(--acc); }
.wg-section-link svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   9. Badges / tags / chips
   -------------------------------------------------------------------------- */
.wg-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--txt-2);
  white-space: nowrap;
}
.wg-tag svg { width: 11px; height: 11px; }
.wg-tag--acc  { background: var(--acc-soft);  color: var(--acc); }
.wg-tag--blue { background: var(--blue-soft); color: var(--blue); }
.wg-tag--gold { background: var(--gold-soft); color: var(--gold); }
.wg-tag--live { background: var(--live-soft); color: var(--live); }

.wg-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: wg-pulse 1.6s ease-out infinite;
}
@keyframes wg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 51, 85, .75); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 51, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 85, 0); }
}

/* Horizontal chip rail */
.wg-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.wg-rail::-webkit-scrollbar { display: none; }

.wg-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.wg-chip svg { width: 15px; height: 15px; }
.wg-chip:hover { color: var(--txt); border-color: var(--line-2); }
.wg-chip.is-active {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--acc-ink);
  font-weight: 700;
}
.wg-chip .wg-chip-n {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
}
.wg-chip.is-active .wg-chip-n { background: rgba(0, 0, 0, .18); }

/* --------------------------------------------------------------------------
   10. Stat tiles
   -------------------------------------------------------------------------- */
.wg-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) { .wg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.wg-stat {
  position: relative;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.wg-stat::after {
  content: "";
  position: absolute;
  right: -28px; top: -28px;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--c, var(--acc));
  opacity: .09;
}
.wg-stat-ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--acc)) 15%, transparent);
  color: var(--c, var(--acc));
  margin-bottom: 11px;
}
.wg-stat-ico svg { width: 17px; height: 17px; }
.wg-stat-val {
  font-family: var(--f-dis);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.wg-stat-lbl {
  font-size: 11px;
  color: var(--txt-3);
  font-weight: 600;
  letter-spacing: .02em;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   11. Hero / banner
   -------------------------------------------------------------------------- */
.wg-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.wg-hero-slides { display: flex; transition: transform var(--t-slow); }
.wg-hero-slide { min-width: 100%; position: relative; }
.wg-hero-slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}
@media (min-width: 768px) { .wg-hero-slide img { height: 260px; } }
@media (min-width: 1200px) { .wg-hero-slide img { height: 300px; } }

.wg-hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.wg-hero-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  border: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
  transition: width var(--t), background var(--t);
}
.wg-hero-dot.is-active { width: 22px; background: var(--acc); }

/* Ticker */
.wg-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  margin-top: 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.wg-ticker-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--live);
}
/* The track is clipped by its own mask so it can never slide under the
   label while the marquee runs. */
.wg-ticker-mask {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 26px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 26px), transparent);
}

.wg-ticker-track {
  display: flex;
  width: max-content;
  gap: 30px;
  padding-right: 30px;
  white-space: nowrap;
  animation: wg-marquee 34s linear infinite;
  font-size: 12px;
  color: var(--txt-2);
}
.wg-ticker-track > span { flex: 0 0 auto; }
.wg-ticker:hover .wg-ticker-track { animation-play-state: paused; }
.wg-ticker-track b { color: var(--txt); font-weight: 600; }
.wg-ticker-track em { color: var(--acc); font-style: normal; font-weight: 700; }
@keyframes wg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   12. Match card
   -------------------------------------------------------------------------- */
.wg-matches { display: grid; gap: 10px; }
@media (min-width: 768px)  { .wg-matches--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .wg-matches--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.wg-match {
  position: relative;
  display: block;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.wg-match:hover {
  border-color: rgba(196, 159, 53, .35);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.wg-match::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #D9B84A, var(--acc-2));
  opacity: 0;
  transition: opacity var(--t);
}
.wg-match:hover::before { opacity: 1; }

/* Company Protection Plan fixture (market.cp = 2) — listed first and badged. */
.wg-match--protected {
  border-color: rgba(196, 159, 53, .45);
  background:
    radial-gradient(420px 140px at 50% 0%, rgba(196, 159, 53, .12), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.wg-match--protected:hover { border-color: var(--acc); }
.wg-match--protected::before { background: linear-gradient(180deg, #D9B84A, var(--acc-2)); opacity: 1; }

.wg-match-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(90deg, var(--acc-2), #D9B84A, var(--acc-2));
  color: var(--acc-ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wg-match-flag svg { width: 12px; height: 12px; flex-shrink: 0; }

.wg-match-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.wg-match-league {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wg-match-league svg { width: 13px; height: 13px; color: var(--gold); flex-shrink: 0; }
.wg-match-top .wg-spacer { flex: 1; }
.wg-match-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wg-match-body { padding: 13px; }

.wg-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.wg-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }

.wg-team-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  overflow: hidden;
  flex-shrink: 0;
}
.wg-team-logo img { width: 30px; height: 30px; object-fit: contain; }
.wg-team-logo span {
  font-family: var(--f-dis);
  font-size: 14px;
  font-weight: 700;
  color: var(--txt-2);
}

.wg-team-name {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.wg-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
}
.wg-vs-lbl {
  font-family: var(--f-dis);
  font-size: 11px;
  font-weight: 800;
  color: var(--txt-3);
  letter-spacing: .06em;
}
.wg-vs-score {
  font-family: var(--f-dis);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.wg-match-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}
.wg-match-foot .wg-spacer { flex: 1; }
.wg-match-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--txt-3);
  font-weight: 600;
}
.wg-match-vol svg { width: 13px; height: 13px; color: var(--blue); }
.wg-match-vol b { color: var(--txt-2); font-variant-numeric: tabular-nums; }

.wg-match-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--acc);
}
.wg-match-cta svg { width: 13px; height: 13px; transition: transform var(--t-fast); }
.wg-match:hover .wg-match-cta svg { transform: translateX(3px); }

/* Countdown */
.wg-countdown {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--f-dis);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.wg-countdown span {
  background: var(--gold-soft);
  padding: 2px 5px;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   13. Odds buttons
   -------------------------------------------------------------------------- */
.wg-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 560px) { .wg-odds-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .wg-odds-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.wg-odd {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 6px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.wg-odd::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s var(--e);
}
.wg-odd:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--surface-4), var(--surface-3));
}
.wg-odd:hover::after { transform: translateX(120%); }
.wg-odd:active { transform: scale(.97); }

.wg-odd-pre {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-3);
  line-height: 1;
}
.wg-odd.is-selected .wg-odd-pre { color: var(--acc); }

.wg-odd-score {
  font-family: var(--f-dis);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.wg-odd-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}
.wg-odd-vol {
  font-size: 9.5px;
  color: var(--txt-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wg-odd.is-selected {
  border-color: var(--acc);
  background: linear-gradient(180deg, rgba(196, 159, 53, .2), rgba(196, 159, 53, .07));
  box-shadow: inset 0 0 0 1px var(--acc);
}
.wg-odd.is-selected .wg-odd-val { color: var(--acc); }

.wg-odd.is-up   { animation: wg-flash-up .9s var(--e); }
.wg-odd.is-down { animation: wg-flash-down .9s var(--e); }
@keyframes wg-flash-up   { 0%, 100% { background-color: transparent; } 25% { background-color: rgba(196, 159, 53, .3); } }
@keyframes wg-flash-down { 0%, 100% { background-color: transparent; } 25% { background-color: rgba(255, 51, 85, .3); } }

/* Hot marker */
.wg-odd-hot {
  position: absolute;
  top: 4px; right: 4px;
  width: 14px; height: 14px;
  display: grid; place-items: center;
  color: var(--gold);
}
.wg-odd-hot svg { width: 11px; height: 11px; }

/* --------------------------------------------------------------------------
   14. Bet slip
   -------------------------------------------------------------------------- */
.wg-slip {
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  overflow: hidden;
}

@media (min-width: 1200px) {
  .wg-slip--rail { position: sticky; top: calc(var(--topbar-h) + 20px); }
}

.wg-slip-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--acc-soft), transparent);
}
.wg-slip-head h5 { font-size: 13.5px; letter-spacing: .01em; }
.wg-slip-head svg { width: 17px; height: 17px; color: var(--acc); }
.wg-slip-head .wg-spacer { flex: 1; }
.wg-slip-count {
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--acc);
  color: var(--acc-ink);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.wg-slip-body { padding: 15px; }

.wg-slip-pick {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  border: 1px solid var(--line);
  margin-bottom: 13px;
}
.wg-slip-pick-score {
  width: 46px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--acc-soft);
  color: var(--acc);
  font-family: var(--f-dis);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.wg-slip-pick-info { min-width: 0; flex: 1; }
.wg-slip-pick-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-slip-pick-info span { font-size: 11px; color: var(--txt-3); }

.wg-slip-rows { display: grid; gap: 9px; margin: 14px 0; }
.wg-slip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.wg-slip-row span { color: var(--txt-2); }
.wg-slip-row b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Final line of a breakdown — separated and slightly heavier. */
.wg-slip-row--total {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 10px;
  font-size: 13.5px;
}
.wg-slip-row--total span { color: var(--txt); font-weight: 600; }
.wg-slip-row--total b { font-size: 15px; }

.wg-slip-payout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border-radius: var(--r-sm);
  background: linear-gradient(120deg, rgba(196, 159, 53, .16), rgba(196, 159, 53, .04));
  border: 1px dashed rgba(196, 159, 53, .4);
  margin: 14px 0;
}
.wg-slip-payout span { font-size: 11.5px; font-weight: 600; color: var(--txt-2); }
.wg-slip-payout b {
  font-family: var(--f-dis);
  font-size: 20px;
  font-weight: 800;
  color: var(--acc);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.wg-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.wg-quick button {
  height: 33px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--txt-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.wg-quick button:hover { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); }

/* The slip docks as a bottom sheet on small screens and a sticky rail on wide
   ones — one element, one source of state. */
.wg-sheet-grip { display: none; }

@media (max-width: 1199px) {
  .wg-slip-dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 95;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: 0;
    transform: translateY(105%);
    transition: transform var(--t);
    box-shadow: 0 -14px 44px rgba(0, 0, 0, .6);
    max-height: 86vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .wg-slip-dock.is-open { transform: none; }

  .wg-sheet-grip {
    display: block;
    width: 38px; height: 4px;
    border-radius: var(--r-pill);
    background: var(--surface-4);
    margin: 9px auto 0;
  }
}

@media (min-width: 1200px) {
  .wg-slip-dock { position: sticky; top: calc(var(--topbar-h) + 20px); }
}

/* Floating slip trigger (mobile) */
.wg-slip-fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--bottomnav-h) + 14px);
  z-index: 87;
  display: none;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--sh-acc);
  cursor: pointer;
  animation: wg-in-up .3s var(--e);
}
.wg-slip-fab.is-visible { display: inline-flex; }
.wg-slip-fab svg { width: 17px; height: 17px; }
@media (min-width: 1200px) { .wg-slip-fab { display: none !important; } }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.wg-field { margin-bottom: 14px; }

.wg-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--txt-2);
  margin-bottom: 7px;
  letter-spacing: .01em;
}

.wg-input-wrap { position: relative; display: flex; align-items: center; }

.wg-input-ico {
  position: absolute;
  left: 13px;
  color: var(--txt-3);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.wg-input-ico svg { width: 17px; height: 17px; }

.wg-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--txt);
  font-family: var(--f-ui);
  font-size: 14px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.wg-input::placeholder { color: var(--txt-3); }
.wg-input:focus {
  outline: 0;
  border-color: var(--acc);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.wg-input-wrap .wg-input-ico ~ .wg-input { padding-left: 42px; }
.wg-input:disabled { opacity: .6; cursor: not-allowed; }

textarea.wg-input { height: auto; padding: 12px 14px; resize: vertical; min-height: 92px; }

select.wg-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A2B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
  padding-right: 38px;
}
select.wg-input option { background: var(--surface-2); color: var(--txt); }

.wg-input-btn {
  position: absolute;
  right: 6px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--txt-3);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.wg-input-btn:hover { color: var(--acc); background: var(--surface-3); }
.wg-input-btn svg { width: 17px; height: 17px; }

.wg-hint { font-size: 11px; color: var(--txt-3); margin-top: 6px; }
.wg-hint--err { color: var(--err); }

.wg-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--txt-2);
  user-select: none;
}
.wg-check input { position: absolute; opacity: 0; pointer-events: none; }
.wg-check-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-2);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.wg-check-box svg { width: 12px; height: 12px; color: var(--acc-ink); opacity: 0; transform: scale(.5); transition: all var(--t-fast); }
.wg-check input:checked + .wg-check-box { background: var(--acc); border-color: var(--acc); }
.wg-check input:checked + .wg-check-box svg { opacity: 1; transform: none; }

/* Password strength */
.wg-strength { display: flex; gap: 4px; margin-top: 8px; }
.wg-strength i {
  flex: 1;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-4);
  transition: background var(--t);
}
.wg-strength.lv1 i:nth-child(-n+1) { background: var(--err); }
.wg-strength.lv2 i:nth-child(-n+2) { background: var(--warn); }
.wg-strength.lv3 i:nth-child(-n+3) { background: var(--blue); }
.wg-strength.lv4 i { background: var(--acc); }

/* PIN input */
.wg-pin { display: flex; gap: 9px; justify-content: center; }
.wg-pin input {
  width: 48px; height: 56px;
  text-align: center;
  font-family: var(--f-dis);
  font-size: 21px;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--txt);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.wg-pin input:focus {
  outline: 0;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}

/* --------------------------------------------------------------------------
   16. Tabs
   -------------------------------------------------------------------------- */
.wg-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.wg-tabs::-webkit-scrollbar { display: none; }

.wg-tab {
  flex: 1;
  min-width: max-content;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.wg-tab:hover { color: var(--txt); }
.wg-tab.is-active {
  background: var(--surface-3);
  color: var(--txt);
  font-weight: 700;
  box-shadow: var(--sh-1);
}
.wg-tab .wg-chip-n {
  margin-left: 6px;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-4);
}

.wg-pane { display: none; animation: wg-in-up .28s var(--e); }
.wg-pane.is-active { display: block; }

@keyframes wg-in-up {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Tables & list rows
   -------------------------------------------------------------------------- */
.wg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.wg-table { font-size: 12.5px; min-width: 420px; }
.wg-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--txt-3);
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.wg-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--txt-2);
  white-space: nowrap;
}
.wg-table tbody tr { transition: background var(--t-fast); }
.wg-table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.wg-table tbody tr:last-child td { border-bottom: 0; }
.wg-table td b { color: var(--txt); font-weight: 600; }
.wg-table .num { font-variant-numeric: tabular-nums; }

.wg-list { display: grid; gap: 2px; }
.wg-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.wg-list-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.wg-list-ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--txt-2);
}
.wg-list-ico svg { width: 17px; height: 17px; }
.wg-list-body { flex: 1; min-width: 0; }
.wg-list-body strong { display: block; font-size: 13px; font-weight: 600; }
.wg-list-body span { font-size: 11.5px; color: var(--txt-3); }
.wg-list-end { text-align: right; flex-shrink: 0; }
.wg-list-end b { display: block; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wg-list-item > svg:last-child { width: 16px; height: 16px; color: var(--txt-3); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   18. Bet ticket (history)
   -------------------------------------------------------------------------- */
.wg-ticket {
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.wg-ticket::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c, var(--txt-3));
}
.wg-ticket--won  { --c: var(--acc); }
.wg-ticket--lost { --c: var(--live); }
.wg-ticket--open { --c: var(--blue); }
.wg-ticket--void { --c: var(--txt-3); }

.wg-ticket-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.wg-ticket-head .wg-spacer { flex: 1; }
.wg-ticket-id { font-size: 10.5px; color: var(--txt-3); font-weight: 600; font-variant-numeric: tabular-nums; }

.wg-ticket-body { padding: 13px 14px; }

.wg-ticket-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wg-ticket-match img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.wg-ticket-match-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-ticket-match-vs { font-size: 11px; color: var(--txt-3); font-weight: 700; }

.wg-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.wg-ticket-cell span {
  display: block;
  font-size: 10px;
  color: var(--txt-3);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.wg-ticket-cell b {
  font-family: var(--f-dis);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wg-ticket-cell b.acc { color: var(--acc); }
.wg-ticket-cell b.err { color: var(--live); }

.wg-ticket-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}
.wg-ticket-foot .wg-spacer { flex: 1; }

/* --------------------------------------------------------------------------
   19. Toasts
   -------------------------------------------------------------------------- */
.wg-toasts {
  position: fixed;
  top: calc(var(--topbar-h) + 10px);
  right: 12px;
  left: 12px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}
@media (min-width: 640px) {
  .wg-toasts { left: auto; width: 370px; align-items: stretch; }
}

.wg-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  max-width: 440px;
  padding: 13px 14px;
  border-radius: var(--r);
  background: rgba(20, 28, 40, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  pointer-events: auto;
  overflow: hidden;
  animation: wg-toast-in .34s var(--e);
}
.wg-toast.is-out { animation: wg-toast-out .26s var(--e) forwards; }

@keyframes wg-toast-in {
  from { opacity: 0; transform: translateY(-14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes wg-toast-out {
  to { opacity: 0; transform: translateX(24px) scale(.96); }
}

.wg-toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c);
}

.wg-toast-ico {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
}
.wg-toast-ico svg { width: 17px; height: 17px; }

.wg-toast-body { flex: 1; min-width: 0; padding-top: 1px; }
.wg-toast-body strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.wg-toast-body p { font-size: 12px; color: var(--txt-2); line-height: 1.45; word-break: break-word; }

.wg-toast-x {
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--txt-3);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.wg-toast-x:hover { color: var(--txt); background: var(--surface-3); }
.wg-toast-x svg { width: 13px; height: 13px; }

.wg-toast-bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--c);
  opacity: .45;
  transform-origin: left;
  animation: wg-toast-bar linear forwards;
}
@keyframes wg-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.wg-toast--success { --c: var(--ok); }
.wg-toast--error   { --c: var(--err); }
.wg-toast--warning { --c: var(--warn); }
.wg-toast--info    { --c: var(--info); }

/* --------------------------------------------------------------------------
   20. Modal
   -------------------------------------------------------------------------- */
.wg-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 6, 10, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.wg-modal.is-open { opacity: 1; visibility: visible; }

.wg-modal-box {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  transform: translateY(18px) scale(.97);
  transition: transform var(--t);
}
.wg-modal.is-open .wg-modal-box { transform: none; }

.wg-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.wg-modal-head h5 { font-size: 15px; }
.wg-modal-head .wg-spacer { flex: 1; }

.wg-modal-body { padding: 18px; }
.wg-modal-foot {
  display: flex;
  gap: 9px;
  padding: 0 18px 18px;
}
.wg-modal-foot .wg-btn { flex: 1; }

/* --------------------------------------------------------------------------
   21. Empty / skeleton / loaders
   -------------------------------------------------------------------------- */
.wg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 46px 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px dashed var(--line-2);
}
.wg-empty-ico {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--txt-3);
  margin-bottom: 15px;
}
.wg-empty-ico svg { width: 27px; height: 27px; }
.wg-empty h5 { font-size: 15px; margin-bottom: 6px; }
.wg-empty p { font-size: 12.5px; color: var(--txt-3); max-width: 320px; margin-bottom: 16px; }

.wg-skel {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: wg-shimmer 1.3s ease-in-out infinite;
}
@keyframes wg-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.wg-skel-match { height: 152px; }

.wg-spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface-4);
  border-top-color: var(--acc);
  animation: wg-spin .68s linear infinite;
  margin: 30px auto;
}

/* --------------------------------------------------------------------------
   22. Auth pages
   -------------------------------------------------------------------------- */
.wg-auth {
  min-height: 100vh;
  display: grid;
  position: relative;
  overflow: hidden;
}
@media (min-width: 992px) { .wg-auth { grid-template-columns: 1.05fr .95fr; } }

.wg-auth-art {
  display: none;
  position: relative;
  padding: 46px;
  background:
    linear-gradient(150deg, rgba(196, 159, 53, .16), rgba(196, 159, 53, .08) 55%, transparent),
    #080C12;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
@media (min-width: 992px) { .wg-auth-art { display: flex; flex-direction: column; } }

.wg-auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 40% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 40% 40%, #000, transparent 72%);
}

.wg-auth-art-in { position: relative; margin-top: auto; max-width: 460px; }
.wg-auth-art h1 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.wg-auth-art h1 em { font-style: normal; color: var(--acc); }
.wg-auth-art p { color: var(--txt-2); font-size: 14.5px; margin-bottom: 26px; }

.wg-auth-feats { display: grid; gap: 12px; }
.wg-auth-feat { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--txt-2); }
.wg-auth-feat i {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--acc-soft);
  color: var(--acc);
  flex-shrink: 0;
}
.wg-auth-feat i svg { width: 15px; height: 15px; }

.wg-auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px 44px;
  position: relative;
}
@media (min-width: 992px) { .wg-auth-form { padding: 48px 56px; } }

.wg-auth-box { width: 100%; max-width: 400px; margin: 0 auto; }

.wg-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.wg-auth-brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: contain; }

.wg-auth-box h2 { font-size: 27px; letter-spacing: -.035em; margin-bottom: 7px; }
.wg-auth-box > p { font-size: 13.5px; color: var(--txt-2); margin-bottom: 26px; }

.wg-auth-alt {
  text-align: center;
  font-size: 13px;
  color: var(--txt-2);
  margin-top: 22px;
}
.wg-auth-alt a { color: var(--acc); font-weight: 700; }

.wg-auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.wg-auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--txt-3);
  font-weight: 600;
}
.wg-auth-trust svg { width: 13px; height: 13px; color: var(--acc); }

/* --------------------------------------------------------------------------
   23. Profile header
   -------------------------------------------------------------------------- */
.wg-profile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(196, 159, 53, .16), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 22px 18px;
}
.wg-profile-row { display: flex; align-items: center; gap: 15px; }

.wg-profile-av {
  width: 62px; height: 62px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #D9B84A, var(--acc-2));
  color: var(--acc-ink);
  font-family: var(--f-dis);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(196, 159, 53, .18);
}
.wg-profile-info { min-width: 0; flex: 1; }
.wg-profile-info h3 { font-size: 18px; margin-bottom: 3px; }
.wg-profile-info p { font-size: 12.5px; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-profile-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

/* Copy field */
.wg-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 13px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
}
.wg-copy input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--txt-2);
  font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  padding: 0;
}
.wg-copy input:focus { outline: 0; }

/* Address block */
.wg-addr {
  padding: 13px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px dashed rgba(196, 159, 53, .35);
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--acc);
  line-height: 1.6;
}

.wg-qr {
  width: 176px;
  height: 176px;
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: var(--r);
  background: #fff;
}
.wg-qr img { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   24. Spin & win
   -------------------------------------------------------------------------- */
.wg-spin-stage { text-align: center; }

.wg-spin-wrap {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 1;
  margin: 6px auto 0;
}

/* Pointer sits at 12 o'clock — the wheel rotates beneath it. */
.wg-spin-pointer {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid var(--acc);
  filter: drop-shadow(0 3px 8px rgba(196, 159, 53, .55));
}

.wg-spin-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid var(--surface-4);
  box-shadow: 0 0 0 3px rgba(196, 159, 53, .25), var(--sh-3), inset 0 0 40px rgba(0, 0, 0, .55);
  /* Neutral slate segments, with the two top prizes picked out in brand gold. */
  background: conic-gradient(
    #262A31   0deg  45deg,
    #171A20  45deg  90deg,
    #262A31  90deg 135deg,
    #171A20 135deg 180deg,
    #262A31 180deg 225deg,
    #171A20 225deg 270deg,
    #4A3B14 270deg 315deg,
    #6E5719 315deg 360deg
  );
  transform: rotate(0deg);
  will-change: transform;
}

.wg-spin-wheel.is-spinning {
  transition: transform 4.6s cubic-bezier(.16, .84, .28, 1);
}

/* Spokes between the segments. */
.wg-spin-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, .14) 0deg 0.6deg,
    transparent 0.6deg 45deg
  );
  pointer-events: none;
}

.wg-spin-label {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}

.wg-spin-label span {
  margin-top: 20px;
  font-family: var(--f-dis);
  font-size: 14px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  font-variant-numeric: tabular-nums;
}

.wg-spin-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  border: 4px solid var(--surface);
  box-shadow: var(--sh-2);
  z-index: 2;
}
.wg-spin-hub svg { width: 25px; height: 25px; }

.wg-spin-result {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--r);
  background: linear-gradient(120deg, rgba(196, 159, 53, .18), rgba(196, 159, 53, .05));
  border: 1px dashed rgba(196, 159, 53, .45);
  animation: wg-in-up .4s var(--e);
}
.wg-spin-result span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-2);
}
.wg-spin-result b {
  font-family: var(--f-dis);
  font-size: 30px;
  font-weight: 800;
  color: var(--acc);
  letter-spacing: -.04em;
}

/* Compact daily-rewards strip */
.wg-daily {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
@media (max-width: 560px) {
  .wg-daily { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-daily-item:last-child { grid-column: span 2; }
}

.wg-daily-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 11px;
  background: var(--surface);
  color: inherit;
  transition: background var(--t-fast);
}
a.wg-daily-item:hover { background: var(--surface-2); }

.wg-daily-ico {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c, var(--acc)) 15%, transparent);
  color: var(--c, var(--acc));
}
.wg-daily-ico svg { width: 14px; height: 14px; }

.wg-daily-txt { min-width: 0; line-height: 1.3; }
.wg-daily-txt b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-daily-txt > span {
  font-size: 10.5px;
  color: var(--txt-3);
  white-space: nowrap;
}
.wg-daily-txt .wg-allowance-dots { display: flex; gap: 3px; margin-top: 4px; }
.wg-daily-txt .wg-allowance-dots i { width: 14px; height: 4px; }

.wg-daily-item.is-live .wg-daily-txt > span { color: var(--gold); font-weight: 600; }

.wg-daily-pip {
  position: absolute;
  top: 8px; right: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: wg-pulse 1.8s ease-out infinite;
}

/* Daily allowance meter */
.wg-allowance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.wg-allowance-dots { display: flex; gap: 5px; }
.wg-allowance-dots i {
  width: 22px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--surface-4);
}
.wg-allowance-dots i.is-used { background: var(--acc); }
.wg-allowance-txt { font-size: 12px; color: var(--txt-2); }
.wg-allowance-txt b { color: var(--txt); font-weight: 700; }

/* --------------------------------------------------------------------------
   25. Language picker  (+ Google widget suppression)
   -------------------------------------------------------------------------- */
.wg-langpick { position: relative; flex-shrink: 0; }

.wg-langpick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.wg-langpick-btn:hover { color: var(--txt); border-color: var(--line-2); background: var(--surface-3); }
.wg-langpick-btn svg { width: 16px; height: 16px; }
.wg-langpick-btn svg:last-child { width: 13px; height: 13px; opacity: .7; }
.wg-langpick-cur { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) { .wg-langpick-cur { display: none; } }

.wg-langpick-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 268px;
  max-width: calc(100vw - 24px);
  border-radius: var(--r);
  background: rgba(16, 21, 29, .98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
  overflow: hidden;
}
.wg-langpick.is-open .wg-langpick-menu { opacity: 1; visibility: visible; transform: none; }

[dir="rtl"] .wg-langpick-menu { right: auto; left: 0; }

/* On narrow screens the picker sits near the left of the header, so a menu
   anchored to it would hang off the viewport. Pin it to the screen instead. */
@media (max-width: 620px) {
  .wg-langpick-menu {
    position: fixed;
    top: calc(var(--topbar-h) + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  [dir="rtl"] .wg-langpick-menu { left: 12px; right: 12px; }
  .wg-langpick-scroll { max-height: min(56vh, 380px); }
}

.wg-langpick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.wg-langpick-search svg { width: 15px; height: 15px; color: var(--txt-3); flex-shrink: 0; }
.wg-langpick-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--txt);
  font-size: 13px;
  font-family: var(--f-ui);
}
.wg-langpick-search input:focus { outline: 0; }

.wg-langpick-scroll { max-height: 320px; overflow-y: auto; padding: 6px; }

.wg-langpick-group {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-3);
  padding: 10px 8px 5px;
}

.wg-langpick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--txt-2);
  font-size: 13px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.wg-langpick-item:hover { color: var(--txt); background: var(--surface-3); }
.wg-langpick-item.is-active { color: var(--acc); font-weight: 700; background: var(--acc-soft); }
.wg-langpick-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-langpick-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.wg-langpick-flag { font-size: 15px; line-height: 1; width: 20px; flex-shrink: 0; display: grid; place-items: center; }
.wg-langpick-flag svg { width: 14px; height: 14px; color: var(--txt-3); }

.wg-langpick-empty { padding: 18px 10px; text-align: center; font-size: 12px; color: var(--txt-3); }

.wg-langpick-foot {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--txt-3);
  background: rgba(0, 0, 0, .2);
}

/* --- Google Website Translator: strip its chrome -------------------------
   The widget injects a grey toolbar and pushes <body> down with an inline
   top offset, which would shove our fixed header off-screen. */
.goog-te-banner-frame,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }

body { top: 0 !important; position: static !important; }
.skiptranslate > iframe { display: none !important; visibility: hidden !important; height: 0 !important; }

/* Google marks translated text with a highlight; suppress it. */
font[style], .goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* --------------------------------------------------------------------------
   26. Right-to-left
   -------------------------------------------------------------------------- */
[dir="rtl"] .wg-sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
[dir="rtl"] .wg-sidebar.is-open { transform: none; }
@media (min-width: 992px) {
  [dir="rtl"] .wg-sidebar { transform: none; }
  [dir="rtl"] .wg-main { padding-left: 0; padding-right: var(--sidebar-w); }
}

[dir="rtl"] .wg-navlink.is-active::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }
[dir="rtl"] .wg-match::before,
[dir="rtl"] .wg-ticket::before,
[dir="rtl"] .wg-toast::before { left: auto; right: 0; }
[dir="rtl"] .wg-navlink.is-active { background: linear-gradient(270deg, var(--acc-soft), transparent); }
[dir="rtl"] .wg-slip-head { background: linear-gradient(270deg, var(--acc-soft), transparent); }

[dir="rtl"] .wg-input-wrap .wg-input-ico { left: auto; right: 13px; }
[dir="rtl"] .wg-input-wrap .wg-input-ico ~ .wg-input { padding-left: 14px; padding-right: 42px; }
[dir="rtl"] .wg-input-btn { right: auto; left: 6px; }
[dir="rtl"] select.wg-input { background-position: left 13px center; padding-right: 14px; padding-left: 38px; }

[dir="rtl"] .wg-back svg,
[dir="rtl"] .wg-section-link svg,
[dir="rtl"] .wg-match-cta svg,
[dir="rtl"] .wg-list-item > svg:last-child { transform: scaleX(-1); }

[dir="rtl"] .wg-copy { padding: 5px 13px 5px 5px; }
[dir="rtl"] .wg-toasts { right: 12px; left: 12px; }
@media (min-width: 640px) { [dir="rtl"] .wg-toasts { left: 12px; right: auto; } }

[dir="rtl"] .wg-slip-fab { right: auto; left: 14px; }
[dir="rtl"] .wg-stat::after { right: auto; left: -28px; }
[dir="rtl"] .wg-odd-hot { right: auto; left: 4px; }
[dir="rtl"] .wg-daily-pip { right: auto; left: 9px; }

/* Latin numerals stay LTR inside RTL text so money never reads backwards. */
[dir="rtl"] .num,
[dir="rtl"] .wg-balance-val,
[dir="rtl"] .wg-stat-val,
[dir="rtl"] .wg-odd-val,
[dir="rtl"] .wg-odd-score,
[dir="rtl"] .wg-slip-payout b,
[dir="rtl"] .wg-addr,
[dir="rtl"] .wg-countdown { direction: ltr; unicode-bidi: embed; }

/* --------------------------------------------------------------------------
   27. Utilities
   -------------------------------------------------------------------------- */
.wg-grid    { display: grid; gap: 12px; }
.wg-g2      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .wg-md-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .wg-lg-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.wg-flex    { display: flex; align-items: center; gap: 10px; }
.wg-spacer  { flex: 1; }
.wg-wrap    { flex-wrap: wrap; }

.wg-t-c { text-align: center; }
.wg-t-r { text-align: right; }

.wg-fs-11 { font-size: 11px; }
.wg-fs-12 { font-size: 12px; }
.wg-fs-13 { font-size: 13px; }

.wg-c-2    { color: var(--txt-2); }
.wg-c-3    { color: var(--txt-3); }
.wg-c-acc  { color: var(--acc); }
.wg-c-err  { color: var(--err); }
.wg-c-warn { color: var(--warn); }
.wg-c-blue { color: var(--blue); }

.wg-fw-6 { font-weight: 600; }
.wg-fw-7 { font-weight: 700; }

.wg-mt-0 { margin-top: 0; }
.wg-mt-1 { margin-top: 8px; }
.wg-mt-2 { margin-top: 14px; }
.wg-mt-3 { margin-top: 22px; }
.wg-mb-1 { margin-bottom: 8px; }
.wg-mb-2 { margin-bottom: 14px; }
.wg-mb-3 { margin-bottom: 22px; }

.wg-hide { display: none !important; }
@media (max-width: 575px)  { .wg-hide-xs { display: none !important; } }
@media (max-width: 991px)  { .wg-hide-md { display: none !important; } }
@media (min-width: 1200px) { .wg-hide-xl { display: none !important; } }

.wg-page-head { margin-bottom: 18px; }
.wg-page-head h2 { font-size: 22px; letter-spacing: -.035em; }
.wg-page-head p { font-size: 13px; color: var(--txt-2); margin-top: 4px; }

.wg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt-2);
  margin-bottom: 12px;
  transition: color var(--t-fast);
}
.wg-back:hover { color: var(--acc); }
.wg-back svg { width: 15px; height: 15px; }

.wg-note {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--txt-2);
  line-height: 1.55;
}
.wg-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--c, var(--blue)); }
.wg-note--warn { --c: var(--warn); border-color: rgba(224, 138, 43, .3); background: rgba(224, 138, 43, .06); }
.wg-note--err  { --c: var(--err);  border-color: rgba(255, 51, 85, .3);  background: rgba(255, 51, 85, .06); }
.wg-note--ok   { --c: var(--acc);  border-color: rgba(196, 159, 53, .3);  background: rgba(196, 159, 53, .06); }

.wg-footer {
  margin-top: 34px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.wg-footer p { font-size: 11.5px; color: var(--txt-3); }
.wg-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}
.wg-footer-links a { font-size: 12px; color: var(--txt-2); transition: color var(--t-fast); }
.wg-footer-links a:hover { color: var(--acc); }

.wg-18 {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--txt-3);
  color: var(--txt-3);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Mobile GPU safety
   --------------------------------------------------------------------------
   backdrop-filter forces the compositor to re-sample and blur everything
   behind an element on every frame. On the fixed top bar and bottom nav that
   happens continuously while scrolling, and a number of Android GPU drivers
   (Mali and older Adreno especially) corrupt those tiles under memory
   pressure — producing torn horizontal bands of repeated pixels while the DOM
   underneath is perfectly fine.

   On a dark theme the blur is barely perceptible anyway, so below the desktop
   breakpoint we swap it for a near-opaque background. Same look, no per-frame
   resample, no artefacts.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .wg-topbar,
  .wg-bottomnav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .wg-topbar    { background: #080C12; }
  .wg-bottomnav { background: #080C12; }

  .wg-toast,
  .wg-langpick-menu {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .wg-toast         { background: #141C28; }
  .wg-langpick-menu { background: #10151D; }

  .wg-modal,
  .wg-scrim {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .wg-modal { background: rgba(3, 6, 10, .86); }
  .wg-scrim { background: rgba(0, 0, 0, .7); }

  /* The marquee repaints forever; pausing it off-screen removes a constant
     source of recomposition on the same devices. */
  .wg-ticker-track { animation-play-state: running; }
}

/* Reveal on scroll.
   Driven by an animation rather than a transition: a transition that starts
   while the tab is throttled can stall at its from-value and leave content
   stuck invisible, whereas `forwards` always resolves to the end state. */
.wg-reveal { opacity: 0; }
.wg-reveal.is-in { animation: wg-reveal-in .5s var(--e) forwards; }

@keyframes wg-reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .wg-reveal, .wg-reveal.is-in { opacity: 1; transform: none; animation: none; }
}
