/* Unified mobile presentation. The stylesheet is also media-gated in index.php. */
@media (max-width: 1100px) {
  :root {
    --sw-surface: rgba(22, 25, 32, .94);
    --sw-surface-inset: rgba(255, 255, 255, .035);
    --sw-stroke: rgba(255, 255, 255, .10);
    --sw-text: #f2f3f6;
    --sw-muted: #b5bac5;
    --sw-gold: #f3ce75;
    --sw-radius: 18px;
    --sw-control-radius: 12px;
    --sw-card-space: 18px;
    --sw-gap: 16px;
    --sw-shadow: 0 10px 28px rgba(0, 0, 0, .20);
  }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--sw-text);
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
  }
  .sw-mobile-only { display: block !important; }
  .sw-guarantee-legacy { display: none !important; }

  /* Shared card surfaces. Do not apply opacity to text or images. */
  .sw-premium-card,
  .why-we,
  .guarantee-item,
  .guarantee-item-m1,
  .guarantee-item-m2,
  .home-about-carousel .home-about-slide,
  .game__main,
  .game__specs-card-dark,
  .game__specs-card,
  .game-info-section,
  .cases__link,
  .faq__item,
  .news-page .news-card.why-we,
  .noob-profile__main,
  .noob-profile__trade,
  .profile-settings-card,
  .profile-games__item,
  .refill.popup,
  #auth,
  #prize,
  .live_prizes {
    background: var(--sw-surface) !important;
    border: 1px solid var(--sw-stroke) !important;
    border-radius: var(--sw-radius) !important;
    box-shadow: var(--sw-shadow) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .sw-premium-card,
  .game__main,
  .game__specs-card-dark,
  .game__specs-card,
  .game-info-section,
  .guarantee-item,
  .guarantee-item-m1,
  .guarantee-item-m2 { padding: var(--sw-card-space) !important; box-sizing: border-box; }
  .mobile-topbar,
  .mobile-bottom-nav,
  .mobile-drawer {
    background: var(--sw-surface) !important;
    border-color: var(--sw-stroke) !important;
  }
  .mobile-bottom-nav { border-radius: var(--sw-radius) !important; }
  .mobile-drawer__nav a,
  .mobile-bottom-nav__item,
  .mobile-topbar button,
  .mobile-category-card { border-radius: var(--sw-control-radius) !important; }
  .mobile-bottom-nav__item.is-active { color: var(--sw-gold) !important; }

  /* Titles share one alignment and avoid glow over small lettering. */
  .page-title,
  .home-about-title,
  .home-new-title,
  .game__screens-title,
  .game__specs-title,
  .game__descr-title,
  .game-info-title,
  .account-section-title h2,
  .guarantee-item-title,
  .guarantee-item-title-m2,
  .news-card__title.why-we__title,
  .profile-section-heading {
    color: var(--sw-text) !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: -.02em !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }
  .page-title { font-size: 25px !important; margin-bottom: 18px !important; }
  .game__screens-title,
  .game__specs-title,
  .game__descr-title,
  .game-info-title,
  .account-section-title h2,
  .guarantee-item-title,
  .guarantee-item-title-m2 { font-size: 18px !important; text-align: left !important; }
  .guarantee-item-content,
  .guarantee-item-content_2,
  .faq__answer,
  .account-info-content {
    color: var(--sw-muted);
    font-size: 15px !important;
    line-height: 1.65 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  .game__wrapper-left,
  .game__wrapper-right,
  .game__specs-content,
  .home-about-slide__content,
  .profile-settings__layout { min-width: 0 !important; }
  .guarantees-items-wrapper,
  .guarantees-items-wrapper_con,
  .news-page .news-list { gap: var(--sw-gap) !important; }
  .guarantee-item-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
  }
  .guarantee-item-header > img {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px;
    object-fit: contain !important;
    margin: 0 !important;
  }

  /* Account details become aligned rows, with room for long server names. */
  .cases__name_game {
    background: var(--sw-surface) !important;
    border: 1px solid var(--sw-stroke) !important;
    border-radius: var(--sw-radius) !important;
    padding: 16px !important;
    text-align: left !important;
    text-shadow: none !important;
    font-size: 19px !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
  }
  .game__main-features { gap: 0 !important; }
  .game__main-feature {
    padding: 12px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sw-stroke) !important;
    border-radius: 0 !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }
  .game__main-feature-img { width: 32px !important; height: 32px !important; padding: 4px !important; }
  .game__main-feature-text { font-size: 14px !important; line-height: 1.55 !important; }
  .game__main-data-new { color: var(--sw-text) !important; font-size: 30px !important; text-shadow: none !important; }
  .game__main-data-buy,
  .sw-mobile-action--primary {
    background: linear-gradient(135deg, #f4d88f, #dfb957) !important;
    color: #171a20 !important;
    border: 1px solid transparent !important;
    text-shadow: none !important;
    box-shadow: 0 5px 16px rgba(223, 185, 87, .16) !important;
  }
  .game__main-data-buy,
  .profile-settings-btn,
  .noob-profile__quick-action,
  .news-more.buttonmore { border-radius: var(--sw-control-radius) !important; min-height: 46px; }
  .game__main-data-buy.btn-sold,
  .game__main-data-buy[disabled] {
    background: var(--sw-surface-inset) !important;
    color: var(--sw-muted) !important;
    border-color: var(--sw-stroke) !important;
    box-shadow: none !important;
    cursor: default;
  }
  .game__specs-header { gap: 10px !important; margin: 0 0 6px !important; padding: 0 0 12px !important; border-bottom: 1px solid var(--sw-stroke) !important; }
  .game__specs-title { margin: 0 !important; }
  .game__specs-list { display: block !important; }
  .game__specs-item {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 58px;
    padding: 12px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sw-stroke) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .game__specs-item:last-child { border-bottom: 0 !important; }
  .game__specs-icon { width: 28px !important; height: 28px !important; min-width: 0 !important; color: var(--sw-gold) !important; background: transparent !important; font-size: 14px !important; }
  .game__specs-content { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; align-items: baseline !important; gap: 10px !important; width: 100%; }
  .game__specs-key { font-size: 13px !important; color: var(--sw-muted) !important; line-height: 1.5 !important; text-align: left !important; margin: 0 !important; }
  .game__specs-val { font-size: 14px !important; font-weight: 650 !important; line-height: 1.5 !important; text-align: right !important; color: var(--sw-text) !important; margin: 0 !important; overflow-wrap: anywhere; }
  .game__specs-val.guarantee,
  .game__specs-val.unbound { color: #91dfb9 !important; }
  .game__specs-card-dark,
  .game__specs-card,
  .sw-account-help { margin-bottom: var(--sw-gap) !important; }
  .account-info-item { background: transparent !important; border-radius: var(--sw-control-radius) !important; }
  .game__screens .popup-gallery { border-radius: var(--sw-radius) !important; }
  .game__screens-mobile-thumb { border-radius: var(--sw-control-radius) !important; }
  .cases__link .cases__name { text-shadow: none !important; line-height: 1.5 !important; letter-spacing: 0 !important; }

  /* FAQ, news, contacts and profile retain their existing controls and behavior. */
  .faq__item { margin-bottom: 12px !important; }
  .faq__question { min-height: 48px; display: flex; align-items: center; font-size: 15px !important; line-height: 1.5 !important; text-align: left !important; }
  .faq__answer { padding-right: 16px !important; }
  .news-page .news-card__inner { padding: var(--sw-card-space) !important; }
  .news-page .news-card__title { font-size: 20px !important; text-align: left !important; }
  .news-page .news-card__media { border-radius: var(--sw-control-radius) !important; }
  .news-card__date { border-radius: var(--sw-control-radius) !important; }
  #contact .why-we { padding: var(--sw-card-space) !important; }
  #contact .why-we .container { width: 100% !important; padding: 0 !important; margin: 0 !important; }
  #contact .why-we .row { display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important; margin: 0 !important; }
  #contact .why-we .col-md-3 { width: 100% !important; float: none !important; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px !important; border: 1px solid var(--sw-stroke); border-radius: var(--sw-control-radius); }
  #contact .icon-img img { width: 40px !important; height: 40px !important; object-fit: contain; }
  #contact .col-md-3 p { margin: 0 !important; text-align: left !important; font-size: 15px !important; line-height: 1.5 !important; }
  .profile-settings-form input,
  .profile-settings-form select,
  .profile-settings-form textarea,
  .noob-profile__trade-input { font-size: 16px !important; border-radius: var(--sw-control-radius) !important; }

  .page .why-we:not(.news-card) { padding: var(--sw-card-space) !important; }
  .page .why-we > .container { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .rules { font-size: 15px !important; line-height: 1.75 !important; text-align: left !important; overflow-wrap: anywhere; }
  .cases__name_game::before,
  .cases__name_game::after { display: none !important; }
  .game__specs-icon i,
  .game__specs-header i,
  .account-section-title i,
  .game__screens-title i { color: var(--sw-gold) !important; text-shadow: none !important; animation: none !important; }

  /* Purpose-built mobile guarantee page. */
  .sw-guarantee { padding: 16px 0 24px !important; }
  .sw-guarantee .sw-guarantee-container { width: 100% !important; max-width: 640px !important; padding: 0 14px !important; margin: 0 auto !important; display: grid; gap: var(--sw-gap); box-sizing: border-box; }
  .sw-premium-card { min-width: 0; }
  .sw-guarantee h1 { margin: 10px 0 14px; font-size: clamp(25px, 6.5vw, 32px); font-weight: 750; letter-spacing: -.035em; line-height: 1.18; color: var(--sw-text); text-shadow: none; }
  .sw-premium-card h2,
  .sw-premium-card h3 { margin: 0; color: var(--sw-text); line-height: 1.35; text-shadow: none; text-transform: none; font-weight: 700; }
  .sw-premium-card h2 { font-size: 19px; }
  .sw-premium-card h3 { font-size: 16px; }
  .sw-premium-card p { margin: 12px 0 0; color: var(--sw-muted); font-size: 15px; line-height: 1.65; text-align: left; overflow-wrap: anywhere; }
  .sw-premium-card .sw-lead { font-size: 16px; }
  .sw-eyebrow { display: block; color: var(--sw-gold); font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
  .sw-card-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px; }
  .sw-card-heading > img { display: block; width: 48px; height: 48px; object-fit: contain; }
  .sw-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .sw-quick-links a { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 44px; padding: 8px 10px; border: 1px solid var(--sw-stroke); border-radius: var(--sw-control-radius); color: var(--sw-text); font-size: 13px; line-height: 1.4; text-decoration: none; }
  .sw-callout { margin-top: 16px; padding: 14px; background: var(--sw-surface-inset); border: 1px solid var(--sw-stroke); border-radius: var(--sw-control-radius); }
  .sw-callout strong { display: block; font-size: 14px; line-height: 1.5; color: var(--sw-text); }
  .sw-callout p { font-size: 14px; margin-top: 6px; }
  .sw-mobile-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; width: 100%; min-height: 48px; padding: 13px 15px; margin-top: 14px; border: 1px solid var(--sw-stroke); border-radius: var(--sw-control-radius); background: var(--sw-surface-inset); color: var(--sw-text); font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; text-align: left; overflow-wrap: anywhere; }
  .sw-mobile-action > span { flex: 0 0 auto; }
  .sw-text-link { display: block; width: fit-content; max-width: 100%; padding: 12px 0; color: var(--sw-gold); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
  .sw-purchase-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
  .sw-purchase-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; margin: 0; }
  .sw-step-number { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(243,206,117,.28); border-radius: 10px; color: var(--sw-gold); font-size: 13px; font-weight: 700; }
  .sw-purchase-steps p { margin-top: 5px; font-size: 14px; }
  .sw-guarantee-details > h2 { margin-bottom: 8px; }
  .sw-guarantee-details details { border-top: 1px solid var(--sw-stroke); }
  .sw-guarantee-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; padding: 18px 0; min-height: 48px; color: var(--sw-text); font-size: 15px; font-weight: 600; line-height: 1.5; cursor: pointer; }
  .sw-guarantee-details summary::-webkit-details-marker { display: none; }
  .sw-guarantee-details summary::after { content: '+'; color: var(--sw-gold); font-size: 22px; font-weight: 400; flex: 0 0 18px; text-align: center; }
  .sw-guarantee-details details[open] > summary::after { content: '−'; }
  .sw-details-body { padding-bottom: 18px; }
  .sw-details-body p:first-child { margin-top: 0; }
  .sw-details-body .sw-text-link:last-child { padding-bottom: 0; }
  .sw-guarantee [id] { scroll-margin-top: calc(84px + env(safe-area-inset-top)); }
  .sw-account-help { margin-top: 16px; }
  .sw-account-help p { font-size: 14px; }
  .sw-guarantee a:focus-visible,
  .sw-guarantee summary:focus-visible,
  .sw-account-help a:focus-visible { outline: 2px solid var(--sw-gold); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    .animated-camera,
    .animated-star,
    .game__specs-icon i { animation: none !important; }
  }
}
