/* Shared layout corrections. No gameplay, network or economy changes. */
:where(button,a,input,select,textarea):focus-visible{outline:2px solid #ff6674;outline-offset:3px}
.sefir-table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain}
.sefir-map-tools{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#101013;border-top:1px solid #402027}
.sefir-map-tools button{min-width:44px;min-height:44px;border:1px solid #71303a;border-radius:8px;background:#211317;color:#fff;font:inherit;cursor:pointer;padding:8px 12px}
.sefir-map-tools select{min-width:0;flex:1;max-width:100%;min-height:44px;background:#171317;color:#fff;border:1px solid #71303a;border-radius:8px;padding:8px}
@media(max-width:860px){
 html{scroll-padding-bottom:100px}
 body{overflow-wrap:anywhere}
 body *,body *::before,body *::after{box-sizing:border-box}
 :where(main,section,article,aside,form,.card,.panel,.field,.field-wrap,.grid)>*{min-width:0}
 :where(input,select,textarea){max-width:100%;font-size:16px!important;scroll-margin-block:90px;}
 :where(button,[role="button"],.btn,.tab){touch-action:manipulation;min-height:44px}
 :where(input[type="text"],input[type="password"],input[type="email"],input[type="tel"],input[type="number"],input[type="search"],select){min-height:44px}
 :where(img,video,canvas){max-width:100%}
 .sefir-table-scroll:focus-visible{outline:2px solid #ff6674;outline-offset:-2px}
 :where(.table-wrap,.table-container){max-width:100%;overscroll-behavior-x:contain}
 :where(.modal-card,.modal-box,.dialog){max-width:100%;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
 :where(.modal-head,.section-title,.toolbar,.top-actions,.head){flex-wrap:wrap}
 :where(.toast){max-width:calc(100vw - 24px);right:12px;bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 body.sefir-mobile-enabled .wrap{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
 .sefir-mobile-grid a span{min-width:0;overflow-wrap:anywhere}
 .compose textarea{min-width:0}
 .bubble{overflow-wrap:anywhere;max-width:90%}
 body[data-sefir-page="meydan"] .head{gap:10px}
 body[data-sefir-page="meydan"] .compose-wrap{scroll-margin-bottom:100px}
 body[data-sefir-page="meydan"] .messages{min-height:220px;height:clamp(220px,45dvh,600px)}
 body[data-sefir-page="meydan"] .emoji-picker{max-width:calc(100% - 16px);grid-template-columns:repeat(6,minmax(0,1fr))}
 body[data-sefir-page="meydan"] .emoji-picker button{min-height:44px}
 body[data-sefir-page="meydan"] .icon-btn,body[data-sefir-page="meydan"] .send-btn{width:44px;height:44px;flex-basis:44px}
 body[data-sefir-page="live-map"] .map-stage{height:clamp(260px,52dvh,520px);min-height:260px;overflow:auto!important;overscroll-behavior:contain}
 body[data-sefir-page="live-map"] #map-container{position:relative;left:0;top:0;width:100%;height:100%;overflow:hidden}
 body[data-sefir-page="live-map"] #sideEmpty{min-height:180px!important}
 body[data-sefir-page="live-map"] .city-label{font-size:14px}
 body[data-sefir-page="live-map"] .city-label-count{font-size:12px}
 body[data-sefir-page="map"] .app{height:auto;min-height:100dvh}
 body[data-sefir-page="map"] .content{grid-template-columns:minmax(0,1fr)}
 body[data-sefir-page="map"] .topbar{flex-wrap:wrap;height:auto;gap:8px}
 body[data-sefir-page="map"] .app{grid-template-rows:auto auto auto}
 body[data-sefir-page="map"] .brand-mark{max-width:48vw}
 body[data-sefir-page="map"] .map-stage{min-height:300px;height:50dvh}
 body[data-sefir-page="map"] .regions{max-width:100%;overflow-x:auto}
 body[data-sefir-page="map"] .profile{max-width:100%;min-width:0}
 body[data-sefir-page="character"]{height:auto;min-height:100dvh;overflow-y:auto;overflow-x:clip}
 body[data-sefir-page="character"] .stage{height:auto;min-height:100dvh;justify-content:flex-start;padding:12px 10px 24px;overflow:hidden}
 body[data-sefir-page="character"] .card-shell{flex:none;height:650px;min-height:650px;max-width:calc(100vw - 24px)}
 body[data-sefir-page="character"] .select-wrap{flex:none;height:52px}
 body[data-sefir-page="character"] .nav-arrow{width:44px;height:44px}
 body[data-sefir-page="character"] .nav-arrow.left{left:6px}
 body[data-sefir-page="character"] .nav-arrow.right{right:6px}
 body[data-sefir-page="character"] .info-zone{height:49%;padding:14px}
 body[data-sefir-page="character"] .avatar-zone{height:51%}
 body[data-sefir-page="character"] .story{font-size:12px}
 body[data-sefir-page="character"] .error{position:relative;left:auto;bottom:auto;transform:none;white-space:normal}
 body[data-sefir-page$="-control"]{padding:12px}
 body[data-sefir-page$="-control"] .search{min-width:0;flex-basis:100%}
 body[data-sefir-page$="-control"] .sticky{position:static}
 .admin-shell .section-title{align-items:flex-start}
 .admin-shell .sidebar{height:auto;max-height:none}
 .admin-shell .content .card{min-width:0}
 .admin-shell .top-actions{flex-wrap:wrap}
 .admin-shell .toolbar>*{max-width:100%}
 .admin-shell .table-wrap{min-width:0}
}
/* Auth forms must scroll with the browser keyboard and on short landscape screens. */
body:is([data-sefir-page="login"],[data-sefir-page="register"],[data-sefir-page="verify"],[data-sefir-page="forgot-password"]):has(.auth-bg){height:auto;min-height:100dvh;overflow-y:auto;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}
:is(.login-card,.register-card,.verify-card,.reset-card){max-height:none!important;flex-shrink:0}
@media(max-width:860px),(max-height:600px){
 body:is([data-sefir-page="login"],[data-sefir-page="register"],[data-sefir-page="verify"],[data-sefir-page="forgot-password"]):has(.auth-bg){padding-top:clamp(24px,12dvh,100px)}
}
@media(max-width:560px){
 .admin-shell .kpis,.admin-shell .two,.admin-shell .three,.admin-shell .form-grid{grid-template-columns:minmax(0,1fr)}
 .section-title .toolbar{width:100%}
 body[data-sefir-page="dashboard"] .event{flex-wrap:wrap}
 body[data-sefir-page="dashboard"] .event-main{min-width:0}
 body[data-sefir-page="dashboard"] .character-wrap{grid-template-columns:70px minmax(0,1fr);gap:10px}
 body[data-sefir-page="dashboard"] .character-avatar{width:70px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

@media(max-width:860px){
 body.sefir-mobile-enabled :is(.modal-layer,.dashboard-social-modal,.dashboard-events-modal,.sefir-crop-overlay){z-index:10000}
 :is(.attack-modal-card,.sefir-crop-modal,.dashboard-social-dialog,.dashboard-events-dialog){max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
 .confirm-actions{flex-wrap:wrap}
 .confirm-actions .btn{min-width:0;flex:1 1 100px}
 .black-market-admin-overlay{opacity:1}
}
/* Live map: scrollable/zoomable stage is phone-only; desktop keeps the original absolute map placement. */
@media(max-width:860px){
 body[data-sefir-page="live-map"]{background-color:#070707}
}
/* Phone layout, preserving the desktop composition and all gameplay controls. */
@media(max-width:860px){
 body.sefir-mobile-enabled{background-attachment:scroll;background-position:center top;background-size:auto 100vh;background-repeat:no-repeat;background-color:#09090b}
 body.sefir-mobile-enabled .brand{min-height:88px;padding:12px 0}
 body.sefir-mobile-enabled .brand img{width:210px;max-width:65vw}
 body[data-sefir-page="live-map"]:before{background-position:center top;background-size:auto 100svh}
 body:has(.auth-bg){isolation:isolate}
 .auth-bg img{object-fit:cover;object-position:50% top}
 .auth-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.6));pointer-events:none}
 body:is([data-sefir-page="login"],[data-sefir-page="register"],[data-sefir-page="verify"],[data-sefir-page="forgot-password"]):has(.auth-bg){padding:32px 16px 90px;min-height:100svh}
 :is(.login-card,.register-card,.verify-card,.reset-card){width:min(430px,100%);border-radius:14px;padding:24px 20px;background:rgba(238,234,225,.95)}
 :is(.login-card,.register-card) form{gap:12px}
 :is(.login-card,.register-card) .field{height:48px}
 :is(.login-card,.register-card) :is(.terms,.meta,.bottom){font-size:12px;line-height:1.5}
 .login-card .meta{flex-wrap:wrap}
 .login-card .meta a,.login-card .remember{min-height:44px;display:inline-flex;align-items:center}
 .register-card .terms{padding-block:8px}
 .register-card .terms input,.login-card .remember input{width:20px;height:20px}
 body[data-sefir-page="profile"] .profile-hero{grid-template-columns:minmax(0,1fr)}
 body[data-sefir-page="profile"] .identity{padding:16px;border-right:0}
 body[data-sefir-page="profile"] .hero-center{padding:0 16px 16px}
 body[data-sefir-page="profile"] .hero-title{font-size:22px}
 body[data-sefir-page="profile"] .hero-sub{font-size:13px;line-height:1.5}
 body[data-sefir-page="profile"] .live-card{padding:12px 16px;border-left:0;border-top:1px solid #302027}
 body[data-sefir-page="profile"] :is(.metric-strip,.power-strip){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-sefir-page="profile"] :is(.metric,.power-card){padding:12px;min-width:0}
 body[data-sefir-page="profile"] .metric strong{font-size:20px;overflow-wrap:anywhere}
 body[data-sefir-page="profile"] .power-icon{display:none}
 body[data-sefir-page="profile"] .profile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:5px}
 body[data-sefir-page="profile"] .profile-tab{min-width:0;white-space:normal;font-size:11px;letter-spacing:0;padding:10px 6px}
 body[data-sefir-page="profile"] .section-head{flex-wrap:wrap;padding:14px}
 body[data-sefir-page="profile"] .section-body{padding:14px}
 body[data-sefir-page="profile"] .overview-line{flex-wrap:wrap;gap:8px}
 body[data-sefir-page="profile"] .value-pill{max-width:100%;white-space:normal;line-height:1.4;text-align:left}
 body[data-sefir-page^="attack"] .panel-head{flex-wrap:wrap;gap:12px}
 body[data-sefir-page^="attack"] .toolbar{width:100%;display:flex;flex-wrap:wrap;gap:8px}
 body[data-sefir-page^="attack"] .toolbar .btn{flex:1}
 body[data-sefir-page^="attack"] .attack-modal{z-index:10001;padding:12px}
 body[data-sefir-page^="attack"] .attack-modal-card{width:min(520px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px}
 body[data-sefir-page^="attack"] .confirm-actions{display:flex;gap:10px}
 body[data-sefir-page^="attack"] .target-card{padding:16px}
 body[data-attack-mode="individual"] .stat-graph{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 body[data-attack-mode="individual"] .stat-node{padding:10px}
 body[data-attack-mode="individual"] .stat-node-top{grid-template-columns:minmax(0,1fr) auto;gap:6px}
 body[data-attack-mode="individual"] .stat-symbol{display:none}
 body[data-attack-mode="individual"] .stat-node-top small{display:none}
 body[data-attack-mode="gang"] .gang-profile-art{max-height:160px;min-height:0}
 body[data-attack-mode="gang"] .gang-profile-art img{min-height:0;height:160px}
 body[data-attack-mode="gang"] .gang-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-attack-mode="gang"] .gang-stat-main{grid-column:1/-1!important}
 body[data-sefir-page="live-map"] .map-layout{grid-template-columns:minmax(0,1fr)}
 body[data-sefir-page="live-map"] .map-stage{height:clamp(250px,45svh,440px);min-height:250px;background:#101216;border-radius:0;touch-action:pan-x pan-y}
 body[data-sefir-page="live-map"] .sefir-map-tools{border:1px solid #402027;border-radius:0 0 12px 12px}
 body[data-sefir-page="live-map"] .sefir-map-tools select{flex-basis:100%;order:-1}
 body[data-sefir-page="live-map"] .sefir-map-tools button{flex:1}
 body[data-sefir-page="live-map"] .main-head{align-items:stretch;gap:8px}
 body[data-sefir-page="live-map"] .title-panel{width:100%}
 body[data-sefir-page="live-map"] .main-head h1{font-size:24px}
 body[data-sefir-page="live-map"] .districts{flex-basis:auto;min-height:0;max-height:400px;overscroll-behavior-y:contain}
 body[data-sefir-page="live-map"] .district-row{padding-block:14px}
 body[data-sefir-page="live-map"] .district-sefir{white-space:normal;max-width:130px}
 body[data-sefir-page="live-map"] .stats-row{gap:6px}
 body[data-sefir-page="live-map"] .stats-row .stat-card{padding:10px 8px}
}
@media(max-width:860px){
 body[data-attack-mode="sefir"] .sefir-map-card{min-height:0}
 body[data-attack-mode="sefir"] #sefirAttackMap{height:auto;aspect-ratio:2.35;min-height:130px}
 body[data-attack-mode="sefir"] .sefir-map-badge{position:static;margin:10px 0}
 body[data-attack-mode="sefir"] .sefir-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-attack-mode="sefir"] .sefir-choice span{min-height:48px}
 body[data-attack-mode="sefir"] .sefir-choice input:focus-visible+span{outline:2px solid #ff6674;outline-offset:2px}
 body[data-attack-mode="sefir"] .sefir-control{scroll-margin-top:12px}
 body[data-attack-mode="sefir"] :is(.sefir-card-head,.sefir-travel-top,.sefir-list-row,.sefir-transport-note){flex-wrap:wrap}
}
@media(max-width:860px){
 body[data-sefir-page="live-map"] .stats-row{grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-sefir-page="live-map"] .stats-row .stat-card label{font-size:9px;letter-spacing:0;line-height:1.4}
 body[data-sefir-page="live-map"] .city-label-empty,body[data-sefir-page="live-map"] .city-label-count{display:none}
}
@media(max-width:860px){
 body[data-sefir-page="profile"] .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-sefir-page="profile"] .info{padding:11px}
 body[data-sefir-page="profile"] .info b{font-size:13px}
 body[data-attack-mode="individual"] .target-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-attack-mode="individual"] .target-top .player-name{grid-column:1/-1}
 body[data-attack-mode="individual"] .chance{gap:8px;flex-wrap:wrap}
 body[data-attack-mode="individual"] .chance span{font-size:10px}
}
/* v4: mobile hierarchy and thumb controls; desktop layout is retained. */
.mobile-attack-heading,.attack-mode-copy,.character-intro,.onboarding-city-picker,.character-thumb-dock,.mobile-attack-switch,.mobile-target-search{display:none}
.mobile-summary>summary{display:none}
.sefir-mobile-grid[hidden],.sefir-page-menu[hidden]{display:none!important}
.mobile-search-status{font-size:13px;color:#c9aeb9}
@media(max-width:860px){
 body.sefir-mobile-enabled .brand{min-height:64px;padding:8px 0}body.sefir-mobile-enabled .brand img{width:160px;max-width:50vw}
 .mobile-attack-heading{display:block;padding:14px 4px 4px}.mobile-attack-heading>span,.character-intro>span{color:#ff7784;font-size:10px;letter-spacing:.13em;font-weight:800}.mobile-attack-heading h1{font-size:27px;margin:6px 0}.mobile-attack-heading p{font-size:13px;line-height:1.5;color:#aaa;margin:0}
 body[data-sefir-page="attack"] .attack-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px auto;max-width:620px;align-items:stretch}
 body[data-sefir-page="attack"] .attack-mode-card{aspect-ratio:auto;display:flex;flex-direction:column;min-height:0;border-radius:16px;transform:none}
 body[data-sefir-page="attack"] .attack-mode-card img{height:135px;object-fit:cover;object-position:center 20%}
 body[data-sefir-page="attack"] .attack-mode-copy{display:grid;grid-template-columns:1fr auto;gap:6px;padding:14px;background:linear-gradient(180deg,#211318,#100d10);color:#fff;flex:1}
 .attack-mode-copy strong{font-size:18px}.attack-mode-copy small{font-size:12px;color:#c4b7bd;grid-column:1;line-height:1.4}.attack-mode-copy b{grid-column:2;grid-row:1/3;align-self:center;font-size:24px}
 body[data-sefir-page="attack"] .attack-mode-sefir{grid-column:1/-1;display:grid;grid-template-columns:35% 1fr}body[data-sefir-page="attack"] .attack-mode-sefir img{height:128px}body[data-sefir-page="attack"] .attack-mode-sefir .attack-mode-copy{align-content:center}
 .mobile-attack-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}.mobile-attack-switch a{min-height:46px;display:grid;place-items:center;background:#171217;border:1px solid #43232a;color:#d9cbd0;border-radius:10px;font-size:13px;font-weight:800;text-decoration:none}.mobile-attack-switch a[aria-current]{background:#38171e;border-color:#c24354;color:white}
 .mobile-summary{border:1px solid #37242b;border-radius:12px;background:#131015;margin:12px 0;min-width:0}.mobile-summary>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;min-height:48px;color:#ddd;font-size:13px;font-weight:800;cursor:pointer;list-style:none}.mobile-summary>summary::after{content:'+';font-size:20px;color:#ff7784}.mobile-summary[open]>summary::after{content:'−'}.mobile-summary>summary::-webkit-details-marker{display:none}.mobile-summary .card{margin:0!important;border:0;box-shadow:none}
 body[data-attack-mode="individual"] .target-list,body[data-attack-mode="gang"] .gang-war-target-list{gap:10px}body[data-attack-mode="individual"] .target-card{padding:13px}
 body[data-attack-mode="individual"] .target-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body[data-attack-mode="individual"] .target-top .chance{grid-column:1/-1;min-height:44px;justify-content:space-between;display:flex}body[data-attack-mode="individual"] .target-top .metric-box{padding:9px 7px}body[data-attack-mode="individual"] .target-top .metric-box strong{font-size:15px}body[data-attack-mode="individual"] .target-details{display:flex;flex-direction:column;gap:12px;align-items:stretch}body[data-attack-mode="individual"] .target-action .btn{width:100%;min-height:48px}
 .mobile-target-search{display:block;width:100%;min-height:48px;padding:12px;border:1px solid #50303a;border-radius:10px;background:#121015;color:#eee;margin:12px 0}
 body[data-attack-mode="gang"] .gang-war-top{flex-wrap:wrap;gap:10px}body[data-attack-mode="gang"] .gang-war-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body[data-attack-mode="gang"] .gang-war-actions .btn{flex:1;min-height:48px}
 body[data-sefir-page^="attack"] .attack-modal{align-items:flex-end;padding:8px 8px max(8px,env(safe-area-inset-bottom))}body[data-sefir-page^="attack"] .attack-modal-card{border-radius:20px 20px 12px 12px;max-height:85dvh}body[data-sefir-page^="attack"] .confirm-actions{position:sticky;bottom:-20px;background:#101014;padding:12px 0}
 body[data-sefir-page="gangs"] .gang-tabs,body[data-sefir-page="politics"] .politics-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;position:static;gap:6px;padding:6px}
 body:is([data-sefir-page="gangs"],[data-sefir-page="politics"]) .tab-link{min-width:0;min-height:48px;white-space:normal;justify-content:center;flex-wrap:wrap;padding:10px 6px;font-size:12px;letter-spacing:0;line-height:1.3}body:is([data-sefir-page="gangs"],[data-sefir-page="politics"]) .tab-link>span{display:none}
 body:is([data-sefir-page="gangs"],[data-sefir-page="politics"]) :is(.metrics-row,.stat-grid,.treasury-overview){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body:is([data-sefir-page="gangs"],[data-sefir-page="politics"]) .hero-copy{padding:16px}body:is([data-sefir-page="gangs"],[data-sefir-page="politics"]) .hero-copy p{line-height:1.5}
 body:is([data-sefir-page="gangs"],[data-sefir-page="politics"]) .modal-layer{align-items:flex-end;padding:8px}body:is([data-sefir-page="gangs"],[data-sefir-page="politics"]) .modal{max-height:88dvh;overflow-y:auto;border-radius:20px 20px 12px 12px}
 body .dashboard-slider-dots{position:relative;left:auto;bottom:auto;transform:none;justify-content:center;flex-wrap:wrap;gap:0;padding:0;border:0;border-radius:0;background:#100d10;max-width:100%}
 body .dashboard-slider-dot,body .dashboard-slider-dot.active{position:relative;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none}body .dashboard-slider-dot::before{content:'';position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:50%;background:#68616a;transform:translate(-50%,-50%)}body .dashboard-slider-dot.active::before{background:#ff5167;box-shadow:0 0 8px #9b203a}
 body .dashboard-slider{aspect-ratio:auto}body .dashboard-slider-track{aspect-ratio:5/2;height:auto}body .dashboard-slider-slide{height:auto}
 body[data-sefir-page="map"] .onboarding-city-picker{display:block;min-width:0;padding:18px 14px;border:1px solid #42252c;border-radius:14px;background:#111014}.onboarding-city-picker h1{font-size:24px;margin:8px 0}.onboarding-city-picker p{font-size:13px;color:#b1a4aa;line-height:1.5}.onboarding-city-picker label{display:block;font-size:12px;margin:12px 0 7px}
 #provinceSearch{width:100%;min-height:48px;padding:12px;border-radius:10px;border:1px solid #63404a;color:#fff;background:#1b171c}#provinceCount{font-size:12px;color:#aca1a8;margin:10px 0}
 .province-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:232px;overflow-y:auto;overscroll-behavior:contain}.province-choices button{min-height:48px;text-align:left;padding:10px;border:1px solid #3a2c32;border-radius:9px;background:#21191e;color:#eee;font-size:14px}.province-choices button[aria-pressed="true"]{border-color:#ff6779;background:#481e29}#toggleRegistrationMap{width:100%;margin-top:12px;min-height:46px;border:1px solid #66404c;border-radius:9px;background:#20151a;color:#f1dce4}
 body[data-sefir-page="map"] .map-stage{display:none;height:240px;min-height:0;border-radius:12px}body[data-sefir-page="map"].show-registration-map .map-stage{display:block}body[data-sefir-page="map"] .map-head{position:static;padding:10px;gap:8px}body[data-sefir-page="map"] .map-head .coord{letter-spacing:0}body[data-sefir-page="map"] #map-container{height:190px}
 body[data-sefir-page="map"] .side{min-height:0;scroll-margin-top:12px;border-radius:14px}body[data-sefir-page="map"] #panel-empty{min-height:120px}body[data-sefir-page="map"] .districts-scroll{max-height:300px;min-height:0;flex:initial;overscroll-behavior:contain}body[data-sefir-page="map"] .district-btn{min-height:50px;padding:12px}
 body[data-sefir-page="map"] .regions{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding:8px;gap:8px}body[data-sefir-page="map"] .region-card{padding:12px;min-height:80px}body[data-sefir-page="map"] .region-card .r-name{font-size:11px;letter-spacing:0}body[data-sefir-page="map"] .region-card .r-bonus{white-space:normal;font-size:12px}
 body[data-sefir-page="map"] .modal{z-index:10010;align-items:flex-end;padding:8px 8px max(12px,env(safe-area-inset-bottom))}body[data-sefir-page="map"] .modal-box{padding:20px;border-radius:20px 20px 12px 12px}body[data-sefir-page="map"] .modal-actions button{min-height:50px}
 body:is([data-sefir-page="map"],[data-sefir-page="character"]) #sefirMusicControl{top:12px;bottom:auto;right:12px}body:is([data-sefir-page="map"],[data-sefir-page="character"]) #sefirMusicPanel{position:absolute;right:0;top:52px}body[data-sefir-page="map"] .topbar{padding-right:68px}
 body[data-sefir-page="character"] .character-intro{display:block;width:100%;max-width:430px;padding:8px 56px 4px 4px}.character-intro h1{font-size:24px;margin:7px 0}.character-intro p{font-size:12px;color:#b5a9af;line-height:1.5;margin:0 0 8px}
 body[data-sefir-page="character"] .stage{padding:12px 12px calc(100px + env(safe-area-inset-bottom));overflow:visible;gap:10px}body[data-sefir-page="character"] .card-shell{width:100%;max-width:430px;height:auto;min-height:0;perspective:none}body[data-sefir-page="character"] .cards{position:relative;inset:auto}body[data-sefir-page="character"] .character-card:not(.active){display:none}body[data-sefir-page="character"] .character-card.active{position:relative;left:0;height:auto;transform:none;border-radius:18px;opacity:1}
 body[data-sefir-page="character"] .avatar-zone{height:clamp(180px,30svh,280px)}body[data-sefir-page="character"] .info-zone{height:auto;padding:16px;gap:16px}body[data-sefir-page="character"] .story{font-size:13px;line-height:1.55}body[data-sefir-page="character"] .name{font-size:22px}body[data-sefir-page="character"] .motivation{font-size:13px;max-width:50%}body[data-sefir-page="character"] .stat label{font-size:10px;letter-spacing:0}body[data-sefir-page="character"] .stat{grid-template-columns:75px 1fr}body[data-sefir-page="character"] .select-wrap{display:none}
 body[data-sefir-page="character"] .character-thumb-dock{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;position:fixed;z-index:9004;left:0;right:0;bottom:0;padding:12px 12px calc(12px + env(safe-area-inset-bottom));background:#100c10;border-top:1px solid #50303a}
 body[data-sefir-page="character"] .character-thumb-dock .nav-arrow{position:static;transform:none;width:48px;height:50px;border-radius:12px;font-size:24px}body[data-sefir-page="character"] .character-thumb-dock .select-btn{min-height:50px;font-size:11px;letter-spacing:.06em;border-radius:12px}body[data-sefir-page="character"] .error{white-space:normal;overflow:visible;max-width:100%;text-align:center}
 .sefir-mobile-grid button{display:flex;align-items:center;min-height:52px;padding:10px;border:1px solid #50303a;border-radius:10px;background:#20151a;color:#eee;font:inherit;font-size:13px;text-align:left;cursor:pointer}.sefir-mobile-grid button[aria-current]{background:#411d29;border-color:#d95c76}
 .sefir-mobile-tabbar .sefir-mobile-tab{padding:8px;justify-content:center}.sefir-mobile-tabbar .sefir-page-menu{flex:0 0 90px;border-color:#51313e;color:#edd3df;font-size:12px}.sefir-mobile-tabbar .sefir-mobile-tab span{font-size:12px}
 :is(.target-card,.gang-war-target)[hidden]{display:none!important}
}
.registration-map-viewport{height:100%}.registration-map-tools{display:none}
@media(max-width:860px){
 body[data-sefir-page="map"] .map-stage{height:auto}
 body[data-sefir-page="map"] .registration-map-viewport{height:230px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y}
 body[data-sefir-page="map"] #map-container{width:100%;height:100%}
 body[data-sefir-page="map"] .city-label{font-size:14px}
 .registration-map-tools{display:flex;gap:8px;padding:10px;background:#141016}
 .registration-map-tools button{flex:1;min-height:46px;border:1px solid #6c3b49;border-radius:9px;background:#251a20;color:#fff;font-size:14px}
 body[data-sefir-page="tasks"] .task-tabs,body[data-sefir-page="market"] .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:6px}
 body[data-sefir-page="tasks"] .task-tabs .tab-link,body[data-sefir-page="market"] .tabs .tab-btn{min-width:0;min-height:48px;white-space:normal;padding:10px 6px}
 body[data-sefir-page="tasks"] .tab-icon,body[data-sefir-page="tasks"] .task-tabs small,body[data-sefir-page="tasks"] .task-tabs b{display:none}
 body[data-sefir-page="tasks"] .task-tabs strong{font-size:12px;letter-spacing:0}
}

/* Oyun sayfalarının arka planı ana sayfayla aynı: görselin üstünde karartma katmanı yok. */
html:has(body:is([data-sefir-page="profile"],[data-sefir-page="tasks"],[data-sefir-page="magaza"],[data-sefir-page="siralama"],[data-sefir-page="gazete"],[data-sefir-page="politics"],[data-sefir-page="gangs"],[data-sefir-page="attack"],[data-sefir-page="attack-individual"],[data-sefir-page="attack-gang"],[data-sefir-page="attack-sefir"],[data-sefir-page="meydan"],[data-sefir-page="messages"],[data-sefir-page="sss"],[data-sefir-page="equipment"],[data-sefir-page="weapons"],[data-sefir-page="vehicles"],[data-sefir-page="properties"],[data-sefir-page="sezonfinali"])){background:#060606!important}
body:is([data-sefir-page="profile"],[data-sefir-page="tasks"],[data-sefir-page="magaza"],[data-sefir-page="siralama"],[data-sefir-page="gazete"],[data-sefir-page="politics"],[data-sefir-page="gangs"],[data-sefir-page="attack"],[data-sefir-page="attack-individual"],[data-sefir-page="attack-gang"],[data-sefir-page="attack-sefir"],[data-sefir-page="meydan"],[data-sefir-page="messages"],[data-sefir-page="sss"],[data-sefir-page="equipment"],[data-sefir-page="weapons"],[data-sefir-page="vehicles"],[data-sefir-page="properties"],[data-sefir-page="sezonfinali"]){background:transparent!important}
body:is([data-sefir-page="profile"],[data-sefir-page="tasks"],[data-sefir-page="magaza"],[data-sefir-page="siralama"],[data-sefir-page="gazete"],[data-sefir-page="politics"],[data-sefir-page="gangs"],[data-sefir-page="attack"],[data-sefir-page="attack-individual"],[data-sefir-page="attack-gang"],[data-sefir-page="attack-sefir"],[data-sefir-page="meydan"],[data-sefir-page="messages"],[data-sefir-page="sss"],[data-sefir-page="equipment"],[data-sefir-page="weapons"],[data-sefir-page="vehicles"],[data-sefir-page="properties"],[data-sefir-page="sezonfinali"])::before{content:""!important;position:fixed!important;inset:0!important;z-index:-2!important;pointer-events:none!important;opacity:1!important;filter:none!important;background:url('/icerik/dashboard/background.png') center center / cover no-repeat #060606!important}
body:is([data-sefir-page="profile"],[data-sefir-page="tasks"],[data-sefir-page="magaza"],[data-sefir-page="siralama"],[data-sefir-page="gazete"],[data-sefir-page="politics"],[data-sefir-page="gangs"],[data-sefir-page="attack"],[data-sefir-page="attack-individual"],[data-sefir-page="attack-gang"],[data-sefir-page="attack-sefir"],[data-sefir-page="meydan"],[data-sefir-page="messages"],[data-sefir-page="sss"],[data-sefir-page="equipment"],[data-sefir-page="weapons"],[data-sefir-page="vehicles"],[data-sefir-page="properties"],[data-sefir-page="sezonfinali"])::after{content:""!important;position:fixed!important;inset:0!important;z-index:-1!important;pointer-events:none!important;opacity:.09!important;background:none!important;background-image:linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px)!important;background-size:44px 44px!important}
body:is([data-sefir-page="tasks"],[data-sefir-page="magaza"],[data-sefir-page="siralama"],[data-sefir-page="gazete"],[data-sefir-page="politics"],[data-sefir-page="gangs"]) .page-noise{display:none!important}
