/* Screen-reader only headings for document outline */
.mtrb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fixed lazy-loaded casino background */
#mtrb-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #0b1628;
  background-size: cover;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#mtrb-fixed-bg.is-loaded {
  opacity: 1;
}

/* Slider arrows */
._HqoR8P {
  cursor: pointer;
  z-index: 5;
}

._HqoR8P:hover {
  opacity: 0.85;
}

/* Dynamic games marquee — only inside ticker block */
._vTmI-v ._OfU6Mn {
  overflow: hidden;
}

._vTmI-v [data-track="dynamicGamesRowTrack"] {
  will-change: transform;
}

/* Restore document scroll (theme.css sets html/body overflow-y:hidden for SPA) */
html.mtrb-scroll-enabled,
body.mtrb-scroll-enabled.casino-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

body.mtrb-scroll-enabled.casino-page #app,
body.mtrb-scroll-enabled.casino-page .v-app,
body.mtrb-scroll-enabled.casino-page .v-app__wrapper,
body.mtrb-scroll-enabled.casino-page .grid-main,
body.mtrb-scroll-enabled.casino-page #main_container,
body.mtrb-scroll-enabled.casino-page .body-container {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Age gate blur + page shell */
#page-shell {
  min-height: 100vh;
  transition: filter 0.45s ease;
}

/* Populated casino game cards */
[data-test="cardGameElement"].mtrb-populated-card {
  min-height: 190px;
}

.mtrb-filled-card {
  width: 100%;
  height: 100%;
}

.mtrb-filled-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

#page-shell.mtrb-agegate-blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

body.mtrb-agegate-open {
  overflow: hidden;
}

/* Overlays */
.mtrb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 22, 40, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mtrb-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mtrb-overlay__panel {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 56px rgba(11, 22, 40, 0.28);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
}

.mtrb-overlay.is-visible .mtrb-overlay__panel {
  transform: translateY(0) scale(1);
}

/* 18+ age verification gate */
.mtrb-agegate__panel {
  position: relative;
  max-width: 500px;
  text-align: center;
  padding: 40px 36px 34px;
  border-top: 4px solid #cb2129;
  overflow: hidden;
}

.mtrb-agegate__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(180deg, rgba(203, 33, 41, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.mtrb-agegate__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, #cb2129 0%, #a01820 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px rgba(203, 33, 41, 0.35);
}

.mtrb-agegate__title {
  position: relative;
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #152238;
  letter-spacing: -0.01em;
}

.mtrb-agegate__text {
  position: relative;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: #526277;
}

.mtrb-agegate__actions {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.mtrb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.mtrb-btn:active {
  transform: scale(0.98);
}

.mtrb-btn--primary {
  background: #3d9a50;
  color: #fff;
  box-shadow: 0 4px 14px rgba(61, 154, 80, 0.3);
}

.mtrb-btn--primary:hover {
  background: #48b05e;
}

.mtrb-btn--secondary {
  background: #f0f3f7;
  color: #526277;
  border: 1px solid #dde3ea;
}

.mtrb-btn--secondary:hover {
  background: #e6ebf1;
}

.mtrb-btn--full {
  width: 100%;
}

/* Registration modal */
.mtrb-signup__panel {
  max-width: 460px;
  overflow: hidden;
  border-radius: 14px;
}

.mtrb-signup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf1f5;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.mtrb-signup__title {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid #cb2129;
  font-size: 21px;
  font-weight: 700;
  color: #152238;
  letter-spacing: -0.01em;
}

.mtrb-signup__close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #eef2f6;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mtrb-signup__close:hover {
  background: #e2e8f0;
  color: #334155;
}

.mtrb-signup__body {
  padding: 22px 24px 26px;
}

.mtrb-signup-form__group {
  margin-bottom: 15px;
}

.mtrb-signup-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.mtrb-signup-form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  font-size: 15px;
  color: #1e293b;
  background: #fafbfc;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mtrb-signup-form__input:focus {
  outline: none;
  border-color: #cb2129;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(203, 33, 41, 0.12);
}

.mtrb-signup-form__input.is-invalid {
  border-color: #dc2626;
  background: #fff;
}

.mtrb-signup-form__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
}

.mtrb-signup-form__error.is-visible {
  display: block;
}

.mtrb-signup-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.mtrb-signup-form__checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #cb2129;
}

/* Success notification modal */
.mtrb-notify__panel {
  max-width: 400px;
  text-align: center;
  padding: 34px 28px 30px;
}

.mtrb-notify__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #ecfdf3;
  color: #16a34a;
  font-size: 30px;
  line-height: 60px;
}

.mtrb-notify__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #152238;
}

.mtrb-notify__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #526277;
}

/* Static casino fallback inside scraped page */
.mtrb-casino-fallback {
  padding: 24px 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.mtrb-casino-fallback__banner {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 28px;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.mtrb-casino-fallback__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #1a2b4a;
}

.mtrb-casino-fallback__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.mtrb-casino-fallback__card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #1e293b;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mtrb-casino-fallback__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mtrb-casino-fallback__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Hide third-party widgets on static page */
#hde-contact-container,
#hde-contact-chat-container-1,
#batBeacon403380080604 {
  display: none !important;
}
