
@media (min-width: 850px) {

  .wheel-center { --cc-scale: 1.18; }

  #update-slot, #build-tag {
    position: fixed;
    inset: 0 auto auto 0;
    width: 0;
    height: 0;
    overflow: visible;
  }

  body {
    display: flex;
    flex-direction: row;
    direction: ltr;
    min-height: 100vh;
  }

  #app {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
    direction: inherit;
  }
  html[dir="rtl"] #app { direction: rtl; }

  #tabbar {
    order: -1;
    position: sticky;
    top: 0;
    left: auto; right: auto; bottom: auto;
    max-width: none;
    width: 240px;
    flex: 0 0 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-content: start;
    gap: 4px;
    padding: 28px 14px;
    border-top: none;
    border-right: 1px solid var(--line);
    justify-content: center;
    background: linear-gradient(color-mix(in srgb, var(--bg-dock) 60%, transparent), color-mix(in srgb, var(--bg-dock) 60%, transparent)), var(--surface-base, transparent);
  }

  .tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  @media (hover: hover) and (pointer: fine) { .tab:hover { background: color-mix(in srgb, var(--purple-bright) 8%, transparent); } }
  .tab.is-active { background: color-mix(in srgb, var(--purple-bright) 14%, transparent); }
  .tab svg { width: 20px; height: 20px; }

  .pad-view {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 32px 48px;
  }

  .fit-screen {
    height: auto;
    min-height: calc(100vh - 80px);
    overflow: visible;
    padding: 40px 32px 48px;
    max-width: 720px;
    margin: 0 auto;
  }
  .fit-wheel-holder {
    width: max(200px, min(80%, 560px));
  }
  .fit-screen .big-three { margin-top: 28px; }
  .fit-screen:has(.cube-block) .big-three { margin-top: 18px; }

  .pad-view .mc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pad-view .mc-tiles > .mc-tile:last-child:nth-child(odd) { grid-column: auto; }
  .pad-view .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pad-view .pr-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .card { padding: 20px 22px; }

  .update-bar {
    bottom: auto;
    top: 0;
    border-radius: 0 0 14px 14px;
  }

  .auth-wrap {
    min-height: 100vh;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .auth-mark { margin-bottom: 40px; }
  .auth-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (min-width: 850px) and (max-width: 1180px) {
  #tabbar { width: 200px; flex-basis: 200px; padding: 24px 10px; }
  .pad-view, .fit-screen { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1200px) {
  .legal-wrap .legal-card { max-width: 840px; }
}
