/* Bulls Exchange casino v2 — compact exchange-floor lobby.
   The information architecture borrows the fast browsing grammar of modern
   casino lobbies; every surface, icon and artwork remains Bulls-owned. */

:root {
  --bx-casino-bg: #0d0c0f;
  --bx-casino-panel: #161319;
  --bx-casino-panel-2: #201b24;
  --bx-casino-line: rgba(211, 173, 104, .16);
  --bx-casino-muted: #aaa2ae;
  --bx-casino-ivory: #f6f0e6;
}

.k365-casino-mode .kx-main {
  min-width: 0;
  background:
    radial-gradient(circle at 82% 2%, rgba(211, 173, 104, .07), transparent 27rem),
    var(--bx-casino-bg);
}

.k365-casino-mode #screen-lobby {
  min-height: calc(100svh - var(--kx-appbar-h) - var(--kc-deck-h));
  color: var(--bx-casino-ivory);
  background-color: var(--bx-casino-bg);
  background-image:
    linear-gradient(rgba(211, 173, 104, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 173, 104, .025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.k365-casino-mode .kc-switch {
  height: 48px;
  gap: .2rem;
  padding-inline: max(1rem, calc((100vw - 100rem) / 2));
  border-color: rgba(211, 173, 104, .14);
  background: rgba(13, 12, 15, .96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}

.k365-casino-mode .kc-switch__tab {
  min-height: 44px;
  padding-inline: .95rem;
  border: 0;
  border-radius: 999px;
  color: #bdb5c1;
  font-family: var(--kx-cond);
  font-size: .69rem;
  letter-spacing: .055em;
}

.k365-casino-mode .kc-switch__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .045);
}

.k365-casino-mode .kc-switch__tab.is-active {
  border: 0;
  color: #161117;
  background: var(--bx-champagne);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.k365-casino-mode .kc-wrap.kc-lobby {
  max-width: none;
  padding: 0;
}

.bx-casino-layout {
  display: grid;
  grid-template-columns: 13.25rem minmax(0, 1fr);
  gap: 1.25rem;
  width: min(100%, 90rem);
  margin-inline: auto;
  padding: 1.25rem clamp(1rem, 2vw, 1.75rem) 5.5rem;
}

.bx-casino-rail {
  position: sticky;
  top: calc(var(--kx-appbar-h) + var(--kc-deck-h) + 1.25rem);
  align-self: start;
  display: flex;
  max-height: calc(100svh - var(--kx-appbar-h) - var(--kc-deck-h) - 2.5rem);
  flex-direction: column;
  gap: .75rem;
  padding: .9rem;
  overflow: auto;
  border: 1px solid var(--bx-casino-line);
  border-radius: 1rem;
  background: rgba(22, 19, 25, .88);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}

.bx-casino-rail__eyebrow {
  padding: .2rem .55rem;
  color: #7f7782;
  font: 700 .62rem var(--kx-cond);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bx-casino-rail nav { display: grid; gap: .28rem; }

.bx-rail-link {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 42px;
  padding: .55rem .65rem;
  border: 0;
  border-radius: .7rem;
  background: transparent;
  color: #c5bdc9;
  text-align: left;
  cursor: pointer;
  font: 600 .78rem var(--kx-sans);
}

.bx-rail-link svg { width: 18px; height: 18px; color: #857d89; }
.bx-rail-link small { color: #777079; font-size: .62rem; }
.bx-rail-link:hover { color: #fff; background: rgba(255, 255, 255, .045); }
.bx-rail-link.is-active {
  color: #18131a;
  background: var(--bx-champagne);
  box-shadow: 0 8px 24px rgba(211, 173, 104, .14);
}
.bx-rail-link.is-active svg,
.bx-rail-link.is-active small { color: inherit; }

.bx-rail-note {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .35rem;
  padding: .8rem .65rem .2rem;
  border-top: 1px solid var(--bx-casino-line);
}
.bx-rail-note img { width: 28px; height: 28px; }
.bx-rail-note span { display: grid; gap: .08rem; }
.bx-rail-note b { color: var(--bx-champagne); font: 700 .7rem var(--kx-cond); letter-spacing: .07em; text-transform: uppercase; }
.bx-rail-note small { color: #7f7782; font-size: .65rem; }

.bx-casino-main { min-width: 0; }

.bx-features {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(13rem, .72fr) minmax(13rem, .72fr);
  gap: .75rem;
  min-height: 246px;
}

.bx-feature {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bx-casino-line);
  border-radius: 1.35rem;
  background: #151217;
  box-shadow: 0 24px 68px rgba(0, 0, 0, .28);
  isolation: isolate;
}

.bx-feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
}

.bx-feature:hover > img { transform: scale(1.025); filter: saturate(1.05); }

.bx-feature--hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 7, 9, .98) 0%, rgba(8, 7, 9, .84) 34%, rgba(8, 7, 9, .08) 72%);
}

.bx-feature--hero > img { z-index: -2; object-position: 64% 48%; }

.bx-feature__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(52%, 27rem);
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 2.15rem);
}

