html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  background-color: #080b11;
}

.rblx-mobile-dock,
.rblx-mobile-overlay {
  display: none;
}

@media (max-width: 1180px) {
  .rblx-shell-header {
    gap: 14px;
    padding: 14px 16px;
  }

  .rblx-shell-header-actions,
  .rblx-shell-auth {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .rblx-shell-body {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 12px;
  }

  .rblx-shell-center {
    order: 1;
  }

  .rblx-shell-left {
    order: 2;
  }

  .rblx-shell-right {
    order: 3;
  }

  .rblx-shell-left,
  .rblx-shell-right {
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
    min-height: 0;
    border-radius: 20px;
  }

  .rblx-shell-nav-scroll,
  .rblx-shell-chat-scroll {
    max-height: none;
  }
}

@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    background-color: #080b11 !important;
  }

  body.rblx-shell-ready {
    background-color: #080b11 !important;
  }

  body.rblx-mobile-shell {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
  }

  body.rblx-mobile-shell .rblx-shell {
    min-height: 100vh;
    background: transparent;
  }

  body.rblx-mobile-shell .rblx-shell-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 0;
    background: linear-gradient(180deg, rgba(16, 24, 34, 0.995), rgba(12, 18, 27, 0.99));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  body.rblx-mobile-shell .rblx-shell-header-actions {
    display: none !important;
  }

  body.rblx-mobile-shell .rblx-shell-auth {
    width: 100%;
    display: contents;
  }

  body.rblx-mobile-shell .rblx-shell-auth .rblx-shell-btn,
  body.rblx-mobile-shell .rblx-shell-support-link {
    min-height: 46px;
    width: 100%;
    margin: 0;
  }

  body.rblx-mobile-shell .rblx-shell-support-wrap {
    padding: 0;
  }

  body.rblx-mobile-shell .rblx-shell-support-float {
    display: none;
  }

  body.rblx-mobile-shell .rblx-shell-status {
    min-height: 0;
    width: calc(100% + 48px);
    margin: 0 0 0 -24px;
    padding: 11px 16px 12px;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background:
      linear-gradient(180deg, rgba(11, 16, 24, 0.98), rgba(9, 14, 21, 0.98)),
      linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    box-shadow: none;
    font-size: 11px;
    line-height: 1.4;
    justify-content: center;
    text-align: center;
    align-self: stretch;
  }

  body.rblx-mobile-shell .rblx-shell-status-dot {
    width: 8px;
    height: 8px;
  }

  body.rblx-mobile-shell .rblx-shell-body {
    display: block;
    min-height: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 106px) 0 0;
  }

  body.rblx-mobile-shell .rblx-shell-center {
    padding: 10px 0 0;
  }

  body.rblx-mobile-shell .rblx-shell-page {
    min-width: 0;
    width: 100%;
  }

  body.rblx-mobile-shell .rblx-shell-left,
  body.rblx-mobile-shell .rblx-shell-right {
    position: fixed;
    left: 10px;
    right: 10px;
    top: calc(env(safe-area-inset-top, 0px) + 118px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
    z-index: 120;
    height: auto;
    max-height: none;
    min-height: 0;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.rblx-mobile-shell.rblx-mobile-nav-open .rblx-shell-left,
  body.rblx-mobile-shell.rblx-mobile-chat-open .rblx-shell-right {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.rblx-mobile-shell .rblx-shell-left-inner,
  body.rblx-mobile-shell .rblx-shell-right-inner {
    padding: 14px;
    gap: 12px;
  }

  body.rblx-mobile-shell .rblx-shell-toggle {
    display: none !important;
  }

  body.rblx-mobile-shell .rblx-shell-nav-scroll,
  body.rblx-mobile-shell .rblx-shell-chat-scroll {
    padding-right: 0;
  }

  body.rblx-mobile-shell .rblx-shell-left-foot {
    margin-top: 0;
  }

  body.rblx-mobile-shell .rblx-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    border: 0;
    background: rgba(5, 8, 12, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.rblx-mobile-shell .rblx-mobile-overlay[hidden] {
    display: none !important;
  }

  body.rblx-mobile-shell .rblx-mobile-dock {
    display: grid;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    z-index: 130;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(33, 48, 64, 0.88), rgba(23, 35, 49, 0.96));
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.16),
      0 34px 70px rgba(0, 0, 0, 0.14),
      inset 0 1px 0 rgba(255,255,255,0.03);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  body.rblx-mobile-shell .rblx-mobile-dock::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: -26px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(8, 11, 17, 0.26) 0%, rgba(8, 11, 17, 0.14) 46%, rgba(8, 11, 17, 0) 80%);
    filter: blur(10px);
    pointer-events: none;
  }

  body.rblx-mobile-shell .rblx-mobile-dock-btn,
  body.rblx-mobile-shell .rblx-mobile-dock-link {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #f5f8fc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  body.rblx-mobile-shell .rblx-mobile-dock-btn {
    appearance: none;
    cursor: pointer;
  }

  body.rblx-mobile-shell .rblx-mobile-dock-link.is-primary {
    border: 0;
    background: linear-gradient(180deg, #6fb4ff 0%, #458fff 100%);
    box-shadow: 0 12px 24px rgba(70, 132, 255, 0.22);
  }

  body::before,
  .bg-wrap {
    opacity: 0.12;
  }

  .orb,
  body.rblx-mobile-shell .bg-wrap {
    display: none !important;
  }

  main,
  .page-shell,
  #rblx-homepage,
  .admin-panel {
    width: 100%;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  main {
    padding-top: 12px !important;
    padding-bottom: 28px !important;
  }

  .hero,
  .plan-card,
  .hero-card,
  .plus-card,
  .section-card,
  .home-card,
  .feature-card,
  .social-card,
  .faq-card,
  .tool-card,
  .plus-modal-card,
  .card,
  .overview-frame,
  .faq-card,
  .content-card,
  .summary-card,
  .nav-card,
  .admin-card,
  .admin-topbar,
  .login-lock-card,
  .plan-banner,
  .rblx-media-card,
  .rblx-ugc-stack-card,
  .acct-card {
    border-radius: 22px !important;
    padding: 18px !important;
  }

  .home-grid-top,
  .home-grid-bottom,
  .top-grid,
  .layout,
  .overview-grid,
  .showcase-layout,
  .hero-grid,
  .hero-strip,
  .admin-overview,
  .admin-status-grid,
  .admin-actions-grid,
  .admin-compact-grid,
  .admin-split,
  .admin-triple,
  .field-grid,
  .field-grid.two,
  .field-grid.three,
  .field-grid.four,
  .stats-grid,
  .stats-grid.four,
  .list-grid,
  .plan-grid,
  .comparison-grid,
  .faq-grid,
  .perk-list,
  .acct-grid,
  .hero-points,
  .hero-bottom,
  .tool-grid,
  .social-grid {
    grid-template-columns: 1fr !important;
  }

  .side-stack,
  .hero-strip,
  .hero-actions,
  .hero-links,
  .plus-actions,
  .tool-actions,
  .modal-actions,
  #actionRow,
  .video-copy,
  .admin-buttons,
  .login-lock-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero h1,
  .hero-title,
  .login-lock-title,
  .admin-title,
  .acct-title,
  .rblx-title,
  #roblox-ugc-title,
  .ugc-promo-title,
  .title,
  .card h2,
  .faq-title,
  .plan-title {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
  }

  .hero-copy,
  .plus-copy,
  .section-copy,
  .feature-copy,
  .social-copy,
  .faq-copy,
  .modal-copy,
  .hero p,
  .subtitle,
  .rblx-subtitle,
  .hero-copy,
  .hero p,
  .plan-banner span {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .btn,
  .rblx-shell-btn,
  .rblx-shell-auth a,
  .rblx-shell-toggle,
  .admin-btn,
  .calc-btn,
  #downloadBtn,
  #downloadAllBtn {
    width: 100% !important;
    min-height: 48px !important;
  }

  .rblx-shell-status {
    justify-content: flex-start;
    padding: 12px 14px;
    text-align: left;
  }

  .rblx-shell-brand-title {
    font-size: 20px;
  }

  .rblx-shell-brand-subtitle {
    letter-spacing: 0.7px;
  }

  .rblx-shell-chat-compose,
  .rblx-shell-profile-grid {
    grid-template-columns: 1fr !important;
  }

  .rblx-shell-support-wrap,
  .rblx-shell-support-link {
    width: 100%;
  }

  .template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(52px, auto)) !important;
    width: min(100%, 272px);
    margin-left: auto;
    margin-right: auto;
  }

  .template-grid div {
    min-height: 52px;
    font-size: 21px !important;
  }

  .previewStage,
  #placeholderTemplate,
  #previewShell,
  #placeholderUgc,
  #ugcViewer,
  .video-placeholder,
  .tutorial-video,
  .tutorial-placeholder {
    min-height: 240px !important;
    height: auto !important;
  }

  #toolMount #ugcViewer {
    height: 260px !important;
  }

  .previewArrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .hero-links .btn {
    width: 100% !important;
  }

  .admin-topbar {
    grid-template-columns: 1fr !important;
  }

  body.rblx-mobile-shell .rblx-shell-chat-bottom {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15,24,34,0.98), rgba(15,24,34,1));
    padding-top: 10px;
  }
}

