/* Local stacks only — avoid Google Fonts blocking first paint */
/* Theme tokens from okbet.com bootstrap (light lobby) */
:root {
  --bg: #f6f7f8;
  --bg-2: #f7f7f7;
  --panel: #ffffff;
  --ink: #0d2245;
  --muted: #6d7693;
  --muted-2: #9dabc9;
  --primary: #025be8;
  --primary-soft: #2d7eff;
  --button: #025be8;
  --button-2: #74aaff;
  --register-top: #00a2ff;
  --register-bot: #0063ff;
  --orange: #ff8a00;
  --red: #e84f4a;
  --gold: #ffe23c;
  --line: #e4e8f0;
  --side: #184258;
  --shadow: 0 2px 12px rgba(13, 34, 69, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.01em; font-weight: 700; }

/* Top auth — matches official header Login / Register */
.loggedout-wrapper {
  position: fixed; top: 0; right: 0; left: 0; z-index: 300;
  height: 50px; display: flex; align-items: center; justify-content: flex-end;
  gap: 0.5rem; padding: 0 16px 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(13, 34, 69, 0.04);
}
.loggedout-wrapper .brand-chip {
  margin-right: auto; display: flex; align-items: center; gap: 0.5rem;
}
.loggedout-wrapper .brand-chip img { height: 28px; width: auto; }
.promo-btn {
  display: none;
  background: linear-gradient(180deg, #ff9a3c, var(--orange));
  color: #fff; border: none; border-radius: 31px;
  padding: 0.4rem 0.85rem; font-weight: 700; font-size: 12px; cursor: pointer;
}
.login-btn {
  background: transparent; border: 1px solid var(--primary);
  color: var(--primary); border-radius: 31px;
  padding: 0.35rem 1rem; font-weight: 600; font-size: 12px; cursor: pointer;
  height: 27px; display: inline-flex; align-items: center;
}
.register-btn {
  background: linear-gradient(360deg, var(--register-bot) 0%, var(--register-top) 100%);
  color: #fff; border: none; border-radius: 31px;
  padding: 0.35rem 1rem; font-weight: 600; font-size: 12px; cursor: pointer;
  height: 27px; display: inline-flex; align-items: center;
  box-shadow: 0 2px 8px rgba(2, 91, 232, 0.28);
}
.btn-lg {
  height: auto; padding: 0.75rem 1.25rem; font-size: 14px; border-radius: 12px;
}

.app-shell {
  display: grid; grid-template-columns: 200px 1fr;
  min-height: 100vh; padding-top: 50px;
}

/* Left sidebar — official dark-teal rail */
.ok-sidebar {
  position: sticky; top: 50px; height: calc(100vh - 50px);
  background: #0d2533;
  padding: 0.85rem 0.6rem; display: flex; flex-direction: column; gap: 0.65rem;
  color: #b7d0de; overflow-y: auto;
}
.sidebar-logo {
  display: grid; place-items: center; padding: 0.35rem 0 0.5rem;
}
.sidebar-logo img { height: 40px; width: auto; }
.mascot-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid #184258; background: #102d3d;
}
.mascot-card img { width: 100%; height: auto; }
.ok-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.ok-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.7rem; border-radius: 10px; font-size: 13px; font-weight: 500;
  color: #b7d0de; border: 1px solid transparent;
}
.ok-nav a:hover, .ok-nav a.active {
  color: #fff; background: rgba(45, 126, 255, 0.16);
  border-color: rgba(45, 126, 255, 0.28);
}
.ok-nav .arrow { opacity: .45; font-size: .7rem; }

.main-column { min-width: 0; background: var(--bg); }
.mobile-header {
  display: none; align-items: center; justify-content: space-between;
  padding: 0.65rem 1rem; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 50px; z-index: 50;
}
.mobile-header img { height: 32px; width: auto; }

