/* ==========================================================================
   Public site + shared components (game cards, game browser, game toolbar)
   ========================================================================== */
:root {
  --pub-surface: 212 38% 8%;
  --pub-surface-2: 212 34% 12%;
  --pub-surface-3: 212 30% 16%;
  --pub-line: 0 0% 100% / 0.08;
  --pub-muted: 0 0% 100% / 0.6;
  --pub-radius: 16px;
  --pub-header-h: 76px;
}

/* ------------------------------ Buttons & small bits ------------------------------ */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s, filter .2s, background .2s, border-color .2s, color .2s;
}

.pub-btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 14px;
}

.pub-btn--primary,
.pub-btn--primary:hover {
  color: hsl(var(--dark));
  background: var(--base-gradient);
  box-shadow: 0 8px 24px hsl(var(--base) / 0.3);
}

.pub-btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.pub-btn--ghost {
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.05);
  border-color: hsl(var(--pub-line));
}

.pub-btn--ghost:hover {
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.1);
  border-color: hsl(var(--base) / 0.5);
}

.pub-btn i {
  font-size: 18px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: hsl(var(--base-two));
}

.pub-link:hover {
  color: hsl(var(--base-two));
  gap: 10px;
}

.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(var(--base-two));
  background: hsl(var(--base) / 0.12);
  border: 1px solid hsl(var(--base) / 0.3);
}

.pub-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--success));
  animation: pub-pulse 1.6s infinite;
}

@keyframes pub-pulse {
  0% { box-shadow: 0 0 0 0 hsl(var(--success) / 0.6); }
  70% { box-shadow: 0 0 0 7px hsl(var(--success) / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--success) / 0); }
}

/* ------------------------------ Ticker + Header ------------------------------ */
.pub-ticker {
  min-height: 46px;
  background: hsl(var(--pub-surface));
  border-bottom: 1px solid hsl(var(--pub-line));
  overflow: hidden;
}

.header.pub-header,
.header.pub-header.fixed-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  padding: 0;
  animation: none;
  background: hsl(var(--dark) / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .25s, border-color .25s, box-shadow .25s;
}

.header.pub-header.is-scrolled {
  background: hsl(var(--dark) / 0.92);
  border-bottom-color: hsl(var(--pub-line));
  box-shadow: 0 10px 30px hsl(0 0% 0% / 0.3);
}

.pub-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--pub-header-h);
}

.pub-header__logo img {
  max-height: 42px;
  max-width: 170px;
  object-fit: contain;
}

.pub-nav {
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pub-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--white) / 0.75);
  transition: color .2s, background .2s;
}

.pub-nav__link:hover,
.pub-nav__link.is-active {
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.05);
}

.pub-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--base-gradient);
}

.pub-nav__link i {
  font-size: 13px;
  transition: transform .2s;
}

.pub-nav__mega {
  position: relative;
}

.pub-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 560px;
  padding: 14px;
  border-radius: var(--pub-radius);
  background: hsl(var(--pub-surface-2));
  border: 1px solid hsl(var(--pub-line));
  box-shadow: 0 24px 60px hsl(0 0% 0% / 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: all .2s;
}

.pub-mega::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.pub-nav__mega:hover .pub-mega,
.pub-nav__mega:focus-within .pub-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.pub-nav__mega:hover .pub-nav__link i {
  transform: rotate(180deg);
}

.pub-mega__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.pub-mega__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  color: hsl(var(--white));
  transition: background .2s;
}

.pub-mega__item:hover {
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.06);
}

.pub-mega__item img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.pub-mega__item strong {
  display: block;
  font-size: 14px;
}

.pub-mega__item small {
  display: block;
  font-size: 12px;
  color: hsl(var(--pub-muted));
}

.pub-mega__item small i {
  color: hsl(var(--danger));
}

.pub-mega__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  color: hsl(var(--base-two));
  background: hsl(var(--base) / 0.1);
}

.pub-mega__all:hover {
  color: hsl(var(--base-two));
  background: hsl(var(--base) / 0.18);
}

