/* MUSTBET-style main layout */
:root {
  --mb-bg: #000000;
  --mb-panel: #0d1318;
  --mb-panel-2: #101820;
  --mb-border: rgba(0, 174, 239, 0.12);
  --mb-gold: #00AEEF;
  --mb-gold-light: #5ec8ff;
  --mb-gold-dim: #0077cc;
  --mb-text: #ffffff;
  --mb-muted: #94a3b8;
  --mb-danger: #ef4444;
  --mb-header-h: 64px;
  --mb-nav-h: 52px;
  --mb-mobile-nav-h: 58px;
  --mb-accent-glow: rgba(0, 174, 239, 0.35);
}

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

html,
body.page-main {
  margin: 0;
  padding: 0;
  background: var(--mb-bg);
  color: var(--mb-text);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.mb-wrap {
  min-height: 100vh;
  padding-bottom: calc(var(--mb-mobile-nav-h) + 16px);
}

/* utility top bar */
.mb-topbar {
  background: #111;
  border-bottom: 1px solid var(--mb-border);
  display: none;
}

.mb-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
}

.mb-topbar a {
  color: var(--mb-muted);
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.2s;
}

.mb-topbar a:hover {
  color: var(--mb-gold);
}

/* header */
.mb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #161616 0%, #0a1018 100%);
  border-bottom: 1px solid var(--mb-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.mb-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mb-logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--mb-gold-light), var(--mb-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-logo-sub {
  font-size: 10px;
  color: var(--mb-muted);
  letter-spacing: 1px;
}

.mb-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mb-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--mb-panel);
  border: 1px solid var(--mb-border);
  border-radius: 8px;
  font-size: 13px;
}

.mb-user-chip .money {
  color: var(--mb-gold);
  font-weight: 700;
}

.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.mb-btn-gold {
  background: linear-gradient(135deg, #00AEEF 0%, #006699 100%);
  color: #fff;
}

.mb-btn-gold:hover {
  background: linear-gradient(135deg, #5ec8ff 0%, #00AEEF 100%);
  color: #fff;
}

.mb-btn-outline {
  background: transparent;
  border: 1px solid var(--mb-border);
  color: var(--mb-text);
}

.mb-btn-outline:hover {
  border-color: var(--mb-gold);
  color: var(--mb-gold);
}

.mb-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mb-border);
  border-radius: 8px;
  background: var(--mb-panel);
  color: var(--mb-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* game nav */
.mb-gamenav {
  background: #0f0f0f;
  border-bottom: 2px solid var(--mb-gold);
}

.mb-gamenav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mb-gamenav-inner::-webkit-scrollbar {
  display: none;
}

.mb-gamenav a {
  flex: 1 0 auto;
  min-width: 100px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--mb-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.mb-gamenav-ico {
  font-size: 17px;
  line-height: 1;
}

.mb-gamenav a:hover,
.mb-gamenav a.active {
  color: var(--mb-gold);
  border-bottom-color: var(--mb-gold);
  background: rgba(0, 174, 239, 0.06);
}

/* mobile quick links */
.mb-quicklinks {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 12px;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mb-quicklinks::-webkit-scrollbar {
  display: none;
}

.mb-quicklinks a {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--mb-panel);
  border: 1px solid var(--mb-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-quicklinks a:hover {
  color: var(--mb-gold);
  border-color: rgba(0, 174, 239, 0.4);
}

/* 3-column body layout */
.mb-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 260px;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}

.mb-body-center {
  min-width: 0;
}

.mb-sidebar {
  position: sticky;
  top: calc(var(--mb-header-h) + var(--mb-nav-h));
  height: calc(100vh - var(--mb-header-h) - var(--mb-nav-h));
  overflow-y: auto;
  background: #111;
  border-right: 1px solid var(--mb-border);
  scrollbar-width: thin;
}

.mb-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mb-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--mb-muted);
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.mb-sidebar-nav a:hover,
.mb-sidebar-nav a.active {
  color: var(--mb-gold);
  background: rgba(0, 174, 239, 0.06);
  border-left-color: var(--mb-gold);
}

.mb-sidebar-nav .ico {
  width: 22px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mb-sidebar-nav .label {
  line-height: 1.3;
}

.mb-aside {
  position: sticky;
  top: calc(var(--mb-header-h) + var(--mb-nav-h));
  padding: 16px 12px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - var(--mb-header-h) - var(--mb-nav-h));
  overflow-y: auto;
}

.mb-aside-mobile {
  display: none;
  gap: 12px;
  margin-bottom: 16px;
}

.mb-banner-slot {
  display: block;
  min-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s;
}

.mb-banner-slot:hover {
  border-color: rgba(0, 174, 239, 0.35);
}

.mb-banner-slot img {
  display: block;
  width: 100%;
  height: auto;
}

.mb-aside-mobile .mb-banner-slot {
  min-height: 100px;
}

.mb-side-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a2208 0%, #141414 55%, #0f1a2e 100%);
  border: 1px solid rgba(0, 174, 239, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mb-side-banner-2 {
  background: linear-gradient(160deg, #1a1028 0%, #141414 55%, #0a1a14 100%);
  border-color: rgba(139, 92, 246, 0.3);
}

.mb-side-banner-3 {
  background: linear-gradient(160deg, #0f1a28 0%, #141414 55%, #1a1508 100%);
  border-color: rgba(56, 189, 248, 0.25);
}

.mb-side-banner-body {
  padding: 18px 16px 14px;
}

.mb-side-banner .tag {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: var(--mb-gold);
  border-radius: 4px;
}

.mb-side-banner h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.mb-side-banner p {
  margin: 0;
  font-size: 12px;
  color: var(--mb-muted);
  line-height: 1.45;
}

.mb-side-banner-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mb-gold) !important;
}

.mb-side-banner-foot {
  display: flex;
  border-top: 1px solid var(--mb-border);
}

.mb-side-banner-foot button {
  flex: 1;
  padding: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: var(--mb-muted);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.mb-side-banner-foot button:hover {
  color: var(--mb-gold);
  background: rgba(0, 174, 239, 0.08);
}

.mb-side-banner-foot button + button {
  border-left: 1px solid var(--mb-border);
}

.mb-side-banner.is-hidden {
  display: none;
}

/* content */
.mb-content {
  padding: 16px;
}

.mb-alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(0, 174, 239, 0.1);
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: 8px;
  color: var(--mb-gold-light);
  font-size: 13px;
  text-align: center;
}

.mb-alert strong {
  color: #fff;
}

/* board panels */
.mb-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.mb-board {
  background: var(--mb-panel);
  border: 1px solid var(--mb-border);
  border-radius: 10px;
  overflow: hidden;
}

.mb-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--mb-panel-2);
  border-bottom: 1px solid var(--mb-border);
}

.mb-board-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.mb-board-title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 174, 239, 0.1);
  border: 1px solid rgba(0, 174, 239, 0.22);
  flex-shrink: 0;
  line-height: 0;
}

