/* Phone-first usability layer shared by every public surface. */
.mobile-builder-tabs{display:none}
@media(max-width:720px){
 html,body{width:100%;max-width:100%;overflow-x:hidden}body{font-size:15px}button,a,input,select,textarea{touch-action:manipulation}input,select,textarea{max-width:100%;font-size:16px}
 body>header,.site-header,.play-site-header{width:100%;max-width:none;padding:10px 12px;gap:10px}.site-header{position:sticky;top:0;z-index:45;align-items:center!important;flex-direction:row!important;background:rgba(7,12,17,.97);backdrop-filter:blur(12px)}
 .menu-toggle{flex:0 0 auto;min-height:44px;padding:8px 10px}.site-brand{min-width:0}.site-brand .eyebrow{margin-bottom:3px;font-size:8px;letter-spacing:1.2px}.site-brand h1{font-size:23px;line-height:1}.site-brand h1 span{display:block;margin:3px 0 0;font-size:12px;letter-spacing:.04em}
 main{width:100%;max-width:none;padding-left:0!important;padding-right:0!important}.side-menu{width:min(90vw,370px);max-width:370px}.side-menu-head{padding:15px}.side-menu-nav{padding:8px}.side-menu-nav button{min-height:58px;padding:11px 12px}.side-menu-foot{padding:12px 16px}
 #notice{min-height:0;padding:5px 12px;font-size:11px}.net-screen{padding:0}.net-shell{border-inline:0}.net-header{padding:23px 16px 17px}.net-header h2{font-size:50px}.net-map{padding:16px 12px}.net-identity{width:174px;height:174px}.net-node{min-height:94px;padding:15px}.net-darknet{padding:14px 12px 18px}.net-locked{min-height:64px;padding:10px}
 .home-screen{padding:0}.home-copy{padding:30px 17px}.home-copy h2{font-size:49px}.home-copy p{font-size:15px}.home-proof{overflow-x:auto;justify-content:flex-start;padding-bottom:4px}.home-proof span{flex:0 0 auto}.home-art{min-height:340px}.home-quick button{min-height:76px;padding:17px}.home-legal{padding:12px 16px}
 .archive-screen{padding:0}.archive-header{padding:24px 16px}.archive-header h2{font-size:3rem}.archive-index{padding-bottom:10px}.archive-index-head,.archive-search{margin-inline:12px}.archive-index nav{display:flex;grid-template-columns:none;gap:7px;overflow-x:auto;padding:5px 12px 12px;scroll-snap-type:x proximity}.archive-folder{flex:0 0 210px;min-height:70px;scroll-snap-align:start}.archive-reader{padding:0 15px 24px}.archive-reader-bar{margin:0 -15px 22px;padding:10px 15px}.archive-file h3{font-size:2rem}.archive-steps section{grid-template-columns:38px 1fr}.archive-reviewed{width:100%;min-height:48px}
 .contracts-shell{padding:16px 10px 34px}.contracts-header{padding:20px 15px;gap:16px}.contracts-header h2{font-size:38px}.contracts-wallet{max-width:none;width:100%}.contracts-toolbar{align-items:stretch}.contracts-toolbar button{min-height:44px}.contract-card{padding:17px;min-height:0}.contract-card button{min-height:44px}
 #builder{padding:12px}.builder-title{gap:15px}.builder-title h2{font-size:37px}.builder-play-link{width:100%;justify-content:space-between;min-height:48px}.mobile-builder-tabs{position:sticky;top:var(--site-header-height,65px);z-index:22;display:grid;grid-template-columns:1fr 1fr;gap:2px;margin:12px 0;padding:3px;background:#091016;border:1px solid #405362}.mobile-builder-tabs button{min-height:44px;border:0;background:#111b22}.mobile-builder-tabs button.active{background:var(--yellow);color:#101600}.deck-layout{display:block}.deck-editor{display:none;grid-row:auto}.mobile-deck-view .deck-layout>section:first-child{display:none}.mobile-deck-view .deck-editor{display:block}.filters{grid-template-columns:1fr 1fr;gap:9px}.filters label:first-child{grid-column:1/-1}.filters input,.filters select{width:100%;min-height:44px}.catalog-grid{grid-template-columns:1fr 1fr;gap:8px}.catalog-card{min-width:0}.catalog-card .card-art{width:100%}.deck-tools{display:grid;grid-template-columns:1fr 1fr}.deck-tools button{min-height:44px}.deck-tools button:last-child{grid-column:1/-1}.deck-card-stack{grid-template-columns:1fr}.deck-vault summary{min-height:48px;padding:13px 10px}.small-actions button{min-height:42px}
 #match{padding:8px 8px 90px}#match>.toolbar{gap:8px}.match-actions{display:flex;width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.match-actions button{flex:0 0 auto;min-width:112px;min-height:44px}.manual-banner{font-size:12px;line-height:1.45}.match-coach{display:block}.match-coach .panel{padding:13px}.hand-area{padding:12px 9px}.game-card button,.solo-button,.ability-action{min-height:42px}.turn-dock button{min-height:52px}.manual-controls{display:grid;grid-template-columns:1fr}.manual-controls button,.manual-controls label,.manual-controls select,.manual-controls input{width:100%}
 dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:20px 15px;overflow:auto}.profile-dialog,.support-dialog,.win-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.close{position:sticky;top:0;z-index:2;min-height:42px}.auth-tabs,.profile-breakdown,.win-scoreboard,.support-grid{grid-template-columns:1fr}.auth-tabs button{min-height:44px}.profile-record strong{font-size:2rem}
 footer{padding:18px 14px!important;text-align:left}footer a,footer button{float:none!important;display:inline-block;margin-top:8px}.footer-link{min-height:40px}
 .play-site-header{align-items:flex-start;flex-direction:column}.play-site-header nav{display:flex;width:100%;gap:6px;overflow-x:auto}.play-site-header nav a{flex:0 0 auto;min-height:42px;padding:11px}.play-terminal{padding:10px}.play-intro{padding:26px 16px}.play-intro h1{font-size:46px}.play-console{border-inline:0}.play-modes{padding:9px}.play-mode{min-height:112px;padding:16px}.play-setup{padding:24px 15px}.play-setup select,.play-setup input{min-height:48px}.play-launch{width:100%;min-height:54px}.play-actions{display:grid;gap:8px}.play-notes{margin-top:10px}
 .support-page{padding:12px}.support-hero{align-items:flex-start;flex-direction:column}.support-columns{grid-template-columns:1fr}.issue-panel{padding:16px}.issue-panel input,.issue-panel select,.issue-panel textarea{width:100%}.issue-panel button{width:100%;min-height:48px}
 body:not(.play-body)>header:not(.site-header){align-items:flex-start;flex-wrap:wrap}body:not(.play-body)>header:not(.site-header) h1{font-size:28px}body:not(.play-body)>header:not(.site-header) h1 span{display:block;margin:0;font-size:18px}.toolbar{align-items:flex-start}.toolbar>div{flex-wrap:wrap}.toolbar>div:last-child{width:100%}.toolbar>div:last-child button{flex:1;min-height:44px}
}
@media(max-width:430px){
 .menu-toggle span:last-child{display:none}.site-brand h1{font-size:21px}.net-header h2{font-size:45px}.home-copy h2{font-size:43px}.home-art{min-height:300px}.home-card{width:126px}.home-die{width:66px;height:66px;font-size:40px}.catalog-grid{grid-template-columns:1fr 1fr}.catalog-body{padding:8px}.catalog-body h3{font-size:16px}.play-intro h1{font-size:41px}.room-waiting>strong{font-size:38px}.profile-history-row{grid-template-columns:74px 1fr}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