.pub-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pub-header__lang,
.pub-drawer__lang {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-header__lang .language_text_select,
.pub-drawer__lang .language_text_select {
  font-size: 14px !important;
  font-family: var(--body-font);
}

.pub-header__lang .language_flag img,
.pub-drawer__lang .language_flag img {
  width: 24px;
  height: 24px;
}

.pub-burger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.06);
  border: 1px solid hsl(var(--pub-line));
}

/* Drawer */
.pub-drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  visibility: hidden;
}

.pub-drawer.is-open {
  visibility: visible;
}

.pub-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.6);
  opacity: 0;
  transition: opacity .3s;
}

.pub-drawer.is-open .pub-drawer__backdrop {
  opacity: 1;
}

.pub-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  overflow-y: auto;
  background: hsl(var(--pub-surface));
  border-left: 1px solid hsl(var(--pub-line));
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.pub-drawer.is-open .pub-drawer__panel {
  transform: translateX(0);
}

.pub-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pub-drawer__head img {
  max-height: 36px;
  max-width: 150px;
}

.pub-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-drawer__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: hsl(var(--white) / 0.8);
}

.pub-drawer__nav a i {
  font-size: 20px;
  color: hsl(var(--white) / 0.5);
}

.pub-drawer__nav a:hover,
.pub-drawer__nav a.is-active {
  color: hsl(var(--white));
  background: hsl(var(--base) / 0.14);
}

.pub-drawer__nav a.is-active i {
  color: hsl(var(--base-two));
}

.pub-drawer__foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

/* ------------------------------ Page head (breadcrumb) ------------------------------ */
.pub-pagehead {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid hsl(var(--pub-line));
  background:
    radial-gradient(700px 260px at 50% 0%, hsl(var(--base) / 0.22), transparent 70%),
    hsl(var(--pub-surface));
}

.pub-pagehead__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .14;
  mix-blend-mode: luminosity;
}

.pub-pagehead .container {
  position: relative;
  text-align: center;
}

.pub-pagehead__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: hsl(var(--pub-muted));
}

.pub-pagehead__crumbs a {
  color: hsl(var(--pub-muted));
}

.pub-pagehead__crumbs a:hover,
.pub-pagehead__crumbs span {
  color: hsl(var(--base-two));
}

.pub-pagehead__title {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  color: hsl(var(--white));
}

/* ------------------------------ Hero ------------------------------ */
.pub-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}

.pub-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 30%, hsl(var(--base) / 0.25), transparent 70%),
    radial-gradient(500px 300px at 5% 90%, hsl(var(--primary) / 0.12), transparent 70%);
}

.pub-hero .container {
  position: relative;
}

.pub-hero__slides {
  display: grid;
}

.pub-hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .6s, transform .6s, visibility .6s;
}

.pub-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.pub-hero__title {
  margin: 0 0 16px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  color: hsl(var(--white));
}

.pub-hero__text {
  max-width: 540px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: hsl(var(--white) / 0.7);
}

.pub-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-hero__dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.pub-hero__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: hsl(var(--white) / 0.2);
  transition: width .3s, background .3s;
}

.pub-hero__dots button.is-active {
  width: 28px;
  background: hsl(var(--base-two));
}

.pub-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.pub-hero__stats > div {
  flex: 1 1 120px;
  padding: 14px 16px;
  border-radius: 14px;
  background: hsl(var(--white) / 0.04);
  border: 1px solid hsl(var(--pub-line));
}

.pub-hero__stats strong {
  display: block;
  font-size: 24px;
  color: hsl(var(--white));
}

.pub-hero__stats span {
  font-size: 13px;
  color: hsl(var(--pub-muted));
}

.pub-hero__coins {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: hsl(var(--pub-muted));
}

.pub-hero__coins em {
  padding: 4px 10px;
  border-radius: 20px;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.07);
  border: 1px solid hsl(var(--pub-line));
}

.pub-hero__visual {
  position: relative;
  max-width: 560px;
  margin-left: auto;
}

.pub-hero__img {
  width: 100%;
  filter: drop-shadow(0 30px 60px hsl(0 0% 0% / 0.5));
}

.pub-hero__chart {
  position: absolute;
  left: -30px;
  bottom: 20px;
  width: 300px;
  padding: 12px;
  border-radius: var(--pub-radius);
  background: hsl(var(--pub-surface-2) / 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--base) / 0.3);
  box-shadow: 0 20px 50px hsl(0 0% 0% / 0.45);
}

