﻿/* BingoRon mobile horizontal game layout. Keep landscape game rules here. */

@media (max-width: 680px), (max-height: 520px) and (max-width: 980px) {
  body.mobile-landscape-game {
    --mobile-landscape-header-height: 0px;
    --focused-game-header-height: clamp(74px, 21.5svh, 86px);
    --mobile-landscape-side-lane: clamp(76px, 9vw, 84px);
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    width: 100svw;
    height: 100svh;
    overflow: hidden;
    background: var(--page-black);
  }

  body.mobile-landscape-game .app-header,
  body.mobile-landscape-game .market-shell,
  body.mobile-landscape-game .preview-shell,
  body.mobile-landscape-game .leaderboard-shell {
    display: none !important;
  }

  body.mobile-landscape-game .app-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    display: none !important;
    grid-template-columns: minmax(130px, 0.75fr) minmax(230px, 1fr) minmax(228px, auto);
    gap: 6px;
    align-items: center;
    min-height: var(--mobile-landscape-header-height);
    padding: 4px 8px;
  }

  body.mobile-landscape-game .brand-lockup {
    gap: 6px;
  }

  body.mobile-landscape-game .brand-mark {
    width: 30px;
  }

  body.mobile-landscape-game .brand-logo {
    width: 28px;
    height: 28px;
  }

  body.mobile-landscape-game .brand-lockup h1 {
    font-size: 0.9rem;
    line-height: 1;
  }

  body.mobile-landscape-game .brand-lockup p {
    display: none;
  }

  body.mobile-landscape-game .top-nav {
    min-height: 34px;
    padding: 2px;
  }

  body.mobile-landscape-game .top-nav button {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  body.mobile-landscape-game .header-actions {
    display: grid;
    grid-template-columns: minmax(116px, 1fr) minmax(104px, 0.8fr) 34px;
    gap: 5px;
    width: auto;
  }

  body.mobile-landscape-game .credits-button,
  body.mobile-landscape-game .account-button,
  body.mobile-landscape-game .settings-button {
    min-height: 34px;
    border-radius: 8px;
  }

  body.mobile-landscape-game .settings-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  @media (orientation: landscape) {
    body:not(.mobile-landscape-game) .app-header {
      grid-template-columns: minmax(150px, 0.85fr) minmax(260px, 1fr) minmax(244px, auto);
      gap: 8px;
      align-items: center;
      padding: 6px 10px;
    }

    body:not(.mobile-landscape-game) .brand-lockup {
      gap: 8px;
    }

    body:not(.mobile-landscape-game) .brand-mark {
      width: 34px;
    }

    body:not(.mobile-landscape-game) .brand-logo {
      width: 31px;
      height: 31px;
    }

    body:not(.mobile-landscape-game) .brand-lockup h1 {
      font-size: 1rem;
      line-height: 1;
    }

    body:not(.mobile-landscape-game) .brand-lockup p {
      overflow: hidden;
      margin-top: 2px;
      font-size: 0.72rem;
      line-height: 1.08;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body:not(.mobile-landscape-game) .header-actions {
      display: grid;
      grid-template-columns: minmax(120px, 1fr) minmax(120px, 0.8fr) 36px;
      gap: 6px;
      width: auto;
    }

    body:not(.mobile-landscape-game) .credits-button,
    body:not(.mobile-landscape-game) .account-button,
    body:not(.mobile-landscape-game) .settings-button {
      min-height: 36px;
      border-radius: 8px;
    }

    body:not(.mobile-landscape-game) .credits-button,
    body:not(.mobile-landscape-game) .account-button {
      padding: 0 10px;
    }

    body:not(.mobile-landscape-game) .settings-button {
      width: 36px;
      min-width: 36px;
      height: 36px;
      padding: 0;
    }

    body:not(.mobile-landscape-game) .top-nav {
      grid-column: 1 / -1;
      min-height: 33px;
      margin-top: 0;
      padding: 2px;
    }

    body:not(.mobile-landscape-game) .top-nav a,
    body:not(.mobile-landscape-game) .top-nav button {
      min-height: 29px;
      padding: 4px 8px;
      font-size: 0.76rem;
    }

    body:not(.mobile-landscape-game) .market-shell,
    body:not(.mobile-landscape-game) .preview-shell,
    body:not(.mobile-landscape-game) .leaderboard-shell,
    body:not(.mobile-landscape-game) .game-shell {
      padding: 8px 10px 12px;
    }

    body:not(.mobile-landscape-game) .market-main {
      gap: 8px;
    }

    body:not(.mobile-landscape-game) .market-toolbar {
      gap: 8px;
      margin-bottom: 0;
    }

    body:not(.mobile-landscape-game) .market-toolbar h2 {
      font-size: 1.05rem;
    }

    body:not(.mobile-landscape-game) .market-toolbar p {
      display: none;
    }

    body:not(.mobile-landscape-game) .stats-strip {
      gap: 6px;
    }

    body:not(.mobile-landscape-game) .stats-strip article {
      padding: 7px 9px;
    }

    body:not(.mobile-landscape-game) .stats-strip span {
      font-size: 1rem;
    }

    body:not(.mobile-landscape-game) .stats-strip small {
      font-size: 0.68rem;
    }

    body:not(.mobile-landscape-game) .cards-grid,
    body:not(.mobile-landscape-game) .cards-grid.compact {
      grid-template-columns: repeat(auto-fit, minmax(132px, 148px));
      justify-content: center;
      gap: 8px;
    }

    body:not(.mobile-landscape-game) .collection-card-shell {
      width: min(22vw, 148px);
      justify-self: center;
    }

    body:not(.mobile-landscape-game) .collection-card-shell .card-meta {
      left: 5px;
      right: 36px;
    }

    body:not(.mobile-landscape-game) .collection-card-shell .asset-name {
      font-size: clamp(0.46rem, 5.2cqw, 0.62rem);
      line-height: 1;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .app-header {
      grid-template-columns: minmax(106px, 0.62fr) minmax(246px, 1fr) minmax(236px, auto);
      gap: 6px;
      padding: 5px 8px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .brand-lockup {
      gap: 6px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .brand-mark {
      width: 30px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .brand-logo {
      width: 28px;
      height: 28px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .brand-lockup h1 {
      font-size: 0.9rem;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .brand-lockup p {
      display: none;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .top-nav {
      grid-column: 2;
      grid-row: 1;
      align-self: center;
      min-height: 34px;
      padding: 2px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .top-nav a,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .top-nav button {
      min-height: 30px;
      padding: 3px 6px;
      font-size: 0.72rem;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .header-actions {
      grid-column: 3;
      grid-row: 1;
      grid-template-columns: minmax(104px, 1fr) minmax(94px, 0.78fr) 34px;
      gap: 5px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .credits-button,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .account-button,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .settings-button {
      min-height: 34px;
      border-radius: 8px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .credits-button,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .account-button {
      padding: 0 8px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .settings-button {
      width: 34px;
      min-width: 34px;
      height: 34px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .app-header {
      grid-template-columns: minmax(172px, 0.8fr) minmax(236px, 1fr) minmax(226px, auto);
      gap: 6px;
      padding: 5px 8px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .brand-lockup {
      gap: 6px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .brand-mark {
      width: 30px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .brand-logo {
      width: 28px;
      height: 28px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .brand-lockup h1 {
      font-size: 0.86rem;
      line-height: 1.08;
      white-space: nowrap;
      transform: translateY(-1px);
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .brand-lockup p {
      display: none;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .top-nav {
      grid-column: 2;
      grid-row: 1;
      align-self: center;
      min-height: 34px;
      padding: 2px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .top-nav a,
    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .top-nav button {
      min-height: 30px;
      padding: 3px 6px;
      font-size: 0.72rem;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .header-actions {
      grid-column: 3;
      grid-row: 1;
      grid-template-columns: minmax(104px, 1fr) minmax(94px, 0.78fr) 34px;
      gap: 5px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .credits-button,
    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .account-button,
    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .settings-button {
      min-height: 34px;
      border-radius: 8px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .credits-button,
    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .account-button {
      padding: 0 8px;
    }

    body:is([data-active-page="game"], [data-active-page="leaderboard"]):not(.mobile-landscape-game) .settings-button {
      width: 34px;
      min-width: 34px;
      height: 34px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-shell {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: start;
      gap: 4px;
      padding: 6px 8px 10px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .filters-panel {
      display: grid;
      grid-column: 1 / 3;
      grid-row: 1;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      border-radius: 9px;
      overflow: hidden;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .panel-block,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .panel-block:nth-child(2n) {
      padding: 4px;
      border-right: 1px solid var(--line);
      border-bottom: 0;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .panel-block:last-child {
      border-right: 0;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-card,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .field-label,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .sort-control span,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .stats-strip {
      display: none;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .text-input,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .select-input {
      min-height: 34px;
      border-radius: 8px;
      padding: 0 8px;
      font-size: 0.74rem;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-main {
      display: contents;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-main,
    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-toolbar {
      gap: 4px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-toolbar {
      display: grid;
      grid-column: 3 / -1;
      grid-row: 1;
      grid-template-columns: minmax(0, 1fr);
      width: 100%;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-toolbar > div:first-child {
      display: none;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .toolbar-controls {
      display: grid;
      width: 100%;
      justify-self: stretch;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .sort-control {
      min-width: 0;
      gap: 0;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .segmented-control {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 2px;
      min-height: 34px;
      padding: 2px;
      border-radius: 8px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .segmented-control button {
      min-width: 0;
      min-height: 30px;
      padding: 0 6px;
      font-size: 0.68rem;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .cards-grid {
      grid-column: 1 / -1;
      grid-row: 2;
      grid-template-columns: repeat(auto-fit, minmax(150px, 166px));
      justify-content: center;
      gap: 6px;
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-card-shell {
      width: min(19.5vw, 166px);
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .cards-grid.compact {
      grid-template-columns: repeat(auto-fit, minmax(124px, 138px));
    }

    body[data-active-page="marketplace"]:not(.mobile-landscape-game) .cards-grid.compact .collection-card-shell {
      width: min(16.5vw, 138px);
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-tabs {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: start;
      gap: 8px;
      width: min(98vw, 900px);
      max-height: min(86svh, 340px);
      padding: 10px;
      overflow-y: auto;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room),
    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button.active {
      width: 100%;
      max-width: 286px;
      justify-self: center;
      border-radius: 14px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .room-launchers {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: center;
      gap: 10px;
      padding: 8px 12px 14px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .room-launcher {
      min-height: clamp(124px, 36svh, 168px);
      border-radius: 18px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .room-launcher img {
      width: min(100%, 238px);
      max-height: 154px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metrics {
      gap: 5px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric {
      grid-template-columns: 26px minmax(0, 1fr);
      gap: 0 5px;
      border-radius: 9px;
      padding: 4px 6px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric-icon {
      width: 26px;
      height: 26px;
      border-radius: 8px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric small {
      font-size: 0.52rem;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric strong {
      font-size: 0.9rem;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="timer"] strong {
      font-size: 0.72rem;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) {
      --mobile-landscape-lobby-lane: clamp(38px, 5.3vw, 48px);
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell[data-mobile-step="rooms"] {
      padding-right: calc(var(--mobile-landscape-lobby-lane) + env(safe-area-inset-right, 0px));
      padding-left: calc(var(--mobile-landscape-lobby-lane) + env(safe-area-inset-left, 0px));
      background: #000;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell[data-mobile-step="rooms"] .game-setup-panel {
      border: 0;
      background: transparent;
      box-shadow: none;
      padding: 0;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell[data-mobile-step="rooms"] .game-control-header {
      border-bottom: 0;
      padding: 8px 0 4px;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell[data-mobile-step="rooms"] .room-launchers {
      padding-right: 0;
      padding-left: 0;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell[data-mobile-step="rooms"] .room-launcher {
      background: transparent;
      box-shadow: none;
    }

    body[data-active-page="game"]:not(.mobile-landscape-game) .game-shell[data-mobile-step="rooms"] .room-launcher::before {
      content: none;
    }
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] {
    --mobile-landscape-chat-width: clamp(244px, 38vw, 360px);
    --mobile-landscape-meta-width: clamp(142px, 22vw, 176px);
    --mobile-landscape-top-gap: 5px;
    --mobile-landscape-chat-top: calc(4px + var(--focused-game-header-height) + 3px + 40px + 3px);
    position: fixed;
    inset: var(--mobile-landscape-header-height) 0 0 0;
    display: grid;
    grid-template-columns: var(--mobile-landscape-side-lane) minmax(0, 1fr) var(--mobile-landscape-side-lane);
    grid-template-rows: var(--focused-game-header-height) 40px minmax(0, 1fr);
    gap: 3px;
    width: 100vw;
    height: calc(100vh - var(--mobile-landscape-header-height));
    width: 100svw;
    height: calc(100svh - var(--mobile-landscape-header-height));
    max-width: none;
    min-height: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #000;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized {
    --mobile-landscape-chat-width: 244px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"]:has(.creator-draw-controls:not([hidden])) {
    --mobile-landscape-chat-top: calc(4px + var(--focused-game-header-height) + 3px + 40px + 3px);
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-stepbar {
    position: relative;
    display: none !important;
    z-index: 60;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-stepbar [data-mobile-game-step] {
    display: none;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-resize-button {
    grid-column: 4;
    grid-row: 1;
    display: none !important;
    min-height: 34px;
    border: 1px solid rgba(216, 222, 223, 0.95);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--teal);
    height: 100%;
    font-weight: 1000;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-resize-button.active {
    background: var(--teal);
    color: #fff;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-stepbar button {
    min-height: 30px;
    border-radius: 7px;
    font-size: 0.64rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-meta-bar {
    display: none !important;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-credit-chip,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-account-chip,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-settings-button {
    appearance: none;
    min-width: 0;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    padding: 0 6px;
    font: inherit;
    cursor: pointer;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-credit-chip {
    grid-column: 4 / 6;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-color: transparent;
    background: transparent;
    color: var(--ink);
    text-align: center;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-credit-chip .currency-amount {
    gap: 3px;
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 1000;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-credit-chip .currency-amount img {
    width: 18px;
    height: 18px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-account-chip {
    grid-column: 6;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    font-size: 0.6rem;
    font-weight: 900;
    white-space: nowrap;
    border-color: transparent;
    background: transparent;
    color: var(--ink);
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-account-chip.connected {
    width: 30px;
    padding: 0;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-avatar {
    flex: 0 0 auto;
    width: 18px;
    font-size: 0.56rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-account-name {
    display: none;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-settings-button {
    grid-column: 7;
    grid-row: 1;
    display: grid;
    place-items: center;
    padding: 0;
    border-color: transparent;
    background: transparent url("assets/Icons/Settings.png") center / 24px 24px no-repeat;
    color: var(--teal);
    font-size: 0;
    font-weight: 1000;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .mobile-game-settings-button::before {
    content: none;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-stage {
    display: contents;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .focused-game-header {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: minmax(188px, 0.92fr) minmax(220px, 1.1fr) 44px;
    align-items: center;
    gap: 8px;
    min-height: var(--focused-game-header-height);
    background: transparent;
    z-index: 3;
    pointer-events: none;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .focused-game-brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    padding-left: 6px;
    transform: translateY(-2px);
    z-index: 5;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .focused-game-brand img {
    width: 28px;
    height: 28px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .focused-game-brand strong {
    max-width: none;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-toolbar {
    display: none !important;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-hud {
    display: none !important;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-room-header-banner {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    width: min(58vw, 500px);
    min-height: var(--focused-game-header-height);
    height: var(--focused-game-header-height);
    border-radius: 0;
    background-size: contain;
    background-position: center;
    filter: saturate(1.08) brightness(1.08) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    z-index: 4;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-room-header-banner .creator-draw-controls {
    pointer-events: auto;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    width: min(98vw, 900px);
    max-height: min(86svh, 340px);
    padding: 10px;
    overflow-y: auto;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room),
  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button.active {
    width: 100%;
    max-width: 286px;
    justify-self: center;
    border-radius: 14px;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metrics {
    top: 34%;
    right: 14%;
    left: 14%;
    gap: 5px;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0 5px;
    border-radius: 9px;
    padding: 4px 6px;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric small {
    font-size: 0.52rem;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric strong {
    font-size: 0.9rem;
  }

  body.mobile-landscape-game .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="timer"] strong {
    font-size: 0.72rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-toolbar > div:first-child {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    min-width: 0;
    min-height: 34px;
    border: 1px solid rgba(216, 222, 223, 0.95);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.94);
    padding: 3px 6px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-toolbar h2 {
    overflow: hidden;
    margin-top: 1px;
    font-size: 0.76rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .eyebrow {
    font-size: 0.46rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-actions {
    display: contents;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-actions button,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .audio-action {
    min-width: 0;
    width: 100%;
    min-height: 34px;
    padding: 0 3px;
    border-radius: 9px;
    font-size: 0.48rem;
    white-space: nowrap;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] #audioToggleButton {
    grid-column: 2;
    grid-row: 1;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] #voiceToggleButton {
    grid-column: 3;
    grid-row: 1;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .creator-draw-controls:not([hidden]) {
    grid-row: 2;
    grid-column: 1 / 5;
    display: grid;
    grid-template-columns: minmax(66px, 0.75fr) repeat(3, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    min-height: 28px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .creator-room-code,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .creator-control-button {
    display: grid;
    min-width: 0;
    min-height: 28px;
    padding: 0 5px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    font-size: 0.52rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-hud {
    grid-column: 4 / -1;
    grid-row: 3;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-hud article {
    border-radius: 9px;
    padding: 2px 5px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-hud small {
    font-size: 0.38rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-hud span {
    margin-top: 1px;
    font-size: 0.66rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .current-ball-tile span {
    font-size: 0.78rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball-row {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    height: 40px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball-strip {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    height: 40px;
    gap: 4px;
    overflow: hidden;
    border-color: transparent;
    background: transparent;
    padding: 2px 6px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball-exit {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    z-index: 240;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1) url("assets/Icons/Cancel.png") center / 74% 74% no-repeat;
    padding: 0;
    color: transparent;
    font-size: 0;
    pointer-events: auto;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 10px 22px rgba(0, 0, 0, 0.35);
    z-index: 5;
    pointer-events: auto;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball {
    flex: 0 0 auto;
    width: 34px;
    will-change: transform;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball-empty {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball.roll-in {
    animation: called-ball-roll-in 560ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball.push-slide {
    animation: called-ball-push-slide 560ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
  }

  @keyframes called-ball-roll-in {
    from {
      opacity: 0;
      transform: translateX(-34px) rotate(-300deg) scale(0.82);
    }

    72% {
      opacity: 1;
      transform: translateX(2px) rotate(14deg) scale(1.04);
    }

    to {
      opacity: 1;
      transform: translateX(0) rotate(0deg) scale(1);
    }
  }

  @keyframes called-ball-push-slide {
    from {
      transform: translateX(-32px);
    }

    to {
      transform: translateX(0);
    }
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball-face {
    width: 72%;
    border-width: 1px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.9),
      inset -1px -2px 3px rgba(29, 35, 41, 0.12),
      inset 1px 1px 2px rgba(255, 255, 255, 0.95);
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball-face small {
    font-size: 0.3rem;
    margin-top: 0;
    transform: translateY(-2px);
    line-height: 0.85;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball-face strong {
    color: #111;
    font-size: 0.68rem;
    font-weight: 1000;
    margin-top: -4px;
    line-height: 0.9;
  }

  @media (prefers-reduced-motion: reduce) {
    body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball.roll-in,
    body.mobile-landscape-game .game-shell[data-mobile-step="game"] .called-ball.push-slide {
      animation: none;
    }
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-cards-grid {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    min-height: 252px;
    border-radius: 10px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-no-winner-announcement {
    top: 12px;
    left: calc((100% - var(--mobile-landscape-chat-width) - 18px) / 2);
    min-width: 0;
    width: min(330px, calc(100% - var(--mobile-landscape-chat-width) - 36px));
    max-width: calc(100% - var(--mobile-landscape-chat-width) - 36px);
    min-height: 62px;
    padding: 6px 16px;
    font-size: clamp(1.25rem, 4.2vw, 1.95rem);
    line-height: 0.96;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-no-winner-announcement.wait-round,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-no-winner-announcement.countdown {
    min-height: 54px;
    font-size: clamp(0.98rem, 3.1vw, 1.35rem);
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-cards-grid.table-theme-fiesta,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-cards-grid.table-theme-beach,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-cards-grid.table-theme-halloween {
    --theme-scene-height: max(252px, 100%);
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-card-frame {
    width: 171px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame {
    width: 193px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .bingo-card {
    grid-template-rows: 1fr;
    aspect-ratio: 5 / 5.35;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .art-panel {
    position: absolute;
    z-index: 0;
    inset: 0;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .art-panel::after {
    inset: 0;
    height: auto;
    background: rgba(255, 255, 255, 0.14);
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .nft-image {
    width: 100%;
    height: 100%;
    margin-top: 0;
    opacity: 0.5;
    object-fit: contain;
    filter: saturate(1.08) drop-shadow(0 10px 16px rgba(29, 35, 41, 0.2));
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .card-meta,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .card-owner-badge {
    display: none;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .grid-panel {
    z-index: 2;
    grid-row: 1;
    align-self: stretch;
    padding: clamp(7px, 3cqw, 10px);
    background: transparent;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .bingo-grid {
    --bingo-header-row-height: clamp(13px, 6cqw, 19px);
    --bingo-panel-bottom-padding: 0px;
    --bingo-number-row-height: calc((92cqw - var(--bingo-header-row-height) - 15px) / 5);
    align-self: center;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .grid-cell {
    background: rgba(255, 255, 255, 0.84);
    font-size: clamp(0.74rem, 5.2cqw, 1rem);
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .grid-cell.header {
    background: rgba(29, 35, 41, 0.92);
    color: #fff;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-card-footer {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 0.62rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-cards-zone {
    gap: 5px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-cards-title {
    padding: 2px 7px;
    font-size: 0.52rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 106px));
    gap: 8px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-card-frame .bingo-card {
    border-width: 3px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-card-frame .card-meta {
    top: 4px;
    left: 5px;
    right: 31px;
    min-height: 16px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-card-frame .asset-name {
    font-size: clamp(0.34rem, 5.2cqw, 0.48rem);
    line-height: 1;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-card-frame .card-owner-badge {
    top: 4px;
    right: 4px;
    width: 24px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-card-frame .card-owner-badge .player-avatar {
    width: 20px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-card-frame .grid-panel {
    padding: 3px;
    padding-top: 0;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .other-player-card-frame .bingo-grid {
    --bingo-header-row-height: 7px;
    --bingo-panel-bottom-padding: 3px;
    gap: 1.5px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-panel {
    position: fixed;
    top: var(--mobile-landscape-chat-top);
    right: calc(var(--mobile-landscape-side-lane) + 4px + env(safe-area-inset-right, 0px));
    bottom: 4px;
    left: auto;
    width: min(var(--mobile-landscape-chat-width), calc(100svw - 8px));
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 10px;
    transition: bottom 180ms cubic-bezier(0.2, 0.8, 0.2, 1), max-height 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  body.mobile-landscape-game .mobile-quick-tool-battlepass {
    left: calc(4px + env(safe-area-inset-left, 0px));
  }

  body.mobile-landscape-game .mobile-quick-tool-chat,
  body.mobile-landscape-game:not(.mobile-chat-collapsed) .mobile-quick-tool-chat {
    right: calc(4px + env(safe-area-inset-right, 0px));
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-game-quick-tools,
  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .table-chat-panel {
    pointer-events: none;
  }

  body.mobile-landscape-game .mobile-battlepass-panel {
    --battlepass-landscape-cell-size: clamp(82px, 25svh, 116px);

    inset: 0;
    z-index: 5000;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-height: none;
    padding: calc(6px + env(safe-area-inset-top, 0px)) calc(6px + env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) calc(6px + env(safe-area-inset-left, 0px));
    border-color: rgba(172, 229, 255, 0.82);
    border-radius: 0;
    background:
      radial-gradient(circle at 12% 0%, rgba(116, 190, 214, 0.58), transparent 34%),
      radial-gradient(circle at 86% 18%, rgba(255, 213, 112, 0.34), transparent 30%),
      linear-gradient(180deg, #3a7891 0%, #235d78 46%, #123a52 100%);
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.62),
      0 0 0 1px rgba(255, 255, 255, 0.48) inset,
      0 0 30px rgba(101, 228, 220, 0.24);
    isolation: isolate;
    backdrop-filter: none;
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-rewards {
    grid-template-columns: clamp(72px, 10vw, 102px) minmax(0, 1fr);
    padding: 0 clamp(10px, 1.8vw, 18px) clamp(10px, 1.8vw, 18px);
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-track {
    grid-auto-columns: var(--battlepass-landscape-cell-size);
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-tier {
    grid-template-rows: var(--battlepass-landscape-cell-size) 26px var(--battlepass-landscape-cell-size);
    align-content: center;
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-reward {
    min-height: 0;
    padding: 7px;
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-reward-image {
    width: 92%;
    height: 92%;
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-tasks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 1vw, 10px);
    align-content: start;
    padding: 0 clamp(10px, 1.8vw, 18px) clamp(10px, 1.8vw, 18px);
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-task {
    gap: 5px;
    min-height: clamp(78px, 23svh, 106px);
    padding: clamp(6px, 1.1vw, 10px);
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-task-copy strong {
    font-size: clamp(0.58rem, 1.15vw, 0.72rem);
  }

  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-task-copy span,
  body.mobile-battlepass-open:is(.mobile-landscape-game, .mobile-game-lobby-tools) .mobile-battlepass-task-action {
    font-size: clamp(0.5rem, 1vw, 0.62rem);
  }

  body.mobile-landscape-game.mobile-chat-collapsed .mobile-battlepass-panel {
    right: 0;
  }

  @media (orientation: landscape) {
    body.mobile-game-lobby-tools .mobile-game-quick-tools {
      position: fixed;
      inset: auto 0 0 0;
      z-index: 1200;
      display: contents;
      pointer-events: none;
    }

    body.mobile-game-lobby-tools .mobile-quick-tool {
      bottom: calc(8px + env(safe-area-inset-bottom, 0px));
      min-width: 64px;
      min-height: 44px;
      border-radius: 14px 14px 16px 16px;
      padding: 6px 10px 7px;
    }

    body.mobile-game-lobby-tools .mobile-quick-tool span {
      font-size: 0.78rem;
    }

    body.mobile-game-lobby-tools .mobile-quick-tool small {
      font-size: 0.52rem;
    }

    body.mobile-game-lobby-tools .mobile-quick-tool-battlepass {
      left: calc(4px + env(safe-area-inset-left, 0px));
    }

    body.mobile-game-lobby-tools .mobile-quick-tool-chat {
      right: calc(4px + env(safe-area-inset-right, 0px));
    }

    body.mobile-game-lobby-tools .table-chat-panel {
      position: fixed;
      top: calc(54px + env(safe-area-inset-top, 0px));
      right: calc(var(--mobile-landscape-lobby-lane, 44px) + 4px + env(safe-area-inset-right, 0px));
      bottom: calc(4px + env(safe-area-inset-bottom, 0px));
      left: auto;
      z-index: 1180;
      width: min(310px, 38vw);
      height: auto;
      min-height: 0;
      max-height: none;
      border-radius: 12px;
    }

    body.mobile-game-lobby-tools .mobile-battlepass-panel {
      --battlepass-landscape-cell-size: clamp(82px, 25svh, 116px);

      position: fixed;
      inset: 0;
      z-index: 5000;
      display: grid;
      box-sizing: border-box;
      width: auto;
      height: auto;
      max-height: none;
      padding: calc(6px + env(safe-area-inset-top, 0px)) calc(6px + env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) calc(6px + env(safe-area-inset-left, 0px));
      border-color: rgba(172, 229, 255, 0.82);
      border-radius: 0;
      background:
        radial-gradient(circle at 12% 0%, rgba(116, 190, 214, 0.58), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(255, 213, 112, 0.34), transparent 30%),
        linear-gradient(180deg, #3a7891 0%, #235d78 46%, #123a52 100%);
      box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(255, 255, 255, 0.48) inset,
        0 0 30px rgba(101, 228, 220, 0.24);
      isolation: isolate;
      backdrop-filter: none;
    }
  }

  body.mobile-landscape-game.chat-keyboard-active .game-shell[data-mobile-step="game"] .table-chat-panel {
    bottom: calc(var(--mobile-keyboard-offset, 0px) + 4px + env(safe-area-inset-bottom, 0px));
    max-height: calc(var(--mobile-keyboard-viewport-height, 100svh) - var(--mobile-landscape-chat-top) - 4px);
    will-change: bottom, max-height;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-header {
    min-height: 45px;
    gap: 3px;
    padding: 4px 7px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-title strong {
    font-size: 0.76rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-room-label {
    font-size: 0.62rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-tab {
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-messages {
    padding: 6px 8px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-reaction-bar {
    padding: 4px 8px 0;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-reaction-button {
    width: 28px;
    min-width: 28px;
    font-size: 0.94rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-form {
    gap: 5px;
    padding: 5px 7px 6px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-avatar {
    width: 24px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-input {
    height: 28px;
    font-size: 0.76rem;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-emoji-toggle,
  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .table-chat-send {
    width: 28px;
    height: 28px;
  }

  body.mobile-landscape-game .game-shell[data-mobile-step="game"] .game-cards-grid .game-empty {
    width: calc(100% - var(--mobile-landscape-chat-width) - 18px);
    height: calc(100% - 14px);
    margin: 7px 0 7px 7px;
    padding: 82px 12px 14px;
    padding-right: 12px;
    padding-bottom: 14px;
  }
}

@media (orientation: landscape) and (max-width: 980px) {
  body:not(.mobile-landscape-game) .game-shell[data-mobile-step="cards"] .game-card-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 154px));
    justify-content: center;
    align-items: start;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 0 0 10px;
  }

  body:not(.mobile-landscape-game) .game-shell[data-mobile-step="cards"] .game-picker-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 0;
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 0;
  }

  body:not(.mobile-landscape-game) .game-shell[data-mobile-step="cards"] .game-picker-card .bingo-card {
    width: 100%;
    max-width: 154px;
  }

  body:not(.mobile-landscape-game) .game-shell[data-mobile-step="cards"] .game-picker-select-badge {
    width: min(100%, 154px);
    min-height: 26px;
    font-size: 0.66rem;
  }
}

@media (orientation: landscape) and (max-width: 980px) {
  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-shell {
    display: block;
    padding: 6px 8px 10px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-main {
    display: grid;
    position: relative;
    gap: 6px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .market-toolbar {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 0;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-title {
    display: none;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-viewbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 5px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-tabs {
    min-height: 34px;
    padding: 2px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-tabs button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-filter-button {
    width: 38px;
    height: 34px;
    min-height: 34px;
    border-radius: 9px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .filters-panel {
    position: absolute;
    z-index: 80;
    top: 40px;
    left: auto;
    right: 0;
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(760px, 100%);
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .filters-panel[hidden] {
    display: none !important;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .filters-panel .panel-block,
  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .filters-panel .panel-block:nth-child(2n) {
    padding: 5px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .filters-panel .panel-block:last-child {
    border-right: 0;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-card,
  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .field-label,
  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .sort-control span,
  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .stats-strip {
    display: none !important;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .cards-grid {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-grid {
    grid-template-columns: repeat(auto-fit, minmax(112px, 128px));
    justify-content: center;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-grid.collection-inventory-daubs {
    grid-template-columns: repeat(auto-fit, minmax(68px, 76px));
    gap: 5px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-tile {
    min-height: 164px;
    padding: 9px;
    border-radius: 12px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-daubs .collection-inventory-tile {
    min-height: 104px;
    gap: 5px;
    padding: 6px;
    border-radius: 9px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-preview {
    min-height: 94px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-daubs .collection-inventory-preview {
    min-height: 52px;
    border-radius: 8px;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-daubs .collection-inventory-image {
    width: min(74%, 48px);
    height: min(74%, 48px);
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-daubs .collection-inventory-tile strong {
    font-size: 0.62rem;
    line-height: 1;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-daubs .collection-inventory-status {
    padding: 2px 5px;
    font-size: 0.46rem;
  }

  body[data-active-page="marketplace"]:not(.mobile-landscape-game) .collection-inventory-tile-border .collection-inventory-preview {
    min-height: 136px;
  }
}