.bx-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--bx-champagne);
  font: 700 .62rem var(--kx-cond);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.bx-kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.bx-feature__copy h1 {
  margin: .55rem 0 0;
  color: #fff;
  font: 700 clamp(2rem, 3.1vw, 3.4rem)/.88 var(--kx-cond);
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.bx-feature__copy h1 em { color: var(--bx-champagne); font-style: normal; }
.bx-feature__copy p { max-width: 24rem; margin: .8rem 0 0; color: #b8b0bc; font: 500 .78rem/1.45 var(--kx-sans); }

.bx-feature__actions { display: flex; gap: .55rem; margin-top: 1rem; }
.bx-feature__actions a,
.bx-feature__actions button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--bx-champagne);
  color: #151117;
  cursor: pointer;
  text-decoration: none;
  font: 700 .66rem var(--kx-cond);
  letter-spacing: .065em;
  text-transform: uppercase;
}
.bx-feature__actions button { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; }
.bx-feature__actions a:hover { background: #e1c281; }
.bx-feature__actions button:hover { background: rgba(255,255,255,.14); }

.bx-feature__status {
  position: absolute;
  right: .85rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .52rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(8,7,9,.72);
  color: #ddd5df;
  font: 600 .59rem var(--kx-cond);
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.bx-feature__status i { width: 5px; height: 5px; border-radius: 50%; background: #42d17d; box-shadow: 0 0 0 3px rgba(66,209,125,.12); }

.bx-feature--small { display: block; color: #fff; text-decoration: none; }
.bx-feature--small::after { content: ""; position: absolute; inset: 20% 0 0; background: linear-gradient(transparent, rgba(8,7,9,.96)); }
.bx-feature--small > img { object-position: 50% 50%; }
.bx-feature__smallcopy {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  gap: .15rem;
  padding: 1rem;
}
.bx-feature__smallcopy small { color: var(--bx-champagne); font: 700 .58rem var(--kx-cond); letter-spacing: .13em; text-transform: uppercase; }
.bx-feature__smallcopy strong { color: #fff; font: 700 1.18rem var(--kx-cond); text-transform: uppercase; }
.bx-feature__smallcopy span,
.bx-feature__smallcopy button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8c0ca;
  cursor: pointer;
  font: 600 .66rem var(--kx-sans);
}

.k365-casino-mode #screen-lobby .kc-toolbar {
  margin: 1rem 0 .65rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.k365-casino-mode #screen-lobby .kc-search {
  position: relative;
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: .65rem;
  padding: 0 .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: #141216;
  color: #817984;
}
.k365-casino-mode #screen-lobby .kc-search:focus-within { border-color: rgba(211,173,104,.48); box-shadow: 0 0 0 3px rgba(211,173,104,.08); }
.k365-casino-mode #screen-lobby .kc-search svg { position: static; width: 18px; height: 18px; color: #777079; pointer-events: none; }
.k365-casino-mode #screen-lobby .kc-search input { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: #fff; font-size: .78rem; }
.k365-casino-mode #screen-lobby .kc-search input:focus-visible { outline: 0; }
.k365-casino-mode #screen-lobby .kc-search input::placeholder { color: #777079; }
.kc-search kbd { display: grid; min-width: 22px; height: 22px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: .35rem; background: #211e23; color: #777079; font: 600 .62rem var(--kx-sans); }

.k365-casino-mode #screen-lobby .kc-cats {
  display: flex;
  width: 100%;
  gap: .4rem;
  padding: 0 0 .2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.k365-casino-mode #screen-lobby .kc-cats::-webkit-scrollbar { display: none; }

.bx-cat {
  flex: none;
  display: inline-grid;
  grid-template-columns: 1.1rem auto auto;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .5rem .8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: #161419;
  color: #c2bac5;
  cursor: pointer;
  font: 600 .7rem var(--kx-sans);
  white-space: nowrap;
}
.bx-cat svg { width: 17px; height: 17px; color: #8b838f; }
.bx-cat small { color: #78717b; font-size: .59rem; }
.bx-cat:hover { border-color: rgba(211,173,104,.24); color: #fff; }
.bx-cat.is-active { border-color: rgba(211,173,104,.5); background: var(--bx-champagne); color: #18131a; }
.bx-cat.is-active svg,
.bx-cat.is-active small { color: inherit; }

.k365-casino-mode #screen-lobby .kc-catalog-section { margin-top: 1.15rem; }
.k365-casino-mode #screen-lobby .kc-catalog-section .kc-lhead {
  min-height: 42px;
  gap: .55rem;
  margin: 0 0 .55rem;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.k365-casino-mode #screen-lobby .kc-catalog-section .kc-lhead::before { display: none; }
.k365-casino-mode #screen-lobby .kc-lhead__name {
  color: #fff;
  font: 700 1.05rem var(--kx-cond);
  font-style: normal;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.k365-casino-mode #screen-lobby .kc-lhead__n { color: #777079; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.k365-casino-mode #screen-lobby .kc-lhead .k-live { margin-left: 0; color: #ff8d9b; }

.bx-shelf-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(211,173,104,.22);
  border-radius: .58rem;
  background: linear-gradient(145deg, rgba(211,173,104,.14), rgba(211,173,104,.025));
  color: var(--bx-champagne);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.bx-shelf-icon svg { width: 16px; height: 16px; }

.bx-shelf-actions { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; }
.bx-shelf-actions button {
  min-width: 34px;
  height: 34px;
  padding: 0 .68rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .55rem;
  background: #25212a;
  color: #d3cbd7;
  cursor: pointer;
  font: 700 .68rem var(--kx-sans);
}
.bx-shelf-actions button:first-child,
.bx-shelf-actions button:nth-child(2) { padding: 0; }
.bx-shelf-actions button svg { width: 17px; height: 17px; }
.bx-shelf-actions button:hover { border-color: rgba(211,173,104,.35); color: var(--bx-champagne); }
.bx-shelf-actions button:disabled {
  border-color: rgba(255,255,255,.045);
  background: #19161c;
  color: #56505a;
  cursor: default;
  opacity: .7;
}

.bx-rail-link:focus-visible,
.bx-cat:focus-visible,
.bx-shelf-actions button:focus-visible,
.bx-feature__actions a:focus-visible,
.bx-feature__actions button:focus-visible,
.kc-game-card:focus-visible {
  outline: 2px solid #f4dfa8;
  outline-offset: 2px;
}

.k365-casino-mode #screen-lobby .kc-catalog-grid {
  display: grid;
  grid-auto-columns: clamp(8.6rem, 12vw, 10.75rem);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: .65rem;
  padding: .1rem .05rem .55rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(211,173,104,.25) transparent;
}

.k365-casino-mode #screen-lobby .kc-game-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1rem;
  background: #17131a;
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  color: #fff;
  scroll-snap-align: start;
}

.k365-casino-mode #screen-lobby .kc-game-card:hover {
  border-color: rgba(211,173,104,.62);
  box-shadow: 0 20px 42px rgba(0,0,0,.42), 0 0 0 1px rgba(211,173,104,.08);
  color: #fff;
  transform: translateY(-3px);
}

.k365-casino-mode #screen-lobby .kc-game-card__art { position: absolute; inset: 0; aspect-ratio: auto; }
.k365-casino-mode #screen-lobby .kc-game-card__art::after { inset: 26% 0 0; height: auto; background: linear-gradient(transparent, rgba(10,8,11,.93) 72%, #0b090c); }
.k365-casino-mode #screen-lobby .kc-game-card__art img { object-position: center; }
.k365-casino-mode #screen-lobby .kc-game-card__badge {
  top: .48rem;
  left: .48rem;
  min-height: 18px;
  padding: .2rem .38rem;
  border-color: rgba(211,173,104,.28);
  border-radius: .35rem;
  background: rgba(13,12,15,.8);
  color: var(--bx-champagne);
  font-size: .5rem;
  backdrop-filter: blur(8px);
}

.k365-casino-mode #screen-lobby .kc-game-card__body {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  display: flex;
  min-height: 0;
  padding: .7rem;
}
.k365-casino-mode #screen-lobby .kc-game-card__eyebrow { color: var(--bx-champagne); font-size: .5rem; }
.k365-casino-mode #screen-lobby .kc-game-card__name { margin-top: .2rem; color: #fff; font: 700 .92rem/1.02 var(--kx-cond); text-transform: uppercase; }
.k365-casino-mode #screen-lobby .kc-game-card__desc { margin-top: .28rem; color: #b5adb8; font-size: .61rem; -webkit-line-clamp: 1; }
.k365-casino-mode #screen-lobby .kc-game-card__launch { margin-top: .45rem; padding: 0; color: #fff; font-size: .55rem; opacity: .82; }

.k365-casino-mode #screen-lobby .kc-catalog-empty,
.k365-casino-mode #screen-lobby .kc-filter-empty {
  min-height: 86px;
  border-color: rgba(211,173,104,.16);
  background: #151217;
  color: var(--bx-casino-muted);
}
.k365-casino-mode #screen-lobby .kc-catalog-empty b,
.k365-casino-mode #screen-lobby .kc-filter-empty b { color: #fff; }
.k365-casino-mode #screen-lobby .kc-catalog-empty__mark,
.k365-casino-mode #screen-lobby .kc-filter-empty > span { border-color: rgba(211,173,104,.28); background: rgba(211,173,104,.08); color: var(--bx-champagne); }

.bx-casino-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bx-casino-line);
  color: #716a74;
  font: 500 .64rem var(--kx-sans);
}

