@media (max-width:1024px){
  :root{--bvx-scale:1;zoom:1;--sidebar:0px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .authenticated,.authenticated.menu-open{--sidebar:0px;padding-left:0}
  .authenticated.menu-open{overflow:hidden}
  .authenticated>main{max-width:100%;min-width:0}
  .app-top{height:76px;padding:0 20px 0 76px;gap:14px;background:#101010f2}
  .app-top>.brand{font-size:26px;flex-shrink:0}
  .header-donate{font-size:12px;margin-right:0;padding:12px 14px}
  .header-donate:before{content:none}
  body.menu-open .app-top>.brand{transform:none;opacity:1;filter:none}
  .sidebar{width:64px;height:76px;padding:16px 7px;background:transparent;overflow:hidden;z-index:30}
  .sidebar-head{height:44px;flex-shrink:0}
  .sidebar .menu-toggle{width:48px;height:44px;color:#bcb7cb;background:#1e1c24}
  .sidebar nav,.sidebar-bottom,.sidebar-brand{display:none}
  .menu-open .sidebar{width:min(320px,88vw);height:100vh;height:100dvh;padding:16px 12px max(16px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;background:#161419;box-shadow:20px 0 60px #0008}
  .menu-open .sidebar-brand{display:block}
  .menu-open .sidebar nav{display:flex;margin-top:24px}
  .menu-open .sidebar-bottom{display:flex;padding-top:20px;min-height:50px}
  .menu-open .sidebar .nav-label{font-size:15px;opacity:1;visibility:visible;transform:none}
  .menu-open .menu-backdrop{display:block;position:fixed;inset:0;z-index:29;background:#0009;backdrop-filter:blur(4px)}
  .sidebar-search-panel{position:fixed;left:12px;top:142px;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 166px);overflow-y:auto;z-index:32}
  .player-search>label{min-height:48px}
  .player-search input,.sidebar-search-panel .player-search input{font-size:16px}
  .sidebar-search-panel .player-search-results>a{min-height:52px}
  .nav-tooltip{display:none}
  .account-widget{gap:10px;min-width:0}
  .account-name{max-width:none;min-height:32px;gap:8px}
  .account-avatar{width:40px;height:40px}
  .account-balances{font-size:12px;gap:8px}
  .account-balances .currency-icon{width:15px;height:15px}
  .account-balances .balance-eye,.account-balances .balance-plus{width:32px;height:32px}
  .account-balances .balance-plus svg{width:17px;height:17px}
  .account-dropdown,.avatar-dropdown{width:min(300px,calc(100vw - 32px));max-height:calc(100dvh - 154px);overflow-y:auto}
  .account-dropdown nav a,.avatar-dropdown button,.account-logout{min-height:46px;font-size:14px}
  .home-page{width:calc(100% - 40px);margin-bottom:40px}
  .home-hero{height:390px;margin:0 -20px;border-radius:0}
  .hero-copy{padding:28px}
  .hero-copy h1{font-size:clamp(32px,5.5vw,48px)}
  .hero-eyebrow,.hero-online{font-size:12px}
  .hero-ip{min-height:46px;font-size:13px}
  .home-metrics{grid-template-columns:repeat(3,minmax(0,1fr));padding:0;gap:12px;margin-top:24px}
  .home-metrics>div:last-child{grid-column:auto}
  .home-metrics>div>span{font-size:12px}
  .activity-feed{width:calc(100% - 40px);margin:28px auto}
  .activity-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .activity-card{padding:14px 12px;min-height:76px}
  .activity-person strong{font-size:12px}
  .activity-person small{font-size:11px}
  .activity-feed h2{font-size:21px}
  .rules-page,.conversion-page,.account-page{width:calc(100% - 40px);margin-left:auto;margin-right:auto}
  .conversion-page{margin-top:30px;margin-bottom:44px}
  .conversion-card{display:flex;flex-direction:column;align-items:stretch;padding:24px;gap:24px}
  .conversion-card>.auth-submit{width:100%;min-height:48px}
  .conversion-kind h2{font-size:18px}
  .conversion-kind span,.conversion-range-label{font-size:13px}
  .conversion-range,.referral-allocation input{height:32px;touch-action:pan-y}
  .conversion-values{gap:10px}
  .conversion-values input{width:100%;font-size:20px}
  .conversion-values .currency-icon{flex-shrink:0}
  .breadcrumbs{flex-wrap:wrap;font-size:12px;line-height:1.6}
  .rules-tabs button{min-height:44px;font-size:14px;padding:10px 16px}
  .chapter-nav{top:76px}
  .chapter-links a{min-height:44px;font-size:13px}
  .rules-search input{font-size:16px}
  .rule-row p{font-size:15px;line-height:1.8;overflow-wrap:anywhere}
  .rule-section,.rule-row{scroll-margin-top:150px}
  .public-profile{padding:42px 20px 0;margin-bottom:40px;min-height:0}
  .profile-cover{inset:0 0 auto;height:460px}
  .profile-face{width:90px;height:90px}
  .profile-identity h1{font-size:24px;gap:10px;line-height:1.5}
  .profile-name-group{min-width:0;flex-wrap:wrap;overflow-wrap:anywhere}
  .profile-identity .profile-friend{min-width:44px;min-height:44px}
  .profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}
  .profile-metric{min-width:0}
  .profile-metric:not(:nth-child(5n)):after{display:none}
  .profile-value{font-size:28px;overflow-wrap:anywhere}
  .profile-currency{font-size:16px;flex-wrap:wrap;justify-content:center}
  .profile-metric-label{font-size:12px;line-height:1.5;flex-wrap:wrap;justify-content:center}
  .donation-privacy{min-width:32px;min-height:32px}
  .profile-registration{margin-top:28px}
  .profile-registration>div{padding:0 12px}
  .profile-registration time{font-size:15px}
  .profile-registration small{font-size:12px}
  .profile-actions{flex-wrap:wrap;font-size:13px}
  .profile-actions button,.profile-edit-open{min-height:44px}
  .profile-avatar-buttons{grid-template-columns:1fr}
  .profile-avatar-buttons button{min-height:48px;font-size:14px}
  .profile-banner-buttons{flex-wrap:wrap}
  .profile-banner-buttons button{min-height:44px;font-size:13px}
  .profile-status:after{max-width:calc(100vw - 40px);white-space:pre-wrap;width:max-content}
  .account-page{padding-top:30px;padding-bottom:44px;max-width:520px}
  .account-page h1{font-size:28px}
  .auth-description,.auth-help{font-size:14px}
  .field-label{font-size:14px}
  .auth-input,.password-input,.password-input input,.login-fields .auth-input,.login-fields .password-input input{font-size:16px;min-height:50px}
  .auth-submit{min-height:48px;font-size:14px}
  .referral-copy{flex-direction:column}
  .referral-copy button{min-height:48px;font-size:14px}
  .referral-create-row .auth-input{font-size:16px}
  .referral-wallet{flex-wrap:wrap}
  .referral-wallet>button{min-height:44px;font-size:13px}
  .referral-reward>div{min-width:0;flex-basis:100%}
  .referral-section-heading{flex-wrap:wrap;gap:12px}
  .referral-section-heading>a{min-height:44px;font-size:13px}
  .friend-row-actions>button{width:44px;height:44px}
  .friend-card{flex-wrap:wrap}
  .friend-name strong{font-size:14px}
  .friends-tabs button{min-height:44px;font-size:12px}
  dialog:not(.switch-dialog){max-width:calc(100vw - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:24px;border-radius:18px}
  .switch-dialog[open]{inset:88px 12px auto auto;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 112px);padding:20px}
  .switch-entry{min-height:48px}
  .switch-dialog h2{font-size:20px}
  .switch-entry>span:last-child,.switch-add{font-size:12px}
  .dialog-close{min-width:44px;min-height:44px;top:6px;right:6px}
  .profile-editor .dialog-close{top:6px;right:6px}
  .commerce-dialog h2,.profile-editor h2{font-size:24px;padding-right:20px}
  .coupon-rewards{flex-wrap:wrap;gap:20px}
  .coupon-meta{flex-wrap:wrap}
  .toast-stack,.toast-stack[popover]{width:min(380px,calc(100vw - 24px));inset:auto 12px max(12px,env(safe-area-inset-bottom)) auto}
  .toast-stack .toast-dismiss{width:28px;height:28px}
  .toast-stack .site-toast{grid-template-columns:20px minmax(0,1fr) 28px;font-size:14px}
  .toast-stack .toast-message{font-size:14px}
  .authenticated footer{padding:24px 20px max(24px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:16px;font-size:11px}
  .socials{margin:0 0 0 auto;gap:8px}
  .socials a{display:grid;place-items:center;min-width:44px;min-height:44px}
  .socials svg{width:20px;height:20px}
  .footer-copy{min-height:44px;font-size:11px}
  .referral-tree-fullscreen .referral-tree-back{top:max(12px,env(safe-area-inset-top));left:12px;min-height:44px;font-size:13px}
  .referral-tree-fullscreen .referral-map-controls{left:12px;bottom:max(12px,env(safe-area-inset-bottom))}
  .referral-map-controls>button{width:44px;height:44px}
  .referral-map-stats{right:12px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 72px);font-size:12px}
}
@media (max-width:600px){
  .app-top{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:112px;padding:12px 16px;gap:8px 12px}
  .app-top>.brand{grid-column:1;grid-row:1;padding-left:56px;font-size:25px}
  .header-donate{grid-column:2;grid-row:1;margin:0;font-size:12px;padding:10px 12px}
  .account-widget,.header-authorization{grid-column:1/-1;grid-row:2;justify-self:end}
  .account-name-text>span:last-child{font-size:12px}
  .account-name-text{min-width:0}
  .account-name-text>span:last-child{max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .account-name-text .rank-art{height:11px;max-width:70px}
  .account-avatar{width:38px;height:38px}
  .account-details{gap:0}
  .header-authorization{min-height:44px;font-size:14px}
  .sidebar{padding-top:12px;height:68px}
  .menu-open .sidebar{padding-top:12px}
  .account-dropdown,.avatar-dropdown{top:calc(100% + 8px)}
  .home-page,.activity-feed,.rules-page,.conversion-page,.account-page{width:calc(100% - 32px)}
  .home-hero{height:365px;margin:0 -16px}
  .hero-copy{padding:24px}
  .hero-copy h1{font-size:clamp(30px,8vw,40px)}
  .hero-picture img{object-position:60% center}
  .home-metrics{grid-template-columns:1fr}
  .home-metrics>div{min-height:96px;padding:20px}
  .home-metrics .last-donor{font-size:16px;flex-wrap:wrap}
  .activity-cards{grid-template-columns:1fr}
  .activity-person{gap:6px}
  .activity-person strong{font-size:14px}
  .activity-person small{font-size:12px}
  .activity-face{width:42px;height:42px}
  .activity-person .rank-art{height:11px}
  .chapter-nav{top:112px}
  .chapter-links a{font-size:12px}
  .rule-section,.rule-row{scroll-margin-top:184px}
  .conversion-card{padding:20px 16px;border-radius:18px}
  .conversion-values label{padding:14px 8px}
  .conversion-values label>span{gap:4px}
  .conversion-values input{font-size:18px}
  .public-profile{padding:32px 16px 0}
  .profile-cover{height:420px}
  .profile-identity h1{font-size:21px}
  .profile-registration time{font-size:13px}
  .profile-registration small{font-size:11px}
  .profile-registration>div{padding:0 10px}
  .profile-currency{font-size:14px;gap:8px}
  .referral-earned{grid-template-columns:1fr}
  .referral-section-heading h2{font-size:18px}
  .referral-recent-player{flex-basis:100%}
  .referral-stats span{font-size:12px}
  .referral-invite-reward{flex-wrap:wrap}
  .link-input-row{grid-template-columns:minmax(0,1fr)}
  .link-input-row .auth-submit{min-height:48px}
  .switch-dialog[open]{top:124px;max-height:calc(100dvh - 148px)}
  .image-drop{min-height:220px;padding:20px 12px}
  .crop-actions{flex-wrap:wrap}
  .authenticated footer{gap:8px 12px}
  .footer-copy{flex-basis:100%;justify-content:flex-start}
}
@media (hover:none) and (pointer:coarse){
  .authenticated :is(a,button):hover svg{animation:none}
  .activity-card:hover,.referral-copy button:hover,.profile-avatar-buttons button:hover{transform:none}
}