.homepage-content {
  padding: 0.85rem 1rem 2rem;
  max-width: 1120px;
  background-image: url(/assets/img/ui/ob-ui-01.webp);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

/* Official-style hero strip (not marketing card) */
.lobby-intro {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.lobby-intro h1 {
  margin: 0; font-size: 1.05rem; color: var(--ink); font-weight: 700;
}
.lobby-intro p {
  margin: 0.2rem 0 0; color: var(--muted); font-size: 12px; max-width: 36rem;
}
.lobby-intro .hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* Banner track — wide 1400×330 style, image-only like official */
.promotion-featured { margin-bottom: 1.1rem; }
.promotion-featured h2,
.section h2 {
  margin: 0 0 0.55rem; font-size: 15px; font-weight: 700; color: var(--ink);
}
.promo-track {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.promo-track::-webkit-scrollbar { height: 4px; }
.promo-track::-webkit-scrollbar-thumb { background: #c5cddd; border-radius: 999px; }
.promo-card {
  flex: 0 0 min(88vw, 560px);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 1400 / 330;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  background: #0d2533;
  box-shadow: var(--shadow);
}
.promo-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.promo-card-overlay,
.promo-card-content,
.promo-badge { display: none; }

/* Category chips */
.cat-tabs {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.cat-tabs a {
  padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #fff; color: var(--muted); border: 1px solid var(--line);
}
.cat-tabs a:hover, .cat-tabs a.active {
  color: #fff; background: var(--primary); border-color: var(--primary);
}

.section { margin-bottom: 1.25rem; }
.feature-grid, .game-grid, .guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.6rem;
}
.feature-card, .game-card, .guide-card, .match-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem; box-shadow: none;
}
.feature-card h3, .game-card h3, .guide-card h3 {
  margin: 0 0 0.3rem; font-size: 13px; color: var(--ink);
}
.feature-card p, .game-card p, .guide-card p, .match-card {
  margin: 0; color: var(--muted); font-size: 12px;
}
.guide-card a, .blog-more { display: inline-block; margin-top: 0.45rem; color: var(--primary); font-weight: 600; font-size: 12px; }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.7rem;
}
.blog-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem; min-height: 150px;
}
.blog-card:hover { border-color: var(--primary-soft); box-shadow: var(--shadow); }
.blog-tag {
  align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--primary); background: #eef4ff;
  padding: 0.2rem 0.45rem; border-radius: 999px;
}
.blog-card h3 { margin: 0; font-size: 14px; color: var(--ink); }
.blog-card p { margin: 0; flex: 1; font-size: 12px; color: var(--muted); }
.blog-more { margin-top: auto; }
.game-card a, .guide-card a {
  display: inline-block; margin-top: 0.45rem; color: var(--primary);
  font-weight: 600; font-size: 12px;
}


.provider-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.55rem;
}
.provider-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: #0d2533; color: #fff; border-radius: 12px; padding: 0.75rem 0.5rem;
  border: 1px solid #184258; min-height: 88px; justify-content: center;
}
.provider-tile img {
  max-height: 28px; width: auto; max-width: 90%; object-fit: contain;
  filter: brightness(1.05);
}
.provider-tile span { font-size: 11px; font-weight: 600; color: #b7d0de; }
.provider-bar-wrap {
  margin: 0.75rem 0 0; background: #0d2533; border-radius: 12px; overflow: hidden;
  border: 1px solid #184258; padding: 0.5rem;
}
.provider-bar-wrap img { width: 100%; height: auto; object-fit: contain; max-height: 56px; margin: 0 auto; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.55rem;
}
.thumb-card {
  display: block; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.thumb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.thumb-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.jackpot-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1.1rem;
}
.jackpot-row a {
  border-radius: 12px; overflow: hidden; display: block;
  aspect-ratio: 2800 / 640; background: #0d2533;
}
.jackpot-row img { width: 100%; height: 100%; object-fit: cover; }

.seo-block {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem;
}
.seo-block h1 { margin: 0 0 0.45rem; font-size: 1.05rem; color: var(--ink); }
.seo-block p { margin: 0; color: var(--muted); font-size: 13px; }

.auth-shell {
  max-width: 400px; margin: 0.5rem auto 1.5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem;
}
.auth-shell h1 { margin: 0 0 0.35rem; color: var(--ink); font-size: 1.2rem; }
.article-lead { color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 0.7rem; margin-top: 0.9rem; }
.auth-form label { display: grid; gap: 0.3rem; font-size: 12px; font-weight: 600; color: var(--ink); }
.auth-form input {
  border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem;
  font: inherit; background: #fff;
}
.auth-note, .auth-links { margin: 0.75rem 0 0; font-size: 12px; color: var(--muted); }
.auth-links a { color: var(--primary); font-weight: 600; }

.blog-breadcrumb {
  display: flex; gap: 0.35rem; flex-wrap: wrap; color: var(--muted);
  font-size: 12px; margin-bottom: 0.7rem;
}
.blog-breadcrumb a { color: var(--primary); }
.article-body {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem;
}
.article-body h1 { margin-top: 0; color: var(--ink); font-size: 1.25rem; }
.article-body h2 { margin: 1.1rem 0 0.4rem; font-size: 1rem; color: var(--ink); }
.article-body p, .article-body li { color: var(--muted); font-size: 13px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.8rem;
  margin: 0.4rem 0; background: #fff;
}
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); }