.mb-board-title span {
  display: block;
  font-size: 10px;
  color: var(--mb-muted);
  font-weight: 400;
  letter-spacing: 1px;
}

.mb-board-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--mb-gold);
}

.mb-board-more-ico {
  font-size: 0.85rem;
}

.mb-board-empty {
  color: #71717a;
}

.mb-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mb-board-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--mb-border);
  transition: background 0.15s;
}

.mb-board-list li:last-child {
  border-bottom: none;
}

.mb-board-list li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mb-board-list a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mb-text);
  font-size: 13px;
}

.mb-board-item-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
  line-height: 0;
}

.mb-board-list a:hover {
  color: var(--mb-gold);
}

.mb-board-list .date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--mb-muted);
}

/* game sections */
.mb-section {
  margin-bottom: 28px;
}

.mb-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--mb-gold);
}

.mb-section-more {
  float: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--mb-muted);
  text-decoration: none;
  padding-right: 4px;
}

.mb-section-more:hover {
  color: var(--mb-gold);
}

.mb-provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mb-provider-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 12px;
  background: var(--mb-panel);
  border: 1px solid var(--mb-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--mb-muted);
  transition: all 0.2s;
  cursor: pointer;
}

.mb-provider-card:hover {
  border-color: rgba(0, 174, 239, 0.5);
  color: var(--mb-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mb-provider-card.highlight {
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.15), rgba(0, 174, 239, 0.05));
  border-color: rgba(0, 174, 239, 0.35);
  color: var(--mb-gold-light);
}

.mb-provider-card-visual {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  padding: 0;
  background: #111;
}

.mb-provider-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: sepia(0.45) saturate(1.1) hue-rotate(5deg) brightness(0.55);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.mb-provider-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.82) 100%);
  transition: background 0.25s ease;
}

