@media (max-width: 1240px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    padding: 34px;
  }
  .home-hero-art .planet {
    width: 190px;
    height: 190px;
    right: 10px;
  }
  .home-hero-art .hero-rocket {
    width: 92px;
    left: 88px;
  }
  .auth-shell {
    gap: 42px;
    padding: 44px 34px;
  }
  .auth-title {
    font-size: clamp(46px, 5vw, 62px);
  }
  .roulette-head-meta {
    gap: 13px;
  }
}

@media (max-width: 1080px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roulette-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roulette-controls {
    flex-wrap: wrap;
  }
  .roulette-bet {
    flex: 1;
  }
  .color-buttons {
    flex: 1 0 100%;
  }
  .roulette-head-meta {
    font-size: 9.5px;
  }
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
  }
  .auth-title {
    font-size: 48px;
  }
  .profile-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .home-bottom {
    grid-template-columns: 1fr;
  }
  .home-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .home-hero-art {
    height: 250px;
  }
  .home-hero-art .planet {
    width: 160px;
    height: 160px;
    top: 38px;
  }
  .home-hero-art .hero-rocket {
    width: 78px;
    left: 70px;
    top: 55px;
  }
  .home-hero-art .float-chip {
    font-size: 9.5px;
    height: 31px;
  }
  .bonus-layout {
    grid-template-columns: 1fr;
  }
  .bonus-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 560px;
    padding: 34px 24px 46px;
  }
  .auth-copy {
    text-align: center;
    max-width: none;
  }
  .auth-brand {
    justify-content: center;
    margin-bottom: 26px;
  }
  .auth-kicker {
    margin-bottom: 16px;
  }
  .auth-title {
    font-size: 54px;
  }
  .auth-title span {
    display: inline;
  }
  .auth-lead {
    margin: 16px auto 0;
  }
  .auth-features {
    justify-content: center;
    margin-top: 22px;
  }
  .auth-footnote {
    justify-content: center;
    margin-top: 25px;
  }
  .auth-card {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .shell,
  .shell.is-collapsed {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 258px;
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    border-right: 1px solid var(--line-strong);
    box-shadow: 26px 0 70px rgba(0, 0, 0, 0.5);
    z-index: 240;
  }
  .shell.is-mobile-open .sidebar {
    transform: none;
  }
  .shell.is-collapsed .brand {
    justify-content: flex-start;
    padding: 2px 7px;
  }
  .shell.is-collapsed .brand-logo {
    width: 122px;
  }
  .shell.is-collapsed .nav-group-label,
  .shell.is-collapsed .nav-link > span,
  .shell.is-collapsed .nav-chevron,
  .shell.is-collapsed .sidebar-foot span,
  .shell.is-collapsed .sidebar-foot .server-state {
    display: revert;
  }
  .shell.is-collapsed .nav-link {
    justify-content: flex-start;
    padding: 0 12px;
    gap: 12px;
  }
  .shell.is-collapsed .subnav {
    margin-left: 23px;
    padding-left: 14px;
    align-items: stretch;
  }
  .shell.is-collapsed .subnav::before,
  .shell.is-collapsed .subnav-link span {
    display: block;
  }
  .shell.is-collapsed .subnav-link {
    justify-content: flex-start;
    width: auto;
    height: 37px;
    padding: 0 9px;
  }
  .shell.is-collapsed .sidebar-foot {
    justify-content: space-between;
    padding: 12px 10px 4px;
    visibility: visible;
  }
  .shell.is-collapsed .nav-link::after {
    display: none;
  }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 230;
    display: block;
    background: rgba(3, 4, 6, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .shell.is-mobile-open .mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .topbar {
    height: 70px;
    padding: 0 18px;
  }
  .topbar-toggle {
    border-color: transparent;
    background: transparent;
  }
  .topbar-actions {
    display: none;
  }
  .page {
    padding: 6px 18px 36px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 30px;
  }
  .home-hero-art {
    position: absolute;
    right: -40px;
    top: 26px;
    z-index: 1;
    width: 300px;
    height: 250px;
    opacity: 0.22;
    pointer-events: none;
  }
  .home-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 560px;
  }
  .home-hero h1 {
    font-size: 42px;
  }
  .home-hero-art .float-chip {
    display: none;
  }
  .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-card.shop {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 10px;
    padding: 0 13px;
  }
  .topbar-left {
    gap: 8px;
  }
  .breadcrumbs {
    gap: 5px;
    font-size: 13.5px;
  }
  .breadcrumbs > .i {
    display: none;
  }
  .breadcrumbs .crumb-parent {
    display: none;
  }
  .breadcrumbs .crumb-sep {
    display: none;
  }
  .topbar-right {
    gap: 4px;
  }
  .coin-pill,
  .b-pill {
    height: 36px;
    padding: 0 9px;
    font-size: 11px;
    border-radius: 10px;
  }
  .coin-pill .plus {
    display: none;
  }
  .account-btn {
    height: 36px;
    padding: 3px;
    border: 0;
    background: transparent;
  }
  .account-btn .avatar {
    width: 32px;
    height: 32px;
  }
  .account-btn > .i {
    display: none;
  }
  .page {
    padding: 4px 12px 32px;
  }
  .home-head {
    margin: 8px 0 16px;
  }
  .home-head h1 {
    font-size: 24px;
  }
  .home-head .date-chip {
    display: none;
  }
  .home-hero {
    padding: 26px 22px;
    border-radius: 20px;
  }
  .home-hero h1 {
    font-size: 34px;
  }
  .home-hero p {
    font-size: 12.5px;
  }
  .home-hero-actions .btn {
    height: 42px;
    padding: 0 15px;
    font-size: 12px;
  }
  .home-hero-stats {
    gap: 17px;
    margin-top: 23px;
  }
  .home-hero-stat strong {
    font-size: 15px;
  }
  .home-quick-grid {
    grid-template-columns: 1fr;
  }
  .quick-card.shop {
    grid-column: auto;
  }
  .home-hero-art {
    display: none;
  }
  .quick-card {
    min-height: 140px;
  }
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    padding: 13px;
    gap: 10px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
  }
  .stat-card strong {
    font-size: 15px;
  }
  .stat-card span {
    font-size: 9.5px;
  }
  .home-panel {
    padding: 15px;
  }

  .crash-page {
    max-width: none;
  }
  .crash-history-label {
    display: none;
  }
  .history-chip {
    height: 27px;
    min-width: 47px;
    font-size: 9.5px;
  }
  .crash-card {
    padding: 6px;
    border-radius: 19px;
  }
  .crash-scene {
    height: 400px;
    border-radius: 14px;
  }
  .scene-topline {
    display: none;
  }
  .crash-wait {
    top: 18px;
  }
  .crash-wait h2 {
    font-size: 22px;
  }
  .crash-wait p {
    font-size: 10.5px;
  }
  .wait-progress {
    width: 180px;
    height: 7px;
  }
  .crash-live {
    top: 18px;
  }
  .crash-live strong {
    font-size: 53px;
  }
  .lab {
    display: none;
  }
  .launchpad-art {
    width: 160%;
    bottom: -38px;
  }
  .rocket-wrap {
    width: 120px;
    height: 210px;
    bottom: 72px;
  }
  .scene-axis {
    right: 10px;
    top: 100px;
    bottom: 105px;
    width: 55px;
  }
  .axis-tick {
    font-size: 8px;
  }
  .axis-tick i {
    width: 16px;
  }
  .scene-roundid {
    display: none;
  }
  .crash-controls {
    padding: 10px 5px 4px;
  }
  .bet-row {
    gap: 7px;
  }
  .bet-box {
    padding: 10px;
  }
  .bet-box-row input,
  .bet-box-value {
    font-size: 14px;
  }
  .bet-quick {
    display: none;
  }
  .auto-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .auto-label {
    width: 100%;
    padding: 0;
    font-size: 9px;
  }
  .auto-custom {
    width: 58px;
  }
  .crash-action {
    height: 47px;
    margin-top: 9px;
  }
  .livebar-total {
    display: none;
  }
  .live-person:nth-child(n + 4) {
    display: none;
  }
  .crash-livebar {
    padding: 7px 8px;
    gap: 8px;
  }

  .roulette-board {
    padding: 10px;
    border-radius: 18px;
  }
  .roulette-head {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .roulette-head .icon-btn {
    width: 36px;
    height: 36px;
  }
  .roulette-head-meta {
    order: 4;
    width: 100%;
    gap: 12px;
    margin-left: 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
  }
  .roulette-head-actions {
    margin-left: auto;
  }
  .roulette-head-actions .btn {
    height: 34px;
    padding: 0 10px;
    font-size: 9.5px;
  }
  .roulette-head-actions .icon-btn {
    display: none;
  }
  .roulette-recent {
    flex-wrap: wrap;
    row-gap: 6px;
    margin-bottom: 8px;
  }
  .roulette-status {
    order: -1;
    flex: 1 1 100%;
    justify-content: flex-start;
    font-size: 9.5px;
  }
  .recent-label {
    display: none;
  }
  .recent-track {
    flex: 1 1 100%;
  }
  .roll-dot {
    width: 16px;
    height: 7px;
  }
  .roulette-viewport {
    height: 118px;
  }
  .roulette-tile {
    width: 92px;
    height: 92px;
    border-radius: 14px;
  }
  .roulette-viewport::before,
  .roulette-viewport::after {
    width: 54px;
  }
  .roulette-controls {
    gap: 8px;
  }
  .roulette-bet {
    height: 46px;
    flex-basis: 100%;
  }
  .color-buttons {
    gap: 5px;
  }
  .color-bet {
    height: 46px;
    font-size: 10px;
  }
  .color-bet::before {
    left: 9px;
    width: 6px;
    height: 6px;
  }
  .roulette-columns {
    grid-template-columns: 1fr;
  }
  .roulette-col {
    min-height: auto;
  }
  .roulette-players {
    max-height: none;
  }
  .roulette-player {
    padding: 6px;
  }

  .page-head {
    margin: 8px 0 15px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head-actions {
    display: none;
  }
  .shop-hero {
    padding: 24px;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .shop-hero h1 {
    font-size: 30px;
  }
  .shop-balance {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
  }
  .shop-balance strong {
    margin: 0;
    font-size: 23px;
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .shop-toolbar > .badge {
    align-self: flex-start;
  }
  .tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tab {
    flex: 0 0 auto;
    padding: 0 11px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-card {
    min-height: 300px;
  }
  .shop-art {
    height: 140px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-grid-cards {
    grid-template-columns: 1fr;
  }
  .purchase-grid {
    grid-template-columns: 1fr;
  }

  .bonus-hero {
    padding: 25px;
    min-height: auto;
  }
  .bonus-hero h1 {
    font-size: 30px;
  }
  .bonus-side {
    grid-template-columns: 1fr;
  }
  .bonus-reward strong {
    font-size: 28px;
  }

  .account-menu {
    position: fixed;
    right: 10px;
    top: 62px;
    width: calc(100vw - 20px);
  }
  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .modal {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .topbar-right .b-pill {
    display: none;
  }
  .auth-brand .brand-logo {
    width: 122px;
  }
  .auth-logo-small img {
    width: 58px;
  }
  .auth-title {
    font-size: 43px;
  }
  .auth-features {
    gap: 6px;
  }
  .auth-feature {
    height: 34px;
    padding: 0 9px;
    font-size: 10.5px;
  }
  .auth-card {
    padding: 22px;
  }
  .auth-card h2 {
    font-size: 22px;
  }
  .home-hero-actions {
    flex-direction: column;
  }
  .home-hero-actions .btn {
    width: 100%;
  }
  .home-stats {
    grid-template-columns: 1fr;
  }
  .home-hero-stats {
    flex-wrap: wrap;
    gap: 14px;
  }
  .bet-row {
    grid-template-columns: 1fr;
  }
  .crash-scene {
    height: 360px;
  }
  .rocket-wrap {
    width: 108px;
    height: 190px;
    bottom: 66px;
  }
  .crash-live strong {
    font-size: 46px;
  }
  .livebar-label {
    display: none;
  }
  .roulette-head-actions .btn span {
    display: none;
  }
  .roulette-head-actions .btn {
    width: 36px;
    padding: 0;
  }
  .roulette-head-meta {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .color-bet {
    font-size: 9px;
  }
  .color-bet small {
    display: none;
  }
  .roulette-viewport {
    height: 108px;
  }
  .roulette-tile {
    width: 84px;
    height: 84px;
  }
}
