/* Phone / small tablet only. Desktop CSS stays untouched above 900px. */
.m-dock {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --dock-h: 58px;
    --hdr-h: 96px;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }

  button,
  a,
  .nav-link,
  .m-dock-item {
    touch-action: manipulation;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .btn:hover {
    transform: none;
  }

  .page {
    padding: 0 12px calc(28px + var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    padding-top: 0;
    z-index: 95;
  }

  .hdr-main {
    min-height: 44px;
    padding: 2px 10px 0;
    gap: 8px;
  }

  .brand {
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: 0.08em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-flag {
    width: 28px;
    height: 18px;
    flex: none;
    filter: none;
  }

  .hdr-clock,
  .hdr-lang,
  .hdr-text-static {
    display: none !important;
  }

  .hdr-utils {
    gap: 5px;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .hdr-deposit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(180deg, #3dce6a, #168a3e);
    color: #fff;
    font: 800 10px/1 var(--font);
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(22, 138, 62, 0.35);
  }

  .hdr-deposit-btn:active {
    background: linear-gradient(180deg, #2fba58, #127534);
  }

  .hdr-text-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(233, 196, 106, 0.7);
    border-radius: 5px;
    background: #131313;
    color: var(--gold-2);
    font-size: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex: none;
    position: relative;
    z-index: 1;
  }

  .hdr-text-btn[hidden],
  .hdr-deposit-btn[hidden] {
    display: none !important;
  }

  .site-header .btn-login,
  .site-header .btn-register {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .session-user {
    display: none;
  }

  .wallet {
    height: 34px;
    padding: 0 8px;
  }

  .wallet b {
    font-size: 11px;
  }

  .session {
    width: 34px;
    height: 34px;
  }

  body.account-menu-open {
    overflow: hidden;
  }

  .account-menu {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 140;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .account-menu-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .account-sheet {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(233, 196, 106, 0.28);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
      linear-gradient(180deg, #16140f 0%, #0c0b08 42%, #090908 100%);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
    animation: accountSheetIn 0.32s ease;
  }

  @keyframes accountSheetIn {
    from {
      transform: translateY(28px);
      opacity: 0.4;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }

  .account-sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 4px auto 14px;
    border-radius: 99px;
    background: rgba(233, 196, 106, 0.4);
  }

  .account-sheet-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(28, 24, 16, 0.9), rgba(12, 11, 8, 0.95));
  }

  .account-sheet-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(180deg, #2a2418, #16130d);
    border: 1px solid rgba(233, 196, 106, 0.45);
    color: var(--gold-2);
    box-shadow: inset 0 1px 0 rgba(255, 248, 225, 0.12);
  }

  .account-sheet-avatar svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }

  .account-sheet-meta {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .account-sheet-meta b {
    font-size: 16px;
    letter-spacing: 0.03em;
    color: #f7f1e2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-sheet-meta small {
    color: #9a9182;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .account-sheet-bal {
    font-size: 15px;
    font-weight: 800;
    color: #8fd9a4;
    font-variant-numeric: tabular-nums;
  }

  .account-sheet-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .account-sheet-quick button {
    height: 44px;
    border: 0;
    border-radius: 12px;
    font: 800 13px/1 var(--font);
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  .account-sheet-quick button:first-child {
    background: linear-gradient(180deg, #3dce6a, #168a3e);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 138, 62, 0.28);
  }

  .account-sheet-quick button:last-child {
    background: #16140f;
    color: var(--gold-2);
    border: 1px solid rgba(233, 196, 106, 0.45);
  }

  .account-sheet-list {
    display: grid;
    gap: 4px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
  }

  .account-sheet-list button {
    min-height: 48px;
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #f0e7d4;
  }

  .account-sheet-list button:hover,
  .account-sheet-list button:active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-2);
  }

  .account-sheet-list .menu-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.18);
  }

  .account-sheet-list .menu-ico svg {
    width: 18px;
    height: 18px;
  }

  .account-sheet-list .menu-out {
    margin-top: 6px;
    border-top: 1px solid rgba(212, 175, 55, 0.16) !important;
    color: #e8c48a !important;
    justify-content: flex-start;
    letter-spacing: 0.08em;
    font-size: 14px !important;
  }

  .cashier.show-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    background: rgba(0, 0, 0, 0.55);
  }

  .cashier-side {
    display: none;
    position: absolute;
    top: 0;
    right: auto;
    left: 0;
    bottom: 0;
    width: min(360px, 88vw);
    z-index: 7;
    padding: 18px 16px calc(28px + var(--dock-h) + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid rgba(233, 196, 106, 0.22);
    background:
      radial-gradient(120% 40% at 0% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
      #0c0b08;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.45);
    animation: cashierDrawerIn 0.28s ease;
  }

  .cashier.show-menu .cashier-side {
    display: block;
  }

  @keyframes cashierDrawerIn {
    from {
      transform: translateX(-18px);
      opacity: 0.65;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }

  .cashier-user {
    display: grid;
    gap: 4px;
    padding: 4px 2px 8px;
  }

  .cashier-user b {
    font-size: 18px;
  }

  .cashier-nav button,
  .nav-acc summary {
    min-height: 44px;
    font-size: 15px;
  }

  .site-header .nav {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    padding: 0 8px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-hide {
    display: block !important;
  }

  .nav-drop {
    display: none !important;
  }

  .nav-item {
    flex: none;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 40px;
  }

  .nav-ico,
  .nav-plane {
    width: 14px;
    height: 14px;
  }

  .top-partner {
    display: none;
  }

  .hero-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero,
  .hero-static {
    aspect-ratio: 2.8 / 1;
    border-radius: 10px;
  }

  .hero-nav {
    width: 32px;
    height: 32px;
    margin-top: -16px;
    font-size: 18px;
  }

  .hero-nav.prev {
    left: 6px;
  }

  .hero-nav.next {
    right: 6px;
  }

  .hero-dots {
    bottom: 8px;
    padding: 5px 8px;
    gap: 5px;
  }

  .pager {
    top: 8px;
    right: 8px;
    font-size: 10px;
  }

  .hero-wordmark {
    right: 10px;
    bottom: 8px;
    font-size: 10px;
  }

  .section {
    margin-top: 20px;
  }

  .section-head {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .bonus-grid,
  .tiles,
  .games,
  .live-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .game {
    border-radius: 8px;
  }

  .game:hover,
  .game.is-hover {
    box-shadow: none;
  }

  .game:hover .game-art,
  .game.is-hover .game-art,
  .game:hover .brand-patch,
  .game.is-hover .brand-patch,
  .game:hover .badge-hot,
  .game.is-hover .badge-hot {
    filter: none;
    transform: none;
  }

  .game-hover {
    opacity: 1;
    background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.82));
    justify-content: flex-end;
    padding: 8px 6px 7px;
  }

  .game-hover-star,
  .game-hover-info,
  .game-hover-play {
    display: none;
  }

  .game-hover-name {
    font-size: 11px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .live-tools,
  .jp-tools,
  .tv-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .live-tools .live-search-wrap,
  .jp-tools .live-search-wrap {
    flex: 1 1 100%;
    max-width: none;
  }

  .footer {
    margin-top: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .footer h4 {
    font-size: 11px;
  }

  .footer-stores {
    margin-top: 22px;
    padding-top: 18px;
    gap: 10px;
  }

  .footer-stores img {
    height: 38px;
  }

  .footer-seals {
    margin-top: 16px;
    padding: 8px 0 0;
  }

  .footer-seals img {
    width: min(640px, 96vw);
  }

  .footer-payments {
    margin-top: 18px;
    padding-top: 12px;
  }

  .footer-pay {
    gap: 6px 8px;
  }

  .footer-pay img {
    height: 42px;
    width: 42px;
  }

  .partner-cards {
    grid-template-columns: 1fr;
  }

  .help {
    display: none;
  }

  .m-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 88;
    height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #101010;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.45);
  }

  .m-dock-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    min-width: 0;
    border: 0;
    background: none;
    color: #9a9182;
    font: 700 9px/1.05 var(--font);
    letter-spacing: 0;
    cursor: pointer;
  }

  .m-dock-item[hidden] {
    display: none !important;
  }

  .m-dock-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-dock-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .m-dock-item.active {
    color: var(--gold-2);
  }

  .m-dock-badge {
    position: absolute;
    top: 1px;
    right: calc(50% - 16px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #1cae4c;
    color: #fff;
    font: 800 9px/16px var(--font);
  }

  #view-spor .sb-right {
    display: none;
  }

  .kupon-page .sb-right {
    display: block;
    width: 100%;
    max-width: none;
    padding: 12px 10px 18px;
  }

  .overlay {
    padding: 12px;
    z-index: 100;
  }

  .overlay-front {
    z-index: 110;
  }

  .overlay-bonus-talep,
  .overlay-ops {
    z-index: 120;
  }

  .overlay-auth {
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 130;
  }

  .cw-auth,
  .cw-auth--register {
    width: min(400px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  .cw-form--login .cw-promo {
    display: none;
  }

  .cw-check {
    min-height: 44px;
    font-size: 15px;
  }

  .cw-check i {
    width: 20px;
    height: 20px;
  }

  .cashier-overlay {
    top: var(--hdr-h, 96px);
    padding: 0;
    z-index: 70;
  }

  .cashier {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - var(--hdr-h, 96px));
  }

  .cashier-head {
    position: sticky;
    top: 0;
    z-index: 8;
    padding-top: 8px;
  }

  .cashier-close {
    width: 44px;
    height: 44px;
    color: #f4d980;
    background: #1c1c1a;
    border: 1px solid rgba(212, 175, 55, 0.45);
  }

  .cashier-close svg {
    width: 18px;
    height: 18px;
  }

  .cashier-main {
    padding: 8px 12px calc(28px + var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }

  .cashier-head h2 {
    font-size: 20px;
  }

  .pay-grid,
  .pay-notice {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pay-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .bt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bt-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .bt-top {
    padding: 0 12px;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .cashier-main .bt-grid {
    grid-template-columns: 1fr;
  }

  .prov-popup {
    width: min(100%, 100vw);
    max-height: 88vh;
  }

  .prov-popup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal {
    width: min(420px, calc(100vw - 24px));
  }

  .jp-rest {
    grid-template-columns: 1fr;
  }

  .tv-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-flag {
    display: none;
  }

  .hdr-text-btn {
    padding: 0 6px;
    font-size: 9px;
  }

  .hdr-deposit-btn {
    padding: 0 7px;
    font-size: 9px;
  }
}