.ok-footer {
  margin-top: 0.5rem; padding: 1.1rem 1rem 5rem;
  border-top: 1px solid var(--line); background: #fff;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; max-width: 1120px; }
.footer-title { margin: 0 0 0.4rem; font-weight: 700; color: var(--ink); font-size: 13px; }
.footer-text { margin: 0; color: var(--muted); font-size: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: 0.3rem; font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  margin-top: 0.85rem; color: var(--muted-2); font-size: 11px;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.footer-copy img { height: 18px; width: auto; }

.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  gap: 0.5rem; padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
}
.mobile-bar .login-btn, .mobile-bar .register-btn {
  flex: 1; justify-content: center; height: 36px; font-size: 13px;
}

.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.2rem; margin-bottom: 1rem;
}
.hero h1 { margin: 0 0 0.35rem; font-size: 1.25rem; color: var(--ink); }
.hero p { margin: 0 0 0.85rem; color: var(--muted); font-size: 13px; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-brand {
  margin: 0 0 0.25rem; font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--primary);
}
.hero-visual {
  border-radius: 12px; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); min-height: 140px;
  display: grid; place-items: center; padding: 0.5rem;
}
.hero-visual img { max-height: 180px; width: auto; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

/* Sports */
.sport-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.55rem;
}
.sport-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 0.5rem; font-size: 12px; font-weight: 600; color: var(--ink);
}
.sport-tile .ico { font-size: 1.6rem; line-height: 1; }
.sport-tile:hover { border-color: var(--primary-soft); box-shadow: var(--shadow); }

.odds-stack { display: grid; gap: 0.55rem; }
.odds-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 1rem;
}
.odds-head {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 0.35rem;
}
.odds-teams { margin: 0 0 0.65rem; font-size: 14px; font-weight: 700; color: var(--ink); }
.odds-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.odd-btn {
  flex: 1; min-width: 88px; display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; padding: 0.55rem 0.7rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.odd-btn strong { color: var(--primary); font-size: 13px; }
.odd-btn:hover { border-color: var(--primary); background: #eef4ff; }

/* Live tables */
.live-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.55rem;
}
.live-tile {
  display: flex; flex-direction: column; gap: 0.25rem;
  background: linear-gradient(160deg, #0d2533, #14384d);
  color: #fff; border-radius: 12px; padding: 0.9rem;
  min-height: 110px; border: 1px solid #184258;
}
.live-tag {
  align-self: flex-start; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; padding: 0.15rem 0.4rem; border-radius: 4px;
}
.live-name { font-size: 14px; font-weight: 700; margin-top: 0.35rem; }
.live-meta { font-size: 11px; color: #b7d0de; }

/* Promo list */
.promo-list { display: grid; gap: 0.65rem; }
.promo-list-card {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0.85rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.promo-list-card img { width: 100%; height: 100%; min-height: 88px; object-fit: cover; }
.promo-list-card > div { padding: 0.75rem 0.85rem 0.85rem 0; display: flex; flex-direction: column; justify-content: center; }
.promo-list-card h3 { margin: 0 0 0.25rem; font-size: 14px; color: var(--ink); }
.promo-list-card p { margin: 0 0 0.4rem; font-size: 12px; color: var(--muted); }
.promo-list-card span { color: var(--primary); font-size: 12px; font-weight: 600; }

/* Download */
.download-hero-card {
  display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
}
.download-hero-card img { width: 100%; border-radius: 12px; }
.download-hero-card h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--ink); }
.step-list { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: 13px; }
.step-list li { margin-bottom: 0.35rem; }
.step-list strong { color: var(--ink); }

@media (max-width: 700px) {
  .promo-list-card { grid-template-columns: 1fr; }
  .promo-list-card > div { padding: 0.75rem 0.85rem 0.9rem; }
  .download-hero-card { grid-template-columns: 1fr; }
}

.apex-nav {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem;
  padding: 0.55rem 1rem; border-bottom: 1px solid var(--line);
  background: #fff; font-size: 12px;
}
.apex-nav a { color: var(--muted); font-weight: 600; }
.apex-nav a:hover { color: var(--primary); }
.variant-intro > p { margin: 0 0 0.7rem; color: var(--muted); font-size: 13px; max-width: 720px; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .ok-sidebar { display: none; }
  .mobile-header { display: flex; }
  .mobile-bar { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .homepage-content { padding-bottom: 5.5rem; }
  .jackpot-row { grid-template-columns: 1fr; }
  .promo-card { flex-basis: min(92vw, 420px); }
  .loggedout-wrapper .brand-chip { display: none; }
  .promo-btn { display: inline-flex; align-items: center; }
}