.pub-hero__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--white));
}

.pub-hero__chart-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pub-hero__chart-head small {
  color: hsl(var(--pub-muted));
}

.pub-hero__chart-body {
  height: 170px;
}

.pub-hero__chart-body .tradingview-widget-container,
.pub-hero__chart-body .tradingview-widget-container__widget,
.pub-panel .tradingview-widget-container,
.pub-panel .tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

@media (max-width: 991.98px) {
  .pub-hero {
    padding: 48px 0 64px;
  }

  .pub-hero__visual {
    margin: 0 auto;
  }

  .pub-hero__chart {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: min(320px, 92%);
  }
}

/* ------------------------------ Sections ------------------------------ */
.pub-section {
  padding: 88px 0;
}

.pub-section--alt {
  background:
    linear-gradient(180deg, transparent, hsl(var(--pub-surface) / 0.8) 20%, hsl(var(--pub-surface) / 0.8) 80%, transparent);
}

.pub-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.pub-heading__title {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  color: hsl(var(--white));
}

.pub-heading__desc {
  max-width: 560px;
  color: hsl(var(--white) / 0.65);
}

.pub-checks {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pub-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--white) / 0.8);
}

.pub-checks i {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  color: hsl(var(--dark));
  background: hsl(var(--base-two));
}

.pub-panel {
  padding: 12px;
  border-radius: var(--pub-radius);
  background: hsl(var(--pub-surface-2) / 0.8);
  border: 1px solid hsl(var(--pub-line));
}

.pub-panel--market {
  height: 500px;
}

@media (max-width: 767.98px) {
  .pub-section {
    padding: 60px 0;
  }

  .pub-panel--market {
    height: 440px;
  }
}

/* ------------------------------ Homepage predictions ------------------------------ */
.pub-predictions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

@media (max-width: 400px) {
  .pub-predictions { grid-template-columns: 1fr; }
}

.pub-pcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--pub-radius);
  color: hsl(var(--white));
  background: hsl(var(--pub-surface-2) / 0.85);
  border: 1px solid hsl(var(--pub-line));
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.pub-pcard:hover {
  color: hsl(var(--white));
  transform: translateY(-3px);
  border-color: hsl(var(--base) / 0.45);
  box-shadow: 0 18px 40px hsl(0 0% 0% / 0.35);
}

.pub-pcard__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pub-pcard__head img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.pub-pcard__head h3 {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: hsl(var(--white));
}

.pub-pcard ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-pcard li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.pub-pcard li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: hsl(var(--white) / 0.85);
}

.pub-pcard li em {
  padding: 4px 10px;
  border-radius: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.pub-pcard .is-yes { color: hsl(148 70% 45%); background: hsl(148 70% 45% / 0.14); }
.pub-pcard .is-no { color: hsl(0 85% 62%); background: hsl(0 85% 62% / 0.14); }

.pub-pcard__foot {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: hsl(var(--pub-muted));
  border-top: 1px solid hsl(var(--pub-line));
}

/* ------------------------------ Homepage investment plans ------------------------------ */
.pub-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pub-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--pub-radius);
  color: hsl(var(--white));
  background: hsl(var(--pub-surface-2) / 0.85);
  border: 1px solid hsl(var(--pub-line));
  transition: transform .2s, border-color .2s;
}

.pub-plan:hover {
  color: hsl(var(--white));
  transform: translateY(-3px);
  border-color: hsl(var(--base) / 0.5);
}

.pub-plan.is-featured {
  border-color: hsl(var(--base) / 0.5);
  background:
    radial-gradient(360px 140px at 100% 0%, hsl(var(--base) / 0.2), transparent 70%),
    hsl(var(--pub-surface-2) / 0.9);
}

.pub-plan__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: hsl(var(--base-two));
}

.pub-plan h3 {
  margin: 0;
  font-size: 28px;
  color: hsl(var(--white));
}