@media (prefers-reduced-motion: no-preference) {
  .bx-feature { animation: bx-casino-rise 420ms cubic-bezier(.2,.7,.2,1) both; }
  .bx-feature:nth-child(2) { animation-delay: 60ms; }
  .bx-feature:nth-child(3) { animation-delay: 110ms; }
  .kc-game-card { animation: bx-casino-rise 360ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--kc-i, 0) * 22ms); }
}

@keyframes bx-casino-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .bx-casino-layout { grid-template-columns: minmax(0, 1fr); }
  .bx-casino-rail { display: none; }
  .bx-features { grid-template-columns: minmax(0, 1.8fr) minmax(12rem, .7fr); }
  .bx-feature--access { display: none; }
}

@media (max-width: 720px) {
  .k365-casino-mode .kc-switch { top: var(--kx-appbar-h); height: 44px; padding-inline: .55rem; }
  .k365-casino-mode .kc-switch__tab { min-height: 40px; padding-inline: .78rem; font-size: .62rem; }
  .bx-casino-layout { gap: 0; padding: .75rem .65rem 5.25rem; }
  .bx-features { display: block; min-height: 222px; }
  .bx-feature--hero { height: 222px; border-radius: 1.2rem; }
  .bx-feature--small { display: none; }
  .bx-feature--hero::after { background: linear-gradient(90deg, rgba(8,7,9,.97), rgba(8,7,9,.64) 56%, rgba(8,7,9,.1)); }
  .bx-feature--hero > img { object-position: 64% center; }
  .bx-feature__copy { width: 70%; padding: 1.15rem; }
  .bx-feature__copy h1 { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .bx-feature__copy p { display: none; }
  .bx-feature__actions { margin-top: .8rem; }
  .bx-feature__actions a,
  .bx-feature__actions button { min-height: 34px; padding: .45rem .65rem; font-size: .58rem; }
  .bx-feature__status { right: .6rem; bottom: .55rem; }
  .k365-casino-mode #screen-lobby .kc-toolbar { margin-top: .75rem; }
  .kc-search kbd { display: none; }
  .k365-casino-mode #screen-lobby .kc-cats { margin-inline: -.65rem; width: calc(100% + 1.3rem); padding: 0 .65rem .25rem; }
  .bx-cat { min-height: 40px; padding-inline: .7rem; }
  .k365-casino-mode #screen-lobby .kc-catalog-section { margin-top: .95rem; }
  .k365-casino-mode #screen-lobby .kc-catalog-grid {
    grid-auto-columns: clamp(7.1rem, 31vw, 8.15rem);
    margin-inline: -.65rem;
    padding: .1rem .65rem .55rem;
    scroll-padding-inline: .65rem;
  }
  .k365-casino-mode #screen-lobby .kc-game-card { border-radius: .9rem; }
  .k365-casino-mode #screen-lobby .kc-game-card__body { padding: .58rem; }
  .k365-casino-mode #screen-lobby .kc-game-card__name { font-size: .82rem; }
  .k365-casino-mode #screen-lobby .kc-game-card__desc { display: none; }
  .k365-casino-mode #screen-lobby .kc-game-card__launch { margin-top: .35rem; }
  .bx-shelf-actions { gap: .25rem; }
  .bx-shelf-actions button { min-width: 34px; height: 34px; padding-inline: .55rem; }
  .bx-shelf-actions button:last-child { font-size: .6rem; }
  .k365-casino-mode #screen-lobby .kc-lhead__n,
  .k365-casino-mode #screen-lobby .kc-lhead .k-live { display: none; }
  .bx-casino-foot { flex-direction: column; }
}

@media (max-width: 380px) {
  .bx-feature__copy { width: 76%; }
  .bx-feature__actions button { display: none; }
  .bx-shelf-actions button:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bx-feature,
  .kc-game-card { animation: none !important; }
  .bx-feature > img { transition: none; }
  .k365-casino-mode #screen-lobby .kc-catalog-grid { scroll-behavior: auto; }
}