.mb-provider-card-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 16px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #f4f4f5;
  text-align: center;
}

.mb-provider-card-visual:hover .mb-provider-card-bg {
  transform: scale(1.05);
  filter: sepia(0.55) saturate(1.25) hue-rotate(5deg) brightness(0.7);
}

.mb-provider-card-visual:hover::after {
  background: linear-gradient(180deg, rgba(26, 20, 8, 0.25) 0%, rgba(10, 10, 10, 0.72) 100%);
}

.mb-provider-card-visual:hover .mb-provider-card-label {
  color: var(--mb-gold-light);
}

.mb-section-casino {
  margin-bottom: 32px;
}

.mb-section-slots {
  margin-bottom: 32px;
}

/* casino lobby page */
.mb-casino-page {
  padding-bottom: 8px;
}

.mb-casino-section {
  margin-bottom: 36px;
}

.mb-casino-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--mb-gold);
}

.mb-casino-heading-ko {
  font-size: 20px;
  font-weight: 800;
  color: var(--mb-gold-light);
}

.mb-casino-heading-en {
  font-size: 14px;
  font-weight: 600;
  color: var(--mb-muted);
  letter-spacing: 0.02em;
}

.mb-casino-popular-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.mb-casino-live-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mb-casino-tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

/* iOS 자동재생: video 를 <a> 밖에 두고 클릭만 오버레이 링크로 처리 */
.mb-casino-tile-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-decoration: none;
  color: transparent;
  background: transparent;
}

.mb-casino-tile:hover {
  transform: translateY(-3px);
}

.mb-casino-tile.is-vendor-stopped {
  cursor: not-allowed;
}

.mb-casino-tile.is-vendor-stopped .mb-casino-tile-visual {
  opacity: 0.72;
  filter: grayscale(0.35);
}

.mb-casino-tile-maint-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mb-casino-tile-visual {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mb-casino-tile-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.mb-casino-tile-video {
  pointer-events: none;
  -webkit-touch-callout: none;
}

.mb-casino-tile:hover .mb-casino-tile-visual {
  border-color: rgba(0, 174, 239, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.mb-casino-tile:hover .mb-casino-tile-img {
  transform: scale(1.04);
}

.mb-casino-tile-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 0 2px;
  text-align: center;
}

.mb-casino-tile-caption .ko {
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f5;
}

.mb-casino-tile-caption .en {
  font-size: 11px;
  font-weight: 500;
  color: var(--mb-muted);
}

.mb-casino-tile:hover .mb-casino-tile-caption .ko {
  color: var(--mb-gold-light);
}

@media (max-width: 1200px) {
  .mb-casino-live-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .mb-casino-popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mb-casino-live-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .mb-casino-popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mb-casino-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mb-casino-heading-ko {
    font-size: 17px;
  }
}

.mb-slot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mb-slot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mb-slot-img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  background: #0a0a0a;
}

.mb-slot-name {
  display: block;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #f4f4f5;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.95) 35%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-slot-page {
  padding-bottom: 24px;
}

.mb-slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mb-slot-head .mb-section-head {
  margin-bottom: 0;
}

.mb-slot-title {
  margin: 0;
  font-size: 20px;
  color: var(--mb-gold-light, #5ec8ff);
}

.mb-slot-search {
  display: flex;
  gap: 8px;
}

.mb-slot-search-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}

.mb-slot-search-bar .mb-slot-search {
  width: min(420px, 100%);
}

.mb-slot-search-bar .mb-slot-search input {
  flex: 1 1 auto;
  min-width: 0;
}

.mb-slot-search-mobile {
  display: none;
}

.mb-slot-search input {
  min-width: 200px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
  color: #fff;
}

.mb-slot-search button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0088cc, #0099dd);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mb-slot-vendors {
  display: grid;
  grid-template-columns: repeat(var(--slot-vendor-cols, 8), minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.mb-slot-vendor-mobile {
  display: none;
  margin-bottom: 16px;
}

.mb-slot-vendor-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 174, 239, 0.35);
  background: #0a0a0a;
  color: #fff;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4af37' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.mb-slot-vendor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(201, 178, 130, 0.55);
  background: #0a0a0a;
  color: #ddd;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
}

.mb-slot-page .mb-slot-vendor {
  min-height: 146px !important;
}

.mb-slot-page.is-games-loading #mb-slot-grid {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.mb-slot-vendor-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