.pub-plan__big {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pub-plan__big strong {
  font-size: 44px;
  line-height: 1;
  color: hsl(var(--base-two));
}

.pub-plan__big span,
.pub-plan small {
  color: hsl(var(--pub-muted));
}

.pub-plan p {
  font-size: 14px;
  color: hsl(var(--white) / 0.75);
}

/* ------------------------------ Footer ------------------------------ */
.pub-footer {
  margin-top: auto;
  background: hsl(var(--pub-surface));
  border-top: 1px solid hsl(var(--pub-line));
}

.pub-footer__partners {
  padding: 32px 0;
  border-bottom: 1px solid hsl(var(--pub-line));
}

.pub-footer__partners-title {
  margin-bottom: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--pub-muted));
}

.pub-footer__partners .partner-item__image img {
  opacity: .6;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
}

.pub-footer__partners .partner-item__image img:hover {
  opacity: 1;
  filter: none;
}

.pub-footer__main {
  padding: 56px 0 40px;
}

.pub-footer__logo img {
  max-height: 42px;
  max-width: 170px;
}

.pub-footer__about {
  margin: 16px 0 20px;
  max-width: 360px;
  color: hsl(var(--pub-muted));
}

.pub-newsletter {
  display: flex;
  max-width: 380px;
  padding: 5px;
  border-radius: 14px;
  background: hsl(var(--pub-surface-2));
  border: 1px solid hsl(var(--pub-line));
}

.pub-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  font-size: 14px;
  color: hsl(var(--white));
  background: transparent;
  border: 0;
  outline: none;
}

.pub-newsletter button {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: hsl(var(--dark));
  background: var(--base-gradient);
  border: 0;
}

.pub-social {
  display: flex;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pub-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: hsl(var(--white) / 0.75);
  background: hsl(var(--white) / 0.05);
  border: 1px solid hsl(var(--pub-line));
  transition: all .2s;
}

.pub-social a:hover {
  color: hsl(var(--dark));
  background: var(--base-gradient);
}

.pub-footer__title {
  margin-bottom: 16px;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--white));
}

.pub-footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-footer__links a {
  font-size: 14px;
  color: hsl(var(--pub-muted));
  transition: color .2s;
}

.pub-footer__links a:hover {
  color: hsl(var(--base-two));
}

.pub-footer__bottom {
  padding: 18px 0;
  border-top: 1px solid hsl(var(--pub-line));
}

.pub-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: hsl(var(--pub-muted));
}

.pub-footer__bottom a {
  color: hsl(var(--pub-muted));
}

.pub-footer__bottom a:hover,
.pub-footer__bottom p a {
  color: hsl(var(--base-two));
}

.pub-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767.98px) {
  .pub-footer__bottom .container {
    justify-content: center;
    text-align: center;
  }
}

/* ------------------------------ Game browser + cards ------------------------------ */
.game-browser [hidden] {
  display: none !important;
}

.game-browser__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.game-browser__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.game-browser__tabs::-webkit-scrollbar {
  display: none;
}

.game-browser__tabs button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--white) / 0.7);
  background: hsl(var(--white) / 0.05);
  border: 1px solid hsl(var(--pub-line));
  transition: all .2s;
}

.game-browser__tabs button span {
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  background: hsl(var(--white) / 0.1);
}

.game-browser__tabs button:hover {
  color: hsl(var(--white));
}

.game-browser__tabs button.is-active {
  color: hsl(var(--dark));
  background: var(--base-gradient);
  border-color: transparent;
}

.game-browser__tabs button.is-active span {
  background: hsl(var(--dark) / 0.15);
}

.game-browser__search {
  position: relative;
  flex: 0 1 260px;
  margin: 0;
}

.game-browser__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--pub-muted));
}

.game-browser__search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 20px;
  font-size: 13px;
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.05);
  border: 1px solid hsl(var(--pub-line));
  outline: none;
}

.game-browser__search input:focus {
  border-color: hsl(var(--base) / 0.6);
}

.game-browser__empty {
  padding: 40px 0;
  text-align: center;
  color: hsl(var(--pub-muted));
}

@media (max-width: 575.98px) {
  .game-browser__search {
    flex: 1 1 100%;
  }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

@media (max-width: 575.98px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.gcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--pub-radius);
  background: hsl(var(--pub-surface-2));
  border: 1px solid hsl(var(--pub-line));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.gcard:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--base) / 0.5);
  box-shadow: 0 18px 40px hsl(0 0% 0% / 0.4), 0 0 0 1px hsl(var(--base) / 0.15);
}

.gcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.gcard:hover .gcard__media img {
  transform: scale(1.06);
}

.gcard__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.gcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: hsl(var(--dark));
  background: hsl(var(--base-two));
}

.gcard__badge--hot {
  color: hsl(var(--white));
  background: hsl(var(--danger));
}

.gcard__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, hsl(var(--dark) / 0.3), hsl(var(--dark) / 0.85));
  opacity: 0;
  transition: opacity .25s;
}

.gcard:hover .gcard__overlay,
.gcard:focus-within .gcard__overlay {
  opacity: 1;
}

.gcard__play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  border-radius: 30px;
  font-weight: 700;
  color: hsl(var(--dark));
  background: var(--base-gradient);
  transform: translateY(8px);
  transition: transform .25s;
}

.gcard:hover .gcard__play {
  transform: none;
}

.gcard__play:hover {
  color: hsl(var(--dark));
}

.gcard__demo {
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--white) / 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gcard__demo:hover {
  color: hsl(var(--base-two));
}

.gcard__body {
  padding: 12px 14px 14px;
}

.gcard__title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.gcard__title a {
  color: hsl(var(--white));
}

.gcard__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  font-size: 12px;
  color: hsl(var(--pub-muted));
}

.gcard__meta i {
  color: hsl(var(--base-two));
}

.gcard__payout {
  font-weight: 700;
  color: hsl(var(--success));
}

/* Touch devices: keep the play affordance visible without hover */
@media (hover: none) {
  .gcard__overlay {
    opacity: 1;
    justify-content: flex-end;
    padding-bottom: 12px;
    background: linear-gradient(180deg, transparent 40%, hsl(var(--dark) / 0.85));
  }

  .gcard__play {
    transform: none;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .gcard__demo {
    display: none;
  }
}

/* ------------------------------ Game play toolbar ------------------------------ */
.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--pub-radius);
  background: hsl(var(--pub-surface-2) / 0.8);
  border: 1px solid hsl(var(--pub-line));
}

.game-toolbar__info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.game-toolbar__back {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.06);
}

.game-toolbar__back:hover {
  color: hsl(var(--base-two));
}

.game-toolbar__thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

.game-toolbar__name {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1;
  color: hsl(var(--white));
}

.game-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-toolbar__chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  color: hsl(var(--white) / 0.7);
  background: hsl(var(--white) / 0.06);
}

.game-toolbar__chips .is-gold {
  color: hsl(var(--dark));
  font-weight: 700;
  background: hsl(var(--base-two));
}

.game-toolbar__mode {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: hsl(var(--pub-surface));
  border: 1px solid hsl(var(--pub-line));
}

.game-toolbar__mode a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--white) / 0.6);
  transition: all .2s;
}

.game-toolbar__mode a:hover {
  color: hsl(var(--white));
}

.game-toolbar__mode a.is-active {
  color: hsl(var(--dark));
  background: var(--base-gradient);
}

.game-demo-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 20px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: hsl(var(--info, 199 89% 70%));
  background: hsl(var(--info, 199 89% 48%) / 0.1);
  border: 1px solid hsl(var(--info, 199 89% 48%) / 0.25);
}

.game-demo-note i {
  font-size: 18px;
}

.game-stage {
  margin-bottom: 28px;
}

.game-more {
  padding: 20px;
  border-radius: var(--pub-radius);
  background: hsl(var(--pub-surface-2) / 0.7);
  border: 1px solid hsl(var(--pub-line));
}

.game-more__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.game-more__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  color: hsl(var(--white));
  border: 1px solid hsl(var(--pub-line));
}

.game-more__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s;
}

.game-more__item:hover img {
  transform: scale(1.06);
}

.game-more__item span {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  background: hsl(var(--pub-surface-2));
}

.game-more__item:hover {
  color: hsl(var(--base-two));
  border-color: hsl(var(--base) / 0.5);
}

.game-more__item em {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-style: normal;
  color: hsl(var(--white));
  background: hsl(var(--danger));
}

@media (max-width: 575.98px) {
  .game-toolbar__mode {
    width: 100%;
  }

  .game-toolbar__mode a {
    flex: 1;
    justify-content: center;
  }

  .game-toolbar__name {
    font-size: 22px;
  }
}
