/* Phone-first RustBreak interface. This is intentionally independent from the desktop layout. */
@media (max-width:760px){
  :root{--mobile-gutter:16px;--mobile-card:16px;--mobile-dock:#151b19;--mobile-dock-muted:#9eaaa5;--mobile-accent:#ef765f}
  html{background:#f4f7f5}
  body{min-width:320px;padding-bottom:102px!important;background:#f4f7f5!important;color:#202827;overscroll-behavior-x:none}
  main{width:100%;max-width:none!important;margin:0!important;padding-left:var(--mobile-gutter)!important;padding-right:var(--mobile-gutter)!important}
  .topbar{position:sticky!important;top:0!important;height:58px!important;min-height:58px!important;padding:0 var(--mobile-gutter)!important;background:rgba(19,25,23,.97)!important;border-bottom:1px solid rgba(255,255,255,.09)!important;box-shadow:0 6px 18px rgba(14,19,17,.13)!important}
  .topbar:before{background:linear-gradient(90deg,rgba(239,118,95,.18),transparent 50%)!important}
  .topbar:after{height:1px!important;background:linear-gradient(90deg,#e86d58 0 48px,rgba(255,255,255,.10) 48px 100%)!important}
  .topbar .brand{gap:8px!important;padding:0!important;font-size:18px!important;letter-spacing:-.055em!important}
  .topbar .brand-mark{width:24px!important;height:24px!important;border-radius:7px!important;font-size:14px!important}
  .topbar .desktop-nav,.topbar .header-actions,.topbar .menu{display:none!important}

  /* App-style navigation: six equal destinations and hand-drawn matching icons, not mixed glyphs. */
  .mobile-bottom-nav{position:fixed!important;z-index:200!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;align-items:center!important;left:12px!important;right:12px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:68px!important;padding:6px!important;overflow:visible!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:20px!important;background:rgba(21,27,25,.98)!important;box-shadow:0 12px 34px rgba(12,18,15,.28),0 1px 0 rgba(255,255,255,.06) inset!important;backdrop-filter:blur(16px)!important}
  .mobile-bottom-nav a{position:relative!important;display:flex!important;min-width:0!important;height:54px!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:3px!important;padding:3px 1px!important;overflow:visible!important;border-radius:14px!important;color:var(--mobile-dock-muted)!important;font-size:8px!important;font-weight:800!important;letter-spacing:.01em!important;line-height:1!important;text-align:center!important;text-decoration:none!important;-webkit-tap-highlight-color:transparent}
  .mobile-bottom-nav a:after{display:none!important}
  .mobile-bottom-nav a span{position:relative;z-index:2;white-space:nowrap}
  .mobile-bottom-nav a.active{color:#fff!important;background:rgba(239,118,95,.14)!important}
  .mobile-bottom-nav a i{position:relative!important;display:block!important;flex:0 0 27px!important;width:27px!important;height:27px!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:currentColor!important;font-size:0!important;font-style:normal!important;line-height:1!important;transform:none!important}
  .mobile-bottom-nav a i:before,.mobile-bottom-nav a i:after{content:""!important;position:absolute!important;display:block!important;box-sizing:border-box!important;opacity:1!important}
  .mobile-bottom-nav a.active i{color:var(--mobile-accent)!important;background:rgba(239,118,95,.12)!important}
  .mobile-bottom-nav a:nth-child(1) i:before{left:7px;top:12px;width:13px;height:10px;border:1.8px solid currentColor;border-top:0;border-radius:1px 1px 3px 3px}
  .mobile-bottom-nav a:nth-child(1) i:after{left:8px;top:6px;width:11px;height:11px;border-left:1.8px solid currentColor;border-top:1.8px solid currentColor;transform:rotate(45deg);border-radius:1px}
  .mobile-bottom-nav a:nth-child(2) i:before{left:5px;top:6px;width:17px;height:15px;border:1.8px solid currentColor;border-radius:4px;background:linear-gradient(currentColor,currentColor) 4px 5px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 4px 10px/2px 2px no-repeat}
  .mobile-bottom-nav a:nth-child(2) i:after{left:10px;top:11px;width:8px;height:1.8px;border-radius:2px;background:currentColor;box-shadow:0 5px 0 currentColor}
  .mobile-bottom-nav a:nth-child(3) i:before{left:5px;top:5px;width:17px;height:17px;border:1.8px solid currentColor;border-radius:50%}
  .mobile-bottom-nav a:nth-child(3) i:after{left:13px;top:8px;width:7px;height:8px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:skew(-18deg)}
  .mobile-bottom-nav a:nth-child(4) i:before{left:5px;top:8px;width:15px;height:10px;border-radius:2px 5px 5px 2px;background:currentColor;clip-path:polygon(0 28%,100% 0,100% 100%,0 72%)}
  .mobile-bottom-nav a:nth-child(4) i:after{left:9px;top:18px;width:3px;height:6px;border-radius:0 0 2px 2px;background:currentColor;transform:rotate(-18deg)}
  .mobile-bottom-nav a:nth-child(5) i:before{left:7px;top:9px;width:13px;height:11px;border:1.8px solid currentColor;border-radius:2px 2px 5px 5px}
  .mobile-bottom-nav a:nth-child(5) i:after{left:18px;top:11px;width:5px;height:7px;border:1.8px solid currentColor;border-left:0;border-radius:0 5px 5px 0}
  .mobile-bottom-nav a:nth-child(6) i:before{left:10px;top:5px;width:8px;height:8px;border-radius:50%;background:currentColor}
  .mobile-bottom-nav a:nth-child(6) i:after{left:6px;top:15px;width:16px;height:8px;border-radius:9px 9px 4px 4px;background:currentColor}

  .eyebrow{font-size:9px!important;letter-spacing:.12em!important}
  .btn{min-height:44px!important;border-radius:12px!important}
  .btn.small{min-height:36px!important}
  .section{padding:38px 0!important}
  .section-head{align-items:flex-start!important;gap:12px!important;margin-bottom:16px!important}
  .section h2,.panel h2{font-size:26px!important;line-height:1.03!important}
  .page-hero,.finder-hero,.radar-hero,.server-browser-hero,.server-profile-hero,.experience-hero{padding:30px 0 22px!important}
  .page-hero h1,.finder-hero h1,.radar-hero h1,.server-browser-hero h1,.server-profile-main h1,.experience-hero h1{font-size:38px!important;line-height:1!important;letter-spacing:-.06em!important}
  .lead,.finder-hero .lead,.radar-hero .lead{font-size:14px!important;line-height:1.5!important}
  .panel,.auth-card,.radar-card,.server-card,.finder-summary{border-radius:var(--mobile-card)!important;box-shadow:none!important}
  .auth-card{margin:26px auto!important;padding:22px!important}
  .auth-card h1{font-size:34px!important}
  .tool-tabs{top:58px!important;margin:0 calc(var(--mobile-gutter) * -1)!important;padding:10px var(--mobile-gutter)!important}
  footer{display:grid!important;gap:18px!important;margin-top:18px!important;padding:32px var(--mobile-gutter) 118px!important}
  footer .brand{font-size:19px!important}
  .footer-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .footer-links a{font-size:11px!important}
  .consent{z-index:220!important;bottom:88px!important}

  /* Mobile server search: title, search, filters, then touch-friendly server cards. */
  .server-home{padding-top:0!important;padding-bottom:18px!important}
  .server-home-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:17px!important;padding:27px 0 15px!important;border-bottom:0!important}
  .server-home-heading{display:grid;gap:5px}
  .server-home-heading .eyebrow{display:flex!important;align-items:center!important;gap:7px!important;color:#bd5343!important}
  .server-home-heading h1{margin:0!important;font-size:35px!important;line-height:.98!important;letter-spacing:-.07em!important}
  .server-home-heading p:not(.eyebrow){margin:0!important;max-width:300px!important;font-size:12px!important;line-height:1.45!important}
  .server-home-searchbox{gap:9px!important}
  .server-home-search{grid-template-columns:minmax(0,1fr) 92px!important;gap:8px!important}
  .server-home-search .search-main{min-height:48px!important;padding:0 12px!important;border-radius:14px!important;background:#fff!important}
  .server-home-search .search-main span{font-size:19px!important}
  .server-home-search .search-main input{font-size:12px!important}
  .server-home-search .btn{min-height:48px!important;padding:0 10px!important;border-radius:14px!important;font-size:12px!important}
  .server-home-filters{width:calc(100% + 2px)!important;max-width:none!important;gap:7px!important;margin:0 -1px!important;padding:2px 1px 5px!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scrollbar-width:none!important}
  .server-home-filters::-webkit-scrollbar{display:none}
  .server-home-filters button,.server-home-filters a{min-height:33px!important;padding:8px 11px!important;border-radius:10px!important;font-size:10px!important;white-space:nowrap!important}
  .server-home-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin:0!important;padding:0 13px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:#fff!important}
  .server-home-stats>div{min-width:0!important;padding:12px 6px!important}
  .server-home-stats>div+div{border-left:1px solid var(--line)}
  .server-home-stats small{font-size:7px!important;letter-spacing:.08em!important;white-space:nowrap!important}
  .server-home-stats strong{font-size:15px!important}
  .server-home>.ad-slot{min-height:70px!important;margin:13px 0 0!important;border-radius:13px!important}
  .server-home-layout{display:grid!important;grid-template-columns:1fr!important;gap:24px!important;padding-top:24px!important}
  .server-home-section-head{align-items:flex-end!important;margin-bottom:11px!important}
  .server-home-section-head h2{font-size:23px!important}
  .server-home-section-head>a{font-size:10px!important}
  .server-home-list{display:grid!important;gap:9px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
  .server-home-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 12px!important;min-width:0!important;padding:14px!important;border:1px solid var(--line)!important;border-radius:15px!important;background:#fff!important;box-shadow:0 1px 0 rgba(24,33,29,.02)!important}
  .server-home-row:not(:last-child){border-bottom:1px solid var(--line)!important}
  .server-home-tags{margin-bottom:6px!important}
  .server-home-tags span{font-size:7px!important}
  .server-home-row h3{font-size:13px!important;white-space:nowrap!important}
  .server-home-row-main p{font-size:9px!important}
  .server-home-row-stat{min-width:66px!important;align-self:center!important;text-align:right!important}
  .server-home-row-stat small{font-size:7px!important}
  .server-home-row-stat strong{font-size:18px!important}
  .server-home-row-stat span{font-size:8px!important}
  .server-home-row-stat.wipe{display:none!important}
  .server-home-row>i{display:none!important}
  .server-home-more{margin-top:11px!important;padding:13px 14px!important;border-radius:13px!important}
  .server-home-results>.ad-slot{min-height:82px!important}
  .server-home-sidebar{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
  .native-ad-label{font-size:8px!important}
  .native-server-ad{padding:17px!important;border-radius:17px!important}
  .native-server-ad h2{font-size:20px!important}
  .native-ad-stats strong{font-size:24px!important}
  .native-ad-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .native-ad-actions .btn{min-height:41px!important;padding:8px!important}
  .wipe-radar-home{padding:16px!important;border-radius:16px!important}
  .wipe-side-panel{padding:14px!important;border-radius:16px!important}

  /* Other server, radar and account screens use the same phone scale and card rhythm. */
  .finder-shell,.server-detail-layout,.dashboard-grid,.detail-side,.advertise-grid,.split-feature,.traffic-breakdown{grid-template-columns:1fr!important;gap:14px!important}
  .filter-panel{border-radius:0!important;padding:18px var(--mobile-gutter) 100px!important}
  .search-toolbar,.server-filter,.quick-finder-card form,.compare-input-card form,.alert-form{grid-template-columns:1fr!important;gap:9px!important}
  .filter-toggle{min-height:44px!important}
  .server-card-grid,.wipe-grid,.home-tools,.feature-grid,.item-grid,.guide-grid,.detail-columns{grid-template-columns:1fr!important}
  .server-card,.radar-card,.wipe-card{padding:15px!important}
  .server-card-stats,.server-stats,.radar-metrics{gap:10px!important}
  .server-profile-hero{gap:18px!important}
  .profile-pop{padding:18px!important}
  .profile-pop strong{font-size:39px!important}
  .radar-summary{margin:0 calc(var(--mobile-gutter) * -1)!important;padding:0 var(--mobile-gutter)!important}
  .advertise-page{padding:30px var(--mobile-gutter) 42px!important}
  .advertise-hero{padding:24px!important;border-radius:16px!important}
}

/* One mobile navigation only: the desktop link group must never become a second dock. */
@media (max-width:760px){
  .topbar>.desktop-nav{display:none!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
  .topbar>.desktop-nav *{display:none!important}
}