.mb-slot-vendor-all-mark,
.mb-slot-vendor-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9fd4f0;
  background: rgba(255, 255, 255, 0.03);
}

.mb-slot-vendor.is-active,
.mb-slot-vendor:hover {
  border-color: rgba(212, 175, 55, 0.85);
  color: var(--mb-gold-light, #5ec8ff);
  background: rgba(212, 175, 55, 0.08);
}

.mb-slot-vendor.is-vendor-stopped {
  opacity: 0.72;
  border-color: rgba(220, 53, 69, 0.35);
  color: #f3a5ae;
}

.mb-minigame-zone {
  margin: 28px 0 8px;
}

.mb-minigame-zone-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
}

.mb-minigame-zone-title .mb-title-gradient {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mb-minigame-zone-sub {
  font-size: 13px;
  color: var(--mb-muted, #999);
}

.mb-minigame-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mb-minigame-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25));
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mb-minigame-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 174, 239, 0.45);
}

.mb-minigame-card.is-vendor-stopped {
  opacity: 0.75;
  cursor: not-allowed;
}

.mb-minigame-card-name {
  font-size: 15px;
  font-weight: 700;
}

.mb-minigame-card-meta {
  font-size: 12px;
  color: var(--mb-muted, #999);
}

@media (max-width: 900px) {
  .mb-minigame-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mb-slot-pagination {
  display: none;
}

.mb-slot-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 16px;
  color: #aaa;
  font-size: 13px;
}

.mb-slot-load-more.is-loading .mb-slot-load-text::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(0, 174, 239, 0.25);
  border-top-color: rgba(0, 174, 239, 0.85);
  border-radius: 50%;
  vertical-align: middle;
  animation: mb-slot-spin 0.7s linear infinite;
}

@keyframes mb-slot-spin {
  to {
    transform: rotate(360deg);
  }
}

.mb-slot-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ddd;
  text-decoration: none;
  font-size: 13px;
}

.mb-slot-page-link.is-active,
.mb-slot-page-link:hover {
  border-color: rgba(0, 174, 239, 0.55);
  color: var(--mb-gold-light, #5ec8ff);
}

.mb-empty-hint {
  padding: 40px 16px;
  text-align: center;
  color: var(--mb-muted, #999);
  font-size: 14px;
}

.mb-alert-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  font-size: 13px;
}

.mb-slot-thumb {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('<?= ASSETS ?>images/slots-games-row.png');
  background-repeat: no-repeat;
  background-size: 600% 100%;
  background-position: var(--slot-pos, 0%) center;
}

.mb-slot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 239, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.mb-slot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
}

.mb-slot-badge-new {
  background: #22c55e;
}

.mb-slot-badge-top {
  top: 8px;
  left: auto;
  right: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.mb-slot-card .mb-slot-badge-new + .mb-slot-badge-top {
  top: 30px;
  right: auto;
  left: 8px;
}

/* promo image banners */
.mb-promo-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 174, 239, 0.22);
  margin-bottom: 16px;
  min-height: 160px;
  text-decoration: none;
}

.mb-promo-banner-main {
  margin-bottom: 24px;
  min-height: 180px;
}

.mb-promo-banner-casino {
  margin-bottom: 14px;
  min-height: 120px;
}

.mb-promo-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center right;
  filter: sepia(0.4) saturate(1.15) hue-rotate(5deg) brightness(0.72);
}

.mb-promo-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.92) 0%,
    rgba(12, 10, 6, 0.72) 42%,
    rgba(0, 174, 239, 0.12) 100%
  );
  pointer-events: none;
}

.mb-promo-banner-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  color: #fff;
}

.mb-promo-banner-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.18);
  border: 1px solid rgba(0, 174, 239, 0.35);
  color: var(--mb-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mb-promo-banner-content h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.mb-promo-banner-content p {
  margin: 0;
  max-width: 420px;
  color: var(--mb-muted);
  font-size: 14px;
}

.mb-promo-banner-brand {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.mb-side-banner-img {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.mb-side-banner-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: sepia(0.45) saturate(1.1) hue-rotate(5deg) brightness(0.5);
}

.mb-side-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.35) 0%, rgba(8, 8, 8, 0.88) 100%);
  pointer-events: none;
}

.mb-side-banner-img .mb-side-banner-body {
  position: relative;
  z-index: 1;
}

