/* lotusfair365.com skin — tokens from live theme.css + index CSS, header overlay #0f4f40 */
:root {
  --lf-header: #0f4f40;
  --lf-header-2: #198669;
  --lf-signup: #c10931;
  --lf-inplay: #860a22;
  --lf-back: #a7d8fd;
  --lf-lay: #f9c9d4;
  --lf-deposit: #17c964;
  --lf-withdraw: #6e081d;
  --lf-body: #f2f2f2;
  --lf-side: #ffffff;
  --lf-text: #1c1c1c;
  --lf-muted: #8b8b8b;
  --lf-live: #29ab2b;
  --lf-up: #ea580c;
  --lf-nav-h: 64px;
  --lf-strip-h: 36px;
  --lf-pills-h: 44px;
  --lf-chrome-top: calc(var(--lf-nav-h) + var(--lf-strip-h) + var(--lf-pills-h));
  --lf-page-max: 1280px;
  --ag-bg-0: var(--lf-body);
  --ag-text: var(--lf-text);
  --ag-gold: var(--lf-header);
  --ag-gold-bright: #fff;
  --ag-back: var(--lf-back);
  --ag-lay: var(--lf-lay);
}

html, body {
  margin: 0;
  background: var(--lf-body);
  color: var(--lf-text);
  font-family: "Oxanium", Inter, Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, .lf-board-h, .lf-btn, .lf-pills a, .ag-pill, .lf-tile {
  font-family: "Syne", "Oxanium", sans-serif;
}
.lf-cell, .lf-wallet b, .lf-odds, .lf-chips button {
  font-family: "Oxanium", monospace, sans-serif;
}

.ag-app, .lf-app {
  min-height: 100dvh;
  background: var(--lf-body);
  color: var(--lf-text);
}

.lf-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--lf-nav-h);
  background: linear-gradient(90deg, var(--lf-header), var(--lf-header-2));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.lf-logo {
  display: flex;
  align-items: center;
  height: 42px;
  flex: 0 0 auto;
}
.lf-logo img { height: 36px; width: auto; display: block; }
.lf-search {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.lf-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  box-sizing: border-box;
}
.lf-search-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  max-height: 280px;
  overflow: auto;
}
.lf-search-hit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: #1c1c1c;
  border-bottom: 1px solid #f0f0f0;
}
.lf-search-hit:hover { background: #f5faff; }
.lf-search-hit span {
  font-size: 11px;
  color: #8b8b8b;
  text-transform: capitalize;
}
.lf-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
}
.lf-clock { opacity: 0.9; text-align: right; line-height: 1.2; }
.lf-btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.lf-btn-login { background: #fff; color: var(--lf-header); }
.lf-btn-signup { background: var(--lf-signup); color: #fff; }
.lf-btn-deposit { background: var(--lf-deposit); color: #fff; }
.lf-btn-withdraw { background: var(--lf-withdraw); color: #fff; }
.lf-wallet { display: flex; gap: 8px; font-size: 11px; align-items: center; }
.lf-wallet-chip {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.25;
  white-space: nowrap;
}
.lf-wallet-chip b {
  display: block;
  font-size: 13px;
  color: #fff;
  font-weight: 800;
}

.lf-pills {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  position: sticky;
  top: calc(var(--lf-nav-h) + var(--lf-strip-h));
  z-index: 110;
}
.lf-pills a, .ag-pill {
  flex: 0 0 auto;
  background: #f3f4f6;
  color: #292929;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.lf-pills a.is-active, .ag-pill.is-active { background: var(--lf-header); color: #fff; }

.lf-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100dvh - var(--lf-chrome-top));
}
.lf-body.has-open-bets { grid-template-columns: 220px minmax(0, 1fr) 220px; }
.lf-body.has-slip.has-open-bets { grid-template-columns: 220px minmax(0, 1fr) 220px 280px; }
.lf-body.has-slip:not(.has-open-bets) { grid-template-columns: 220px minmax(0, 1fr) 300px; }
.lf-open-bets {
  background: #fff;
  border-left: 1px solid #ececec;
  padding: 12px;
  font-size: 13px;
  position: sticky;
  top: var(--lf-chrome-top);
  align-self: start;
  max-height: calc(100dvh - var(--lf-chrome-top));
  overflow: auto;
  z-index: 35;
}
.lf-open-bets h3 { margin: 0 0 8px; font-size: 14px; color: #860a22; }
.lf-open-row { font-size: 12px; padding: 6px 0; border-bottom: 1px solid #eee; }
.lf-chip-icons { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.lf-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}
.lf-chip-f { background: #dbeafe; color: #1d4ed8; }
.lf-chip-bm { background: #fce7f3; color: #9d174d; }
.lf-chip-pf { background: #fef3c7; color: #b45309; }
.lf-notice {
  background: #fff8e6;
  border: 1px solid #f5d78e;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  margin: 8px 12px 0;
}
.lf-side, .ag-sidebar {
  background: var(--lf-side);
  border-right: 1px solid #ececec;
  padding: 8px 0;
}
.lf-side a, .ag-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #1c1c1c;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f3f3f3;
}
.lf-side a.is-active,
.ag-sidebar a.is-active {
  background: #eef7f4;
  font-weight: 700;
  border-left: 3px solid var(--lf-header);
  padding-left: 13px;
}
.lf-side a:hover,
.ag-sidebar a:hover { background: #f7f7f7; }
.lf-main, .ag-shell {
  padding: 12px;
  min-width: 0;
}
.lf-bets {
  background: #fff;
  border-left: 1px solid #ececec;
  padding: 12px;
  font-size: 13px;
  color: #333;
  position: sticky;
  top: var(--lf-chrome-top);
  align-self: start;
  max-height: calc(100dvh - var(--lf-chrome-top));
  overflow: auto;
  z-index: 40;
}
.lf-bets h3 { margin: 0 0 8px; font-size: 14px; color: #860a22; }
.lf-slip-side {
  display: inline-block;
  background: #860a22;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}
.lf-slip.is-back .lf-slip-side { background: #1d4ed8; }
.lf-slip-meta { font-size: 12px; color: #555; }
.lf-slip-math { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; }
.lf-place {
  background: #860a22;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}
.lf-place:disabled { opacity: 0.55; cursor: not-allowed; }
.lf-tile img, .lf-side img { width: 22px; height: 22px; object-fit: contain; }
.lf-game img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.ag-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; }

.lf-board.is-up .lf-board-h {
  background: linear-gradient(90deg, var(--lf-header), var(--lf-header-2));
}
.lf-board-h a { color: #fff; text-decoration: none; font-size: 13px; }
.lf-hero-wrap {
  position: relative;
  width: 100%;
  height: 11.25rem;
  margin: 0.75rem 0 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #0b3d32;
}
.lf-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.lf-hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}
.lf-hero-slide a { display: block; height: 100%; }
.lf-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.lf-hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.lf-hero-dots button {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.lf-hero-dots button.is-on {
  width: 22px;
  background: #e8b830;
}
.lf-hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lf-header), var(--lf-header-2));
  z-index: 6;
  transition: width 0.05s linear;
}
.lf-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.lf-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
  font-size: 13px;
  min-height: 52px;
}
.lf-tile:nth-child(1) { background: #1d4ed8; }
.lf-tile:nth-child(2) { background: #7c3aed; }
.lf-tile:nth-child(3) { background: #0f766e; }
.lf-tile:nth-child(4) { background: #15803d; }
.lf-tile:nth-child(5) { background: #be123c; }
.lf-tile:nth-child(6) { background: #1e3a8a; }
.lf-tile:nth-child(7) { background: #b45309; }
.lf-tile:nth-child(8) { background: #830722; }

.lf-promo {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  margin: 8px 0;
}
.lf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 16px;
}
.lf-split a {
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  text-decoration: none;
}
.lf-split a:first-child { background: #0f4f40; }
.lf-split a:last-child { background: #198669; }

.lf-orig-tabs { display: flex; gap: 16px; font-weight: 700; margin: 8px 0; }
.lf-orig-tabs a { color: #333; text-decoration: none; }
.lf-orig-tabs a.is-on { color: var(--lf-signup); border-bottom: 2px solid var(--lf-signup); }
.lf-games {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.lf-game {
  background: #111827;
  color: #fff;
  border-radius: 10px;
  min-height: 140px;
  padding: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-weight: 800;
  font-size: 13px;
}
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ag-card, .lf-game { box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.lf-board { background: #fff; border-radius: 8px; overflow: hidden; margin-top: 12px; }
.lf-board-h {
  background: var(--lf-inplay);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-weight: 700;
}
.lf-sport-h {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 420px);
  padding: 8px 12px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.lf-sport-h .lf-sport-name { display: flex; align-items: center; gap: 8px; text-transform: capitalize; }
.lf-sport-h .lf-sport-name img { width: 22px; height: 22px; object-fit: contain; }
.lf-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 420px);
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  align-items: stretch;
}
.lf-123 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 12px; }
.lf-row:hover { background: #fafafa; }
.lf-meta { padding: 8px 12px; }
.lf-tv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 30px;
  background: #e8e8e8;
  border-radius: 4px;
  padding: 4px 8px;
  margin: 4px 0;
  font-size: 12px;
}
.lf-tv-badge {
  background: #860a22;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
}
.lf-tv-vs { color: #8b8b8b; font-weight: 600; font-size: 12px; }
.lf-live { color: var(--lf-live); font-weight: 700; font-size: 12px; }
.lf-score {
  background: #0f4f40;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.lf-score .lead { opacity: 0.85; font-size: 12px; margin-top: 6px; }
.lf-up { color: var(--lf-up); font-size: 12px; font-weight: 700; }
.lf-teams { font-weight: 600; line-height: 1.35; }
.lf-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
}
.lf-cell, .odd-back, .odd-lay {
  border: 0;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: #000;
}
.odd-back, .lf-cell.back { background: var(--lf-back); }
.odd-lay, .lf-cell.lay { background: var(--lf-lay); }
.lf-cell.is-best { outline: 2px solid #0f4f40; outline-offset: -1px; z-index: 1; position: relative; }
.lf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lf-cell small { font-weight: 500; opacity: 0.7; font-size: 10px; }
.lf-sus { background: #1e3f5a1a; color: #1e3f5a; font-size: 11px; }

.lf-media {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.lf-tv-player {
  position: relative;
  background: #0b3d32;
  color: #fff;
  border-radius: 8px;
  min-height: 160px;
  overflow: hidden;
}
.lf-tv-player video {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #0b3d32;
}
.lf-tv-player .lf-tv-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
}
.lf-tv-player .muted {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 11px;
  opacity: 0.85;
  z-index: 3;
}
.lf-tv-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-weight: 800;
  font-size: 12px;
  z-index: 2;
}
.lf-mkt {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 12px;
}
.lf-mkt-h {
  background: var(--lf-inplay);
  color: #fff;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}
.lf-mkt.is-up .lf-mkt-h {
  background: linear-gradient(90deg, var(--lf-header), var(--lf-header-2));
}
.lf-ladder {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(280px, 1.2fr);
  border-bottom: 1px solid #eee;
  align-items: stretch;
}
.lf-ladder-name { padding: 8px 12px; font-weight: 700; }
.lf-ladder-odds {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 4px;
}
.lf-ladder-cols {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(280px, 1.2fr);
  align-items: center;
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
  font-size: 11px;
  font-weight: 800;
  color: #555;
}
.lf-ladder-cols-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  padding: 4px 6px;
}
.lf-ladder-cols-labels span:first-child { color: #0b4a7a; }
.lf-ladder-cols-labels span:last-child { color: #8a1f3a; }
.lf-cell .lf-size {
  display: block;
  font-weight: 500;
  opacity: 0.7;
  font-size: 10px;
  line-height: 1.1;
  min-height: 11px;
}
.lf-board-empty {
  padding: 12px;
  color: #8b8b8b;
  font-size: 13px;
}
.lf-pf-tabs { display: flex; flex-wrap: wrap; gap: 0; background: #fff; }
.lf-pf-tabs button {
  border: 1px solid #e6e6e6;
  border-bottom: 2px solid #e6e6e6;
  background: #fff;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  color: #666;
}
.lf-pf-tabs button.is-on {
  border-color: #d55c76;
  border-bottom-color: #d55c76;
  color: #860a22;
}
.lf-balls { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.lf-balls span {
  background: #fff;
  color: #0f4f40;
  min-width: 22px;
  text-align: center;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 4px;
}
@media (max-width: 760px) {
  .lf-media { grid-template-columns: 1fr; }
}

.ag-table { width: 100%; border-collapse: collapse; background: #fff; }
.ag-table th { background: #ececec; text-align: left; padding: 8px; font-size: 12px; }
.ag-table td { padding: 8px; border-bottom: 1px solid #eee; }
.ag-btn {
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}
.ag-btn-primary { background: var(--lf-inplay); color: #fff; }
.ag-page h1 { font-size: 20px; margin: 0 0 8px; }
.ag-page .lead { color: var(--lf-muted); margin-top: 0; }
.ag-chip { background: #fff2; padding: 4px 8px; border-radius: 999px; }
.ag-quicknav { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.ag-dock, .lf-dock {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 100;
}
.ag-topnav { display: none; }
.dt-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 12px;
  min-height: var(--lf-strip-h);
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: var(--lf-nav-h);
  z-index: 115;
}
.dt-strip span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #444;
}
.dt-strip span.is-on { background: var(--lf-header); color: #fff; }

.lf-modal {
  position: fixed;
  inset: 0;
  background: #00000066;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lf-modal-card {
  background: #fff;
  border-radius: 12px;
  width: min(380px, 92vw);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
}
.lf-modal-head {
  background: linear-gradient(90deg, var(--lf-header), var(--lf-header-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 15px;
}
.lf-modal-close {
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.lf-modal-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.lf-modal form, .lf-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: min(360px, 92vw);
  display: grid;
  gap: 10px;
}
.lf-modal input, .form-control, .lf-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
}
.lf-modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e6e6e6;
}
.lf-modal-tabs button {
  flex: 1;
  border: 0;
  background: #f5f5f5;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  color: #666;
}
.lf-modal-tabs button.is-on {
  background: #fff;
  color: var(--lf-header);
  border-bottom: 2px solid var(--lf-header);
}
.lf-casino-sec {
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lf-casino-sec h2 {
  margin: 0;
  font-size: 16px;
  color: var(--lf-header);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lf-casino-sec a {
  font-size: 12px;
  color: var(--lf-signup);
  text-decoration: none;
  font-weight: 700;
}
.ag-card-body {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.ag-card-body span { color: #8b8b8b; font-size: 10px; text-transform: uppercase; }
.lf-slip-toggle {
  display: none;
  border: 0;
  background: #860a22;
  color: #fff;
  width: 100%;
  padding: 8px;
  font-weight: 800;
  cursor: pointer;
  font-size: 12px;
}
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-chips button { background: #eee; border: 0; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-weight: 700; }
.lf-slip { background: #fff; border: 1px solid #e28fa1; padding: 12px; margin-top: 8px; border-radius: 8px; display: grid; gap: 8px; }
.lf-slip.is-back { border-color: #a7d8fd; background: #ebf1ff; }
.lf-slip.is-lay { border-color: #e28fa1; background: #f9e7eb; }
.bn-ok { background: #dcfce7; padding: 8px; border-radius: 6px; }
.lf-menu {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
}

.lf-footer {
  background: var(--lf-header);
  color: #fff;
  padding: 20px 16px 72px;
  margin-top: auto;
}
.lf-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.lf-footer h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.lf-footer a { color: rgba(255,255,255,.85); text-decoration: none; display: block; font-size: 12px; padding: 3px 0; }
.lf-footer a:hover { color: #fff; }
.lf-footer-copy { text-align: center; font-size: 11px; opacity: 0.7; margin-top: 16px; }
.lf-winners {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0 12px;
  border: 1px solid #ececec;
}
.lf-winners-h {
  background: var(--lf-inplay);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}
.lf-winners-track {
  display: flex;
  gap: 24px;
  padding: 8px 12px;
  overflow: hidden;
  white-space: nowrap;
  animation: lf-scroll 28s linear infinite;
  font-size: 12px;
}
@keyframes lf-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.lf-rtab {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin: 8px 0;
  border-bottom: 2px solid #e6e6e6;
}
.lf-rtab button {
  border: 0;
  background: none;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.lf-rtab button.is-on { color: var(--lf-header); border-bottom-color: var(--lf-header); }
.lf-pay-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.lf-pay-tile {
  background: #fff;
  border: 2px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  font-weight: 700;
  font-size: 12px;
}
.lf-pay-tile img { width: 40px; height: 40px; object-fit: contain; }
.lf-pay-tile.is-on { border-color: var(--lf-header); background: #eef7f4; }
.lf-score-title { font-size: 16px; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.lf-game-search { position: relative; margin: 0 0 12px; }
.lf-game-search-bar { display: flex; align-items: center; gap: 8px; }
.lf-game-search-bar input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.lf-game-search-clear {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
.lf-game-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 130;
  padding: 10px;
  max-height: 320px;
  overflow: auto;
}
.lf-game-search-count { margin: 0 0 8px; font-size: 12px; color: #666; }
.lf-game-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.lf-game-search-hit {
  display: grid;
  gap: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
}
.lf-game-search-hit img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f0f0f0;
}
.lf-notif { position: relative; }
.lf-notif-bell {
  position: relative;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lf-notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e74c3c;
}
.lf-notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, 90vw);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 200;
  max-height: 280px;
  overflow: auto;
}
.lf-notif-head {
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  color: var(--lf-header);
}
.lf-notif-row {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f2f2f2;
  color: #333;
}
.lf-notif-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: transparent;
  z-index: 199;
  cursor: default;
}
.lf-mac88-table {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.lf-mac88-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}
.lf-mac88-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}
.lf-mac88-name img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.lf-mac88-play { flex-shrink: 0; padding: 6px 16px; font-size: 12px; }
.lf-mac88-skel-block {
  display: inline-block;
  background: linear-gradient(90deg, #eee 0%, #f5f5f5 50%, #eee 100%);
  background-size: 200% 100%;
  animation: lfMac88Skel 1.2s linear infinite;
  border-radius: 4px;
}
.lf-mac88-skel-icon { width: 32px; height: 32px; }
.lf-mac88-skel-text { width: 120px; height: 14px; }
.lf-mac88-skel-btn { width: 52px; height: 28px; flex-shrink: 0; }
@keyframes lfMac88Skel {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.lobby-slider-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
  scrollbar-width: none;
}
.lobby-slider-wrap::-webkit-scrollbar { display: none; }
.lobby-slider {
  display: flex;
  gap: 8px;
  width: max-content;
  padding-bottom: 2px;
}
.lf-lobby-provider {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--lf-header);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lf-lobby-provider:hover {
  border-color: var(--lf-header);
  background: #f0fdf4;
}

/* Desktop — lotusfair365.com uses a ~1280px centered container */
@media (min-width: 1220px) {
  html {
    background: #dfe3e8;
  }

  .ag-app,
  .lf-app {
    max-width: var(--lf-page-max);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.08);
  }

  .lf-hero-wrap {
    height: auto;
    aspect-ratio: 1024 / 460;
    max-height: 440px;
  }

  .lf-games {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .lf-game img {
    height: 130px;
  }

  .lf-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lf-row,
  .lf-sport-h {
    grid-template-columns: minmax(200px, 1fr) 400px;
  }

  .lf-main,
  .ag-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 1100px) {
  .lf-body { grid-template-columns: 56px minmax(0,1fr); }
  .lf-body.has-open-bets { grid-template-columns: 56px minmax(0,1fr) 200px; }
  .lf-body.has-slip.has-open-bets { grid-template-columns: 56px minmax(0,1fr) 200px 260px; }
  .lf-body.has-slip:not(.has-open-bets) { grid-template-columns: 56px minmax(0,1fr) 260px; }
  .lf-side a span { display: none; }
  .lf-games { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lf-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lf-pills { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .lf-header, .lf-pills, .dt-strip {
    position: sticky;
    top: 0;
    z-index: 120;
  }
  .lf-pills { top: calc(56px + var(--lf-strip-h)); z-index: 119; }
  .dt-strip { top: 56px; z-index: 118; }
  .lf-menu { display: inline-flex; }
  .lf-header { height: auto; min-height: 56px; padding: 8px 10px; flex-wrap: wrap; }
  .lf-logo img { height: 28px; }
  .lf-wallet { flex-direction: column; gap: 0; font-size: 10px; }
  .lf-wallet b { font-size: 11px; }
  .lf-btn { padding: 6px 8px; font-size: 11px; }
  .lf-body { grid-template-columns: 1fr; padding-bottom: 80px; }
  .lf-body.has-slip { padding-bottom: 240px; }
  .lf-body.has-open-bets { padding-bottom: 120px; }
  .lf-open-bets {
    display: none;
  }
  .lf-bets {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 130;
    max-height: 42vh;
    overflow: auto;
    border-top: 3px solid #860a22;
  }
  .lf-side, .ag-sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 80%;
    z-index: 150;
  }
  .lf-side.is-open, .ag-sidebar.is-open { display: block; }
  .lf-search { display: none; }
  .lf-header-right .lf-clock { display: none; }
  .ag-dock, .lf-dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    padding: 8px 0;
  }
  .ag-dock a, .lf-dock a {
    text-decoration: none;
    color: #333;
    font-size: 11px;
    padding: 4px 2px;
  }
  .ag-dock a.is-active, .lf-dock a.is-active {
    color: var(--lf-header);
    font-weight: 800;
    border-top: 2px solid var(--lf-header);
    padding-top: 2px;
  }
  .lf-slip-toggle { display: block; }
  .lf-bets.is-collapsed {
    max-height: 40px;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
  }
  .lf-bets.is-collapsed .lf-slip,
  .lf-bets.is-collapsed > p { display: none; }
  .lf-open-bets-mobile {
    display: block;
    position: fixed;
    right: 8px;
    bottom: 56px;
    z-index: 125;
    background: var(--lf-header);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }
  .lf-games { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lf-tiles { grid-template-columns: 1fr 1fr; }
  .lf-split { grid-template-columns: 1fr; }
  .lf-hero-wrap { height: 8.5rem; }
  .lf-row, .lf-sport-h { grid-template-columns: 1fr; }
  .lf-odds { grid-template-columns: repeat(3, 1fr); min-width: 0; }
  .lf-ladder { grid-template-columns: minmax(0,1fr) minmax(140px, 1fr); }
  .lf-ladder-cols { grid-template-columns: minmax(0,1fr) minmax(140px, 1fr); }
  .lf-ladder-odds { grid-template-columns: 1fr 1fr; }
  /* Collapse depth depth on mobile, but keep suspended dashes visible. */
  .lf-ladder-odds .lf-cell:not(.is-best):not(.lf-sus) { display: none; }
  .lf-ladder-odds .lf-cell.lf-sus { display: flex; align-items: center; justify-content: center; }
  .lf-tv-player video { height: 180px; }
  .ag-page h1 { font-size: 16px; }
  .lf-pills { top: 56px; }
}