@media (max-width: 640px) {
  .rblx-shell-header {
    padding: 12px;
  }

  body.rblx-mobile-shell .rblx-shell-left,
  body.rblx-mobile-shell .rblx-shell-right {
    left: 8px;
    right: 8px;
    top: calc(env(safe-area-inset-top, 0px) + 110px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
    border-radius: 20px;
  }

  body.rblx-mobile-shell .rblx-mobile-dock {
    left: 8px;
    right: 8px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  body.rblx-mobile-shell .rblx-mobile-dock-btn,
  body.rblx-mobile-shell .rblx-mobile-dock-link {
    min-height: 42px;
    font-size: 11px;
  }

  .rblx-shell-brand {
    min-height: 46px;
    gap: 10px;
  }

  .rblx-shell-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 15px;
  }

  .rblx-shell-header-actions,
  .rblx-shell-auth {
    gap: 10px;
  }

  main,
  .page-shell,
  #rblx-homepage,
  .admin-panel {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hero,
  .hero-card,
  .plus-card,
  .section-card,
  .home-card,
  .feature-card,
  .social-card,
  .faq-card,
  .tool-card,
  .plus-modal-card,
  .card,
  .overview-frame,
  .content-card,
  .summary-card,
  .nav-card,
  .admin-card,
  .admin-topbar,
  .login-lock-card,
  .plan-banner,
  .rblx-media-card,
  .rblx-ugc-stack-card,
  .acct-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .hero h1,
  .hero-title,
  .login-lock-title,
  .admin-title,
  .acct-title,
  .rblx-title,
  #roblox-ugc-title,
  .ugc-promo-title,
  .title,
  .card h2 {
    font-size: clamp(24px, 10vw, 34px) !important;
  }

  .hero p,
  .subtitle,
  .rblx-subtitle,
  .hero-copy,
  .plus-copy,
  .section-copy,
  .feature-copy,
  .social-copy,
  .faq-copy,
  .modal-copy,
  .hero-chip span,
  .faq-item span {
    font-size: 12px !important;
  }

  .rblx-shell-status,
  .rblx-shell-btn,
  .rblx-shell-auth a,
  .rblx-shell-toggle,
  .admin-btn,
  .calc-btn,
  #downloadBtn,
  #downloadAllBtn {
    border-radius: 12px !important;
  }

  .hero-chip,
  .metaPill,
  .tool-pill,
  .kicker,
  .mini-kicker,
  .badge {
    min-height: 28px;
  }

  .faq-list,
  .faq-wrap {
    gap: 10px !important;
  }

  .rblx-shell-chat-message {
    gap: 10px;
  }

  .rblx-shell-chat-avatar {
    width: 38px;
    height: 38px;
  }

  .rblx-shell-profile-modal {
    padding: 14px;
  }
}