/* banner strip */
.mb-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 140px;
  background: linear-gradient(135deg, #1a1508 0%, #0f0f0f 50%, #1a1a2e 100%);
  border: 1px solid rgba(0, 174, 239, 0.2);
}

.mb-banner-inner {
  padding: 28px 32px;
  position: relative;
  z-index: 1;
}

.mb-banner h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.mb-banner p {
  margin: 0;
  color: var(--mb-muted);
  font-size: 14px;
  max-width: 480px;
}

.mb-banner-glow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* footer */
.mb-footer {
  padding: 24px 16px 32px;
  text-align: center;
  border-top: 1px solid var(--mb-border);
}

.mb-footer .brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--mb-gold);
  margin-bottom: 6px;
}

.mb-footer .copy {
  font-size: 12px;
  color: var(--mb-muted);
}

/* mobile bottom nav */
.mb-bottomnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: var(--mb-mobile-nav-h);
  background: #111;
  border-top: 1px solid var(--mb-border);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mb-bottomnav-inner {
  display: flex;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.mb-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--mb-muted);
  padding: 4px 2px;
}

.mb-bottomnav a:hover,
.mb-bottomnav a.active {
  color: var(--mb-gold);
}

.mb-bottomnav .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* mobile drawer */
.mb-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
}

.mb-drawer-overlay.open {
  display: block;
}

.mb-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #141414;
  z-index: 301;
  transition: right 0.25s ease;
  overflow-y: auto;
  border-left: 1px solid var(--mb-border);
}

.mb-drawer.open {
  right: 0;
}

.mb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--mb-border);
}

.mb-drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--mb-panel-2);
  color: var(--mb-text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.mb-drawer-nav {
  padding: 12px 0;
}

.mb-drawer-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--mb-muted);
  border-bottom: 1px solid var(--mb-border);
}

.mb-drawer-nav a:hover {
  color: var(--mb-gold);
  background: rgba(0, 174, 239, 0.05);
}

/* responsive */
@media (min-width: 992px) {
  .mb-topbar {
    display: block;
  }

  .mb-wrap {
    padding-bottom: 0;
  }

  .mb-aside-mobile {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .mb-body {
    grid-template-columns: 180px minmax(0, 1fr) 220px;
  }
}

@media (max-width: 991px) {
  .mb-body {
    grid-template-columns: 1fr;
  }

  .mb-sidebar,
  .mb-aside {
    display: none;
  }

  .mb-aside-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mb-aside-mobile .mb-side-banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
  }
  .mb-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mb-header-right .mb-btn-outline,
  .mb-header-right .mb-user-chip {
    display: none;
  }

  .mb-quicklinks {
    display: flex;
  }

  .mb-bottomnav {
    display: block;
  }

  .mb-provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mb-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mb-slot-vendor-mobile {
    display: block;
  }

  .mb-slot-search-bar {
    justify-content: stretch;
  }

  .mb-slot-search-bar .mb-slot-search {
    width: 100%;
  }

  .mb-slot-search-desktop {
    display: none;
  }

  .mb-slot-search-mobile {
    display: flex;
    width: 100%;
  }

  .mb-slot-search-mobile input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .mb-slot-search-mobile button {
    flex: 0 0 auto;
  }

  .mb-slot-vendors-desktop {
    display: none;
  }

  .mb-boards {
    grid-template-columns: 1fr;
  }

  .mb-logo-text {
    font-size: 22px;
  }

  .mb-banner h2 {
    font-size: 18px;
  }

  .mb-banner-inner {
    padding: 20px;
  }

  .mb-promo-banner-content {
    padding: 18px 20px;
  }

  .mb-promo-banner-content h2 {
    font-size: 18px;
  }

  .mb-promo-banner-brand {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  .mb-aside-mobile {
    grid-template-columns: 1fr;
  }

  .mb-gamenav a {
    min-width: 80px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .mb-provider-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mb-provider-card {
    min-height: 60px;
    font-size: 12px;
    padding: 12px 8px;
  }

  .mb-provider-card-visual {
    min-height: 72px;
  }

  .mb-provider-card-label {
    min-height: 72px;
    font-size: 12px;
    padding: 12px 8px;
  }

  .mb-promo-banner-main {
    min-height: 140px;
  }

  .mb-promo-banner-casino {
    min-height: 100px;
  }

  .mb-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mb-slot-card {
    flex: none;
    width: auto;
  }

  .mb-content {
    padding: 12px;
  }
}

@media (min-width: 1200px) {
  .mb-provider-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
