/* Telefon / tablet — device-detect.js sınıfları ile otomatik */

html.is-phone,
html.is-mobile {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Header ─── */
html.is-phone .header_new {
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 !important;
}

html.is-phone .logo_content {
  flex: 1 1 auto;
  min-width: 0;
}

html.is-phone .logo_content img {
  max-width: min(140px, 38vw) !important;
  max-height: 44px !important;
}

html.is-phone .header_right_content {
  flex: 1 1 100%;
  justify-content: flex-end;
  min-width: 0;
}

html.is-phone .header_right_content_down {
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  max-width: 100%;
}

html.is-phone .header-logged-actions {
  flex: 1 1 100%;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  order: 2;
}

html.is-phone .header-action-btn span {
  display: none;
}

html.is-phone .header-action-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
}

html.is-phone .header-balance-pill {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  order: 3;
}

html.is-phone .header-balance-pill span {
  display: inline;
}

html.is-phone .header-user-profile {
  order: 4;
}

html.is-phone .header-user-profile__toggle {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  max-width: 160px;
}

html.is-phone .header-user-profile__name {
  max-width: 64px;
}

html.is-phone #header-auth-buttons .btn-yellow {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 34px;
}

html.is-phone .header-search-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
}

html.is-phone .Languages__dropdown {
  order: 5;
}

html.is-phone #flippanel #flip .col-md-12 {
  font-size: 11px;
  padding: 6px 8px;
}

/* ─── Menü ─── */
html.is-phone .Header-navigation-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start !important;
  padding-bottom: 4px;
}

html.is-phone .Header-navigation-menu__item {
  min-width: 58px;
  flex: 0 0 auto;
}

html.is-phone .Header-navigation-menu__item > a {
  min-height: 58px;
  font-size: 9px;
  padding: 6px 3px;
}

html.is-phone .Header-navigation-menu__item .nav_icon {
  width: 32px !important;
  height: 32px !important;
}

html.is-phone .Header-navigation-menu__item .nav_icon img {
  max-height: 22px !important;
}

html.is-phone #betpark_tv {
  display: none;
}

/* ─── Giriş / kayıt ─── */
html.is-phone .Auth {
  padding: 1rem 0 2rem;
}

html.is-phone .Auth--login .Auth__layout {
  max-width: 100% !important;
  padding: 0 4px;
}

html.is-phone .Auth-header {
  flex-direction: column;
  text-align: center;
  padding: 0.75rem 0 1rem;
}

html.is-phone .Auth-header .icon-profile {
  width: 44px;
  height: 44px;
}

html.is-phone .Auth-header__title h1 {
  font-size: 1.15rem;
}

html.is-phone .Auth--login .login-link {
  text-align: center;
  padding: 0;
}

html.is-phone .Auth--register .register-card {
  margin: 0;
}

/* ─── Casino ─── */
html.is-phone .games-list .row {
  margin: 0;
}

html.is-phone .games-list .col-md-3,
html.is-phone .games-list .col-md-9 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

html.is-phone #providerSearchControls {
  float: none !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

html.is-phone #providerSearchInput {
  width: 100% !important;
  flex: 1 1 100%;
}

html.is-phone #searchAreaControl,
html.is-phone #search_game {
  width: 100%;
}

html.is-phone .games-list__wrap,
html.is-phone .casino-category-games {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html.is-phone .casino-game-item-content {
  min-width: 0;
}

html.is-phone .game-item__info-title {
  font-size: 11px !important;
}

html.is-phone .section-page-banner h2 {
  font-size: 1.25rem;
  padding: 0 8px;
}

html.is-phone #image-gallery img {
  max-height: 120px !important;
}

/* ─── Spor ─── */
html.is-phone .sportbook-providers {
  overflow-x: auto;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

html.is-phone .sportbook-frame,
html.is-phone .sportbook-frame-wrap {
  min-height: calc(100vh - 160px) !important;
  height: calc(100vh - 160px) !important;
}

/* ─── Hesap / para yatır ─── */
html.is-phone .Account-header {
  padding: 1rem 12px !important;
}

html.is-phone .Account-deposit-methods,
html.is-phone #deposit-methods-grid,
html.is-phone .deposit-methods-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

html.is-phone .Account-deposit-methods__item {
  width: 100% !important;
  max-width: none !important;
  height: 6.75rem !important;
  min-height: 6.75rem !important;
}

html.is-phone .deposit-inline-panel__amount {
  font-size: 1.5rem;
}

html.is-phone .deposit-wizard__footer {
  flex-direction: column;
  gap: 8px;
}

html.is-phone .deposit-wizard__btn {
  width: 100%;
}

/* ─── Footer / alt bar ─── */
html.is-phone .social-icons {
  display: none !important;
}

html.is-phone .footerbg .container {
  padding-left: 12px;
  padding-right: 12px;
}

html.is-phone .bottom-marque-row .col-4 {
  display: none !important;
}

html.is-phone .bottom-footer-item {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 9px !important;
  padding: 8px 4px !important;
}

html.is-phone .bottom-footer-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
}

html.is-phone .header-user-profile__menu {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  z-index: 10001;
}

/* ─── Tablet ─── */
html.is-tablet .games-list__wrap,
html.is-tablet .casino-category-games {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html.is-tablet .header-action-btn span {
  display: none;
}

html.is-tablet .Account-deposit-methods,
html.is-tablet #deposit-methods-grid,
html.is-tablet .deposit-methods-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html.is-tablet .Account-deposit-methods__item {
  width: 100% !important;
  max-width: none !important;
}

/* Masaüstünde mobil stilleri kapat */
html.is-desktop .mobile-only {
  display: none !important;
}

html.is-mobile .desktop-only {
  display: none !important;
}
