@media (max-width: 820px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden !important;
    background: #050b18;
  }

  body {
    font-size: 14px;
    touch-action: manipulation;
  }

  #root > div {
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  header,
  nav,
  main,
  section,
  aside,
  footer {
    max-width: 100vw;
  }

  body .fixed.left-0,
  body aside.fixed,
  body aside.sticky,
  body [data-sidebar],
  body [class*="w-\\[220px\\]"] {
    display: none !important;
  }

  body main,
  body .flex-1,
  body [class*="ml-"],
  body [class*="pl-"] {
    min-width: 0 !important;
  }

  body main {
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body .max-w-\[1400px\],
  body .max-w-4xl,
  body .max-w-xl,
  body .max-w-lg,
  body .max-w-md {
    max-width: 100% !important;
  }

  body .grid {
    min-width: 0;
  }

  body .grid[class*="grid-cols-"],
  body .md\:grid-cols-2,
  body .lg\:grid-cols-3,
  body .xl\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  body .h-\[500px\] {
    height: auto !important;
    min-height: 250px !important;
  }

  body .rounded-2xl {
    border-radius: 10px !important;
  }

  body .gap-6 {
    gap: 12px !important;
  }

  body .p-6,
  body .p-5,
  body .p-4 {
    padding: 12px !important;
  }

  body .px-6,
  body .px-5,
  body .px-4 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .py-6,
  body .py-5,
  body .py-4 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body h1,
  body .text-5xl,
  body .text-6xl {
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  body h2,
  body .text-4xl,
  body .text-3xl {
    font-size: 22px !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  body p,
  body .text-lg {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body button,
  body a,
  body input,
  body select {
    min-height: 40px;
  }

  body input {
    font-size: 16px !important;
  }

  .site-logo-link {
    width: 104px !important;
    height: 32px !important;
    margin-right: 6px !important;
  }

  .site-logo-img {
    width: 104px !important;
    max-height: 32px !important;
  }

  body header,
  body nav {
    min-height: 52px !important;
  }

  body header > *,
  body nav > * {
    min-width: 0;
  }

  body header a,
  body nav a,
  body header button,
  body nav button {
    white-space: nowrap;
  }

  body header a:not(.site-logo-link),
  body nav a:not(.site-logo-link) {
    font-size: 12px !important;
  }

  body header .hidden,
  body nav .hidden {
    display: none !important;
  }

  body header [class*="space-x-"],
  body nav [class*="space-x-"] {
    gap: 8px !important;
  }

  .home-photo-slider {
    width: 100% !important;
    min-height: 300px !important;
    margin: 10px 0 12px !important;
    border-radius: 10px !important;
  }

  .home-photo-slider:before {
    background: linear-gradient(90deg, rgba(3, 8, 18, .92), rgba(3, 8, 18, .64), rgba(3, 8, 18, .35)) !important;
  }

  .home-photo-slider-image {
    object-position: 62% center !important;
  }

  .home-photo-slider > .home-slider-copy {
    left: 16px !important;
    right: 16px !important;
    top: 50% !important;
    max-width: none !important;
  }

  .home-slider-copy-kicker {
    margin-bottom: 10px !important;
    padding: 5px 10px !important;
    font-size: 10px !important;
  }

  .home-slider-copy-title {
    max-width: 320px;
    margin-bottom: 10px !important;
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.02 !important;
  }

  .home-slider-copy-text {
    max-width: 300px;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  .home-slider-copy-actions {
    gap: 8px !important;
  }

  .home-slider-copy-actions a {
    min-width: 124px;
    min-height: 40px;
    padding: 0 14px !important;
    font-size: 13px !important;
  }

  .home-slider-dots {
    left: 16px !important;
    bottom: 12px !important;
  }

  .home-slider-dots button {
    width: 18px !important;
  }

  .home-slider-dots button.active {
    width: 30px !important;
  }

  .provider-lobby {
    width: 100% !important;
    min-height: calc(100svh - 56px) !important;
    padding: 10px 10px 28px !important;
  }

  .provider-hero {
    display: grid !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
    padding: 18px !important;
    border-radius: 10px !important;
  }

  .provider-hero h1 {
    font-size: 28px !important;
    line-height: 1.04 !important;
  }

  .provider-hero p {
    max-width: 34ch;
    font-size: 12px !important;
  }

  #providerSearch {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    font-size: 16px !important;
  }

  .provider-shell {
    display: block !important;
  }

  .provider-sidebar {
    position: static !important;
    display: flex !important;
    width: calc(100vw - 20px) !important;
    margin: 0 0 10px !important;
    padding: 8px !important;
    gap: 8px !important;
    overflow-x: auto !important;
    border-radius: 10px !important;
    -webkit-overflow-scrolling: touch;
  }

  .provider-filter {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 108px;
    height: 38px !important;
    padding: 0 10px !important;
    text-align: center !important;
    font-size: 11px !important;
  }

  .provider-tabs {
    display: flex !important;
    width: calc(100vw - 20px) !important;
    margin-bottom: 10px !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .provider-tabs button {
    flex: 0 0 auto;
    min-width: 118px;
    height: 40px !important;
    padding: 0 10px;
    font-size: 10px !important;
  }

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

  .provider-card {
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  .provider-name {
    left: 8px !important;
    right: 8px !important;
    bottom: 25px !important;
    font-size: 12px !important;
  }

  .provider-studio {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    font-size: 9px !important;
  }

  .sports-board {
    gap: 10px !important;
  }

  .sport-group {
    border-radius: 10px !important;
  }

  .sport-group header {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .sport-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .sport-meta {
    margin: 0 !important;
    font-size: 10px !important;
  }

  .sport-match {
    margin: 0 !important;
    align-items: start !important;
  }

  .sport-match b {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .sport-match em {
    flex: 0 0 auto;
    min-width: 54px;
    text-align: right;
    font-size: 17px !important;
  }

  .sport-odds {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .sport-odds button {
    height: 40px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
  }

  body [class*="Bet Slip"],
  body [class*="bet slip"] {
    display: none !important;
  }

  body.mobile-home-games-page main > div > :nth-child(n+4):not(.mobile-home-games-mount) {
    display: none !important;
  }

  body.mobile-home-games-page [data-mobile-hidden="true"] {
    display: none !important;
  }

  body.mobile-home-games-page main > div > :nth-child(2):not(.mobile-home-games-mount),
  body.mobile-home-games-page main > div > :nth-child(3):not(.mobile-home-games-mount) {
    display: none !important;
  }

  body.mobile-home-games-page {
    background:
      radial-gradient(circle at 12% -2%, rgba(255, 176, 0, .18), transparent 26%),
      radial-gradient(circle at 88% 6%, rgba(0, 209, 143, .12), transparent 23%),
      linear-gradient(180deg, #070816 0%, #050814 42%, #020712 100%) !important;
  }

  body.mobile-home-games-page header > div.bg-\[\#050912\] {
    display: none !important;
  }

  .mobile-casino-ticker {
    height: 30px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 176, 0, .18);
    background: linear-gradient(90deg, #120b03, #070c1a 42%, #160718);
    color: #fff;
  }

  .mobile-casino-ticker div {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 30px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .mobile-casino-ticker strong {
    color: #ffb000;
    font-size: 11px;
    font-weight: 950;
  }

  .mobile-casino-ticker span {
    color: rgba(255, 255, 255, .78);
    font-size: 10px;
    font-weight: 800;
  }

  body.mobile-home-games-page .home-photo-slider {
    min-height: 318px !important;
    margin: 14px 0 12px !important;
    border: 1px solid rgba(255, 199, 88, .38);
    border-radius: 14px !important;
    box-shadow: 0 22px 46px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 34px rgba(255, 176, 0, .08);
  }

  body.mobile-home-games-page .home-photo-slider:before {
    background:
      radial-gradient(circle at 20% 18%, rgba(255, 176, 0, .22), transparent 24%),
      linear-gradient(90deg, rgba(5, 7, 17, .94), rgba(20, 9, 34, .7), rgba(5, 7, 17, .18)) !important;
  }

  body.mobile-home-games-page .home-photo-slider:after {
    height: 58%;
    background: linear-gradient(0deg, rgba(1, 6, 15, .94), rgba(1, 6, 15, .18), transparent) !important;
  }

  body.mobile-home-games-page .home-slider-copy-kicker {
    border-color: rgba(255, 176, 0, .58);
    background: linear-gradient(135deg, rgba(255, 176, 0, .2), rgba(255, 255, 255, .06));
    color: #ffdc7a;
    box-shadow: 0 0 20px rgba(255, 176, 0, .12);
  }

  body.mobile-home-games-page .home-slider-copy-primary {
    background: linear-gradient(135deg, #00d18f, #08a7ff);
    box-shadow: 0 12px 26px rgba(0, 209, 143, .22), inset 0 1px 0 rgba(255, 255, 255, .28);
  }

  body.mobile-home-games-page .home-slider-copy-secondary {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(255, 176, 0, .42) inset, inset 0 1px 0 rgba(255, 255, 255, .16);
  }

  body.mobile-home-games-page main > div > :nth-child(2) {
    border-color: rgba(0, 209, 143, .25) !important;
    background: linear-gradient(90deg, rgba(0, 154, 103, .38), rgba(16, 24, 48, .92)) !important;
  }

  body.mobile-home-games-page main > div > :nth-child(3) {
    gap: 9px !important;
  }

  body.mobile-home-games-page main > div > :nth-child(3) > * {
    border-color: rgba(255, 176, 0, .14) !important;
    background: linear-gradient(135deg, rgba(18, 27, 52, .96), rgba(8, 13, 29, .96)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
  }

  .mobile-casino-vibe {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
  }

  .mobile-casino-vibe-card {
    min-height: 78px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 199, 88, .2);
    border-radius: 12px;
    background:
      radial-gradient(circle at 80% 15%, rgba(255, 176, 0, .18), transparent 34%),
      linear-gradient(160deg, #111b35, #080d1d);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
  }

  .mobile-casino-vibe-card span {
    display: inline-flex;
    min-width: 28px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 176, 0, .16);
    color: #ffbf26;
    font-size: 11px;
    font-weight: 950;
  }

  .mobile-casino-vibe-card strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 950;
  }

  .mobile-casino-vibe-card small {
    display: block;
    margin-top: 4px;
    color: rgba(215, 226, 242, .62);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 750;
  }

  .mobile-home-games-mount {
    display: block !important;
    padding-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(0, 209, 143, .08), rgba(6, 11, 25, 0) 20%), linear-gradient(180deg, rgba(10, 18, 38, .72), rgba(3, 8, 18, .1));
  }

  .mobile-premium-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 9px;
  }

  .mobile-premium-strip div {
    min-height: 60px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 199, 88, .22);
    border-radius: 12px;
    background: radial-gradient(circle at 82% 15%, rgba(255, 199, 88, .26), transparent 30%), linear-gradient(145deg, rgba(22, 31, 59, .98), rgba(7, 12, 27, .98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  }

  .mobile-premium-strip span {
    display: block;
    color: rgba(220, 230, 245, .68);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .mobile-premium-strip strong {
    display: block;
    margin-top: 4px;
    color: #ffcf57;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 950;
  }

  .mobile-casino-floor {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 10px;
  }

  .mobile-casino-floor a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 199, 88, .26);
    border-radius: 11px;
    background: linear-gradient(160deg, rgba(255, 176, 0, .18), rgba(20, 28, 54, .96));
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .mobile-home-games {
    display: grid;
    gap: 10px;
    padding: 0 0 22px;
  }

  .mobile-home-games-slots,
  .mobile-home-games-live {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  .mobile-home-games-loading {
    min-height: 120px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: #0b1428;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
  }

  .mobile-home-games-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
    padding: 0 1px;
  }

  .mobile-home-games-head-live {
    margin-top: 16px;
  }

  .mobile-home-games-head span {
    display: block;
    margin-bottom: 2px;
    color: #ffcf57;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .mobile-home-games-head h2 {
    margin: 0;
    color: #fff;
    font-size: 26px !important;
    line-height: 1.1 !important;
    font-weight: 950;
  }

  .mobile-home-games-head a {
    min-height: 30px;
    color: #ffcf57;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
  }

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

  .mobile-game-card {
    position: relative;
    display: block;
    min-height: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: #101a31;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
    text-align: left;
  }

  .mobile-game-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111b31;
    transition: transform .25s ease;
  }

  .mobile-game-card:active img {
    transform: scale(1.04);
  }

  .mobile-game-card[data-game-type="live"] {
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 176, 0, .18), transparent 24%),
      linear-gradient(180deg, #17213a, #090e1c 72%);
  }

  .mobile-game-shade {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 50% 4%, rgba(255, 199, 88, .18), transparent 24%),
      linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .1) 42%, rgba(0, 0, 0, .9));
  }

  .mobile-game-badge {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    padding: 3px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #00c985, #029a68);
    box-shadow: 0 6px 12px rgba(0, 201, 133, .2);
    color: #fff;
    font-size: 9px;
    font-weight: 950;
  }

  .mobile-game-name {
    position: absolute;
    z-index: 2;
    left: 9px;
    right: 9px;
    bottom: 27px;
    color: #fff;
    font-size: 13px;
    line-height: 1.12;
    font-weight: 950;
    text-shadow: 0 2px 8px #000;
  }

  .mobile-game-studio {
    position: absolute;
    z-index: 2;
    left: 9px;
    right: 9px;
    bottom: 10px;
    color: rgba(220, 231, 245, .8);
    font-size: 9px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  body main {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .home-photo-slider {
    min-height: 306px !important;
  }

  .home-slider-copy-title {
    max-width: 285px;
    font-size: 30px !important;
  }

  .home-slider-copy-text {
    max-width: 265px;
  }

  .home-slider-copy-actions a {
    min-width: 112px;
    padding: 0 12px !important;
  }

  .provider-grid {
    gap: 8px !important;
  }

  .provider-filter {
    min-width: 102px;
  }
}
