/* MAXIBET public pages -- mobile-first refinements layered over platform styles. */

@media (max-width: 1199px) {
  body:not(.skycrash-user-shell) .sc-user-header .container {
    padding-inline: 16px;
  }

  body:not(.skycrash-user-shell) .sc-user-header__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    min-height: 68px;
    padding: 10px 0;
  }

  body:not(.skycrash-user-shell) .sc-user-header__logo {
    order: 1;
  }

  body:not(.skycrash-user-shell) .sc-user-header__mobile-cta {
    order: 2;
    margin-left: auto;
  }

  body:not(.skycrash-user-shell) .sc-user-header__toggle {
    order: 3;
    width: 42px;
    height: 42px;
    margin-left: 8px;
    border-radius: 10px;
  }

  body:not(.skycrash-user-shell) .sc-user-header__collapse {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 88px);
    margin-top: 10px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(44, 58, 86, .95);
    border-radius: 13px;
    background: #111a2c;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .34);
  }

  body:not(.skycrash-user-shell) .sc-user-header__collapse.show,
  body:not(.skycrash-user-shell) .sc-user-header__collapse.collapsing {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body:not(.skycrash-user-shell) .sc-user-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  body:not(.skycrash-user-shell) .sc-user-header__link {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: .9rem;
  }

  body:not(.skycrash-user-shell) .sc-user-header__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    padding-top: 10px;
  }

  body:not(.skycrash-user-shell) .sc-user-header__balance,
  body:not(.skycrash-user-shell) .sc-user-header__logout,
  body:not(.skycrash-user-shell) .sc-user-header__cta {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  body:not(.skycrash-user-shell) {
    overflow-x: hidden;
  }

  body:not(.skycrash-user-shell) .container {
    width: 100%;
    max-width: none;
    padding-inline: 16px;
  }

  body:not(.skycrash-user-shell) .sc-user-header__inner {
    min-height: 64px;
  }

  body:not(.skycrash-user-shell) .fendybet-logo__plane {
    width: 32px;
    height: 32px;
  }

  body:not(.skycrash-user-shell) .fendybet-logo__text {
    font-size: 1.05rem;
  }

  .fb-hero {
    padding: 16px 0 0;
    margin-bottom: 18px;
  }

  .fb-hero__panel {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .fb-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .fb-hero__eyebrow {
    margin-bottom: 10px;
    font-size: .68rem;
    line-height: 1.45;
  }

  .fb-hero__title {
    max-width: 16ch;
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.15;
  }

  .fb-hero__desc {
    margin-bottom: 20px;
    font-size: .88rem;
    line-height: 1.6;
  }

  .fb-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .fb-hero__actions .fb-btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    text-align: center;
  }

  .fb-hero__preview,
  .fb-hero__preview-frame {
    width: 100%;
  }

  .fb-hero__preview-frame {
    max-width: none;
    border-radius: 14px;
  }

  .fb-hero__preview-art {
    aspect-ratio: 16 / 10;
  }

  .fb-hero__promo-image {
    background-size: auto 132%;
    background-position: 69% center;
  }

  .fb-hero__preview-mult {
    font-size: 1rem;
  }

  .fb-hero__trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .fb-hero__trust > div {
    align-items: flex-start;
    font-size: .7rem;
    line-height: 1.35;
  }

  .fb-hero__trust i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 1rem;
  }

  .fb-hub,
  .fb-page--games .fb-hub {
    padding-bottom: 28px;
  }

  .fb-section-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .fb-section-intro h2 {
    font-size: 1.3rem;
  }

  .fb-section-intro p {
    font-size: .8rem;
    line-height: 1.5;
  }

  .fb-tabs {
    flex-wrap: nowrap;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .fb-tabs::-webkit-scrollbar {
    display: none;
  }

  .fb-tabs__item {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .7rem;
  }

  .fb-hub__layout,
  .fb-game-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fb-game-grid {
    gap: 12px;
  }

  .fb-game-card {
    border-radius: 13px;
  }

  .fb-game-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
  }

  .fb-game-card__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .fb-game-card__media--watch,
  .fb-game-card__media--soon {
    min-height: 124px;
    padding: 16px;
    aspect-ratio: auto;
  }

  .fb-game-card__media--soon {
    font-size: 2.25rem;
  }

  .fb-game-card__body {
    padding: 13px 14px 14px;
  }

  .fb-game-card__title {
    font-size: .92rem;
  }

  .fb-hub__sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .fb-side-card {
    margin-bottom: 0;
    padding: 17px;
  }

  .fb-proof {
    padding: 0 0 30px;
  }

  .fb-proof-card {
    padding: 12px;
  }

  .fb-section-head {
    margin-bottom: 20px;
  }

  .fb-section-head__title {
    font-size: 1.3rem;
  }

  .fb-section-head__desc {
    font-size: .84rem;
    line-height: 1.55;
  }

  .fb-steps,
  .fb-faq,
  .fb-about,
  .fb-testimonials,
  .fb-benefits,
  .fb-payment-focus {
    padding: 30px 0;
  }

  .fb-benefits__grid,
  .fb-steps__grid--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .fb-benefit-card {
    padding: 18px;
  }

  .fb-step-card__desc {
    font-size: .74rem;
  }

  .fb-payment-focus__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px 18px;
  }

  .fb-payment-focus__panel h2 {
    font-size: 1.15rem;
  }

  .fb-payment-focus__panel .btn {
    width: 100%;
  }

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

  .fb-step-card {
    padding: 16px 10px;
  }

  .fb-step-card__title {
    font-size: .82rem;
  }

  .fb-faq__layout,
  .fb-about__layout,
  .fb-testimonials__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .fb-accordion__btn,
  .fb-accordion__body {
    padding: 14px;
  }

  .fb-payments {
    padding: 24px 0 28px;
  }

  .fb-payments__row {
    gap: 15px 18px;
  }

  .fb-payments__item img {
    height: 30px;
  }

  .fb-page,
  .fb-contact {
    padding: 24px 0 34px;
  }

  .fb-page--games {
    padding-top: 22px;
  }

  .fb-contact__info {
    gap: 11px;
    margin-bottom: 18px;
  }

  .fb-contact-card {
    padding: 16px;
  }

  .fb-contact__panel,
  .fb-blog-article__content,
  .fb-legal,
  .fb-testimonial-card {
    padding: 18px;
  }

  .fb-contact-form .row > [class*="col-"] {
    width: 100%;
  }

  .fb-about__features,
  .fb-blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .fb-about-feature {
    padding: 14px;
  }

  .fb-referral__inner,
  .fb-cta__panel {
    padding: 20px 18px;
    align-items: stretch;
  }

  .fb-referral__inner .fb-btn,
  .fb-cta__panel .fb-btn {
    width: 100%;
  }

  .fb-cta__media,
  .fb-cta__media img {
    width: 100%;
    max-width: none;
  }

  .fb-blog-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .fb-blog-article__title {
    font-size: 1.35rem;
  }

  .fb-legal__content {
    font-size: .88rem;
    overflow-wrap: anywhere;
  }

  .fb-footer {
    padding: 30px 0 22px;
  }

  .fb-footer__top {
    gap: 0;
    padding-bottom: 20px;
  }

  .fb-footer__brand,
  .fb-footer__links,
  .fb-footer__newsletter {
    min-width: 0;
    padding: 18px 0;
  }

  .fb-footer__brand {
    padding-top: 0;
  }

  .fb-footer__links,
  .fb-footer__newsletter {
    border-top: 1px solid var(--fb-border);
  }

  .fb-footer__tagline {
    max-width: none;
    font-size: .84rem;
    line-height: 1.55;
  }

  .fb-footer__links h5,
  .fb-footer__newsletter h5 {
    margin-bottom: 12px;
  }

  .fb-footer__links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
  }

  .fb-footer__links li {
    margin: 0;
  }

  .fb-footer__links a {
    display: block;
    padding: 7px 0;
  }

  .fb-footer__form {
    flex-direction: column;
    width: 100%;
  }

  .fb-footer__input,
  .fb-footer__form .fb-btn {
    width: 100%;
  }

  .fb-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding-top: 20px;
    width: 100%;
  }

  .fb-footer__bottom > p {
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fb-border);
  }

  .fb-footer__legal {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
  }

  .fb-footer__legal::before {
    content: "Policies & safety";
    color: var(--fb-text);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding-bottom: 8px;
  }

  .fb-footer__legal li {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .fb-footer__legal a {
    display: block;
    padding: 9px 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .fb-footer__social {
    gap: 10px;
  }

  .fb-footer__social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--fb-border);
    border-radius: 8px;
  }
}

@media (max-width: 360px) {
  body:not(.skycrash-user-shell) .container,
  body:not(.skycrash-user-shell) .sc-user-header .container {
    padding-inline: 12px;
  }

  body:not(.skycrash-user-shell) .sc-user-header__actions,
  .fb-hero__actions,
  .fb-steps__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fb-hero__panel {
    padding: 20px 15px;
  }
}
